diff --git a/.browserslistrc b/.browserslistrc new file mode 100644 index 0000000..f42fae3 --- /dev/null +++ b/.browserslistrc @@ -0,0 +1,5 @@ +# Browsers that we support + +last 3 version +> 0.3% +not dead # no browsers without security updates diff --git a/.dockerignore b/.dockerignore new file mode 100644 index 0000000..fac5ce7 --- /dev/null +++ b/.dockerignore @@ -0,0 +1,2 @@ +.git +*.md diff --git a/.editorconfig b/.editorconfig index 6537ca4..2e1b261 100644 --- a/.editorconfig +++ b/.editorconfig @@ -3,9 +3,9 @@ root = true [*] charset = utf-8 end_of_line = lf -insert_final_newline = true -indent_style = space indent_size = 4 +indent_style = space +insert_final_newline = true trim_trailing_whitespace = true [*.md] @@ -13,3 +13,9 @@ trim_trailing_whitespace = false [*.{yml,yaml}] indent_size = 2 + +[docker-compose.yml] +indent_size = 4 + +[*.vue] +indent_size = 2 diff --git a/.env.example b/.env.example index a2a3324..d47d429 100644 --- a/.env.example +++ b/.env.example @@ -5,20 +5,29 @@ APP_DEBUG=true APP_URL=http://localhost LOG_CHANNEL=stack +LOG_DEPRECATIONS_CHANNEL=null +LOG_LEVEL=debug DB_CONNECTION=mysql -DB_HOST=dev-mariadb +DB_HOST=127.0.0.1 DB_PORT=3306 -DB_DATABASE= +DB_DATABASE=laravel DB_USERNAME=root -DB_PASSWORD=secret +DB_PASSWORD= BROADCAST_DRIVER=log CACHE_DRIVER=file -QUEUE_CONNECTION=database +FILESYSTEM_DISK=local +QUEUE_CONNECTION=sync SESSION_DRIVER=file SESSION_LIFETIME=120 +MEMCACHED_HOST=127.0.0.1 + +REDIS_HOST=127.0.0.1 +REDIS_PASSWORD=null +REDIS_PORT=6379 + MAIL_MAILER=smtp MAIL_HOST=dev-mailhog MAIL_PORT=1025 @@ -29,9 +38,33 @@ MAIL_FROM_ADDRESS=null MAIL_FROM_NAME="${APP_NAME}" MAIL_ADMIN=equipe.web@ldc.fr +AWS_ACCESS_KEY_ID= +AWS_SECRET_ACCESS_KEY= +AWS_DEFAULT_REGION=us-east-1 +AWS_BUCKET= +AWS_USE_PATH_STYLE_ENDPOINT=false + +PUSHER_APP_ID= +PUSHER_APP_KEY= +PUSHER_APP_SECRET= +PUSHER_HOST= +PUSHER_PORT=443 +PUSHER_SCHEME=https +PUSHER_APP_CLUSTER=mt1 + +VITE_PUSHER_APP_KEY="${PUSHER_APP_KEY}" +VITE_PUSHER_HOST="${PUSHER_HOST}" +VITE_PUSHER_PORT="${PUSHER_PORT}" +VITE_PUSHER_SCHEME="${PUSHER_SCHEME}" +VITE_PUSHER_APP_CLUSTER="${PUSHER_APP_CLUSTER}" + +# Sentry +SENTRY_LARAVEL_DSN= + # CRM CRM_ENDPOINT= CRM_TOKEN= +CRM_PASSWORD= # MESBR MESBR_ENDPOINT= diff --git a/.eslintrc.json b/.eslintrc.json new file mode 100644 index 0000000..4acf8d1 --- /dev/null +++ b/.eslintrc.json @@ -0,0 +1,61 @@ +{ + "env": { + "browser": true, + "es2021": true + }, + "extends": [ + "eslint:recommended", + "plugin:vue/vue3-strongly-recommended", + "@vue/eslint-config-typescript" + ], + "overrides": [ + { + "files": ["*.ts", "*.vue"], + "rules": { + "no-undef": "off" + } + }, + { + "files": ["*.vue"], + "rules": { + "indent": "off" + } + } + ], + "parser": "vue-eslint-parser", + "parserOptions": { + "parser": "@typescript-eslint/parser", + "ecmaVersion": "latest", + "sourceType": "module" + }, + "plugins": ["vue", "@typescript-eslint"], + "ignorePatterns": [ + "**/*.php", + "**/*.svg", + "**/vendor/*.js", + "**/vendor/**/*.js", + "**/vendor/**/*.scss" + ], + "rules": { + "indent": ["error", 4, { "SwitchCase": 1 }], + "linebreak-style": ["error", "unix"], + "quotes": ["error", "double"], + "semi": ["error", "always"], + "vue/script-indent": ["error", 2, { "baseIndent": 0, "switchCase": 1 }], + "vue/one-component-per-file": "off" + }, + "settings": { + "import/resolver": { + "node": { + "extensions": [".js", ".vue", ".ts", ".d.ts"] + }, + "alias": { + "extensions": [".vue", ".js", ".ts", ".scss", ".d.ts"], + "map": [ + ["~", "./resources/assets"], + ["@", "./node_modules"] + ] + } + } + } +} diff --git a/.gitattributes b/.gitattributes index 967315d..fcb21d3 100644 --- a/.gitattributes +++ b/.gitattributes @@ -1,5 +1,11 @@ -* text=auto -*.css linguist-vendored -*.scss linguist-vendored -*.js linguist-vendored +* text=auto eol=lf + +*.blade.php diff=html +*.css diff=css +*.html diff=html +*.md diff=markdown +*.php diff=php + +/.github export-ignore CHANGELOG.md export-ignore +.styleci.yml export-ignore diff --git a/.gitignore b/.gitignore index a1ceeb0..b507967 100644 --- a/.gitignore +++ b/.gitignore @@ -1,32 +1,43 @@ -public/front/* +.env +.env.backup +.env.production +.phpunit.result.cache +.stylelintcache +/.fleet +/.idea +/.phpunit.cache +/.vscode /node_modules +/bootstrap +/public/build +/public/cache /public/hot +/public/sitemap.xml /public/storage -/public/fichiers -/public/images/produits -/public/images/ranges -/public/css/* -/public/js/* -resources/views/errors/* -resources/views/front/basic/* -mix-manifest.json /storage/*.key /vendor -/resources/views/front/basic -.env -.env.dev -.env.prod -.env.backup -.phpunit.result.cache +auth.json +docker-compose.override.yml Homestead.json Homestead.yaml npm-debug.log yarn-error.log -package-lock.json -composer.lock -resources/front -resources/js/basic.js -.vscode +.npmrc +/resources/theme +# https://lab.s-web.fr/ldc-web/projets/gen-game-web/-/issues/17 +public/fichiers storage -README.txt -webpack.mix.js +resources/theme + +# Ignore public favicon +/public/android-chrome-192x192.png +/public/android-chrome-512x512.png +/public/apple-touch-icon.png +/public/browserconfig.xml +/public/browserconfig.xml +/public/favicon-16x16.png +/public/favicon-32x32.png +/public/favicon.ico +/public/mstile-150x150.png +/public/safari-pinned-tab.svg +/public/site.webmanifest diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 9452827..219a6c1 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -1,46 +1,24 @@ -image: $CI_REGISTRY/service-web-lab/ldc-web-images-docker/ldcweb-qa:php7.3-1.0 +include: + - project: 'ldc-web/shared-ci' + ref: 'main' + file: 'lint/lint.yml' + - project: 'ldc-web/shared-ci' + ref: 'main' + file: 'security/security.yml' + - project: 'ldc-web/shared-ci' + ref: 'main' + file: 'build/build.yml' + - project: 'ldc-web/shared-ci' + ref: 'main' + file: 'test/test.yml' + - project: 'ldc-web/shared-ci' + ref: 'main' + file: 'deploy/deploy.yml' + stages: - - Security - - CodingStandards - -composer-security: - stage: Security - script: - - local-php-security-checker --format=json --path=./composer.lock > composer-security-checker-report.json - artifacts: - when: on_failure - expose_as: 'composer-security-checker' - paths: - - composer-security-checker-report.json - allow_failure: true - -npm-security: - stage: Security - script: - - audit-ci -p npm -o json > npm-security-checker-report.json - artifacts: - when: on_failure - expose_as: 'npm-security-checker' - paths: - - npm-security-checker-report.json - allow_failure: true - -phpcs: - stage: CodingStandards - before_script: - - composer config gitlab-token.gitlab.com $CI_DEPLOY_USER $CI_DEPLOY_PASSWORD - - composer install - cache: - paths: - - vendor/ - script: - - vendor/bin/phpcs --report=junit --report-file=phpcs-report.xml - artifacts: - when: on_failure - expose_as: 'phpcs' - paths: - - phpcs-report.xml - reports: - junit: phpcs-report.xml - allow_failure: false + - lint + - security + - build + - test + - deploy diff --git a/.gitmodules b/.gitmodules new file mode 100644 index 0000000..988fea8 --- /dev/null +++ b/.gitmodules @@ -0,0 +1,3 @@ +[submodule "resources/theme"] + path = resources/theme + url = ../gen-game-web-themes/theme-merger.git diff --git a/.styleci.yml b/.styleci.yml deleted file mode 100644 index 1db61d9..0000000 --- a/.styleci.yml +++ /dev/null @@ -1,13 +0,0 @@ -php: - preset: laravel - disabled: - - unused_use - finder: - not-name: - - index.php - - server.php -js: - finder: - not-name: - - webpack.mix.js -css: true diff --git a/.stylelintrc.json b/.stylelintrc.json new file mode 100644 index 0000000..94702b9 --- /dev/null +++ b/.stylelintrc.json @@ -0,0 +1,45 @@ +{ + "extends": [ + "stylelint-config-standard-scss", + "stylelint-config-sass-guidelines", + "stylelint-config-idiomatic-order" + ], + "plugins": [ + "stylelint-scss" + ], + "files": [ + "**/*.css", + "**/*.scss" + ], + "ignoreFiles": [ + "**/vendor/*.css", + "**/vendor/**/*.css", + "**/vendor/*.scss", + "**/vendor/**/*.scss", + "**/vendor/*.sass", + "**/vendor/**/*.sass", + "**/vendor/*.less", + "**/vendor/**/*.less" + ], + "customSyntax": "postcss-scss", + "rules": { + "declaration-property-value-no-unknown": true, + "selector-max-id": null, + "color-no-invalid-hex": true, + "order/properties-alphabetical-order": null, + "max-nesting-depth": 5, + "selector-max-compound-selectors": 5, + "declaration-colon-newline-after": null, + "value-list-comma-newline-after": null, + "scss/double-slash-comment-empty-line-before": [ + "always", + { + "ignore": [ + "between-comments", + "stylelint-commands", + "inside-block" + ] + } + ] + } +} \ No newline at end of file diff --git a/.vscode/settings.json b/.vscode/settings.json new file mode 100644 index 0000000..7636f13 --- /dev/null +++ b/.vscode/settings.json @@ -0,0 +1,22 @@ +{ + "workbench.colorCustomizations": { + "activityBar.activeBackground": "#962a40", + "activityBar.background": "#962a40", + "activityBar.foreground": "#e7e7e7", + "activityBar.inactiveForeground": "#e7e7e799", + "activityBarBadge.background": "#40952a", + "activityBarBadge.foreground": "#e7e7e7", + "commandCenter.border": "#e7e7e799", + "sash.hoverBorder": "#962a40", + "statusBar.background": "#6e1f2f", + "statusBar.foreground": "#e7e7e7", + "statusBarItem.hoverBackground": "#962a40", + "statusBarItem.remoteBackground": "#6e1f2f", + "statusBarItem.remoteForeground": "#e7e7e7", + "titleBar.activeBackground": "#6e1f2f", + "titleBar.activeForeground": "#e7e7e7", + "titleBar.inactiveBackground": "#6e1f2f99", + "titleBar.inactiveForeground": "#e7e7e799" + }, + "peacock.remoteColor": "#6e1f2f" +} diff --git a/README.md b/README.md index 68d37bd..48884dc 100644 --- a/README.md +++ b/README.md @@ -1,23 +1,59 @@ # GEN GAME WEB + ## Installation -``` + +``` Bash cp .env.example .env php artisan key:generate /!\ bien sauvegarder la key -php artisan migrate --seed +php artisan migrate:fresh --step +# Seulement pour developper un theme par exemple +php artisan db:seed --class DevelopmentSeeder +php artisan uwil:user:create ``` ## Création du compte Admin -``` -php artisan create:admin + +``` Bash +php artisan uwil:user:create ``` -## CRON -``` -php artisan users:deletenc à mettre 1 fois par jour +## Ajouter Parametrage du jeu + +**Les lots sont à ajouter avant de générer les instants gagants**. En effet les instants gagants sont liés à des lots. + + +## Générer des coupons et les mails + +``` Bash +artisan queue:work ``` -## TODO -``` -- SH - Soucis de connexion / déconnexion quand le jeu est terminé et que l'adresse du jeu redirige vers une autre adresse : si on se déconnecte et qu'on revient sur le bo, on est toujours connecté - -> MJ - Pour que le cookie soit delete il ne faut pas renvoyer un 302 juste apres le disconnect +En cas de manipulation pourrie, penser a vider le cache pour supprimer le lock +sur le job de generation des codes. + +## THEME + +### Instalation + +Pour installer le theme bien **mettre à jour les submodules avec git**, +`git submodule update init --recursive` + +puis utiliser la commande `php artisan theme:switch NOM_DU_THEME` et `php artisan optimize:clear && php artisan optimize` + +Pour mettre a jour la liste des themes : + +### Mise à jour + +**Note** : cette partie n'est pas encore certaine. + +- Mettre à jour `git submodule update --remote --merge resources/theme` + Ou + +``` Bash +cd resources/themes; +git pull origin main; +cd ../..; +git add resources/themes ``` + +Puis commit. diff --git a/app/Auth/CrmUserProvider.php b/app/Auth/CrmUserProvider.php new file mode 100644 index 0000000..9eee664 --- /dev/null +++ b/app/Auth/CrmUserProvider.php @@ -0,0 +1,179 @@ +getCustomer($credentials['email']); + + if (!$crmCustomer) { + // * Customer is not found on CRM. + return null; + } + $model = $this->createLocalCustomer($crmCustomer); + } + + return $model; + } catch (ApiErrorException $e) { + // * Customer is not found. + if ($e->getApiError()->equals(ApiError::modelNotFound())) { + return null; + } + report($e); + Log::error('Unhandled response ' . $e->getApiError()->label); + } catch (CrmException | \Exception $e) { + report($e); + // Une erreur critique est survenue avec la CRM. + return null; + } //end try + Log::error(__CLASS__ . '::retrieveByCredentials reached end of possibilities.'); + return null; + } + + /** + * Validate a user against the given credentials. + * + * @param UserContract $model + * @param array $credentials + * @return boolean + * @throws \RuntimeException If model provided is not a Customer or connection to server fails. + * @throws \LDC\LDCCRM\Exceptions\CrmException On CRM call error. + * @throws \Exception On CRM call error. + */ + public function validateCredentials(UserContract $model, array $credentials) + { + /** @var \Illuminate\Database\Eloquent\Model $model */ + if (\get_class($model) !== $this->usedModel) { + throw new \RuntimeException('Cannot authenticate any thing else than ' . $this->usedModel); + } + + try { + /** @var \LDC\LDCCRM\CrmApiV2 */ + $crm = app('crmAPI'); + + // * If has trait soft delete and customer trashed, then restore customer. + if ( + \in_array(\Illuminate\Database\Eloquent\SoftDeletes::class, \class_uses_recursive($model)) and + $model->trashed() + ) { + $model->restore(); + } + + // * Ne devrait pas survenir, $crm->login throws ApiError::authFailed() + return $crm->login($credentials['email'], $credentials['password']); + } catch (ApiErrorException $e) { + if (!$model->hashcode or !CrmCustomer::find($model->hashcode)) { + $model->forceDelete(); + return false; + } + if ($e->getApiError()->equals(ApiError::authFailed())) { + return false; + } + // ! Assert Authenticable model must be valided (MustValidate trait). + if ($e->getApiError()->equals(ApiError::customerNotActivated())) { + Session::flash('warning', \trans('Vous devez activer votre compte')); + return true; + } + } catch (CrmException | \Exception $e) { + report($e); + if (config('app.debug')) { + throw $e; + } + return false; + } //end try + + Log::error(__CLASS__ . '::validateCredentials reached end of possibilities.'); + return null; + } + + /** + * Create a local customer + * + * @param \LDC\LDCCRM\Models\Customer $crmCustomer + * @return \Illuminate\Database\Eloquent\Model + * @throws \Throwable If saving to DB failed. + */ + private function createLocalCustomer(\LDC\LDCCRM\Models\Customer $crmCustomer): Model + { + /** @var \Illuminate\Database\Eloquent\Model $model */ + $model = $this->usedModel::firstOrNew([ + 'email' => $crmCustomer->email + ]); + $model->hashcode = $crmCustomer->hashcode; + $model->email_verified_at = $crmCustomer->status ? now() : null; + $model->saveOrFail(); + + return $model; + } + + /** + * Retrieve a trashed customer by the given credentials. + * + * @param array $credentials + * @return \Illuminate\Contracts\Auth\Authenticatable|null + * @throws \ErrorException If cannot connect to LDAP. + */ + private function retrieveTrashed(array $credentials): ?Authenticatable + { + // * Make changes + if (empty($credentials)) { + return null; + } + + // First we will add each credential element to the query as a where clause. + // Then we can execute the query and, if we found a customer, return it in a + // Eloquent User "model" that will be utilized by the Guard instances. + $query = $this->createModel()->newQuery(); + + foreach ($credentials as $key => $value) { + if (!Str::contains($key, 'password')) { + $query->where($key, $value); + } + } + + /** @var \App\Models\Customer|null $customer */ + return $query->withTrashed()->first(); + } +} diff --git a/app/Auth/ReactivateCustomerProvider.php b/app/Auth/ReactivateCustomerProvider.php new file mode 100644 index 0000000..4bfa1df --- /dev/null +++ b/app/Auth/ReactivateCustomerProvider.php @@ -0,0 +1,71 @@ +createModel()->newQuery(); + + foreach ($credentials as $key => $value) { + if (!Str::contains($key, 'password')) { + $query->where($key, $value); + } + } + + /** @var \App\Models\Customer|null $customer */ + return $query->withTrashed()->first(); + } + + /** + * Validate a customer against the given credentials. + * + * @param \Illuminate\Contracts\Auth\Authenticatable $customer + * @param array $credentials + * @return boolean + * @throws \ErrorException If model provided is not a Customer or connection to server fails. + */ + public function validateCredentials(Authenticatable $customer, array $credentials) + { + /** @var \App\Models\Customer $customer */ + if ($customer instanceof Customer) { + throw new \ErrorException('Cannot authenticate any thing else than ' . Customer::class); + } + + $plain = $credentials['password']; + + /** @var \App\Models\Customer $customer */ + if ($this->hasher->check($plain, $customer->getAuthPassword())) { + // * Restore customer + return boolval($customer->restore()); + } + + return false; + } +} diff --git a/app/Casts/AsArrayOfDiscount.php b/app/Casts/AsArrayOfDiscount.php new file mode 100644 index 0000000..ca92c0a --- /dev/null +++ b/app/Casts/AsArrayOfDiscount.php @@ -0,0 +1,46 @@ + + * @phpcs:disable Squiz.Commenting.FunctionComment.TypeHintMissing + */ + public function get($model, string $key, $value, array $attributes): array + { + // phpcs:enable + return \collect(\json_decode($value, true))->map(function ($input) use ($model, $key, $attributes) { + $inputCast = new AsDiscount(); + return $inputCast->get($model, $key, \json_encode($input), $attributes); + })->all(); + } + + /** + * Prepare the given value for storage. + * + * @param \Illuminate\Database\Eloquent\Model $model + * @param string $key + * @param \App\Lib\Discount $value + * @param array $attributes + * @return string Json encoded array<\App\Lib\Discount> + * @phpcs:disable Squiz.Commenting.FunctionComment.TypeHintMissing + */ + public function set($model, string $key, $value, array $attributes) + { + // phpcs:enable + return \json_encode(\collect($value)->map(function ($input) use ($model, $key, $attributes) { + $inputCast = new AsDiscount(); + return \json_decode($inputCast->set($model, $key, $input, $attributes)); + })->all()); + } +} diff --git a/app/Casts/AsDiscount.php b/app/Casts/AsDiscount.php new file mode 100644 index 0000000..3310b58 --- /dev/null +++ b/app/Casts/AsDiscount.php @@ -0,0 +1,67 @@ + $data */ + $inputData = \json_decode($value, true); + return Discount::make(...\array_values($inputData)); + } + + /** + * Prepare the given value for storage. + * + * @param \Illuminate\Database\Eloquent\Model $model + * @param string $key + * @param mixed $value + * @param array $attributes + * @return string Json encoded \App\Lib\Inputs\Definition\Input + * @phpcs:disable Squiz.Commenting.FunctionComment.TypeHintMissing + * @phpcs:disable Generic.CodeAnalysis.UnusedFunctionParameter.FoundInImplementedInterfaceBeforeLastUsed + * @phpcs:disable Generic.CodeAnalysis.UnusedFunctionParameter.FoundInImplementedInterfaceAfterLastUsed + */ + public function set($model, string $key, $value, array $attributes) + { + // phpcs:enable + $this->assertIsInput($value); + /** @var \App\Lib\Discount $value */ + return $value->toJson(); + } + + /** + * Assert is instance of \App\Lib\Discount + * + * @param mixed $value + * @return void + * @throws \RuntimeException If the value is not an input. + */ + private function assertIsInput(mixed $value): void + { + if (!\is_object($value) or !($value instanceof Discount)) { + $value = \json_encode($value); + throw new \RuntimeException( + __CLASS__ . ' needs value to be array of \'' . Discount::class . "' given is {$value}" + ); + } + } +} diff --git a/app/Casts/Ip.php b/app/Casts/Ip.php new file mode 100644 index 0000000..bef7629 --- /dev/null +++ b/app/Casts/Ip.php @@ -0,0 +1,61 @@ + $attributes + * @return \TGet|null + * @phpcs:disable Generic.CodeAnalysis.UnusedFunctionParameter.FoundInImplementedInterfaceBeforeLastUsed + * @phpcs:disable Generic.CodeAnalysis.UnusedFunctionParameter.FoundInImplementedInterfaceAfterLastUsed + */ + public function get(Model $model, string $key, mixed $value, array $attributes) + { + // phpcs:enable + return \IPLib\Factory::parseAddressString($value); + } + + /** + * Transform the attribute to its underlying model values. + * + * @param \Illuminate\Database\Eloquent\Model $model + * @param string $key + * @param \TSet|null $value + * @param array $attributes + * @return mixed + * @throws \RuntimeException If value is not or instance of \IPLib\Address\AddressInterface. + * @phpcs:disable Generic.CodeAnalysis.UnusedFunctionParameter.FoundInImplementedInterfaceAfterLastUsed + * @phpcs:disable Generic.CodeAnalysis.UnusedFunctionParameter.FoundInImplementedInterfaceBeforeLastUsed + */ + public function set(Model $model, string $key, mixed $value, array $attributes) + { + // phpcs:enable + if (is_null($value)) { + return null; + } + if (is_string($value)) { + $value = \IPLib\Factory::parseAddressString($value); + } + if (!is_object($value) or !($value instanceof \IPLib\Address\AddressInterface)) { + throw new \RuntimeException( + "{$key} has to be instance of " . + \IPLib\Address\AddressInterface::class + ); + } + $value->getAddressType(); + return $value; + } +} diff --git a/app/Console/Commands/CreateAdmin.php b/app/Console/Commands/CreateAdmin.php deleted file mode 100644 index 89584dc..0000000 --- a/app/Console/Commands/CreateAdmin.php +++ /dev/null @@ -1,57 +0,0 @@ -ask('What is the firstname?', 'Equipe'); - $lastname = $this->ask('What is the lastname?', 'Web'); - $email = $this->ask('What is the email?', 'equipe.web@ldc.fr'); - $pwd = $this->secret('What is the password?'); - $role = $this->ask('Role ?', '1'); - - $user = new User(); - $user->firstname = $firstname; - $user->lastname = $lastname; - $user->birth_date = now(); - $user->email = $email; - $user->password = Hash::make($pwd); - $user->address = "-"; - $user->town = "Le Mans"; - $user->postal_code = "72000"; - $user->country = "France"; - $user->email_verify_token = "-"; - $user->email_verified = 1; - $user->role = $role; - $user->save(); - - $this->info('User created.'); - - return 0; - } -} diff --git a/app/Console/Commands/DeleteNotConfirmedUser.php b/app/Console/Commands/DeleteNotConfirmedUser.php deleted file mode 100644 index b009a3a..0000000 --- a/app/Console/Commands/DeleteNotConfirmedUser.php +++ /dev/null @@ -1,39 +0,0 @@ -subDay()]])->get(); - foreach ($users as $user) { - $user->delete(); - } - - return 0; - } -} diff --git a/app/Console/Commands/ExportCodesUniques.php b/app/Console/Commands/ExportCodesUniques.php deleted file mode 100644 index b9024b5..0000000 --- a/app/Console/Commands/ExportCodesUniques.php +++ /dev/null @@ -1,192 +0,0 @@ -ask("Combien de code doivent être exporté ?"); - while (empty(intval($nbCodeTot)) || !is_int(intval($nbCodeTot))) { - $this->info("Valeur incorrect, veuillez entrer un nombre entier."); - $nbCodeTot = $this->ask("Veuillez entrer une nouvelle valeur"); - } - $nbCodeTot = intval($nbCodeTot); - - // Nombre de code par fichier. - $nbCodeFic = $this->ask("Combien de code par fichier ?"); - while (empty(intval($nbCodeFic)) || !is_int(intval($nbCodeFic))) { - $this->info("Valeur incorrect, veuillez entrer un nombre entier."); - $nbCodeFic = $this->ask("Veuillez entrer une nouvelle valeur"); - } - $nbCodeFic = intval($nbCodeFic); - - // Nombre de code par ligne. - $nbCodeLigne = $this->ask("Combien de code par ligne dans un fichier ?"); - while (empty(intval($nbCodeLigne)) || !is_int(intval($nbCodeLigne))) { - $this->info("Valeur incorrect, veuillez entrer un nombre entier."); - $nbCodeLigne = $this->ask("Veuillez entrer une nouvelle valeur"); - } - $nbCodeLigne = intval($nbCodeLigne); - - $totalExportedCodes = 0; - $currentFilename = 1; - $currentExportedCodes = 0; - $currentLineCodes = ($nbCodeLigne === 1 ? 1 : 0); - - $this->info("Traitement en cours, veuillez patienter..."); - - $this->process( - $nbCodeFic, - $nbCodeTot, - $nbCodeLigne, - $totalExportedCodes, - $currentFilename, - $currentExportedCodes, - $currentLineCodes - ); - - $this->info("Fin du traitement, creation de l'archive..."); - - // Compression des fichiers. - $zip = new \ZipArchive(); - if ( - $zip->open( - storage_path('export_codes_uniques/') . "CodesUniques_" . date('dmY') . ".zip", - \ZipArchive::CREATE - ) === true - ) { - if ($handle = opendir(storage_path('export_codes_uniques/tmp'))) { - while (false !== ($file_to_zip = readdir($handle))) { - if (pathinfo($file_to_zip, PATHINFO_EXTENSION) != 'csv') { - continue; - } - $zip->addFile(storage_path('export_codes_uniques/tmp/') . $file_to_zip, "$file_to_zip"); - } - closedir($handle); - } - $zip->close(); - } - - // On vide le dossier temporaire des fichiers csv. - if ($handle = opendir(storage_path('export_codes_uniques/tmp'))) { - while (false !== ($file_to_zip = readdir($handle))) { - if (pathinfo($file_to_zip, PATHINFO_EXTENSION) != 'csv') { - continue; - } - unlink(storage_path('export_codes_uniques/tmp/') . $file_to_zip); - } - closedir($handle); - } - - $this->info("L'archive CodesUniques_" . date('dmY') . ".zip a ete creer."); - - // Envoi de mail à MAIL_ADMIN avec le nom du ZIP "CodesUniques_". date('dmY') .".zip" . - Mail::to(config('mail.MAIL_ADMIN')) - ->send(new MailExportCodesUniques(app(Settings::class)->name, $nbCodeFic, $nbCodeTot, $nbCodeLigne)); - - return 0; - } - - private function process($nbCodeFic, $nbCodeTot, $nbCodeLigne, $totalExportedCodes, $currentFilename, $currentExportedCodes, $currentLineCodes, $lastExportedCodeId = null) - { - $paginate = config('codes.paginate'); - - if ($nbCodeTot < $paginate) { - $nbCodeToRetrieve = $nbCodeTot; - } else { - if ($totalExportedCodes + $paginate > $nbCodeTot) { - $nbCodeToRetrieve = $nbCodeTot - $totalExportedCodes; - } else { - $nbCodeToRetrieve = $paginate; - } - } - - if ($lastExportedCodeId === null) { - $codes = Code::where('code_exported', 0)->take($nbCodeToRetrieve)->get(); - } else { - $codes = Code::where([ - ['code_exported', '=', 0], - ['id', '>', $lastExportedCodeId] - ])->take($nbCodeToRetrieve)->get(); - } - - $countCodes = count($codes); - - $exportedCodesId = []; - - foreach ($codes as $k => $code) { - if ($currentExportedCodes < $nbCodeTot) { - if ($currentLineCodes === ($nbCodeLigne === 1 ? 1 : $nbCodeLigne - 1)) { - file_put_contents( - storage_path('export_codes_uniques/tmp/') . $currentFilename . ".csv", - $code->code_unique . PHP_EOL, - FILE_APPEND - ); - $totalExportedCodes++; - $currentExportedCodes++; - $currentLineCodes = ($nbCodeLigne === 1 ? 1 : 0); - } else { - file_put_contents( - storage_path('export_codes_uniques/tmp/') . $currentFilename . ".csv", - $code->code_unique . ";", - FILE_APPEND - ); - $totalExportedCodes++; - $currentExportedCodes++; - $currentLineCodes++; - } - - array_push($exportedCodesId, $code->id); - $lastExportedCodeId = $code->id; - - if ($currentExportedCodes === $nbCodeFic) { - $currentFilename++; - $currentExportedCodes = 0; - } - if ((($k + 1) === $countCodes) && $totalExportedCodes < $nbCodeTot) { - Code::whereIn('id', $exportedCodesId)->update(['code_exported' => 1]); - return $this->process( - $nbCodeFic, - $nbCodeTot, - $nbCodeLigne, - $totalExportedCodes, - $currentFilename, - $currentExportedCodes, - $currentLineCodes, - $lastExportedCodeId - ); - } - if (($k + 1) === $countCodes) { - Code::whereIn('id', $exportedCodesId)->update(['code_exported' => 1]); - } - } //end if - }//end foreach - } -} diff --git a/app/Console/Commands/TestMail.php b/app/Console/Commands/TestMail.php new file mode 100644 index 0000000..176f35a --- /dev/null +++ b/app/Console/Commands/TestMail.php @@ -0,0 +1,35 @@ +to('equipe.web@ldc.fr')->subject('Test Email'); + }); + } +} diff --git a/app/Console/Commands/Theme/SwitchCommand.php b/app/Console/Commands/Theme/SwitchCommand.php new file mode 100644 index 0000000..b746674 --- /dev/null +++ b/app/Console/Commands/Theme/SwitchCommand.php @@ -0,0 +1,77 @@ + fn () => search( + label: 'Search for a theme:', + placeholder: 'default-theme', + options: fn (string $value): array => \collect(File::directories(\resource_path('theme'))) + ->map(fn (string $dir_path) => \pathinfo($dir_path, \PATHINFO_BASENAME)) + ->filter(fn (string $dir_path) => $value ? Str::of($dir_path)->contains($value) : true) + ->filter(fn (string $dir_path) => $dir_path !== 'mounted') + ->all() + ) + ]; + } + + /** + * Execute the console command. + * + * @return void + */ + public function handle(): void + { + $mount_path = \resource_path('theme/mounted'); + + /** @var string */ + $theme = $this->argument('theme'); + + if (File::exists($mount_path)) { + \throw_if( + empty(ToolboxHelper::runConsoleCommand("readlink {$mount_path}", false)), + "{$mount_path} is not a link, cannot remove it" + ); + \throw_if( + !File::delete($mount_path), + "{$mount_path} Failed to remove file" + ); + } + + File::link(\resource_path("theme/{$theme}"), $mount_path); + + Artisan::call('optimize:clear'); + } +} diff --git a/app/Console/Commands/UserCreate.php b/app/Console/Commands/UserCreate.php new file mode 100644 index 0000000..01d6ee9 --- /dev/null +++ b/app/Console/Commands/UserCreate.php @@ -0,0 +1,231 @@ +first_name = null; + $this->addFirstName(); + + $this->last_name = null; + $this->addLastName(); + + $this->email = null; + $this->addEmail(); + + $this->password = null; + $this->addPassword(); + + $this->role = null; + $this->addRole(); + + $user = new User([ + 'first_name' => $this->first_name, + 'last_name' => $this->last_name, + 'email' => $this->email, + 'password' => $this->password, + 'role' => $this->role, + 'published' => true, + 'published_at' => Carbon::now(), + ]); + $user->saveOrFail(); + + $this->info('User created 👌'); + + return 0; + } + + /** + * Add a first name to the user. + * + * @return void + */ + private function addFirstName(): void + { + while (is_null($this->first_name)) { + try { + $tmp = $this->ask('Type the wanted user first name', 'Admin'); + $validator = Validator::make(['first_name' => $tmp], [ + 'first_name' => 'required|min:3|max:255' + ]); + $validator->validate(); + $this->first_name = $tmp; + } catch (ValidationException $e) { + $this->error(sprintf( + 'Please provide a valid first name %s', + \implode(',', collect($e->errors())->flatten()->all()) + )); + continue; + } //end try + }; //end while + } + + /** + * Add a last name to the user. + * + * @return void + */ + private function addLastName(): void + { + while (is_null($this->last_name)) { + try { + $tmp = $this->ask('Type the wanted user last name', 'Saïtama'); + $validator = Validator::make(['last_name' => $tmp], [ + 'last_name' => 'required|min:3|max:255' + ]); + $validator->validate(); + $this->last_name = $tmp; + } catch (ValidationException $e) { + $this->error(sprintf( + 'Please provide a valid last_name %s', + \implode(',', collect($e->errors())->flatten()->all()) + )); + continue; + } //end try + }; //end while + } + + /** + * Add an email to the user. + * + * @return void + */ + private function addEmail(): void + { + while (is_null($this->email)) { + try { + $tmp = $this->ask('Type the wanted user email', 'equipe.web@ldc.fr'); + $validator = Validator::make(['email' => $tmp], [ + 'email' => 'required|unique:users,email|email:rfc,dns' + ]); + $validator->validate(); + $this->email = $tmp; + } catch (ValidationException $e) { + $this->error(sprintf( + 'Please provide a valid email %s', + \implode(',', collect($e->errors())->flatten()->all()) + )); + continue; + } //end try + }; //end while + } + + /** + * Add a password to the user. + * + * @return void + */ + private function addPassword(): void + { + while ( + ($this->password = $this->secret( + (!\is_null($this->password) ? 'Failed to confirm, ' : '') . 'Type the wanted user password' + )) !== $this->secret('Confirm the password') + ) { + continue; + }; //end while + } + + /** + * Add a role to the user. + * + * @return void + */ + private function addRole(): void + { + while (is_null($this->role)) { + try { + $tmp = $this->choice( + 'Select his role', + [RoleEnum::conceptor->label(), RoleEnum::admin->label(), RoleEnum::marketing->label()], + RoleEnum::marketing->label(), + $maxAttempts = null, + $allowMultipleSelections = false + ); + if ($tmp === RoleEnum::conceptor->label()) { + $tmp = RoleEnum::conceptor; + } + if ($tmp === RoleEnum::admin->label()) { + $tmp = RoleEnum::admin; + } + if ($tmp === RoleEnum::marketing->label()) { + $tmp = RoleEnum::marketing; + } + $validator = Validator::make(['role' => $tmp], [ + 'role' => 'required' + ]); + $validator->validate(); + $this->role = $tmp; + } catch (ValidationException $e) { + $this->error(sprintf( + 'Please choose from the selection', + \implode(',', collect($e->errors())->flatten()->all()) + )); + continue; + } //end try + }; //end while + } +} diff --git a/app/Console/Kernel.php b/app/Console/Kernel.php index 687937a..84be6f8 100644 --- a/app/Console/Kernel.php +++ b/app/Console/Kernel.php @@ -22,6 +22,7 @@ class Kernel extends ConsoleKernel */ protected function schedule(Schedule $schedule) { + $schedule->job(DeleteOldCustomers::class)->dailyAt('22:50'); } /** diff --git a/app/Enums/ActivityLogs/ActivityLogsEventEnum.php b/app/Enums/ActivityLogs/ActivityLogsEventEnum.php new file mode 100644 index 0000000..ebb098c --- /dev/null +++ b/app/Enums/ActivityLogs/ActivityLogsEventEnum.php @@ -0,0 +1,46 @@ +name => 'Création', + self::updated->name => 'Mise à jour', + self::duplicated->name => 'Duplication', + self::deleted->name => 'Suppression', + ]; + + + /** + * Custom added classes definition + */ + private const BOOTSTRAPCLASS = [ + self::created->name => 'success', + self::updated->name => 'warning', + self::duplicated->name => 'secondary', + self::deleted->name => 'danger', + ]; + + /** + * Get Class + * + * @return string + */ + public function bootstrapClass(): string + { + return self::BOOTSTRAPCLASS[$this->name]; + } +} diff --git a/app/Enums/InputType.php b/app/Enums/InputType.php new file mode 100644 index 0000000..0b59d29 --- /dev/null +++ b/app/Enums/InputType.php @@ -0,0 +1,30 @@ +name => 'Mentions légales', + self::rules->name => 'Règlement', + self::confidentiality->name => 'Charte de confidentialité' + ]; +} diff --git a/app/Enums/Theme/BootstrapThemeEnum.php b/app/Enums/Theme/BootstrapThemeEnum.php new file mode 100644 index 0000000..f1f3725 --- /dev/null +++ b/app/Enums/Theme/BootstrapThemeEnum.php @@ -0,0 +1,21 @@ +name => 'Light', + self::dark->name => 'Dark', + ]; +} diff --git a/app/Enums/Users/RoleEnum.php b/app/Enums/Users/RoleEnum.php new file mode 100644 index 0000000..c6ad62d --- /dev/null +++ b/app/Enums/Users/RoleEnum.php @@ -0,0 +1,23 @@ +name => 'Concepteur', + self::admin->name => 'Administrator', + self::marketing->name => 'Marketing', + ]; +} diff --git a/app/Exceptions/Handler.php b/app/Exceptions/Handler.php index bf6a0bd..220b3d7 100644 --- a/app/Exceptions/Handler.php +++ b/app/Exceptions/Handler.php @@ -2,26 +2,47 @@ namespace App\Exceptions; -use Kwaadpepper\ExceptionHandler\Exceptions\ExceptionHandler; +use Illuminate\Foundation\Exceptions\Handler as ExceptionHandler; +use Throwable; class Handler extends ExceptionHandler { /** - * A list of the exception types that are not reported. + * A list of exception types with their corresponding custom log levels. * - * @var array + * @var array, \Psr\Log\LogLevel::*> */ - protected $dontReport = [ - RedirectTo::class - ]; + protected $levels = []; /** - * A list of the inputs that are never flashed for validation exceptions. + * A list of the exception types that are not reported. * - * @var array + * @var array> + */ + protected $dontReport = []; + + /** + * A list of the inputs that are never flashed to the session on validation exceptions. + * + * @var array */ protected $dontFlash = [ + 'current_password', 'password', 'password_confirmation', ]; + + /** + * Register the exception handling callbacks for the application. + * + * @return void + */ + public function register() + { + $this->reportable(function (Throwable $e) { + if (app()->bound('sentry')) { + app('sentry')->captureException($e); + } + }); + } } diff --git a/app/Http/Controllers/Bo/ActivityLogController.php b/app/Http/Controllers/Bo/ActivityLogController.php new file mode 100644 index 0000000..7f79987 --- /dev/null +++ b/app/Http/Controllers/Bo/ActivityLogController.php @@ -0,0 +1,71 @@ +authorize('isConceptor'); + /** @var \Illuminate\Database\Eloquent\Builder $query */ + $query = ActivityLog::query()->with('user'); + + /** @var string $search Search field */ + $search = $request->search; + if ($search) { + $this->searchQuery( + $query, + $search, + null, + 'model_class', + ); + } + $searchFields = \implode(', ', [ + trans('validation.custom.target'), + ]); + + /** Sort columns with a query */ + $this->sortQuery($query); + + /** Custom pagination */ + $activitylogModels = $this->paginate($query); + + return view('back::pages.activity_logs.index', compact('activitylogModels', 'search', 'searchFields')); + } + + /** + * Show the form for editing the specified resource. + * + * @param App\Models\ActivityLog $activity_log + * @return \Illuminate\Contracts\View\View + */ + public function show(ActivityLog $activity_log): \Illuminate\Contracts\View\View + { + $this->authorize('isConceptor'); + $targetModelClass = $activity_log->model_class; + $targetModel = $activity_log->model_class::where( + (new $targetModelClass())->getRouteKeyName(), + $activity_log->model_id + )->first(); + + return view('back::pages.activity_logs.show', [ + 'activitylogModel' => $activity_log, + 'targetModel' => $targetModel, + ]); + } +} diff --git a/app/Http/Controllers/Bo/Auth/LoginController.php b/app/Http/Controllers/Bo/Auth/LoginController.php new file mode 100644 index 0000000..7c9aad3 --- /dev/null +++ b/app/Http/Controllers/Bo/Auth/LoginController.php @@ -0,0 +1,72 @@ +middleware('guest:backend')->except('logout'); + } + + /** + * Get the guard to be used during authentication. + * + * @return \Illuminate\Contracts\Auth\StatefulGuard + */ + protected function guard(): StatefulGuard + { + return Auth::guard('backend'); + } + + /** + * Show the application's login form. + * + * @return \Illuminate\Contracts\View\View + */ + public function showLoginForm(): View + { + return view('back::auth.login'); + } + + /** + * Where to redirect users after login. + * + * @return string + */ + protected function redirectTo(): string + { + return response()->redirectToIntended()->getTargetUrl(); + } + + /** + * Attempt to log the user into the application. + * + * @param \Illuminate\Http\Request $request + * @return boolean + */ + protected function attemptLogin(Request $request) + { + $credentials = $this->credentials($request); + // * Attempt login only using published users. + $credentials['published'] = true; + return $this->guard()->attempt( + $credentials, + $request->boolean('remember') + ); + } +} diff --git a/app/Http/Controllers/Bo/Auth/ResetPasswordController.php b/app/Http/Controllers/Bo/Auth/ResetPasswordController.php new file mode 100644 index 0000000..03340fc --- /dev/null +++ b/app/Http/Controllers/Bo/Auth/ResetPasswordController.php @@ -0,0 +1,33 @@ +authorizeResource(BannedIp::class); } - public function saveDatas(Request $request) + /** + * Display a listing of the resource. + * + * @param \Illuminate\Http\Request $request + * @return \Illuminate\Contracts\View\View + */ + public function index(Request $request): \Illuminate\Contracts\View\View { - $ips = $request->ips; + /** @var \Illuminate\Database\Eloquent\Builder $bannedipModels */ + $bannedipModels = BannedIp::query(); - for ($i = 0; $i < count($ips); $i++) { - if (!empty($ips[$i]["ip"])) { - $ip = BannedIp::updateOrCreate(['ip' => $ips[$i]["ip"]]); - } else { - unset($ips[$i]); - $i--; - } + /** @var string $search Search field */ + $search = $request->search; + if ($search) { + $this->searchQuery( + $bannedipModels, + $search, + null, + 'ip', + ); } + $searchFields = trans('validation.custom.ip'); - return $ips; + /** Sort columns with a query */ + $this->sortQuery($bannedipModels); + + /** Custom pagination */ + $bannedipModels = $this->paginate($bannedipModels); + + return view('back::pages.banned-ips.index', compact('bannedipModels', 'search', 'searchFields')); } - public function destroy(Request $request) + /** + * Show the form for creating a new resource. + * + * @param \App\Models\BannedIp $banned_ip + * @return \Illuminate\Contracts\View\View + */ + public function create(BannedIp $banned_ip): \Illuminate\Contracts\View\View { - $ip = BannedIp::where("ip", $request->ip); - $ip->delete(); + return view('back::pages.banned-ips.create', [ + 'bannedipModel' => $banned_ip, + ]); + } - return "Suppression terminée !"; + /** + * Store a newly created resource in storage. + * + * @param \App\Http\Requests\Bo\BannedIps\StoreBannedIpRequest $request + * @return \Illuminate\Http\RedirectResponse + */ + public function store(StoreBannedIpRequest $request): \Illuminate\Http\RedirectResponse + { + return DB::transaction(function () use ($request) { + $banned_ip = new BannedIp(); + $banned_ip->fill($request->validated()); + if ($banned_ip->saveOrFail()) { + return redirect() + ->route('bo.banned_ips.edit', $banned_ip) + ->with('success', trans( + 'crud.messages.has_been_created', + ['model' => Str::singular(trans('models.classes.banned_ips'))] + )); + } + return redirect() + ->back() + ->with('error', trans( + 'crud.messages.cannot_be_created', + ['model' => Str::singular(trans('models.classes.banned_ips'))] + )); + }); + } + + /** + * Show the form for editing the specified resource. + * + * @param \App\Models\BannedIp $banned_ip + * @return \Illuminate\Contracts\View\View + */ + public function edit(BannedIp $banned_ip): \Illuminate\Contracts\View\View + { + return view('back::pages.banned-ips.edit', [ + 'bannedipModel' => $banned_ip, + ]); + } + + /** + * Update the specified resource in storage. + * + * @param \App\Http\Requests\Bo\BannedIps\UpdateBannedIpRequest $request + * @param \App\Models\BannedIp $banned_ip + * @return \Illuminate\Http\RedirectResponse + */ + public function update(UpdateBannedIpRequest $request, BannedIp $banned_ip): \Illuminate\Http\RedirectResponse + { + return DB::transaction(function () use ($request, $banned_ip) { + $banned_ip->fill($request->validated()); + if ($banned_ip->saveOrFail()) { + return redirect() + ->route('bo.banned_ips.edit', $banned_ip) + ->with('success', trans( + 'crud.messages.has_been_updated', + ['model' => Str::singular(trans('models.classes.banned_ips'))] + )); + } + return redirect() + ->back() + ->with('error', trans( + 'crud.messages.cannot_be_updated', + ['model' => Str::singular(trans('models.classes.banned_ips'))] + )); + }); + } + + /** + * Remove the specified resource from storage. + * + * @param \App\Models\BannedIp $banned_ip + * @return \Illuminate\Http\RedirectResponse + */ + public function destroy(BannedIp $banned_ip): \Illuminate\Http\RedirectResponse + { + return DB::transaction(function () use ($banned_ip) { + if ($banned_ip->deleteOrFail()) { + return redirect() + ->route('bo.banned_ips.index') + ->with('success', __( + 'crud.messages.has_been_deleted', + ['model' => Str::singular(trans('models.classes.banned_ips'))] + )); + } + return redirect() + ->back() + ->with('error', __( + ':crud.messages.cannot_be_deleted', + ['model' => Str::singular(trans('models.classes.banned_ips'))] + )); + }); } } diff --git a/app/Http/Controllers/Bo/CodeController.php b/app/Http/Controllers/Bo/CodeController.php new file mode 100644 index 0000000..6841b1d --- /dev/null +++ b/app/Http/Controllers/Bo/CodeController.php @@ -0,0 +1,136 @@ +authorize('generate', Code::class); + /** @var \App\Models\Settings */ + $settings = app(Settings::class); + $nbCodeBase = Code::query()->count(); + $nbCodeUsed = Code::query()->whereHas( + 'participations', + operator: '>', + count: $settings->nb_unique_code_use + )->count(); + $nbCodeExported = Code::query()->where('code_exported', true)->count(); + $nbCodeRemainingToExport = Code::query()->where('code_exported', false)->count(); + return view('back::pages.codes.index', compact( + 'settings', + 'nbCodeBase', + 'nbCodeUsed', + 'nbCodeExported', + 'nbCodeRemainingToExport' + )); + } + + /** + * Run generate codes action + * + * @param \App\Http\Controllers\Bo\Codes\GenerateCodesRequest $request + * @return \Illuminate\Http\RedirectResponse + */ + public function generate(GenerateCodesRequest $request): \Illuminate\Http\RedirectResponse + { + $this->authorize('generate', Code::class); + Queue::push( + new ProcessUniqueCode( + intval($request->quantity), + config('codes.codeLength') + ) + ); + + return back()->with( + 'success', + trans( + // phpcs:ignore Generic.Files.LineLength.TooLong + 'La tache de génération à été ajoutée, un mail de notification sera envoyé à l\'adresse :email lorsque le traitement sera terminé.', + [ + 'email' => config('mail.admin') + ] + ) + ); + } + + /** + * Run export codes + * + * @param \App\Http\Requests\Bo\Codes\ExportCodesRequest $request + * @return \Illuminate\Http\RedirectResponse + */ + public function export(ExportCodesRequest $request): \Illuminate\Http\RedirectResponse + { + $this->authorize('export', Code::class); + Queue::push( + new ProcessExportCodesUniques( + intval($request->nb_code_fic), + intval($request->nb_code_tot), + intval($request->nb_code_ligne) + ) + ); + + return back()->with( + 'success', + // phpcs:ignore Generic.Files.LineLength.TooLong + 'L\'export des codes à commencé, un mail de notification sera envoyé à l\'adresse :email lorsque le traitement sera terminé.', + [ + 'email' => config('mail.admin') + ] + ); + } + + /** + * Search for a specific code. + * + * @param \App\Http\Requests\Bo\Codes\CodeSearchRequest $request + * @return \Illuminate\Contracts\View\View + */ + public function search(CodeSearchRequest $request): \Illuminate\Contracts\View\View + { + $this->authorize('search', Code::class); + $code = null; + try { + $code = Code::query()->where('id', Code::serialToInt($request->code))->first(); + } catch (\Throwable $e) { + if (\get_class($e) === SerialCasterException::class) { + $code = false; + } + } finally { + if ($code === false) { + \session()->flash('warning', trans('Code non valide.')); + } + if ($code === null) { + \session()->flash('warning', trans('Code introuvable.')); + } + } + + $used_counter = null; + if ($code) { + $used_counter = Participation::query() + ->whereHas('code', fn (Builder $q) => $q->where('id', $code->id)) + ->count(); + } + + return view('back::pages.codes.search', compact('code', 'used_counter')); + } +} diff --git a/app/Http/Controllers/Bo/CodesController.php b/app/Http/Controllers/Bo/CodesController.php deleted file mode 100644 index dfc7b83..0000000 --- a/app/Http/Controllers/Bo/CodesController.php +++ /dev/null @@ -1,104 +0,0 @@ -count(); - $nbCodeExported = Code::where('code_exported', 1)->count(); - $nbCodeRemainingToExport = Code::where('code_exported', 0)->count(); - return view('bo.codes.index', compact( - 'settings', - 'nbCodeBase', - 'nbCodeUsed', - 'nbCodeExported', - 'nbCodeRemainingToExport' - )); - } - - /** - * Run generate codes action - * - * @param GenerateCodesRequest $request - * @return \Illuminate\Http\RedirectResponse - */ - public function generate(GenerateCodesRequest $request) - { - ProcessUniqueCode::dispatch( - $request->quantity, - $request->code_length - ); - - return back()->with( - 'success', - "La génération à commencée, un mail de notification sera envoyé à l'adresse " . - config('mail.MAIL_ADMIN') . " lorsque le traitement sera terminé." - ); - } - - /** - * Run export codes - * - * @param ExportCodesRequest $request - * @return \Illuminate\Http\RedirectResponse - */ - public function export(ExportCodesRequest $request) - { - ProcessExportCodesUniques::dispatch( - intval($request->nb_code_fic), - intval($request->nb_code_tot), - intval($request->nb_code_ligne) - ); - - return back()->with( - 'success', - "L'export des codes à commencé, un mail de notification sera envoyé à l'adresse " . - config('mail.MAIL_ADMIN') . " lorsque le traitement sera terminé." - ); - } - - /** - * Search for a specific code. - * - * @param CodeSearchRequest $request - * @return \Illuminate\View\View|\Illuminate\Contracts\View\Factory - */ - public function search(CodeSearchRequest $request) - { - $code = null; - try { - $code = Code::whereId(Code::serialToInt($request->code))->first(); - } catch (\Throwable $e) { - if (\get_class($e) === SerialCasterException::class) { - $code = false; - } - } finally { - if ($code === false) { - \session()->flash('warning', trans('Code non valide.')); - } - if ($code === null) { - \session()->flash('warning', trans('Code introuvable.')); - } - } - return view('bo.codes.search', compact('code')); - } -} diff --git a/app/Http/Controllers/Bo/CodesEANController.php b/app/Http/Controllers/Bo/CodesEANController.php deleted file mode 100644 index 9cb79e9..0000000 --- a/app/Http/Controllers/Bo/CodesEANController.php +++ /dev/null @@ -1,49 +0,0 @@ -codes; - - for ($i = 0; $i < count($codes); $i++) { - $codeToInsert = !empty($codes[$i]["code"]) && !empty($codes[$i]["product"]); - if (isset($codes[$i]["id"]) && $codes[$i]["id"] !== null && $codeToInsert) { - $c = CodeEan::findOrFail($codes[$i]["id"]); - $c->code = $codes[$i]["code"]; - $c->product = $codes[$i]["product"]; - $c->save(); - } else { - if ($codeToInsert) { - $c = CodeEan::updateOrCreate(['code' => $codes[$i]["code"], 'product' => $codes[$i]["product"]]); - $codes[$i]["id"] = $c->id; - } else { - unset($codes[$i]); - $i--; - } - } - } - - return $codes; - } - - public function destroy(Request $request) - { - $code = CodeEan::findOrFail($request->id); - $code->delete(); - - return "Suppression terminée !"; - } -} diff --git a/app/Http/Controllers/Bo/ContentController.php b/app/Http/Controllers/Bo/ContentController.php deleted file mode 100644 index 3dcf5d9..0000000 --- a/app/Http/Controllers/Bo/ContentController.php +++ /dev/null @@ -1,25 +0,0 @@ -value; - $content->value = $value; - $content->save(); - - return redirect()->route('bo.content', $content->id)->with('success', 'Enregistré !'); - } - - return view('bo.content.manage', compact('content')); - } -} diff --git a/app/Http/Controllers/Bo/DashboardController.php b/app/Http/Controllers/Bo/DashboardController.php index 9e0d5c0..b5f7d99 100644 --- a/app/Http/Controllers/Bo/DashboardController.php +++ b/app/Http/Controllers/Bo/DashboardController.php @@ -6,65 +6,75 @@ use App\Http\Controllers\Controller; use App\Models\Participation; use App\Models\Settings; use Carbon\Carbon; +use Illuminate\Support\Arr; use Illuminate\Support\Facades\DB; class DashboardController extends Controller { - public function index() + /** + * Dashboard Page + * + * @return \Illuminate\Contracts\View\View + */ + public function index(): \Illuminate\Contracts\View\View { - // Pour les stats. - $settings = app(Settings::class); - $participations = Participation::selectRaw("COUNT(*) AS count, DATE(created_at) AS date") - ->groupByRaw("DATE(created_at)")->get(); - $participationsUniquePerDay = Participation::selectRaw("DISTINCT user_id AS user, COUNT(*) AS count, DATE(created_at) AS date") - ->groupByRaw("DATE(created_at), user")->get(); - $statsUnique = []; - foreach ($participationsUniquePerDay as $participationPerDay) { - $dateUnique = Carbon::parse($participationPerDay->date)->format('d/m/Y'); - $statsUnique[$dateUnique] = isset($statsUnique[$dateUnique]) ? $statsUnique[$dateUnique] + 1 : 1; - } - $participationsUnique = Participation::selectRaw("DISTINCT user_id AS user, COUNT(*) AS count") - ->groupBy("user")->orderBy("user")->get(); + // * Pour les stats. + /** @var \App\Models\Settings */ + $settings = app(Settings::class); + $avgParticipUser = 0; + $participationPeriod = []; + $statsUnique = []; + $query = DB::table((new Participation())->getTable()); + $dateFrmtr = function (object $row) { + $row->date = Carbon::parse($row->date)->isoFormat('DD/MM/YYYY'); + return $row; + }; - // Données calculées à afficher. - $totalParticipation = Participation::count(); - if (count($participationsUnique) > 0) { - $avgParticipUser = round($totalParticipation / count($participationsUnique), 1); - } else { - $avgParticipUser = 0; + /** @var \Illuminate\Support\Collection */ + $participationsPerDay = (clone $query) + ->selectRaw('COUNT(*) AS count, DATE(created_at) AS date') + ->groupByRaw('DATE(created_at)')->get()->map($dateFrmtr)->keyBy('date'); + + /** @var \Illuminate\Support\Collection */ + $participationsUniquePerDay = (clone $query) + ->selectRaw('DISTINCT customer_id AS user, COUNT(*) AS count, DATE(created_at) AS date') + ->groupByRaw('DATE(created_at), user')->get()->map($dateFrmtr); + + /** @var \Illuminate\Support\Collection */ + $participationsUniquePerCustomer = (clone $query) + ->selectRaw("DISTINCT customer_id AS user, COUNT(*) AS count") + ->groupBy('user')->orderBy('user')->get(); + + $participationsTotal = Participation::query()->count(); + + /** @var \Illuminate\Support\Collection 3 codes EAN les plus utilisés */ + $codesEan = (clone $query) + ->selectRaw('COUNT(product_id) AS nb_usage, product_id') + ->groupBy('product_id') + ->orderByDesc('nb_usage')->limit(3)->get(); + + $participationsUniquePerDay->each(function (object $row) use (&$statsUnique) { + Arr::set($statsUnique, $row->date, (Arr::get($statsUnique, $row->date) ?? 0) + 1); + }); + + // * Calcul participation moyenne par utilisateur. + if ($participationsUniquePerCustomer->count() > 0) { + $avgParticipUser = round($participationsTotal / $participationsUniquePerCustomer->count(), 1); } - // Tableau des dates comprises dans la table participation. - foreach ($participations as $participation) { - $datesParticipations[Carbon::parse($participation->date)->format('d/m/Y')] = $participation->count; - } + // * Création des tableaux avec toutes les dates depuis le début du jeu + // * et le nombre de participations associées pour le graph JS. + $start_date = $settings->start_date; + $end_date = now()->lt($settings->end_date) ? now() : $settings->end_date; + $dates = $participationsPerDay->keys(); + $count = $participationsPerDay->pluck('count'); + $countUnique = $dates->map(fn (string $formated_date) => Arr::get($statsUnique, $formated_date, 0)); - // Création des tableaux avec toutes les dates depuis le début du jeu et le nombre de participations associées. - $date = Carbon::parse($settings->start_date); - $dateFin = now() < $settings->end_date ? Carbon::now() : Carbon::parse($settings->end_date); - - // Récupération des 3 codes EAN les plus utilisés. - $codesEan = Participation::select( - DB::raw('COUNT(code_ean_id) AS nb_usage, code_ean_id') - )->groupBy('code_ean_id')->orderByDesc('nb_usage')->limit(3)->get(); - - // Génération des tableaux de date depuis le début du jeu. - $dates = []; - $count = []; - $countUnique = []; - while ($dateFin > $date) { - $dates[] = $date->format('d/m/Y'); - $count[] = isset($datesParticipations[$date->format('d/m/Y')]) ? - $datesParticipations[$date->format('d/m/Y')] : 0; - $countUnique[] = isset($statsUnique[$date->format('d/m/Y')]) ? $statsUnique[$date->format('d/m/Y')] : 0; - $date->addDay(); - } - - return view('bo.dashboard.index', compact( + return view('back::pages.dashboard.index', compact( 'dates', 'count', 'countUnique', - 'totalParticipation', + 'participationsTotal', 'avgParticipUser', 'codesEan', 'settings' diff --git a/app/Http/Controllers/Bo/FaqQuestionController.php b/app/Http/Controllers/Bo/FaqQuestionController.php new file mode 100644 index 0000000..650c953 --- /dev/null +++ b/app/Http/Controllers/Bo/FaqQuestionController.php @@ -0,0 +1,180 @@ +authorizeResource(FaqQuestion::class); + } + + /** + * Display a listing of the resource. + * + * @param \Illuminate\Http\Request $request + * @return \Illuminate\Contracts\View\View + */ + public function index(Request $request): \Illuminate\Contracts\View\View + { + /** @var \Illuminate\Database\Eloquent\Builder $faqQuestionModels */ + $faqQuestionModels = FaqQuestion::query(); + + /** @var string $search Search field */ + $search = $request->search; + if ($search) { + $this->searchQuery( + $faqQuestionModels, + $search, + null, + 'question', + 'answer' + ); + } + $searchFields = \sprintf( + '%s, %s ...', + Str::ucfirst(__('validation.custom.question')), + __('validation.custom.answer'), + ); + + /** Sort columns with a query */ + $this->sortQuery($faqQuestionModels); + + /** Custom pagination */ + $faqQuestionModels = $this->paginate($faqQuestionModels); + + return view('back::pages.faq-questions.index', compact('faqQuestionModels', 'search', 'searchFields')); + } + + /** + * Show the form for creating a new resource. + * + * @param \App\Models\FaqQuestion $faqQuestion + * @return \Illuminate\Contracts\View\View + */ + public function create(FaqQuestion $faqQuestion): \Illuminate\Contracts\View\View + { + $faqThemeModels = FaqTheme::all(); + return view('back::pages.faq-questions.create', [ + 'faqQuestionModel' => $faqQuestion, + 'faqThemeModels' => $faqThemeModels + ]); + } + + /** + * Store a newly created resource in storage. + * + * @param \App\Http\Requests\Bo\FaqQuestions\StoreFaqQuestionRequest $request + * @return \Illuminate\Http\RedirectResponse + */ + public function store(StoreFaqQuestionRequest $request): \Illuminate\Http\RedirectResponse + { + return DB::transaction(function () use ($request) { + $faqQuestion = new FaqQuestion(); + $faqQuestion->fill($request->validated()); + if ($faqQuestion->saveOrFail()) { + return redirect() + ->route('bo.faq-questions.edit', $faqQuestion) + ->with( + 'success', + trans( + 'crud.messages.has_been_created', + ['model' => trans_choice('models.classes.faq-questions', 1)] + ) + ); + } + return redirect() + ->back() + ->with('error', trans( + 'crud.messages.cannot_be_created', + ['model' => trans_choice('models.classes.faq-questions', 1)] + )); + }); + } + + /** + * Show the form for editing the specified resource. + * + * @param \App\Models\FaqQuestion $faqQuestion + * @return \Illuminate\Contracts\View\View + */ + public function edit(FaqQuestion $faqQuestion): \Illuminate\Contracts\View\View + { + $faqThemeModels = FaqTheme::all(); + return view('back::pages.faq-questions.edit', [ + 'faqQuestionModel' => $faqQuestion, + 'faqThemeModels' => $faqThemeModels + ]); + } + + /** + * Update the specified resource in storage. + * + * @param \App\Http\Requests\Bo\FaqQuestions\UpdateFaqQuestionRequest $request + * @param \App\Models\FaqQuestion $faqQuestion + * @return \Illuminate\Http\RedirectResponse + */ + public function update( + UpdateFaqQuestionRequest $request, + FaqQuestion $faqQuestion + ): \Illuminate\Http\RedirectResponse { + return DB::transaction(function () use ($request, $faqQuestion) { + $faqQuestion->fill($request->validated()); + if ($faqQuestion->saveOrFail()) { + return redirect() + ->route( + 'bo.faq-questions.edit', + $faqQuestion + ) + ->with('success', trans( + 'crud.messages.has_been_updated', + ['model' => trans_choice('models.classes.faq-questions', 1)] + )); + } + return redirect() + ->back() + ->with('error', trans( + 'crud.messages.cannot_be_updated', + ['model' => trans_choice('models.classes.faq-questions', 1)] + )); + }); + } + + /** + * Remove the specified resource from storage. + * + * @param \App\Models\FaqQuestion $faqQuestion + * @return \Illuminate\Http\RedirectResponse + */ + public function destroy(FaqQuestion $faqQuestion): \Illuminate\Http\RedirectResponse + { + return DB::transaction(function () use ($faqQuestion) { + if ($faqQuestion->deleteOrFail()) { + return redirect() + ->route('bo.faq-questions.index') + ->with('success', __( + 'crud.messages.has_been_deleted', + ['model' => trans_choice('models.classes.faq-questions', 1)] + )); + } + return redirect() + ->back() + ->with('error', __( + ':crud.messages.cannot_be_deleted', + ['model' => trans_choice('models.classes.faq-questions', 1)] + )); + }); + } +} diff --git a/app/Http/Controllers/Bo/FaqQuestionsController.php b/app/Http/Controllers/Bo/FaqQuestionsController.php deleted file mode 100644 index f137928..0000000 --- a/app/Http/Controllers/Bo/FaqQuestionsController.php +++ /dev/null @@ -1,59 +0,0 @@ -id !== null) { - $question = FaqQuestion::findOrFail($request->id); - $question->delete(); - } - } - - public function saveDatas(Request $request) - { - $questions = $request->questions; - - for ($i = 0; $i < count($questions); $i++) { - if (isset($questions[$i]["id"])) { - $q = FaqQuestion::findOrFail($questions[$i]["id"]); - $q->question = $questions[$i]["question"]; - $q->answer = $questions[$i]["answer"]; - $q->positive_vote = $questions[$i]["positive_vote"]; - $q->negative_vote = $questions[$i]["negative_vote"]; - $q->theme_id = $questions[$i]["theme_id"]; - $q->save(); - } else { - $t = FaqQuestion::updateOrCreate( - [ - 'question' => $questions[$i]["question"], - 'answer' => $questions[$i]["answer"], - 'positive_vote' => $questions[$i]["positive_vote"], - 'negative_vote' => $questions[$i]["negative_vote"], - 'theme_id' => $questions[$i]["theme_id"] - ] - ); - $questions[$i]["id"] = $t->id; - } - }//end for - - return $questions; - } -} diff --git a/app/Http/Controllers/Bo/FaqThemeController.php b/app/Http/Controllers/Bo/FaqThemeController.php new file mode 100644 index 0000000..dd01a67 --- /dev/null +++ b/app/Http/Controllers/Bo/FaqThemeController.php @@ -0,0 +1,170 @@ +authorizeResource(FaqTheme::class); + } + + /** + * Display a listing of the resource. + * + * @param \Illuminate\Http\Request $request + * @return \Illuminate\Contracts\View\View + */ + public function index(Request $request): \Illuminate\Contracts\View\View + { + /** @var \Illuminate\Database\Eloquent\Builder $faqThemeModels */ + $faqThemeModels = FaqTheme::query(); + + /** @var string $search Search field */ + $search = $request->search; + if ($search) { + $this->searchQuery( + $faqThemeModels, + $search, + null, + 'name', + ); + } + $searchFields = Str::ucfirst(__('validation.attributes.name')); + + /** Sort columns with a query */ + $this->sortQuery($faqThemeModels); + + /** Custom pagination */ + $faqThemeModels = $this->paginate($faqThemeModels); + + return view('back::pages.faq-themes.index', compact('faqThemeModels', 'search', 'searchFields')); + } + + /** + * Show the form for creating a new resource. + * + * @param \App\Models\FaqTheme $faqTheme + * @return \Illuminate\Contracts\View\View + */ + public function create(FaqTheme $faqTheme): \Illuminate\Contracts\View\View + { + return view('back::pages.faq-themes.create', [ + 'faqThemeModel' => $faqTheme, + ]); + } + + /** + * Store a newly created resource in storage. + * + * @param \App\Http\Requests\Bo\FaqThemes\StoreFaqThemeRequest $request + * @return \Illuminate\Http\RedirectResponse + */ + public function store(StoreFaqThemeRequest $request): \Illuminate\Http\RedirectResponse + { + return DB::transaction(function () use ($request) { + $faqTheme = new FaqTheme(); + $faqTheme->fill($request->validated()); + if ($faqTheme->saveOrFail()) { + return redirect() + ->route('bo.faq-themes.edit', $faqTheme) + ->with( + 'success', + trans( + 'crud.messages.has_been_created', + ['model' => trans_choice('models.classes.faq-themes', 1)] + ) + ); + } + return redirect() + ->back() + ->with('error', trans( + 'crud.messages.cannot_be_created', + ['model' => trans_choice('models.classes.faq-themes', 1)] + )); + }); + } + + /** + * Show the form for editing the specified resource. + * + * @param \App\Models\FaqTheme $faqTheme + * @return \Illuminate\Contracts\View\View + */ + public function edit(FaqTheme $faqTheme): \Illuminate\Contracts\View\View + { + return view('back::pages.faq-themes.edit', [ + 'faqThemeModel' => $faqTheme, + ]); + } + + /** + * Update the specified resource in storage. + * + * @param \App\Http\Requests\Bo\FaqThemes\UpdateFaqThemeRequest $request + * @param \App\Models\FaqTheme $faqTheme + * @return \Illuminate\Http\RedirectResponse + */ + public function update( + UpdateFaqThemeRequest $request, + FaqTheme $faqTheme + ): \Illuminate\Http\RedirectResponse { + return DB::transaction(function () use ($request, $faqTheme) { + $faqTheme->fill($request->validated()); + if ($faqTheme->saveOrFail()) { + return redirect() + ->route( + 'bo.faq-themes.edit', + $faqTheme + ) + ->with('success', trans( + 'crud.messages.has_been_updated', + ['model' => trans_choice('models.classes.faq-themes', 1)] + )); + } + return redirect() + ->back() + ->with('error', trans( + 'crud.messages.cannot_be_updated', + ['model' => trans_choice('models.classes.faq-themes', 1)] + )); + }); + } + + /** + * Remove the specified resource from storage. + * + * @param \App\Models\FaqTheme $faqTheme + * @return \Illuminate\Http\RedirectResponse + */ + public function destroy(FaqTheme $faqTheme): \Illuminate\Http\RedirectResponse + { + return DB::transaction(function () use ($faqTheme) { + if ($faqTheme->deleteOrFail()) { + return redirect() + ->route('bo.faq-themes.index') + ->with('success', __( + 'crud.messages.has_been_deleted', + ['model' => trans_choice('models.classes.faq-themes', 1)] + )); + } + return redirect() + ->back() + ->with('error', __( + 'crud.messages.cannot_be_deleted', + ['model' => trans_choice('models.classes.faq-themes', 1)] + )); + }); + } +} diff --git a/app/Http/Controllers/Bo/FaqThemesController.php b/app/Http/Controllers/Bo/FaqThemesController.php deleted file mode 100644 index e8e5cd9..0000000 --- a/app/Http/Controllers/Bo/FaqThemesController.php +++ /dev/null @@ -1,51 +0,0 @@ -id)->count() > 0) { - $deleteOk = 1; - } elseif ($request->id !== null) { - $theme = FaqTheme::findOrFail($request->id); - $theme->delete(); - } else { - $deleteOk = 2; - } - - return $deleteOk; - } - - public function saveDatas(Request $request) - { - $themes = $request->themes; - - for ($i = 0; $i < count($themes); $i++) { - if (isset($themes[$i]["id"])) { - $t = FaqTheme::findOrFail($themes[$i]["id"]); - $t->name = $themes[$i]["name"]; - $t->save(); - } else { - $t = FaqTheme::updateOrCreate(['name' => $themes[$i]["name"]]); - $themes[$i]["id"] = $t->id; - } - } - - return $themes; - } -} diff --git a/app/Http/Controllers/Bo/GainViewController.php b/app/Http/Controllers/Bo/GainViewController.php deleted file mode 100644 index 727670f..0000000 --- a/app/Http/Controllers/Bo/GainViewController.php +++ /dev/null @@ -1,47 +0,0 @@ -id !== null) { - $gv = GainView::findOrFail($request->id); - $gv->delete(); - } - - return $retour; - } - - public function saveDatas(Request $request) - { - $gv = $request->gainViews; - - for ($i = 0; $i < count($gv); $i++) { - if (isset($gv[$i]["id"])) { - $g = GainView::findOrFail($gv[$i]["id"]); - $g->name = $gv[$i]["name"]; - $g->file_name = $gv[$i]["file_name"]; - $g->save(); - } else { - $g = GainView::updateOrCreate(['name' => $gv[$i]["name"], 'file_name' => $gv[$i]["file_name"]]); - $gv[$i]["id"] = $g->id; - } - } - - return $gv; - } -} diff --git a/app/Http/Controllers/Bo/InstantWinController.php b/app/Http/Controllers/Bo/InstantWinController.php index 16b00ae..7270311 100644 --- a/app/Http/Controllers/Bo/InstantWinController.php +++ b/app/Http/Controllers/Bo/InstantWinController.php @@ -6,104 +6,177 @@ use App\Http\Controllers\Controller; use App\Models\InstantWin; use App\Models\Prize; use App\Models\Settings; +use Carbon\CarbonInterval; +use Illuminate\Http\JsonResponse; +use Illuminate\Support\Collection; +use Illuminate\Support\Facades\DB; class InstantWinController extends Controller { - public function index() + /** + * Create the controller instance. + */ + public function __construct() { - $nbInstantWin = InstantWin::count(); - $canGenerate = 0; + $this->authorizeResource(InstantWin::class); + } - if (intval($nbInstantWin) > 0) { - $canGenerate = 0; - } else { - $nbLots = Prize::count(); - if (intval($nbLots) > 0) { - $canGenerate = 1; - } else { - $canGenerate = 0; - } - } + /** + * Display a listing of the resource. + * + * @return \Illuminate\Contracts\View\View + */ + public function index(): \Illuminate\Contracts\View\View + { + $instantWinModelList = InstantWin::query()->orderBy('available_at')->get(); - $instantWin = InstantWin::orderBy('appear_date')->get(); - - return view('bo.instant-win.index', [ - 'can_generate' => $canGenerate, - 'instant_win' => $instantWin + return view('back::pages.instant-win.index', [ + 'instantWinModelList' => $instantWinModelList ]); } - public function instantWinGenerate() + /** + * Returns generated instant win. + * + * @return \Illuminate\Http\JsonResponse + */ + public function generate(): JsonResponse { - $start_date = Settings::latest()->value("start_date"); - $end_date = Settings::latest()->value("end_date"); - $lots = Prize::all(); + $this->authorize('generate', InstantWin::class); + return DB::transaction(function () { + /** + * À partir de quelle heure on peut gagner + * ! Seul l'heure sera prize en compte + */ + $day_start = now()->setTime(6, 0); + /** + * Jusqu'à quelle heure on peut gagner + * ! Seul l'heure sera prize en compte + */ + $day_end = now()->setTime(22, 29); + /** @var \App\Models\Settings */ + $settings = app(Settings::class); + $prizeModelList = Prize::all(); - $begin = new \DateTime($start_date); - $end = new \DateTime($end_date); - $interval = new \DateInterval('P1D'); - $daterange = new \DatePeriod($begin, $interval, $end); - $dateGlobal = []; - $lotsGlobal = []; + /** @var \Illuminate\Support\Collection */ + $datesGlobal = collect(); + /** + * @var \Illuminate\Support\Collection + * Liste de tous les lots à gagner + */ + $lotsGlobal = collect(); + // * Seed srand ! + \mt_srand(time()); + // * Init prize list + $prizeModelList->each(function (Prize $prize) use ($lotsGlobal, $day_start, $day_end) { + for ($i = 0; $i < $prize->quantity; $i++) { + $el = new WinTimeElement(); + $el->prize = $prize; + $el->time = now()->setTime( + mt_rand($day_start->hour, $day_end->hour), + mt_rand($day_start->minute, $day_end->minute) + ); + $lotsGlobal->push($el); + } + }); - foreach ($lots as $k => $lot) { - for ($i = 0; $i < $lot->quantity; $i++) { - $lotsGlobal[] = [ - 'id' => $lot->id, - 'name' => $lot->label_one, - 'hour' => str_pad(mt_rand(6, 22), 2, "0", STR_PAD_LEFT) - . ":" . str_pad(mt_rand(0, 59), 2, "0", STR_PAD_LEFT) . ":00" - ]; + $lotsGlobal->shuffle(time()); + + // * Init days calendar + foreach ($settings->start_date->toPeriod($settings->end_date, CarbonInterval::make('1day')) as $date) { + $el = new WinDayCalendar(); + $el->lots = collect(); + $el->time = $date->setTime(0, 0); + $datesGlobal->push($el); } - } - shuffle($lotsGlobal); - foreach ($daterange as $date) { - array_push($dateGlobal, ['date' => $date->format("Y-m-d"), 'lots' => []]); - } - $res = $this->generate($lotsGlobal, $dateGlobal, 0); + // * Save Instant wins + $this->generateArray($lotsGlobal, $datesGlobal, 0)->each(function (WinDayCalendar $winDayCalendar) { + $winDayCalendar->lots->each(function (WinTimeElement $winTimeElement) { + $instantWin = new InstantWin(); + $instantWin->available_at = $winTimeElement->time; + $instantWin->prize()->associate($winTimeElement->prize); + $instantWin->saveOrFail(); + }); + }); - foreach ($res as $date) { - foreach ($date['lots'] as $lot) { - $iw = new InstantWin(); - $iw->prize_id = $lot['id']; - $iw->appear_date = date('Y-m-d H:i:s', strtotime($date['date'] . " " . $lot['hour'])); - $iw->save(); - } - } - - $instantWins = InstantWin::all(); - return json_encode($instantWins); + // * Output instant wins to ajax response + return response()->json(InstantWin::all()); + }); } - - - private function generate($lotsGlobal, $dateGlobal, $lotsDone) + /** + * Generate instant win. + * + * Même algo que celui implémenté par Romain. + * + * @param \Illuminate\Support\Collection $lotsGlobal + * Liste de tous les lots à gagner + * @param \Illuminate\Support\Collection $dateGlobal + * @param integer $prizesDone + * @return \Illuminate\Support\Collection + * @phpcs:disable Squiz.Commenting.FunctionComment.IncorrectTypeHint + */ + private function generateArray(Collection $lotsGlobal, Collection $dateGlobal, int $prizesDone): Collection { - $rKey = array_rand($dateGlobal, 1); - if ($lotsDone < count($dateGlobal)) { - if (count($dateGlobal[$rKey]['lots']) > 0) { - return $this->generate($lotsGlobal, $dateGlobal, $lotsDone); - } + // phpcs:enable + /** @var array-key Un jour sélectionné aléatoire. */ + $rKey = $dateGlobal->keys()->random(1)->firstOrFail(); + + // ? À-t-on déjà assigné un lot par jour (au moins) ? + // ? Le jour aléatoire sélectionné à déja un lot ? + if ($prizesDone < $dateGlobal->count() and $dateGlobal->get($rKey)->lots->count() > 0) { + return $this->generateArray($lotsGlobal, $dateGlobal, $prizesDone); } - array_push($dateGlobal[$rKey]['lots'], $lotsGlobal[$lotsDone++]); - if ($lotsDone < count($lotsGlobal)) { - return $this->generate($lotsGlobal, $dateGlobal, $lotsDone); - } - foreach ($dateGlobal as $k => $date) { - usort($dateGlobal[$k]['lots'], [$this, 'sortFunction']); + + // * Insert next prize on a randowm day + $dateGlobal->get($rKey)->lots->push($lotsGlobal->get($prizesDone++)); + + // ? On a distribué assez de lots ? + if ($prizesDone < $lotsGlobal->count()) { + return $this->generateArray($lotsGlobal, $dateGlobal, $prizesDone); } + + // * Tri par heure et assignation du jour correct. + $dateGlobal->each(function (WinDayCalendar $date) { + $date->lots = $date->lots->sort(fn (WinTimeElement $a, WinTimeElement $b) => + $a->time->timestamp - $b->time->timestamp) + ->map(function (WinTimeElement $time) use ($date) { + $time->time->setDate( + $date->time->year, + $date->time->month, + $date->time->day + ); + return $time; + }); + }); + return $dateGlobal; } - - - - private function sortFunction($a, $b) - { - return strtotime($a["hour"]) - strtotime($b["hour"]); - } +} + +/** + * @property \App\Models\Prize $prize Le lot à gagner. + * @property \Carbon\Carbon $time Une heure aléatoire. + * @phpcs:disable PSR1.Classes.ClassDeclaration.MultipleClasses + */ +class WinTimeElement extends \stdClass +{ + // phpcs:enable +} + +/** + * @property \Carbon\Carbon $time + * Un jour dans le temps. + * @property \Illuminate\Support\Collection $lots + * Liste des lots tombant ce jour. + * @phpcs:disable PSR1.Classes.ClassDeclaration.MultipleClasses + */ +class WinDayCalendar extends \stdClass +{ + // phpcs:enable } diff --git a/app/Http/Controllers/Bo/ParticipationController.php b/app/Http/Controllers/Bo/ParticipationController.php new file mode 100644 index 0000000..ccaf0bf --- /dev/null +++ b/app/Http/Controllers/Bo/ParticipationController.php @@ -0,0 +1,88 @@ +authorizeResource(Participation::class); + } + + /** + * View all winners + * + * @return \Illuminate\Contracts\View\View + */ + public function viewWinnerList(): View + { + $this->authorize('viewWinnerList', Participation::class); + + /** @var \Illuminate\Database\Eloquent\Builder $rangeModels */ + $participationModels = Participation::query()->with(['customer', 'code', 'instantWin'])->whereHas('instantWin'); + + /** Sort columns with a query */ + $this->sortQuery($participationModels); + + /** Custom pagination */ + $participationModels = $this->paginate($participationModels); + + return view('back::pages.winners-list.index', compact( + 'participationModels' + )); + } + + /** + * Display participation form + * + * @param \App\Models\Participation $participation + * @return \Illuminate\Contracts\View\View + */ + public function setComment(Participation $participation): View + { + $this->authorize('setComment', $participation); + return view('back::pages.winners-list.set-comment', [ + 'participationModel' => $participation + ]); + } + + /** + * Set Comment + * + * @param \App\Models\Participation $participation + * @return \Illuminate\Http\RedirectResponse + */ + public function setCommentSubmit(Participation $participation): RedirectResponse + { + $this->authorize('setComment', $participation); + $participation->comment = request()->string('comment'); + $participation->saveOrFail(); + return back()->with('success', \trans( + 'Le commentaire à bien été mis à jour' + )); + } + + /** + * Change prize sent + * + * @param \App\Models\Participation $participation + * @return \Illuminate\Http\RedirectResponse + */ + public function changePrizeSent(Participation $participation): RedirectResponse + { + $this->authorize('changePrizeSent', $participation); + $participation->prize_sent = true; + $participation->saveOrFail(); + return back()->with('success', \trans( + 'Le lot est bien marqué comme envoyé et une notification à été envoyé au gagant' + )); + } +} diff --git a/app/Http/Controllers/Bo/PrizeController.php b/app/Http/Controllers/Bo/PrizeController.php new file mode 100644 index 0000000..b2b598f --- /dev/null +++ b/app/Http/Controllers/Bo/PrizeController.php @@ -0,0 +1,176 @@ +authorizeResource(Prize::class); + } + + /** + * Display a listing of the resource. + * + * @param \Illuminate\Http\Request $request + * @return \Illuminate\Contracts\View\View + */ + public function index(Request $request): \Illuminate\Contracts\View\View + { + /** @var \Illuminate\Database\Eloquent\Builder $prizeModels */ + $prizeModels = Prize::query(); + + /** @var string $search Search field */ + $search = $request->search; + if ($search) { + $this->searchQuery( + $prizeModels, + $search, + null, + 'label', + ); + } + $searchFields = \sprintf( + '%s ...', + Str::ucfirst(__('validation.custom.label')) + ); + + /** Sort columns with a query */ + $this->sortQuery($prizeModels); + + /** Custom pagination */ + $prizeModels = $this->paginate($prizeModels); + + return view('back::pages.prizes.index', compact('prizeModels', 'search', 'searchFields')); + } + + /** + * Display the specified resource. + * + * @param \App\Models\Prize $prize + * @return \Illuminate\Contracts\View\View + */ + public function show(Prize $prize): \Illuminate\Contracts\View\View + { + return view('back::pages.prizes.show', ['prizeModel' => $prize]); + } + + /** + * Show the form for creating a new resource. + * + * @param \App\Models\Prize $prize + * @return \Illuminate\Contracts\View\View + */ + public function create(Prize $prize): \Illuminate\Contracts\View\View + { + return view('back::pages.prizes.create', [ + 'prizeModel' => $prize + ]); + } + + /** + * Store a newly created resource in storage. + * + * @param \App\Http\Requests\Bo\Prizes\StorePrizeRequest $request + * @return \Illuminate\Http\RedirectResponse + */ + public function store(StorePrizeRequest $request): \Illuminate\Http\RedirectResponse + { + return DB::transaction(function () use ($request) { + $prize = new Prize(); + $prize->fill($request->validated()); + if ($prize->saveOrFail()) { + return redirect() + ->route('bo.prizes.edit', $prize) + ->with('success', trans( + 'crud.messages.has_been_created', + ['model' => Str::singular(__('models.classes.prize'))] + )); + } + return redirect() + ->back() + ->with('error', trans( + 'crud.messages.cannot_be_created', + ['model' => Str::singular(__('models.classes.prize'))] + )); + }); + } + + /** + * Show the form for editing the specified resource. + * + * @param \App\Models\Prize $prize + * @return \Illuminate\Contracts\View\View + */ + public function edit(Prize $prize): \Illuminate\Contracts\View\View + { + return view('back::pages.prizes.edit', [ + 'prizeModel' => $prize + ]); + } + + /** + * Update the specified resource in storage. + * + * @param \App\Http\Requests\Bo\Prizes\UpdatePrizeRequest $request + * @param \App\Models\Prize $prize + * @return \Illuminate\Http\RedirectResponse + */ + public function update(UpdatePrizeRequest $request, Prize $prize): \Illuminate\Http\RedirectResponse + { + return DB::transaction(function () use ($request, $prize) { + $prize->fill($request->validated()); + if ($prize->saveOrFail()) { + return redirect() + ->route('bo.prizes.edit', $prize) + ->with('success', trans( + 'crud.messages.has_been_updated', + ['model' => Str::singular(__('models.classes.prize'))] + )); + } + return redirect() + ->back() + ->with('error', trans( + 'crud.messages.cannot_be_updated', + ['model' => Str::singular(__('models.classes.prize'))] + )); + }); + } + + /** + * Remove the specified resource from storage. + * + * @param \App\Models\Prize $prize + * @return \Illuminate\Http\RedirectResponse + */ + public function destroy(Prize $prize): \Illuminate\Http\RedirectResponse + { + return DB::transaction(function () use ($prize) { + if ($prize->deleteOrFail()) { + return redirect() + ->route('bo.prizes.index') + ->with('success', __( + 'crud.messages.has_been_deleted', + ['model' => Str::singular(__('models.classes.prize'))] + )); + } + return redirect() + ->back() + ->with('error', __( + ':crud.messages.cannot_be_deleted', + ['model' => Str::singular(__('models.classes.prize'))] + )); + }); + } +} diff --git a/app/Http/Controllers/Bo/PrizesController.php b/app/Http/Controllers/Bo/PrizesController.php deleted file mode 100644 index 03fcfe2..0000000 --- a/app/Http/Controllers/Bo/PrizesController.php +++ /dev/null @@ -1,106 +0,0 @@ -prizes); - $pdfs = $request->file('pdf'); - - try { - $request->validate([ - 'pdf_winning_proof.*' => 'file|mimes:pdf|size:20480', - ]); - - for ($i = 0; $i < count($prizes); $i++) { - $prize = $prizes[$i]; - if ($prize->id !== null) { - $p = Prize::findOrFail($prize->id); - - $p->arcadia_id = $prize->arcadia_id; - $p->label_one = $prize->label_one; - $p->label_many = $prize->label_many; - $p->arg_title = $prize->arg_title; - $p->arg_subtitle = $prize->arg_subtitle; - $p->arg_content = $prize->arg_content; - $p->quantity = $prize->quantity; - $p->arcadia_operation_code = $prize->arcadia_operation_code; - $p->arcadia_support_code = $prize->arcadia_support_code; - $p->need_proof = $prize->need_proof; - $p->gain_view_id = $prize->gain_view_id; - - if (isset($pdfs[$i])) { - $fileName = Str::slug($prize->label_one) . '-' . - date('d-m-Y') . '.' . $pdfs[$i]->extension(); - $p->pdf_winning_proof = $fileName; - $pdfs[$i]->move(public_path('fichiers/pdf/'), $fileName); - $prizes[$i]->pdf_winning_proof = $fileName; - } - - $p->save(); - } else { - $p = new Prize(); - $p->arcadia_id = $prize->arcadia_id; - $p->label_one = $prize->label_one; - $p->label_many = $prize->label_many; - $p->arg_title = $prize->arg_title; - $p->arg_subtitle = $prize->arg_subtitle; - $p->arg_content = $prize->arg_content; - $p->quantity = $prize->quantity; - $p->arcadia_operation_code = $prize->arcadia_operation_code; - $p->arcadia_support_code = $prize->arcadia_support_code; - $p->need_proof = $prize->need_proof; - $p->gain_view_id = $prize->gain_view_id; - - if (isset($pdfs[$i])) { - $fileName = Str::slug($prize->label_one) . '-' . - date('d-m-Y') . '.' . $pdfs[$i]->extension(); - $p->pdf_winning_proof = $fileName; - $pdfs[$i]->move(public_path('fichiers/pdf/'), $fileName); - $prizes[$i]->pdf_winning_proof = $fileName; - } - - $p->save(); - $prizes[$i]->id = $p->id; - } //end if - }//end for - } catch (Exception $e) { - }//end try - - return $prizes; - } - - public function destroy(Request $request) - { - $retour = "Suppression terminée !"; - - if ($request->id !== null) { - try { - $prize = Prize::findOrFail($request->id); - $prize->delete(); - } catch (Exception $e) { - $retour = "Erreur lors de la suppression : " . $e->getMessage(); - } - } else { - $retour = "Erreur lors de la suppression : Aucun ID envoyé."; - } - - return $retour; - } -} diff --git a/app/Http/Controllers/Bo/ProductController.php b/app/Http/Controllers/Bo/ProductController.php new file mode 100644 index 0000000..1956395 --- /dev/null +++ b/app/Http/Controllers/Bo/ProductController.php @@ -0,0 +1,190 @@ +authorizeResource(Product::class); + } + + /** + * Display a listing of the resource. + * + * @param \Illuminate\Http\Request $request + * @return \Illuminate\Contracts\View\View + */ + public function index(Request $request): \Illuminate\Contracts\View\View + { + /** @var \Illuminate\Database\Eloquent\Builder $productModels */ + $productModels = Product::query()->with('range'); + + /** @var string $search Search field */ + $search = $request->search; + if ($search) { + $this->searchQuery( + $productModels, + $search, + null, + 'name', + 'ean_code', + ); + } + $searchFields = \sprintf( + '%s, %s ...', + Str::ucfirst(__('validation.attributes.name')), + __('validation.custom.ean_code'), + ); + + /** Sort columns with a query */ + $this->sortQuery($productModels); + + /** Custom pagination */ + $productModels = $this->paginate($productModels); + + return view('back::pages.products.index', compact('productModels', 'search', 'searchFields')); + } + + /** + * Display the specified resource. + * + * @param \App\Models\Product $product + * @return \Illuminate\Contracts\View\View + */ + public function show(Product $product): \Illuminate\Contracts\View\View + { + return view('back::pages.products.show', ['productModel' => $product]); + } + + /** + * Show the form for creating a new resource. + * + * @param \App\Models\Product $product + * @return \Illuminate\Contracts\View\View|\Illuminate\Http\RedirectResponse + */ + public function create(Product $product): \Illuminate\Contracts\View\View|\Illuminate\Http\RedirectResponse + { + $rangeModels = Range::all(); + if (!count($rangeModels)) { + return \redirect()->route('bo.ranges.index') + ->with( + 'error', + 'Vous devez ajouter une gamme avant de pouvoir ajouter un produit' + ); + } + return view('back::pages.products.create', [ + 'productModel' => $product, + 'rangeModels' => $rangeModels + ]); + } + + /** + * Store a newly created resource in storage. + * + * @param \App\Http\Requests\Bo\Products\StoreProductRequest $request + * @return \Illuminate\Http\RedirectResponse + */ + public function store(StoreProductRequest $request): \Illuminate\Http\RedirectResponse + { + return DB::transaction(function () use ($request) { + $product = new Product(); + $product->fill($request->validated()); + if ($product->saveOrFail()) { + return redirect() + ->route('bo.products.edit', $product) + ->with('success', trans( + 'crud.messages.has_been_created', + ['model' => Str::singular(__('models.classes.product'))] + )); + } + return redirect() + ->back() + ->with('error', trans( + 'crud.messages.cannot_be_created', + ['model' => Str::singular(__('models.classes.product'))] + )); + }); + } + + /** + * Show the form for editing the specified resource. + * + * @param \App\Models\Product $product + * @return \Illuminate\Contracts\View\View + */ + public function edit(Product $product): \Illuminate\Contracts\View\View + { + $rangeModels = Range::all(); + return view('back::pages.products.edit', [ + 'productModel' => $product, + 'rangeModels' => $rangeModels + ]); + } + + /** + * Update the specified resource in storage. + * + * @param \App\Http\Requests\Bo\Products\UpdateProductRequest $request + * @param \App\Models\Product $product + * @return \Illuminate\Http\RedirectResponse + */ + public function update(UpdateProductRequest $request, Product $product): \Illuminate\Http\RedirectResponse + { + return DB::transaction(function () use ($request, $product) { + $product->fill($request->validated()); + if ($product->saveOrFail()) { + return redirect() + ->route('bo.products.edit', $product) + ->with('success', trans( + 'crud.messages.has_been_updated', + ['model' => Str::singular(__('models.classes.product'))] + )); + } + return redirect() + ->back() + ->with('error', trans( + 'crud.messages.cannot_be_updated', + ['model' => Str::singular(__('models.classes.product'))] + )); + }); + } + + /** + * Remove the specified resource from storage. + * + * @param \App\Models\Product $product + * @return \Illuminate\Http\RedirectResponse + */ + public function destroy(Product $product): \Illuminate\Http\RedirectResponse + { + return DB::transaction(function () use ($product) { + if ($product->deleteOrFail()) { + return redirect() + ->route('bo.products.index') + ->with('success', __( + 'crud.messages.has_been_deleted', + ['model' => Str::singular(__('models.classes.product'))] + )); + } + return redirect() + ->back() + ->with('error', __( + ':crud.messages.cannot_be_deleted', + ['model' => Str::singular(__('models.classes.product'))] + )); + }); + } +} diff --git a/app/Http/Controllers/Bo/ProductsController.php b/app/Http/Controllers/Bo/ProductsController.php deleted file mode 100644 index 958bf54..0000000 --- a/app/Http/Controllers/Bo/ProductsController.php +++ /dev/null @@ -1,154 +0,0 @@ -route('bo.ranges.index') - ->with( - 'error', - 'Vous devez ajouter une gamme avant de pouvoir ajouter un produit' - ); - } - return view('bo.products.create', compact('ranges')); - } - - /** - * Store a newly created resource in storage. - * - * @param \App\Http\Requests\StoreProductRequest $request - * @return \Illuminate\Http\Response - */ - public function store(StoreProductRequest $request) - { - $name = $request->name; - $slug = Str::slug($name); - $no_art = $request->no_art; - $code_ean = $request->code_ean; - $picture = $request->picture; - - $product = new Product(); - $product->name = $name; - $product->no_art = $no_art; - $product->code_ean = $code_ean; - $product->range()->associate($request->range_id); - $product->save(); - - if ($picture !== null) { - $imageName = $product->id . '_' . $slug . '_' . Str::random(5) . '.' . $picture->extension(); - $picture->move(public_path('images/produits'), $imageName); - $product->picture = $imageName; - $product->save(); - } - - return redirect()->route('bo.products.index'); - } - - /** - * Display the specified resource. - * - * @param integer $id - * @return \Illuminate\Http\Response - */ - public function show($id) - { - } - - /** - * Show the form for editing the specified resource. - * - * @param integer $id - * @return \Illuminate\Http\Response - */ - public function edit($id) - { - $ranges = Range::all(); - if (!count($ranges)) { - return \redirect()->route('bo.ranges.index') - ->with( - 'error', - 'Vous devez ajouter une gamme avant de pouvoir ajouter un produit' - ); - } - $product = Product::findOrFail($id); - return view('bo.products.edit', compact('product', 'ranges')); - } - - /** - * Update the specified resource in storage. - * - * @param \App\Http\Requests\UpdateProductRequest $request - * @param integer $id - * @return \Illuminate\Http\Response - */ - public function update(UpdateProductRequest $request, $id) - { - $name = $request->name; - $slug = Str::slug($name); - $no_art = $request->no_art; - $code_ean = $request->code_ean; - $picture = $request->picture; - - $product = Product::findOrFail($id); - $product->range()->associate($request->range_id); - - if ($picture !== null) { - if ($product->picture !== null && file_exists(public_path('images/produits/') . $product->picture)) { - unlink(public_path('images/produits/') . $product->picture); - } - $imageName = $product->id . '_' . $slug . '_' . Str::random(5) . '.' . $picture->extension(); - $picture->move(public_path('images/produits'), $imageName); - } - - $product->name = $name; - $product->no_art = $no_art; - $product->code_ean = $code_ean; - - if ($picture !== null) { - $product->picture = $imageName; - } - $product->save(); - - return redirect()->route('bo.products.edit', $product->id)->with('success', 'Modifications enregistrés !'); - } - - /** - * Remove the specified resource from storage. - * - * @param integer $id - * @return \Illuminate\Http\Response - */ - public function destroy($id) - { - $product = Product::findOrFail($id); - $product->delete(); - return redirect()->route('bo.products.index'); - } -} diff --git a/app/Http/Controllers/Bo/RangeController.php b/app/Http/Controllers/Bo/RangeController.php index 65685a3..90abc64 100644 --- a/app/Http/Controllers/Bo/RangeController.php +++ b/app/Http/Controllers/Bo/RangeController.php @@ -3,135 +3,176 @@ namespace App\Http\Controllers\Bo; use App\Http\Controllers\Controller; -use App\Http\Requests\StoreRangeRequest; -use App\Http\Requests\UpdateRangeRequest; +use App\Http\Requests\Bo\Ranges\StoreRangeRequest; +use App\Http\Requests\Bo\Ranges\UpdateRangeRequest; use App\Models\Range; +use Illuminate\Http\Request; +use Illuminate\Support\Facades\DB; use Illuminate\Support\Str; class RangeController extends Controller { + /** + * Create the controller instance. + */ + public function __construct() + { + $this->authorizeResource(Range::class); + } + /** * Display a listing of the resource. * - * @return \Illuminate\Http\Response + * @param \Illuminate\Http\Request $request + * @return \Illuminate\Contracts\View\View */ - public function index() + public function index(Request $request): \Illuminate\Contracts\View\View { - $ranges = Range::paginate(); - return view('bo.ranges.index', compact('ranges')); - } + /** @var \Illuminate\Database\Eloquent\Builder $rangeModels */ + $rangeModels = Range::query(); - /** - * Show the form for creating a new resource. - * - * @return \Illuminate\Http\Response - */ - public function create() - { - return view('bo.ranges.create'); - } - - /** - * Store a newly created resource in storage. - * - * @param \App\Http\Requests\StoreRangeRequest $request - * @return \Illuminate\Http\Response - */ - public function store(StoreRangeRequest $request) - { - $name = $request->name; - $slug = Str::slug($name); - $picture = $request->picture; - - $range = new Range(); - $range->name = $name; - $range->save(); - - if ($picture !== null) { - $imageName = $range->id . '_' . $slug . '_' . Str::random(5) . '.' . $picture->extension(); - $picture->move(public_path('images/ranges'), $imageName); - $range->picture = $imageName; - $range->save(); + /** @var string $search Search field */ + $search = $request->search; + if ($search) { + $this->searchQuery( + $rangeModels, + $search, + null, + 'name', + ); } + $searchFields = Str::ucfirst(__('validation.attributes.name')); - return \response()->redirectToRoute('bo.ranges.index') - ->with('success', 'La gamme à bien été enregistré !'); + /** Sort columns with a query */ + $this->sortQuery($rangeModels); + + /** Custom pagination */ + $rangeModels = $this->paginate($rangeModels); + + return view('back::pages.ranges.index', compact('rangeModels', 'search', 'searchFields')); } /** * Display the specified resource. * * @param \App\Models\Range $range - * @return \Illuminate\Http\Response + * @return \Illuminate\Contracts\View\View */ - public function show(Range $range) + public function show(Range $range): \Illuminate\Contracts\View\View { - return view('bo.ranges.view', compact('range')); + return view('back::pages.ranges.show', ['rangeModel' => $range]); + } + + /** + * Show the form for creating a new resource. + * + * @param \App\Models\Range $range + * @return \Illuminate\Contracts\View\View + */ + public function create(Range $range): \Illuminate\Contracts\View\View + { + return view('back::pages.ranges.create', [ + 'rangeModel' => $range, + ]); + } + + /** + * Store a newly created resource in storage. + * + * @param \App\Http\Requests\Bo\Ranges\StoreRangeRequest $request + * @return \Illuminate\Http\RedirectResponse + */ + public function store(StoreRangeRequest $request): \Illuminate\Http\RedirectResponse + { + return DB::transaction(function () use ($request) { + $range = new Range(); + $range->fill($request->validated()); + if ($range->saveOrFail()) { + return redirect() + ->route('bo.ranges.edit', $range) + ->with('success', trans( + 'crud.messages.has_been_created', + ['model' => Str::singular(__('models.classes.range'))] + )); + } + return redirect() + ->back() + ->with('error', trans( + 'crud.messages.cannot_be_created', + ['model' => Str::singular(__('models.classes.range'))] + )); + }); } /** * Show the form for editing the specified resource. * * @param \App\Models\Range $range - * @return \Illuminate\Http\Response + * @return \Illuminate\Contracts\View\View */ - public function edit(Range $range) + public function edit(Range $range): \Illuminate\Contracts\View\View { - return view('bo.ranges.edit', compact('range')); + return view('back::pages.ranges.edit', [ + 'rangeModel' => $range + ]); } /** * Update the specified resource in storage. * - * @param \App\Http\Requests\UpdateRangeRequest $request - * @param \App\Models\Range $range - * @return \Illuminate\Http\Response + * @param \App\Http\Requests\Bo\Ranges\UpdateRangeRequest $request + * @param \App\Models\Range $range + * @return \Illuminate\Http\RedirectResponse */ - public function update(UpdateRangeRequest $request, Range $range) + public function update(UpdateRangeRequest $request, Range $range): \Illuminate\Http\RedirectResponse { - $name = $request->name; - $slug = Str::slug($name); - $picture = $request->picture; - - if ($picture !== null) { - if ($range->picture !== null && file_exists(public_path('images/ranges/') . $range->picture)) { - unlink(public_path('images/ranges/') . $range->picture); + return DB::transaction(function () use ($request, $range) { + $range->fill($request->validated()); + if ($range->saveOrFail()) { + return redirect() + ->route('bo.ranges.edit', $range) + ->with('success', trans( + 'crud.messages.has_been_updated', + ['model' => Str::singular(__('models.classes.range'))] + )); } - $imageName = $range->id . '_' . $slug . '_' . Str::random(5) . '.' . $picture->extension(); - $picture->move(public_path('images/ranges'), $imageName); - } - - $range->name = $name; - - if ($picture !== null) { - $range->picture = $imageName; - } - $range->saveOrFail(); - - - return \response()->redirectToRoute('bo.ranges.edit', $range) - ->with('success', 'La gamme à bien été mise à jour !'); + return redirect() + ->back() + ->with('error', trans( + 'crud.messages.cannot_be_updated', + ['model' => Str::singular(__('models.classes.range'))] + )); + }); } /** * Remove the specified resource from storage. * * @param \App\Models\Range $range - * @return \Illuminate\Http\Response + * @return \Illuminate\Http\RedirectResponse */ - public function destroy(Range $range) + public function destroy(Range $range): \Illuminate\Http\RedirectResponse { if ($range->products()->count()) { return back()->withError( 'Cette gamme est associé a des produits, la supression n\'est pas possible' ); } - if (!$range->delete()) { - return back()->withError( - 'Erreur lors de la suppression de la gamme' - ); - } - return \response()->redirectToRoute('bo.ranges.index') - ->with('warning', 'La gamme à bien été supprimée !'); + return DB::transaction(function () use ($range) { + if ($range->deleteOrFail()) { + return redirect() + ->route('bo.ranges.index') + ->with('success', __( + 'crud.messages.has_been_deleted', + ['model' => Str::singular(__('models.classes.range'))] + )); + } + return redirect() + ->back() + ->with('error', __( + ':crud.messages.cannot_be_deleted', + ['model' => Str::singular(__('models.classes.range'))] + )); + }); } } diff --git a/app/Http/Controllers/Bo/Re7Controller.php b/app/Http/Controllers/Bo/Re7Controller.php new file mode 100644 index 0000000..041d02a --- /dev/null +++ b/app/Http/Controllers/Bo/Re7Controller.php @@ -0,0 +1,245 @@ +middleware(function (Request $request, \Closure $next) { + $this->authorize('fo.showRe7'); + return $next($request); + }); + } + + /** + * Show Home page + * + * @return \Illuminate\Contracts\View\View + */ + public function home(): View + { + return view('theme::pages.home'); + } + + /** + * Show Teaser page + * + * @return \Illuminate\Contracts\View\View + */ + public function teaser(): View + { + return view('theme::pages.teaser'); + } + + /** + * Show Teaser page + * + * @return \Illuminate\Contracts\View\View + */ + public function endGame(): View + { + return view('theme::pages.end-game'); + } + + // * -- Participation + + /** + * Show prize page + * + * @param \App\Models\Prize $prize + * @return \Illuminate\Contracts\View\View + */ + public function prize(Prize $prize): View + { + // * Fake participation model + $participationModel = new Participation(); + $participationModel = 9999999; + return view('theme::pages.participation.won', [ + 'prizeModel' => $prize, + 'participationModel' => $participationModel + ]); + } + + /** + * Show discount page + * + * @return \Illuminate\Contracts\View\View + */ + public function discount(): View + { + /** @var \App\Models\Settings */ + $settings = app(Settings::class); + /** @var \App\Lib\Discount */ + $discount = Arr::get( + $settings->web_coupons, + $this->getRandomWeightedElementIndex($settings->web_coupons) + ); + + if (!$settings->discounts_activated) { + return abort(404); + } + + $mesBrDiscount = new Discount(); + return view('theme::pages.participation.won', compact('discount', 'mesBrDiscount')); + } + + /** + * Show loose page + * + * @return \Illuminate\Contracts\View\View + */ + public function loose(): View + { + return view('theme::pages.participation.loose'); + } + + // * -- END Participation + + /** + * View won prize mail + * + * @param \App\Models\Prize $prize + * @return \Illuminate\Contracts\View\View + */ + public function mailPrize(Prize $prize): View + { + return view('back::pages.re7-preview-mail', [ + 'render_url' => route('re7.mail-print', [ + 'type' => 'prize', + 'prize' => $prize + ]) + ]); + } + + /** + * View won discount mail + * + * @return \Illuminate\Contracts\View\View + */ + public function mailDiscount(): View + { + /** @var \App\Models\Settings */ + $settings = app(Settings::class); + if (!$settings->discounts_activated) { + return abort(404); + } + + return view('back::pages.re7-preview-mail', [ + 'render_url' => route('re7.mail-print', [ + 'type' => 'discount' + ]) + ]); + } + + /** + * View proof mail received mail + * + * @return \Illuminate\Contracts\View\View + */ + public function mailProofReceived(): View + { + return view('back::pages.re7-preview-mail', [ + 'render_url' => route('re7.mail-print', [ + 'type' => 'proof' + ]) + ]); + } + + /** + * View sent prize mail + * + * @return \Illuminate\Contracts\View\View + */ + public function mailPrizeSent(): View + { + return view('back::pages.re7-preview-mail', [ + 'render_url' => route('re7.mail-print', [ + 'type' => 'prize-sent' + ]) + ]); + } + + /** + * Print a specific mail + * + * @param string $type + * @param \App\Models\Prize|null $prize + * @return \Illuminate\Http\Response + */ + public function mailPrint(string $type, Prize|null $prize = null): Response + { + /** @var \App\Models\User */ + $user = auth('backend')->user(); + + /** @var \App\Models\Settings */ + $settings = app(Settings::class); + + switch ($type) { + case 'discount': + /** @var \App\Lib\Discount */ + $discount = Arr::get( + $settings->web_coupons, + $this->getRandomWeightedElementIndex($settings->web_coupons) + ); + + return response((new DiscountWonMail( + new Address( + $user->email, + $user->first_name + ), + $settings->name, + $discount, + config('app.url') + ))->render()); + case 'prize': + return response((new PrizeWonMail( + new Address( + $user->email, + $user->first_name + ), + $settings->name, + $prize, + config('app.url') + ))->render()); + case 'prize-sent': + return response((new PrizeIsSentMail( + new Address( + $user->email, + $user->first_name + ), + $settings->name + ))->render()); + case 'proof': + return response((new WinningProofSubmitedMail( + new Address( + $user->email, + $user->first_name + ), + $settings->name + ))->render()); + default: + return response('', 404); + } //end switch + } +} diff --git a/app/Http/Controllers/Bo/SettingsController.php b/app/Http/Controllers/Bo/SettingsController.php index c193f18..cfde798 100644 --- a/app/Http/Controllers/Bo/SettingsController.php +++ b/app/Http/Controllers/Bo/SettingsController.php @@ -3,89 +3,101 @@ namespace App\Http\Controllers\Bo; use App\Http\Controllers\Controller; +use App\Http\Requests\Bo\Settings\UpdateSettingsRequest; +use App\Lib\Discount; +use App\Lib\Helpers\FileStorageHelper; use App\Models\Settings; -use Illuminate\Http\Request; -use Illuminate\Support\Carbon; -use Illuminate\Support\Facades\Cache; +use Illuminate\Support\Arr; +use Illuminate\Support\Facades\DB; +use Illuminate\Support\Str; class SettingsController extends Controller { - public function manage(Request $request) + /** + * Create the controller instance. + */ + public function __construct() { - /** @var \App\Models\Settings $settings */ - $settings = app(Settings::class); + $this->authorizeResource(Settings::class); + } - if ($_SERVER['REQUEST_METHOD'] === 'POST') { - $name = $request->name; - $startDate = $request->start_date; - $endDate = $request->end_date; - $nbParticipationPlayer = $request->nb_participation_player; - $nbParticipationIp = $request->nb_participation_ip; - $nbUniqueCodeUse = $request->nb_unique_code_use; - $useEanCodes = $request->use_ean_codes === null ? 0 : 1; - $activatedTeaser = $request->activated_teaser === null ? 0 : 1; - $teaserEndActivity = $request->teaser_end_activity; - $activatedClosePage = $request->activated_close_page === null ? 0 : 1; - $closePageActiveDate = $request->close_page_active_date; - $redirectClose = $request->redirect_close; - $reductionsActivated = $request->reductions_activated === null ? 0 : 1; - $reductionsSite = $request->reductions_site; - $reductionsCampaign = $request->reductions_campaign; - $webCoupons = $request->web_coupons; - $facebookActivated = $request->facebook_activated === null ? 0 : 1; - $facebookAppId = $request->facebook_app_id; - $facebookSecret = $request->facebook_secret; - $notificationEmails = $request->notification_emails; - $winningProof = $request->winning_proof === null ? 0 : 1; - $company = $request->company; - $analytics = $request->analytics; + /** + * Show the form for editing the specified resource. + * + * @param \App\Models\Settings $settings + * @return \Illuminate\Contracts\View\View + */ + public function edit(Settings $settings): \Illuminate\Contracts\View\View + { + return view('back::pages.settings.edit', [ + 'settingsModel' => $settings + ]); + } - // Check du lien de redirection après fermeture. - if (strpos($redirectClose, 'https://') === false && strpos($redirectClose, 'http://') === false) { - $redirectClose = 'https://' . $redirectClose; + /** + * Update the specified resource in storage. + * + * @param \App\Http\Requests\Bo\Settings\UpdateSettingsRequest $request + * @param \App\Models\Settings $settings + * @return \Illuminate\Http\RedirectResponse + */ + public function update(UpdateSettingsRequest $request, Settings $settings): \Illuminate\Http\RedirectResponse + { + return DB::transaction(function () use ($request, $settings) { + $data = $request->validated(); + + // * Assign parsed Web coupon objects + Arr::set($data, 'web_coupons', collect(Arr::get($data, 'web_coupons'))->filter() + ->map(fn (array $coupon) => $this->parseWebCoupon($coupon)) + ->filter()->all()); + + $settings->fill($data); + if ($settings->saveOrFail()) { + return redirect() + ->route('bo.settings.edit', $settings) + ->with('success', trans( + 'crud.messages.has_been_updated', + ['model' => Str::singular(__('models.classes.settings'))] + )); } + return redirect() + ->back() + ->with('error', trans( + 'crud.messages.cannot_be_updated', + ['model' => Str::singular(__('models.classes.settings'))] + )); + }); + } - $settings->name = $name; - $settings->start_date = $startDate; - $settings->end_date = $endDate; - $settings->nb_participation_player = $nbParticipationPlayer; - $settings->nb_participation_ip = $nbParticipationIp; - $settings->nb_unique_code_use = $nbUniqueCodeUse; - $settings->use_ean_codes = $useEanCodes; - $settings->activated_teaser = $activatedTeaser; - if ($activatedTeaser === 1) { - $settings->teaser_end_activity = Carbon::parse($teaserEndActivity); - } - $settings->activated_close_page = $activatedClosePage; - if ($activatedClosePage === 1) { - $settings->close_page_active_date = Carbon::parse($closePageActiveDate); - } - $settings->redirect_close = $redirectClose; - $settings->reductions_activated = $reductionsActivated; - if ($reductionsActivated === 1) { - $settings->reductions_site = $reductionsSite; - $settings->reductions_campaign = $reductionsCampaign; - $settings->web_coupons = $webCoupons; - } - $settings->facebook_activated = $facebookActivated; - $settings->facebook_app_id = $facebookAppId; - $settings->facebook_secret = $facebookSecret; - $settings->notification_emails = $notificationEmails; - $settings->winning_proof = $winningProof; - $settings->company = $company; - $settings->analytics = $analytics; - $settings->save(); - - $settingsGlobal = app(Settings::class) - ->select('name', 'company', 'analytics', 'start_date', 'end_date')->first(); - Cache::put('settingsGlobal', $settingsGlobal); - - $success = "Modifications enregistrés !"; - - return view('bo.settings.manage', compact('settings', 'success')); - }//end if - - return view('bo.settings.manage', compact('settings')); + /** + * Try to parse webCoupon + * + * @param array $coupon + * @return \App\Lib\Discount|null + */ + private function parseWebCoupon(array $coupon): Discount | null + { + /** @var \Illuminate\Http\UploadedFile|string */ + $picture = Arr::get($coupon, 'picture'); + if (is_object($picture) and ($picture instanceof \Illuminate\Http\UploadedFile)) { + $picture = FileStorageHelper::storeFile( + new Settings(), + $picture, + true, + 'web-coupon.' . $picture->extension() + ); + } + try { + return Discount::make( + Arr::get($coupon, 'web_coupon_identifiant'), + Arr::get($coupon, 'percentage'), + Arr::get($coupon, 'face_value'), + Arr::get($coupon, 'valid_on'), + $picture, + ); + } catch (\RuntimeException | \TypeError) { + return null; + } } } diff --git a/app/Http/Controllers/Bo/StaticPageController.php b/app/Http/Controllers/Bo/StaticPageController.php new file mode 100644 index 0000000..b177201 --- /dev/null +++ b/app/Http/Controllers/Bo/StaticPageController.php @@ -0,0 +1,91 @@ +authorizeResource(StaticPage::class); + } + + /** + * Display a listing of the resource. + * + * @param \Illuminate\Http\Request $request + * @return \Illuminate\Contracts\View\View + */ + public function index(Request $request): \Illuminate\Contracts\View\View + { + /** @var \Illuminate\Database\Eloquent\Builder $query */ + $query = StaticPage::query(); + + /** @var string $search Search field */ + $search = $request->search; + if ($search) { + $this->searchQuery( + $query, + $search, + null, + 'title', + ); + } + $searchFields = \implode(', ', [ + trans('validation.attributes.title'), + ]); + + /** Sort columns with a query */ + $this->sortQuery($query); + + /** Custom pagination */ + $staticPageModelList = $this->paginate($query); + + return view('back::pages.static_pages.index', compact('staticPageModelList', 'search', 'searchFields')); + } + + /** + * Show the form for editing the specified resource. + * + * @param App\Models\StaticPage $static_page + * @return \Illuminate\Contracts\View\View + */ + public function edit(StaticPage $static_page): \Illuminate\Contracts\View\View + { + return view('back::pages.static_pages.edit', ['staticPageModel' => $static_page]); + } + + /** + * Update the specified resource in storage. + * + * @param \App\Http\Requests\Bo\StaticPages\UpdateStaticPageRequest $request + * @param \App\Models\StaticPage $static_page + * @return \Illuminate\Http\RedirectResponse + */ + public function update(UpdateStaticPageRequest $request, StaticPage $static_page): \Illuminate\Http\RedirectResponse + { + return DB::transaction(function () use ($request, $static_page) { + $static_page->fill($request->validated()); + + if ($static_page->saveOrFail()) { + return redirect()->route('bo.static_pages.edit', $static_page) + ->with('success', __('crud.messages.has_been_updated', [ + 'model' => Str::ucfirst(\trans_choice('models.classes.static_page', 1)) + ])); + } + return redirect()->route('bo.static_pages.edit', $static_page) + ->with('error', __('crud.messages.cannot_be_updated', [ + 'model' => Str::ucfirst(\trans_choice('models.classes.static_page', 1)) + ])); + }); + } +} diff --git a/app/Http/Controllers/Bo/UserController.php b/app/Http/Controllers/Bo/UserController.php new file mode 100644 index 0000000..094cd54 --- /dev/null +++ b/app/Http/Controllers/Bo/UserController.php @@ -0,0 +1,169 @@ +authorizeResource(User::class); + } + + /** + * Display a listing of the resource. + * + * @param \Illuminate\Http\Request $request + * @return \Illuminate\Contracts\View\View + */ + public function index(Request $request): \Illuminate\Contracts\View\View + { + /** @var \Illuminate\Database\Eloquent\Builder $userModels */ + $userModels = User::query(); + + /** @var string $search Search field */ + $search = $request->search; + if ($search) { + $this->searchQuery( + $userModels, + $search, + null, + 'first_name', + 'last_name', + 'email', + 'role', + ); + } + $searchFields = \implode(', ', [ + trans('validation.attributes.first_name'), + trans('validation.attributes.last_name'), + trans('validation.attributes.email'), + trans('validation.attributes.role'), + ]); + + /** Sort columns with a query */ + $this->sortQuery($userModels); + + /** Custom pagination */ + $userModels = $this->paginate($userModels); + + return view('back::pages.users.index', compact('userModels', 'search', 'searchFields')); + } + + + /** + * Show the form for creating a new resource. + * + * @param \App\Models\User $user + * @return \Illuminate\Contracts\View\View + */ + public function create(User $user): \Illuminate\Contracts\View\View + { + return view('back::pages.users.create', ['userModel' => $user]); + } + + /** + * Store a newly created resource in storage. + * + * @param \App\Http\Requests\Bo\Users\StoreUserRequest $request + * @return \Illuminate\Http\RedirectResponse + */ + public function store(StoreUserRequest $request): \Illuminate\Http\RedirectResponse + { + return DB::transaction(function () use ($request) { + $user = new User(); + $user->fill($request->validated()); + + if ($user->saveOrFail()) { + return redirect()->route('bo.users.edit', $user) + ->with('success', __('crud.messages.has_been_created', [ + 'model' => Str::ucfirst(__('models.classes.user')) + ])); + } + return redirect()->back() + ->with('error', __('crud.messages.cannot_be_created', [ + 'model' => Str::ucfirst(__('models.classes.user')) + ])); + }); + } + + /** + * Show the form for editing the specified resource. + * + * @param App\Models\User $user + * @return \Illuminate\Contracts\View\View + */ + public function edit(User $user): \Illuminate\Contracts\View\View + { + return view('back::pages.users.edit', ['userModel' => $user]); + } + + /** + * Update the specified resource in storage. + * + * @param \App\Http\Requests\Bo\Users\UpdateUserRequest $request + * @param \App\Models\User $user + * @return \Illuminate\Http\RedirectResponse + */ + public function update(UpdateUserRequest $request, User $user): \Illuminate\Http\RedirectResponse + { + return DB::transaction(function () use ($request, $user) { + $user->fill($request->validated()); + + if ($user->saveOrFail()) { + return redirect()->route('bo.users.edit', $user) + ->with('success', __('crud.messages.has_been_updated', [ + 'model' => Str::ucfirst(__('models.classes.user')) + ])); + } + return redirect()->route('bo.users.edit', $user) + ->with('error', __('crud.messages.cannot_be_updated', [ + 'model' => Str::ucfirst(__('models.classes.user')) + ])); + }); + } + + /** + * Remove the specified resource from storage. + * + * @param \App\Models\User $user + * @return \Illuminate\Http\RedirectResponse + */ + public function destroy(User $user): \Illuminate\Http\RedirectResponse + { + if ($user->deleteOrFail()) { + return redirect()->route('bo.users.index') + ->with('success', __('crud.messages.has_been_deleted', [ + 'model' => Str::ucfirst(__('models.classes.user')) + ])); + } + return redirect()->back() + ->with('error', __('crud.messages.cannot_be_deleted', [ + 'model' => Str::ucfirst(__('models.classes.user')) + ])); + } + + /** + * Duplicate the specified resource. + * + * @param \App\Models\User $user + * @return \Illuminate\Contracts\View\View + */ + public function duplicate(User $user): \Illuminate\Contracts\View\View + { + return $this->create($user->replicate()); + } +} diff --git a/app/Http/Controllers/Bo/WinnersListController.php b/app/Http/Controllers/Bo/WinnersListController.php deleted file mode 100644 index e464db4..0000000 --- a/app/Http/Controllers/Bo/WinnersListController.php +++ /dev/null @@ -1,117 +0,0 @@ -apiCrm = new \LDCCRM\ApiV1(config('crm.endpoint'), config('crm.token')); - } - - public function index() - { - $winnersList = Participation::has('instantWin')->get(); - $settings = Settings::select('use_ean_codes', 'winning_proof')->first(); - return view('bo.winners-list.index', compact('winnersList', 'settings')); - } - - public function courrierArcadia($id) - { - $participation = Participation::findOrFail($id); - - $crmUser = $this->apiCrm->getCustomer($participation->user->crm_id); - if ($crmUser->status === 'NOK') { - return back()->withErrors("Erreur lors de la récupération de l'utilisateur dans la CRM : Code : " . - $crmUser->code . " Message : " . $crmUser->message); - } - - $crmId = $participation->user->crm_id; - - $crmUser = $crmUser->user; - - $corps = '' . "\n"; - $corps .= ' ' . "\n"; - $corps .= "\t" . '' . "\n"; - $corps .= "\t" . '' . date('d/m/Y') . '' . "\n"; - $corps .= "\t" . ' ' . "\n"; - $corps .= "\t" . '' . "\n"; - $corps .= "\t" . 'firstname) . ']]>' . "\n"; - $corps .= "\t" . 'lastname) . ']]>' . "\n"; - $corps .= "\t" . 'address) . ']]>' . "\n"; - $corps .= "\t" . 'address2) . ']]>' . "\n"; - $corps .= "\t" . 'postcode) . ']]>' . "\n"; - $corps .= "\t" . 'city) . ']]>' . "\n"; - $corps .= '' . "\n"; - $corps .= "\t" . ' ' . "\n"; - $corps .= "\t" . ' ' . "\n"; - $corps .= "\t" . '1' . "\n"; - $corps .= "\t" . '' . "\n"; - $corps .= '' . "\n"; - $corps .= ' ' . "\n"; - $corps .= ''; - - return view('bo.winners-list.arcadia', compact('participation', 'corps', 'crmId')); - } - - public function createCourrierArcadia(Request $request, $id) - { - $participation = Participation::findOrFail($id); - $instantWin = $participation->instantWin; - - if ($instantWin->prize->arcadia_operation_code !== 0 && $instantWin->prize->arcadia_support_code !== 0) { - $fields = [ - 'root' => [ - [ - 'fieldName' => 'order_date', - 'fieldValue' => date('d/m/Y') - ], - [ - 'fieldName' => 'operation', - 'fieldValue' => $instantWin->prize->arcadia_operation_code - ] - ], - 'orderLine' => [ - [ - 'fieldName' => 'code_unique', - 'fieldValue' => $participation->code->code_unique - ], - [ - 'fieldName' => 'support_code', - 'fieldValue' => $instantWin->prize->arcadia_support_code - ], - [ - 'fieldName' => 'label_type_support', - 'fieldValue' => 'Gain du lot : ' . $instantWin->prize->label_one - ] - ] - ]; - - /** @var \App\Models\Settings $settings */ - $settings = app(Settings::class); - if ($settings->use_ean_codes === 1) { - $fields['orderLine'][] = [ - 'fieldName' => 'code_on_pack', - 'fieldValue' => $participation->codeEan->code - ]; - } - - $arcadiaMail = $this->apiCrm->ArcadiaOutgoingMail($participation->user->crm_id, $fields, 'game'); - if ($arcadiaMail->status === 'NOK') { - Mail::to(config('mail.MAIL_ADMIN'))->send(new CourrierArcadiaError($participation->user)); - return back()->withErrors("Erreur lors de l'envoi du courrier Arcadia. Code : " . - $arcadiaMail->code . " Message : " . $arcadiaMail->message); - } - }//end if - return back()->with('success', 'Courrier envoyé !'); - } -} diff --git a/app/Http/Controllers/Controller.php b/app/Http/Controllers/Controller.php index ce1176d..6284b83 100644 --- a/app/Http/Controllers/Controller.php +++ b/app/Http/Controllers/Controller.php @@ -2,14 +2,267 @@ namespace App\Http\Controllers; +use App\Enums\Pagination\ItemsPerPaginationEnum; +use App\Enums\Theme\BootstrapThemeEnum; +use App\Lib\Helpers\ToolboxHelper; +use Illuminate\Database\Eloquent\Builder; use Illuminate\Foundation\Auth\Access\AuthorizesRequests; -use Illuminate\Foundation\Bus\DispatchesJobs; use Illuminate\Foundation\Validation\ValidatesRequests; +use Illuminate\Http\Request; use Illuminate\Routing\Controller as BaseController; +use Illuminate\Support\Facades\Cache; +use Illuminate\Support\Facades\Schema; +use Illuminate\Support\Facades\Session; +use Illuminate\Support\Str; class Controller extends BaseController { use AuthorizesRequests; - use DispatchesJobs; use ValidatesRequests; + + + /** + * Utility function for getting random values with weighting. + * Pass in an associative array, such as array('A'=>5, 'B'=>45, 'C'=>50) + * An array like this means that "A" has a 5% chance of being selected, "B" 45%, and "C" 50%. + * The return value is the array key, A, B, or C in this case. Note that the values assigned + * do not have to be percentages. The values are simply relative to each other. If one value + * weight was 2, and the other weight of 1, the value with the weight of 2 has about a 66% + * chance of being selected. Also note that weights should be integers. + * + * @param array<\App\Lib\Discount> $weightedValues + * @return integer The winning key + * @url https://stackoverflow.com/a/11872928/4355295 + */ + protected function getRandomWeightedElementIndex(array $weightedValues): int + { + mt_srand(time()); + $rand = mt_rand(1, max((int)collect($weightedValues)->sum('percentage'), 1)); + + foreach ($weightedValues as $key => $value) { + $rand -= $value->percentage; + if ($rand <= 0) { + return $key; + } + } + } + + /** + * Gives the redirection path for FO Auth controllers + * + * @return string + */ + protected function authLoggedRedirectPath(): string + { + return response()->redirectToRoute('fo.homepage')->getTargetUrl(); + } + + /** + * Build Search query on specified fields + * splitting search into words or using whole sentence + * + * @param \Illuminate\Database\Eloquent\Builder $query The eloquent query builder. + * @param string $search The query string. + * @param callable $searchQuery The query string. + * @param string ...$fields Either a simple array or a string + * in case of a string the two fields + * would be concatenate to make the search. + * @return \Illuminate\Database\Eloquent\Builder + */ + protected function searchQuery( + Builder $query, + string $search, + callable $searchQuery = null, + string ...$fields + ): \Illuminate\Database\Eloquent\Builder { + if (count($fields)) { + // Search using words. + $words = explode(' ', $search); + $query->where(function ($query) use ($searchQuery, $words, $search, $fields) { + foreach ($words as $word) { + if (!strlen($word)) { + continue; + } + $this->searchOnFields($query, $word, $fields); + } //end foreach + // Search whole using whole sentence. + $this->searchOnFields($query, $search, $fields); + if ($searchQuery) { + $searchQuery($query); + } + }); + } //end if + return $query; + } + + /** + * Build query search on all fields + * + * @param \Illuminate\Database\Eloquent\Builder $query + * @param string $search + * @param array $fields + * @return \Illuminate\Database\Eloquent\Builder + */ + private function searchOnFields( + Builder $query, + string $search, + array $fields + ): \Illuminate\Database\Eloquent\Builder { + $table = $query->getModel()->getTable(); + foreach ($fields as $field) { + $field = str_replace('?', '\?', $field); + if (is_array($field)) { + $query->orWhereRaw( + sprintf("UPPER(CONCAT(%s)) LIKE UPPER(?)", collect($field)->map(function ($q) use ($table) { + return "`$table`.`$q`"; + })->implode(', \' \', ')), + ['%' . htmlspecialchars($search) . '%'] + ); + return $query; + } + // Get models woth enum's label. + if (is_array($this->getSearchValue($query, $search, $field))) { + foreach ($this->getSearchValue($query, $search, $field) as $array) { + $query->orWhereRaw( + "UPPER(`$table`.`$field`) LIKE UPPER(?)", + ['%' . htmlspecialchars($array->value) . '%'] + ); + } + return $query; + } + // Get models with relation's name/label. + if (Str::endsWith($field, '_id') && $query->getModel()->has(Str::remove('_id', $field))) { + $query->orWhereHas(Str::remove('_id', $field), function ($queryRelation) use ($field, $search) { + if (Schema::hasColumn(Str::remove('_id', $field) . 's', 'name')) { + $queryRelation->where('name', 'like', '%' . $search . '%'); + } elseif (Schema::hasColumn(Str::remove('_id', $field) . 's', 'label')) { + $queryRelation->where('label', 'like', '%' . $search . '%'); + } + }); + return $query; + } + $query->orWhereRaw( + "UPPER(`$table`.`$field`) LIKE UPPER(?)", + ['%' . htmlspecialchars($this->getSearchValue($query, $search, $field)) . '%'] + ); + } //end foreach + return $query; + } + + /** + * Get the search value (on string or Enum). + * + * @param \Illuminate\Database\Eloquent\Builder $query + * @param string $search + * @param string $field + * @return string|array + */ + protected function getSearchValue(Builder $query, string $search, string $field): string|array + { + if ( + count($query->getModel()->getCasts()) and // Check if the model has casts. + isset($query->getModel()->getCasts()[$field]) and // Check if there is cast about specific field. + enum_exists($query->getModel()->getCasts()[$field]) // Check if the cast is an enum. + ) { + $cases = collect($query->getModel()->getCasts()[$field]::toArray()); + $enum = $cases->filter(function ($item) use ($search) { + return preg_match('/' . Str::lower($search) . '/', Str::lower($item->label)); + }); + return $enum->toArray(); + } else { + return $search; + } + } + + /** + * Sort columns with a query. + * + * @param \Illuminate\Database\Eloquent\Builder $query + * @param array $ignore + * @return \Illuminate\Database\Eloquent\Builder + */ + protected function sortQuery(Builder $query, array $ignore = []): \Illuminate\Database\Eloquent\Builder + { + $rName = request()->route()->getName(); + $table = $query->getModel()->getTable(); + if (request()->sort_col) { + Session::put("$rName.sort_col", request()->sort_col); + Session::put("$rName.sorted", true); + } + if (request()->sort_way) { + Session::put("$rName.sort_way", request()->sort_way); + Session::put("$rName.sorted", true); + } + if (request()->rst) { + Session::remove("$rName.sorted"); + Session::remove("$rName.sort_col"); + Session::remove("$rName.sort_way"); + } + if (request()->sort_col and request()->sort_way and Schema::hasColumn($table, request()->sort_col)) { + if ( + !isset($ignore) or + (isset($ignore) and !in_array(request()->sort_col, $ignore)) + ) { + $query = $query->orderBy(\sprintf("$table.%s", request()->sort_col), request()->sort_way); + } + } elseif (Schema::hasColumn($table, 'order')) { + $query = $query->orderBy('order', 'ASC'); + Session::put("$rName.sort_col", 'order'); + Session::put("$rName.sort_way", 'asc'); + } elseif (Schema::hasColumn($table, 'updated_at')) { + $query = $query->orderBy('updated_at', 'DESC'); + Session::put("$rName.sort_col", 'updated_at'); + Session::put("$rName.sort_way", 'desc'); + } elseif (Schema::hasColumn($table, 'created_at')) { + $query = $query->orderBy('created_at', 'DESC'); + Session::put("$rName.sort_col", 'created_at'); + Session::put("$rName.sort_way", 'desc'); + } + return $query; + } + + /** + * Customize pagination with cache or config (default). + * + * @param \Illuminate\Database\Eloquent\Builder $query + * @param \App\Enums\Pagination\ItemsPerPaginationEnum|null $pagination + * @return \Illuminate\Contracts\Pagination\LengthAwarePaginator + */ + protected function paginate( + Builder $query, + ItemsPerPaginationEnum $pagination = null + ): \Illuminate\Contracts\Pagination\LengthAwarePaginator { + $currentRoutePath = Str::slug(request()->route()->getName()); + $cacheKey = "pagination.{$currentRoutePath}"; + $pagination = $pagination ?? ItemsPerPaginationEnum::twelve; + $pagination = ToolboxHelper::getValidatedEnum( + Cache::get($cacheKey, $pagination->value()), + 'pagination', + '\App\Enums\Pagination\ItemsPerPaginationEnum', + ); + if (Cache::get($cacheKey) !== $pagination) { + Cache::put($cacheKey, $pagination); + } + $query = $query->paginate($pagination); + return $query; + } + + /** + * Set the bootstrap theme or light (default). + * + * @param \Illuminate\Http\Request $request + * @return \Illuminate\Http\RedirectResponse + */ + protected function setTheme(Request $request): \Illuminate\Http\RedirectResponse + { + $theme = ToolboxHelper::getValidatedEnum( + $request->theme ?: Cache::get('theme', BootstrapThemeEnum::light->value()), + 'theme', + '\App\Http\Controllers\BootstrapThemeEnum', + ); + if (Cache::get("theme") !== $theme) { + Cache::put("theme", $theme); + } + return redirect()->back()->with('success', __('crud.messages.theme_updated')); + } } diff --git a/app/Http/Controllers/EndPageController.php b/app/Http/Controllers/EndPageController.php deleted file mode 100644 index de8ed2f..0000000 --- a/app/Http/Controllers/EndPageController.php +++ /dev/null @@ -1,27 +0,0 @@ -select('start_date', 'end_date', 'activated_close_page', 'close_page_active_date', 'redirect_close') - ->first(); - if ( - $settings->end_date < now() && - $settings->activated_close_page === 1 && - $settings->close_page_active_date > now() - ) { - return view('front.basic.end', compact('settings')); - } - return redirect()->route('home'); - } -} diff --git a/app/Http/Controllers/EnterCodeController.php b/app/Http/Controllers/EnterCodeController.php deleted file mode 100644 index 4567845..0000000 --- a/app/Http/Controllers/EnterCodeController.php +++ /dev/null @@ -1,291 +0,0 @@ -apiCrm = new \LDCCRM\ApiV1(config('crm.endpoint'), config('crm.token')); - } - - /** - * Show enter code form - * - * @return \Illuminate\Contracts\View\View|\Illuminate\Contracts\View\Factory - */ - public function index() - { - $nbParticipations = Participation::where('user_id', Auth::user()->id)->count(); - $settings = app(Settings::class)->select('use_ean_codes', 'nb_participation_player')->first(); - if ($nbParticipations >= $settings->nb_participation_player) { - return view('front.basic.participation-exhausted', compact('settings')); - } - return view('front.basic.enter-code', compact('settings')); - } - - /** - * Participate Method - * - * @param ParticipateRequest $request - * @return \Illuminate\Contracts\View\View|\Illuminate\Contracts\View\Factory - */ - public function participate(ParticipateRequest $request) - { - // Récupération des données à utilisées. - /** @var \App\Models\Settings $settings */ - $settings = app(Settings::class); - - // * Cas IP bannie. - $ipBanned = BannedIp::where('ip', app('clientIp'))->first() === null ? 0 : 1; - if ($ipBanned) { - return view('front.basic.participation-exhausted', compact('settings')); - } - - // * Cas nombre de participation maximale atteint. - $nbParticipations = Participation::where('user_id', auth()->user()->id)->count(); - if ($nbParticipations >= $settings->nb_participation_player) { - return view('front.basic.participation-exhausted', compact('settings')); - } - - // * Tous les cas "bloquants" sont passé, l'utilisateur participe à partir d'ici. - $participation = new Participation(); - $participation->user_id = auth()->user()->id; - $participation->code_unique_id = $request->code->id; - $participation->code_ean_id = $request->code_ean ? $request->code_ean->id : null; - $participation->ip = app('clientIp'); - $participation->save(); - - // * Gestion des instants gagnants. - $userAlreadyWon = Participation::has('instantWin') - ->whereHas('user', function ($q) { - $q->whereId(auth()->user()->id); - })->first(); - - // * Si l'utilisateur actuel à déjà gagné un gros lot, pas d'instant gagnant. - if ($userAlreadyWon) { - return $this->serveCouponWin($settings, $participation); - } - - $instantWin = InstantWin::where([['appear_date', '<', now()], ['won', 0]]) - ->orderBy('appear_date', 'ASC')->first(); - if ($instantWin) { - // Ici si fail car unique dupliqué catch. - try { - // Gain d'un gros lot. - return $this->instantWin($settings, $request, $participation, $instantWin); - } catch (\ErrorException $e) { - // Unbind instant gagnant. - $participation->instantWin()->delete(); - // phpcs:ignore - // TODO: si erreur il faut envoyer un mail à equipe.web@ldc.fr. - } //end try - } - return $this->serveCouponWin($settings, $participation); - } - - /** - * Handle instant wins - * - * @param Settings $settings - * @param Request $request - * @param Participation $participation - * @param InstantWin|null $instantWin - * @return \Illuminate\Contracts\View\View|\Illuminate\Contracts\View\Factory - */ - private function instantWin(Settings $settings, Request $request, Participation &$participation, $instantWin) - { - $instantWin->won = true; - // Should save now to prevent next player win on the same winning moment. - $instantWin->save(); - $participation->instantWin()->save($instantWin); - // Envoi du courrier Arcadia. - if ( - $instantWin->prize->arcadia_operation_code !== 0 && - $instantWin->prize->arcadia_support_code !== 0 - ) { - $crmId = auth()->user()->crm_id; - - $fields = [ - 'root' => [ - [ - 'fieldName' => 'order_date', - 'fieldValue' => date('d/m/Y') - ], - [ - 'fieldName' => 'operation', - 'fieldValue' => $instantWin->prize->arcadia_operation_code - ] - ], - 'orderLine' => [ - [ - 'fieldName' => 'code_unique', - 'fieldValue' => $request->serial - ], - [ - 'fieldName' => 'support_code', - 'fieldValue' => $instantWin->prize->arcadia_support_code - ], - [ - 'fieldName' => 'label_type_support', - 'fieldValue' => 'Gain du lot : ' . $instantWin->prize->label_one - ] - ] - ]; - - if ($settings->use_ean_codes === 1) { - $codeEan = $request->code_ean; - $fields['orderLine'][] = [ - 'fieldName' => 'code_on_pack', - 'fieldValue' => "$codeEan->code" - ]; - } - - $arcadiaMail = $this->apiCrm->ArcadiaOutgoingMail($crmId, $fields, 'game'); - if ($arcadiaMail->status === 'KO') { - Mail::to(config('mail.MAIL_ADMIN'))->send(new CourrierArcadiaError(auth()->user())); - } - } //end if - - Mail::to(auth()->user()->email)->send(new PrizeWon(auth()->user(), $instantWin->prize, $settings)); - $mails = json_decode($settings->notification_emails); - foreach ($mails as $mail) { - Mail::to($mail->email)->send(new NotifWinAdmin($settings, $participation)); - } - $participation->save(); - return view("front.basic." . $instantWin->prize->gain_view->file_name, compact('settings')) - ->with('prize', $instantWin->prize); - } - - /** - * Détermine si un BR doit être servi - * renvoi la vue de gain BR ou la vue "Perdu" - * - * @param Settings $settings - * @param Participation $participation - * @return \Illuminate\Contracts\View\View|\Illuminate\Contracts\View\Factory - */ - private function serveCouponWin(Settings $settings, Participation $participation) - { - // Si le jeu est 100% gagnant. - if ($settings->reductions_activated === 1) { - $coupon = $this->getRandomCoupon($settings); - $crmCoupon = $this->updateCoupon($settings, $coupon->web_coupon_identifiant, $participation); - if (!$crmCoupon) { - $participation->delete(); - return back()->withErrors("Une erreur est survenue, merci de réessayez ultérieurement."); - } - Mail::to(Auth::user()->email)->send(new ReductionWon(Auth::user(), $coupon, $settings, $crmCoupon)); - return view('front.basic.reduction', compact('crmCoupon', 'coupon')); - } else { - return view('front.basic.loose'); - } - } - - /** - * Get a random coupon - * - * @param Settings $settings - * @return mixed - */ - private function getRandomCoupon(Settings $settings) - { - $webCoupons = json_decode($settings->web_coupons); - if (count($webCoupons) > 1) { - $lots = []; - foreach ($webCoupons as $webCoupon) { - $lots[] = $webCoupon; - } - foreach ($lots as $lot) { - for ($i = 0; $i < $lot->percentage; $i++) { - $tmp[] = $lot; - } - } - shuffle($tmp); - return $tmp[0]; - } else { - return $webCoupons[0]; - } - } - - /** - * Update a coupon - * - * @param Settings $settings - * @param mixed $coupon - * @param Participation $participation - * @return \App\Models\Reduction|null - */ - private function updateCoupon(Settings $settings, $coupon, Participation $participation) - { - $reduction = null; - $mesBR = new MesBR(config('mesbr.endpoint'), $settings->reductions_site, $settings->reductions_campaign); - - $crmUser = $this->apiCrm->getCustomer(Auth::user()->crm_id); - if ($crmUser->status === 'OK') { - $mesBR->updateContact($crmUser->user); - $result = $mesBR->updatePanier($crmUser->user, $coupon); - if ($result["status"] === "OK") { - $reduction = new Reduction(); - $reduction->link = $result["link"]; - $reduction->verification = $result["verif"]; - $reduction->basket_id = $result["basketId"]; - $reduction->save(); - $participation->reduction_id = $reduction->id; - $participation->save(); - } else { - Mail::to(config('mail.MAIL_ADMIN')) - ->send(new NotifAdmin(\sprintf( - 'MESBR : Une erreur est survenue. Code : %s Message : %s', - $result["code"], - $result["message"] - ))); - } - } //end if - return $reduction; - } - - /** - * Undocumented function - * - * @return \Illuminate\Http\Response - */ - public function formWinningProof() - { - $participation = Participation::where([ - ['user_id', Auth::user()->id], - ['sticker', null], - ['ticket', null], - ['barcode', null] - ])->has('instantWin')->first(); - if ($participation) { - return view('front.basic.winning-proof', compact('participation')); - } - return redirect()->route('home'); - } -} diff --git a/app/Http/Controllers/FAQController.php b/app/Http/Controllers/FAQController.php deleted file mode 100644 index 8f26f78..0000000 --- a/app/Http/Controllers/FAQController.php +++ /dev/null @@ -1,23 +0,0 @@ -route('home'); - } - return view('front.basic.faq', compact('questions', 'themes')); - } -} diff --git a/app/Http/Controllers/Fo/Auth/ConfirmPasswordController.php b/app/Http/Controllers/Fo/Auth/ConfirmPasswordController.php new file mode 100644 index 0000000..b55a142 --- /dev/null +++ b/app/Http/Controllers/Fo/Auth/ConfirmPasswordController.php @@ -0,0 +1,47 @@ +middleware('auth:frontend'); + } + + /** + * Display the password confirmation view. + * + * @return \Illuminate\View\View + */ + public function showConfirmForm(): View + { + if (Auth::guard('frontend')->check()) { + return \response()->redirectToRoute('home'); + } + return view('theme::auth.passwords.confirm'); + } + + /** + * Get the post register / login redirect path. + * + * @return string + */ + public function redirectPath(): string + { + return $this->authLoggedRedirectPath(); + } +} diff --git a/app/Http/Controllers/Fo/Auth/ForgotPasswordController.php b/app/Http/Controllers/Fo/Auth/ForgotPasswordController.php new file mode 100644 index 0000000..e16b5c1 --- /dev/null +++ b/app/Http/Controllers/Fo/Auth/ForgotPasswordController.php @@ -0,0 +1,85 @@ +middleware('guest:frontend'); + } + + /** + * Display the form to request a password reset link. + * + * @return \Illuminate\View\View + */ + public function showLinkRequestForm(): View + { + return view('theme::auth.passwords.email'); + } + + /** + * Get the broker to be used during password reset. + * + * @return \Illuminate\Contracts\Auth\PasswordBroker + */ + public function broker(): PasswordBroker + { + return Password::broker('customers'); + } + + /** + * Get the response for a successful password reset link. + * ! Dans les deux cas on ne divulgue pas si un user existe. + * + * @return \Illuminate\Http\RedirectResponse + */ + protected function sendResetLinkResponse() + { + return back()->with('info', trans($this->message)); + } + + /** + * Get the response for a failed password reset link. + * ! Dans les deux cas on ne divulgue pas si un user existe. + * + * @param \Illuminate\Http\Request $request + * @param string $response + * @return \Illuminate\Http\RedirectResponse + */ + protected function sendResetLinkFailedResponse(Request $request, string $response) + { + // ! Ne pas notifier que l'utilisateur n'existe pas. + if ($response === 'passwords.user') { + return back()->with('info', trans($this->message)); + } + // * Renvoyer les autres message d'erreur style throttle. + return back() + ->withInput($request->only('email')) + ->withErrors(['email' => trans($response)]); + } +} diff --git a/app/Http/Controllers/Fo/Auth/LoginController.php b/app/Http/Controllers/Fo/Auth/LoginController.php new file mode 100644 index 0000000..eb5a44e --- /dev/null +++ b/app/Http/Controllers/Fo/Auth/LoginController.php @@ -0,0 +1,94 @@ +middleware('guest:frontend')->except('logout'); + } + + /** + * Get the guard to be used during authentication. + * + * @return \Illuminate\Contracts\Auth\StatefulGuard + */ + protected function guard(): StatefulGuard + { + return Auth::guard('frontend'); + } + + /** + * Show the application's login form. + * + * @return \Illuminate\View\View + */ + public function showLoginForm(): View + { + return view('theme::auth.login'); + } + + /** + * The user has been authenticated. + * + * @param \Illuminate\Http\Request $request + * @param \Illuminate\Database\Eloquent\Model $user + * @return void + * @phpcs:disable Squiz.Commenting.FunctionComment.TypeHintMissing, Generic.CodeAnalysis.UnusedFunctionParameter.FoundInExtendedClassBeforeLastUsed + */ + protected function authenticated(Request $request, Model $user): void + { + $user->last_connection = \now(); + $user->saveOrFail(); + Session::flash('info', trans('Vous êtes à présent connecté')); + } + + /** + * The user has logged out of the application. + * + * @param \Illuminate\Http\Request $request + * @return void + * @phpcs:disable Generic.CodeAnalysis.UnusedFunctionParameter.FoundInExtendedClass + */ + protected function loggedOut(Request $request): void + { + Session::flash('info', trans('Vous êtes à présent déconnecté')); + } + + /** + * Get the post register / login redirect path. + * + * @return string + */ + public function redirectPath(): string + { + return response()->redirectToIntended()->getTargetUrl(); + } +} diff --git a/app/Http/Controllers/Fo/Auth/RegisterController.php b/app/Http/Controllers/Fo/Auth/RegisterController.php new file mode 100644 index 0000000..148ef06 --- /dev/null +++ b/app/Http/Controllers/Fo/Auth/RegisterController.php @@ -0,0 +1,153 @@ +middleware('guest:frontend'); + } + + /** + * Get the guard to be used during authentication. + * + * @return \Illuminate\Contracts\Auth\StatefulGuard + */ + protected function guard() + { + return Auth::guard('frontend'); + } + + /** + * Show the application registration form. + * + * @return \Illuminate\View\View + */ + public function showRegistrationForm() + { + return view('theme::auth.register'); + } + + /** + * Get a validator for an incoming registration request. + * + * @param array $data + * @return \Illuminate\Contracts\Validation\Validator + * @throws IlluminateValidationException If data is incorrect. + * @phpcs:disable Generic.CodeAnalysis.UnusedFunctionParameter.FoundInExtendedClass + */ + protected function validator(array $data): ValidationValidator + { + // phpcs:enable + $request = CreateAccountRequest::capture(); + $request->prepareForValidation(); + return Validator::make( + $request->validationData(), + $request->rules(), + $request->messages(), + $request->attributes() + ); + } + + /** + * Create a new user instance after a valid registration. + * + * @param array $data + * @return \App\Models\Customer + * @throws IlluminateValidationException If there are validation errors. + * @throws \RuntimeException On unhandled api Error. + */ + protected function create(array $data): Customer + { + $data['ok_cgv'] = \request()->boolean('ok_cgv'); + $data['opt_in'] = \request()->boolean('opt_in'); + $data['phone'] = Arr::get($data, 'phone'); + // * This field is not standard in crm + $data['postcode'] = Arr::get($data, 'postal_code'); + Arr::forget($data, 'postal_code'); + + try { + return DB::transaction(function () use ($data) { + $crmCustomer = new CrmCustomer(Arr::only( + $data, + [ + 'firstname', 'lastname', 'birth_date', 'address', + 'address2', 'postcode', 'country', 'city', 'phone', + 'email', 'password', 'opt_in', + ] + )); + + $crmCustomer->save(); + + // * Enregistrement du Hashcode + /** @var \App\Models\Customer $customer */ + $customer = new Customer( + Arr::only($data, (new \ReflectionClass(\App\Models\Customer::class)) + ->getProperty('fillable')->getDefaultValue()) + ); + $customer->hashcode = $crmCustomer->hashcode; + // ! Last connection sera null, pour identifier la deuxième connexion, + // ! Pour accéder au partie du Klub. + if ($customer->saveOrFail()) { + // phpcs:ignore Generic.Files.LineLength.TooLong + Session::flash('success', trans('Votre compte à bien été crée, vous devez valider votre adresse email, un email de confirmation vous à été envoyé.')); + } + + return $customer; + }); + } catch (ApiErrorException $e) { + if ($e->getApiError()->equals(ApiError::customerExists())) { + throw IlluminateValidationException::withMessages([ + 'error' => trans('Un compte est déjà associé à cette adresse email.') + ]); + } + if ($e->getApiError()->equals(ApiError::validationFailed())) { + throw IlluminateValidationException::withMessages([ + 'error' => $e->getMessage() + ]); + } + report($e); + Log::error(__CLASS__ . '::create reached end of possibilities.'); + throw new \RuntimeException(__CLASS__ . '::create reached end of possibilities.'); + } catch (CrmValidationException $e) { + throw IlluminateValidationException::withMessages([ + 'error' => $e->getMessage() + ]); + } //end try + } + + /** + * Get the post register / login redirect path. + * + * @return string + */ + public function redirectPath() + { + return $this->authLoggedRedirectPath(); + } +} diff --git a/app/Http/Controllers/Fo/Auth/ResetPasswordController.php b/app/Http/Controllers/Fo/Auth/ResetPasswordController.php new file mode 100644 index 0000000..c8af5c7 --- /dev/null +++ b/app/Http/Controllers/Fo/Auth/ResetPasswordController.php @@ -0,0 +1,124 @@ +middleware('guest:frontend'); + } + + /** + * Get the guard to be used during authentication. + * + * @return \Illuminate\Contracts\Auth\StatefulGuard + */ + protected function guard(): StatefulGuard + { + return Auth::guard('frontend'); + } + + /** + * Display the password reset view for the given token. + * + * If no token is present, display the link request form. + * + * @param \Illuminate\Http\Request $request + * @return \Illuminate\Contracts\View\Factory|\Illuminate\View\View + */ + public function showResetForm(Request $request): View + { + $token = $request->route()->parameter('token'); + + return view('theme::auth.passwords.reset')->with( + ['token' => $token, 'email' => $request->email] + ); + } + + /** + * Reset the given user's password. + * + * @param mixed $customer + * @param mixed $password + * @return void + * @throws \Illuminate\Validation\ValidationException If something goes wrong. + */ + protected function resetPassword(mixed $customer, mixed $password): void + { + /** @var \App\Models\Customer $customer */ + /** @var string $password */ + + /** @var \LDC\LDCCRM\CrmApiV2 */ + $crm = app('crmAPI'); + + try { + if (!($crmCustomer = $crm->getCustomer($customer->hashcode))) { + throw ValidationException::withMessages([ + 'error' => trans('Changement impossible, compte inexistant.') + ]); + } + $crmCustomer->password = $password; + $crmCustomer->save(); + } catch (\TypeError | CrmException | ApiErrorException $e) { + report($e); + throw ValidationException::withMessages([ + 'error' => trans('Une erreur est survenue, merci de réessayer ultérieurement.') + ]); + } catch (ExceptionsValidationException $e) { + throw ValidationException::withMessages([ + 'password' => $e->getMessage() + ]); + } + + $customer->setRememberToken(Str::random(60)); + + $customer->save(); + + event(new PasswordReset($customer)); + + $this->guard()->login($customer); + } + + /** + * Get the post register / login redirect path. + * + * @return string + */ + public function redirectPath(): string + { + return $this->authLoggedRedirectPath(); + } + + /** + * Get the broker to be used during password reset. + * + * @return \Illuminate\Contracts\Auth\PasswordBroker + */ + public function broker(): PasswordBroker + { + return Password::broker('customers'); + } +} diff --git a/app/Http/Controllers/Fo/Auth/VerificationController.php b/app/Http/Controllers/Fo/Auth/VerificationController.php new file mode 100644 index 0000000..b5683f2 --- /dev/null +++ b/app/Http/Controllers/Fo/Auth/VerificationController.php @@ -0,0 +1,148 @@ +middleware('auth:frontend'); + $this->middleware('signed')->only('verify'); + $this->middleware('throttle:6,1')->only('verify', 'resend'); + } + + /** + * Show the email verification notice. + * + * @param \Illuminate\Http\Request $request + * @return \Illuminate\Http\RedirectResponse|\Illuminate\Contracts\View\View + */ + public function show(Request $request): RedirectResponse|View + { + return $request->user('frontend')->hasVerifiedEmail() + ? redirect($this->redirectPath()) + : view('theme::auth.verify'); + } + + /** + * Mark the authenticated user's email address as verified. + * + * ! Overloaded trait + * + * @param \Illuminate\Http\Request $request + * @return \Illuminate\Http\JsonResponse|\Illuminate\Http\RedirectResponse + * @throws \Illuminate\Auth\Access\AuthorizationException If request is invalid. + */ + public function verify(Request $request): JsonResponse|RedirectResponse + { + /** @var \App\Models\Customer */ + $user = $request->user('frontend'); + + if (!hash_equals((string)$request->route('id'), (string)$user->getKey())) { + throw new AuthorizationException(); + } + + if (!hash_equals((string)$request->route('hash'), sha1($user->getEmailForVerification()))) { + throw new AuthorizationException(); + } + + if ($user->hasVerifiedEmail()) { + return $request->wantsJson() + ? new JsonResponse([], 204) + : redirect($this->redirectPath()); + } + + DB::transaction(function () use ($user) { + if ($user->markEmailAsVerified()) { + $this->setCrmCustomerAsVerified($user); + event(new Verified($user)); + } + }); + + if ($response = $this->verified($request)) { + return $response; + } + + return $request->wantsJson() + ? new JsonResponse([], 204) + : redirect($this->redirectPath())->with('verified', true); + } + + /** + * The user has been verified. + * + * @param \Illuminate\Http\Request $request + * @return mixed + * @phpcs:disable Generic.CodeAnalysis.UnusedFunctionParameter.FoundInExtendedClass + */ + protected function verified(Request $request) + { + // phpcs:enable + return redirect($this->redirectPath())->with('success', trans( + 'Votre compte est bien activé, vous pouvez à présent participer au jeu' + )); + } + + /** + * Get the post register / login redirect path. + * + * @return string + */ + public function redirectPath(): string + { + return response()->redirectToRoute('fo.participate')->getTargetUrl(); + } + + /** + * Set Crm Customer active + * + * @param \App\Models\Customer $customer + * @return void + * @throws \Illuminate\Http\Exceptions\HttpResponseException In case of failure. + */ + private function setCrmCustomerAsVerified(Customer $customer): void + { + try { + $customer->clearApiDataCache(); + $crmCustomer = $customer->api_data; + $crmCustomer->activate(); + $customer->clearApiDataCache(); + } catch (ValidationException) { + redirect($this->redirectPath())->with('error', trans( + 'Une erreur est survenue' + ))->throwResponse(); + } catch (CrmException | ApiErrorException $e) { + if ($e->getApiError()->equals(ApiError::customerAlreadyActive())) { + // * Ignore this and continue, as it may be activated via another CRM service. + return; + } else { + report($e); + redirect($this->redirectPath())->with('error', trans( + 'Une erreur est survenue' + ))->throwResponse(); + } + } + } +} diff --git a/app/Http/Controllers/Fo/CustomerController.php b/app/Http/Controllers/Fo/CustomerController.php new file mode 100644 index 0000000..d103b11 --- /dev/null +++ b/app/Http/Controllers/Fo/CustomerController.php @@ -0,0 +1,108 @@ +user(); + + $crmCustomer = $customer->api_data; + + return view('theme::auth.profil-verify', compact('crmCustomer')); + } + + /** + * Profile verify + * + * @param \App\Http\Requests\Fo\Customers\VerifyInformationsRequest $request + * @return \Illuminate\Http\RedirectResponse + * @throws IlluminateValidationException In case of any error validation or within the crm. + */ + public function profilVerifySubmit(VerifyInformationsRequest $request): RedirectResponse + { + // ! Pas de Gate/Policies Ici volontairement, vu avec Vincent + try { + return DB::transaction(function () use ($request) { + // * --- FILL AND SAVE CUSTOMER + /** @var \App\Models\Customer */ + $customer = auth('frontend')->user(); + + // * Màj, on ne mets pas à jour le mdp ou l'adresse email, juste les champs pour mesBr + $customer->updateApiData(\array_merge(Arr::only( + $request->validated(), + [ + 'firstname', 'lastname', 'birth_date', 'address', + 'country', 'city', 'phone', + 'email', 'password', 'opt_in', + ] + ), ['postcode' => $request->input('postal_code')])); + Session::flash('success', trans('Vos informations ont bien été mis à jour')); + + return response()->redirectToRoute('fo.participate'); + }); + } catch (CrmValidationException $e) { + // * Local Validation failure + throw IlluminateValidationException::withMessages([ + 'error' => $e->getMessage() + ]); + } catch (ApiErrorException $e) { + if ($e->getApiError()->equals(ApiError::validationFailed())) { + throw IlluminateValidationException::withMessages([ + 'error' => $e->getMessage() + ]); + } + report($e); + Log::error(__CLASS__ . '::update reached end of possibilities.'); + } catch (CrmException $e) { + report($e); + Log::error(__CLASS__ . '::error occured on calling crm.'); + throw IlluminateValidationException::withMessages([ + 'error' => trans('Une erreur est survenue, veuillez réssayer plus tard') + ]); + } //end try + } + + /** + * View all customer winnig participations + * + * @return \Illuminate\Contracts\View\View + */ + public function viewWinningParticipations(): View + { + $this->authorize('viewWonList', \App\Models\Participation::class); + + /** @var \App\Models\Customer */ + $customer = auth('frontend')->user(); + + $winningList = $customer->participations() + ->with(['instantWin', 'discount'])->where(fn (Builder $q) => + $q->whereHas('instantWin')->orWhereHas('discount'))->get(); + + return view('theme::pages.participation.winning-participations', compact('winningList')); + } +} diff --git a/app/Http/Controllers/Fo/HomeController.php b/app/Http/Controllers/Fo/HomeController.php new file mode 100644 index 0000000..32b074e --- /dev/null +++ b/app/Http/Controllers/Fo/HomeController.php @@ -0,0 +1,97 @@ +flash('warning', trans('Il manque des éléments pour que le jeu soit jouable')); + } + return view('theme::pages.home'); + } + + /** + * Display products with game stickers + * + * @return \Illuminate\Contracts\View\View + * @phpcs:ignore Squiz.Commenting.FunctionComment.EmptyThrows + * @throws \Illuminate\Http\Exceptions\HttpResponseException + */ + public function showProducts(): View + { + // ? Show product list authorized ? + if (!Gate::allows('fo.showProducts')) { + \response()->redirectToRoute('fo.homepage')->throwResponse(); + } + + $rangeModelList = Range::query()->with('products')->orderBy('id')->get(); + return view('theme::pages.products', compact('rangeModelList')); + } + + /** + * Display Faq page + * + * @return \Illuminate\Contracts\View\View + */ + public function showFaq(): View + { + // ? Show QA authorized ? + if (!Gate::allows('fo.showFaq')) { + \response()->redirectToRoute('fo.homepage')->throwResponse(); + } + + $questionModelList = FaqQuestion::getCached(); + $themeModelList = FaqTheme::getCached(); + + return view('theme::pages.faq', compact( + 'questionModelList', + 'themeModelList' + )); + } + + /** + * Show the teaser page if it is activated + * + * @return \Illuminate\Contracts\View\View|\Illuminate\Contracts\View\Factory|\Illuminate\Http\RedirectResponse + */ + public function teaser(): View | RedirectResponse + { + /** @var \App\Models\Settings */ + $settings = app(Settings::class); + if (!$settings->should_display_teaser_page) { + return redirect()->route('fo.homepage'); + } + return view('theme::pages.teaser'); + } + + /** + * Show the end game page if it is activated + * + * @return \Illuminate\Contracts\View\View|\Illuminate\Contracts\View\Factory|Illuminate\Http\RedirectResponse + */ + public function endGame(): View | RedirectResponse + { + /** @var \App\Models\Settings */ + $settings = app(Settings::class); + if (!$settings->should_display_end_page) { + return redirect()->route('fo.homepage'); + } + return view('theme::pages.end-game'); + } +} diff --git a/app/Http/Controllers/Fo/ParticipateController.php b/app/Http/Controllers/Fo/ParticipateController.php new file mode 100644 index 0000000..934b4a3 --- /dev/null +++ b/app/Http/Controllers/Fo/ParticipateController.php @@ -0,0 +1,362 @@ +middleware(function (Request $request, callable $next) { + $this->authorize('fo.gameEnabled'); + $this->assertUserHasEnoughInfoToUseMesBr(); + return $next($request); + }); + } + + /** + * Display participation form + * + * @return \Illuminate\Contracts\View\View + */ + public function participate(): View + { + if (!Gate::check('participate', Participation::class)) { + return view('theme::pages.participation.participation-exhausted'); + } + return view('theme::pages.participation.participate'); + } + + /** + * Participate Method + * + * @param \App\Http\Requests\Fo\ParticipateRequest $request + * @return \Illuminate\Contracts\View\View + */ + public function participateSubmit(ParticipateRequest $request): View + { + return DB::transaction(function () use ($request) { + // ! On verrouille le ou les instants gagnant + /** @var \App\Models\InstantWin|null */ + $instantWin = InstantWin::query()->lockForUpdate() + ->where('available_at', '<', now()) + ->whereDoesntHave('participation') + ->get()->sortBy('available_at')->first(); + + /** @var \App\Models\Settings */ + $settings = app(Settings::class); + + /** @var \App\Models\Customer */ + $customer = auth('frontend')->user(); + + /** @var \App\Models\Code */ + $code = $request->post('unique_code'); + /** @var \App\Models\Product|null */ + $product = $request->post('product'); + + // * Make new participation + $participation = Participation::makeNew( + app('clientIp'), + $customer, + $code, + $product + ); + + // * Si l'utilisateur actuel à déjà gagné un gros lot, pas d'instant gagnant. + // ? As-t-on un instant gagnant ? + if (Participation::customerAlreadyHasAnInstantWin($customer) or !$instantWin) { + // * --- DISCOUNT WIN --- + // ? Les BR sont activés ? + if (!$settings->discounts_activated) { + // * On enregistre la participation du joueur. + $participation->save(); + + // * Pas de coupons disponibles, le joueur à perdu + return view('theme::pages.participation.loose'); + } + + // * Le joueur à gagné un coupon. + /** @var \App\Lib\Discount Coupon aléatoire en fonction du ratio de chaque coupon */ + $discount = Arr::get( + $settings->web_coupons, + $this->getRandomWeightedElementIndex($settings->web_coupons) + ); + + $mesBrDiscount = $this->setDiscountAsWon($customer, $discount); + + // * Le joueur à remporté un coupon + $participation->discount()->associate($mesBrDiscount); + // * On enregistre la participation du joueur. + $participation->save(); + + $crmCustomer = $this->fetchCrmCustomer($customer); + + $customer->notify(new HasWonDiscount( + $discount, + $mesBrDiscount, + $crmCustomer->firstname + )); + + return view('theme::pages.participation.won', compact('discount', 'mesBrDiscount')); + } //end if + + // * --- INSTANT WIN --- + // * On enregistre la participation du joueur. + $participation->save(); + // * Le joueur à remporté un instant gagnant + $instantWin->participation()->associate($participation); + $instantWin->save(); + + $crmCustomer = $this->fetchCrmCustomer($customer); + + // * Notify customer for his win + $customer->notify(new HasWonInstantWin( + $instantWin->prize, + $crmCustomer->firstname + )); + + // * Dispatch notification to mail list + Mail::to($settings->notification_emails)->send(new PrizeWonAdminMail( + $settings->name, + $participation->created_at, + $instantWin->prize->label, + $crmCustomer, + $code->code_unique, + optional($product)->ean_code + )); + + return view('theme::pages.participation.won', [ + 'prizeModel' => $instantWin->prize, + 'participationModel' => $participation, + 'crmCustomer' => $crmCustomer + ]); + }); + } + + // * --- PRIVATE METHODS --- + + /** + * Try Call CRM + MesBr to setup discount + * + * @param \App\Models\Customer $customer + * @param LibDiscount $discount + * @return \App\Models\Discount + * @throws \Illuminate\Http\Exceptions\HttpResponseException If Any error occurs. + * @phpcs:disable Squiz.Commenting.FunctionCommentThrowTag.WrongNumber + */ + private function setDiscountAsWon(Customer $customer, LibDiscount $discount): Discount + { + // phpcs:enable + // * Phase - 1 Recupération des informations CRM + /** @var \LDC\LDCCRM\Models\Customer*/ + $crmUser = $this->fetchCrmCustomer($customer); + + // * Phase - 2 Mise à jour du coupon dans MesBr + try { + /** @var \App\Models\Settings */ + $settings = app(Settings::class); + + /** @var \LDC\MESBR\MesBr */ + $mesBr = app('mesBrAPI'); + + // * MaJ Customer + /** @var integer */ + $crm_customer_id = retry(3, function () use ($mesBr, $crmUser) { + /** + * Parce que MesBr n'est pas fiable il faut retenter pour avoir + * l'id client, des fois cet id sera dans hashcode... + * + * Id est necessaire pour update panier.. + */ + $result = $mesBr->updateCustomer($crmUser->hashcode, $crmUser->email, $crmUser->country); + if (optional($result)->status !== "OK") { + throw new \RuntimeException( + \sprintf( + 'MESBR : Une erreur est survenue. Code : %s Message : %s', + $result->code ?? 'Undefined', + $result->message ?? 'Undefined' + ) + ); + } + /** @var object|null */ + $crm_customer = optional($result)->customer; + if (empty(optional($crm_customer)->id)) { + throw new \RuntimeException( + 'MESBR : Une erreur est survenue. Update Customer n\'as pas retourné le customer id' + ); + } + + return intval($crm_customer->id); + }, 100); + + // * Maj Panier + $result = $mesBr->updatePanier( + $crmUser, + $crm_customer_id, + $settings->discounts_site, + $discount->web_coupon_identifiant + ); + + if (Arr::get($result, 'status') === "OK") { + // * La réponse est conforme ? + $needed_fields = ['link', 'verif', 'basketId']; + if (!Arr::has($result, $needed_fields)) { + throw new \RuntimeException(sprintf( + 'MESBR : Il manques des champs dans la réponse, attendu => %s, donné => %s', + json_encode($needed_fields), + json_encode($result), + )); + } + + $discountModel = new Discount(); + $discountModel->link = Arr::get($result, 'link'); + $discountModel->verification = Arr::get($result, 'verif'); + $discountModel->basket_id = Arr::get($result, 'basketId'); + $discountModel->save(); + + // * Tout est OK + return $discountModel; + } + + throw new \RuntimeException( + \sprintf( + 'MESBR : Une erreur est survenue. Code : %s Message : %s', + $result["code"] ?? 'Undefined', + $result["message"] ?? 'Undefined' + ) + ); + } catch (\RuntimeException $e) { + report($e); + // * Retenter ? + back()->with('error', trans('Une erreur est survenue, veuillez réssayer.'))->throwResponse(); + } //end try + + throw new \Error('Should not reach this point'); + } + + /** + * Fetch Crm Customer + * + * @param \App\Models\Customer $customer + * @return \LDC\LDCCRM\Models\Customer + * @throws \Illuminate\Http\Exceptions\HttpResponseException In case of failure or customer not activated. + */ + private function fetchCrmCustomer(Customer $customer): \LDC\LDCCRM\Models\Customer + { + try { + $crmUser = $customer->api_data; + + // ? Le compte du joueur est vérifié ? + if (!$crmUser->status) { + // * Le joueur doit avoir un compte vérifié pour participer. + response()->redirectToRoute('fo.verification.notice') + ->with('error', trans('Pour participer votre compte doit être activé')) + ->throwResponse(); + } + return $crmUser; + } catch (ApiErrorException $e) { + // * Customer is not found. + if ($e->getApiError()->equals(ApiError::modelNotFound())) { + // * Déconnexion immédiate et retour maison. + auth('frontend')->logout(); + response()->redirectToRoute('fo.home') + ->with('error', trans('Une erreur est survenue, compte introuvable.')) + ->throwResponse(); + } + report($e); + Log::error('Unhandled response ' . $e->getApiError()->label); + // * Retenter ? + back()->with('error', trans('Une erreur est survenue, veuillez réssayer.'))->throwResponse(); + } catch (HttpResponseException $e) { + // * continue this + throw $e; + } catch (CrmException | \Exception $e) { + report($e); + // * Retenter ? + back()->with('error', trans('Une erreur est survenue, veuillez réssayer.'))->throwResponse(); + } //end try + } + + /** + * Assert that user has enough info filled on his profile to win a Discount + * Or redirect him to the fill form + * ! Also validates its birth date (because beeing an adult is required to participate) + * + * @return void + * @throws \Illuminate\Http\Exceptions\HttpResponseException If customer data doest not validate + * or and error occurs. + */ + private function assertUserHasEnoughInfoToUseMesBr() + { + // * Valider que le client dispose des donnés requises pour MesBr + try { + /** @var \App\Models\Customer */ + $authUser = auth('frontend')->user(); + $crmCustomer = $this->fetchCrmCustomer($authUser); + + // * On valide les données selon les critères du site + $rules = collect((new CreateAccountRequest())->rules()); + Validator::make( + [ + 'birth_date' => $crmCustomer->birth_date, + 'address' => $crmCustomer->address, + 'postal_code' => $crmCustomer->postcode, + 'country' => $crmCustomer->country->value, + 'city' => $crmCustomer->city + ], + [ + 'birth_date' => $rules->get('birth_date'), + 'address' => $rules->get('address'), + 'postal_code' => $rules->get('postal_code'), + 'country' => $rules->get('country'), + 'city' => $rules->get('city') + ] + )->validate(); + Session::remove('needCrmInfoUpdate'); + } catch (ValidationException) { + response()->redirectToRoute('fo.profil.verify') + ->with('warning', trans( + 'Vous devez compléter des informations sur votre profil pour pouvoir participer.' + ))->throwResponse(); + } catch (\Exception $e) { + report($e); + // * Retenter ? + response()->redirectToRoute('fo.homepage') + ->with('error', trans('Une erreur est survenue, veuillez réssayer.')) + ->throwResponse(); + } //end try + } + + // * --- END PRIVATE METHODS --- +} diff --git a/app/Http/Controllers/Fo/StaticPageController.php b/app/Http/Controllers/Fo/StaticPageController.php new file mode 100644 index 0000000..3933012 --- /dev/null +++ b/app/Http/Controllers/Fo/StaticPageController.php @@ -0,0 +1,57 @@ +where('type', StaticPageType::rules)->firstOrFail(); + return $this->viewStaticPage($staticPageModel); + } + + /** + * Show the privacy view + * + * @return \Illuminate\Contracts\View\View|\Illuminate\Contracts\View\Factory + */ + public function charte() + { + $staticPageModel = StaticPage::query()->where('type', StaticPageType::confidentiality)->firstOrFail(); + return $this->viewStaticPage($staticPageModel); + } + + /** + * Show the legals view + * + * @return \Illuminate\Contracts\View\View|\Illuminate\Contracts\View\Factory + */ + public function legals() + { + $staticPageModel = StaticPage::query()->where('type', StaticPageType::legals)->firstOrFail(); + return $this->viewStaticPage($staticPageModel); + } + + /** + * Display a static page + * + * @param \App\Models\StaticPage $staticPageModel + * @return \Illuminate\Contracts\View\View + */ + private function viewStaticPage(StaticPage $staticPageModel): View + { + return view('theme::pages.static_page', [ + 'staticPageModel' => $staticPageModel + ]); + } +} diff --git a/app/Http/Controllers/Fo/WinningProofController.php b/app/Http/Controllers/Fo/WinningProofController.php new file mode 100644 index 0000000..a05e09d --- /dev/null +++ b/app/Http/Controllers/Fo/WinningProofController.php @@ -0,0 +1,151 @@ +middleware(function (Request $request, callable $next) { + $this->authorize('fo.gameEnabled'); + $this->authorize('submitProof', $request->route('participation')); + return $next($request); + }); + } + + /** + * Display winning proof form + * + * @param \App\Models\Participation $participation + * @return \Illuminate\Contracts\View\View + */ + public function displayForm(Participation $participation): View + { + $participation->load('instantWin.prize'); + + /** @var \App\Models\Customer */ + $customer = auth('frontend')->user(); + + $crmCustomer = $customer->api_data; + + return view('theme::pages.participation.won-form-only', [ + 'participationModel' => $participation, + 'prizeModel' => $participation->instantWin->prize, + 'crmCustomer' => $crmCustomer + ]); + } + + /** + * Submit winning proofs, + * - 1 Met à jour le profil du customer (sans lui en faire part), + * - 2 Save les pictures de preuve de gains + * - 3 Envoi un mail au abonnés (settings notification_emails) avec les infos client + * + * @param \App\Http\Requests\Fo\SubmitWinningProofRequest $request + * @param \App\Models\Participation $participation + * @return \Illuminate\Http\RedirectResponse + * @throws IlluminateValidationException In case of failure. + * @phpcs:disable Squiz.Commenting.FunctionCommentThrowTag.WrongNumber + */ + public function displayFormSubmit( + SubmitWinningProofRequest $request, + Participation $participation + ): RedirectResponse { + // phpcs:enable + try { + return DB::transaction(function () use ($request, $participation) { + $participation->load([ + 'instantWin.prize', + 'code', + 'product' + ]); + + /** @var \App\Models\Settings */ + $settings = app(Settings::class); + + // * --- PHASE 1 Update Crm Customer --- + /** @var \App\Models\Customer */ + $customer = auth('frontend')->user(); + + $crmCustomer = $customer->api_data; + /** @var array */ + $data = $request->validated(); + + // * This field is not standard in crm + $data['postcode'] = Arr::get($data, 'postal_code'); + Arr::forget($data, 'postal_code'); + + $customer->updateApiData(Arr::only( + $data, + [ + 'firstname', 'lastname', 'birth_date', 'address', + 'address2', 'postcode', 'country', 'city', 'phone', + 'email', + ] + )); + + // * --- PHASE 2 Update participation --- + $participation->fill(Arr::only($request->validated(), [ + 'barcode', 'ticket', 'sticker' + ])); + $participation->save(); + + $customer->notify(new HasSubmitedWinProof($request->input('firstname'))); + + // * Dispatch notification to mail list + Mail::to($settings->notification_emails)->send(new WinningProofAdminMail( + $settings->name, + $participation->created_at, + $participation->instantWin->prize->label, + $crmCustomer, + $participation->code->code_unique, + optional($participation->product)->ean_code, + $participation->sticker, + $participation->ticket, + $participation->barcode, + )); + + return response()->redirectToRoute('fo.homepage') + ->with('success', trans( + 'Nous avons bien pris en compte vos preuve de gains, vous serez contactés prochainement' + )); + }); + } catch (ApiErrorException $e) { + if ($e->getApiError()->equals(ApiError::validationFailed())) { + throw IlluminateValidationException::withMessages([ + 'error' => $e->getMessage() + ]); + } + report($e); + Log::error(__CLASS__ . '::create reached end of possibilities.'); + throw new \RuntimeException(__CLASS__ . '::create reached end of possibilities.'); + } catch (CrmValidationException $e) { + throw IlluminateValidationException::withMessages([ + 'error' => $e->getMessage() + ]); + } //end try + } +} diff --git a/app/Http/Controllers/GainsController.php b/app/Http/Controllers/GainsController.php deleted file mode 100644 index fd192a4..0000000 --- a/app/Http/Controllers/GainsController.php +++ /dev/null @@ -1,18 +0,0 @@ -exists('front.basic.gains')) { - return view('front.basic.gains'); - } - return redirect()->route('home'); - } -} diff --git a/app/Http/Controllers/HomeController.php b/app/Http/Controllers/HomeController.php deleted file mode 100644 index 989c9e2..0000000 --- a/app/Http/Controllers/HomeController.php +++ /dev/null @@ -1,15 +0,0 @@ -exists('front.basic.how-to-play')) { - return view('front.basic.how-to-play'); - } - return redirect()->route('home'); - } -} diff --git a/app/Http/Controllers/LoginController.php b/app/Http/Controllers/LoginController.php deleted file mode 100644 index b10ee2b..0000000 --- a/app/Http/Controllers/LoginController.php +++ /dev/null @@ -1,287 +0,0 @@ -middleware('guest')->except('logout'); - $this->apiCrm = new \LDCCRM\ApiV1(config('crm.endpoint'), config('crm.token')); - } - - /** - * index - * @return \Illuminate\View\View - */ - public function index() - { - return view('front.basic.login'); - } - - public function authenticate(Request $request) - { - $request->validate([ - 'email' => 'required|email', - 'password' => 'required', - ]); - - $email = filter_var($request->email, FILTER_SANITIZE_EMAIL); - $password = $request->password; - $remember = $request->remember !== null ? true : false; - - $userLocal = User::where('email', $email)->first(); - - if ($userLocal) { - if ($userLocal->email_verified === 1) { - if ($userLocal->role > 2) { - $connect = $this->apiCrm->loginCustomer($email, $password); - - if ($connect->status === 'KO') { - if ($connect->code === 500) { - return back()->withInput($request->except("password")) - ->withErrors("La connexion est impossible pour le moment, veuillez réessayer plus tard."); - } else { - return back()->withInput($request->except("password")) - ->withErrors("Email ou mot de passe incorrect."); - } - } - } - } else { - $userLocal->email_verify_token = Str::uuid(); - $userLocal->save(); - Mail::to($email)->send(new VerifyEmail($userLocal)); - return back()->withInput($request->except("password")) - ->withErrors("Votre compte existe mais votre email n'est pas confirmé, merci de vérifier vos emails."); - }//end if - } else { - $connect = $this->apiCrm->loginCustomer($email, $password); - - if ($connect->status === 'OK') { - $userLocal = User::create([ - 'crm_id' => $connect->user->crm_id, - 'firstname' => $connect->user->firstname, - 'lastname' => $connect->user->lastname, - 'birth_date' => $connect->user->birth_date, - 'email' => $email, - // TODO : MOTDEPASSE ???. - 'password' => Hash::make("MOTDEPASSE"), - 'address' => $connect->user->address, - 'address2' => $connect->user->address2, - 'town' => $connect->user->city, - 'postal_code' => $connect->user->postcode, - 'country' => $connect->user->country, - 'email_verified' => 1 - ]); - } else { - // Compte existant mais non activé. - if ($connect->code === 116) { - $userLocal = User::create([ - 'crm_id' => $connect->user->crm_id, - 'firstname' => $connect->user->firstname, - 'lastname' => $connect->user->lastname, - 'birth_date' => $connect->user->birth_date, - 'email' => $email, - // TODO : MOTDEPASSE ???. - 'password' => Hash::make("MOTDEPASSE"), - 'address' => $connect->user->address, - 'address2' => $connect->user->address2, - 'town' => $connect->user->city, - 'postal_code' => $connect->user->postcode, - 'country' => $connect->user->country - ]); - - $userLocal->email_verify_token = Str::uuid(); - $userLocal->save(); - Mail::to($email)->send(new VerifyEmail($userLocal)); - return back()->withInput($request->except("password")) - ->withErrors("Votre compte existe mais votre email n'est pas confirmé, merci de vérifier vos emails."); - } elseif ($connect->code === 500) { - return back()->withInput($request->except("password")) - ->withErrors("La connexion est impossible pour le moment, veuillez réessayer plus tard."); - } else { - return back()->withInput($request->except("password")) - ->withErrors("Email ou mot de passe incorrect."); - } //end if - } //end if - }//end if - - // phpcs:ignore - // TODO : Modifier avec separation guard. - $tmpPwd = "MOTDEPASSE"; - if ($userLocal->role <= 2) { - $tmpPwd = $password; - } - - if (Auth::attempt(["email" => $email, "password" => $tmpPwd], $remember)) { - if ($userLocal->role <= 2) { - return redirect()->route('bo.dashboard'); - } - return redirect()->route('saisir-code'); - } else { - return back()->withInput($request->except('password'))->withErrors('Les identifiants entrés sont incorrects.'); - } - } - - /** - * logout - * @return Illuminate\Http\RedirectResponse - */ - public function logout() - { - Auth::logout(); - return redirect()->route('home'); - } - /** - * confirm email - * @param string $verifyToken - * @return \Illuminate\View\View|Illuminate\Http\RedirectResponse - */ - public function confirmEmail(string $verifyToken) - { - $result = false; - $user = User::where('email_verify_token', $verifyToken)->first(); - if (!$user) { - return view('front.basic.confirm-email', compact('result')); - } - - $activation = $this->apiCrm->activateCustomer($user->crm_id); - - if ($activation->status === 'OK') { - $user->email_verified = 1; - $user->email_verify_token = null; - $user->save(); - $result = true; - } else { - // User already active. - if ($activation->code === 110) { - $user->email_verified = 1; - $user->email_verify_token = null; - $user->save(); - $result = true; - } - } - - return view('front.basic.confirm-email', compact('result')); - } - - public function forgotPassword(Request $request) - { - if ($request->tokenValid && $request->token) { - $tokenValid = $request->tokenValid; - $token = $request->token; - return view('front.basic.forgot-password', compact('tokenValid', 'token')); - } - return view('front.basic.forgot-password'); - } - - public function forgotPasswordReset(Request $request, $token) - { - if (!$request->hasValidSignature(false)) { - return redirect()->route('login') - ->withErrors("Le lien de changement de votre mot de passe n'est plus valide, veuillez réessayer."); - } - $tokenValid = false; - $user = User::where('password_token', $token)->first(); - if (!$user) { - return redirect()->route('forgot-password', compact('tokenValid')) - ->withErrors('Le lien de changement du mot de passe est incorrect.'); - } - $tokenValid = true; - return redirect()->route('forgot-password', compact('tokenValid', 'token')); - } - - public function mailPassword(Request $request) - { - $email = filter_var($request->email, FILTER_SANITIZE_STRING); - $user = User::where('email', $email)->first(); - - if (!$user) { - $userCrm = $this->apiCrm->getCustomerByEmail($email); - if ($userCrm->status === 'OK') { - $user = User::create([ - 'crm_id' => $userCrm->user->crm_id, - 'firstname' => $userCrm->user->firstname, - 'lastname' => $userCrm->user->lastname, - 'birth_date' => $userCrm->user->birth_date, - 'email' => $email, - // TODO : MOTDEPASSE ??? - 'password' => Hash::make("MOTDEPASSE"), - 'address' => $userCrm->user->address, - 'address2' => $userCrm->user->address2, - 'town' => $userCrm->user->city, - 'postal_code' => $userCrm->user->postcode, - 'country' => $userCrm->user->country, - 'email_verified' => 1 - ]); - - if ($userCrm->user->status === 0) { - $user->email_verified = 0; - $user->email_verify_token = Str::uuid(); - $user->save(); - Mail::to($email)->send(new VerifyEmail($user)); - return back()->withInput($request->except("password")) - ->withErrors("Votre compte existe mais votre email n'est pas confirmé, merci de vérifier vos emails."); - } - } else { - if ($userCrm->code === 101) { - return back()->withInput($request->only('email')) - ->withErrors("Le mail que vous avez entré n'est pas enregistré dans nos services."); - } else { - return back()->withErrors("Une erreur est survenue, veuillez réessayer plus tard."); - } - } //end if - }//end if - - $user->password_token = Str::uuid(); - $user->save(); - /** @var \App\Models\Settings $settings */ - $settings = app(Settings::class); - Mail::to($email)->send(new PasswordReset($user, $settings)); - return redirect()->route('login') - ->with('success', 'Un mail de réinitialisation de votre mot de passe vous a été envoyé(e).'); - } - - public function changePassword(Request $request) - { - $request->validate([ - 'password' => 'required|min:8|confirmed', - ]); - - $user = User::where('password_token', filter_var($request->token, FILTER_SANITIZE_STRING))->first(); - if (!$user) { - return back()->withErrors('Le lien de changement de votre mot de passe est incorrect, veuillez réessayer.'); - } - - // TODO : Ajouter controle du contenu du mot de passe. - $newPassword = $request->password; - - $update = $this->apiCrm->changePwdCustomer($user->crm_id, $newPassword); - - if ($update->status === 'OK') { - $user->password_token = null; - $user->save(); - return redirect()->route('login') - ->with('success', 'Vous pouvez désormais vous connecter avec votre nouveau mot de passe.'); - } else { - if ($update->code === 123) { - return back() - ->withErrors("Il semblerait que vous ayez déjà utilisé ce mot de passe pour votre compte. Veuillez réessayer en changeant de mot de passe."); - } else { - return back()->withErrors("Une erreur est survenue, veuillez réessayer plus tard."); - } - } - } -} diff --git a/app/Http/Controllers/ProduitsController.php b/app/Http/Controllers/ProduitsController.php deleted file mode 100644 index 7ff48d2..0000000 --- a/app/Http/Controllers/ProduitsController.php +++ /dev/null @@ -1,21 +0,0 @@ -orderBy('id')->get(); - if (view()->exists('front.basic.produits-porteurs')) { - return view('front.basic.produits-porteurs', compact('ranges')); - } - return redirect()->route('home'); - } -} diff --git a/app/Http/Controllers/RegisterController.php b/app/Http/Controllers/RegisterController.php deleted file mode 100644 index b28a8fc..0000000 --- a/app/Http/Controllers/RegisterController.php +++ /dev/null @@ -1,144 +0,0 @@ -middleware('guest'); - $this->apiCrm = new \LDCCRM\ApiV1(config('crm.endpoint'), config('crm.token')); - } - - public function index() - { - return view('front.basic.register-crm'); - } - - public function register(Request $request) - { - - $request->validate([ - 'lastname' => 'required|string|max:255', - 'firstname' => 'required|string|max:255', - 'birth_date' => 'required|string|max:10', - 'email' => 'required|string|email|max:255|unique:users|confirmed', - 'password' => 'required|string|min:8|confirmed', - 'address' => 'required|string|max:255', - 'address2' => 'max:255', - 'town' => 'required|string|max:255', - 'postal_code' => 'required|string|max:255', - 'country' => 'required|string|max:255', - 'reglement' => 'accepted', - ]); - - $lastname = filter_var($request->lastname, FILTER_SANITIZE_STRING); - $firstname = filter_var($request->firstname, FILTER_SANITIZE_STRING); - $birthdate = $request->birth_date; - $email = filter_var($request->email, FILTER_SANITIZE_EMAIL); - $password = $request->password; - $address = filter_var($request->address, FILTER_SANITIZE_STRING); - $address2 = $request->address2 !== null ? filter_var($request->address2, FILTER_SANITIZE_STRING) : null; - $town = filter_var($request->town, FILTER_SANITIZE_STRING); - $postcode = filter_var($request->postal_code, FILTER_SANITIZE_STRING); - $country = filter_var($request->country, FILTER_SANITIZE_STRING); - $optin = $request->news !== null ? 1 : 0; - $tokenMail = Str::uuid(); - - $MJ = Carbon::now()->subYears(18); - - if ($this->isSQLDate($birthdate)) { - $d = Carbon::createFromFormat('Y-m-d', $birthdate); - if (!$d->lessThanOrEqualTo($MJ)) { - return back() - ->withInput($request->except('password')) - ->withErrors("Vous devez être majeur pour vous inscrire au jeu."); - } - } elseif ($this->isFormDate($birthdate)) { - $d = Carbon::createFromFormat('d/m/Y', $birthdate); - if (!$d->lessThanOrEqualTo($MJ)) { - return back() - ->withInput($request->except('password')) - ->withErrors("Vous devez être majeur pour vous inscrire au jeu."); - } - - $birthdate = $d->toDateString(); - } else { - return back() - ->withInput($request->except('password')) - ->withErrors("Erreur sur le champs : date de naissance."); - }//end if - - $crmUser = $this->apiCrm->createCustomer($email, $password, $firstname, $lastname, $optin, $birthdate, null, $address, $address2, $town, $postcode, ucfirst($country)); - - if ($crmUser->status === 'OK') { - $user = User::create([ - 'crm_id' => $crmUser->user->crm_id, - 'firstname' => $firstname, - 'lastname' => $lastname, - 'birth_date' => $birthdate, - 'email' => $email, - 'password' => Hash::make("MOTDEPASSE"), -// TODO : ??? - 'address' => $address, - 'address2' => $address2, - 'town' => $town, - 'postal_code' => $postcode, - 'country' => ucfirst($country), - 'email_verify_token' => $tokenMail, - ]); - - Mail::to($email)->send(new VerifyEmail($user)); - - return redirect()->route('login') - ->with('success', "Pour finaliser votre inscription, merci de cliquer sur le lien qui vient de vous être envoyé par email
" . - "Informations complémentaires :
" . - "- Vérifiez vos spams : l'email de confirmation s'y trouve peut-être
" . - "- Attention : le mail peut parfois mettre quelques minutes à vous parvenir
" . - "- L'activation de votre compte doit se faire dans les 24 heures qui suivent la demande de création."); - } else { - if ($crmUser->code === 103) { - return back() - ->withInput($request->except('password')) - ->withErrors("Un compte utilisateur est déjà associé à votre email."); - } else { - return back() - ->withInput($request->except('password')) - ->withErrors("Une erreur est survenue, merci de recommencer."); - } - }//end if - } - - private function isSQLDate($date) - { - if (preg_match("/^[0-9]{4}-(0[1-9]|1[0-2])-(0[1-9]|[1-2][0-9]|3[0-1])$/", $date)) { - return true; - } - return false; - } - - private function isFormDate($date) - { - if (preg_match("/^(0[1-9]|[1-2][0-9]|3[0-1])\/(0[1-9]|1[0-2])\/[0-9]{4}$/", $date)) { - return true; - } - return false; - } -} diff --git a/app/Http/Controllers/TeaserController.php b/app/Http/Controllers/TeaserController.php deleted file mode 100644 index c096177..0000000 --- a/app/Http/Controllers/TeaserController.php +++ /dev/null @@ -1,18 +0,0 @@ -select('start_date', 'end_date', 'activated_teaser', 'teaser_end_activity')->first(); - if ($settings->activated_teaser === 1 && $settings->teaser_end_activity > now()) { - return view('front.basic.teaser', compact('settings')); - } - return redirect()->route('home'); - } -} diff --git a/app/Http/Controllers/ViewContentController.php b/app/Http/Controllers/ViewContentController.php deleted file mode 100644 index 0252344..0000000 --- a/app/Http/Controllers/ViewContentController.php +++ /dev/null @@ -1,26 +0,0 @@ -apiCrm = new \LDCCRM\ApiV1(config('crm.endpoint'), config('crm.token')); - } - - public function sendWinningProof(Request $request) - { - // On récupère la participation gagnante en attente des infos - $participation = Participation::where([ - ['user_id', Auth::user()->id], - ['sticker', null], - ['ticket', null], - ['barcode', null] - ])->has('instantWin')->first(); - if (!$participation) { - return redirect()->route('home'); - } - - $request->validate([ - 'lastname' => 'required|string|max:255', - 'firstname' => 'required|string|max:255', - 'address' => 'required|string|max:255', - 'address2' => 'max:255', - 'town' => 'required|string|max:255', - 'postal_code' => 'required|max:255', - 'country' => 'required|string|max:255', - 'phone' => 'required|string|max:50', - 'sticker' => 'required|mimes:jpeg,png,jpg,pdf|max:2048', - 'ticket' => 'required|mimes:jpeg,png,jpg,pdf|max:2048', - 'barcode' => 'required|mimes:jpeg,png,jpg,pdf|max:2048', - ]); - - $lastname = filter_var($request->lastname, FILTER_SANITIZE_STRING); - $firstname = filter_var($request->firstname, FILTER_SANITIZE_STRING); - $address = filter_var($request->address, FILTER_SANITIZE_STRING); - $address2 = $request->address2 !== null ? filter_var($request->address2, FILTER_SANITIZE_STRING) : null; - $town = filter_var($request->town, FILTER_SANITIZE_STRING); - $postalCode = filter_var($request->postal_code, FILTER_SANITIZE_STRING); - $country = filter_var($request->country, FILTER_SANITIZE_STRING); - $phone = filter_var($request->phone, FILTER_SANITIZE_STRING); - $sticker = $request->sticker; - $ticket = $request->ticket; - $barcode = $request->barcode; - - // Mise à jour de l'utilisateur en local. - $user = User::find(Auth::user()->id); - $user->lastname = $lastname; - $user->firstname = $firstname; - $user->address = $address; - $user->address2 = $address2; - $user->town = $town; - $user->postal_code = $postalCode; - $user->country = $country; - $user->phone = $phone; - $user->save(); - - // Mise à jour utilisateur dans la CRM. - $update = $this->apiCrm->updateCustomer( - $user->crm_id, - $firstname, - $lastname, - null, - null, - $phone, - $address, - $address2, - $town, - $postalCode, - ucfirst($country) - ); - if ($update->status !== 'OK') { - Log::warning('Erreur lors de la mise a jour du user (crm_id : ' . $user->crm_id . - ') - code : ' . $update->code . ' - message : ' . $update->message); - Mail::to(config('mail.MAIL_ADMIN'))->send(new NotifAdmin( - 'CRM : Erreur lors de la mise a jour du user (crm_id : ' . - $user->crm_id . ') - code : ' . $update->code . ' - message : ' . $update->message - )); - } - - $participationId = $participation->id; - $stickerFileName = $participationId . '-sticker.' . $sticker->extension(); - $sticker->move(public_path('fichiers/preuve-de-gain/' . $participationId . '/'), $stickerFileName); - $stickerPath = public_path() . '/fichiers/preuve-de-gain/' . $participationId . '/' . $stickerFileName; - - $ticketFileName = $participationId . '-ticket.' . $ticket->extension(); - $ticket->move(public_path('fichiers/preuve-de-gain/' . $participationId . '/'), $ticketFileName); - $ticketPath = public_path() . '/fichiers/preuve-de-gain/' . $participationId . '/' . $ticketFileName; - - $barcodeFileName = $participationId . '-code-barre.' . $barcode->extension(); - $barcode->move(public_path('fichiers/preuve-de-gain/' . $participationId . '/'), $barcodeFileName); - $barcodePath = public_path() . '/fichiers/preuve-de-gain/' . $participationId . '/' . $barcodeFileName; - - $participation->sticker = $stickerFileName; - $participation->ticket = $ticketFileName; - $participation->barcode = $barcodeFileName; - $participation->save(); - - /** @var \App\Models\Settings $settings */ - $settings = app(Settings::class); - $mails = json_decode($settings->notification_emails); - foreach ($mails as $mail) { - Mail::to($mail->email)->send(new WinningProof( - $stickerPath, - $ticketPath, - $barcodePath, - $participation, - $user, - $settings - )); - } - - return view('front.basic.replay'); - } -} diff --git a/app/Http/Controllers/re7Controller.php b/app/Http/Controllers/re7Controller.php deleted file mode 100644 index f176c46..0000000 --- a/app/Http/Controllers/re7Controller.php +++ /dev/null @@ -1,101 +0,0 @@ -select('start_date', 'end_date', 'activated_teaser', 'teaser_end_activity')->first(); - return view('front.basic.teaser', compact('settings')); - } - - /** - * prizeMail - * @return \Illuminate\View\View - */ - public function prizeMail() - { - return view('front.basic.prize-mail'); - } - - /** - * reductionMail - * @return \Illuminate\View\View - */ - public function reductionMail() - { - return view('front.basic.reduction-mail'); - } - - /** - * br - * @return \Illuminate\View\View - */ - public function br() - { - $settings = app(Settings::class); - $coupon = $this->getRandomCoupon($settings); - $crmCoupon = new Reduction(); - return view('front.basic.reduction', compact('coupon', 'crmCoupon')); - } - - /** - * gain 1 - * @return \Illuminate\View\View - */ - public function gain1() - { - return view('front.basic.gain1'); - } - - /** - * gain 2 - * @return \Illuminate\View\View - */ - public function gain2() - { - return view('front.basic.gain2'); - } - /** - * getRandomCoupon - * @param App\Models\Settings $settings - * @return string - */ - private function getRandomCoupon(Settings $settings) - { - $webCoupons = json_decode($settings->web_coupons); - if (count($webCoupons) > 1) { - $lots = []; - foreach ($webCoupons as $webCoupon) { - $lots[] = $webCoupon; - } - foreach ($lots as $lot) { - for ($i = 0; $i < $lot->percentage; $i++) { - $tmp[] = $lot; - } - } - shuffle($tmp); - return $tmp[0]; - } else { - return $webCoupons[0]; - } - } -} diff --git a/app/Http/Kernel.php b/app/Http/Kernel.php index 9f9d0aa..ddbaac7 100644 --- a/app/Http/Kernel.php +++ b/app/Http/Kernel.php @@ -14,9 +14,10 @@ class Kernel extends HttpKernel * @var array */ protected $middleware = [ + \App\Http\Middleware\TrustHosts::class, \App\Http\Middleware\TrustProxies::class, - \Fruitcake\Cors\HandleCors::class, - \App\Http\Middleware\CheckForMaintenanceMode::class, + \Illuminate\Http\Middleware\HandleCors::class, + \App\Http\Middleware\PreventRequestsDuringMaintenance::class, \Illuminate\Foundation\Http\Middleware\ValidatePostSize::class, \App\Http\Middleware\TrimStrings::class, \Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull::class, @@ -29,16 +30,19 @@ class Kernel extends HttpKernel */ protected $middlewareGroups = [ 'web' => [ + 'htmlsanitize', \App\Http\Middleware\EncryptCookies::class, \Illuminate\Cookie\Middleware\AddQueuedCookiesToResponse::class, \Illuminate\Session\Middleware\StartSession::class, \Illuminate\View\Middleware\ShareErrorsFromSession::class, \App\Http\Middleware\VerifyCsrfToken::class, \Illuminate\Routing\Middleware\SubstituteBindings::class, + \App\Http\Middleware\SecureHeaders::class, + \App\Http\Middleware\CheckThemeVersion::class ], 'api' => [ - 'throttle:60,1', + \Illuminate\Routing\Middleware\ThrottleRequests::class . ':api', \Illuminate\Routing\Middleware\SubstituteBindings::class, ], ]; @@ -53,17 +57,15 @@ class Kernel extends HttpKernel protected $routeMiddleware = [ 'auth' => \App\Http\Middleware\Authenticate::class, 'auth.basic' => \Illuminate\Auth\Middleware\AuthenticateWithBasicAuth::class, - 'bindings' => \Illuminate\Routing\Middleware\SubstituteBindings::class, + 'auth.session' => \Illuminate\Session\Middleware\AuthenticateSession::class, 'cache.headers' => \Illuminate\Http\Middleware\SetCacheHeaders::class, 'can' => \Illuminate\Auth\Middleware\Authorize::class, 'guest' => \App\Http\Middleware\RedirectIfAuthenticated::class, - 'game-date' => \App\Http\Middleware\GameCheckDate::class, - 'is-admin' => \App\Http\Middleware\isAdmin::class, - 'is-super-admin' => \App\Http\Middleware\isSuperAdmin::class, - 're7' => \App\Http\Middleware\re7Middleware::class, 'password.confirm' => \Illuminate\Auth\Middleware\RequirePassword::class, - 'signed' => \Illuminate\Routing\Middleware\ValidateSignature::class, + 'check-game-status' => \App\Http\Middleware\CheckGameStatus::class, + 'signed' => \App\Http\Middleware\ValidateSignature::class, 'throttle' => \Illuminate\Routing\Middleware\ThrottleRequests::class, 'verified' => \Illuminate\Auth\Middleware\EnsureEmailIsVerified::class, + 'htmlsanitize' => \App\Http\Middleware\HtmlSanitizer::class, ]; } diff --git a/app/Http/Middleware/Authenticate.php b/app/Http/Middleware/Authenticate.php index aeb9d80..a332aa5 100644 --- a/app/Http/Middleware/Authenticate.php +++ b/app/Http/Middleware/Authenticate.php @@ -3,6 +3,8 @@ namespace App\Http\Middleware; use Illuminate\Auth\Middleware\Authenticate as Middleware; +use Illuminate\Http\Request; +use Illuminate\Support\Facades\Session; class Authenticate extends Middleware { @@ -12,10 +14,26 @@ class Authenticate extends Middleware * @param \Illuminate\Http\Request $request * @return string|null */ - protected function redirectTo($request) + protected function redirectTo(Request $request): ?string { - if (! $request->expectsJson()) { - return route('login'); + $logins = [ + 'backend' => route('bo.login') + ]; + if (!$request->expectsJson()) { + // * Notify must login + Session::flash('warning', trans('Veuillez vous connecter pour continuer')); + + foreach ($request->route()->gatherMiddleware() as $middleware) { + if (\is_string($middleware) and strpos($middleware, 'auth:') !== false) { + $route = $logins[str_replace('auth:', '', $middleware)] ?? null; + if ($route) { + return $route; + } + } + } + return route('fo.login'); } + + return null; } } diff --git a/app/Http/Middleware/CheckForMaintenanceMode.php b/app/Http/Middleware/CheckForMaintenanceMode.php deleted file mode 100644 index 9037ddf..0000000 --- a/app/Http/Middleware/CheckForMaintenanceMode.php +++ /dev/null @@ -1,16 +0,0 @@ -should_display_end_page => redirect()->route('fo.end'), + // * Teaser + $settings->should_display_teaser_page => redirect()->route('fo.teaser'), + // * Game is ended + $settings->game_has_ended => redirect($settings->redirect_close), + // * Game has started + $settings->game_has_begun => $next($request), + // * The game will begun, but has no teaser activated. + default => redirect($settings->redirect_close) + }; + } +} diff --git a/app/Http/Middleware/CheckThemeVersion.php b/app/Http/Middleware/CheckThemeVersion.php new file mode 100644 index 0000000..0707543 --- /dev/null +++ b/app/Http/Middleware/CheckThemeVersion.php @@ -0,0 +1,43 @@ +version)->explode('.'); + $themeVer = Str::of(config('theme.version'))->explode('.'); + if ( + // * Major check + Arr::get($appVer, 0) !== Arr::get($themeVer, 0) or + // * Patch check + Arr::get($appVer, 1) !== Arr::get($themeVer, 1) + ) { + Session::flash('warning', trans( + 'Ce thème n\'a semble t-il pas été vérifié pour cette version du moteur' + )); + } + + return $next($request); + } +} diff --git a/app/Http/Middleware/EncryptCookies.php b/app/Http/Middleware/EncryptCookies.php index 20c5039..b6e9bbc 100644 --- a/app/Http/Middleware/EncryptCookies.php +++ b/app/Http/Middleware/EncryptCookies.php @@ -9,8 +9,7 @@ class EncryptCookies extends Middleware /** * The names of the cookies that should not be encrypted. * - * @var array + * @var array */ - protected $except = [ - ]; + protected $except = []; } diff --git a/app/Http/Middleware/GameCheckDate.php b/app/Http/Middleware/GameCheckDate.php deleted file mode 100644 index 46520ae..0000000 --- a/app/Http/Middleware/GameCheckDate.php +++ /dev/null @@ -1,40 +0,0 @@ -start_date > now()) { - if ($settings->activated_teaser === 1 && $settings->teaser_end_activity > now()) { - return redirect()->route('teaser'); - } - return redirect($settings->redirect_close); - } - - // Check si le jeu est terminé - if ($settings->end_date < now()) { - if ($settings->activated_close_page === 1 && $settings->close_page_active_date > now()) { - return redirect()->route('end'); - } - return redirect($settings->redirect_close); - } - - return $next($request); - } -} diff --git a/app/Http/Middleware/HtmlSanitizer.php b/app/Http/Middleware/HtmlSanitizer.php new file mode 100644 index 0000000..857ca84 --- /dev/null +++ b/app/Http/Middleware/HtmlSanitizer.php @@ -0,0 +1,61 @@ +all(); + /** @var callable|null */ + $cleanInput = null; + $cleanInput = function ( + null|string|array &$input, + string $name, + ?string $rootName = null + ) use ( + $params, + &$cleanInput + ): void { + // * Nested element array + if (is_array($input)) { + array_walk_recursive($input, $cleanInput, $name); + } + if (!is_string($input)) { + return; + } + if (in_array($name, $params) or in_array($rootName ?? $name, $params)) { + // ? Is a json input ? + if ($isJson = \json_decode($input, true) and is_array($isJson)) { + // ! Decode each json field recursive. + \array_walk_recursive($isJson, function (string|array &$item) { + if (\is_string($item)) { + $item = clean($item); + $item = ToolboxHelper::stripCkEditorSchemesOnMediaInputs($item); + } + }); + } else { + $input = clean($input); + $input = ToolboxHelper::stripCkEditorSchemesOnMediaInputs($input); + } + } else { + $input = strip_tags($input); + } + }; + \array_walk($inputs, $cleanInput); + $request->merge($inputs); + return $next($request); + } +} diff --git a/app/Http/Middleware/PreventRequestsDuringMaintenance.php b/app/Http/Middleware/PreventRequestsDuringMaintenance.php new file mode 100644 index 0000000..842e4b9 --- /dev/null +++ b/app/Http/Middleware/PreventRequestsDuringMaintenance.php @@ -0,0 +1,15 @@ + + */ + protected $except = []; +} diff --git a/app/Http/Middleware/RedirectIfAuthenticated.php b/app/Http/Middleware/RedirectIfAuthenticated.php index c076008..2c78eaf 100644 --- a/app/Http/Middleware/RedirectIfAuthenticated.php +++ b/app/Http/Middleware/RedirectIfAuthenticated.php @@ -2,24 +2,40 @@ namespace App\Http\Middleware; -use App\Providers\RouteServiceProvider; -use Closure; -use Illuminate\Support\Facades\Auth; +use Illuminate\Http\Request; +use Symfony\Component\HttpFoundation\Response; class RedirectIfAuthenticated { /** * Handle an incoming request. * - * @param \Illuminate\Http\Request $request - * @param \Closure $next - * @param string|null $guard - * @return mixed + * @param \Illuminate\Http\Request $request + * @param \Closure(\Illuminate\Http\Request): (\Symfony\Component\HttpFoundation\Response) $next + * @param string|null ...$guards + * @return \Symfony\Component\HttpFoundation\Response + * @throws \RuntimeException If guard is unhandled. + * @phpcs:disable Squiz.Commenting.FunctionComment.IncorrectTypeHint */ - public function handle($request, Closure $next, $guard = null) + public function handle(Request $request, \Closure $next, ...$guards): Response { - if (Auth::guard($guard)->check()) { - return redirect(RouteServiceProvider::HOME); + // phpcs:enable phpcs:disable + $guards = empty($guards) ? [null] : $guards; + + foreach ($guards as $guard) { + if (auth($guard)->check()) { + switch ($guard) { + case 'frontend': + return \redirect()->route('fo.homepage'); + case 'backend': + if (!$request->routeIs('bo.*')) { + continue; + } + return \redirect()->route('bo.dashboard'); + default: + throw new \RuntimeException("Unhandled guard `{$guard}` ."); + } + } } return $next($request); diff --git a/app/Http/Middleware/SecureHeaders.php b/app/Http/Middleware/SecureHeaders.php new file mode 100644 index 0000000..19aaa34 --- /dev/null +++ b/app/Http/Middleware/SecureHeaders.php @@ -0,0 +1,122 @@ +removeUnwantedHeaders($this->unwantedHeaderList); + $response = $next($request); + $response->headers->set('Referrer-Policy', 'no-referrer-when-downgrade'); + $response->headers->set('X-Content-Type-Options', 'nosniff'); + $response->headers->set('X-XSS-Protection', '1; mode=block'); + $response->headers->set('X-Frame-Options', 'SAMEORIGIN'); + $response->headers->set('Strict-Transport-Security', 'max-age=31536000; includeSubDomains;'); + $cspPolicies = [ + "default-src 'none';", + "manifest-src 'self';", + // * CKEDITOR Specific https://ckeditor.com/docs/ckeditor5/latest/installation/advanced/csp.html + "connect-src 'self' blob: " . implode(' ', [ + // * VITE DEV + config('app.debug') ? "wss://{$host}:4443" : '', + config('app.debug') ? "https://{$host}:4443" : '', + 'https://yl.s-web.fr' + ]) . ';', + "img-src 'self' data: blob: " . implode(' ', [ + // * VITE DEV + config('app.debug') ? "https://{$host}:4443" : '', + ]) . ';', + "object-src 'self' " . implode(' ', []) . ';', + "frame-src 'self' " . implode(' ', [ + 'https://www.google.com/recaptcha/', + 'https://recaptcha.google.com/recaptcha/', + 'https://www.google.com/maps/' + ]) . ';', + "font-src 'self' data: " . \implode(' ', [ + // * VITE DEV + config('app.debug') ? "https://{$host}:4443" : '', + 'https://fonts.gstatic.com;' + ]) . ';', + // ! Using CKEditor will must have unsafe-inline style + // phpcs:ignore Generic.Files.LineLength.TooLong + "style-src 'self' 'unsafe-inline' " . \implode(' ', [ + 'https://cdnjs.cloudflare.com', + // * File Manager + 'https://fonts.googleapis.com', + 'https://cdn.jsdelivr.net', + 'https://use.fontawesome.com', + 'https://fonts.googleapis.com', + // * VITE DEV + config('app.debug') ? "https://{$host}:4443" : '', + ]) . ';', + // ! If you dont use ckeditor use this + // "style-src 'self' 'nonce-$nonce';", + // phpcs:ignore Generic.Files.LineLength.TooLong + "script-src 'self' {$jsDev} " . \implode(' ', [ + 'https: blob:', + 'https://www.googletagmanager.com', + 'https://cdnjs.cloudflare.com', + "$scheme://www.google-analytics.com", + // * VITE DEV + config('app.debug') ? "https://{$host}:4443" : '', + ]) . ';' + ]; + + $response->headers->set( + 'Content-Security-Policy', + implode(' ', $cspPolicies) . $reportUri + ); + $response->headers->set('Feature-Policy', 'fullscreen \'self\';'); + return $response; + } + + /** + * Remove unwanted headers + * + * @param array $headerList + * @return void + */ + private function removeUnwantedHeaders(array $headerList): void + { + foreach ($headerList as $header) { + header_remove($header); + } + } +} diff --git a/app/Http/Middleware/TrimStrings.php b/app/Http/Middleware/TrimStrings.php index 5a50e7b..88cadca 100644 --- a/app/Http/Middleware/TrimStrings.php +++ b/app/Http/Middleware/TrimStrings.php @@ -9,9 +9,10 @@ class TrimStrings extends Middleware /** * The names of the attributes that should not be trimmed. * - * @var array + * @var array */ protected $except = [ + 'current_password', 'password', 'password_confirmation', ]; diff --git a/app/Http/Middleware/TrustHosts.php b/app/Http/Middleware/TrustHosts.php index b0550cf..7186414 100644 --- a/app/Http/Middleware/TrustHosts.php +++ b/app/Http/Middleware/TrustHosts.php @@ -9,7 +9,7 @@ class TrustHosts extends Middleware /** * Get the host patterns that should be trusted. * - * @return array + * @return array */ public function hosts() { diff --git a/app/Http/Middleware/TrustProxies.php b/app/Http/Middleware/TrustProxies.php index 03b7890..78de7a0 100644 --- a/app/Http/Middleware/TrustProxies.php +++ b/app/Http/Middleware/TrustProxies.php @@ -2,7 +2,7 @@ namespace App\Http\Middleware; -use Fideloper\Proxy\TrustProxies as Middleware; +use Illuminate\Http\Middleware\TrustProxies as Middleware; use Illuminate\Http\Request; class TrustProxies extends Middleware @@ -10,7 +10,7 @@ class TrustProxies extends Middleware /** * The trusted proxies for this application. * - * @var array|string|null + * @var array|string|null */ protected $proxies; @@ -19,5 +19,10 @@ class TrustProxies extends Middleware * * @var integer */ - protected $headers = Request::HEADER_X_FORWARDED_ALL; + protected $headers = + Request::HEADER_X_FORWARDED_FOR | + Request::HEADER_X_FORWARDED_HOST | + Request::HEADER_X_FORWARDED_PORT | + Request::HEADER_X_FORWARDED_PROTO | + Request::HEADER_X_FORWARDED_AWS_ELB; } diff --git a/app/Http/Middleware/ValidateSignature.php b/app/Http/Middleware/ValidateSignature.php new file mode 100644 index 0000000..83aa732 --- /dev/null +++ b/app/Http/Middleware/ValidateSignature.php @@ -0,0 +1,15 @@ + + */ + protected $except = []; +} diff --git a/app/Http/Middleware/VerifyCsrfToken.php b/app/Http/Middleware/VerifyCsrfToken.php index ed591f2..61356d0 100644 --- a/app/Http/Middleware/VerifyCsrfToken.php +++ b/app/Http/Middleware/VerifyCsrfToken.php @@ -9,8 +9,9 @@ class VerifyCsrfToken extends Middleware /** * The URIs that should be excluded from CSRF verification. * - * @var array + * @var array */ protected $except = [ - ]; + '/csp-report' + ]; } diff --git a/app/Http/Middleware/isAdmin.php b/app/Http/Middleware/isAdmin.php deleted file mode 100644 index f038fd9..0000000 --- a/app/Http/Middleware/isAdmin.php +++ /dev/null @@ -1,25 +0,0 @@ -role; - if ($role === 1 || $role === 2) { - return $next($request); - } - abort(404, "Cette page n'existe pas."); - } -} diff --git a/app/Http/Middleware/isSuperAdmin.php b/app/Http/Middleware/isSuperAdmin.php deleted file mode 100644 index 5817937..0000000 --- a/app/Http/Middleware/isSuperAdmin.php +++ /dev/null @@ -1,25 +0,0 @@ -role; - if ($role === 1) { - return $next($request); - } - return redirect()->route('bo.dashboard'); - } -} diff --git a/app/Http/Middleware/re7Middleware.php b/app/Http/Middleware/re7Middleware.php deleted file mode 100644 index eca5ed3..0000000 --- a/app/Http/Middleware/re7Middleware.php +++ /dev/null @@ -1,23 +0,0 @@ -route('home'); - } - return $next($request); - } -} diff --git a/app/Http/Requests/Bo/BannedIps/StoreBannedIpRequest.php b/app/Http/Requests/Bo/BannedIps/StoreBannedIpRequest.php new file mode 100644 index 0000000..43029bb --- /dev/null +++ b/app/Http/Requests/Bo/BannedIps/StoreBannedIpRequest.php @@ -0,0 +1,44 @@ + 'required|ip|unique:banned_ips,ip', + ]; + } + + /** + * Get custom attributes for validator errors. + * + * @return array + */ + public function attributes(): array + { + return [ + 'ip' => trans('validation.custom.ip'), + ]; + } +} diff --git a/app/Http/Requests/Bo/BannedIps/UpdateBannedIpRequest.php b/app/Http/Requests/Bo/BannedIps/UpdateBannedIpRequest.php new file mode 100644 index 0000000..1ec9b44 --- /dev/null +++ b/app/Http/Requests/Bo/BannedIps/UpdateBannedIpRequest.php @@ -0,0 +1,35 @@ +route('banned_ip')); + } + + /** + * Get the validation rules that apply to the request. + * + * @return array + */ + public function rules() + { + return [ + 'ip' => [ + 'required', 'ip', + Rule::unique('banned_ips', 'ip') + ->ignore($this->route('banned_ip')->ip, 'ip') + ], + ]; + } +} diff --git a/app/Http/Requests/Bo/Codes/CodeSearchRequest.php b/app/Http/Requests/Bo/Codes/CodeSearchRequest.php new file mode 100644 index 0000000..4554d27 --- /dev/null +++ b/app/Http/Requests/Bo/Codes/CodeSearchRequest.php @@ -0,0 +1,44 @@ + + */ + public function rules(): array + { + return [ + 'code' => 'required|string|min:1|max:25' + ]; + } + + /** + * Get custom attributes for validator errors. + * + * @return array + */ + public function attributes(): array + { + return [ + 'code' => trans('code') + ]; + } +} diff --git a/app/Http/Requests/Bo/Codes/ExportCodesRequest.php b/app/Http/Requests/Bo/Codes/ExportCodesRequest.php new file mode 100644 index 0000000..56eb246 --- /dev/null +++ b/app/Http/Requests/Bo/Codes/ExportCodesRequest.php @@ -0,0 +1,70 @@ +json(); + } + + /** + * Prepare the data for validation. + * + * @return void + */ + protected function prepareForValidation(): void + { + $codesAvailableToExport = Code::query()->where('code_exported', false); + /** @var integer|null */ + $lastExportedId = optional(Code::query()->where('code_exported', true) + ->orderBy('id', 'desc')->first())->id ?? null; + if ($lastExportedId) { + $codesAvailableToExport = $codesAvailableToExport + ->where('id', '>', $lastExportedId); + } + $this->merge([ + 'available_export' => $codesAvailableToExport->count() + ]); + } + + /** + * Get the validation rules that apply to the request. + * + * @return array + */ + public function rules(): array + { + return [ + 'nb_code_tot' => 'required|integer|min:1|lte:available_export', + 'nb_code_fic' => 'required|integer|min:1', + 'nb_code_ligne' => 'required|integer|min:1', + 'available_export' => 'required|integer' + ]; + } + + /** + * Get custom attributes for validator errors. + * + * @return array + */ + public function attributes(): array + { + return [ + 'nb_code_fic' => trans('nombre total de codes à exporter'), + 'nb_code_tot' => trans('nombre de codes par fichier'), + 'nb_code_ligne' => trans('nombre de codes par ligne'), + 'available_export' => trans('nombre de codes restant à exporté(s)') + ]; + } +} diff --git a/app/Http/Requests/Bo/Codes/GenerateCodesRequest.php b/app/Http/Requests/Bo/Codes/GenerateCodesRequest.php new file mode 100644 index 0000000..fbec424 --- /dev/null +++ b/app/Http/Requests/Bo/Codes/GenerateCodesRequest.php @@ -0,0 +1,43 @@ +json(); + } + + /** + * Get the validation rules that apply to the request. + * + * @return array + */ + public function rules(): array + { + return [ + 'quantity' => 'required|integer|min:1' + ]; + } + + /** + * Get custom attributes for validator errors. + * + * @return array + */ + public function attributes(): array + { + return [ + 'quantity' => trans('validation.custom.quantity') + ]; + } +} diff --git a/app/Http/Requests/Bo/FaqQuestions/StoreFaqQuestionRequest.php b/app/Http/Requests/Bo/FaqQuestions/StoreFaqQuestionRequest.php new file mode 100644 index 0000000..49180bc --- /dev/null +++ b/app/Http/Requests/Bo/FaqQuestions/StoreFaqQuestionRequest.php @@ -0,0 +1,48 @@ + 'required|string|min:3|max:255', + 'answer' => 'required|string|min:3', + 'theme_id' => 'required|exists:faq_themes,id', + ]; + } + + /** + * Get custom attributes for validator errors. + * + * @return array + */ + public function attributes(): array + { + return [ + 'question' => trans('validation.custom.question'), + 'answer' => trans('validation.custom.answer'), + 'theme_id' => trans_choice('models.classes.faq-themes', 1), + ]; + } +} diff --git a/app/Http/Requests/Bo/FaqQuestions/UpdateFaqQuestionRequest.php b/app/Http/Requests/Bo/FaqQuestions/UpdateFaqQuestionRequest.php new file mode 100644 index 0000000..f75511c --- /dev/null +++ b/app/Http/Requests/Bo/FaqQuestions/UpdateFaqQuestionRequest.php @@ -0,0 +1,18 @@ +route('faq_question')); + } +} diff --git a/app/Http/Requests/Bo/FaqThemes/StoreFaqThemeRequest.php b/app/Http/Requests/Bo/FaqThemes/StoreFaqThemeRequest.php new file mode 100644 index 0000000..1dfba24 --- /dev/null +++ b/app/Http/Requests/Bo/FaqThemes/StoreFaqThemeRequest.php @@ -0,0 +1,44 @@ + 'required|string|min:3|max:255' + ]; + } + + /** + * Get custom attributes for validator errors. + * + * @return array + */ + public function attributes(): array + { + return [ + 'name' => trans('validation.attributes.name'), + ]; + } +} diff --git a/app/Http/Requests/Bo/FaqThemes/UpdateFaqThemeRequest.php b/app/Http/Requests/Bo/FaqThemes/UpdateFaqThemeRequest.php new file mode 100644 index 0000000..e17e44f --- /dev/null +++ b/app/Http/Requests/Bo/FaqThemes/UpdateFaqThemeRequest.php @@ -0,0 +1,18 @@ +route('faq_theme')); + } +} diff --git a/app/Http/Requests/Bo/Prizes/StorePrizeRequest.php b/app/Http/Requests/Bo/Prizes/StorePrizeRequest.php new file mode 100644 index 0000000..8688a17 --- /dev/null +++ b/app/Http/Requests/Bo/Prizes/StorePrizeRequest.php @@ -0,0 +1,80 @@ +merge([ + 'pdf_winning_proof' => $this->input('pdf_winning_proof') + ]); + } + + /** + * Get the validation rules that apply to the request. + * + * @return array + */ + public function rules() + { + $rules = [ + 'label' => 'required|string|min:3|max:255', + 'picture_alt' => 'required|string|between:3,255', + 'picture_title' => 'required|string|between:3,255', + 'arg_title' => 'required|string|min:3|max:255', + 'arg_subtitle' => 'nullable|string|min:3|max:255', + 'arg_content' => 'required|string|min:15', + 'quantity' => 'required|numeric|min:1', + 'pdf_winning_proof' => 'nullable|file|mimes:pdf', + ]; + $width = config('theme.models.prizes.picture_max_width'); + $height = config('theme.models.prizes.picture_max_height'); + return \array_merge( + $rules, + $this->pictureRules('picture', $width, $height, $width, $height), + ); + } + + /** + * Get custom attributes for validator errors. + * + * @return array + */ + public function attributes(): array + { + return [ + 'label' => trans('validation.custom.label'), + 'picture' => trans('validation.custom.picture'), + 'picture_alt' => trans('validation.custom.picture_alt'), + 'picture_title' => trans('validation.custom.picture_title'), + 'arg_title' => trans('validation.attributes.title'), + 'arg_subtitle' => trans('validation.custom.subtitle'), + 'arg_content' => trans('validation.attributes.content'), + 'quantity' => trans('validation.custom.quantity'), + 'pdf_winning_proof' => trans('validation.custom.pdf_winning_proof'), + ]; + } +} diff --git a/app/Http/Requests/Bo/Prizes/UpdatePrizeRequest.php b/app/Http/Requests/Bo/Prizes/UpdatePrizeRequest.php new file mode 100644 index 0000000..689819b --- /dev/null +++ b/app/Http/Requests/Bo/Prizes/UpdatePrizeRequest.php @@ -0,0 +1,18 @@ +route('prize')); + } +} diff --git a/app/Http/Requests/Bo/Products/StoreProductRequest.php b/app/Http/Requests/Bo/Products/StoreProductRequest.php new file mode 100644 index 0000000..6f8116e --- /dev/null +++ b/app/Http/Requests/Bo/Products/StoreProductRequest.php @@ -0,0 +1,90 @@ +mergePicture('picture'); + } + + /** + * Get the validation rules that apply to the request. + * + * @return array + */ + public function rules() + { + $rules = [ + 'name' => 'required|string|min:3|max:255', + 'ean_code' => [ + 'required', + 'numeric', + 'unique:products,ean_code', + 'regex:/^[0-9]{7}$|^[0-9]{8}$|^[0-9]{13}$/', + ], + 'picture_alt' => 'required_with:picture|string|between:3,255', + 'picture_title' => 'required_with:picture|string|between:3,255', + 'range_id' => 'exists:ranges,id' + ]; + $width = config('theme.models.products.picture_max_width'); + $height = config('theme.models.products.picture_max_height'); + return \array_merge( + $rules, + $this->pictureRules('picture', $width, $height, $width, $height, true), + ); + } + + /** + * Get custom attributes for validator errors. + * + * @return array + */ + public function attributes(): array + { + return [ + 'name' => trans('validation.attributes.name'), + 'picture_title' => trans(':field1 :inter1:field2 :inter2:model', [ + 'field1' => Str::ucfirst(trans('validation.custom.attribute_title')), + 'inter1' => trans('validation.custom.of_the.vowel'), + 'field2' => trans('validation.attributes.image'), + 'inter2' => trans('validation.custom.of_the.male'), + 'model' => trans('models.classes.product'), + ]), + 'picture_alt' => trans(':field1 :inter1:field2 :inter2:model', [ + 'field1' => Str::ucfirst(trans('validation.custom.attribute_alt')), + 'inter1' => trans('validation.custom.of_the.vowel'), + 'field2' => trans('validation.attributes.image'), + 'inter2' => trans('validation.custom.of_the.male'), + 'model' => trans('models.classes.product'), + ]), + 'picture' => trans('validation.attributes.image'), + 'ean_code' => trans('validation.custom.ean_code'), + 'range_id' => trans('models.classes.range'), + ]; + } +} diff --git a/app/Http/Requests/Bo/Products/UpdateProductRequest.php b/app/Http/Requests/Bo/Products/UpdateProductRequest.php new file mode 100644 index 0000000..b33e69c --- /dev/null +++ b/app/Http/Requests/Bo/Products/UpdateProductRequest.php @@ -0,0 +1,36 @@ +route('product')); + } + + /** + * Get the validation rules that apply to the request. + * + * @return array + */ + public function rules() + { + return array_merge(parent::rules(), [ + 'ean_code' => [ + 'required', + 'numeric', + Rule::unique('products', 'ean_code')->ignore($this->route('product')->id), + 'regex:/^[0-9]{7}$|^[0-9]{8}$|^[0-9]{13}$/', + ], + ]); + } +} diff --git a/app/Http/Requests/Bo/Ranges/StoreRangeRequest.php b/app/Http/Requests/Bo/Ranges/StoreRangeRequest.php new file mode 100644 index 0000000..bf6f70f --- /dev/null +++ b/app/Http/Requests/Bo/Ranges/StoreRangeRequest.php @@ -0,0 +1,51 @@ +mergePicture('picture'); + } + + /** + * Get the validation rules that apply to the request. + * + * @return array + */ + public function rules() + { + $rules = [ + 'name' => 'required|string|min:2|max:255', + ]; + $width = config('theme.models.ranges.picture_max_width'); + $height = config('theme.models.ranges.picture_max_height'); + return \array_merge( + $rules, + $this->pictureRules('picture', $width, $height, $width, $height, false), + ); + } +} diff --git a/app/Http/Requests/Bo/Ranges/UpdateRangeRequest.php b/app/Http/Requests/Bo/Ranges/UpdateRangeRequest.php new file mode 100644 index 0000000..8ac56ed --- /dev/null +++ b/app/Http/Requests/Bo/Ranges/UpdateRangeRequest.php @@ -0,0 +1,18 @@ +route('range')); + } +} diff --git a/app/Http/Requests/Bo/Settings/UpdateSettingsRequest.php b/app/Http/Requests/Bo/Settings/UpdateSettingsRequest.php new file mode 100644 index 0000000..f9b265c --- /dev/null +++ b/app/Http/Requests/Bo/Settings/UpdateSettingsRequest.php @@ -0,0 +1,160 @@ +route('settings')); + } + + /** + * Prepare the data for validation. + * + * @return void + * @phpcs:disable Generic.Metrics.CyclomaticComplexity.TooHigh + */ + protected function prepareForValidation() + { + // phpcs:enable + $this->merge([ + // Checkboxes. + 'notify_prize_sent' => $this->boolean('notify_prize_sent'), + 'use_ean_codes' => $this->boolean('use_ean_codes'), + 'activated_teaser' => $this->boolean('activated_teaser'), + 'activated_close_page' => $this->boolean('activated_close_page'), + 'discounts_activated' => $this->boolean('discounts_activated'), + 'winning_proof' => $this->boolean('winning_proof'), + // Arrays. + 'notification_emails' => collect($this->input('notification_emails'))->filter()->all(), + // Remove some dates if the checkbox is uncheck. + 'close_page_active_date' => $this->input('activated_close_page') ? + $this->input('close_page_active_date') : null, + // Remove discounts datas if the discount checkbox is uncheck. + 'discounts_site' => $this->input('discounts_activated') ? $this->input('discounts_site') : null, + 'discounts_campaign' => $this->input('discounts_activated') ? $this->input('discounts_campaign') : null, + 'web_coupons' => collect($this->input('web_coupons'))->filter()->all(), + ]); + } + + /** + * Get the validation rules that apply to the request. + * + * @return array + */ + public function rules() + { + return [ + 'name' => 'required|string|min:3|max:255', + 'company' => 'required|string|min:3|max:255', + + 'start_date' => 'required|date', + 'end_date' => 'required|date', + 'nb_participation_player' => 'required|numeric|min:0', + 'nb_participation_ip' => 'required|numeric|min:0', + 'nb_unique_code_use' => 'required|numeric|min:0', + 'use_ean_codes' => 'required|boolean', + 'activated_teaser' => 'required|boolean', + 'activated_close_page' => 'required|boolean', + // phpcs:ignore Generic.Files.LineLength.TooLong + 'close_page_active_date' => 'nullable|required_if:activated_close_page,true,1|date|after_or_equal:end_date', + 'redirect_close' => 'required|url:http,https', + + 'notify_prize_sent' => 'required|boolean', + 'discounts_activated' => 'required|boolean', + 'discounts_site' => 'nullable|required_if:discounts_activated,true,1|string|min:3|max:255', + 'discounts_campaign' => 'nullable|required_if:discounts_activated,true,1|string|min:3|max:255', + + 'web_coupons' => [ + 'present', 'array', function ($attribute, $value, $fail) { + if ($this->post('discounts_activated') and !collect($value)->filter()->count()) { + $fail(trans('validation.min.array', [ + 'attribute' => Arr::get($this->attributes(), $attribute), + 'min' => 1 + ])); + } + if (collect($value)->sum('percentage') > 100) { + $fail(trans('validation.max.numeric', [ + 'attribute' => Arr::get($this->attributes(), $attribute), + 'max' => 100 + ])); + } + } + ], + 'web_coupons.*' => 'array', + 'web_coupons.*.web_coupon_identifiant' => 'required|digits:13', + 'web_coupons.*.percentage' => 'required|numeric|min:1|max:100', + 'web_coupons.*.face_value' => 'required|numeric|min:10|max:300', + 'web_coupons.*.valid_on' => 'required|string|min:3|max:255', + 'web_coupons.*.picture' => [ + 'required', function (string $attribute, $value, callable $fail) { + ToolboxHelper::validatePicture( + $attribute, + $value, + $fail, + (object)[ + 'maxHeight' => 409, + 'maxWith' => 920, + 'minHeight' => 409, + 'minWith' => 920 + ] + ); + } + ], + + 'notification_emails' => 'required|array|min:1', + 'notification_emails.*' => 'email:rfc,spoof,dns', + + 'winning_proof' => 'required|boolean', + ]; + } + + /** + * Get custom attributes for validator errors. + * + * @return array + */ + public function attributes(): array + { + return [ + 'name' => trans('validation.attributes.name'), + 'company' => trans('validation.custom.company'), + 'start_date' => trans('validation.custom.start_date'), + 'end_date' => trans('validation.custom.end_date'), + 'nb_participation_player' => trans('validation.custom.nb_participation_player'), + 'nb_participation_ip' => trans('validation.custom.nb_participation_ip'), + 'nb_unique_code_use' => trans('validation.custom.nb_unique_code_use'), + 'use_ean_codes' => trans('validation.custom.use_ean_codes'), + 'activated_teaser' => trans('validation.custom.activated_teaser'), + 'activated_close_page' => trans('validation.custom.activated_close_page'), + 'close_page_active_date' => trans('validation.custom.close_page_active_date'), + 'redirect_close' => trans('validation.custom.redirect_close'), + 'winning_proof' => trans('validation.custom.winning_proof'), + 'discounts_activated' => trans('validation.custom.discounts_activated'), + 'discounts_site' => trans('validation.custom.discounts_site'), + 'discounts_campaign' => trans('validation.custom.discounts_campaign'), + 'notify_prize_sent' => trans('validation.custom.notify_prize_sent'), + + 'web_coupons' => trans('Tableau des coupons'), + 'web_coupons.*.web_coupon_identifiant' => trans('Identifiant coupon :index'), + 'web_coupons.*.percentage' => trans('Pourcentage :index'), + 'web_coupons.*.face_value' => trans('Valeur faciale :index'), + 'web_coupons.*.valid_on' => trans('Valable sur :index'), + 'web_coupons.*.img_name' => trans('Nom image :index'), + + 'notification_emails' => trans('Tableau des email à notifier'), + 'notification_emails.*.email' => trans('validation.attributes.email') + ]; + } +} diff --git a/app/Http/Requests/Bo/StaticPages/UpdateStaticPageRequest.php b/app/Http/Requests/Bo/StaticPages/UpdateStaticPageRequest.php new file mode 100644 index 0000000..6f6e9cb --- /dev/null +++ b/app/Http/Requests/Bo/StaticPages/UpdateStaticPageRequest.php @@ -0,0 +1,62 @@ +route('static_page')); + } + + /** + * Prepare the data for validation. + * + * @return void + */ + public function prepareForValidation(): void + { + $this->merge([ + 'content' => (string)Str::of($this->input('content')) + ]); + } + + /** + * Get the validation rules that apply to the request. + * + * @return array|string> + */ + public function rules(): array + { + return [ + 'seo_title' => 'required|min:45|max:70', + 'seo_description' => 'required|min:50|max:160', + 'title' => 'required|min:3|max:255', + 'content' => 'present', + ]; + } + + /** + * Get custom attributes for validator errors. + * + * @return array + */ + public function attributes(): array + { + return [ + 'seo_title' => trans('validation.custom.seo_title'), + 'seo_description' => trans('validation.custom.seo_description'), + 'name' => trans('validation.attributes.title'), + 'content' => trans('validation.attributes.content'), + ]; + } +} diff --git a/app/Http/Requests/Bo/Users/StoreUserRequest.php b/app/Http/Requests/Bo/Users/StoreUserRequest.php new file mode 100644 index 0000000..dbbef55 --- /dev/null +++ b/app/Http/Requests/Bo/Users/StoreUserRequest.php @@ -0,0 +1,75 @@ +merge([ + 'published' => $this->boolean('published') + ]); + } + + /** + * Get the validation rules that apply to the request. + * + * @return array + */ + public function rules(): array + { + return [ + 'first_name' => 'required|string|min:3|max:255', + 'last_name' => 'required|string|min:3|max:255', + 'email' => 'required|email:rfc,strict,dns,spoof,filter|unique:users,email', + 'password' => [ + 'required', 'required_with:password_confirmation', 'confirmed', 'max:255', Password::min(8) + ->letters() + ->mixedCase() + ->numbers() + ->symbols() + ->uncompromised() + ], + 'role' => ['required', new Enum(RoleEnum::class)], + 'published' => 'required|boolean', + ]; + } + + /** + * Get custom attributes for validator errors. + * + * @return array + */ + public function attributes(): array + { + return [ + 'first_name' => trans('validation.attributes.first_name'), + 'last_name' => trans('validation.attributes.last_name'), + 'email' => trans('validation.attributes.email'), + 'password' => trans('validation.attributes.password'), + 'role' => trans('validation.attributes.role'), + 'published' => trans('validation.custom.publication') + ]; + } +} diff --git a/app/Http/Requests/Bo/Users/UpdateUserRequest.php b/app/Http/Requests/Bo/Users/UpdateUserRequest.php new file mode 100644 index 0000000..c19c740 --- /dev/null +++ b/app/Http/Requests/Bo/Users/UpdateUserRequest.php @@ -0,0 +1,62 @@ +route('user')); + } + + /** + * Prepare the data for validation. + * + * @return void + */ + protected function prepareForValidation() + { + $this->merge([ + 'published' => $this->boolean('published'), + 'password' => $this->input( + 'password', + ) ?? $this->route('user')->password, + 'password_confirmation' => $this->input( + 'password_confirmation' + ) ?? $this->route('user')->password + ]); + } + + /** + * Get the validation rules that apply to the request. + * + * @return array + */ + public function rules(): array + { + return array_merge(parent::rules(), [ + 'email' => [ + 'required', + 'email:rfc,strict,dns,spoof,filter', + Rule::unique('users', 'email')->ignore($this->route('user')->getRouteKey()) + ], + 'password' => [ + 'required', 'required_with:password_confirmation', 'confirmed', 'max:255', Password::min(8) + ->letters() + ->mixedCase() + ->numbers() + ->symbols() + ->uncompromised() + ], + ]); + } +} diff --git a/app/Http/Requests/CodeSearchRequest.php b/app/Http/Requests/CodeSearchRequest.php deleted file mode 100644 index 2ece3fb..0000000 --- a/app/Http/Requests/CodeSearchRequest.php +++ /dev/null @@ -1,32 +0,0 @@ -check() and - auth()->user()->role === 1; - } - - /** - * Get the validation rules that apply to the request. - * - * @return array - */ - public function rules() - { - return [ - 'code' => 'required|string|min:1|max:25' - ]; - } -} diff --git a/app/Http/Requests/ExportCodesRequest.php b/app/Http/Requests/ExportCodesRequest.php deleted file mode 100644 index c44d93b..0000000 --- a/app/Http/Requests/ExportCodesRequest.php +++ /dev/null @@ -1,62 +0,0 @@ -orderBy('id', 'desc')->first()->id ?? null; - if ($lastExportedId) { - $codesAvailableToExport = $codesAvailableToExport - ->where('id', '>', $lastExportedId); - } - $this->merge([ - 'available_export' => $codesAvailableToExport->count() - ]); - // ? Is auth and super admin, also is json ? - return auth()->check() and - auth()->user()->role === 1 and $this->json(); - } - - /** - * Get the validation rules that apply to the request. - * - * @return array - */ - public function rules() - { - return [ - 'nb_code_fic' => 'required|integer|min:1', - 'nb_code_tot' => 'required|integer|min:1', - 'nb_code_ligne' => 'required|integer|min:1', - 'available_export' => 'required|integer|gte:nb_code_tot' - ]; - } - - /** - * Get custom attributes for validator errors. - * - * @return array - */ - public function attributes(): array - { - return [ - 'nb_code_fic' => 'Nombre total de codes à exporter', - 'nb_code_tot' => 'Nombre de codes par fichier', - 'nb_code_ligne' => 'Nombre de codes par ligne', - 'available_export' => 'Nombre de codes restant à exporté(s)' - ]; - } -} diff --git a/app/Http/Requests/Fo/Customers/CreateAccountRequest.php b/app/Http/Requests/Fo/Customers/CreateAccountRequest.php new file mode 100644 index 0000000..cf4bae9 --- /dev/null +++ b/app/Http/Requests/Fo/Customers/CreateAccountRequest.php @@ -0,0 +1,123 @@ +check(); + } + + /** + * Prepare the data for validation. + * + * @return void + */ + public function prepareForValidation() + { + $this->merge([ + 'phone' => $this->input('phone'), + 'opt_in' => $this->boolean('opt_in'), + 'ok_cgv' => $this->boolean('ok_cgv') + ]); + } + + /** + * Get the validation rules that apply to the request. + * + * @return array + */ + public function rules() + { + return [ + 'lastname' => 'required|string|max:255', + 'firstname' => 'required|string|max:255', + 'phone' => 'nullable|max:255|phone:FR', + 'address' => 'required|string|min:1|max:255', + 'address2' => 'nullable|string|min:1|max:255', + 'postal_code' => 'required|string|min:1|postal_code:FR', + 'city' => 'required|string|min:2|max:255', + 'birth_date' => ['required', new IsAdult(trans('Vous devez être majeur pour vous inscrire.'))], + 'country' => [ + 'required', new EnumIsValidRule(Country::class), + Rule::in(Country::getValidCountries()) + ], + 'email' => [ + 'required', 'email:rfc,dns,spoof', 'max:255', + // * Does email already exists in CRM ? + // phpcs:ignore Generic.CodeAnalysis.UnusedFunctionParameter.FoundInExtendedClassBeforeLastUsed + function (string $attribute, $value, \Closure $fail) { + if (CrmCustomer::findWithEmail(\strval($value))) { + $fail('Un compte existe déjà avec cette adresse.'); + } + }, + 'unique:customers,email', + ], + 'password' => [ + 'required', 'confirmed', Password::min(8)->mixedCase() + ->numbers()->symbols()->uncompromised() + ], + 'ok_cgv' => 'accepted', + 'opt_in' => 'required|boolean', + ]; + } + + /** + * Get custom attributes for validator errors. + * + * @return array + */ + public function attributes() + { + return [ + 'lastname' => trans('validation.attributes.first_name'), + 'firstname' => trans('validation.attributes.first_name'), + 'phone' => trans('validation.attributes.phone'), + 'address' => trans('validation.attributes.line_address_1'), + 'address2' => trans('validation.attributes.line_address_2'), + 'country' => trans('validation.attributes.country'), + 'postal_code' => trans('validation.attributes.postal_code'), + 'city' => trans('validation.attributes.city'), + 'birth_date' => trans('validation.attributes.date_of_birth'), + 'email' => trans('validation.attributes.email'), + 'password' => trans('validation.attributes.password'), + 'password_confirmation' => trans('validation.attributes.password_confirmation'), + 'ok_cgv' => trans('conditions d\'utilisation'), + 'opt_in' => trans('newsletter'), + ]; + } + + /** + * Get custom messages for validator errors. + * + * @return array + */ + public function messages() + { + return [ + 'postal_code' => trans('validation.postal_code', [ + 'countries' => \implode(', ', Country::getValidCountriesLabel()), 'examples' => 72000 + ]), + 'phone.phone' => trans('validation.phone', [ + 'countries' => \implode(', ', Country::getValidCountriesLabel()) + ]), + 'email.unique' => trans('Un compte existe déjà avec cette adresse.'), + 'ok_cgv.accepted' => trans('Vous devez accepter les conditions d\'utilisation du site pour continuer.') + ]; + } +} diff --git a/app/Http/Requests/Fo/Customers/VerifyInformationsRequest.php b/app/Http/Requests/Fo/Customers/VerifyInformationsRequest.php new file mode 100644 index 0000000..73680f5 --- /dev/null +++ b/app/Http/Requests/Fo/Customers/VerifyInformationsRequest.php @@ -0,0 +1,40 @@ +check(); + } + + /** + * Get the validation rules that apply to the request. + * + * @return array|string> + */ + public function rules(): array + { + return Arr::only(parent::rules(), [ + 'lastname', + 'firstname', + 'phone', + 'address', + 'address2', + 'postal_code', + 'city', + 'birth_date', + 'country', + 'opt_in', + 'ok_cgv', + ]); + } +} diff --git a/app/Http/Requests/Fo/ParticipateRequest.php b/app/Http/Requests/Fo/ParticipateRequest.php new file mode 100644 index 0000000..7dc2297 --- /dev/null +++ b/app/Http/Requests/Fo/ParticipateRequest.php @@ -0,0 +1,170 @@ +user(); + // * Use rate limiter to prevent brute force sticker code + if (RateLimiter::tooManyAttempts("participate:{$customer->id}", $perMinute = 5)) { + return false; + } + RateLimiter::hit("participate:{$customer->id}"); + return Gate::check('participate', Participation::class); + } + + /** + * Prepare the data for validation. + * + * @return void + */ + protected function prepareForValidation(): void + { + try { + $this->merge([ + 'unique_code' => Code::query()->where('id', Code::serialToInt( + Str::upper(\strval($this->input('unique_code'))) + ))->first() ?? false, + ]); + } catch (SerialCasterException) { + // * Provoquer l'affichage code incorrect. + $this->merge([ + 'unique_code' => false, + ]); + } finally { + $this->merge([ + 'ean_code' => (string)$this->string('ean_code')->padLeft(13, '0'), + 'game_rules' => $this->boolean('game_rules') + ]); + } + + /** @var \App\Models\Settings */ + $settings = app(Settings::class); + + // ? Does the game use EAN Codes ? + if ($settings->use_ean_codes) { + /** + * * Check si les codes ean sont utilisés, auquel cas + * * on test celui envoyé pour savoir s'il est correct. + * Modif demande vincent : + * Tester code ean existe avec 13, puis 8 puis 7 chars + * Si le code EAN est trouvé dans la liste, alors on prend l'objet correspondant, + * sinon on prend le premier objet qui contient les 7 1er chiffres (cas des EAN pds) + * + * Dans la base chaque code ean doit être rentré dans sa valeur absolue + * càd que les code ean 8 sont de longueur 8, 7 de longueur7 et 13 de longueur 13. + */ + $this->merge([ + // * Union pour faire des recherches séparée en une seule requête. + // ! ean_code is already str_padded to 13 + 'product' => Product::query()->where('ean_code', $this->post('ean_code')) + ->union(Product::query()->where('ean_code', Str::limit($this->post('ean_code'), 8, ''))) + ->union(Product::query()->where('ean_code', Str::limit($this->post('ean_code'), 7, ''))) + ->first() + ]); + } //end if + } + + /** + * Get the validation rules that apply to the request. + * + * @return array + */ + public function rules(): array + { + /** @var \App\Models\Settings */ + $settings = app(Settings::class); + + $rules = [ + 'game_rules' => 'required|boolean|accepted', + 'unique_code' => [ + 'required', + // phpcs:ignore Generic.CodeAnalysis.UnusedFunctionParameter.FoundInExtendedClassBeforeLastUsed + function (string $attribute, $value, callable $fail) use ($settings) { + // ? Le Code unique est resolved ? + if ($value === false or !\is_object($value) or \get_class($value) !== Code::class) { + $fail(trans('Code unique incorrect, veuillez réessayer.')); + return; + } + /** @var \App\Models\Code $value */ + + /** @var \App\Models\Customer */ + $customer = auth('frontend')->user(); + + // * Check si l'utilisateur n'a pas déjà utilisé ce code. + $query = Participation::query() + ->whereHas('code', fn (Builder $q) => $q->where('id', $value->id)) + ->whereHas('customer', fn (Builder $q) => $q->where('id', $customer->id)); + // ! Une seule participation avec un code donné par joueur + if ($query->exists()) { + $fail(trans('Vous avez déjà utilisé ce code unique.')); + return; + } + + // * Gestion du nombre d'utilisation d'un code. + // ? Le code unique à été trop utilisé ? + if ($value->has_been_used_too_many_times) { + // * Ne pas laisser d'indices, message générique + $fail(trans('Code unique incorrect, veuillez réessayer.')); + return; + } + } + ] + ]; + + + // ? Does the game use EAN Codes ? + if ($settings->use_ean_codes) { + $rules = \array_merge($rules, ['ean_code' => [ + 'required', + // phpcs:ignore Generic.CodeAnalysis.UnusedFunctionParameter.FoundInExtendedClassBeforeLastUsed + function ($attribute, $value, $fail) { + // phpcs:enable + /** @var \App\Models\Produt|mixed */ + $product = $this->input('product'); + if ( + empty($product) or !is_object($product) or + !($product instanceof Model) or !$product->exists + ) { + $fail(trans('Le code barre entré est incorrect, veuillez réessayer.')); + } + } + ]]); + } + return $rules; + } + + /** + * Get custom attributes for validator errors. + * + * @return array + */ + public function attributes(): array + { + return [ + 'unique_code' => \trans('validation.custom.unique_code'), + 'ean_code' => \trans('validation.custom.ean_code'), + 'game_rules' => \trans('validation.custom.game_rules'), + ]; + } +} diff --git a/app/Http/Requests/Fo/SubmitWinningProofRequest.php b/app/Http/Requests/Fo/SubmitWinningProofRequest.php new file mode 100644 index 0000000..fc56796 --- /dev/null +++ b/app/Http/Requests/Fo/SubmitWinningProofRequest.php @@ -0,0 +1,65 @@ +check() and + Gate::check('submitProof', $this->route('participation')); + } + + /** + * Get the validation rules that apply to the request. + * + * @return array|string> + */ + public function rules(): array + { + return \array_merge(Arr::only( + parent::rules(), + [ + 'lastname', + 'firstname', + 'address', + 'address2', + 'postal_code', + 'city', + 'country' + ] + ), [ + 'phone' => 'required|phone:FR', + // * Min 10 KB, Max 2MB + 'sticker' => 'required|mimes:jpeg,jpg,png,pdf|min:10|max:2048', + 'ticket' => 'required|mimes:jpeg,jpg,png,pdf|min:10|max:2048', + 'barcode' => 'required|mimes:jpeg,jpg,png,pdf|min:10|max:2048', + ]); + } + + /** + * Get custom attributes for validator errors. + * + * @return array + */ + public function attributes(): array + { + return \array_merge( + parent::attributes(), + [ + 'sticker' => trans('validation.custom.sticker'), + 'ticket' => trans('validation.custom.ticket'), + 'barcode' => trans('validation.custom.barcode'), + ] + ); + } +} diff --git a/app/Http/Requests/GenerateCodesRequest.php b/app/Http/Requests/GenerateCodesRequest.php deleted file mode 100644 index 9677399..0000000 --- a/app/Http/Requests/GenerateCodesRequest.php +++ /dev/null @@ -1,32 +0,0 @@ -check() and auth()->user()->role === 1; - } - - /** - * Get the validation rules that apply to the request. - * - * @return array - */ - public function rules() - { - return [ - 'quantity' => 'required|integer|min:1', - 'code_length' => 'required|integer|min:1', - ]; - } -} diff --git a/app/Http/Requests/ParticipateRequest.php b/app/Http/Requests/ParticipateRequest.php deleted file mode 100644 index d65a3c1..0000000 --- a/app/Http/Requests/ParticipateRequest.php +++ /dev/null @@ -1,162 +0,0 @@ -check(); - } - - /** - * Prepare the data for validation. - * - * @return void - */ - protected function prepareForValidation() - { - /** - * * Check si les codes ean sont utilisés, auquel cas - * * on test celui envoyé pour savoir s'il est correct. - * Modif demande vincent : - * Tester code ean existe avec 13, puis 8 puis 7 chars - * Si le code EAN est trouvé dans la liste, alors on prend l'objet correspondant, - * sinon on prend le premier objet qui contient les 7 1er chiffres (cas des EAN pds) - * - * Dans la base chaque code ean doit être rentré dans sa valeur absolue - * càd que les code ean 8 sont de longueur 8, 7 de longueur7 et 13 de longueur 13. - */ - - if (app(Settings::class)->use_ean_codes) { - // ! We need to validate ean is 13 before resolving ean code. - /** @throws \Illuminate\Validation\ValidationException */ - Validator::validate($this->all(), [ - 'code_ean' => 'required|digits:13' - ], $this->attributes()); - - // * Union pour faire des recherches séparée en une seule requête. - /** @var \App\Models\CodeEan|null */ - $codeEan = CodeEan::where('code', $this->code_ean) - ->union(CodeEan::where('code', Str::limit($this->code_ean, 8, ''))) - ->union(CodeEan::where('code', Str::limit($this->code_ean, 7, ''))) - ->first() ?? false; - - $this->merge(['code_ean' => $codeEan]); - } //end if - try { - $this->merge([ - 'serial' => $this->code, - 'code' => Code::whereId(Code::serialToInt(Str::upper(\strval($this->code))))->first() ?? false, - ]); - } catch (SerialCasterException $e) { - // * Provoquer l'affichage code incorrect. - $this->merge([ - 'code' => false, - ]); - } finally { - $this->merge([ - 'accept_rules' => $this->accept_rules ? true : false - ]); - } - } - - /** - * Get the validation rules that apply to the request. - * - * @return array - */ - public function rules() - { - $rules = [ - 'accept_rules' => 'required|boolean|accepted', - 'code' => [ - 'required', - // phpcs:ignore Generic.CodeAnalysis.UnusedFunctionParameter.FoundInExtendedClassBeforeLastUsed - function ($attribute, $value, $fail) { - if ( - $value === false or - !\is_object($value) or - \get_class($value) !== Code::class - ) { - $fail('Code unique incorrect, veuillez réessayer.'); - return false; - } elseif ($value->code_used === 1) { - $fail('Ce code unique n\'est plus utilisable.'); - return false; - } - - // * Check si l'utilisateur n'a pas déjà utilisé ce code. - $query = Participation::where([ - ['code_unique_id', $this->code->id], - ['user_id', auth()->user()->id] - ]); - if ($query->exists()) { - $fail('Vous avez déjà utilisé ce code unique.'); - } - - /** @var \App\Models\Settings $settings */ - $settings = app(Settings::class); - - $codeNbUsage = Participation::where('code_unique_id', $this->code->id) - ->count(); - - // * Gestion du nombre d'utilisation d'un code. - if ($codeNbUsage >= $settings->nb_unique_code_use) { - $this->code->code_used = 1; - return back()->withErrors("Ce code unique n'est plus utilisable."); - } else { - if ($codeNbUsage + 1 >= $settings->nb_unique_code_use) { - $this->code->code_used = 1; - } - } - $this->code->saveOrFail(); - } - ] - ]; - - if (app(Settings::class)->use_ean_codes) { - $rules = \array_merge($rules, [ - 'code_ean' => [ - 'required', - // phpcs:ignore Generic.CodeAnalysis.UnusedFunctionParameter.FoundInExtendedClassBeforeLastUsed - function ($attribute, $value, $fail) { - if (!\is_object($value) or \get_class($value) !== CodeEan::class) { - $fail('Le code barre entré est incorrect, veuillez réessayer.'); - } - } - ] - - ]); - } - return $rules; - } - - /** - * Get custom attributes for validator errors. - * - * @return array - */ - public function attributes() - { - return [ - 'code_ean' => \trans('code barre'), - 'accept_rules' => \trans('règlements du jeu'), - 'code' => \trans('code unique'), - ]; - } -} diff --git a/app/Http/Requests/StoreProductRequest.php b/app/Http/Requests/StoreProductRequest.php deleted file mode 100644 index c5fff2a..0000000 --- a/app/Http/Requests/StoreProductRequest.php +++ /dev/null @@ -1,41 +0,0 @@ -check(); - } - - /** - * Get the validation rules that apply to the request. - * - * @return array - */ - public function rules() - { - return [ - 'name' => 'required|string|min:2|max:255', - 'code_ean' => 'required|numeric', - 'picture' => [ - 'image', - 'mimes:jpeg,png,jpg', - 'max:2048', - Rule::dimensions() - ->maxWidth(config('theme.product_image_maxwidth')) - ->maxHeight(config('theme.product_image_maxheight')) - ], - 'range_id' => 'exists:ranges,id' - ]; - } -} diff --git a/app/Http/Requests/StoreRangeRequest.php b/app/Http/Requests/StoreRangeRequest.php deleted file mode 100644 index 921aa63..0000000 --- a/app/Http/Requests/StoreRangeRequest.php +++ /dev/null @@ -1,39 +0,0 @@ -check(); - } - - /** - * Get the validation rules that apply to the request. - * - * @return array - */ - public function rules() - { - return [ - 'name' => 'required|string|min:2|max:255', - 'picture' => [ - 'image', - 'mimes:jpeg,png,jpg', - 'max:2048', - Rule::dimensions() - ->maxWidth(config('theme.product_image_maxwidth')) - ->maxHeight(config('theme.product_image_maxheight')) - ], - ]; - } -} diff --git a/app/Http/Requests/UpdateProductRequest.php b/app/Http/Requests/UpdateProductRequest.php deleted file mode 100644 index ebd8745..0000000 --- a/app/Http/Requests/UpdateProductRequest.php +++ /dev/null @@ -1,41 +0,0 @@ -check(); - } - - /** - * Get the validation rules that apply to the request. - * - * @return array - */ - public function rules() - { - return [ - 'name' => 'required|string|min:2|max:255', - 'code_ean' => 'required|numeric', - 'picture' => [ - 'image', - 'mimes:jpeg,png,jpg', - 'max:2048', - Rule::dimensions() - ->maxWidth(config('theme.product_image_maxwidth')) - ->maxHeight(config('theme.product_image_maxheight')) - ], - 'range_id' => 'exists:ranges,id' - ]; - } -} diff --git a/app/Http/Requests/UpdateRangeRequest.php b/app/Http/Requests/UpdateRangeRequest.php deleted file mode 100644 index 5398e11..0000000 --- a/app/Http/Requests/UpdateRangeRequest.php +++ /dev/null @@ -1,39 +0,0 @@ -check(); - } - - /** - * Get the validation rules that apply to the request. - * - * @return array - */ - public function rules() - { - return [ - 'name' => 'required|string|min:2|max:255', - 'picture' => [ - 'image', - 'mimes:jpeg,png,jpg', - 'max:2048', - Rule::dimensions() - ->maxWidth(config('theme.product_image_maxwidth')) - ->maxHeight(config('theme.product_image_maxheight')) - ], - ]; - } -} diff --git a/app/Jobs/DeleteOlds/DeleteOldCustomers.php b/app/Jobs/DeleteOlds/DeleteOldCustomers.php new file mode 100644 index 0000000..8be5666 --- /dev/null +++ b/app/Jobs/DeleteOlds/DeleteOldCustomers.php @@ -0,0 +1,23 @@ +withTrashed()->where('last_connection', '<=', now()->subMonths(36))->forceDelete(); + } +} diff --git a/app/Jobs/ProcessExportCodesUniques.php b/app/Jobs/ProcessExportCodesUniques.php index d302359..cc86c3f 100644 --- a/app/Jobs/ProcessExportCodesUniques.php +++ b/app/Jobs/ProcessExportCodesUniques.php @@ -2,19 +2,20 @@ namespace App\Jobs; -use App\Mail\ExportCodesUniques; -use App\Mail\JobFailed; +use App\Mail\Jobs\CodeExportSucceed; +use App\Mail\Jobs\JobFailed; use App\Models\Code; -use Exception; use Illuminate\Bus\Queueable; +use Illuminate\Contracts\Queue\ShouldBeUnique; use Illuminate\Contracts\Queue\ShouldQueue; use Illuminate\Foundation\Bus\Dispatchable; use Illuminate\Queue\InteractsWithQueue; use Illuminate\Queue\SerializesModels; +use Illuminate\Support\Facades\DB; use Illuminate\Support\Facades\File; use Illuminate\Support\Facades\Mail; -class ProcessExportCodesUniques implements ShouldQueue +class ProcessExportCodesUniques implements ShouldQueue, ShouldBeUnique { use Dispatchable; use InteractsWithQueue; @@ -30,32 +31,12 @@ class ProcessExportCodesUniques implements ShouldQueue */ public $timeout = 7200; - /** - * Nombre de codes par fichiers. - * @var integer - */ - private $nbCodeFic; - - /** - * Nombre total de codes à exporter. - * - * @var integer - */ - private $nbCodeTot; - - /** - * Nombre de codes par ligne. - * - * @var integer - */ - private $nbCodeLigne; - /** * The export file name * * @var string */ - private $exportFileName = null; + protected $exportFileName = null; /** * Create a new job instance. @@ -65,11 +46,11 @@ class ProcessExportCodesUniques implements ShouldQueue * @param integer $nbCodeLigne Nombre de codes par ligne. * @return void */ - public function __construct(int $nbCodeFic, int $nbCodeTot, int $nbCodeLigne) - { - $this->nbCodeFic = $nbCodeFic; - $this->nbCodeTot = $nbCodeTot; - $this->nbCodeLigne = $nbCodeLigne; + public function __construct( + protected int $nbCodeFic, + protected int $nbCodeTot, + protected int $nbCodeLigne + ) { } /** @@ -79,47 +60,54 @@ class ProcessExportCodesUniques implements ShouldQueue */ public function handle() { + DB::transaction(function () { + $this->exportFileName = sprintf( + 'CodesUniques_%s', + date('dmY_His') + ); - $this->exportFileName = sprintf( - 'CodesUniques_%s', - date('dmY_His') - ); + $exportFilePath = storage_path(sprintf('export_codes_uniques/%s.zip', $this->exportFileName)); - $lastExportedCodeId = Code::whereCodeExported(true) - ->orderBy('id', 'desc')->first()->id ?? null; + try { + $lastExportedCodeId = Code::query() + ->where('code_exported', true) + ->orderBy('id', 'desc')->first()->id ?? null; - $filesPath = $this->generateCsvFiles($lastExportedCodeId); + $filesPath = $this->generateCsvFiles($lastExportedCodeId); - // * Compression des fichiers. - $zip = new \ZipArchive(); - if ( - $zip->open( - storage_path(sprintf('export_codes_uniques/%s.zip', $this->exportFileName)), - \ZipArchive::CREATE - ) === true - ) { - foreach ($filesPath as $filePath) { - if (File::exists($filePath)) { - $zip->addFile($filePath, \pathinfo($filePath, \PATHINFO_BASENAME)); + // * Compression des fichiers. + $zip = new \ZipArchive(); + if ($zip->open($exportFilePath, \ZipArchive::CREATE) === true) { + foreach ($filesPath as $filePath) { + if (File::exists($filePath)) { + $zip->addFile($filePath, \pathinfo($filePath, \PATHINFO_BASENAME)); + } + } + $zip->close(); } - } - $zip->close(); - } - // * On vide le dossier temporaire des fichiers csv. - foreach ($filesPath as $filePath) { - if (File::exists($filePath)) { - File::delete($filePath); - } - } + // * On vide le dossier temporaire des fichiers csv. + foreach ($filesPath as $filePath) { + if (File::exists($filePath)) { + File::delete($filePath); + } + } - // * Envoi de mail à MAIL_ADMIN avec le nom du ZIP "CodesUniques_". date('dmY_His') .".zip". - Mail::to(config('mail.MAIL_ADMIN')) - ->send(new ExportCodesUniques( - $this->nbCodeFic, - $this->nbCodeTot, - $this->nbCodeLigne - )); + // * Envoi de mail à MAIL_ADMIN avec le nom du ZIP "CodesUniques_". date('dmY_His') .".zip". + Mail::to(config('mail.admin'))->send(new CodeExportSucceed( + $this->nbCodeFic, + $this->nbCodeTot, + $this->nbCodeLigne, + $exportFilePath + )); + } catch (\Exception $e) { + // * Clear exported file in case of Failure. + if (File::exists($exportFilePath)) { + File::delete($exportFilePath); + } + throw $e; + } //end try + }); } /** @@ -127,9 +115,11 @@ class ProcessExportCodesUniques implements ShouldQueue * * @param integer|null $lastExportedCodeId * @return array Array of temp files + * @phpcs:disable Generic.Metrics.CyclomaticComplexity.TooHigh */ private function generateCsvFiles($lastExportedCodeId = null): array { + // phpcs:enable $outPaths = []; $totalExportedCodes = 0; $currentFilename = 1; @@ -182,7 +172,7 @@ class ProcessExportCodesUniques implements ShouldQueue } // ? Have we reached pagination limit for mass saving ? if (count($exportedCodesId) === $paginate) { - Code::whereIn('id', $exportedCodesId)->update(['code_exported' => 1]); + Code::query()->whereIn('id', $exportedCodesId)->update(['code_exported' => true]); $exportedCodesId = []; } } //end if @@ -190,23 +180,25 @@ class ProcessExportCodesUniques implements ShouldQueue // ? Are there exported codes to save ? if (count($exportedCodesId)) { - Code::whereIn('id', $exportedCodesId)->update(['code_exported' => 1]); + Code::query()->whereIn('id', $exportedCodesId)->update(['code_exported' => true]); } return $outPaths; } + /** * In case of job failure * - * @param Exception $exception + * @param \Throwable $exception * @return void */ - public function failed(Exception $exception) + public function failed(\Throwable $exception) { - Mail::to(config('mail.MAIL_ADMIN')) - ->send(new JobFailed("ProcessExportCodeUnique", [ - 'message' => $exception->getMessage(), - 'trace' => $exception->getTraceAsString() - ])); + Mail::to(config('mail.admin'))->send( + new JobFailed(__CLASS__, [ + 'message' => $exception->getMessage(), + 'trace' => $exception->getTraceAsString() + ]) + ); } } diff --git a/app/Jobs/ProcessUniqueCode.php b/app/Jobs/ProcessUniqueCode.php index bbf4eeb..3997776 100644 --- a/app/Jobs/ProcessUniqueCode.php +++ b/app/Jobs/ProcessUniqueCode.php @@ -2,20 +2,21 @@ namespace App\Jobs; -use App\Mail\CodeGenerationEnd; -use App\Mail\JobFailed; +use App\Mail\Jobs\CodeGenerationSucceed; +use App\Mail\Jobs\JobFailed; use App\Models\Code; use App\Models\Settings; -use Exception; use Illuminate\Bus\Queueable; +use Illuminate\Contracts\Queue\ShouldBeUnique; use Illuminate\Contracts\Queue\ShouldQueue; use Illuminate\Foundation\Bus\Dispatchable; use Illuminate\Queue\InteractsWithQueue; +use Illuminate\Queue\Middleware\WithoutOverlapping; use Illuminate\Queue\SerializesModels; use Illuminate\Support\Facades\DB; use Illuminate\Support\Facades\Mail; -class ProcessUniqueCode implements ShouldQueue +class ProcessUniqueCode implements ShouldQueue, ShouldBeUnique { use Dispatchable; use InteractsWithQueue; @@ -31,99 +32,106 @@ class ProcessUniqueCode implements ShouldQueue */ public $timeout = 7200; - /** - * Quantity of code to generate - * - * @var integer - */ - private $quantity; - - /** - * Length of code to generate - * - * @var integer - */ - private $length; - /** * Create a new job instance. * - * @param integer $quantity - * @param integer $length + * @param integer $amount Amount of code to generate. + * @param integer $length Length of each code to generate. * @return void */ - public function __construct(int $quantity, int $length) + public function __construct(protected int $amount, protected int $length) { - $this->quantity = $quantity; - $this->length = $length; } /** * Execute the job. - * TODO: Mettre tout ce bordel dans une transaction quand les serveur de leurs morts auront été mis à jour Uu. * * @return void */ public function handle() { - /** @var \App\Models\Settings $settings */ - $settings = app(Settings::class); + DB::transaction(function () { + // ! Le premier code commence à 1 + $last_id = (Code::query()->max('id') ?? 0) + 1; - $maxSQLPlaceholders = 65535; + /** @var \App\Models\Settings $settings */ + $settings = app(Settings::class); - $insertColumns = collect(DB::getSchemaBuilder() - ->getColumnListing((new Code())->getTable())) - ->filter(function ($name) { - // * Ignorer les colonnes avec valeurs par défaut sur la table. - return !in_array($name, ['id', 'code_used', 'code_exported']); - })->count(); + $maxSQLPlaceholders = 65535; - /** - * Nombre d'insertions max sur un seule requète - * @var integer $perPage - */ - $perPage = $maxSQLPlaceholders / $insertColumns; + $insertColumns = collect(DB::getSchemaBuilder() + ->getColumnListing((new Code())->getTable())) + ->filter(function ($name) { + // * Ignorer les colonnes avec valeurs par défaut sur la table. + return !in_array($name, ['id', 'code_exported']); + })->count() + 1; - /** - * Nombre de page totale à insérer. - * @var integer $totalPages - */ - $totalPages = \ceil($this->quantity / $perPage); + /** + * Nombre d'insertions max sur un seule requète + * + * @var integer $perPage + */ + $perPage = \floor($maxSQLPlaceholders / $insertColumns); - $totalGeneratedInserts = 0; + /** + * Nombre de page totale à insérer. + * + * @var integer $totalPages + */ + $totalPages = \ceil($this->amount / $perPage); - for ($currentPage = 1; $currentPage <= $totalPages; $currentPage++) { - $inserts = []; - $insertToGenerate = min($perPage, $this->quantity - $totalGeneratedInserts); - do { - $inserts[] = [ - 'date_creation' => now()->format('Y-m-d'), - ]; - } while ($totalGeneratedInserts < $this->quantity and --$insertToGenerate); + $totalGeneratedInserts = 0; - // * Mass insert - Code::insert($inserts); + for ($currentPage = 1; $currentPage <= $totalPages; $currentPage++) { + $inserts = []; + $insertToGenerate = min($perPage, $this->amount - $totalGeneratedInserts); + do { + $inserts[] = [ + 'id' => $last_id++, + 'date_creation' => now()->format('Y-m-d'), + ]; + } while (($totalGeneratedInserts < $this->amount) && --$insertToGenerate); - $totalGeneratedInserts += count($inserts); - } + // * Mass insert + Code::query()->insert($inserts); - // * Fin de la génération. - Mail::to(config('mail.MAIL_ADMIN')) - ->send(new CodeGenerationEnd($this->quantity, $settings->name)); + $totalGeneratedInserts += count($inserts); + } + + // * Fin de la génération. + Mail::to(config('mail.admin'))->send(new CodeGenerationSucceed( + $this->amount, + $settings->name + )); + }); } /** * In case of job failure * - * @param Exception $exception + * @param \Throwable $exception * @return void */ - public function failed(Exception $exception) + public function failed(\Throwable $exception) { - Mail::to(config('mail.MAIL_ADMIN')) - ->send(new JobFailed("ProcessUniqueCode", [ - 'message' => $exception->getMessage(), - 'trace' => $exception->getTraceAsString() - ])); + Mail::to(config('mail.admin'))->send( + new JobFailed(__CLASS__, [ + 'message' => $exception->getMessage(), + 'trace' => $exception->getTraceAsString() + ]) + ); + } + + /** + * Get the middleware the job should pass through. + * + * @return array + */ + public function middleware(): array + { + return [ + (new WithoutOverlapping('code_generation')) + ->releaseAfter(60) + ]; } } diff --git a/app/Lib/Discount.php b/app/Lib/Discount.php new file mode 100644 index 0000000..0f23a6d --- /dev/null +++ b/app/Lib/Discount.php @@ -0,0 +1,147 @@ + + */ + private static array $propertiesList = [ + 'web_coupon_identifiant', + 'percentage', + 'face_value', + 'valid_on', + 'picture', + ]; + + /** + * Get property + * + * @param string $name + * @return mixed + * @throws \TypeError If prop is undefined. + */ + public function __get(string $name) + { + if ( + in_array($name, self::$propertiesList) + ) { + return $this->{$name}; + } + throw new \TypeError("undefined property {$name}"); + } + + /** + * Make and instance + * + * @param integer $web_coupon_identifiant EAN 13 format (Mais ne représente pas un EAN 13), + * Format utilisé dans MesBr. + * @param integer $percentage Pourcentage de chance de gagner le lot nombre de 1 à 100. + * @param integer $face_value Valeur faciale en centimes. + * @param string $valid_on Text valable sur.. (duplicat de ce qui est inscrit dans MesBr) + * Pour affichage sur la page de gain est dans le mail. + * @param string $picture Image locale du Coupon. + * + * @return \App\Lib\Discount + * @throws \RuntimeException If $type or $data is wrong. + */ + public static function make( + int $web_coupon_identifiant, + int $percentage, + int $face_value, + string $valid_on, + string $picture + ): self { + $ipTypeData = new self(); + $ipTypeData->web_coupon_identifiant = $web_coupon_identifiant; + $ipTypeData->percentage = $percentage; + $ipTypeData->face_value = $face_value; + $ipTypeData->valid_on = $valid_on; + $ipTypeData->picture = $picture; + self::assertIsInputTypeData($ipTypeData); + return $ipTypeData; + } + + /** + * Confirm $data is of type InputTypeData + * + * @param \App\Lib\Discount $data + * @return void + * @throws \RuntimeException If $data is wrong. + */ + public static function assertIsInputTypeData(Discount $data) + { + if (!\is_int($data->web_coupon_identifiant)) { + throw new \RuntimeException("InputTypeData 'web_coupon_identifiant' should be an integer"); + } + if (!\is_int($data->percentage)) { + throw new \RuntimeException("InputTypeData 'percentage' should be an integer"); + } + if (!\is_int($data->face_value)) { + throw new \RuntimeException("InputTypeData 'face_value' should be an integer"); + } + if (!\is_string($data->valid_on)) { + throw new \RuntimeException("InputTypeData 'valid_on' should be a string"); + } + if (!\is_string($data->picture)) { + throw new \RuntimeException("InputTypeData 'picture' should be a string"); + } + } + + // * TRANSFORMERS + + /** + * Get the instance as an array. + * + * @return array + */ + public function toArray(): array + { + return collect(Arr::mapWithKeys(self::$propertiesList, fn (string $property) => [ + $property => $this->{$property} + ]))->filter()->all(); + } + + /** + * Convert the object to its JSON representation. + * + * @param integer $options + * @return string + * @phpcs:disable Squiz.Commenting.FunctionComment.ScalarTypeHintMissing + */ + public function toJson($options = 0): string + { + // phpcs:enable + return \json_encode($this->jsonSerialize(), $options); + } + + /** + * Convert the object into something JSON serializable. + * + * @return array + */ + #[\ReturnTypeWillChange] + public function jsonSerialize() + { + return $this->toArray(); + } +} diff --git a/app/Lib/Helpers/CollectionHelper.php b/app/Lib/Helpers/CollectionHelper.php new file mode 100644 index 0000000..b9e9ecd --- /dev/null +++ b/app/Lib/Helpers/CollectionHelper.php @@ -0,0 +1,64 @@ +count(); + + return self::paginator($results->forPage($page, $pageSize), $total, $pageSize, $page, [ + 'path' => Paginator::resolveCurrentPath(), + 'pageName' => 'page', + ]); + } + + /** + * Create a new length-aware paginator instance. + * + * @param \Illuminate\Support\Collection $items + * @param integer $total + * @param integer $perPage + * @param integer $currentPage + * @param array $options + * @return \Illuminate\Pagination\LengthAwarePaginator + */ + protected static function paginator(Collection $items, int $total, int $perPage, int $currentPage, array $options) + { + return Container::getInstance()->makeWith(LengthAwarePaginator::class, [ + 'items' => $items, + 'total' => $total, + 'perPage' => $perPage, + 'currentPage' => $currentPage, + 'options' => $options + ]); + } +} diff --git a/app/Lib/Helpers/ExceptionsHelper.php b/app/Lib/Helpers/ExceptionsHelper.php new file mode 100644 index 0000000..4813275 --- /dev/null +++ b/app/Lib/Helpers/ExceptionsHelper.php @@ -0,0 +1,190 @@ +setModules([]); + $event->setOsContext(null); + + /** @var \Sentry\ExceptionDataBag[] */ + $exceptionBag = []; + foreach ($event->getExceptions() as $exceptionDataBag) { + $exceptionBag[] = self::getAnonymizedSentryException($exceptionDataBag); + } + $event->setExceptions($exceptionBag); + return $event; + } + + /** + * Anonimize Sentry Exception bag + * + * @param \Sentry\ExceptionDataBag $exceptionDataBag + * @return \Sentry\ExceptionDataBag + */ + private static function getAnonymizedSentryException( + \Sentry\ExceptionDataBag $exceptionDataBag + ): \Sentry\ExceptionDataBag { + $exceptionDataBag->setValue(self::getAnonymizedMessage($exceptionDataBag->getValue())); + if ($stackTrace = $exceptionDataBag->getStacktrace()) { + $exceptionDataBag->setStacktrace(self::getAnonymizedSentryStackTrace($stackTrace)); + } + return $exceptionDataBag; + } + + /** + * Anonymise sentry stacktrace + * + * @param \Sentry\Stacktrace $stackTrace + * @return \Sentry\Stacktrace + */ + private static function getAnonymizedSentryStackTrace(\Sentry\Stacktrace $stackTrace): \Sentry\Stacktrace + { + /** @var \Sentry\Frame[] */ + $frames = \array_reverse($stackTrace->getFrames(), true); + $i = \count($frames) - 1; + // * Remove all but keep first (index.php). + while ($i-- > 0) { + $stackTrace->removeFrame(count($stackTrace->getFrames()) - 1); + } + foreach ($frames as $index => $frame) { + $frame->setPostContext([]); + $frame->setPreContext([]); + $frame->setContextLine(''); + $frame->setVars(self::getAnonymizedSentryParams($frame->getVars())); + $stackTrace->addFrame($frame); + if ($index === 0) { + $stackTrace->removeFrame(count($stackTrace->getFrames()) - 1); + } + } + return $stackTrace; + } + + /** + * Get anonymized sentry params + * + * @param mixed[] $params + * @return string[] + */ + private static function getAnonymizedSentryParams(array $params): array + { + foreach ($params as &$param) { + $type = \strtolower(\gettype($param)); + if (\is_string($param)) { + $type = \explode(' ', \trim(strtolower($param)))[0] ?? null; + } + switch (true) { + case $type === 'lambda': + case $type === 'object': + continue 2; + case $type === 'array' and \is_array($param): + $param = sprintf('Array(%d)', \count($param)); + continue 2; + default: + if (\is_numeric($param)) { + $param = \ucfirst($type); + continue 2; + } + if (\is_string($param)) { + $param = sprintf('String(%d)', \strlen($param)); + continue 2; + } + } //end switch + } //end foreach + return $params; + } + + + /** + * Anonymize at least Sql queries + * + * @param string $message + * @return string + */ + public static function getAnonymizedMessage(string $message): string + { + $message = \preg_replace('/^(.*)( \(SQL:.*\))$/', '$1', $message) ?? $message; + if ($sqlPos = \strpos($message, 'to use near')) { + $message = \mb_strcut($message, 0, $sqlPos); + } + return $message; + } + + /** + * Anonymize stack trace + * + * @param \Throwable $e + * @return string + */ + public static function getAnonymizedStackTrace(\Throwable $e): string + { + $projectPath = \realpath(\sprintf('%s/../', \app_path())); + $traceStack = $e->getTrace(); + $traceStr = ''; + $maxStackStage = 0; + foreach ($traceStack as $stackStage => $stack) { + $maxStackStage = $stackStage; + $traceStr .= \sprintf( + '#%s %s(%d): ', + $stackStage, + str_replace($projectPath, '', $stack['file'] ?? ''), + $stack['line'] ?? '' + ); + if (isset($stack['class'])) { + $traceStr .= "{$stack['class']}->{$stack['function']}("; + if (isset($stack['args'])) { + $traceStr .= self::handleArgs($stack); + } + $traceStr .= ")\n"; + } elseif (isset($stack['function'])) { + $traceStr .= "{$stack['function']}("; + if (isset($stack['args'])) { + $traceStr .= self::handleArgs($stack); + } + $traceStr .= ")\n"; + } + } //end foreach + $maxStackStage++; + $traceStr .= "#$maxStackStage {main}"; + return $traceStr; + } + + /** + * Handle Args + * + * @param array $stack + * @return string + */ + public static function handleArgs(array $stack): string + { + $traceArgs = ''; + $argsCount = count($stack['args']); + for ($i = 0; $i < $argsCount; $i++) { + $type = \gettype($stack['args'][$i]); + switch ($type) { + case 'object': + $traceArgs .= sprintf('Object(%s)', \get_class($stack['args'][$i])); + break; + case 'array': + $traceArgs .= sprintf('Array(%d)', \count($stack['args'][$i])); + break; + case 'string': + $traceArgs .= sprintf('String(%d)', \strlen($stack['args'][$i])); + break; + default: + $traceArgs .= \gettype($stack['args'][$i]); + } + $traceArgs .= ($i !== ($argsCount - 1) ? ',' : ''); + } + return $traceArgs; + } +} diff --git a/app/Lib/Helpers/FileStorageHelper.php b/app/Lib/Helpers/FileStorageHelper.php new file mode 100644 index 0000000..40227bf --- /dev/null +++ b/app/Lib/Helpers/FileStorageHelper.php @@ -0,0 +1,468 @@ + + */ +class FileStorageHelper +{ + /** + * Remove all files from string attribute html that are stored in public + * + * @param string $publicStorageFilePath The file path from public directory. + * @return string The local storage path. + */ + public static function getFileFullPath(string $publicStorageFilePath): string + { + /** @var \Illuminate\Filesystem\FilesystemAdapter */ + $disk = Storage::disk('public'); + $path = ToolboxHelper::mbReplace('storage/', '', \ltrim(\urldecode($publicStorageFilePath), '/')); + return $disk->path($path); + } + + /** + * Destroy the file associate with the attribute. + * + * @param \Illuminate\Database\Eloquent\Model $model + * @param string $attribute + * @return void + */ + public static function removeFile(Model $model, string $attribute): void + { + $path = \ltrim(\urldecode($model->{$attribute}), '/'); + if (\strpos($path, 'storage') !== 0) { + return; + } + $path = ToolboxHelper::mbReplace('storage/', '', $path); + if (Storage::disk('public')->exists($path)) { + Storage::disk('public')->delete($path); + } + } + + /** + * Destroy the file associate with the attribute old value (before updated to DB). + * + * @param \Illuminate\Database\Eloquent\Model $model + * @param string $attribute + * @param boolean $onlyIfUpdated + * @return void + */ + public static function removeOldFile(Model $model, string $attribute, bool $onlyIfUpdated = true): void + { + // * Ignore If removal has to be done only if the field has changed and it actually hasnt. + if ($onlyIfUpdated and $model->{$attribute} === ToolboxHelper::getOriginal($model, $attribute)) { + return; + } + $originalPath = \ltrim(\urldecode(ToolboxHelper::getOriginal($model, $attribute)), '/'); + if (\strpos($originalPath, 'storage') !== 0) { + return; + } + $originalPath = ToolboxHelper::mbReplace('storage/', '', $originalPath); + if (Storage::disk('public')->exists($originalPath)) { + Storage::disk('public')->delete($originalPath); + } + } + + /** + * Store a file using optimized storage strategy + * + * You can use filename param to overload file name. + * + * @param \Illuminate\Database\Eloquent\Model $model The model that will hold the picture. + * @param \Illuminate\Http\UploadedFile|\SplFileInfo|string $file The file, will just return itself is string. + * @param boolean $slugify Force filename slugification. + * @param string|null $filename This string may be used to store the file. + * @param boolean $private To store the file in a private space. + * @return string + * @throws \RuntimeException If file copy fails. + * @phpcs:disable Generic.Metrics.CyclomaticComplexity.TooHigh + */ + public static function storeFile( + Model $model, + $file, + bool $slugify = false, + string $filename = null, + bool $private = false + ): string { + // phpcs:enable + $tableName = $model->getTable(); + if (\is_object($file) and $file instanceof \Illuminate\Http\UploadedFile) { + /** @var \Illuminate\Http\UploadedFile $file */ + $filename = $filename ?: $file->getClientOriginalName(); + $filename = $slugify ? self::slugifyFileName($filename) : $filename; + $newPath = self::prepareMoveFile($tableName, $filename, $private); + $newPath = str_replace(storage_path('app'), '', $newPath); + + if (!$private) { + // * Store public file. + $file->storePubliclyAs( + pathinfo($newPath, \PATHINFO_DIRNAME), + pathinfo($newPath, \PATHINFO_BASENAME) + ); + return 'storage' . str_replace('/public', '', $newPath); + } + + $file->storeAs( + pathinfo($newPath, \PATHINFO_DIRNAME), + pathinfo($newPath, \PATHINFO_BASENAME) + ); + + return str_replace('/private/', '', $newPath); + } //end if + if (\is_object($file) and $file instanceof \SplFileInfo) { + /** @var \SplFileInfo $file */ + $filename = $filename ?: $file->getBaseName(); + $filename = $slugify ? self::slugifyFileName($filename) : $filename; + $newPath = self::prepareMoveFile($tableName, $filename, $private); + if (!File::copy($file->getRealPath(), $newPath)) { + throw new \RuntimeException(sprintf( + 'Failed to copy file %s to %s', + $file->getRealPath(), + $newPath + )); + } + return $private ? + \ltrim(str_replace(\storage_path('app/private'), '/storage/app/private', $newPath), '/') : + \ltrim(str_replace(\storage_path('app/public'), '/storage', $newPath), '/'); + } + return strval($file); + } + + /** + * Store all files from string attribute html + * If oldHtmlString is passed, a diff is done with new and old files + * to keep only files that are present in the new html string. + * + * @param \Illuminate\Database\Eloquent\Model $model The model that will hold the picture. + * @param string $htmlString The html string to parse and modify files. + * @param string|null $oldHtmlString The old html string with alreadyParsed + * files using storeModelFilesFromHtml. + * @return string Html with files pathes replaced using storage strategy. + */ + public static function storeModelFilesFromHtml( + Model $model, + string $htmlString, + string $oldHtmlString = null + ): string { + \collect(self::onlyUploadedFilesWithFileManager(self::findFilesInHtml($htmlString))) + ->each(function (string $path) use ($model, &$htmlString) { + /** @var \Illuminate\Filesystem\FilesystemAdapter */ + $disk = Storage::disk('uploads'); + $fileInfo = new \SplFileInfo($disk->path( + ToolboxHelper::mbReplace('/uploads/', '', \urldecode($path)) + )); + $htmlString = ToolboxHelper::mbReplace( + $path, + '/' . self::storeFile($model, $fileInfo, true), + $htmlString + ); + }); + + if ($oldHtmlString) { + self::removeOldModelFilesFromHtml($htmlString, $oldHtmlString); + } + + return $htmlString; + } + + /** + * Remove all old files from string attribute html that are stored in public that + * are nove present anymore on new html string + * + * @param string $newHtmlString The html string with alreadyParsed files using storeModelFilesFromHtml. + * @param string $oldHtmlString The old html string with alreadyParsed files using storeModelFilesFromHtml. + * @return void + */ + public static function removeOldModelFilesFromHtml(string $newHtmlString, string $oldHtmlString): void + { + self::removeOldFiles(self::findFilesInHtml($oldHtmlString), self::findFilesInHtml($newHtmlString)); + } + + /** + * Remove all old files that are stored in public that + * are not present anymore on new array files + * + * @param string[] $oldFiles The old array files. + * @param string[] $newFiles The new array files. + * @return void + */ + public static function removeOldFiles(array $oldFiles, array $newFiles): void + { + $oldFiles = \collect(self::onlyUploadedFilesWithFileStorageHelper($oldFiles)); + $filesToKeep = \collect(self::onlyUploadedFilesWithFileStorageHelper($newFiles)); + $filesToRemove = $oldFiles->diff($filesToKeep); + $filesToRemove->each(function (string $publicStorageFilePath) { + $path = ToolboxHelper::mbReplace('storage/', '', \ltrim(\urldecode($publicStorageFilePath), '/')); + if (Storage::disk('public')->exists($path)) { + Storage::disk('public')->delete($path); + } + }); + } + + /** + * Remove all files from string attribute html that are stored in public + * + * @param string $htmlString The html string with alreadyParsed files using storeModelFilesFromHtml. + * @return void + */ + public static function removeModelFilesOfHtml(string $htmlString): void + { + $filesToRemove = \collect(self::onlyUploadedFilesWithFileStorageHelper(self::findFilesInHtml($htmlString))); + $filesToRemove->each(function (string $publicStorageFilePath) { + $path = ToolboxHelper::mbReplace('storage/', '', \ltrim(\urldecode($publicStorageFilePath), '/')); + if (Storage::disk('public')->exists($path)) { + Storage::disk('public')->delete($path); + } + }); + } + + /** + * Find all occurence of files in html + * + * @param string $html + * @return array + */ + public static function findFilesInHtml(string $html): array + { + preg_match_all('/href="(?P.*)"|src="(?P.*)"|url="(?P.*)"/Um', $html, $m, PREG_SET_ORDER, 0); + return collect($m)->pluck('href')->filter() + ->concat(collect($m)->pluck('url')->filter()) + ->concat(collect($m)->pluck('src')->filter()) + ->all(); + } + + /** + * Filter array to get only uploaded files that exists + * on disk 'public' (using helper storage strategy) + * + * @param array $urls + * @return array + */ + public static function onlyUploadedFilesWithFileStorageHelper(array $urls): array + { + return \collect($urls)->unique() + // * Filter to get only /uploads and using app url or empty + ->filter(function (string $url) { + $path = \parse_url($url, \PHP_URL_PATH); + return \strpos(\ltrim($path, '/'), 'storage/modelfiles') === 0; + })->filter(function (string $url) { + $path = \parse_url($url, \PHP_URL_PATH); + return Storage::disk('public') + ->exists(ToolboxHelper::mbReplace('storage/', '', \ltrim(\urldecode($path), '/'))); + })->all(); + } + + /** + * Filter array to get only uploaded files that exists + * on disk 'uploads' + * + * @param array $urls + * @return array + */ + private static function onlyUploadedFilesWithFileManager(array $urls): array + { + return \collect($urls)->unique() + // * Filter to get only /uploads and using app url or empty + ->filter(function (string $url) { + $host = \parse_url($url, \PHP_URL_HOST); + $path = \parse_url($url, \PHP_URL_PATH); + return ($host === \parse_url(config('app.url'), PHP_URL_HOST) or \is_null($host)) and + \strpos(\ltrim($path, '/'), 'uploads') === 0; + })->filter(function (string $url) { + $path = \parse_url($url, \PHP_URL_PATH); + return Storage::disk('uploads') + ->exists(ToolboxHelper::mbReplace('uploads/', '', \ltrim(\urldecode($path), '/'))); + })->all(); + } + + /** + * Prepare storage path and return + * the file full path + * + * @param string $tableName Model table name. + * @param string $filename The basename for the file. + * @param boolean $private May the file be stored in a private dir. + * @return string + */ + private static function prepareMoveFile(string $tableName, string $filename, bool $private = false): string + { + // * Security filter + $filename = \htmlspecialchars($filename); + // * Security filter + beautifier + $filename = self::sanitizeFileName($filename); + // * Slugify filename + $ext = \pathinfo($filename, \PATHINFO_EXTENSION); + $filename = Str::slug(\pathinfo($filename, \PATHINFO_FILENAME)) . + (\strlen($ext) ? ".{$ext}" : ''); + + $folderPath = self::getStoragePath( + $private ? 'app/private/modelfiles' : 'app/public/modelfiles', + $tableName, + $filename, + $private + ); + $filename = self::getFileUniqueName($folderPath, $filename); + return "{$folderPath}/{$filename}"; + } + + /** + * Create sub folders to store files using pattern + * storage/modelfiles/posts/10/04/19/5f + * year/month/day/md5 first 2 letters + * + * @param string $storage_dir + * @param string $table + * @param string $filename + * @return string + */ + private static function getStoragePath(string $storage_dir, string $table, string $filename): string + { + $filenameHash = \md5($filename); + $pathFolder = \storage_path(sprintf( + '%s/%s/%s/%s/%s/%s', + $storage_dir, + $table, + gmdate('y'), + gmdate('m'), + gmdate('d'), + substr($filenameHash, 0, 2) + )); + if (!File::exists($pathFolder)) { + File::makeDirectory($pathFolder, 0755, true); + } + return $pathFolder; + } + + /** + * Get unique filename if the path is already occupied + * + * @param string $folderPath + * @param string $filename + * @return string + * @throws \RuntimeException If a unique filename cannot be obtained. + */ + private static function getFileUniqueName(string $folderPath, string $filename): string + { + $attempts = 0; + $maxAttempts = 20; + while (File::exists("{$folderPath}/{$filename}")) { + if ($attempts++ >= $maxAttempts) { + throw new \RuntimeException("Failed to have a unique filename for {$folderPath}/{$filename}"); + } + $filename = pathinfo($filename, \PATHINFO_FILENAME) . + \uniqid('-') . '.' . + pathinfo($filename, \PATHINFO_EXTENSION); + } + return $filename; + } + + /** + * Slugify the filename + * + * @param string $filename + * @return string + */ + public static function slugifyFileName(string $filename): string + { + return Str::slug(pathinfo($filename, \PATHINFO_FILENAME)) . '.' . pathinfo($filename, \PATHINFO_EXTENSION); + } + + /** + * Sanitize File name for uploaded files + * + * @param string $filename The original uploaded client file name. + * @param boolean $beautify Beautify the filename. + * @return string The sanitized file name. + */ + public static function sanitizeFileName(string $filename, bool $beautify = true): string + { + // * Sanitize filename + // phpcs:disable Generic.Files.LineLength.TooLong + $filename = preg_replace( + '~ + [<>:"/\\\|?*]| # file system reserved https://en.wikipedia.org/wiki/Filename#Reserved_characters_and_words + [\x00-\x1F]| # control characters http://msdn.microsoft.com/en-us/library/windows/desktop/aa365247%28v=vs.85%29.aspx + [\x7F\xA0\xAD]| # non-printing characters DEL, NO-BREAK SPACE, SOFT HYPHEN + [#\[\]@!$&\'()+,;=]| # URI reserved https://tools.ietf.org/html/rfc3986#section-2.2 + [{}^\~`] # URL unsafe characters https://www.ietf.org/rfc/rfc1738.txt + ~x', + '-', + $filename + ); + // phpcs:enable + // * Avoids '.' '..' or '.hiddenFiles' . + $filename = Str::of($filename)->ltrim('.-'); + // * Optional beautification + if ($beautify) { + $filename = static::beautifyFilename($filename); + } + // * Maximize filename length to 255 bytes http://serverfault.com/a/9548/44086 + /** @var string */ + $extension = pathinfo($filename, \PATHINFO_EXTENSION); + /** @var string */ + $filename = pathinfo($filename, \PATHINFO_FILENAME); + + $encoding = mb_detect_encoding($filename); + $encoding = $encoding ? $encoding : null; + return \mb_strcut( + $filename, + 0, + 255 - (!empty($extension) ? strlen($extension) + 1 : 0), + $encoding + ) . (!empty($extension) ? ".$extension" : ''); + } + + /** + * Beautify a filename + * + * @param string $filename + * @return string + */ + private static function beautifyFilename(string $filename): string + { + // Reduce consecutive characters. + $filename = preg_replace([ + // * "file name.zip" becomes 'file-name.zip' + '/ +/', + // * "file___name.zip" becomes 'file-name.zip' + '/_+/', + // * "file---name.zip" becomes 'file-name.zip' + '/-+/' + ], '-', $filename); + $filename = preg_replace([ + // * "file--.--.-.--name.zip" becomes "file.name.zip" + '/-*\.-*/', + // * "file...name..zip" becomes "file.name.zip" + '/\.{2,}/' + ], '.', $filename); + // Lowercase for windows/unix interoperability http://support.microsoft.com/kb/100625 . + $filename = mb_strtolower($filename, mb_detect_encoding($filename)); + // * ".file-name.-" becomes "file-name" + $filename = trim($filename, '.-'); + return $filename; + } +} diff --git a/app/Lib/Helpers/ToolboxHelper.php b/app/Lib/Helpers/ToolboxHelper.php new file mode 100644 index 0000000..43770e1 --- /dev/null +++ b/app/Lib/Helpers/ToolboxHelper.php @@ -0,0 +1,585 @@ +run(); + if ($process->failed()) { + $code = $process->exitCode(); + $ouput = $process->errorOutput(); + if ($throw) { + throw new \RuntimeException("Failed to run command exit code {$code} with output \n{$ouput}"); + } + return false; + } + return $process->output(); + } + + /** + * Assert game is not oppened + * + * @return void + * @throws \RuntimeException If game has started. + */ + public static function assertGameIsNotOppened(): void + { + /** @var \App\Models\Settings */ + $settings = app(Settings::class); + if ($settings->game_is_open) { + throw new \RuntimeException('Cannot delete prize while game is oppened'); + } + } + /** + * @param array $array1 + * @param array $array2 + * + * @return array + */ + public static function arrayMergeRecursiveDistinct(array &$array1, array &$array2): array + { + $merged = $array1; + foreach ($array2 as $key => &$value) { + if (is_array($value) && isset($merged[$key]) && is_array($merged[$key])) { + $merged[$key] = self::arrayMergeRecursiveDistinct($merged[$key], $value); + } else { + $merged[$key] = $value; + } + } + + return $merged; + } + + /** + * Validate recaptcha + * + * @param \Illuminate\Http\Request $request + * @param boolean $isV3 + * @return void + */ + public static function validateRecaptcha(Request $request, bool $isV3 = true) + { + Validator::validate($request->all(), [ + 'g-recaptcha-response' => [ + 'required', 'string', + // phpcs:ignore Generic.CodeAnalysis.UnusedFunctionParameter.FoundAfterLastUsed, Generic.CodeAnalysis.UnusedFunctionParameter.FoundBeforeLastUsed + function ($attribute, $value, $fail) use ($isV3) { + try { + $response = Http::asForm()->post('https://www.google.com/recaptcha/api/siteverify', [ + 'secret' => config('services.google.recaptcha.private'), + 'response' => \strval($value), + 'remoteip' => app('clientIp') + ]); + if ($e = $response->toException()) { + throw $e; + } + if ($isV3) { + if ( + !$response->json('success') or + !$response->json('challenge_ts') or + Carbon::parse($response->json('challenge_ts'))->lessThan(\now('utc')->subMinutes(5)) or + $response->json('hostname') !== \parse_url(config('app.url'), \PHP_URL_HOST) or + !$response->json('score') + ) { + throw new \RuntimeException(); + } + if (\floatval($response->json('score')) < 0.8) { + $fail(trans('recaptcha.not_enough_score')); + } + return; + } + if ( + !$response->json('success') or + !$response->json('challenge_ts') or + Carbon::parse($response->json('challenge_ts'))->lessThan(\now('utc')->subMinutes(5)) or + $response->json('hostname') !== \parse_url(config('app.url'), \PHP_URL_HOST) + ) { + throw new \RuntimeException(); + } + } catch (\Exception $e) { + $fail(trans('recaptcha.error')); + } //end try + } + ] + ], [], ['g-recaptcha-response' => 'reCaptcha']); + } + + /** + * Strip scheme (https) on oembed urls + * Only embed allowed are for MP4 self hosted videos right now + * + * https is force by ckeditor MediaElements which natively supports + * only cloud hosted medias (youtube, spotify etc..) + * + * @param string $input + * @return string + */ + public static function stripCkEditorSchemesOnMediaInputs(string $input): string + { + $input = \preg_replace('/(?<=)/m', '', $input); + return $input; + } + + /** + * Assert That no Back Office url is present on txt + * + * @param string $field + * @param string $text + * @return string + * @throws \Illuminate\Validation\ValidationException If url is a bo url. + */ + public static function assertNoInternalBoUrls(string $field, string $text): string + { + $routes = Route::getRoutes(); + // * Url replace and email replace. + $text = preg_replace_callback( + // phpcs:ignore Generic.Files.LineLength.TooLong + '/(?P(?:http[s]?:\/\/.)?(?:www\.)?[-a-zA-Z0-9@%._\+~#=]{2,256}\.[a-z]{2,6}\b(?:[-a-zA-Z0-9@:%_\+.~#?&\/\/=]*))/', + function ($matches) use ($routes, $field) { + $match = collect($matches)->first() ?? ''; + $url = $match; + try { + $request = Request::create($url); + // If a route is match then it do not throws exception. + if ( + \parse_url(config('app.url'), \PHP_URL_HOST) === \parse_url($url, \PHP_URL_HOST) && + trim($routes->match($request)->getPrefix() ?? '', '/') === 'bo' + ) { + // Removes the matched url. + throw ValidationException::withMessages([ + $field => trans( + 'crud.libs.toolbox.assertNoInternalBoUrls', + ['attribute' => $field] + ) + ]); + } + return $match; + } catch (NotFoundHttpException $e) { + return $match; + } + }, + $text + ); + return $text; + } + + /** + * Assert That only external url is present on txt + * + * @param string $field + * @param string $text + * @return string + * @throws \Illuminate\Validation\ValidationException If url is a bo url. + */ + public static function assertNoInternalUrls(string $field, string $text): string + { + self::assertNoInternalBoUrls($field, $text); + $routes = Route::getRoutes(); + // * Url replace and email replace. + $text = preg_replace_callback( + // phpcs:ignore Generic.Files.LineLength.TooLong + '/(?P(?:http[s]?:\/\/.)?(?:www\.)?[-a-zA-Z0-9@%._\+~#=]{2,256}\.[a-z]{2,6}\b(?:[-a-zA-Z0-9@:%_\+.~#?&\/\/=]*))/', + function ($matches) use ($routes, $field) { + $match = collect($matches)->first() ?? ''; + $url = $match; + try { + $request = Request::create($url); + // If a route is match then it do not throws exception. + if ( + \parse_url(config('app.url'), \PHP_URL_HOST) === \parse_url($url, \PHP_URL_HOST) && + $routes->match($request) + ) { + // Removes the matched url. + throw ValidationException::withMessages([ + $field => trans( + 'crud.libs.toolbox.assertNoInternalUrls', + ['attribute' => $field, 'appname' => config('app.name')] + ) + ]); + } + return $match; + } catch (NotFoundHttpException $e) { + return $match; + } + }, + $text + ); + return $text; + } + + /** + * Mutltibyte string replace + * + * @param array|string $search + * @param array|string $replace + * @param array|string $subject + * @param integer $count + * @return array|string + */ + public static function mbReplace( + array|string $search, + array|string $replace, + array|string $subject, + int &$count = 0 + ): array|string { + if (!is_array($search) && is_array($replace)) { + return false; + } + if (is_array($subject)) { + // Call mb_replace for each single string in $subject . + foreach ($subject as &$string) { + $string = &self::mbReplace($search, $replace, $string, $count); + } + } elseif (is_array($search)) { + if (!is_array($replace)) { + foreach ($search as &$string) { + $subject = self::mbReplace($string, $replace, $subject, $count); + } + } else { + $n = max(count($search), count($replace)); + while ($n--) { + $subject = self::mbReplace(current($search), current($replace), $subject, $count); + next($search); + next($replace); + } + } + } else { + $parts = mb_split(preg_quote($search), $subject); + $count = count($parts) - 1; + $subject = implode($replace, $parts); + } //end if + return $subject; + } + + /** + * Asserts that the field is unique + * + * @param string $table + * @param string $field + * @param string|integer|float|boolean|null|array $value + * @param integer|null $id + * @param callable|null $query + * @return void + * @throws \Illuminate\Validation\ValidationException If the field is not unique. + */ + public static function assertFieldIsUnique( + string $table, + string $field, + string|int|float|bool|null|array $value, + ?int $id = null, + ?callable $query = null + ) { + if (!$query) { + Validator::make([$field => $value], [ + self::mbReplace('.', '\.', $field) => Rule::unique($table, $field)->ignore($id), + ], [ + self::mbReplace('.', '\.', "{$field}.unique") + => trans('crud.libs.toolbox.assertFieldIsUnique', ['attribute' => $field, 'value' => $value]) + ])->validate(); + return; + } + Validator::make([$field => $value], [ + $field => Rule::unique($table)->where($query)->ignore($id), + ], [ + $field . '.unique' => trans( + 'crud.libs.toolbox.assertFieldIsUnique', + ['attribute' => $field, 'value' => $value] + ) + ])->validate(); + } + + /** + * Get original polyfill with autotranslate behavior + * + * @param \Illuminate\Database\Eloquent\Model $model + * @param string $attribute + * @return mixed + */ + public static function getOriginal(Model $model, string $attribute): mixed + { + if (\in_array('Spatie\Translatable\HasTranslations', \class_uses_recursive($model))) { + return $model->getTranslation( + $attribute, + $model->getLocale(), + $model->useFallbackLocale() + ); + } + return $model->getOriginal($attribute); + } + + /** + * Dynamic model query + * + * @param string $defaultLocale + * @param \Illuminate\Contracts\Database\Eloquent\Builder $q + * @param string $column + * @param string $value + * @return \Illuminate\Contracts\Database\Eloquent\Builder + */ + public static function queryColumnWithLocales( + string $defaultLocale, + Builder $q, + string $column, + string $value + ): Builder { + $currentLocale = app()->currentLocale(); + $locales = collect(config('app.locales')) + ->mapWithKeys(fn (string $locale) => [$locale => $locale]); + if (!$locales->has($defaultLocale)) { + // * Remove default locale. + $locales->pull($defaultLocale); + } + if (!$locales->has($currentLocale)) { + // * Remove current locale. + $locales->pull($currentLocale); + } + + return $q->where(function (Builder $q) use ($defaultLocale, $currentLocale, $locales, $column, $value) { + // * Query default locale + $q->whereRaw("JSON_EXTRACT({$column}, '$.{$defaultLocale}') = '{$value}'"); + if ($defaultLocale !== $currentLocale) { + // * Query current locale + $q->whereRaw("JSON_EXTRACT({$column}, '$.{$currentLocale}') = '{$value}'"); + } + // * Query any other locale + $locales->each(fn ($locale) => $q->orWhereRaw( + "JSON_EXTRACT({$column}, '$.{$locale}') = '{$value}'" + )); + }); + } + + /** + * Generates an array from a dot separated string + * + * @param string $path + * @param mixed $value + * @param string $separator + * @return array + */ + public static function dotStringToNestedArray(string $path, mixed $value, string $separator = '.'): array + { + $arr = $value; + $keys = array_reverse(explode($separator, $path)); + + foreach ($keys as $key) { + $arr = [$key => $arr]; + } + return $arr; + } + + /** + * Convert deeply an object to array + * + * @param array|object $input + * @return array + * @throws \RuntimeException If $input var is a scalar value. + */ + public static function objectToArray($input): array + { + // Only process if it's an object or array being passed to the function. + if (is_object($input) or is_array($input)) { + $ret = (array)$input; + foreach ($ret as &$item) { + // Recursively process EACH element only if not scalar. + $item = (is_object($item) or is_array($item)) ? + self::objectToArray($item) : $item; + } + return $ret; + } else { + throw new \RuntimeException('Cannot handle $input of type ' . \gettype($input)); + } + } + + /** + * Convert deeply an array to object + * + * @param array|object $input + * @return object + * @throws \RuntimeException If $input var is a scalar value. + */ + public static function arrayToObject($input): object + { + // Only process if it's an object or array being passed to the function. + if (is_object($input) or is_array($input)) { + $ret = (object)$input; + foreach ($ret as &$item) { + // Recursively process EACH element only if not scalar. + $item = (is_object($item) or is_array($item)) ? + self::arrayToObject($item) : $item; + } + return $ret; + } else { + throw new \RuntimeException('Cannot handle $input of type ' . \gettype($input)); + } + } + + /** + * Validate picture + * + * @param string $attribute + * @param string|null $value + * @param callback $fail + * @param object $sizes + * @return void + */ + public static function validatePicture(string $attribute, string|null $value, callable $fail, object $sizes) + { + if (!($useStorage = Storage::exists($value)) and !File::exists($value)) { + $fail(trans(':attribute n\'existe pas dans le système de fichier', [ + 'attribute' => $attribute + ])); + return; + } + /** @var string */ + $fileFullPath = self::getUploadedFileFullPath($value, $useStorage); + if ( + !\in_array(self::getUploadedFileMimeType($value, $useStorage), [ + 'image/jpeg', 'image/jpg', 'image/png', 'image/gif' + ]) + ) { + $fail(trans(':attribute doit être une image de type \'image/jpeg,image/jpg,image/png,image/gif\'', [ + 'attribute' => $attribute + ])); + } + if (!($dimensions = \getimagesize($fileFullPath)) or !isset($dimensions[0]) or !isset($dimensions[1])) { + $fail(trans(':attribute impossible de valider les dimensions', [ + 'attribute' => $attribute + ])); + } else { + $width = intval($dimensions[0]); + $height = intval($dimensions[1]); + + $xMessage = trans( + ":attribute la largeur doit être comprise entre {$sizes->minWith}px et {$sizes->maxWith}px" + ); + if ($sizes->minWith === $sizes->maxWith) { + $xMessage = trans(":attribute la largeur doit être de {$sizes->minWith}px"); + } + $yMessage = trans( + ":attribute la hauteur doit être comprise entre {$sizes->minWith}px et {$sizes->maxWith}px" + ); + if ($sizes->minHeight === $sizes->maxHeight) { + $yMessage = trans(":attribute la hauteur doit être de {$sizes->minWith}px"); + } + + if (($width < $sizes->minWith) or ($width > $sizes->maxWith)) { + $fail($xMessage); + } + if (($height < $sizes->minHeight) or ($height > $sizes->maxHeight)) { + $fail($yMessage); + } + } //end if + } + + /** + * Get the file full path + * + * @param string $value + * @param boolean $useStorage + * @return string + */ + private static function getUploadedFileFullPath(string $value, bool $useStorage): string + { + /** @var \Illuminate\Filesystem\FilesystemAdapter */ + $disk = Storage::disk(); + return !$useStorage ? (realpath($value) ?: $value) : $disk->path($value); + } + + /** + * Get the file mimetype + * + * @param string $value + * @param boolean $useStorage + * @return string|false + */ + private static function getUploadedFileMimeType(string $value, bool $useStorage) + { + return !$useStorage ? File::mimeType($value) : Storage::mimeType($value); + } + + /** + * Fetch class list from a specific namespace + * + * @param string $namespace + * @return array An array of classe namespaces + */ + public static function getClassesUsingNamespace(string $namespace): array + { + return collect(File::files(\app_path(Str::of($namespace)->replaceFirst('\App', '')))) + ->filter(fn (SplFileInfo $splFileInfo) => $splFileInfo->getExtension() === 'php') + ->map(fn (SplFileInfo $splFileInfo) => Str::of($splFileInfo->getBasename()) + ->replace('.' . $splFileInfo->getExtension(), '')->prepend("{$namespace}\\"))->all(); + } + + /** + * Get all classes from a specific namespace that implement a specific interface + * + * @param string $namespace + * @param string $interface + * @return array An array of classe namespaces + */ + public static function getClassesUsingInterface(string $namespace, string $interface): array + { + return Arr::where( + static::getClassesUsingNamespace($namespace), + fn (string $class_namespace) => \collect(class_implements($class_namespace, true))->filter() + ->contains(fn (string $class_interface) => $class_interface === $interface) + ); + } + + /** + * Get validated pagination from request. + * + * @param integer $default + * @param string $field + * @param string $enumPath + * @return integer + */ + public static function getValidatedEnum(int $default, string $field, string $enumPath): int + { + try { + return \intval(Validator::make( + [$field => \request()->get($field)], + [$field => new Enum($enumPath)] + )->validated()[$field]); + } catch (ValidationException $e) { + return $default; + } + } +} diff --git a/app/Lib/vendor/LDCWEB/MesBr.php b/app/Lib/vendor/LDCWEB/MesBr.php new file mode 100644 index 0000000..594807e --- /dev/null +++ b/app/Lib/vendor/LDCWEB/MesBr.php @@ -0,0 +1,150 @@ +endpoint = $endpoint; + $this->refCamp = $refCamp; + } + + public function createCustomer(string $hashcode, string $email, string $country) + { + return $this->callApi("POST", '/customer', ['hashcode' => $hashcode, 'email' => $email, 'country' => $country]); + } + public function updateCustomer(string $hashcode, string $email, string $country) + { + return $this->callApi("POST", '/customer', ['hashcode' => $hashcode, 'email' => $email, 'country' => $country]); + } + public function getMurCustomer(string $hashcode) + { + return $this->callApi("GET", '/customer/mur', ['refcamp' => $this->refCamp, 'hashcode' => $hashcode]); + } + public function getMur() + { + return $this->callApi("GET", '/mur', ['refcamp' => $this->refCamp]); + } + public function printCoupons(string $hashcode, array $coupons) + { + return $this->callApi("GET", '/coupons/print', [ + 'refcamp' => $this->refCamp, 'hashcode' => $hashcode, 'coupons' => implode(",", $coupons) + ]); + } + private function callApi($method, $url, $data = [], $path = '/api/v1') + { + $url = $this->endpoint . $path . $url; + $curl = curl_init(); + switch ($method) { + case "POST": + curl_setopt($curl, CURLOPT_POST, 1); + if ($data) { + curl_setopt($curl, CURLOPT_POSTFIELDS, $data); + } + break; + case "PUT": + case "DELETE": + curl_setopt($curl, CURLOPT_CUSTOMREQUEST, $method); + if ($data) { + curl_setopt($curl, CURLOPT_POSTFIELDS, http_build_query($data)); + } + break; + default: + if ($data) { + $url = sprintf("%s?%s", $url, http_build_query($data)); + } + } + curl_setopt($curl, CURLOPT_URL, $url); + curl_setopt($curl, CURLOPT_COOKIESESSION, true); + curl_setopt($curl, CURLOPT_RETURNTRANSFER, 1); + + $result = curl_exec($curl); + if (!curl_errno($curl)) { + $http_code = curl_getinfo($curl, CURLINFO_HTTP_CODE); + if (!in_array($http_code, [200, 201])) { + return (object)[ + 'status' => 'KO', 'code' => 500, 'message' => 'Connection to API failed - Code HTTP : ' . $http_code + ]; + } + } else { + return (object)[ + 'status' => 'KO', 'code' => 500, 'message' => 'Connection to API failed : ' . curl_error($curl) + ]; + } + curl_close($curl); + return json_decode($result); + } + + // * Added METHODS + + /** . + * Update panier + * + * @param \LDC\LDCCRM\Models\Customer $crm_customer + * @param integer $crm_customer_id + * @param string $ref_site + * @param string $coupon_id + * @param integer $quantity + * @return array + * 'status' => 'OK', + * 'link' => URL, + * 'verif' => URL, + * 'basketId' => 'ID' + */ + public function updatePanier( + Customer $crm_customer, + int $crm_customer_id, + string $ref_site, + string $coupon_id, + int $quantity = 1 + ): array { + $res = $this->callAPI("GET", "/updatebasket", [ + 'refsite' => $ref_site, + 'refcamp' => $this->refCamp, + 'refadherent' => $crm_customer_id, + 'nom' => $crm_customer->lastname, + 'prenom' => $crm_customer->firstname, + 'email' => $crm_customer->email, + 'code_postal' => $crm_customer->postcode, + 'commune' => $crm_customer->city, + 'pays' => $this->getCountry($crm_customer->country), + 'panier' => "({$quantity}){$coupon_id}" + ], ''); + + if (!$res) { + error_log("MESBR - CODE : 999 - MESSAGE : Cannot read API Response (non json)"); + return ['status' => 'KO', 'code' => 999, 'message' => 'Cannot read API Response (non json)']; + } + if ($res->Statut === 'KO') { + error_log("MESBR - CODE : $res->Code - MESSAGE : $res->Message"); + return ['status' => 'KO', 'code' => $res->Code, 'message' => $res->Message]; + } + $panierVerification = $this->endpoint . '/showbasket?basketid=' . $res->Panier->Panier; + $panier_link = $this->endpoint . '/?basketid=' . $res->Panier->Panier; + return ['status' => 'OK', 'link' => $panier_link, 'verif' => $panierVerification, 'basketId' => $res->Panier->Panier]; + } + + /** + * Translate country to MesBr Country + * + * @param \LDC\LDCCRM\Enums\Country $country + * @return inteager + */ + private function getCountry(Country $country): int + { + return match ($country) { + Country::belgium() => 56, + Country::luxembourg() => 442, + // * France + default => 250 + }; + } +} diff --git a/app/Lib/vendor/crm-client-3.0.6/.editorconfig b/app/Lib/vendor/crm-client-3.0.6/.editorconfig new file mode 100644 index 0000000..0a72ec6 --- /dev/null +++ b/app/Lib/vendor/crm-client-3.0.6/.editorconfig @@ -0,0 +1,18 @@ +root = true + +[*] +charset = utf-8 +end_of_line = lf +insert_final_newline = true +indent_style = space +indent_size = 4 +trim_trailing_whitespace = true + +[*.json] +indent_size = 4 + +[*.md] +trim_trailing_whitespace = false + +[*.{yml,yaml}] +indent_size = 2 diff --git a/app/Lib/vendor/crm-client-3.0.6/.env.default b/app/Lib/vendor/crm-client-3.0.6/.env.default new file mode 100644 index 0000000..2bbcb69 --- /dev/null +++ b/app/Lib/vendor/crm-client-3.0.6/.env.default @@ -0,0 +1,3 @@ +crm.token=qsdqsd +crm.password=qsdqsdqsds +crm.endpoint=localhost diff --git a/app/Lib/vendor/crm-client-3.0.6/.gitignore b/app/Lib/vendor/crm-client-3.0.6/.gitignore new file mode 100644 index 0000000..5ee5d3c --- /dev/null +++ b/app/Lib/vendor/crm-client-3.0.6/.gitignore @@ -0,0 +1,5 @@ +workspace.code-workspace +vendor +node_modules +.phpdoc +.phive diff --git a/public/favicon.ico b/app/Lib/vendor/crm-client-3.0.6/.gitkeep similarity index 100% rename from public/favicon.ico rename to app/Lib/vendor/crm-client-3.0.6/.gitkeep diff --git a/app/Lib/vendor/crm-client-3.0.6/.gitlab-ci.yml b/app/Lib/vendor/crm-client-3.0.6/.gitlab-ci.yml new file mode 100644 index 0000000..2c93b54 --- /dev/null +++ b/app/Lib/vendor/crm-client-3.0.6/.gitlab-ci.yml @@ -0,0 +1,26 @@ +# This file is a template, and might need editing before it works on your project. +# To contribute improvements to CI/CD templates, please follow the Development guide at: +# https://docs.gitlab.com/ee/development/cicd/templates.html +# This specific template is located at: +# https://gitlab.com/gitlab-org/gitlab/-/blob/master/lib/gitlab/ci/templates/Composer.gitlab-ci.yml + +# Publishes a tag/branch to Composer Packages of the current project +package-publish: + image: curlimages/curl:latest + stage: build + variables: + URL: "$CI_SERVER_PROTOCOL://$CI_SERVER_HOST:$CI_SERVER_PORT/api/v4/projects/$CI_PROJECT_ID/packages/composer?job_token=$CI_JOB_TOKEN" + script: + - insecure=$([ "$CI_SERVER_PROTOCOL" = "http" ] && echo "--insecure" || echo "") + - response=$(curl -s -w "\n%{http_code}" $insecure --data tag=$CI_COMMIT_TAG $URL) + - code=$(echo "$response" | tail -n 1) + - body=$(echo "$response" | head -n 1) + # Output state information + - if [ $code -eq 201 ]; then + echo "Package created - Code $code - $body"; + else + echo "Could not create package - Code $code - $body"; + exit 1; + fi + rules: + - if: '$CI_COMMIT_TAG =~ /^\d+.\d+.\d+/' diff --git a/app/Lib/vendor/crm-client-3.0.6/.vscode/launch.json b/app/Lib/vendor/crm-client-3.0.6/.vscode/launch.json new file mode 100644 index 0000000..964a7bf --- /dev/null +++ b/app/Lib/vendor/crm-client-3.0.6/.vscode/launch.json @@ -0,0 +1,22 @@ +{ + // Utilisez IntelliSense pour en savoir plus sur les attributs possibles. + // Pointez pour afficher la description des attributs existants. + // Pour plus d'informations, visitez : https://go.microsoft.com/fwlink/?linkid=830387 + "version": "0.2.0", + "configurations": [ + { + "name": "Listen for XDebug", + "type": "php", + "request": "launch", + "port": 9000 + }, + { + "name": "Launch currently open script", + "type": "php", + "request": "launch", + "program": "${file}", + "cwd": "${fileDirname}", + "port": 9000 + } + ] +} diff --git a/app/Lib/vendor/crm-client-3.0.6/apiConfig.readonly.json b/app/Lib/vendor/crm-client-3.0.6/apiConfig.readonly.json new file mode 100644 index 0000000..26a7377 --- /dev/null +++ b/app/Lib/vendor/crm-client-3.0.6/apiConfig.readonly.json @@ -0,0 +1,6 @@ +{ + "version": "3.0.6", + "timestampTimeout": 30, + "apiRequestRatePerMinute": 256, + "servicesDBCache": 10 +} \ No newline at end of file diff --git a/app/Lib/vendor/crm-client-3.0.6/changelog.md b/app/Lib/vendor/crm-client-3.0.6/changelog.md new file mode 100644 index 0000000..97b070b --- /dev/null +++ b/app/Lib/vendor/crm-client-3.0.6/changelog.md @@ -0,0 +1,92 @@ +# Changelog + +### All notable changes to `CRM CLient V2` will be documented in this file. + +# version 3.0.6 +- Added: SingleOptin::unsetStatusWithHashcode to allow customers to unsubscribe using a hashcode, now single optins do have hashcodes. +# version 3.0.5 +- Bumped to follow CRM updates + +# version 3.0.4 +- Added CI configuration + +# version 3.0.3 +- Update Country enum +- Fixed : request merge method of data to query (Request.php) +- Fixed : validate json check should check if really false (Response.php) +- Bumped composer deps + +# version 3.0.2 +- Regen documentation with php documentor + +# version 3.0.1 +- Fixed : Customer do not call update if there are no updated fields +- Fixed : WPCrm bootSessionIfNeeded trying to access $_SESSION['wpcrm'] before session was started +- Fixed : WPCrm now only returns a boolean +- Fixed : get crm info when client used in laravel +- Changed : WpCrm::makeApiV2Call Change LogLevel on error from Emerge to Critical +- Changed : WPCrm readd forceLogin() + +# version 3.0.0 + +This removes api authentication with token in favor of signature method. +Refactored code and clean up. It add more unit test plus code coverage +in test/coverage. + +- Added : mardown documentation. +- Changed : WPCrm::login now only returns a boolean +- Changed : model Stats::getQuestionStats to pass question as route parameter +- Changed : now requests need to have a signature generated with a private key (crm password) using hmac sha256 wrapping url, method and parameters +- Changed : now timestamp will timeout if request is slower than "timestampTimeout", this means crm will reject the request +- Changed : throw ValidationException s instead of TypeErrors +- Changed : timestamp has to be send in request with a DateTime format, it also has to a UTC value +- Fixed : Change WPCRM dynamic session key, this could prevent spoofing session in some cases. +- Fixed : closure validation +- Fixed : model mutator not catching reflectionException +- Fixed : really send json request using Guzzle internal lib methods. +- Removed : Api AUTH system with api token +- Removed : ApiError::needAuth +- Removed : composer vlucas/dotenv, .env file is not handled any more. +- Removed : LoginException +- Removed : memcached dependency +- Removed : need of memcached +- Removed : unused service provider +- Removed : WpCrm::forceLogin +- Removed : WpCrm::sendArcadiaMailDefault +- Removed : WpCrm::sendArcadiaMailGame +- Updated : PHPCS rules, phpcs fixes and refactored code + +# version 2.3.2 +- Hotfixed arcadia order + +# version 2.3.1 +- Fixed Consider fill attributes as can be nullable +- Fixed Respect sometimes validation + +# version 2.3.0 +- Added Stats call by brand and by question +- Added min rule valdation for integers as well as for strings in Utils + +# version 2.2.3 +- Changed for bool casting for response parse field 'status' when is int 1 or 0 +- Changed, properties are filled from CRM after a save or update action, this will allow for props to be set on model as it is on the crm, after all checks and casts (firstname capitalized, ... etc) + +# version 2.2.2 +- Fixed Arcadia mail where sending parameters as query instead of Data + +# version 2.2.1 +- Fixed fill methods on models to handle all enums + arrays +- Changed validation on customer, city minimum is now 2 chars, + firstname and lastname min are now 1 char, phone min 10 has been removed, + other validations are made on backend side such as limit countries, + right now limit is FR, BE, NL. + Anyway dont forget to handle ValidationException which returns crm message. +- Include Drom Com to allowed countries +- Update Country enum to remove '-' chars + +# version 2.2.0 +- Fixed Utils.php getResquest method +- Changed Arcadia mails, add customer parameters for these calls + +# version 2.1.9 +- Fixed method CrmClientModel::fill now validates data and put value to updatedValues array diff --git a/app/Lib/vendor/crm-client-3.0.6/composer.json b/app/Lib/vendor/crm-client-3.0.6/composer.json new file mode 100644 index 0000000..67a30fd --- /dev/null +++ b/app/Lib/vendor/crm-client-3.0.6/composer.json @@ -0,0 +1,47 @@ +{ + "name": "ldc/ldccrmv2client", + "type": "library", + "description": "LDC CRM Client V2", + "license": "MIT", + "version": "3.0.6", + "authors": [ + { + "name": "Jérémy Munsch", + "email": "jeremy.munsch@ldc.fr", + "homepage": "https://jeremydev.ovh" + } + ], + "homepage": "https://github.com/kwaadpepper", + "keywords": [ + "Laravel", + "CRM", + "Client", + "LDC" + ], + "require": { + "kwaadpepper/enum": "^2.1", + "guzzlehttp/guzzle": "^7.4", + "respect/validation": "^2.2" + }, + "require-dev": { + "phpunit/phpunit": "~9.0", + "squizlabs/php_codesniffer": "^3.5", + "orchestra/testbench": "^6.13", + "slevomat/coding-standard": "^7.0" + }, + "autoload": { + "psr-4": { + "LDC\\LDCCRM\\": "src/" + } + }, + "autoload-dev": { + "psr-4": { + "LDC\\LDCCRM\\Tests\\": "tests" + } + }, + "config": { + "allow-plugins": { + "dealerdirect/phpcodesniffer-composer-installer": true + } + } +} \ No newline at end of file diff --git a/app/Lib/vendor/crm-client-3.0.6/composer.lock b/app/Lib/vendor/crm-client-3.0.6/composer.lock new file mode 100644 index 0000000..d19719a --- /dev/null +++ b/app/Lib/vendor/crm-client-3.0.6/composer.lock @@ -0,0 +1,8082 @@ +{ + "_readme": [ + "This file locks the dependencies of your project to a known state", + "Read more about it at https://getcomposer.org/doc/01-basic-usage.md#installing-dependencies", + "This file is @generated automatically" + ], + "content-hash": "9fc0e0c41d5cadd6137da5643e676e9d", + "packages": [ + { + "name": "guzzlehttp/guzzle", + "version": "7.4.3", + "source": { + "type": "git", + "url": "https://github.com/guzzle/guzzle.git", + "reference": "74a8602c6faec9ef74b7a9391ac82c5e65b1cdab" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/guzzle/guzzle/zipball/74a8602c6faec9ef74b7a9391ac82c5e65b1cdab", + "reference": "74a8602c6faec9ef74b7a9391ac82c5e65b1cdab", + "shasum": "" + }, + "require": { + "ext-json": "*", + "guzzlehttp/promises": "^1.5", + "guzzlehttp/psr7": "^1.8.3 || ^2.1", + "php": "^7.2.5 || ^8.0", + "psr/http-client": "^1.0", + "symfony/deprecation-contracts": "^2.2 || ^3.0" + }, + "provide": { + "psr/http-client-implementation": "1.0" + }, + "require-dev": { + "bamarni/composer-bin-plugin": "^1.4.1", + "ext-curl": "*", + "php-http/client-integration-tests": "^3.0", + "phpunit/phpunit": "^8.5.5 || ^9.3.5", + "psr/log": "^1.1 || ^2.0 || ^3.0" + }, + "suggest": { + "ext-curl": "Required for CURL handler support", + "ext-intl": "Required for Internationalized Domain Name (IDN) support", + "psr/log": "Required for using the Log middleware" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-master": "7.4-dev" + } + }, + "autoload": { + "files": [ + "src/functions_include.php" + ], + "psr-4": { + "GuzzleHttp\\": "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" + }, + { + "name": "Jeremy Lindblom", + "email": "jeremeamia@gmail.com", + "homepage": "https://github.com/jeremeamia" + }, + { + "name": "George Mponos", + "email": "gmponos@gmail.com", + "homepage": "https://github.com/gmponos" + }, + { + "name": "Tobias Nyholm", + "email": "tobias.nyholm@gmail.com", + "homepage": "https://github.com/Nyholm" + }, + { + "name": "Márk Sági-Kazár", + "email": "mark.sagikazar@gmail.com", + "homepage": "https://github.com/sagikazarmark" + }, + { + "name": "Tobias Schultze", + "email": "webmaster@tubo-world.de", + "homepage": "https://github.com/Tobion" + } + ], + "description": "Guzzle is a PHP HTTP client library", + "keywords": [ + "client", + "curl", + "framework", + "http", + "http client", + "psr-18", + "psr-7", + "rest", + "web service" + ], + "support": { + "issues": "https://github.com/guzzle/guzzle/issues", + "source": "https://github.com/guzzle/guzzle/tree/7.4.3" + }, + "funding": [ + { + "url": "https://github.com/GrahamCampbell", + "type": "github" + }, + { + "url": "https://github.com/Nyholm", + "type": "github" + }, + { + "url": "https://tidelift.com/funding/github/packagist/guzzlehttp/guzzle", + "type": "tidelift" + } + ], + "time": "2022-05-25T13:24:33+00:00" + }, + { + "name": "guzzlehttp/promises", + "version": "1.5.1", + "source": { + "type": "git", + "url": "https://github.com/guzzle/promises.git", + "reference": "fe752aedc9fd8fcca3fe7ad05d419d32998a06da" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/guzzle/promises/zipball/fe752aedc9fd8fcca3fe7ad05d419d32998a06da", + "reference": "fe752aedc9fd8fcca3fe7ad05d419d32998a06da", + "shasum": "" + }, + "require": { + "php": ">=5.5" + }, + "require-dev": { + "symfony/phpunit-bridge": "^4.4 || ^5.1" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-master": "1.5-dev" + } + }, + "autoload": { + "files": [ + "src/functions_include.php" + ], + "psr-4": { + "GuzzleHttp\\Promise\\": "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" + }, + { + "name": "Tobias Nyholm", + "email": "tobias.nyholm@gmail.com", + "homepage": "https://github.com/Nyholm" + }, + { + "name": "Tobias Schultze", + "email": "webmaster@tubo-world.de", + "homepage": "https://github.com/Tobion" + } + ], + "description": "Guzzle promises library", + "keywords": [ + "promise" + ], + "support": { + "issues": "https://github.com/guzzle/promises/issues", + "source": "https://github.com/guzzle/promises/tree/1.5.1" + }, + "funding": [ + { + "url": "https://github.com/GrahamCampbell", + "type": "github" + }, + { + "url": "https://github.com/Nyholm", + "type": "github" + }, + { + "url": "https://tidelift.com/funding/github/packagist/guzzlehttp/promises", + "type": "tidelift" + } + ], + "time": "2021-10-22T20:56:57+00:00" + }, + { + "name": "guzzlehttp/psr7", + "version": "2.3.0", + "source": { + "type": "git", + "url": "https://github.com/guzzle/psr7.git", + "reference": "83260bb50b8fc753c72d14dc1621a2dac31877ee" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/guzzle/psr7/zipball/83260bb50b8fc753c72d14dc1621a2dac31877ee", + "reference": "83260bb50b8fc753c72d14dc1621a2dac31877ee", + "shasum": "" + }, + "require": { + "php": "^7.2.5 || ^8.0", + "psr/http-factory": "^1.0", + "psr/http-message": "^1.0", + "ralouphie/getallheaders": "^3.0" + }, + "provide": { + "psr/http-factory-implementation": "1.0", + "psr/http-message-implementation": "1.0" + }, + "require-dev": { + "bamarni/composer-bin-plugin": "^1.4.1", + "http-interop/http-factory-tests": "^0.9", + "phpunit/phpunit": "^8.5.8 || ^9.3.10" + }, + "suggest": { + "laminas/laminas-httphandlerrunner": "Emit PSR-7 responses" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-master": "2.3-dev" + } + }, + "autoload": { + "psr-4": { + "GuzzleHttp\\Psr7\\": "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" + }, + { + "name": "George Mponos", + "email": "gmponos@gmail.com", + "homepage": "https://github.com/gmponos" + }, + { + "name": "Tobias Nyholm", + "email": "tobias.nyholm@gmail.com", + "homepage": "https://github.com/Nyholm" + }, + { + "name": "Márk Sági-Kazár", + "email": "mark.sagikazar@gmail.com", + "homepage": "https://github.com/sagikazarmark" + }, + { + "name": "Tobias Schultze", + "email": "webmaster@tubo-world.de", + "homepage": "https://github.com/Tobion" + }, + { + "name": "Márk Sági-Kazár", + "email": "mark.sagikazar@gmail.com", + "homepage": "https://sagikazarmark.hu" + } + ], + "description": "PSR-7 message implementation that also provides common utility methods", + "keywords": [ + "http", + "message", + "psr-7", + "request", + "response", + "stream", + "uri", + "url" + ], + "support": { + "issues": "https://github.com/guzzle/psr7/issues", + "source": "https://github.com/guzzle/psr7/tree/2.3.0" + }, + "funding": [ + { + "url": "https://github.com/GrahamCampbell", + "type": "github" + }, + { + "url": "https://github.com/Nyholm", + "type": "github" + }, + { + "url": "https://tidelift.com/funding/github/packagist/guzzlehttp/psr7", + "type": "tidelift" + } + ], + "time": "2022-06-09T08:26:02+00:00" + }, + { + "name": "kwaadpepper/enum", + "version": "2.1.2", + "source": { + "type": "git", + "url": "https://github.com/Kwaadpepper/enum.git", + "reference": "bbd08723895cad5a41bc0d57e565fe64fa13ca41" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/Kwaadpepper/enum/zipball/bbd08723895cad5a41bc0d57e565fe64fa13ca41", + "reference": "bbd08723895cad5a41bc0d57e565fe64fa13ca41", + "shasum": "" + }, + "require": { + "php": "^7.3" + }, + "require-dev": { + "orchestra/testbench": "^5", + "phpunit/php-code-coverage": "^9.2", + "phpunit/phpunit": "~9.0", + "slevomat/coding-standard": "^7.0", + "squizlabs/php_codesniffer": "^3.5" + }, + "type": "library", + "extra": { + "laravel": { + "providers": [ + "Kwaadpepper\\Enum\\EnumServiceProvider" + ] + } + }, + "autoload": { + "psr-4": { + "Kwaadpepper\\Enum\\": "src/" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Jérémy Munsch", + "email": "github@jeremydev.ovh", + "homepage": "https://jeremydev.ovh" + } + ], + "description": "Enums to use for any project", + "homepage": "https://github.com/kwaadpepper/enum", + "keywords": [ + "enum", + "laravel" + ], + "support": { + "issues": "https://github.com/Kwaadpepper/enum/issues", + "source": "https://github.com/Kwaadpepper/enum/tree/2.1.2" + }, + "time": "2021-11-18T16:52:08+00:00" + }, + { + "name": "psr/http-client", + "version": "1.0.1", + "source": { + "type": "git", + "url": "https://github.com/php-fig/http-client.git", + "reference": "2dfb5f6c5eff0e91e20e913f8c5452ed95b86621" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/php-fig/http-client/zipball/2dfb5f6c5eff0e91e20e913f8c5452ed95b86621", + "reference": "2dfb5f6c5eff0e91e20e913f8c5452ed95b86621", + "shasum": "" + }, + "require": { + "php": "^7.0 || ^8.0", + "psr/http-message": "^1.0" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-master": "1.0.x-dev" + } + }, + "autoload": { + "psr-4": { + "Psr\\Http\\Client\\": "src/" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "PHP-FIG", + "homepage": "http://www.php-fig.org/" + } + ], + "description": "Common interface for HTTP clients", + "homepage": "https://github.com/php-fig/http-client", + "keywords": [ + "http", + "http-client", + "psr", + "psr-18" + ], + "support": { + "source": "https://github.com/php-fig/http-client/tree/master" + }, + "time": "2020-06-29T06:28:15+00:00" + }, + { + "name": "psr/http-factory", + "version": "1.0.1", + "source": { + "type": "git", + "url": "https://github.com/php-fig/http-factory.git", + "reference": "12ac7fcd07e5b077433f5f2bee95b3a771bf61be" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/php-fig/http-factory/zipball/12ac7fcd07e5b077433f5f2bee95b3a771bf61be", + "reference": "12ac7fcd07e5b077433f5f2bee95b3a771bf61be", + "shasum": "" + }, + "require": { + "php": ">=7.0.0", + "psr/http-message": "^1.0" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-master": "1.0.x-dev" + } + }, + "autoload": { + "psr-4": { + "Psr\\Http\\Message\\": "src/" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "PHP-FIG", + "homepage": "http://www.php-fig.org/" + } + ], + "description": "Common interfaces for PSR-7 HTTP message factories", + "keywords": [ + "factory", + "http", + "message", + "psr", + "psr-17", + "psr-7", + "request", + "response" + ], + "support": { + "source": "https://github.com/php-fig/http-factory/tree/master" + }, + "time": "2019-04-30T12:38:16+00:00" + }, + { + "name": "psr/http-message", + "version": "1.0.1", + "source": { + "type": "git", + "url": "https://github.com/php-fig/http-message.git", + "reference": "f6561bf28d520154e4b0ec72be95418abe6d9363" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/php-fig/http-message/zipball/f6561bf28d520154e4b0ec72be95418abe6d9363", + "reference": "f6561bf28d520154e4b0ec72be95418abe6d9363", + "shasum": "" + }, + "require": { + "php": ">=5.3.0" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-master": "1.0.x-dev" + } + }, + "autoload": { + "psr-4": { + "Psr\\Http\\Message\\": "src/" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "PHP-FIG", + "homepage": "http://www.php-fig.org/" + } + ], + "description": "Common interface for HTTP messages", + "homepage": "https://github.com/php-fig/http-message", + "keywords": [ + "http", + "http-message", + "psr", + "psr-7", + "request", + "response" + ], + "support": { + "source": "https://github.com/php-fig/http-message/tree/master" + }, + "time": "2016-08-06T14:39:51+00:00" + }, + { + "name": "ralouphie/getallheaders", + "version": "3.0.3", + "source": { + "type": "git", + "url": "https://github.com/ralouphie/getallheaders.git", + "reference": "120b605dfeb996808c31b6477290a714d356e822" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/ralouphie/getallheaders/zipball/120b605dfeb996808c31b6477290a714d356e822", + "reference": "120b605dfeb996808c31b6477290a714d356e822", + "shasum": "" + }, + "require": { + "php": ">=5.6" + }, + "require-dev": { + "php-coveralls/php-coveralls": "^2.1", + "phpunit/phpunit": "^5 || ^6.5" + }, + "type": "library", + "autoload": { + "files": [ + "src/getallheaders.php" + ] + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Ralph Khattar", + "email": "ralph.khattar@gmail.com" + } + ], + "description": "A polyfill for getallheaders.", + "support": { + "issues": "https://github.com/ralouphie/getallheaders/issues", + "source": "https://github.com/ralouphie/getallheaders/tree/develop" + }, + "time": "2019-03-08T08:55:37+00:00" + }, + { + "name": "respect/stringifier", + "version": "0.2.0", + "source": { + "type": "git", + "url": "https://github.com/Respect/Stringifier.git", + "reference": "e55af3c8aeaeaa2abb5fa47a58a8e9688cc23b59" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/Respect/Stringifier/zipball/e55af3c8aeaeaa2abb5fa47a58a8e9688cc23b59", + "reference": "e55af3c8aeaeaa2abb5fa47a58a8e9688cc23b59", + "shasum": "" + }, + "require": { + "php": ">=7.1" + }, + "require-dev": { + "friendsofphp/php-cs-fixer": "^2.8", + "malukenho/docheader": "^0.1.7", + "phpunit/phpunit": "^6.4" + }, + "type": "library", + "autoload": { + "files": [ + "src/stringify.php" + ], + "psr-4": { + "Respect\\Stringifier\\": "src/" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Respect/Stringifier Contributors", + "homepage": "https://github.com/Respect/Stringifier/graphs/contributors" + } + ], + "description": "Converts any value to a string", + "homepage": "http://respect.github.io/Stringifier/", + "keywords": [ + "respect", + "stringifier", + "stringify" + ], + "support": { + "issues": "https://github.com/Respect/Stringifier/issues", + "source": "https://github.com/Respect/Stringifier/tree/0.2.0" + }, + "time": "2017-12-29T19:39:25+00:00" + }, + { + "name": "respect/validation", + "version": "2.2.3", + "source": { + "type": "git", + "url": "https://github.com/Respect/Validation.git", + "reference": "4c21a7ffc9a4915673cb2c2843963919e664e627" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/Respect/Validation/zipball/4c21a7ffc9a4915673cb2c2843963919e664e627", + "reference": "4c21a7ffc9a4915673cb2c2843963919e664e627", + "shasum": "" + }, + "require": { + "php": "^7.3 || ^8.0", + "respect/stringifier": "^0.2.0", + "symfony/polyfill-mbstring": "^1.2" + }, + "require-dev": { + "egulias/email-validator": "^3.0", + "malukenho/docheader": "^0.1", + "mikey179/vfsstream": "^1.6", + "phpstan/phpstan": "^0.12", + "phpstan/phpstan-deprecation-rules": "^0.12", + "phpstan/phpstan-phpunit": "^0.12", + "phpunit/phpunit": "^9.3", + "psr/http-message": "^1.0", + "respect/coding-standard": "^3.0", + "squizlabs/php_codesniffer": "^3.5", + "symfony/validator": "^3.0||^4.0", + "zendframework/zend-validator": "^2.1" + }, + "suggest": { + "egulias/email-validator": "Strict (RFC compliant) email validation", + "ext-bcmath": "Arbitrary Precision Mathematics", + "ext-fileinfo": "File Information", + "ext-mbstring": "Multibyte String Functions", + "symfony/validator": "Use Symfony validator through Respect\\Validation", + "zendframework/zend-validator": "Use Zend Framework validator through Respect\\Validation" + }, + "type": "library", + "autoload": { + "psr-4": { + "Respect\\Validation\\": "library/" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Respect/Validation Contributors", + "homepage": "https://github.com/Respect/Validation/graphs/contributors" + } + ], + "description": "The most awesome validation engine ever created for PHP", + "homepage": "http://respect.github.io/Validation/", + "keywords": [ + "respect", + "validation", + "validator" + ], + "support": { + "issues": "https://github.com/Respect/Validation/issues", + "source": "https://github.com/Respect/Validation/tree/2.2.3" + }, + "time": "2021-03-19T14:12:45+00:00" + }, + { + "name": "symfony/deprecation-contracts", + "version": "v2.5.1", + "source": { + "type": "git", + "url": "https://github.com/symfony/deprecation-contracts.git", + "reference": "e8b495ea28c1d97b5e0c121748d6f9b53d075c66" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/symfony/deprecation-contracts/zipball/e8b495ea28c1d97b5e0c121748d6f9b53d075c66", + "reference": "e8b495ea28c1d97b5e0c121748d6f9b53d075c66", + "shasum": "" + }, + "require": { + "php": ">=7.1" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-main": "2.5-dev" + }, + "thanks": { + "name": "symfony/contracts", + "url": "https://github.com/symfony/contracts" + } + }, + "autoload": { + "files": [ + "function.php" + ] + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Nicolas Grekas", + "email": "p@tchwork.com" + }, + { + "name": "Symfony Community", + "homepage": "https://symfony.com/contributors" + } + ], + "description": "A generic function and convention to trigger deprecation notices", + "homepage": "https://symfony.com", + "support": { + "source": "https://github.com/symfony/deprecation-contracts/tree/v2.5.1" + }, + "funding": [ + { + "url": "https://symfony.com/sponsor", + "type": "custom" + }, + { + "url": "https://github.com/fabpot", + "type": "github" + }, + { + "url": "https://tidelift.com/funding/github/packagist/symfony/symfony", + "type": "tidelift" + } + ], + "time": "2022-01-02T09:53:40+00:00" + }, + { + "name": "symfony/polyfill-mbstring", + "version": "v1.26.0", + "source": { + "type": "git", + "url": "https://github.com/symfony/polyfill-mbstring.git", + "reference": "9344f9cb97f3b19424af1a21a3b0e75b0a7d8d7e" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/symfony/polyfill-mbstring/zipball/9344f9cb97f3b19424af1a21a3b0e75b0a7d8d7e", + "reference": "9344f9cb97f3b19424af1a21a3b0e75b0a7d8d7e", + "shasum": "" + }, + "require": { + "php": ">=7.1" + }, + "provide": { + "ext-mbstring": "*" + }, + "suggest": { + "ext-mbstring": "For best performance" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-main": "1.26-dev" + }, + "thanks": { + "name": "symfony/polyfill", + "url": "https://github.com/symfony/polyfill" + } + }, + "autoload": { + "files": [ + "bootstrap.php" + ], + "psr-4": { + "Symfony\\Polyfill\\Mbstring\\": "" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Nicolas Grekas", + "email": "p@tchwork.com" + }, + { + "name": "Symfony Community", + "homepage": "https://symfony.com/contributors" + } + ], + "description": "Symfony polyfill for the Mbstring extension", + "homepage": "https://symfony.com", + "keywords": [ + "compatibility", + "mbstring", + "polyfill", + "portable", + "shim" + ], + "support": { + "source": "https://github.com/symfony/polyfill-mbstring/tree/v1.26.0" + }, + "funding": [ + { + "url": "https://symfony.com/sponsor", + "type": "custom" + }, + { + "url": "https://github.com/fabpot", + "type": "github" + }, + { + "url": "https://tidelift.com/funding/github/packagist/symfony/symfony", + "type": "tidelift" + } + ], + "time": "2022-05-24T11:49:31+00:00" + } + ], + "packages-dev": [ + { + "name": "brick/math", + "version": "0.9.3", + "source": { + "type": "git", + "url": "https://github.com/brick/math.git", + "reference": "ca57d18f028f84f777b2168cd1911b0dee2343ae" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/brick/math/zipball/ca57d18f028f84f777b2168cd1911b0dee2343ae", + "reference": "ca57d18f028f84f777b2168cd1911b0dee2343ae", + "shasum": "" + }, + "require": { + "ext-json": "*", + "php": "^7.1 || ^8.0" + }, + "require-dev": { + "php-coveralls/php-coveralls": "^2.2", + "phpunit/phpunit": "^7.5.15 || ^8.5 || ^9.0", + "vimeo/psalm": "4.9.2" + }, + "type": "library", + "autoload": { + "psr-4": { + "Brick\\Math\\": "src/" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "description": "Arbitrary-precision arithmetic library", + "keywords": [ + "Arbitrary-precision", + "BigInteger", + "BigRational", + "arithmetic", + "bigdecimal", + "bignum", + "brick", + "math" + ], + "support": { + "issues": "https://github.com/brick/math/issues", + "source": "https://github.com/brick/math/tree/0.9.3" + }, + "funding": [ + { + "url": "https://github.com/BenMorel", + "type": "github" + }, + { + "url": "https://tidelift.com/funding/github/packagist/brick/math", + "type": "tidelift" + } + ], + "time": "2021-08-15T20:50:18+00:00" + }, + { + "name": "dealerdirect/phpcodesniffer-composer-installer", + "version": "v0.7.2", + "source": { + "type": "git", + "url": "https://github.com/Dealerdirect/phpcodesniffer-composer-installer.git", + "reference": "1c968e542d8843d7cd71de3c5c9c3ff3ad71a1db" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/Dealerdirect/phpcodesniffer-composer-installer/zipball/1c968e542d8843d7cd71de3c5c9c3ff3ad71a1db", + "reference": "1c968e542d8843d7cd71de3c5c9c3ff3ad71a1db", + "shasum": "" + }, + "require": { + "composer-plugin-api": "^1.0 || ^2.0", + "php": ">=5.3", + "squizlabs/php_codesniffer": "^2.0 || ^3.1.0 || ^4.0" + }, + "require-dev": { + "composer/composer": "*", + "php-parallel-lint/php-parallel-lint": "^1.3.1", + "phpcompatibility/php-compatibility": "^9.0" + }, + "type": "composer-plugin", + "extra": { + "class": "Dealerdirect\\Composer\\Plugin\\Installers\\PHPCodeSniffer\\Plugin" + }, + "autoload": { + "psr-4": { + "Dealerdirect\\Composer\\Plugin\\Installers\\PHPCodeSniffer\\": "src/" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Franck Nijhof", + "email": "franck.nijhof@dealerdirect.com", + "homepage": "http://www.frenck.nl", + "role": "Developer / IT Manager" + }, + { + "name": "Contributors", + "homepage": "https://github.com/Dealerdirect/phpcodesniffer-composer-installer/graphs/contributors" + } + ], + "description": "PHP_CodeSniffer Standards Composer Installer Plugin", + "homepage": "http://www.dealerdirect.com", + "keywords": [ + "PHPCodeSniffer", + "PHP_CodeSniffer", + "code quality", + "codesniffer", + "composer", + "installer", + "phpcbf", + "phpcs", + "plugin", + "qa", + "quality", + "standard", + "standards", + "style guide", + "stylecheck", + "tests" + ], + "support": { + "issues": "https://github.com/dealerdirect/phpcodesniffer-composer-installer/issues", + "source": "https://github.com/dealerdirect/phpcodesniffer-composer-installer" + }, + "time": "2022-02-04T12:51:07+00:00" + }, + { + "name": "doctrine/inflector", + "version": "2.0.4", + "source": { + "type": "git", + "url": "https://github.com/doctrine/inflector.git", + "reference": "8b7ff3e4b7de6b2c84da85637b59fd2880ecaa89" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/doctrine/inflector/zipball/8b7ff3e4b7de6b2c84da85637b59fd2880ecaa89", + "reference": "8b7ff3e4b7de6b2c84da85637b59fd2880ecaa89", + "shasum": "" + }, + "require": { + "php": "^7.2 || ^8.0" + }, + "require-dev": { + "doctrine/coding-standard": "^8.2", + "phpstan/phpstan": "^0.12", + "phpstan/phpstan-phpunit": "^0.12", + "phpstan/phpstan-strict-rules": "^0.12", + "phpunit/phpunit": "^7.0 || ^8.0 || ^9.0", + "vimeo/psalm": "^4.10" + }, + "type": "library", + "autoload": { + "psr-4": { + "Doctrine\\Inflector\\": "lib/Doctrine/Inflector" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Guilherme Blanco", + "email": "guilhermeblanco@gmail.com" + }, + { + "name": "Roman Borschel", + "email": "roman@code-factory.org" + }, + { + "name": "Benjamin Eberlei", + "email": "kontakt@beberlei.de" + }, + { + "name": "Jonathan Wage", + "email": "jonwage@gmail.com" + }, + { + "name": "Johannes Schmitt", + "email": "schmittjoh@gmail.com" + } + ], + "description": "PHP Doctrine Inflector is a small library that can perform string manipulations with regard to upper/lowercase and singular/plural forms of words.", + "homepage": "https://www.doctrine-project.org/projects/inflector.html", + "keywords": [ + "inflection", + "inflector", + "lowercase", + "manipulation", + "php", + "plural", + "singular", + "strings", + "uppercase", + "words" + ], + "support": { + "issues": "https://github.com/doctrine/inflector/issues", + "source": "https://github.com/doctrine/inflector/tree/2.0.4" + }, + "funding": [ + { + "url": "https://www.doctrine-project.org/sponsorship.html", + "type": "custom" + }, + { + "url": "https://www.patreon.com/phpdoctrine", + "type": "patreon" + }, + { + "url": "https://tidelift.com/funding/github/packagist/doctrine%2Finflector", + "type": "tidelift" + } + ], + "time": "2021-10-22T20:16:43+00:00" + }, + { + "name": "doctrine/instantiator", + "version": "1.4.1", + "source": { + "type": "git", + "url": "https://github.com/doctrine/instantiator.git", + "reference": "10dcfce151b967d20fde1b34ae6640712c3891bc" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/doctrine/instantiator/zipball/10dcfce151b967d20fde1b34ae6640712c3891bc", + "reference": "10dcfce151b967d20fde1b34ae6640712c3891bc", + "shasum": "" + }, + "require": { + "php": "^7.1 || ^8.0" + }, + "require-dev": { + "doctrine/coding-standard": "^9", + "ext-pdo": "*", + "ext-phar": "*", + "phpbench/phpbench": "^0.16 || ^1", + "phpstan/phpstan": "^1.4", + "phpstan/phpstan-phpunit": "^1", + "phpunit/phpunit": "^7.5 || ^8.5 || ^9.5", + "vimeo/psalm": "^4.22" + }, + "type": "library", + "autoload": { + "psr-4": { + "Doctrine\\Instantiator\\": "src/Doctrine/Instantiator/" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Marco Pivetta", + "email": "ocramius@gmail.com", + "homepage": "https://ocramius.github.io/" + } + ], + "description": "A small, lightweight utility to instantiate objects in PHP without invoking their constructors", + "homepage": "https://www.doctrine-project.org/projects/instantiator.html", + "keywords": [ + "constructor", + "instantiate" + ], + "support": { + "issues": "https://github.com/doctrine/instantiator/issues", + "source": "https://github.com/doctrine/instantiator/tree/1.4.1" + }, + "funding": [ + { + "url": "https://www.doctrine-project.org/sponsorship.html", + "type": "custom" + }, + { + "url": "https://www.patreon.com/phpdoctrine", + "type": "patreon" + }, + { + "url": "https://tidelift.com/funding/github/packagist/doctrine%2Finstantiator", + "type": "tidelift" + } + ], + "time": "2022-03-03T08:28:38+00:00" + }, + { + "name": "doctrine/lexer", + "version": "1.2.3", + "source": { + "type": "git", + "url": "https://github.com/doctrine/lexer.git", + "reference": "c268e882d4dbdd85e36e4ad69e02dc284f89d229" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/doctrine/lexer/zipball/c268e882d4dbdd85e36e4ad69e02dc284f89d229", + "reference": "c268e882d4dbdd85e36e4ad69e02dc284f89d229", + "shasum": "" + }, + "require": { + "php": "^7.1 || ^8.0" + }, + "require-dev": { + "doctrine/coding-standard": "^9.0", + "phpstan/phpstan": "^1.3", + "phpunit/phpunit": "^7.5 || ^8.5 || ^9.5", + "vimeo/psalm": "^4.11" + }, + "type": "library", + "autoload": { + "psr-4": { + "Doctrine\\Common\\Lexer\\": "lib/Doctrine/Common/Lexer" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Guilherme Blanco", + "email": "guilhermeblanco@gmail.com" + }, + { + "name": "Roman Borschel", + "email": "roman@code-factory.org" + }, + { + "name": "Johannes Schmitt", + "email": "schmittjoh@gmail.com" + } + ], + "description": "PHP Doctrine Lexer parser library that can be used in Top-Down, Recursive Descent Parsers.", + "homepage": "https://www.doctrine-project.org/projects/lexer.html", + "keywords": [ + "annotations", + "docblock", + "lexer", + "parser", + "php" + ], + "support": { + "issues": "https://github.com/doctrine/lexer/issues", + "source": "https://github.com/doctrine/lexer/tree/1.2.3" + }, + "funding": [ + { + "url": "https://www.doctrine-project.org/sponsorship.html", + "type": "custom" + }, + { + "url": "https://www.patreon.com/phpdoctrine", + "type": "patreon" + }, + { + "url": "https://tidelift.com/funding/github/packagist/doctrine%2Flexer", + "type": "tidelift" + } + ], + "time": "2022-02-28T11:07:21+00:00" + }, + { + "name": "dragonmantank/cron-expression", + "version": "v3.3.1", + "source": { + "type": "git", + "url": "https://github.com/dragonmantank/cron-expression.git", + "reference": "be85b3f05b46c39bbc0d95f6c071ddff669510fa" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/dragonmantank/cron-expression/zipball/be85b3f05b46c39bbc0d95f6c071ddff669510fa", + "reference": "be85b3f05b46c39bbc0d95f6c071ddff669510fa", + "shasum": "" + }, + "require": { + "php": "^7.2|^8.0", + "webmozart/assert": "^1.0" + }, + "replace": { + "mtdowling/cron-expression": "^1.0" + }, + "require-dev": { + "phpstan/extension-installer": "^1.0", + "phpstan/phpstan": "^1.0", + "phpstan/phpstan-webmozart-assert": "^1.0", + "phpunit/phpunit": "^7.0|^8.0|^9.0" + }, + "type": "library", + "autoload": { + "psr-4": { + "Cron\\": "src/Cron/" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Chris Tankersley", + "email": "chris@ctankersley.com", + "homepage": "https://github.com/dragonmantank" + } + ], + "description": "CRON for PHP: Calculate the next or previous run date and determine if a CRON expression is due", + "keywords": [ + "cron", + "schedule" + ], + "support": { + "issues": "https://github.com/dragonmantank/cron-expression/issues", + "source": "https://github.com/dragonmantank/cron-expression/tree/v3.3.1" + }, + "funding": [ + { + "url": "https://github.com/dragonmantank", + "type": "github" + } + ], + "time": "2022-01-18T15:43:28+00:00" + }, + { + "name": "egulias/email-validator", + "version": "2.1.25", + "source": { + "type": "git", + "url": "https://github.com/egulias/EmailValidator.git", + "reference": "0dbf5d78455d4d6a41d186da50adc1122ec066f4" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/egulias/EmailValidator/zipball/0dbf5d78455d4d6a41d186da50adc1122ec066f4", + "reference": "0dbf5d78455d4d6a41d186da50adc1122ec066f4", + "shasum": "" + }, + "require": { + "doctrine/lexer": "^1.0.1", + "php": ">=5.5", + "symfony/polyfill-intl-idn": "^1.10" + }, + "require-dev": { + "dominicsayers/isemail": "^3.0.7", + "phpunit/phpunit": "^4.8.36|^7.5.15", + "satooshi/php-coveralls": "^1.0.1" + }, + "suggest": { + "ext-intl": "PHP Internationalization Libraries are required to use the SpoofChecking validation" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-master": "2.1.x-dev" + } + }, + "autoload": { + "psr-4": { + "Egulias\\EmailValidator\\": "src" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Eduardo Gulias Davis" + } + ], + "description": "A library for validating emails against several RFCs", + "homepage": "https://github.com/egulias/EmailValidator", + "keywords": [ + "email", + "emailvalidation", + "emailvalidator", + "validation", + "validator" + ], + "support": { + "issues": "https://github.com/egulias/EmailValidator/issues", + "source": "https://github.com/egulias/EmailValidator/tree/2.1.25" + }, + "funding": [ + { + "url": "https://github.com/egulias", + "type": "github" + } + ], + "time": "2020-12-29T14:50:06+00:00" + }, + { + "name": "fakerphp/faker", + "version": "v1.19.0", + "source": { + "type": "git", + "url": "https://github.com/FakerPHP/Faker.git", + "reference": "d7f08a622b3346766325488aa32ddc93ccdecc75" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/FakerPHP/Faker/zipball/d7f08a622b3346766325488aa32ddc93ccdecc75", + "reference": "d7f08a622b3346766325488aa32ddc93ccdecc75", + "shasum": "" + }, + "require": { + "php": "^7.1 || ^8.0", + "psr/container": "^1.0 || ^2.0", + "symfony/deprecation-contracts": "^2.2 || ^3.0" + }, + "conflict": { + "fzaninotto/faker": "*" + }, + "require-dev": { + "bamarni/composer-bin-plugin": "^1.4.1", + "doctrine/persistence": "^1.3 || ^2.0", + "ext-intl": "*", + "symfony/phpunit-bridge": "^4.4 || ^5.2" + }, + "suggest": { + "doctrine/orm": "Required to use Faker\\ORM\\Doctrine", + "ext-curl": "Required by Faker\\Provider\\Image to download images.", + "ext-dom": "Required by Faker\\Provider\\HtmlLorem for generating random HTML.", + "ext-iconv": "Required by Faker\\Provider\\ru_RU\\Text::realText() for generating real Russian text.", + "ext-mbstring": "Required for multibyte Unicode string functionality." + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-main": "v1.19-dev" + } + }, + "autoload": { + "psr-4": { + "Faker\\": "src/Faker/" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "François Zaninotto" + } + ], + "description": "Faker is a PHP library that generates fake data for you.", + "keywords": [ + "data", + "faker", + "fixtures" + ], + "support": { + "issues": "https://github.com/FakerPHP/Faker/issues", + "source": "https://github.com/FakerPHP/Faker/tree/v1.19.0" + }, + "time": "2022-02-02T17:38:57+00:00" + }, + { + "name": "graham-campbell/result-type", + "version": "v1.0.4", + "source": { + "type": "git", + "url": "https://github.com/GrahamCampbell/Result-Type.git", + "reference": "0690bde05318336c7221785f2a932467f98b64ca" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/GrahamCampbell/Result-Type/zipball/0690bde05318336c7221785f2a932467f98b64ca", + "reference": "0690bde05318336c7221785f2a932467f98b64ca", + "shasum": "" + }, + "require": { + "php": "^7.0 || ^8.0", + "phpoption/phpoption": "^1.8" + }, + "require-dev": { + "phpunit/phpunit": "^6.5.14 || ^7.5.20 || ^8.5.19 || ^9.5.8" + }, + "type": "library", + "autoload": { + "psr-4": { + "GrahamCampbell\\ResultType\\": "src/" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Graham Campbell", + "email": "hello@gjcampbell.co.uk", + "homepage": "https://github.com/GrahamCampbell" + } + ], + "description": "An Implementation Of The Result Type", + "keywords": [ + "Graham Campbell", + "GrahamCampbell", + "Result Type", + "Result-Type", + "result" + ], + "support": { + "issues": "https://github.com/GrahamCampbell/Result-Type/issues", + "source": "https://github.com/GrahamCampbell/Result-Type/tree/v1.0.4" + }, + "funding": [ + { + "url": "https://github.com/GrahamCampbell", + "type": "github" + }, + { + "url": "https://tidelift.com/funding/github/packagist/graham-campbell/result-type", + "type": "tidelift" + } + ], + "time": "2021-11-21T21:41:47+00:00" + }, + { + "name": "hamcrest/hamcrest-php", + "version": "v2.0.1", + "source": { + "type": "git", + "url": "https://github.com/hamcrest/hamcrest-php.git", + "reference": "8c3d0a3f6af734494ad8f6fbbee0ba92422859f3" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/hamcrest/hamcrest-php/zipball/8c3d0a3f6af734494ad8f6fbbee0ba92422859f3", + "reference": "8c3d0a3f6af734494ad8f6fbbee0ba92422859f3", + "shasum": "" + }, + "require": { + "php": "^5.3|^7.0|^8.0" + }, + "replace": { + "cordoval/hamcrest-php": "*", + "davedevelopment/hamcrest-php": "*", + "kodova/hamcrest-php": "*" + }, + "require-dev": { + "phpunit/php-file-iterator": "^1.4 || ^2.0", + "phpunit/phpunit": "^4.8.36 || ^5.7 || ^6.5 || ^7.0" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-master": "2.1-dev" + } + }, + "autoload": { + "classmap": [ + "hamcrest" + ] + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "BSD-3-Clause" + ], + "description": "This is the PHP port of Hamcrest Matchers", + "keywords": [ + "test" + ], + "support": { + "issues": "https://github.com/hamcrest/hamcrest-php/issues", + "source": "https://github.com/hamcrest/hamcrest-php/tree/v2.0.1" + }, + "time": "2020-07-09T08:09:16+00:00" + }, + { + "name": "laravel/framework", + "version": "v8.83.16", + "source": { + "type": "git", + "url": "https://github.com/laravel/framework.git", + "reference": "6be5abd144faf517879af7298e9d79f06f250f75" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/laravel/framework/zipball/6be5abd144faf517879af7298e9d79f06f250f75", + "reference": "6be5abd144faf517879af7298e9d79f06f250f75", + "shasum": "" + }, + "require": { + "doctrine/inflector": "^1.4|^2.0", + "dragonmantank/cron-expression": "^3.0.2", + "egulias/email-validator": "^2.1.10", + "ext-json": "*", + "ext-mbstring": "*", + "ext-openssl": "*", + "laravel/serializable-closure": "^1.0", + "league/commonmark": "^1.3|^2.0.2", + "league/flysystem": "^1.1", + "monolog/monolog": "^2.0", + "nesbot/carbon": "^2.53.1", + "opis/closure": "^3.6", + "php": "^7.3|^8.0", + "psr/container": "^1.0", + "psr/log": "^1.0|^2.0", + "psr/simple-cache": "^1.0", + "ramsey/uuid": "^4.2.2", + "swiftmailer/swiftmailer": "^6.3", + "symfony/console": "^5.4", + "symfony/error-handler": "^5.4", + "symfony/finder": "^5.4", + "symfony/http-foundation": "^5.4", + "symfony/http-kernel": "^5.4", + "symfony/mime": "^5.4", + "symfony/process": "^5.4", + "symfony/routing": "^5.4", + "symfony/var-dumper": "^5.4", + "tijsverkoyen/css-to-inline-styles": "^2.2.2", + "vlucas/phpdotenv": "^5.4.1", + "voku/portable-ascii": "^1.6.1" + }, + "conflict": { + "tightenco/collect": "<5.5.33" + }, + "provide": { + "psr/container-implementation": "1.0", + "psr/simple-cache-implementation": "1.0" + }, + "replace": { + "illuminate/auth": "self.version", + "illuminate/broadcasting": "self.version", + "illuminate/bus": "self.version", + "illuminate/cache": "self.version", + "illuminate/collections": "self.version", + "illuminate/config": "self.version", + "illuminate/console": "self.version", + "illuminate/container": "self.version", + "illuminate/contracts": "self.version", + "illuminate/cookie": "self.version", + "illuminate/database": "self.version", + "illuminate/encryption": "self.version", + "illuminate/events": "self.version", + "illuminate/filesystem": "self.version", + "illuminate/hashing": "self.version", + "illuminate/http": "self.version", + "illuminate/log": "self.version", + "illuminate/macroable": "self.version", + "illuminate/mail": "self.version", + "illuminate/notifications": "self.version", + "illuminate/pagination": "self.version", + "illuminate/pipeline": "self.version", + "illuminate/queue": "self.version", + "illuminate/redis": "self.version", + "illuminate/routing": "self.version", + "illuminate/session": "self.version", + "illuminate/support": "self.version", + "illuminate/testing": "self.version", + "illuminate/translation": "self.version", + "illuminate/validation": "self.version", + "illuminate/view": "self.version" + }, + "require-dev": { + "aws/aws-sdk-php": "^3.198.1", + "doctrine/dbal": "^2.13.3|^3.1.4", + "filp/whoops": "^2.14.3", + "guzzlehttp/guzzle": "^6.5.5|^7.0.1", + "league/flysystem-cached-adapter": "^1.0", + "mockery/mockery": "^1.4.4", + "orchestra/testbench-core": "^6.27", + "pda/pheanstalk": "^4.0", + "phpunit/phpunit": "^8.5.19|^9.5.8", + "predis/predis": "^1.1.9", + "symfony/cache": "^5.4" + }, + "suggest": { + "ably/ably-php": "Required to use the Ably broadcast driver (^1.0).", + "aws/aws-sdk-php": "Required to use the SQS queue driver, DynamoDb failed job storage and SES mail driver (^3.198.1).", + "brianium/paratest": "Required to run tests in parallel (^6.0).", + "doctrine/dbal": "Required to rename columns and drop SQLite columns (^2.13.3|^3.1.4).", + "ext-bcmath": "Required to use the multiple_of validation rule.", + "ext-ftp": "Required to use the Flysystem FTP driver.", + "ext-gd": "Required to use Illuminate\\Http\\Testing\\FileFactory::image().", + "ext-memcached": "Required to use the memcache cache driver.", + "ext-pcntl": "Required to use all features of the queue worker.", + "ext-posix": "Required to use all features of the queue worker.", + "ext-redis": "Required to use the Redis cache and queue drivers (^4.0|^5.0).", + "fakerphp/faker": "Required to use the eloquent factory builder (^1.9.1).", + "filp/whoops": "Required for friendly error pages in development (^2.14.3).", + "guzzlehttp/guzzle": "Required to use the HTTP Client, Mailgun mail driver and the ping methods on schedules (^6.5.5|^7.0.1).", + "laravel/tinker": "Required to use the tinker console command (^2.0).", + "league/flysystem-aws-s3-v3": "Required to use the Flysystem S3 driver (^1.0).", + "league/flysystem-cached-adapter": "Required to use the Flysystem cache (^1.0).", + "league/flysystem-sftp": "Required to use the Flysystem SFTP driver (^1.0).", + "mockery/mockery": "Required to use mocking (^1.4.4).", + "nyholm/psr7": "Required to use PSR-7 bridging features (^1.2).", + "pda/pheanstalk": "Required to use the beanstalk queue driver (^4.0).", + "phpunit/phpunit": "Required to use assertions and run tests (^8.5.19|^9.5.8).", + "predis/predis": "Required to use the predis connector (^1.1.9).", + "psr/http-message": "Required to allow Storage::put to accept a StreamInterface (^1.0).", + "pusher/pusher-php-server": "Required to use the Pusher broadcast driver (^4.0|^5.0|^6.0|^7.0).", + "symfony/cache": "Required to PSR-6 cache bridge (^5.4).", + "symfony/filesystem": "Required to enable support for relative symbolic links (^5.4).", + "symfony/psr-http-message-bridge": "Required to use PSR-7 bridging features (^2.0).", + "wildbit/swiftmailer-postmark": "Required to use Postmark mail driver (^3.0)." + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-master": "8.x-dev" + } + }, + "autoload": { + "files": [ + "src/Illuminate/Collections/helpers.php", + "src/Illuminate/Events/functions.php", + "src/Illuminate/Foundation/helpers.php", + "src/Illuminate/Support/helpers.php" + ], + "psr-4": { + "Illuminate\\": "src/Illuminate/", + "Illuminate\\Support\\": [ + "src/Illuminate/Macroable/", + "src/Illuminate/Collections/" + ] + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Taylor Otwell", + "email": "taylor@laravel.com" + } + ], + "description": "The Laravel Framework.", + "homepage": "https://laravel.com", + "keywords": [ + "framework", + "laravel" + ], + "support": { + "issues": "https://github.com/laravel/framework/issues", + "source": "https://github.com/laravel/framework" + }, + "time": "2022-06-07T15:09:06+00:00" + }, + { + "name": "laravel/serializable-closure", + "version": "v1.2.0", + "source": { + "type": "git", + "url": "https://github.com/laravel/serializable-closure.git", + "reference": "09f0e9fb61829f628205b7c94906c28740ff9540" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/laravel/serializable-closure/zipball/09f0e9fb61829f628205b7c94906c28740ff9540", + "reference": "09f0e9fb61829f628205b7c94906c28740ff9540", + "shasum": "" + }, + "require": { + "php": "^7.3|^8.0" + }, + "require-dev": { + "pestphp/pest": "^1.18", + "phpstan/phpstan": "^0.12.98", + "symfony/var-dumper": "^5.3" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-master": "1.x-dev" + } + }, + "autoload": { + "psr-4": { + "Laravel\\SerializableClosure\\": "src/" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Taylor Otwell", + "email": "taylor@laravel.com" + }, + { + "name": "Nuno Maduro", + "email": "nuno@laravel.com" + } + ], + "description": "Laravel Serializable Closure provides an easy and secure way to serialize closures in PHP.", + "keywords": [ + "closure", + "laravel", + "serializable" + ], + "support": { + "issues": "https://github.com/laravel/serializable-closure/issues", + "source": "https://github.com/laravel/serializable-closure" + }, + "time": "2022-05-16T17:09:47+00:00" + }, + { + "name": "league/commonmark", + "version": "1.6.7", + "source": { + "type": "git", + "url": "https://github.com/thephpleague/commonmark.git", + "reference": "2b8185c13bc9578367a5bf901881d1c1b5bbd09b" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/thephpleague/commonmark/zipball/2b8185c13bc9578367a5bf901881d1c1b5bbd09b", + "reference": "2b8185c13bc9578367a5bf901881d1c1b5bbd09b", + "shasum": "" + }, + "require": { + "ext-mbstring": "*", + "php": "^7.1 || ^8.0" + }, + "conflict": { + "scrutinizer/ocular": "1.7.*" + }, + "require-dev": { + "cebe/markdown": "~1.0", + "commonmark/commonmark.js": "0.29.2", + "erusev/parsedown": "~1.0", + "ext-json": "*", + "github/gfm": "0.29.0", + "michelf/php-markdown": "~1.4", + "mikehaertl/php-shellcommand": "^1.4", + "phpstan/phpstan": "^0.12.90", + "phpunit/phpunit": "^7.5 || ^8.5 || ^9.2", + "scrutinizer/ocular": "^1.5", + "symfony/finder": "^4.2" + }, + "bin": [ + "bin/commonmark" + ], + "type": "library", + "autoload": { + "psr-4": { + "League\\CommonMark\\": "src" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "BSD-3-Clause" + ], + "authors": [ + { + "name": "Colin O'Dell", + "email": "colinodell@gmail.com", + "homepage": "https://www.colinodell.com", + "role": "Lead Developer" + } + ], + "description": "Highly-extensible PHP Markdown parser which fully supports the CommonMark spec and Github-Flavored Markdown (GFM)", + "homepage": "https://commonmark.thephpleague.com", + "keywords": [ + "commonmark", + "flavored", + "gfm", + "github", + "github-flavored", + "markdown", + "md", + "parser" + ], + "support": { + "docs": "https://commonmark.thephpleague.com/", + "issues": "https://github.com/thephpleague/commonmark/issues", + "rss": "https://github.com/thephpleague/commonmark/releases.atom", + "source": "https://github.com/thephpleague/commonmark" + }, + "funding": [ + { + "url": "https://www.colinodell.com/sponsor", + "type": "custom" + }, + { + "url": "https://www.paypal.me/colinpodell/10.00", + "type": "custom" + }, + { + "url": "https://github.com/colinodell", + "type": "github" + }, + { + "url": "https://tidelift.com/funding/github/packagist/league/commonmark", + "type": "tidelift" + } + ], + "time": "2022-01-13T17:18:13+00:00" + }, + { + "name": "league/flysystem", + "version": "1.1.9", + "source": { + "type": "git", + "url": "https://github.com/thephpleague/flysystem.git", + "reference": "094defdb4a7001845300334e7c1ee2335925ef99" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/thephpleague/flysystem/zipball/094defdb4a7001845300334e7c1ee2335925ef99", + "reference": "094defdb4a7001845300334e7c1ee2335925ef99", + "shasum": "" + }, + "require": { + "ext-fileinfo": "*", + "league/mime-type-detection": "^1.3", + "php": "^7.2.5 || ^8.0" + }, + "conflict": { + "league/flysystem-sftp": "<1.0.6" + }, + "require-dev": { + "phpspec/prophecy": "^1.11.1", + "phpunit/phpunit": "^8.5.8" + }, + "suggest": { + "ext-ftp": "Allows you to use FTP server storage", + "ext-openssl": "Allows you to use FTPS server storage", + "league/flysystem-aws-s3-v2": "Allows you to use S3 storage with AWS SDK v2", + "league/flysystem-aws-s3-v3": "Allows you to use S3 storage with AWS SDK v3", + "league/flysystem-azure": "Allows you to use Windows Azure Blob storage", + "league/flysystem-cached-adapter": "Flysystem adapter decorator for metadata caching", + "league/flysystem-eventable-filesystem": "Allows you to use EventableFilesystem", + "league/flysystem-rackspace": "Allows you to use Rackspace Cloud Files", + "league/flysystem-sftp": "Allows you to use SFTP server storage via phpseclib", + "league/flysystem-webdav": "Allows you to use WebDAV storage", + "league/flysystem-ziparchive": "Allows you to use ZipArchive adapter", + "spatie/flysystem-dropbox": "Allows you to use Dropbox storage", + "srmklive/flysystem-dropbox-v2": "Allows you to use Dropbox storage for PHP 5 applications" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-master": "1.1-dev" + } + }, + "autoload": { + "psr-4": { + "League\\Flysystem\\": "src/" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Frank de Jonge", + "email": "info@frenky.net" + } + ], + "description": "Filesystem abstraction: Many filesystems, one API.", + "keywords": [ + "Cloud Files", + "WebDAV", + "abstraction", + "aws", + "cloud", + "copy.com", + "dropbox", + "file systems", + "files", + "filesystem", + "filesystems", + "ftp", + "rackspace", + "remote", + "s3", + "sftp", + "storage" + ], + "support": { + "issues": "https://github.com/thephpleague/flysystem/issues", + "source": "https://github.com/thephpleague/flysystem/tree/1.1.9" + }, + "funding": [ + { + "url": "https://offset.earth/frankdejonge", + "type": "other" + } + ], + "time": "2021-12-09T09:40:50+00:00" + }, + { + "name": "league/mime-type-detection", + "version": "1.11.0", + "source": { + "type": "git", + "url": "https://github.com/thephpleague/mime-type-detection.git", + "reference": "ff6248ea87a9f116e78edd6002e39e5128a0d4dd" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/thephpleague/mime-type-detection/zipball/ff6248ea87a9f116e78edd6002e39e5128a0d4dd", + "reference": "ff6248ea87a9f116e78edd6002e39e5128a0d4dd", + "shasum": "" + }, + "require": { + "ext-fileinfo": "*", + "php": "^7.2 || ^8.0" + }, + "require-dev": { + "friendsofphp/php-cs-fixer": "^3.2", + "phpstan/phpstan": "^0.12.68", + "phpunit/phpunit": "^8.5.8 || ^9.3" + }, + "type": "library", + "autoload": { + "psr-4": { + "League\\MimeTypeDetection\\": "src" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Frank de Jonge", + "email": "info@frankdejonge.nl" + } + ], + "description": "Mime-type detection for Flysystem", + "support": { + "issues": "https://github.com/thephpleague/mime-type-detection/issues", + "source": "https://github.com/thephpleague/mime-type-detection/tree/1.11.0" + }, + "funding": [ + { + "url": "https://github.com/frankdejonge", + "type": "github" + }, + { + "url": "https://tidelift.com/funding/github/packagist/league/flysystem", + "type": "tidelift" + } + ], + "time": "2022-04-17T13:12:02+00:00" + }, + { + "name": "mockery/mockery", + "version": "1.5.0", + "source": { + "type": "git", + "url": "https://github.com/mockery/mockery.git", + "reference": "c10a5f6e06fc2470ab1822fa13fa2a7380f8fbac" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/mockery/mockery/zipball/c10a5f6e06fc2470ab1822fa13fa2a7380f8fbac", + "reference": "c10a5f6e06fc2470ab1822fa13fa2a7380f8fbac", + "shasum": "" + }, + "require": { + "hamcrest/hamcrest-php": "^2.0.1", + "lib-pcre": ">=7.0", + "php": "^7.3 || ^8.0" + }, + "conflict": { + "phpunit/phpunit": "<8.0" + }, + "require-dev": { + "phpunit/phpunit": "^8.5 || ^9.3" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-master": "1.4.x-dev" + } + }, + "autoload": { + "psr-0": { + "Mockery": "library/" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "BSD-3-Clause" + ], + "authors": [ + { + "name": "Pádraic Brady", + "email": "padraic.brady@gmail.com", + "homepage": "http://blog.astrumfutura.com" + }, + { + "name": "Dave Marshall", + "email": "dave.marshall@atstsolutions.co.uk", + "homepage": "http://davedevelopment.co.uk" + } + ], + "description": "Mockery is a simple yet flexible PHP mock object framework", + "homepage": "https://github.com/mockery/mockery", + "keywords": [ + "BDD", + "TDD", + "library", + "mock", + "mock objects", + "mockery", + "stub", + "test", + "test double", + "testing" + ], + "support": { + "issues": "https://github.com/mockery/mockery/issues", + "source": "https://github.com/mockery/mockery/tree/1.5.0" + }, + "time": "2022-01-20T13:18:17+00:00" + }, + { + "name": "monolog/monolog", + "version": "2.7.0", + "source": { + "type": "git", + "url": "https://github.com/Seldaek/monolog.git", + "reference": "5579edf28aee1190a798bfa5be8bc16c563bd524" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/Seldaek/monolog/zipball/5579edf28aee1190a798bfa5be8bc16c563bd524", + "reference": "5579edf28aee1190a798bfa5be8bc16c563bd524", + "shasum": "" + }, + "require": { + "php": ">=7.2", + "psr/log": "^1.0.1 || ^2.0 || ^3.0" + }, + "provide": { + "psr/log-implementation": "1.0.0 || 2.0.0 || 3.0.0" + }, + "require-dev": { + "aws/aws-sdk-php": "^2.4.9 || ^3.0", + "doctrine/couchdb": "~1.0@dev", + "elasticsearch/elasticsearch": "^7 || ^8", + "ext-json": "*", + "graylog2/gelf-php": "^1.4.2", + "guzzlehttp/guzzle": "^7.4", + "guzzlehttp/psr7": "^2.2", + "mongodb/mongodb": "^1.8", + "php-amqplib/php-amqplib": "~2.4 || ^3", + "php-console/php-console": "^3.1.3", + "phpspec/prophecy": "^1.15", + "phpstan/phpstan": "^0.12.91", + "phpunit/phpunit": "^8.5.14", + "predis/predis": "^1.1", + "rollbar/rollbar": "^1.3 || ^2 || ^3", + "ruflin/elastica": "^7", + "swiftmailer/swiftmailer": "^5.3|^6.0", + "symfony/mailer": "^5.4 || ^6", + "symfony/mime": "^5.4 || ^6" + }, + "suggest": { + "aws/aws-sdk-php": "Allow sending log messages to AWS services like DynamoDB", + "doctrine/couchdb": "Allow sending log messages to a CouchDB server", + "elasticsearch/elasticsearch": "Allow sending log messages to an Elasticsearch server via official client", + "ext-amqp": "Allow sending log messages to an AMQP server (1.0+ required)", + "ext-curl": "Required to send log messages using the IFTTTHandler, the LogglyHandler, the SendGridHandler, the SlackWebhookHandler or the TelegramBotHandler", + "ext-mbstring": "Allow to work properly with unicode symbols", + "ext-mongodb": "Allow sending log messages to a MongoDB server (via driver)", + "ext-openssl": "Required to send log messages using SSL", + "ext-sockets": "Allow sending log messages to a Syslog server (via UDP driver)", + "graylog2/gelf-php": "Allow sending log messages to a GrayLog2 server", + "mongodb/mongodb": "Allow sending log messages to a MongoDB server (via library)", + "php-amqplib/php-amqplib": "Allow sending log messages to an AMQP server using php-amqplib", + "php-console/php-console": "Allow sending log messages to Google Chrome", + "rollbar/rollbar": "Allow sending log messages to Rollbar", + "ruflin/elastica": "Allow sending log messages to an Elastic Search server" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-main": "2.x-dev" + } + }, + "autoload": { + "psr-4": { + "Monolog\\": "src/Monolog" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Jordi Boggiano", + "email": "j.boggiano@seld.be", + "homepage": "https://seld.be" + } + ], + "description": "Sends your logs to files, sockets, inboxes, databases and various web services", + "homepage": "https://github.com/Seldaek/monolog", + "keywords": [ + "log", + "logging", + "psr-3" + ], + "support": { + "issues": "https://github.com/Seldaek/monolog/issues", + "source": "https://github.com/Seldaek/monolog/tree/2.7.0" + }, + "funding": [ + { + "url": "https://github.com/Seldaek", + "type": "github" + }, + { + "url": "https://tidelift.com/funding/github/packagist/monolog/monolog", + "type": "tidelift" + } + ], + "time": "2022-06-09T08:59:12+00:00" + }, + { + "name": "myclabs/deep-copy", + "version": "1.11.0", + "source": { + "type": "git", + "url": "https://github.com/myclabs/DeepCopy.git", + "reference": "14daed4296fae74d9e3201d2c4925d1acb7aa614" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/myclabs/DeepCopy/zipball/14daed4296fae74d9e3201d2c4925d1acb7aa614", + "reference": "14daed4296fae74d9e3201d2c4925d1acb7aa614", + "shasum": "" + }, + "require": { + "php": "^7.1 || ^8.0" + }, + "conflict": { + "doctrine/collections": "<1.6.8", + "doctrine/common": "<2.13.3 || >=3,<3.2.2" + }, + "require-dev": { + "doctrine/collections": "^1.6.8", + "doctrine/common": "^2.13.3 || ^3.2.2", + "phpunit/phpunit": "^7.5.20 || ^8.5.23 || ^9.5.13" + }, + "type": "library", + "autoload": { + "files": [ + "src/DeepCopy/deep_copy.php" + ], + "psr-4": { + "DeepCopy\\": "src/DeepCopy/" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "description": "Create deep copies (clones) of your objects", + "keywords": [ + "clone", + "copy", + "duplicate", + "object", + "object graph" + ], + "support": { + "issues": "https://github.com/myclabs/DeepCopy/issues", + "source": "https://github.com/myclabs/DeepCopy/tree/1.11.0" + }, + "funding": [ + { + "url": "https://tidelift.com/funding/github/packagist/myclabs/deep-copy", + "type": "tidelift" + } + ], + "time": "2022-03-03T13:19:32+00:00" + }, + { + "name": "nesbot/carbon", + "version": "2.58.0", + "source": { + "type": "git", + "url": "https://github.com/briannesbitt/Carbon.git", + "reference": "97a34af22bde8d0ac20ab34b29d7bfe360902055" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/briannesbitt/Carbon/zipball/97a34af22bde8d0ac20ab34b29d7bfe360902055", + "reference": "97a34af22bde8d0ac20ab34b29d7bfe360902055", + "shasum": "" + }, + "require": { + "ext-json": "*", + "php": "^7.1.8 || ^8.0", + "symfony/polyfill-mbstring": "^1.0", + "symfony/polyfill-php80": "^1.16", + "symfony/translation": "^3.4 || ^4.0 || ^5.0 || ^6.0" + }, + "require-dev": { + "doctrine/dbal": "^2.0 || ^3.0", + "doctrine/orm": "^2.7", + "friendsofphp/php-cs-fixer": "^3.0", + "kylekatarnls/multi-tester": "^2.0", + "phpmd/phpmd": "^2.9", + "phpstan/extension-installer": "^1.0", + "phpstan/phpstan": "^0.12.54 || ^1.0", + "phpunit/php-file-iterator": "^2.0.5", + "phpunit/phpunit": "^7.5.20 || ^8.5.23", + "squizlabs/php_codesniffer": "^3.4" + }, + "bin": [ + "bin/carbon" + ], + "type": "library", + "extra": { + "branch-alias": { + "dev-3.x": "3.x-dev", + "dev-master": "2.x-dev" + }, + "laravel": { + "providers": [ + "Carbon\\Laravel\\ServiceProvider" + ] + }, + "phpstan": { + "includes": [ + "extension.neon" + ] + } + }, + "autoload": { + "psr-4": { + "Carbon\\": "src/Carbon/" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Brian Nesbitt", + "email": "brian@nesbot.com", + "homepage": "https://markido.com" + }, + { + "name": "kylekatarnls", + "homepage": "https://github.com/kylekatarnls" + } + ], + "description": "An API extension for DateTime that supports 281 different languages.", + "homepage": "https://carbon.nesbot.com", + "keywords": [ + "date", + "datetime", + "time" + ], + "support": { + "docs": "https://carbon.nesbot.com/docs", + "issues": "https://github.com/briannesbitt/Carbon/issues", + "source": "https://github.com/briannesbitt/Carbon" + }, + "funding": [ + { + "url": "https://opencollective.com/Carbon", + "type": "open_collective" + }, + { + "url": "https://tidelift.com/funding/github/packagist/nesbot/carbon", + "type": "tidelift" + } + ], + "time": "2022-04-25T19:31:17+00:00" + }, + { + "name": "nikic/php-parser", + "version": "v4.14.0", + "source": { + "type": "git", + "url": "https://github.com/nikic/PHP-Parser.git", + "reference": "34bea19b6e03d8153165d8f30bba4c3be86184c1" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/nikic/PHP-Parser/zipball/34bea19b6e03d8153165d8f30bba4c3be86184c1", + "reference": "34bea19b6e03d8153165d8f30bba4c3be86184c1", + "shasum": "" + }, + "require": { + "ext-tokenizer": "*", + "php": ">=7.0" + }, + "require-dev": { + "ircmaxell/php-yacc": "^0.0.7", + "phpunit/phpunit": "^6.5 || ^7.0 || ^8.0 || ^9.0" + }, + "bin": [ + "bin/php-parse" + ], + "type": "library", + "extra": { + "branch-alias": { + "dev-master": "4.9-dev" + } + }, + "autoload": { + "psr-4": { + "PhpParser\\": "lib/PhpParser" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "BSD-3-Clause" + ], + "authors": [ + { + "name": "Nikita Popov" + } + ], + "description": "A PHP parser written in PHP", + "keywords": [ + "parser", + "php" + ], + "support": { + "issues": "https://github.com/nikic/PHP-Parser/issues", + "source": "https://github.com/nikic/PHP-Parser/tree/v4.14.0" + }, + "time": "2022-05-31T20:59:12+00:00" + }, + { + "name": "opis/closure", + "version": "3.6.3", + "source": { + "type": "git", + "url": "https://github.com/opis/closure.git", + "reference": "3d81e4309d2a927abbe66df935f4bb60082805ad" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/opis/closure/zipball/3d81e4309d2a927abbe66df935f4bb60082805ad", + "reference": "3d81e4309d2a927abbe66df935f4bb60082805ad", + "shasum": "" + }, + "require": { + "php": "^5.4 || ^7.0 || ^8.0" + }, + "require-dev": { + "jeremeamia/superclosure": "^2.0", + "phpunit/phpunit": "^4.0 || ^5.0 || ^6.0 || ^7.0 || ^8.0 || ^9.0" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-master": "3.6.x-dev" + } + }, + "autoload": { + "files": [ + "functions.php" + ], + "psr-4": { + "Opis\\Closure\\": "src/" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Marius Sarca", + "email": "marius.sarca@gmail.com" + }, + { + "name": "Sorin Sarca", + "email": "sarca_sorin@hotmail.com" + } + ], + "description": "A library that can be used to serialize closures (anonymous functions) and arbitrary objects.", + "homepage": "https://opis.io/closure", + "keywords": [ + "anonymous functions", + "closure", + "function", + "serializable", + "serialization", + "serialize" + ], + "support": { + "issues": "https://github.com/opis/closure/issues", + "source": "https://github.com/opis/closure/tree/3.6.3" + }, + "time": "2022-01-27T09:35:39+00:00" + }, + { + "name": "orchestra/testbench", + "version": "v6.24.1", + "source": { + "type": "git", + "url": "https://github.com/orchestral/testbench.git", + "reference": "7b6a225851f6c148a80e241af5cbd833c83e572c" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/orchestral/testbench/zipball/7b6a225851f6c148a80e241af5cbd833c83e572c", + "reference": "7b6a225851f6c148a80e241af5cbd833c83e572c", + "shasum": "" + }, + "require": { + "laravel/framework": "^8.75", + "mockery/mockery": "^1.4.4", + "orchestra/testbench-core": "^6.28.1", + "php": "^7.3 || ^8.0", + "phpunit/phpunit": "^8.5.21 || ^9.5.10", + "spatie/laravel-ray": "^1.26.2" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-master": "6.0-dev" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Mior Muhammad Zaki", + "email": "crynobone@gmail.com", + "homepage": "https://github.com/crynobone" + } + ], + "description": "Laravel Testing Helper for Packages Development", + "homepage": "https://packages.tools/testbench/", + "keywords": [ + "BDD", + "TDD", + "laravel", + "orchestra-platform", + "orchestral", + "testing" + ], + "support": { + "issues": "https://github.com/orchestral/testbench/issues", + "source": "https://github.com/orchestral/testbench/tree/v6.24.1" + }, + "funding": [ + { + "url": "https://paypal.me/crynobone", + "type": "custom" + }, + { + "url": "https://liberapay.com/crynobone", + "type": "liberapay" + } + ], + "time": "2022-02-08T12:57:17+00:00" + }, + { + "name": "orchestra/testbench-core", + "version": "v6.28.1", + "source": { + "type": "git", + "url": "https://github.com/orchestral/testbench-core.git", + "reference": "e66074e825e21b40b3433703dc3f76f2bfebebe0" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/orchestral/testbench-core/zipball/e66074e825e21b40b3433703dc3f76f2bfebebe0", + "reference": "e66074e825e21b40b3433703dc3f76f2bfebebe0", + "shasum": "" + }, + "require": { + "fakerphp/faker": "^1.9.1", + "php": "^7.3 || ^8.0", + "symfony/yaml": "^5.0", + "vlucas/phpdotenv": "^5.1" + }, + "require-dev": { + "laravel/framework": "^8.75", + "laravel/laravel": "8.x-dev", + "mockery/mockery": "^1.4.4", + "orchestra/canvas": "^6.1", + "phpunit/phpunit": "^8.5.21 || ^9.5.10 || ^10.0", + "spatie/laravel-ray": "^1.7.1", + "symfony/process": "^5.0" + }, + "suggest": { + "laravel/framework": "Required for testing (^8.75).", + "mockery/mockery": "Allow using Mockery for testing (^1.4.4).", + "orchestra/testbench-browser-kit": "Allow using legacy Laravel BrowserKit for testing (^6.0).", + "orchestra/testbench-dusk": "Allow using Laravel Dusk for testing (^6.0).", + "phpunit/phpunit": "Allow using PHPUnit for testing (^8.5.21|^9.5.10|^10.0)." + }, + "bin": [ + "testbench" + ], + "type": "library", + "extra": { + "branch-alias": { + "dev-master": "6.0-dev" + } + }, + "autoload": { + "files": [ + "src/helpers.php" + ], + "psr-4": { + "Orchestra\\Testbench\\": "src/" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Mior Muhammad Zaki", + "email": "crynobone@gmail.com", + "homepage": "https://github.com/crynobone" + } + ], + "description": "Testing Helper for Laravel Development", + "homepage": "https://packages.tools/testbench", + "keywords": [ + "BDD", + "TDD", + "laravel", + "orchestra-platform", + "orchestral", + "testing" + ], + "support": { + "issues": "https://github.com/orchestral/testbench/issues", + "source": "https://github.com/orchestral/testbench-core" + }, + "funding": [ + { + "url": "https://paypal.me/crynobone", + "type": "custom" + }, + { + "url": "https://liberapay.com/crynobone", + "type": "liberapay" + } + ], + "time": "2022-02-08T12:50:35+00:00" + }, + { + "name": "phar-io/manifest", + "version": "2.0.3", + "source": { + "type": "git", + "url": "https://github.com/phar-io/manifest.git", + "reference": "97803eca37d319dfa7826cc2437fc020857acb53" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/phar-io/manifest/zipball/97803eca37d319dfa7826cc2437fc020857acb53", + "reference": "97803eca37d319dfa7826cc2437fc020857acb53", + "shasum": "" + }, + "require": { + "ext-dom": "*", + "ext-phar": "*", + "ext-xmlwriter": "*", + "phar-io/version": "^3.0.1", + "php": "^7.2 || ^8.0" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-master": "2.0.x-dev" + } + }, + "autoload": { + "classmap": [ + "src/" + ] + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "BSD-3-Clause" + ], + "authors": [ + { + "name": "Arne Blankerts", + "email": "arne@blankerts.de", + "role": "Developer" + }, + { + "name": "Sebastian Heuer", + "email": "sebastian@phpeople.de", + "role": "Developer" + }, + { + "name": "Sebastian Bergmann", + "email": "sebastian@phpunit.de", + "role": "Developer" + } + ], + "description": "Component for reading phar.io manifest information from a PHP Archive (PHAR)", + "support": { + "issues": "https://github.com/phar-io/manifest/issues", + "source": "https://github.com/phar-io/manifest/tree/2.0.3" + }, + "time": "2021-07-20T11:28:43+00:00" + }, + { + "name": "phar-io/version", + "version": "3.2.1", + "source": { + "type": "git", + "url": "https://github.com/phar-io/version.git", + "reference": "4f7fd7836c6f332bb2933569e566a0d6c4cbed74" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/phar-io/version/zipball/4f7fd7836c6f332bb2933569e566a0d6c4cbed74", + "reference": "4f7fd7836c6f332bb2933569e566a0d6c4cbed74", + "shasum": "" + }, + "require": { + "php": "^7.2 || ^8.0" + }, + "type": "library", + "autoload": { + "classmap": [ + "src/" + ] + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "BSD-3-Clause" + ], + "authors": [ + { + "name": "Arne Blankerts", + "email": "arne@blankerts.de", + "role": "Developer" + }, + { + "name": "Sebastian Heuer", + "email": "sebastian@phpeople.de", + "role": "Developer" + }, + { + "name": "Sebastian Bergmann", + "email": "sebastian@phpunit.de", + "role": "Developer" + } + ], + "description": "Library for handling version information and constraints", + "support": { + "issues": "https://github.com/phar-io/version/issues", + "source": "https://github.com/phar-io/version/tree/3.2.1" + }, + "time": "2022-02-21T01:04:05+00:00" + }, + { + "name": "phpdocumentor/reflection-common", + "version": "2.2.0", + "source": { + "type": "git", + "url": "https://github.com/phpDocumentor/ReflectionCommon.git", + "reference": "1d01c49d4ed62f25aa84a747ad35d5a16924662b" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/phpDocumentor/ReflectionCommon/zipball/1d01c49d4ed62f25aa84a747ad35d5a16924662b", + "reference": "1d01c49d4ed62f25aa84a747ad35d5a16924662b", + "shasum": "" + }, + "require": { + "php": "^7.2 || ^8.0" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-2.x": "2.x-dev" + } + }, + "autoload": { + "psr-4": { + "phpDocumentor\\Reflection\\": "src/" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Jaap van Otterdijk", + "email": "opensource@ijaap.nl" + } + ], + "description": "Common reflection classes used by phpdocumentor to reflect the code structure", + "homepage": "http://www.phpdoc.org", + "keywords": [ + "FQSEN", + "phpDocumentor", + "phpdoc", + "reflection", + "static analysis" + ], + "support": { + "issues": "https://github.com/phpDocumentor/ReflectionCommon/issues", + "source": "https://github.com/phpDocumentor/ReflectionCommon/tree/2.x" + }, + "time": "2020-06-27T09:03:43+00:00" + }, + { + "name": "phpdocumentor/reflection-docblock", + "version": "5.3.0", + "source": { + "type": "git", + "url": "https://github.com/phpDocumentor/ReflectionDocBlock.git", + "reference": "622548b623e81ca6d78b721c5e029f4ce664f170" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/phpDocumentor/ReflectionDocBlock/zipball/622548b623e81ca6d78b721c5e029f4ce664f170", + "reference": "622548b623e81ca6d78b721c5e029f4ce664f170", + "shasum": "" + }, + "require": { + "ext-filter": "*", + "php": "^7.2 || ^8.0", + "phpdocumentor/reflection-common": "^2.2", + "phpdocumentor/type-resolver": "^1.3", + "webmozart/assert": "^1.9.1" + }, + "require-dev": { + "mockery/mockery": "~1.3.2", + "psalm/phar": "^4.8" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-master": "5.x-dev" + } + }, + "autoload": { + "psr-4": { + "phpDocumentor\\Reflection\\": "src" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Mike van Riel", + "email": "me@mikevanriel.com" + }, + { + "name": "Jaap van Otterdijk", + "email": "account@ijaap.nl" + } + ], + "description": "With this component, a library can provide support for annotations via DocBlocks or otherwise retrieve information that is embedded in a DocBlock.", + "support": { + "issues": "https://github.com/phpDocumentor/ReflectionDocBlock/issues", + "source": "https://github.com/phpDocumentor/ReflectionDocBlock/tree/5.3.0" + }, + "time": "2021-10-19T17:43:47+00:00" + }, + { + "name": "phpdocumentor/type-resolver", + "version": "1.6.1", + "source": { + "type": "git", + "url": "https://github.com/phpDocumentor/TypeResolver.git", + "reference": "77a32518733312af16a44300404e945338981de3" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/phpDocumentor/TypeResolver/zipball/77a32518733312af16a44300404e945338981de3", + "reference": "77a32518733312af16a44300404e945338981de3", + "shasum": "" + }, + "require": { + "php": "^7.2 || ^8.0", + "phpdocumentor/reflection-common": "^2.0" + }, + "require-dev": { + "ext-tokenizer": "*", + "psalm/phar": "^4.8" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-1.x": "1.x-dev" + } + }, + "autoload": { + "psr-4": { + "phpDocumentor\\Reflection\\": "src" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Mike van Riel", + "email": "me@mikevanriel.com" + } + ], + "description": "A PSR-5 based resolver of Class names, Types and Structural Element Names", + "support": { + "issues": "https://github.com/phpDocumentor/TypeResolver/issues", + "source": "https://github.com/phpDocumentor/TypeResolver/tree/1.6.1" + }, + "time": "2022-03-15T21:29:03+00:00" + }, + { + "name": "phpoption/phpoption", + "version": "1.8.1", + "source": { + "type": "git", + "url": "https://github.com/schmittjoh/php-option.git", + "reference": "eab7a0df01fe2344d172bff4cd6dbd3f8b84ad15" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/schmittjoh/php-option/zipball/eab7a0df01fe2344d172bff4cd6dbd3f8b84ad15", + "reference": "eab7a0df01fe2344d172bff4cd6dbd3f8b84ad15", + "shasum": "" + }, + "require": { + "php": "^7.0 || ^8.0" + }, + "require-dev": { + "bamarni/composer-bin-plugin": "^1.4.1", + "phpunit/phpunit": "^6.5.14 || ^7.5.20 || ^8.5.19 || ^9.5.8" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-master": "1.8-dev" + } + }, + "autoload": { + "psr-4": { + "PhpOption\\": "src/PhpOption/" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "Apache-2.0" + ], + "authors": [ + { + "name": "Johannes M. Schmitt", + "email": "schmittjoh@gmail.com", + "homepage": "https://github.com/schmittjoh" + }, + { + "name": "Graham Campbell", + "email": "hello@gjcampbell.co.uk", + "homepage": "https://github.com/GrahamCampbell" + } + ], + "description": "Option Type for PHP", + "keywords": [ + "language", + "option", + "php", + "type" + ], + "support": { + "issues": "https://github.com/schmittjoh/php-option/issues", + "source": "https://github.com/schmittjoh/php-option/tree/1.8.1" + }, + "funding": [ + { + "url": "https://github.com/GrahamCampbell", + "type": "github" + }, + { + "url": "https://tidelift.com/funding/github/packagist/phpoption/phpoption", + "type": "tidelift" + } + ], + "time": "2021-12-04T23:24:31+00:00" + }, + { + "name": "phpspec/prophecy", + "version": "v1.15.0", + "source": { + "type": "git", + "url": "https://github.com/phpspec/prophecy.git", + "reference": "bbcd7380b0ebf3961ee21409db7b38bc31d69a13" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/phpspec/prophecy/zipball/bbcd7380b0ebf3961ee21409db7b38bc31d69a13", + "reference": "bbcd7380b0ebf3961ee21409db7b38bc31d69a13", + "shasum": "" + }, + "require": { + "doctrine/instantiator": "^1.2", + "php": "^7.2 || ~8.0, <8.2", + "phpdocumentor/reflection-docblock": "^5.2", + "sebastian/comparator": "^3.0 || ^4.0", + "sebastian/recursion-context": "^3.0 || ^4.0" + }, + "require-dev": { + "phpspec/phpspec": "^6.0 || ^7.0", + "phpunit/phpunit": "^8.0 || ^9.0" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-master": "1.x-dev" + } + }, + "autoload": { + "psr-4": { + "Prophecy\\": "src/Prophecy" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Konstantin Kudryashov", + "email": "ever.zet@gmail.com", + "homepage": "http://everzet.com" + }, + { + "name": "Marcello Duarte", + "email": "marcello.duarte@gmail.com" + } + ], + "description": "Highly opinionated mocking framework for PHP 5.3+", + "homepage": "https://github.com/phpspec/prophecy", + "keywords": [ + "Double", + "Dummy", + "fake", + "mock", + "spy", + "stub" + ], + "support": { + "issues": "https://github.com/phpspec/prophecy/issues", + "source": "https://github.com/phpspec/prophecy/tree/v1.15.0" + }, + "time": "2021-12-08T12:19:24+00:00" + }, + { + "name": "phpstan/phpdoc-parser", + "version": "1.5.1", + "source": { + "type": "git", + "url": "https://github.com/phpstan/phpdoc-parser.git", + "reference": "981cc368a216c988e862a75e526b6076987d1b50" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/phpstan/phpdoc-parser/zipball/981cc368a216c988e862a75e526b6076987d1b50", + "reference": "981cc368a216c988e862a75e526b6076987d1b50", + "shasum": "" + }, + "require": { + "php": "^7.2 || ^8.0" + }, + "require-dev": { + "php-parallel-lint/php-parallel-lint": "^1.2", + "phpstan/extension-installer": "^1.0", + "phpstan/phpstan": "^1.5", + "phpstan/phpstan-strict-rules": "^1.0", + "phpunit/phpunit": "^9.5", + "symfony/process": "^5.2" + }, + "type": "library", + "autoload": { + "psr-4": { + "PHPStan\\PhpDocParser\\": [ + "src/" + ] + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "description": "PHPDoc parser with support for nullable, intersection and generic types", + "support": { + "issues": "https://github.com/phpstan/phpdoc-parser/issues", + "source": "https://github.com/phpstan/phpdoc-parser/tree/1.5.1" + }, + "time": "2022-05-05T11:32:40+00:00" + }, + { + "name": "phpunit/php-code-coverage", + "version": "9.2.15", + "source": { + "type": "git", + "url": "https://github.com/sebastianbergmann/php-code-coverage.git", + "reference": "2e9da11878c4202f97915c1cb4bb1ca318a63f5f" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/sebastianbergmann/php-code-coverage/zipball/2e9da11878c4202f97915c1cb4bb1ca318a63f5f", + "reference": "2e9da11878c4202f97915c1cb4bb1ca318a63f5f", + "shasum": "" + }, + "require": { + "ext-dom": "*", + "ext-libxml": "*", + "ext-xmlwriter": "*", + "nikic/php-parser": "^4.13.0", + "php": ">=7.3", + "phpunit/php-file-iterator": "^3.0.3", + "phpunit/php-text-template": "^2.0.2", + "sebastian/code-unit-reverse-lookup": "^2.0.2", + "sebastian/complexity": "^2.0", + "sebastian/environment": "^5.1.2", + "sebastian/lines-of-code": "^1.0.3", + "sebastian/version": "^3.0.1", + "theseer/tokenizer": "^1.2.0" + }, + "require-dev": { + "phpunit/phpunit": "^9.3" + }, + "suggest": { + "ext-pcov": "*", + "ext-xdebug": "*" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-master": "9.2-dev" + } + }, + "autoload": { + "classmap": [ + "src/" + ] + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "BSD-3-Clause" + ], + "authors": [ + { + "name": "Sebastian Bergmann", + "email": "sebastian@phpunit.de", + "role": "lead" + } + ], + "description": "Library that provides collection, processing, and rendering functionality for PHP code coverage information.", + "homepage": "https://github.com/sebastianbergmann/php-code-coverage", + "keywords": [ + "coverage", + "testing", + "xunit" + ], + "support": { + "issues": "https://github.com/sebastianbergmann/php-code-coverage/issues", + "source": "https://github.com/sebastianbergmann/php-code-coverage/tree/9.2.15" + }, + "funding": [ + { + "url": "https://github.com/sebastianbergmann", + "type": "github" + } + ], + "time": "2022-03-07T09:28:20+00:00" + }, + { + "name": "phpunit/php-file-iterator", + "version": "3.0.6", + "source": { + "type": "git", + "url": "https://github.com/sebastianbergmann/php-file-iterator.git", + "reference": "cf1c2e7c203ac650e352f4cc675a7021e7d1b3cf" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/sebastianbergmann/php-file-iterator/zipball/cf1c2e7c203ac650e352f4cc675a7021e7d1b3cf", + "reference": "cf1c2e7c203ac650e352f4cc675a7021e7d1b3cf", + "shasum": "" + }, + "require": { + "php": ">=7.3" + }, + "require-dev": { + "phpunit/phpunit": "^9.3" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-master": "3.0-dev" + } + }, + "autoload": { + "classmap": [ + "src/" + ] + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "BSD-3-Clause" + ], + "authors": [ + { + "name": "Sebastian Bergmann", + "email": "sebastian@phpunit.de", + "role": "lead" + } + ], + "description": "FilterIterator implementation that filters files based on a list of suffixes.", + "homepage": "https://github.com/sebastianbergmann/php-file-iterator/", + "keywords": [ + "filesystem", + "iterator" + ], + "support": { + "issues": "https://github.com/sebastianbergmann/php-file-iterator/issues", + "source": "https://github.com/sebastianbergmann/php-file-iterator/tree/3.0.6" + }, + "funding": [ + { + "url": "https://github.com/sebastianbergmann", + "type": "github" + } + ], + "time": "2021-12-02T12:48:52+00:00" + }, + { + "name": "phpunit/php-invoker", + "version": "3.1.1", + "source": { + "type": "git", + "url": "https://github.com/sebastianbergmann/php-invoker.git", + "reference": "5a10147d0aaf65b58940a0b72f71c9ac0423cc67" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/sebastianbergmann/php-invoker/zipball/5a10147d0aaf65b58940a0b72f71c9ac0423cc67", + "reference": "5a10147d0aaf65b58940a0b72f71c9ac0423cc67", + "shasum": "" + }, + "require": { + "php": ">=7.3" + }, + "require-dev": { + "ext-pcntl": "*", + "phpunit/phpunit": "^9.3" + }, + "suggest": { + "ext-pcntl": "*" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-master": "3.1-dev" + } + }, + "autoload": { + "classmap": [ + "src/" + ] + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "BSD-3-Clause" + ], + "authors": [ + { + "name": "Sebastian Bergmann", + "email": "sebastian@phpunit.de", + "role": "lead" + } + ], + "description": "Invoke callables with a timeout", + "homepage": "https://github.com/sebastianbergmann/php-invoker/", + "keywords": [ + "process" + ], + "support": { + "issues": "https://github.com/sebastianbergmann/php-invoker/issues", + "source": "https://github.com/sebastianbergmann/php-invoker/tree/3.1.1" + }, + "funding": [ + { + "url": "https://github.com/sebastianbergmann", + "type": "github" + } + ], + "time": "2020-09-28T05:58:55+00:00" + }, + { + "name": "phpunit/php-text-template", + "version": "2.0.4", + "source": { + "type": "git", + "url": "https://github.com/sebastianbergmann/php-text-template.git", + "reference": "5da5f67fc95621df9ff4c4e5a84d6a8a2acf7c28" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/sebastianbergmann/php-text-template/zipball/5da5f67fc95621df9ff4c4e5a84d6a8a2acf7c28", + "reference": "5da5f67fc95621df9ff4c4e5a84d6a8a2acf7c28", + "shasum": "" + }, + "require": { + "php": ">=7.3" + }, + "require-dev": { + "phpunit/phpunit": "^9.3" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-master": "2.0-dev" + } + }, + "autoload": { + "classmap": [ + "src/" + ] + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "BSD-3-Clause" + ], + "authors": [ + { + "name": "Sebastian Bergmann", + "email": "sebastian@phpunit.de", + "role": "lead" + } + ], + "description": "Simple template engine.", + "homepage": "https://github.com/sebastianbergmann/php-text-template/", + "keywords": [ + "template" + ], + "support": { + "issues": "https://github.com/sebastianbergmann/php-text-template/issues", + "source": "https://github.com/sebastianbergmann/php-text-template/tree/2.0.4" + }, + "funding": [ + { + "url": "https://github.com/sebastianbergmann", + "type": "github" + } + ], + "time": "2020-10-26T05:33:50+00:00" + }, + { + "name": "phpunit/php-timer", + "version": "5.0.3", + "source": { + "type": "git", + "url": "https://github.com/sebastianbergmann/php-timer.git", + "reference": "5a63ce20ed1b5bf577850e2c4e87f4aa902afbd2" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/sebastianbergmann/php-timer/zipball/5a63ce20ed1b5bf577850e2c4e87f4aa902afbd2", + "reference": "5a63ce20ed1b5bf577850e2c4e87f4aa902afbd2", + "shasum": "" + }, + "require": { + "php": ">=7.3" + }, + "require-dev": { + "phpunit/phpunit": "^9.3" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-master": "5.0-dev" + } + }, + "autoload": { + "classmap": [ + "src/" + ] + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "BSD-3-Clause" + ], + "authors": [ + { + "name": "Sebastian Bergmann", + "email": "sebastian@phpunit.de", + "role": "lead" + } + ], + "description": "Utility class for timing", + "homepage": "https://github.com/sebastianbergmann/php-timer/", + "keywords": [ + "timer" + ], + "support": { + "issues": "https://github.com/sebastianbergmann/php-timer/issues", + "source": "https://github.com/sebastianbergmann/php-timer/tree/5.0.3" + }, + "funding": [ + { + "url": "https://github.com/sebastianbergmann", + "type": "github" + } + ], + "time": "2020-10-26T13:16:10+00:00" + }, + { + "name": "phpunit/phpunit", + "version": "9.5.20", + "source": { + "type": "git", + "url": "https://github.com/sebastianbergmann/phpunit.git", + "reference": "12bc8879fb65aef2138b26fc633cb1e3620cffba" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/sebastianbergmann/phpunit/zipball/12bc8879fb65aef2138b26fc633cb1e3620cffba", + "reference": "12bc8879fb65aef2138b26fc633cb1e3620cffba", + "shasum": "" + }, + "require": { + "doctrine/instantiator": "^1.3.1", + "ext-dom": "*", + "ext-json": "*", + "ext-libxml": "*", + "ext-mbstring": "*", + "ext-xml": "*", + "ext-xmlwriter": "*", + "myclabs/deep-copy": "^1.10.1", + "phar-io/manifest": "^2.0.3", + "phar-io/version": "^3.0.2", + "php": ">=7.3", + "phpspec/prophecy": "^1.12.1", + "phpunit/php-code-coverage": "^9.2.13", + "phpunit/php-file-iterator": "^3.0.5", + "phpunit/php-invoker": "^3.1.1", + "phpunit/php-text-template": "^2.0.3", + "phpunit/php-timer": "^5.0.2", + "sebastian/cli-parser": "^1.0.1", + "sebastian/code-unit": "^1.0.6", + "sebastian/comparator": "^4.0.5", + "sebastian/diff": "^4.0.3", + "sebastian/environment": "^5.1.3", + "sebastian/exporter": "^4.0.3", + "sebastian/global-state": "^5.0.1", + "sebastian/object-enumerator": "^4.0.3", + "sebastian/resource-operations": "^3.0.3", + "sebastian/type": "^3.0", + "sebastian/version": "^3.0.2" + }, + "require-dev": { + "ext-pdo": "*", + "phpspec/prophecy-phpunit": "^2.0.1" + }, + "suggest": { + "ext-soap": "*", + "ext-xdebug": "*" + }, + "bin": [ + "phpunit" + ], + "type": "library", + "extra": { + "branch-alias": { + "dev-master": "9.5-dev" + } + }, + "autoload": { + "files": [ + "src/Framework/Assert/Functions.php" + ], + "classmap": [ + "src/" + ] + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "BSD-3-Clause" + ], + "authors": [ + { + "name": "Sebastian Bergmann", + "email": "sebastian@phpunit.de", + "role": "lead" + } + ], + "description": "The PHP Unit Testing framework.", + "homepage": "https://phpunit.de/", + "keywords": [ + "phpunit", + "testing", + "xunit" + ], + "support": { + "issues": "https://github.com/sebastianbergmann/phpunit/issues", + "source": "https://github.com/sebastianbergmann/phpunit/tree/9.5.20" + }, + "funding": [ + { + "url": "https://phpunit.de/sponsors.html", + "type": "custom" + }, + { + "url": "https://github.com/sebastianbergmann", + "type": "github" + } + ], + "time": "2022-04-01T12:37:26+00:00" + }, + { + "name": "pimple/pimple", + "version": "v3.5.0", + "source": { + "type": "git", + "url": "https://github.com/silexphp/Pimple.git", + "reference": "a94b3a4db7fb774b3d78dad2315ddc07629e1bed" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/silexphp/Pimple/zipball/a94b3a4db7fb774b3d78dad2315ddc07629e1bed", + "reference": "a94b3a4db7fb774b3d78dad2315ddc07629e1bed", + "shasum": "" + }, + "require": { + "php": ">=7.2.5", + "psr/container": "^1.1 || ^2.0" + }, + "require-dev": { + "symfony/phpunit-bridge": "^5.4@dev" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-master": "3.4.x-dev" + } + }, + "autoload": { + "psr-0": { + "Pimple": "src/" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Fabien Potencier", + "email": "fabien@symfony.com" + } + ], + "description": "Pimple, a simple Dependency Injection Container", + "homepage": "https://pimple.symfony.com", + "keywords": [ + "container", + "dependency injection" + ], + "support": { + "source": "https://github.com/silexphp/Pimple/tree/v3.5.0" + }, + "time": "2021-10-28T11:13:42+00:00" + }, + { + "name": "psr/container", + "version": "1.1.1", + "source": { + "type": "git", + "url": "https://github.com/php-fig/container.git", + "reference": "8622567409010282b7aeebe4bb841fe98b58dcaf" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/php-fig/container/zipball/8622567409010282b7aeebe4bb841fe98b58dcaf", + "reference": "8622567409010282b7aeebe4bb841fe98b58dcaf", + "shasum": "" + }, + "require": { + "php": ">=7.2.0" + }, + "type": "library", + "autoload": { + "psr-4": { + "Psr\\Container\\": "src/" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "PHP-FIG", + "homepage": "https://www.php-fig.org/" + } + ], + "description": "Common Container Interface (PHP FIG PSR-11)", + "homepage": "https://github.com/php-fig/container", + "keywords": [ + "PSR-11", + "container", + "container-interface", + "container-interop", + "psr" + ], + "support": { + "issues": "https://github.com/php-fig/container/issues", + "source": "https://github.com/php-fig/container/tree/1.1.1" + }, + "time": "2021-03-05T17:36:06+00:00" + }, + { + "name": "psr/event-dispatcher", + "version": "1.0.0", + "source": { + "type": "git", + "url": "https://github.com/php-fig/event-dispatcher.git", + "reference": "dbefd12671e8a14ec7f180cab83036ed26714bb0" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/php-fig/event-dispatcher/zipball/dbefd12671e8a14ec7f180cab83036ed26714bb0", + "reference": "dbefd12671e8a14ec7f180cab83036ed26714bb0", + "shasum": "" + }, + "require": { + "php": ">=7.2.0" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-master": "1.0.x-dev" + } + }, + "autoload": { + "psr-4": { + "Psr\\EventDispatcher\\": "src/" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "PHP-FIG", + "homepage": "http://www.php-fig.org/" + } + ], + "description": "Standard interfaces for event handling.", + "keywords": [ + "events", + "psr", + "psr-14" + ], + "support": { + "issues": "https://github.com/php-fig/event-dispatcher/issues", + "source": "https://github.com/php-fig/event-dispatcher/tree/1.0.0" + }, + "time": "2019-01-08T18:20:26+00:00" + }, + { + "name": "psr/log", + "version": "1.1.4", + "source": { + "type": "git", + "url": "https://github.com/php-fig/log.git", + "reference": "d49695b909c3b7628b6289db5479a1c204601f11" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/php-fig/log/zipball/d49695b909c3b7628b6289db5479a1c204601f11", + "reference": "d49695b909c3b7628b6289db5479a1c204601f11", + "shasum": "" + }, + "require": { + "php": ">=5.3.0" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-master": "1.1.x-dev" + } + }, + "autoload": { + "psr-4": { + "Psr\\Log\\": "Psr/Log/" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "PHP-FIG", + "homepage": "https://www.php-fig.org/" + } + ], + "description": "Common interface for logging libraries", + "homepage": "https://github.com/php-fig/log", + "keywords": [ + "log", + "psr", + "psr-3" + ], + "support": { + "source": "https://github.com/php-fig/log/tree/1.1.4" + }, + "time": "2021-05-03T11:20:27+00:00" + }, + { + "name": "psr/simple-cache", + "version": "1.0.1", + "source": { + "type": "git", + "url": "https://github.com/php-fig/simple-cache.git", + "reference": "408d5eafb83c57f6365a3ca330ff23aa4a5fa39b" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/php-fig/simple-cache/zipball/408d5eafb83c57f6365a3ca330ff23aa4a5fa39b", + "reference": "408d5eafb83c57f6365a3ca330ff23aa4a5fa39b", + "shasum": "" + }, + "require": { + "php": ">=5.3.0" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-master": "1.0.x-dev" + } + }, + "autoload": { + "psr-4": { + "Psr\\SimpleCache\\": "src/" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "PHP-FIG", + "homepage": "http://www.php-fig.org/" + } + ], + "description": "Common interfaces for simple caching", + "keywords": [ + "cache", + "caching", + "psr", + "psr-16", + "simple-cache" + ], + "support": { + "source": "https://github.com/php-fig/simple-cache/tree/master" + }, + "time": "2017-10-23T01:57:42+00:00" + }, + { + "name": "ramsey/collection", + "version": "1.2.2", + "source": { + "type": "git", + "url": "https://github.com/ramsey/collection.git", + "reference": "cccc74ee5e328031b15640b51056ee8d3bb66c0a" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/ramsey/collection/zipball/cccc74ee5e328031b15640b51056ee8d3bb66c0a", + "reference": "cccc74ee5e328031b15640b51056ee8d3bb66c0a", + "shasum": "" + }, + "require": { + "php": "^7.3 || ^8", + "symfony/polyfill-php81": "^1.23" + }, + "require-dev": { + "captainhook/captainhook": "^5.3", + "dealerdirect/phpcodesniffer-composer-installer": "^0.7.0", + "ergebnis/composer-normalize": "^2.6", + "fakerphp/faker": "^1.5", + "hamcrest/hamcrest-php": "^2", + "jangregor/phpstan-prophecy": "^0.8", + "mockery/mockery": "^1.3", + "phpspec/prophecy-phpunit": "^2.0", + "phpstan/extension-installer": "^1", + "phpstan/phpstan": "^0.12.32", + "phpstan/phpstan-mockery": "^0.12.5", + "phpstan/phpstan-phpunit": "^0.12.11", + "phpunit/phpunit": "^8.5 || ^9", + "psy/psysh": "^0.10.4", + "slevomat/coding-standard": "^6.3", + "squizlabs/php_codesniffer": "^3.5", + "vimeo/psalm": "^4.4" + }, + "type": "library", + "autoload": { + "psr-4": { + "Ramsey\\Collection\\": "src/" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Ben Ramsey", + "email": "ben@benramsey.com", + "homepage": "https://benramsey.com" + } + ], + "description": "A PHP library for representing and manipulating collections.", + "keywords": [ + "array", + "collection", + "hash", + "map", + "queue", + "set" + ], + "support": { + "issues": "https://github.com/ramsey/collection/issues", + "source": "https://github.com/ramsey/collection/tree/1.2.2" + }, + "funding": [ + { + "url": "https://github.com/ramsey", + "type": "github" + }, + { + "url": "https://tidelift.com/funding/github/packagist/ramsey/collection", + "type": "tidelift" + } + ], + "time": "2021-10-10T03:01:02+00:00" + }, + { + "name": "ramsey/uuid", + "version": "4.2.3", + "source": { + "type": "git", + "url": "https://github.com/ramsey/uuid.git", + "reference": "fc9bb7fb5388691fd7373cd44dcb4d63bbcf24df" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/ramsey/uuid/zipball/fc9bb7fb5388691fd7373cd44dcb4d63bbcf24df", + "reference": "fc9bb7fb5388691fd7373cd44dcb4d63bbcf24df", + "shasum": "" + }, + "require": { + "brick/math": "^0.8 || ^0.9", + "ext-json": "*", + "php": "^7.2 || ^8.0", + "ramsey/collection": "^1.0", + "symfony/polyfill-ctype": "^1.8", + "symfony/polyfill-php80": "^1.14" + }, + "replace": { + "rhumsaa/uuid": "self.version" + }, + "require-dev": { + "captainhook/captainhook": "^5.10", + "captainhook/plugin-composer": "^5.3", + "dealerdirect/phpcodesniffer-composer-installer": "^0.7.0", + "doctrine/annotations": "^1.8", + "ergebnis/composer-normalize": "^2.15", + "mockery/mockery": "^1.3", + "moontoast/math": "^1.1", + "paragonie/random-lib": "^2", + "php-mock/php-mock": "^2.2", + "php-mock/php-mock-mockery": "^1.3", + "php-parallel-lint/php-parallel-lint": "^1.1", + "phpbench/phpbench": "^1.0", + "phpstan/extension-installer": "^1.0", + "phpstan/phpstan": "^0.12", + "phpstan/phpstan-mockery": "^0.12", + "phpstan/phpstan-phpunit": "^0.12", + "phpunit/phpunit": "^8.5 || ^9", + "slevomat/coding-standard": "^7.0", + "squizlabs/php_codesniffer": "^3.5", + "vimeo/psalm": "^4.9" + }, + "suggest": { + "ext-bcmath": "Enables faster math with arbitrary-precision integers using BCMath.", + "ext-ctype": "Enables faster processing of character classification using ctype functions.", + "ext-gmp": "Enables faster math with arbitrary-precision integers using GMP.", + "ext-uuid": "Enables the use of PeclUuidTimeGenerator and PeclUuidRandomGenerator.", + "paragonie/random-lib": "Provides RandomLib for use with the RandomLibAdapter", + "ramsey/uuid-doctrine": "Allows the use of Ramsey\\Uuid\\Uuid as Doctrine field type." + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-main": "4.x-dev" + }, + "captainhook": { + "force-install": true + } + }, + "autoload": { + "files": [ + "src/functions.php" + ], + "psr-4": { + "Ramsey\\Uuid\\": "src/" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "description": "A PHP library for generating and working with universally unique identifiers (UUIDs).", + "keywords": [ + "guid", + "identifier", + "uuid" + ], + "support": { + "issues": "https://github.com/ramsey/uuid/issues", + "source": "https://github.com/ramsey/uuid/tree/4.2.3" + }, + "funding": [ + { + "url": "https://github.com/ramsey", + "type": "github" + }, + { + "url": "https://tidelift.com/funding/github/packagist/ramsey/uuid", + "type": "tidelift" + } + ], + "time": "2021-09-25T23:10:38+00:00" + }, + { + "name": "sebastian/cli-parser", + "version": "1.0.1", + "source": { + "type": "git", + "url": "https://github.com/sebastianbergmann/cli-parser.git", + "reference": "442e7c7e687e42adc03470c7b668bc4b2402c0b2" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/sebastianbergmann/cli-parser/zipball/442e7c7e687e42adc03470c7b668bc4b2402c0b2", + "reference": "442e7c7e687e42adc03470c7b668bc4b2402c0b2", + "shasum": "" + }, + "require": { + "php": ">=7.3" + }, + "require-dev": { + "phpunit/phpunit": "^9.3" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-master": "1.0-dev" + } + }, + "autoload": { + "classmap": [ + "src/" + ] + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "BSD-3-Clause" + ], + "authors": [ + { + "name": "Sebastian Bergmann", + "email": "sebastian@phpunit.de", + "role": "lead" + } + ], + "description": "Library for parsing CLI options", + "homepage": "https://github.com/sebastianbergmann/cli-parser", + "support": { + "issues": "https://github.com/sebastianbergmann/cli-parser/issues", + "source": "https://github.com/sebastianbergmann/cli-parser/tree/1.0.1" + }, + "funding": [ + { + "url": "https://github.com/sebastianbergmann", + "type": "github" + } + ], + "time": "2020-09-28T06:08:49+00:00" + }, + { + "name": "sebastian/code-unit", + "version": "1.0.8", + "source": { + "type": "git", + "url": "https://github.com/sebastianbergmann/code-unit.git", + "reference": "1fc9f64c0927627ef78ba436c9b17d967e68e120" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/sebastianbergmann/code-unit/zipball/1fc9f64c0927627ef78ba436c9b17d967e68e120", + "reference": "1fc9f64c0927627ef78ba436c9b17d967e68e120", + "shasum": "" + }, + "require": { + "php": ">=7.3" + }, + "require-dev": { + "phpunit/phpunit": "^9.3" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-master": "1.0-dev" + } + }, + "autoload": { + "classmap": [ + "src/" + ] + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "BSD-3-Clause" + ], + "authors": [ + { + "name": "Sebastian Bergmann", + "email": "sebastian@phpunit.de", + "role": "lead" + } + ], + "description": "Collection of value objects that represent the PHP code units", + "homepage": "https://github.com/sebastianbergmann/code-unit", + "support": { + "issues": "https://github.com/sebastianbergmann/code-unit/issues", + "source": "https://github.com/sebastianbergmann/code-unit/tree/1.0.8" + }, + "funding": [ + { + "url": "https://github.com/sebastianbergmann", + "type": "github" + } + ], + "time": "2020-10-26T13:08:54+00:00" + }, + { + "name": "sebastian/code-unit-reverse-lookup", + "version": "2.0.3", + "source": { + "type": "git", + "url": "https://github.com/sebastianbergmann/code-unit-reverse-lookup.git", + "reference": "ac91f01ccec49fb77bdc6fd1e548bc70f7faa3e5" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/sebastianbergmann/code-unit-reverse-lookup/zipball/ac91f01ccec49fb77bdc6fd1e548bc70f7faa3e5", + "reference": "ac91f01ccec49fb77bdc6fd1e548bc70f7faa3e5", + "shasum": "" + }, + "require": { + "php": ">=7.3" + }, + "require-dev": { + "phpunit/phpunit": "^9.3" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-master": "2.0-dev" + } + }, + "autoload": { + "classmap": [ + "src/" + ] + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "BSD-3-Clause" + ], + "authors": [ + { + "name": "Sebastian Bergmann", + "email": "sebastian@phpunit.de" + } + ], + "description": "Looks up which function or method a line of code belongs to", + "homepage": "https://github.com/sebastianbergmann/code-unit-reverse-lookup/", + "support": { + "issues": "https://github.com/sebastianbergmann/code-unit-reverse-lookup/issues", + "source": "https://github.com/sebastianbergmann/code-unit-reverse-lookup/tree/2.0.3" + }, + "funding": [ + { + "url": "https://github.com/sebastianbergmann", + "type": "github" + } + ], + "time": "2020-09-28T05:30:19+00:00" + }, + { + "name": "sebastian/comparator", + "version": "4.0.6", + "source": { + "type": "git", + "url": "https://github.com/sebastianbergmann/comparator.git", + "reference": "55f4261989e546dc112258c7a75935a81a7ce382" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/sebastianbergmann/comparator/zipball/55f4261989e546dc112258c7a75935a81a7ce382", + "reference": "55f4261989e546dc112258c7a75935a81a7ce382", + "shasum": "" + }, + "require": { + "php": ">=7.3", + "sebastian/diff": "^4.0", + "sebastian/exporter": "^4.0" + }, + "require-dev": { + "phpunit/phpunit": "^9.3" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-master": "4.0-dev" + } + }, + "autoload": { + "classmap": [ + "src/" + ] + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "BSD-3-Clause" + ], + "authors": [ + { + "name": "Sebastian Bergmann", + "email": "sebastian@phpunit.de" + }, + { + "name": "Jeff Welch", + "email": "whatthejeff@gmail.com" + }, + { + "name": "Volker Dusch", + "email": "github@wallbash.com" + }, + { + "name": "Bernhard Schussek", + "email": "bschussek@2bepublished.at" + } + ], + "description": "Provides the functionality to compare PHP values for equality", + "homepage": "https://github.com/sebastianbergmann/comparator", + "keywords": [ + "comparator", + "compare", + "equality" + ], + "support": { + "issues": "https://github.com/sebastianbergmann/comparator/issues", + "source": "https://github.com/sebastianbergmann/comparator/tree/4.0.6" + }, + "funding": [ + { + "url": "https://github.com/sebastianbergmann", + "type": "github" + } + ], + "time": "2020-10-26T15:49:45+00:00" + }, + { + "name": "sebastian/complexity", + "version": "2.0.2", + "source": { + "type": "git", + "url": "https://github.com/sebastianbergmann/complexity.git", + "reference": "739b35e53379900cc9ac327b2147867b8b6efd88" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/sebastianbergmann/complexity/zipball/739b35e53379900cc9ac327b2147867b8b6efd88", + "reference": "739b35e53379900cc9ac327b2147867b8b6efd88", + "shasum": "" + }, + "require": { + "nikic/php-parser": "^4.7", + "php": ">=7.3" + }, + "require-dev": { + "phpunit/phpunit": "^9.3" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-master": "2.0-dev" + } + }, + "autoload": { + "classmap": [ + "src/" + ] + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "BSD-3-Clause" + ], + "authors": [ + { + "name": "Sebastian Bergmann", + "email": "sebastian@phpunit.de", + "role": "lead" + } + ], + "description": "Library for calculating the complexity of PHP code units", + "homepage": "https://github.com/sebastianbergmann/complexity", + "support": { + "issues": "https://github.com/sebastianbergmann/complexity/issues", + "source": "https://github.com/sebastianbergmann/complexity/tree/2.0.2" + }, + "funding": [ + { + "url": "https://github.com/sebastianbergmann", + "type": "github" + } + ], + "time": "2020-10-26T15:52:27+00:00" + }, + { + "name": "sebastian/diff", + "version": "4.0.4", + "source": { + "type": "git", + "url": "https://github.com/sebastianbergmann/diff.git", + "reference": "3461e3fccc7cfdfc2720be910d3bd73c69be590d" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/sebastianbergmann/diff/zipball/3461e3fccc7cfdfc2720be910d3bd73c69be590d", + "reference": "3461e3fccc7cfdfc2720be910d3bd73c69be590d", + "shasum": "" + }, + "require": { + "php": ">=7.3" + }, + "require-dev": { + "phpunit/phpunit": "^9.3", + "symfony/process": "^4.2 || ^5" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-master": "4.0-dev" + } + }, + "autoload": { + "classmap": [ + "src/" + ] + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "BSD-3-Clause" + ], + "authors": [ + { + "name": "Sebastian Bergmann", + "email": "sebastian@phpunit.de" + }, + { + "name": "Kore Nordmann", + "email": "mail@kore-nordmann.de" + } + ], + "description": "Diff implementation", + "homepage": "https://github.com/sebastianbergmann/diff", + "keywords": [ + "diff", + "udiff", + "unidiff", + "unified diff" + ], + "support": { + "issues": "https://github.com/sebastianbergmann/diff/issues", + "source": "https://github.com/sebastianbergmann/diff/tree/4.0.4" + }, + "funding": [ + { + "url": "https://github.com/sebastianbergmann", + "type": "github" + } + ], + "time": "2020-10-26T13:10:38+00:00" + }, + { + "name": "sebastian/environment", + "version": "5.1.4", + "source": { + "type": "git", + "url": "https://github.com/sebastianbergmann/environment.git", + "reference": "1b5dff7bb151a4db11d49d90e5408e4e938270f7" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/sebastianbergmann/environment/zipball/1b5dff7bb151a4db11d49d90e5408e4e938270f7", + "reference": "1b5dff7bb151a4db11d49d90e5408e4e938270f7", + "shasum": "" + }, + "require": { + "php": ">=7.3" + }, + "require-dev": { + "phpunit/phpunit": "^9.3" + }, + "suggest": { + "ext-posix": "*" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-master": "5.1-dev" + } + }, + "autoload": { + "classmap": [ + "src/" + ] + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "BSD-3-Clause" + ], + "authors": [ + { + "name": "Sebastian Bergmann", + "email": "sebastian@phpunit.de" + } + ], + "description": "Provides functionality to handle HHVM/PHP environments", + "homepage": "http://www.github.com/sebastianbergmann/environment", + "keywords": [ + "Xdebug", + "environment", + "hhvm" + ], + "support": { + "issues": "https://github.com/sebastianbergmann/environment/issues", + "source": "https://github.com/sebastianbergmann/environment/tree/5.1.4" + }, + "funding": [ + { + "url": "https://github.com/sebastianbergmann", + "type": "github" + } + ], + "time": "2022-04-03T09:37:03+00:00" + }, + { + "name": "sebastian/exporter", + "version": "4.0.4", + "source": { + "type": "git", + "url": "https://github.com/sebastianbergmann/exporter.git", + "reference": "65e8b7db476c5dd267e65eea9cab77584d3cfff9" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/sebastianbergmann/exporter/zipball/65e8b7db476c5dd267e65eea9cab77584d3cfff9", + "reference": "65e8b7db476c5dd267e65eea9cab77584d3cfff9", + "shasum": "" + }, + "require": { + "php": ">=7.3", + "sebastian/recursion-context": "^4.0" + }, + "require-dev": { + "ext-mbstring": "*", + "phpunit/phpunit": "^9.3" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-master": "4.0-dev" + } + }, + "autoload": { + "classmap": [ + "src/" + ] + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "BSD-3-Clause" + ], + "authors": [ + { + "name": "Sebastian Bergmann", + "email": "sebastian@phpunit.de" + }, + { + "name": "Jeff Welch", + "email": "whatthejeff@gmail.com" + }, + { + "name": "Volker Dusch", + "email": "github@wallbash.com" + }, + { + "name": "Adam Harvey", + "email": "aharvey@php.net" + }, + { + "name": "Bernhard Schussek", + "email": "bschussek@gmail.com" + } + ], + "description": "Provides the functionality to export PHP variables for visualization", + "homepage": "https://www.github.com/sebastianbergmann/exporter", + "keywords": [ + "export", + "exporter" + ], + "support": { + "issues": "https://github.com/sebastianbergmann/exporter/issues", + "source": "https://github.com/sebastianbergmann/exporter/tree/4.0.4" + }, + "funding": [ + { + "url": "https://github.com/sebastianbergmann", + "type": "github" + } + ], + "time": "2021-11-11T14:18:36+00:00" + }, + { + "name": "sebastian/global-state", + "version": "5.0.5", + "source": { + "type": "git", + "url": "https://github.com/sebastianbergmann/global-state.git", + "reference": "0ca8db5a5fc9c8646244e629625ac486fa286bf2" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/sebastianbergmann/global-state/zipball/0ca8db5a5fc9c8646244e629625ac486fa286bf2", + "reference": "0ca8db5a5fc9c8646244e629625ac486fa286bf2", + "shasum": "" + }, + "require": { + "php": ">=7.3", + "sebastian/object-reflector": "^2.0", + "sebastian/recursion-context": "^4.0" + }, + "require-dev": { + "ext-dom": "*", + "phpunit/phpunit": "^9.3" + }, + "suggest": { + "ext-uopz": "*" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-master": "5.0-dev" + } + }, + "autoload": { + "classmap": [ + "src/" + ] + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "BSD-3-Clause" + ], + "authors": [ + { + "name": "Sebastian Bergmann", + "email": "sebastian@phpunit.de" + } + ], + "description": "Snapshotting of global state", + "homepage": "http://www.github.com/sebastianbergmann/global-state", + "keywords": [ + "global state" + ], + "support": { + "issues": "https://github.com/sebastianbergmann/global-state/issues", + "source": "https://github.com/sebastianbergmann/global-state/tree/5.0.5" + }, + "funding": [ + { + "url": "https://github.com/sebastianbergmann", + "type": "github" + } + ], + "time": "2022-02-14T08:28:10+00:00" + }, + { + "name": "sebastian/lines-of-code", + "version": "1.0.3", + "source": { + "type": "git", + "url": "https://github.com/sebastianbergmann/lines-of-code.git", + "reference": "c1c2e997aa3146983ed888ad08b15470a2e22ecc" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/sebastianbergmann/lines-of-code/zipball/c1c2e997aa3146983ed888ad08b15470a2e22ecc", + "reference": "c1c2e997aa3146983ed888ad08b15470a2e22ecc", + "shasum": "" + }, + "require": { + "nikic/php-parser": "^4.6", + "php": ">=7.3" + }, + "require-dev": { + "phpunit/phpunit": "^9.3" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-master": "1.0-dev" + } + }, + "autoload": { + "classmap": [ + "src/" + ] + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "BSD-3-Clause" + ], + "authors": [ + { + "name": "Sebastian Bergmann", + "email": "sebastian@phpunit.de", + "role": "lead" + } + ], + "description": "Library for counting the lines of code in PHP source code", + "homepage": "https://github.com/sebastianbergmann/lines-of-code", + "support": { + "issues": "https://github.com/sebastianbergmann/lines-of-code/issues", + "source": "https://github.com/sebastianbergmann/lines-of-code/tree/1.0.3" + }, + "funding": [ + { + "url": "https://github.com/sebastianbergmann", + "type": "github" + } + ], + "time": "2020-11-28T06:42:11+00:00" + }, + { + "name": "sebastian/object-enumerator", + "version": "4.0.4", + "source": { + "type": "git", + "url": "https://github.com/sebastianbergmann/object-enumerator.git", + "reference": "5c9eeac41b290a3712d88851518825ad78f45c71" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/sebastianbergmann/object-enumerator/zipball/5c9eeac41b290a3712d88851518825ad78f45c71", + "reference": "5c9eeac41b290a3712d88851518825ad78f45c71", + "shasum": "" + }, + "require": { + "php": ">=7.3", + "sebastian/object-reflector": "^2.0", + "sebastian/recursion-context": "^4.0" + }, + "require-dev": { + "phpunit/phpunit": "^9.3" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-master": "4.0-dev" + } + }, + "autoload": { + "classmap": [ + "src/" + ] + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "BSD-3-Clause" + ], + "authors": [ + { + "name": "Sebastian Bergmann", + "email": "sebastian@phpunit.de" + } + ], + "description": "Traverses array structures and object graphs to enumerate all referenced objects", + "homepage": "https://github.com/sebastianbergmann/object-enumerator/", + "support": { + "issues": "https://github.com/sebastianbergmann/object-enumerator/issues", + "source": "https://github.com/sebastianbergmann/object-enumerator/tree/4.0.4" + }, + "funding": [ + { + "url": "https://github.com/sebastianbergmann", + "type": "github" + } + ], + "time": "2020-10-26T13:12:34+00:00" + }, + { + "name": "sebastian/object-reflector", + "version": "2.0.4", + "source": { + "type": "git", + "url": "https://github.com/sebastianbergmann/object-reflector.git", + "reference": "b4f479ebdbf63ac605d183ece17d8d7fe49c15c7" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/sebastianbergmann/object-reflector/zipball/b4f479ebdbf63ac605d183ece17d8d7fe49c15c7", + "reference": "b4f479ebdbf63ac605d183ece17d8d7fe49c15c7", + "shasum": "" + }, + "require": { + "php": ">=7.3" + }, + "require-dev": { + "phpunit/phpunit": "^9.3" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-master": "2.0-dev" + } + }, + "autoload": { + "classmap": [ + "src/" + ] + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "BSD-3-Clause" + ], + "authors": [ + { + "name": "Sebastian Bergmann", + "email": "sebastian@phpunit.de" + } + ], + "description": "Allows reflection of object attributes, including inherited and non-public ones", + "homepage": "https://github.com/sebastianbergmann/object-reflector/", + "support": { + "issues": "https://github.com/sebastianbergmann/object-reflector/issues", + "source": "https://github.com/sebastianbergmann/object-reflector/tree/2.0.4" + }, + "funding": [ + { + "url": "https://github.com/sebastianbergmann", + "type": "github" + } + ], + "time": "2020-10-26T13:14:26+00:00" + }, + { + "name": "sebastian/recursion-context", + "version": "4.0.4", + "source": { + "type": "git", + "url": "https://github.com/sebastianbergmann/recursion-context.git", + "reference": "cd9d8cf3c5804de4341c283ed787f099f5506172" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/sebastianbergmann/recursion-context/zipball/cd9d8cf3c5804de4341c283ed787f099f5506172", + "reference": "cd9d8cf3c5804de4341c283ed787f099f5506172", + "shasum": "" + }, + "require": { + "php": ">=7.3" + }, + "require-dev": { + "phpunit/phpunit": "^9.3" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-master": "4.0-dev" + } + }, + "autoload": { + "classmap": [ + "src/" + ] + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "BSD-3-Clause" + ], + "authors": [ + { + "name": "Sebastian Bergmann", + "email": "sebastian@phpunit.de" + }, + { + "name": "Jeff Welch", + "email": "whatthejeff@gmail.com" + }, + { + "name": "Adam Harvey", + "email": "aharvey@php.net" + } + ], + "description": "Provides functionality to recursively process PHP variables", + "homepage": "http://www.github.com/sebastianbergmann/recursion-context", + "support": { + "issues": "https://github.com/sebastianbergmann/recursion-context/issues", + "source": "https://github.com/sebastianbergmann/recursion-context/tree/4.0.4" + }, + "funding": [ + { + "url": "https://github.com/sebastianbergmann", + "type": "github" + } + ], + "time": "2020-10-26T13:17:30+00:00" + }, + { + "name": "sebastian/resource-operations", + "version": "3.0.3", + "source": { + "type": "git", + "url": "https://github.com/sebastianbergmann/resource-operations.git", + "reference": "0f4443cb3a1d92ce809899753bc0d5d5a8dd19a8" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/sebastianbergmann/resource-operations/zipball/0f4443cb3a1d92ce809899753bc0d5d5a8dd19a8", + "reference": "0f4443cb3a1d92ce809899753bc0d5d5a8dd19a8", + "shasum": "" + }, + "require": { + "php": ">=7.3" + }, + "require-dev": { + "phpunit/phpunit": "^9.0" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-master": "3.0-dev" + } + }, + "autoload": { + "classmap": [ + "src/" + ] + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "BSD-3-Clause" + ], + "authors": [ + { + "name": "Sebastian Bergmann", + "email": "sebastian@phpunit.de" + } + ], + "description": "Provides a list of PHP built-in functions that operate on resources", + "homepage": "https://www.github.com/sebastianbergmann/resource-operations", + "support": { + "issues": "https://github.com/sebastianbergmann/resource-operations/issues", + "source": "https://github.com/sebastianbergmann/resource-operations/tree/3.0.3" + }, + "funding": [ + { + "url": "https://github.com/sebastianbergmann", + "type": "github" + } + ], + "time": "2020-09-28T06:45:17+00:00" + }, + { + "name": "sebastian/type", + "version": "3.0.0", + "source": { + "type": "git", + "url": "https://github.com/sebastianbergmann/type.git", + "reference": "b233b84bc4465aff7b57cf1c4bc75c86d00d6dad" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/sebastianbergmann/type/zipball/b233b84bc4465aff7b57cf1c4bc75c86d00d6dad", + "reference": "b233b84bc4465aff7b57cf1c4bc75c86d00d6dad", + "shasum": "" + }, + "require": { + "php": ">=7.3" + }, + "require-dev": { + "phpunit/phpunit": "^9.5" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-master": "3.0-dev" + } + }, + "autoload": { + "classmap": [ + "src/" + ] + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "BSD-3-Clause" + ], + "authors": [ + { + "name": "Sebastian Bergmann", + "email": "sebastian@phpunit.de", + "role": "lead" + } + ], + "description": "Collection of value objects that represent the types of the PHP type system", + "homepage": "https://github.com/sebastianbergmann/type", + "support": { + "issues": "https://github.com/sebastianbergmann/type/issues", + "source": "https://github.com/sebastianbergmann/type/tree/3.0.0" + }, + "funding": [ + { + "url": "https://github.com/sebastianbergmann", + "type": "github" + } + ], + "time": "2022-03-15T09:54:48+00:00" + }, + { + "name": "sebastian/version", + "version": "3.0.2", + "source": { + "type": "git", + "url": "https://github.com/sebastianbergmann/version.git", + "reference": "c6c1022351a901512170118436c764e473f6de8c" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/sebastianbergmann/version/zipball/c6c1022351a901512170118436c764e473f6de8c", + "reference": "c6c1022351a901512170118436c764e473f6de8c", + "shasum": "" + }, + "require": { + "php": ">=7.3" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-master": "3.0-dev" + } + }, + "autoload": { + "classmap": [ + "src/" + ] + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "BSD-3-Clause" + ], + "authors": [ + { + "name": "Sebastian Bergmann", + "email": "sebastian@phpunit.de", + "role": "lead" + } + ], + "description": "Library that helps with managing the version number of Git-hosted PHP projects", + "homepage": "https://github.com/sebastianbergmann/version", + "support": { + "issues": "https://github.com/sebastianbergmann/version/issues", + "source": "https://github.com/sebastianbergmann/version/tree/3.0.2" + }, + "funding": [ + { + "url": "https://github.com/sebastianbergmann", + "type": "github" + } + ], + "time": "2020-09-28T06:39:44+00:00" + }, + { + "name": "slevomat/coding-standard", + "version": "7.2.1", + "source": { + "type": "git", + "url": "https://github.com/slevomat/coding-standard.git", + "reference": "aff06ae7a84e4534bf6f821dc982a93a5d477c90" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/slevomat/coding-standard/zipball/aff06ae7a84e4534bf6f821dc982a93a5d477c90", + "reference": "aff06ae7a84e4534bf6f821dc982a93a5d477c90", + "shasum": "" + }, + "require": { + "dealerdirect/phpcodesniffer-composer-installer": "^0.6.2 || ^0.7", + "php": "^7.2 || ^8.0", + "phpstan/phpdoc-parser": "^1.5.1", + "squizlabs/php_codesniffer": "^3.6.2" + }, + "require-dev": { + "phing/phing": "2.17.3", + "php-parallel-lint/php-parallel-lint": "1.3.2", + "phpstan/phpstan": "1.4.10|1.7.1", + "phpstan/phpstan-deprecation-rules": "1.0.0", + "phpstan/phpstan-phpunit": "1.0.0|1.1.1", + "phpstan/phpstan-strict-rules": "1.2.3", + "phpunit/phpunit": "7.5.20|8.5.21|9.5.20" + }, + "type": "phpcodesniffer-standard", + "extra": { + "branch-alias": { + "dev-master": "7.x-dev" + } + }, + "autoload": { + "psr-4": { + "SlevomatCodingStandard\\": "SlevomatCodingStandard" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "description": "Slevomat Coding Standard for PHP_CodeSniffer complements Consistence Coding Standard by providing sniffs with additional checks.", + "support": { + "issues": "https://github.com/slevomat/coding-standard/issues", + "source": "https://github.com/slevomat/coding-standard/tree/7.2.1" + }, + "funding": [ + { + "url": "https://github.com/kukulich", + "type": "github" + }, + { + "url": "https://tidelift.com/funding/github/packagist/slevomat/coding-standard", + "type": "tidelift" + } + ], + "time": "2022-05-25T10:58:12+00:00" + }, + { + "name": "spatie/backtrace", + "version": "1.2.1", + "source": { + "type": "git", + "url": "https://github.com/spatie/backtrace.git", + "reference": "4ee7d41aa5268107906ea8a4d9ceccde136dbd5b" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/spatie/backtrace/zipball/4ee7d41aa5268107906ea8a4d9ceccde136dbd5b", + "reference": "4ee7d41aa5268107906ea8a4d9ceccde136dbd5b", + "shasum": "" + }, + "require": { + "php": "^7.3|^8.0" + }, + "require-dev": { + "ext-json": "*", + "phpunit/phpunit": "^9.3", + "symfony/var-dumper": "^5.1" + }, + "type": "library", + "autoload": { + "psr-4": { + "Spatie\\Backtrace\\": "src" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Freek Van de Herten", + "email": "freek@spatie.be", + "homepage": "https://spatie.be", + "role": "Developer" + } + ], + "description": "A better backtrace", + "homepage": "https://github.com/spatie/backtrace", + "keywords": [ + "Backtrace", + "spatie" + ], + "support": { + "issues": "https://github.com/spatie/backtrace/issues", + "source": "https://github.com/spatie/backtrace/tree/1.2.1" + }, + "funding": [ + { + "url": "https://github.com/sponsors/spatie", + "type": "github" + }, + { + "url": "https://spatie.be/open-source/support-us", + "type": "other" + } + ], + "time": "2021-11-09T10:57:15+00:00" + }, + { + "name": "spatie/laravel-ray", + "version": "1.29.7", + "source": { + "type": "git", + "url": "https://github.com/spatie/laravel-ray.git", + "reference": "97b8ccdb9975e3339069765417990e89474254ee" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/spatie/laravel-ray/zipball/97b8ccdb9975e3339069765417990e89474254ee", + "reference": "97b8ccdb9975e3339069765417990e89474254ee", + "shasum": "" + }, + "require": { + "ext-json": "*", + "illuminate/contracts": "^7.20|^8.19|^9.0", + "illuminate/database": "^7.20|^8.19|^9.0", + "illuminate/queue": "^7.20|^8.19|^9.0", + "illuminate/support": "^7.20|^8.19|^9.0", + "php": "^7.3|^8.0", + "spatie/backtrace": "^1.0", + "spatie/ray": "^1.33", + "symfony/stopwatch": "4.2|^5.1|^6.0", + "zbateson/mail-mime-parser": "^1.3.1|^2.0" + }, + "require-dev": { + "guzzlehttp/guzzle": "^7.3", + "laravel/framework": "^7.20|^8.19|^9.0", + "orchestra/testbench-core": "^5.0|^6.0|^7.0", + "phpstan/phpstan": "^0.12.93", + "phpunit/phpunit": "^9.3", + "spatie/phpunit-snapshot-assertions": "^4.2" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-main": "1.29.x-dev" + }, + "laravel": { + "providers": [ + "Spatie\\LaravelRay\\RayServiceProvider" + ] + } + }, + "autoload": { + "psr-4": { + "Spatie\\LaravelRay\\": "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": "Easily debug Laravel apps", + "homepage": "https://github.com/spatie/laravel-ray", + "keywords": [ + "laravel-ray", + "spatie" + ], + "support": { + "issues": "https://github.com/spatie/laravel-ray/issues", + "source": "https://github.com/spatie/laravel-ray/tree/1.29.7" + }, + "funding": [ + { + "url": "https://github.com/sponsors/spatie", + "type": "github" + }, + { + "url": "https://spatie.be/open-source/support-us", + "type": "other" + } + ], + "time": "2022-05-27T18:45:58+00:00" + }, + { + "name": "spatie/macroable", + "version": "1.0.1", + "source": { + "type": "git", + "url": "https://github.com/spatie/macroable.git", + "reference": "7a99549fc001c925714b329220dea680c04bfa48" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/spatie/macroable/zipball/7a99549fc001c925714b329220dea680c04bfa48", + "reference": "7a99549fc001c925714b329220dea680c04bfa48", + "shasum": "" + }, + "require": { + "php": "^7.2|^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/1.0.1" + }, + "time": "2020-11-03T10:15:05+00:00" + }, + { + "name": "spatie/ray", + "version": "1.34.5", + "source": { + "type": "git", + "url": "https://github.com/spatie/ray.git", + "reference": "2d64ea264eecbdc7ec01e4e8b45978cae80815d2" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/spatie/ray/zipball/2d64ea264eecbdc7ec01e4e8b45978cae80815d2", + "reference": "2d64ea264eecbdc7ec01e4e8b45978cae80815d2", + "shasum": "" + }, + "require": { + "ext-curl": "*", + "ext-json": "*", + "php": "^7.3|^8.0", + "ramsey/uuid": "^3.0|^4.1", + "spatie/backtrace": "^1.1", + "spatie/macroable": "^1.0|^2.0", + "symfony/stopwatch": "^4.0|^5.1|^6.0", + "symfony/var-dumper": "^4.2|^5.1|^6.0" + }, + "require-dev": { + "illuminate/support": "6.x|^8.18|^9.0", + "nesbot/carbon": "^2.43", + "phpstan/phpstan": "^0.12.92", + "phpunit/phpunit": "^9.5", + "spatie/phpunit-snapshot-assertions": "^4.2", + "spatie/test-time": "^1.2" + }, + "type": "library", + "autoload": { + "files": [ + "src/helpers.php" + ], + "psr-4": { + "Spatie\\Ray\\": "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": "Debug with Ray to fix problems faster", + "homepage": "https://github.com/spatie/ray", + "keywords": [ + "ray", + "spatie" + ], + "support": { + "issues": "https://github.com/spatie/ray/issues", + "source": "https://github.com/spatie/ray/tree/1.34.5" + }, + "funding": [ + { + "url": "https://github.com/sponsors/spatie", + "type": "github" + }, + { + "url": "https://spatie.be/open-source/support-us", + "type": "other" + } + ], + "time": "2022-06-03T12:32:57+00:00" + }, + { + "name": "squizlabs/php_codesniffer", + "version": "3.6.2", + "source": { + "type": "git", + "url": "https://github.com/squizlabs/PHP_CodeSniffer.git", + "reference": "5e4e71592f69da17871dba6e80dd51bce74a351a" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/squizlabs/PHP_CodeSniffer/zipball/5e4e71592f69da17871dba6e80dd51bce74a351a", + "reference": "5e4e71592f69da17871dba6e80dd51bce74a351a", + "shasum": "" + }, + "require": { + "ext-simplexml": "*", + "ext-tokenizer": "*", + "ext-xmlwriter": "*", + "php": ">=5.4.0" + }, + "require-dev": { + "phpunit/phpunit": "^4.0 || ^5.0 || ^6.0 || ^7.0" + }, + "bin": [ + "bin/phpcs", + "bin/phpcbf" + ], + "type": "library", + "extra": { + "branch-alias": { + "dev-master": "3.x-dev" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "BSD-3-Clause" + ], + "authors": [ + { + "name": "Greg Sherwood", + "role": "lead" + } + ], + "description": "PHP_CodeSniffer tokenizes PHP, JavaScript and CSS files and detects violations of a defined set of coding standards.", + "homepage": "https://github.com/squizlabs/PHP_CodeSniffer", + "keywords": [ + "phpcs", + "standards" + ], + "support": { + "issues": "https://github.com/squizlabs/PHP_CodeSniffer/issues", + "source": "https://github.com/squizlabs/PHP_CodeSniffer", + "wiki": "https://github.com/squizlabs/PHP_CodeSniffer/wiki" + }, + "time": "2021-12-12T21:44:58+00:00" + }, + { + "name": "swiftmailer/swiftmailer", + "version": "v6.3.0", + "source": { + "type": "git", + "url": "https://github.com/swiftmailer/swiftmailer.git", + "reference": "8a5d5072dca8f48460fce2f4131fcc495eec654c" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/swiftmailer/swiftmailer/zipball/8a5d5072dca8f48460fce2f4131fcc495eec654c", + "reference": "8a5d5072dca8f48460fce2f4131fcc495eec654c", + "shasum": "" + }, + "require": { + "egulias/email-validator": "^2.0|^3.1", + "php": ">=7.0.0", + "symfony/polyfill-iconv": "^1.0", + "symfony/polyfill-intl-idn": "^1.10", + "symfony/polyfill-mbstring": "^1.0" + }, + "require-dev": { + "mockery/mockery": "^1.0", + "symfony/phpunit-bridge": "^4.4|^5.4" + }, + "suggest": { + "ext-intl": "Needed to support internationalized email addresses" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-master": "6.2-dev" + } + }, + "autoload": { + "files": [ + "lib/swift_required.php" + ] + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Chris Corbyn" + }, + { + "name": "Fabien Potencier", + "email": "fabien@symfony.com" + } + ], + "description": "Swiftmailer, free feature-rich PHP mailer", + "homepage": "https://swiftmailer.symfony.com", + "keywords": [ + "email", + "mail", + "mailer" + ], + "support": { + "issues": "https://github.com/swiftmailer/swiftmailer/issues", + "source": "https://github.com/swiftmailer/swiftmailer/tree/v6.3.0" + }, + "funding": [ + { + "url": "https://github.com/fabpot", + "type": "github" + }, + { + "url": "https://tidelift.com/funding/github/packagist/swiftmailer/swiftmailer", + "type": "tidelift" + } + ], + "abandoned": "symfony/mailer", + "time": "2021-10-18T15:26:12+00:00" + }, + { + "name": "symfony/console", + "version": "v5.4.9", + "source": { + "type": "git", + "url": "https://github.com/symfony/console.git", + "reference": "829d5d1bf60b2efeb0887b7436873becc71a45eb" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/symfony/console/zipball/829d5d1bf60b2efeb0887b7436873becc71a45eb", + "reference": "829d5d1bf60b2efeb0887b7436873becc71a45eb", + "shasum": "" + }, + "require": { + "php": ">=7.2.5", + "symfony/deprecation-contracts": "^2.1|^3", + "symfony/polyfill-mbstring": "~1.0", + "symfony/polyfill-php73": "^1.9", + "symfony/polyfill-php80": "^1.16", + "symfony/service-contracts": "^1.1|^2|^3", + "symfony/string": "^5.1|^6.0" + }, + "conflict": { + "psr/log": ">=3", + "symfony/dependency-injection": "<4.4", + "symfony/dotenv": "<5.1", + "symfony/event-dispatcher": "<4.4", + "symfony/lock": "<4.4", + "symfony/process": "<4.4" + }, + "provide": { + "psr/log-implementation": "1.0|2.0" + }, + "require-dev": { + "psr/log": "^1|^2", + "symfony/config": "^4.4|^5.0|^6.0", + "symfony/dependency-injection": "^4.4|^5.0|^6.0", + "symfony/event-dispatcher": "^4.4|^5.0|^6.0", + "symfony/lock": "^4.4|^5.0|^6.0", + "symfony/process": "^4.4|^5.0|^6.0", + "symfony/var-dumper": "^4.4|^5.0|^6.0" + }, + "suggest": { + "psr/log": "For using the console logger", + "symfony/event-dispatcher": "", + "symfony/lock": "", + "symfony/process": "" + }, + "type": "library", + "autoload": { + "psr-4": { + "Symfony\\Component\\Console\\": "" + }, + "exclude-from-classmap": [ + "/Tests/" + ] + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Fabien Potencier", + "email": "fabien@symfony.com" + }, + { + "name": "Symfony Community", + "homepage": "https://symfony.com/contributors" + } + ], + "description": "Eases the creation of beautiful and testable command line interfaces", + "homepage": "https://symfony.com", + "keywords": [ + "cli", + "command line", + "console", + "terminal" + ], + "support": { + "source": "https://github.com/symfony/console/tree/v5.4.9" + }, + "funding": [ + { + "url": "https://symfony.com/sponsor", + "type": "custom" + }, + { + "url": "https://github.com/fabpot", + "type": "github" + }, + { + "url": "https://tidelift.com/funding/github/packagist/symfony/symfony", + "type": "tidelift" + } + ], + "time": "2022-05-18T06:17:34+00:00" + }, + { + "name": "symfony/css-selector", + "version": "v5.4.3", + "source": { + "type": "git", + "url": "https://github.com/symfony/css-selector.git", + "reference": "b0a190285cd95cb019237851205b8140ef6e368e" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/symfony/css-selector/zipball/b0a190285cd95cb019237851205b8140ef6e368e", + "reference": "b0a190285cd95cb019237851205b8140ef6e368e", + "shasum": "" + }, + "require": { + "php": ">=7.2.5", + "symfony/polyfill-php80": "^1.16" + }, + "type": "library", + "autoload": { + "psr-4": { + "Symfony\\Component\\CssSelector\\": "" + }, + "exclude-from-classmap": [ + "/Tests/" + ] + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Fabien Potencier", + "email": "fabien@symfony.com" + }, + { + "name": "Jean-François Simon", + "email": "jeanfrancois.simon@sensiolabs.com" + }, + { + "name": "Symfony Community", + "homepage": "https://symfony.com/contributors" + } + ], + "description": "Converts CSS selectors to XPath expressions", + "homepage": "https://symfony.com", + "support": { + "source": "https://github.com/symfony/css-selector/tree/v5.4.3" + }, + "funding": [ + { + "url": "https://symfony.com/sponsor", + "type": "custom" + }, + { + "url": "https://github.com/fabpot", + "type": "github" + }, + { + "url": "https://tidelift.com/funding/github/packagist/symfony/symfony", + "type": "tidelift" + } + ], + "time": "2022-01-02T09:53:40+00:00" + }, + { + "name": "symfony/error-handler", + "version": "v5.4.9", + "source": { + "type": "git", + "url": "https://github.com/symfony/error-handler.git", + "reference": "c116cda1f51c678782768dce89a45f13c949455d" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/symfony/error-handler/zipball/c116cda1f51c678782768dce89a45f13c949455d", + "reference": "c116cda1f51c678782768dce89a45f13c949455d", + "shasum": "" + }, + "require": { + "php": ">=7.2.5", + "psr/log": "^1|^2|^3", + "symfony/var-dumper": "^4.4|^5.0|^6.0" + }, + "require-dev": { + "symfony/deprecation-contracts": "^2.1|^3", + "symfony/http-kernel": "^4.4|^5.0|^6.0", + "symfony/serializer": "^4.4|^5.0|^6.0" + }, + "bin": [ + "Resources/bin/patch-type-declarations" + ], + "type": "library", + "autoload": { + "psr-4": { + "Symfony\\Component\\ErrorHandler\\": "" + }, + "exclude-from-classmap": [ + "/Tests/" + ] + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Fabien Potencier", + "email": "fabien@symfony.com" + }, + { + "name": "Symfony Community", + "homepage": "https://symfony.com/contributors" + } + ], + "description": "Provides tools to manage errors and ease debugging PHP code", + "homepage": "https://symfony.com", + "support": { + "source": "https://github.com/symfony/error-handler/tree/v5.4.9" + }, + "funding": [ + { + "url": "https://symfony.com/sponsor", + "type": "custom" + }, + { + "url": "https://github.com/fabpot", + "type": "github" + }, + { + "url": "https://tidelift.com/funding/github/packagist/symfony/symfony", + "type": "tidelift" + } + ], + "time": "2022-05-21T13:57:48+00:00" + }, + { + "name": "symfony/event-dispatcher", + "version": "v5.4.9", + "source": { + "type": "git", + "url": "https://github.com/symfony/event-dispatcher.git", + "reference": "8e6ce1cc0279e3ff3c8ff0f43813bc88d21ca1bc" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/symfony/event-dispatcher/zipball/8e6ce1cc0279e3ff3c8ff0f43813bc88d21ca1bc", + "reference": "8e6ce1cc0279e3ff3c8ff0f43813bc88d21ca1bc", + "shasum": "" + }, + "require": { + "php": ">=7.2.5", + "symfony/deprecation-contracts": "^2.1|^3", + "symfony/event-dispatcher-contracts": "^2|^3", + "symfony/polyfill-php80": "^1.16" + }, + "conflict": { + "symfony/dependency-injection": "<4.4" + }, + "provide": { + "psr/event-dispatcher-implementation": "1.0", + "symfony/event-dispatcher-implementation": "2.0" + }, + "require-dev": { + "psr/log": "^1|^2|^3", + "symfony/config": "^4.4|^5.0|^6.0", + "symfony/dependency-injection": "^4.4|^5.0|^6.0", + "symfony/error-handler": "^4.4|^5.0|^6.0", + "symfony/expression-language": "^4.4|^5.0|^6.0", + "symfony/http-foundation": "^4.4|^5.0|^6.0", + "symfony/service-contracts": "^1.1|^2|^3", + "symfony/stopwatch": "^4.4|^5.0|^6.0" + }, + "suggest": { + "symfony/dependency-injection": "", + "symfony/http-kernel": "" + }, + "type": "library", + "autoload": { + "psr-4": { + "Symfony\\Component\\EventDispatcher\\": "" + }, + "exclude-from-classmap": [ + "/Tests/" + ] + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Fabien Potencier", + "email": "fabien@symfony.com" + }, + { + "name": "Symfony Community", + "homepage": "https://symfony.com/contributors" + } + ], + "description": "Provides tools that allow your application components to communicate with each other by dispatching events and listening to them", + "homepage": "https://symfony.com", + "support": { + "source": "https://github.com/symfony/event-dispatcher/tree/v5.4.9" + }, + "funding": [ + { + "url": "https://symfony.com/sponsor", + "type": "custom" + }, + { + "url": "https://github.com/fabpot", + "type": "github" + }, + { + "url": "https://tidelift.com/funding/github/packagist/symfony/symfony", + "type": "tidelift" + } + ], + "time": "2022-05-05T16:45:39+00:00" + }, + { + "name": "symfony/event-dispatcher-contracts", + "version": "v2.5.1", + "source": { + "type": "git", + "url": "https://github.com/symfony/event-dispatcher-contracts.git", + "reference": "f98b54df6ad059855739db6fcbc2d36995283fe1" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/symfony/event-dispatcher-contracts/zipball/f98b54df6ad059855739db6fcbc2d36995283fe1", + "reference": "f98b54df6ad059855739db6fcbc2d36995283fe1", + "shasum": "" + }, + "require": { + "php": ">=7.2.5", + "psr/event-dispatcher": "^1" + }, + "suggest": { + "symfony/event-dispatcher-implementation": "" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-main": "2.5-dev" + }, + "thanks": { + "name": "symfony/contracts", + "url": "https://github.com/symfony/contracts" + } + }, + "autoload": { + "psr-4": { + "Symfony\\Contracts\\EventDispatcher\\": "" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Nicolas Grekas", + "email": "p@tchwork.com" + }, + { + "name": "Symfony Community", + "homepage": "https://symfony.com/contributors" + } + ], + "description": "Generic abstractions related to dispatching event", + "homepage": "https://symfony.com", + "keywords": [ + "abstractions", + "contracts", + "decoupling", + "interfaces", + "interoperability", + "standards" + ], + "support": { + "source": "https://github.com/symfony/event-dispatcher-contracts/tree/v2.5.1" + }, + "funding": [ + { + "url": "https://symfony.com/sponsor", + "type": "custom" + }, + { + "url": "https://github.com/fabpot", + "type": "github" + }, + { + "url": "https://tidelift.com/funding/github/packagist/symfony/symfony", + "type": "tidelift" + } + ], + "time": "2022-01-02T09:53:40+00:00" + }, + { + "name": "symfony/finder", + "version": "v5.4.8", + "source": { + "type": "git", + "url": "https://github.com/symfony/finder.git", + "reference": "9b630f3427f3ebe7cd346c277a1408b00249dad9" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/symfony/finder/zipball/9b630f3427f3ebe7cd346c277a1408b00249dad9", + "reference": "9b630f3427f3ebe7cd346c277a1408b00249dad9", + "shasum": "" + }, + "require": { + "php": ">=7.2.5", + "symfony/deprecation-contracts": "^2.1|^3", + "symfony/polyfill-php80": "^1.16" + }, + "type": "library", + "autoload": { + "psr-4": { + "Symfony\\Component\\Finder\\": "" + }, + "exclude-from-classmap": [ + "/Tests/" + ] + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Fabien Potencier", + "email": "fabien@symfony.com" + }, + { + "name": "Symfony Community", + "homepage": "https://symfony.com/contributors" + } + ], + "description": "Finds files and directories via an intuitive fluent interface", + "homepage": "https://symfony.com", + "support": { + "source": "https://github.com/symfony/finder/tree/v5.4.8" + }, + "funding": [ + { + "url": "https://symfony.com/sponsor", + "type": "custom" + }, + { + "url": "https://github.com/fabpot", + "type": "github" + }, + { + "url": "https://tidelift.com/funding/github/packagist/symfony/symfony", + "type": "tidelift" + } + ], + "time": "2022-04-15T08:07:45+00:00" + }, + { + "name": "symfony/http-foundation", + "version": "v5.4.9", + "source": { + "type": "git", + "url": "https://github.com/symfony/http-foundation.git", + "reference": "6b0d0e4aca38d57605dcd11e2416994b38774522" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/symfony/http-foundation/zipball/6b0d0e4aca38d57605dcd11e2416994b38774522", + "reference": "6b0d0e4aca38d57605dcd11e2416994b38774522", + "shasum": "" + }, + "require": { + "php": ">=7.2.5", + "symfony/deprecation-contracts": "^2.1|^3", + "symfony/polyfill-mbstring": "~1.1", + "symfony/polyfill-php80": "^1.16" + }, + "require-dev": { + "predis/predis": "~1.0", + "symfony/cache": "^4.4|^5.0|^6.0", + "symfony/expression-language": "^4.4|^5.0|^6.0", + "symfony/mime": "^4.4|^5.0|^6.0" + }, + "suggest": { + "symfony/mime": "To use the file extension guesser" + }, + "type": "library", + "autoload": { + "psr-4": { + "Symfony\\Component\\HttpFoundation\\": "" + }, + "exclude-from-classmap": [ + "/Tests/" + ] + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Fabien Potencier", + "email": "fabien@symfony.com" + }, + { + "name": "Symfony Community", + "homepage": "https://symfony.com/contributors" + } + ], + "description": "Defines an object-oriented layer for the HTTP specification", + "homepage": "https://symfony.com", + "support": { + "source": "https://github.com/symfony/http-foundation/tree/v5.4.9" + }, + "funding": [ + { + "url": "https://symfony.com/sponsor", + "type": "custom" + }, + { + "url": "https://github.com/fabpot", + "type": "github" + }, + { + "url": "https://tidelift.com/funding/github/packagist/symfony/symfony", + "type": "tidelift" + } + ], + "time": "2022-05-17T15:07:29+00:00" + }, + { + "name": "symfony/http-kernel", + "version": "v5.4.9", + "source": { + "type": "git", + "url": "https://github.com/symfony/http-kernel.git", + "reference": "34b121ad3dc761f35fe1346d2f15618f8cbf77f8" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/symfony/http-kernel/zipball/34b121ad3dc761f35fe1346d2f15618f8cbf77f8", + "reference": "34b121ad3dc761f35fe1346d2f15618f8cbf77f8", + "shasum": "" + }, + "require": { + "php": ">=7.2.5", + "psr/log": "^1|^2", + "symfony/deprecation-contracts": "^2.1|^3", + "symfony/error-handler": "^4.4|^5.0|^6.0", + "symfony/event-dispatcher": "^5.0|^6.0", + "symfony/http-foundation": "^5.3.7|^6.0", + "symfony/polyfill-ctype": "^1.8", + "symfony/polyfill-php73": "^1.9", + "symfony/polyfill-php80": "^1.16" + }, + "conflict": { + "symfony/browser-kit": "<5.4", + "symfony/cache": "<5.0", + "symfony/config": "<5.0", + "symfony/console": "<4.4", + "symfony/dependency-injection": "<5.3", + "symfony/doctrine-bridge": "<5.0", + "symfony/form": "<5.0", + "symfony/http-client": "<5.0", + "symfony/mailer": "<5.0", + "symfony/messenger": "<5.0", + "symfony/translation": "<5.0", + "symfony/twig-bridge": "<5.0", + "symfony/validator": "<5.0", + "twig/twig": "<2.13" + }, + "provide": { + "psr/log-implementation": "1.0|2.0" + }, + "require-dev": { + "psr/cache": "^1.0|^2.0|^3.0", + "symfony/browser-kit": "^5.4|^6.0", + "symfony/config": "^5.0|^6.0", + "symfony/console": "^4.4|^5.0|^6.0", + "symfony/css-selector": "^4.4|^5.0|^6.0", + "symfony/dependency-injection": "^5.3|^6.0", + "symfony/dom-crawler": "^4.4|^5.0|^6.0", + "symfony/expression-language": "^4.4|^5.0|^6.0", + "symfony/finder": "^4.4|^5.0|^6.0", + "symfony/http-client-contracts": "^1.1|^2|^3", + "symfony/process": "^4.4|^5.0|^6.0", + "symfony/routing": "^4.4|^5.0|^6.0", + "symfony/stopwatch": "^4.4|^5.0|^6.0", + "symfony/translation": "^4.4|^5.0|^6.0", + "symfony/translation-contracts": "^1.1|^2|^3", + "twig/twig": "^2.13|^3.0.4" + }, + "suggest": { + "symfony/browser-kit": "", + "symfony/config": "", + "symfony/console": "", + "symfony/dependency-injection": "" + }, + "type": "library", + "autoload": { + "psr-4": { + "Symfony\\Component\\HttpKernel\\": "" + }, + "exclude-from-classmap": [ + "/Tests/" + ] + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Fabien Potencier", + "email": "fabien@symfony.com" + }, + { + "name": "Symfony Community", + "homepage": "https://symfony.com/contributors" + } + ], + "description": "Provides a structured process for converting a Request into a Response", + "homepage": "https://symfony.com", + "support": { + "source": "https://github.com/symfony/http-kernel/tree/v5.4.9" + }, + "funding": [ + { + "url": "https://symfony.com/sponsor", + "type": "custom" + }, + { + "url": "https://github.com/fabpot", + "type": "github" + }, + { + "url": "https://tidelift.com/funding/github/packagist/symfony/symfony", + "type": "tidelift" + } + ], + "time": "2022-05-27T07:09:08+00:00" + }, + { + "name": "symfony/mime", + "version": "v5.4.9", + "source": { + "type": "git", + "url": "https://github.com/symfony/mime.git", + "reference": "2b3802a24e48d0cfccf885173d2aac91e73df92e" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/symfony/mime/zipball/2b3802a24e48d0cfccf885173d2aac91e73df92e", + "reference": "2b3802a24e48d0cfccf885173d2aac91e73df92e", + "shasum": "" + }, + "require": { + "php": ">=7.2.5", + "symfony/deprecation-contracts": "^2.1|^3", + "symfony/polyfill-intl-idn": "^1.10", + "symfony/polyfill-mbstring": "^1.0", + "symfony/polyfill-php80": "^1.16" + }, + "conflict": { + "egulias/email-validator": "~3.0.0", + "phpdocumentor/reflection-docblock": "<3.2.2", + "phpdocumentor/type-resolver": "<1.4.0", + "symfony/mailer": "<4.4" + }, + "require-dev": { + "egulias/email-validator": "^2.1.10|^3.1", + "phpdocumentor/reflection-docblock": "^3.0|^4.0|^5.0", + "symfony/dependency-injection": "^4.4|^5.0|^6.0", + "symfony/property-access": "^4.4|^5.1|^6.0", + "symfony/property-info": "^4.4|^5.1|^6.0", + "symfony/serializer": "^5.2|^6.0" + }, + "type": "library", + "autoload": { + "psr-4": { + "Symfony\\Component\\Mime\\": "" + }, + "exclude-from-classmap": [ + "/Tests/" + ] + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Fabien Potencier", + "email": "fabien@symfony.com" + }, + { + "name": "Symfony Community", + "homepage": "https://symfony.com/contributors" + } + ], + "description": "Allows manipulating MIME messages", + "homepage": "https://symfony.com", + "keywords": [ + "mime", + "mime-type" + ], + "support": { + "source": "https://github.com/symfony/mime/tree/v5.4.9" + }, + "funding": [ + { + "url": "https://symfony.com/sponsor", + "type": "custom" + }, + { + "url": "https://github.com/fabpot", + "type": "github" + }, + { + "url": "https://tidelift.com/funding/github/packagist/symfony/symfony", + "type": "tidelift" + } + ], + "time": "2022-05-21T10:24:18+00:00" + }, + { + "name": "symfony/polyfill-ctype", + "version": "v1.26.0", + "source": { + "type": "git", + "url": "https://github.com/symfony/polyfill-ctype.git", + "reference": "6fd1b9a79f6e3cf65f9e679b23af304cd9e010d4" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/symfony/polyfill-ctype/zipball/6fd1b9a79f6e3cf65f9e679b23af304cd9e010d4", + "reference": "6fd1b9a79f6e3cf65f9e679b23af304cd9e010d4", + "shasum": "" + }, + "require": { + "php": ">=7.1" + }, + "provide": { + "ext-ctype": "*" + }, + "suggest": { + "ext-ctype": "For best performance" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-main": "1.26-dev" + }, + "thanks": { + "name": "symfony/polyfill", + "url": "https://github.com/symfony/polyfill" + } + }, + "autoload": { + "files": [ + "bootstrap.php" + ], + "psr-4": { + "Symfony\\Polyfill\\Ctype\\": "" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Gert de Pagter", + "email": "BackEndTea@gmail.com" + }, + { + "name": "Symfony Community", + "homepage": "https://symfony.com/contributors" + } + ], + "description": "Symfony polyfill for ctype functions", + "homepage": "https://symfony.com", + "keywords": [ + "compatibility", + "ctype", + "polyfill", + "portable" + ], + "support": { + "source": "https://github.com/symfony/polyfill-ctype/tree/v1.26.0" + }, + "funding": [ + { + "url": "https://symfony.com/sponsor", + "type": "custom" + }, + { + "url": "https://github.com/fabpot", + "type": "github" + }, + { + "url": "https://tidelift.com/funding/github/packagist/symfony/symfony", + "type": "tidelift" + } + ], + "time": "2022-05-24T11:49:31+00:00" + }, + { + "name": "symfony/polyfill-iconv", + "version": "v1.26.0", + "source": { + "type": "git", + "url": "https://github.com/symfony/polyfill-iconv.git", + "reference": "143f1881e655bebca1312722af8068de235ae5dc" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/symfony/polyfill-iconv/zipball/143f1881e655bebca1312722af8068de235ae5dc", + "reference": "143f1881e655bebca1312722af8068de235ae5dc", + "shasum": "" + }, + "require": { + "php": ">=7.1" + }, + "provide": { + "ext-iconv": "*" + }, + "suggest": { + "ext-iconv": "For best performance" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-main": "1.26-dev" + }, + "thanks": { + "name": "symfony/polyfill", + "url": "https://github.com/symfony/polyfill" + } + }, + "autoload": { + "files": [ + "bootstrap.php" + ], + "psr-4": { + "Symfony\\Polyfill\\Iconv\\": "" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Nicolas Grekas", + "email": "p@tchwork.com" + }, + { + "name": "Symfony Community", + "homepage": "https://symfony.com/contributors" + } + ], + "description": "Symfony polyfill for the Iconv extension", + "homepage": "https://symfony.com", + "keywords": [ + "compatibility", + "iconv", + "polyfill", + "portable", + "shim" + ], + "support": { + "source": "https://github.com/symfony/polyfill-iconv/tree/v1.26.0" + }, + "funding": [ + { + "url": "https://symfony.com/sponsor", + "type": "custom" + }, + { + "url": "https://github.com/fabpot", + "type": "github" + }, + { + "url": "https://tidelift.com/funding/github/packagist/symfony/symfony", + "type": "tidelift" + } + ], + "time": "2022-05-24T11:49:31+00:00" + }, + { + "name": "symfony/polyfill-intl-grapheme", + "version": "v1.26.0", + "source": { + "type": "git", + "url": "https://github.com/symfony/polyfill-intl-grapheme.git", + "reference": "433d05519ce6990bf3530fba6957499d327395c2" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/symfony/polyfill-intl-grapheme/zipball/433d05519ce6990bf3530fba6957499d327395c2", + "reference": "433d05519ce6990bf3530fba6957499d327395c2", + "shasum": "" + }, + "require": { + "php": ">=7.1" + }, + "suggest": { + "ext-intl": "For best performance" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-main": "1.26-dev" + }, + "thanks": { + "name": "symfony/polyfill", + "url": "https://github.com/symfony/polyfill" + } + }, + "autoload": { + "files": [ + "bootstrap.php" + ], + "psr-4": { + "Symfony\\Polyfill\\Intl\\Grapheme\\": "" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Nicolas Grekas", + "email": "p@tchwork.com" + }, + { + "name": "Symfony Community", + "homepage": "https://symfony.com/contributors" + } + ], + "description": "Symfony polyfill for intl's grapheme_* functions", + "homepage": "https://symfony.com", + "keywords": [ + "compatibility", + "grapheme", + "intl", + "polyfill", + "portable", + "shim" + ], + "support": { + "source": "https://github.com/symfony/polyfill-intl-grapheme/tree/v1.26.0" + }, + "funding": [ + { + "url": "https://symfony.com/sponsor", + "type": "custom" + }, + { + "url": "https://github.com/fabpot", + "type": "github" + }, + { + "url": "https://tidelift.com/funding/github/packagist/symfony/symfony", + "type": "tidelift" + } + ], + "time": "2022-05-24T11:49:31+00:00" + }, + { + "name": "symfony/polyfill-intl-idn", + "version": "v1.26.0", + "source": { + "type": "git", + "url": "https://github.com/symfony/polyfill-intl-idn.git", + "reference": "59a8d271f00dd0e4c2e518104cc7963f655a1aa8" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/symfony/polyfill-intl-idn/zipball/59a8d271f00dd0e4c2e518104cc7963f655a1aa8", + "reference": "59a8d271f00dd0e4c2e518104cc7963f655a1aa8", + "shasum": "" + }, + "require": { + "php": ">=7.1", + "symfony/polyfill-intl-normalizer": "^1.10", + "symfony/polyfill-php72": "^1.10" + }, + "suggest": { + "ext-intl": "For best performance" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-main": "1.26-dev" + }, + "thanks": { + "name": "symfony/polyfill", + "url": "https://github.com/symfony/polyfill" + } + }, + "autoload": { + "files": [ + "bootstrap.php" + ], + "psr-4": { + "Symfony\\Polyfill\\Intl\\Idn\\": "" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Laurent Bassin", + "email": "laurent@bassin.info" + }, + { + "name": "Trevor Rowbotham", + "email": "trevor.rowbotham@pm.me" + }, + { + "name": "Symfony Community", + "homepage": "https://symfony.com/contributors" + } + ], + "description": "Symfony polyfill for intl's idn_to_ascii and idn_to_utf8 functions", + "homepage": "https://symfony.com", + "keywords": [ + "compatibility", + "idn", + "intl", + "polyfill", + "portable", + "shim" + ], + "support": { + "source": "https://github.com/symfony/polyfill-intl-idn/tree/v1.26.0" + }, + "funding": [ + { + "url": "https://symfony.com/sponsor", + "type": "custom" + }, + { + "url": "https://github.com/fabpot", + "type": "github" + }, + { + "url": "https://tidelift.com/funding/github/packagist/symfony/symfony", + "type": "tidelift" + } + ], + "time": "2022-05-24T11:49:31+00:00" + }, + { + "name": "symfony/polyfill-intl-normalizer", + "version": "v1.26.0", + "source": { + "type": "git", + "url": "https://github.com/symfony/polyfill-intl-normalizer.git", + "reference": "219aa369ceff116e673852dce47c3a41794c14bd" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/symfony/polyfill-intl-normalizer/zipball/219aa369ceff116e673852dce47c3a41794c14bd", + "reference": "219aa369ceff116e673852dce47c3a41794c14bd", + "shasum": "" + }, + "require": { + "php": ">=7.1" + }, + "suggest": { + "ext-intl": "For best performance" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-main": "1.26-dev" + }, + "thanks": { + "name": "symfony/polyfill", + "url": "https://github.com/symfony/polyfill" + } + }, + "autoload": { + "files": [ + "bootstrap.php" + ], + "psr-4": { + "Symfony\\Polyfill\\Intl\\Normalizer\\": "" + }, + "classmap": [ + "Resources/stubs" + ] + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Nicolas Grekas", + "email": "p@tchwork.com" + }, + { + "name": "Symfony Community", + "homepage": "https://symfony.com/contributors" + } + ], + "description": "Symfony polyfill for intl's Normalizer class and related functions", + "homepage": "https://symfony.com", + "keywords": [ + "compatibility", + "intl", + "normalizer", + "polyfill", + "portable", + "shim" + ], + "support": { + "source": "https://github.com/symfony/polyfill-intl-normalizer/tree/v1.26.0" + }, + "funding": [ + { + "url": "https://symfony.com/sponsor", + "type": "custom" + }, + { + "url": "https://github.com/fabpot", + "type": "github" + }, + { + "url": "https://tidelift.com/funding/github/packagist/symfony/symfony", + "type": "tidelift" + } + ], + "time": "2022-05-24T11:49:31+00:00" + }, + { + "name": "symfony/polyfill-php72", + "version": "v1.26.0", + "source": { + "type": "git", + "url": "https://github.com/symfony/polyfill-php72.git", + "reference": "bf44a9fd41feaac72b074de600314a93e2ae78e2" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/symfony/polyfill-php72/zipball/bf44a9fd41feaac72b074de600314a93e2ae78e2", + "reference": "bf44a9fd41feaac72b074de600314a93e2ae78e2", + "shasum": "" + }, + "require": { + "php": ">=7.1" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-main": "1.26-dev" + }, + "thanks": { + "name": "symfony/polyfill", + "url": "https://github.com/symfony/polyfill" + } + }, + "autoload": { + "files": [ + "bootstrap.php" + ], + "psr-4": { + "Symfony\\Polyfill\\Php72\\": "" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Nicolas Grekas", + "email": "p@tchwork.com" + }, + { + "name": "Symfony Community", + "homepage": "https://symfony.com/contributors" + } + ], + "description": "Symfony polyfill backporting some PHP 7.2+ features to lower PHP versions", + "homepage": "https://symfony.com", + "keywords": [ + "compatibility", + "polyfill", + "portable", + "shim" + ], + "support": { + "source": "https://github.com/symfony/polyfill-php72/tree/v1.26.0" + }, + "funding": [ + { + "url": "https://symfony.com/sponsor", + "type": "custom" + }, + { + "url": "https://github.com/fabpot", + "type": "github" + }, + { + "url": "https://tidelift.com/funding/github/packagist/symfony/symfony", + "type": "tidelift" + } + ], + "time": "2022-05-24T11:49:31+00:00" + }, + { + "name": "symfony/polyfill-php73", + "version": "v1.26.0", + "source": { + "type": "git", + "url": "https://github.com/symfony/polyfill-php73.git", + "reference": "e440d35fa0286f77fb45b79a03fedbeda9307e85" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/symfony/polyfill-php73/zipball/e440d35fa0286f77fb45b79a03fedbeda9307e85", + "reference": "e440d35fa0286f77fb45b79a03fedbeda9307e85", + "shasum": "" + }, + "require": { + "php": ">=7.1" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-main": "1.26-dev" + }, + "thanks": { + "name": "symfony/polyfill", + "url": "https://github.com/symfony/polyfill" + } + }, + "autoload": { + "files": [ + "bootstrap.php" + ], + "psr-4": { + "Symfony\\Polyfill\\Php73\\": "" + }, + "classmap": [ + "Resources/stubs" + ] + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Nicolas Grekas", + "email": "p@tchwork.com" + }, + { + "name": "Symfony Community", + "homepage": "https://symfony.com/contributors" + } + ], + "description": "Symfony polyfill backporting some PHP 7.3+ features to lower PHP versions", + "homepage": "https://symfony.com", + "keywords": [ + "compatibility", + "polyfill", + "portable", + "shim" + ], + "support": { + "source": "https://github.com/symfony/polyfill-php73/tree/v1.26.0" + }, + "funding": [ + { + "url": "https://symfony.com/sponsor", + "type": "custom" + }, + { + "url": "https://github.com/fabpot", + "type": "github" + }, + { + "url": "https://tidelift.com/funding/github/packagist/symfony/symfony", + "type": "tidelift" + } + ], + "time": "2022-05-24T11:49:31+00:00" + }, + { + "name": "symfony/polyfill-php80", + "version": "v1.26.0", + "source": { + "type": "git", + "url": "https://github.com/symfony/polyfill-php80.git", + "reference": "cfa0ae98841b9e461207c13ab093d76b0fa7bace" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/symfony/polyfill-php80/zipball/cfa0ae98841b9e461207c13ab093d76b0fa7bace", + "reference": "cfa0ae98841b9e461207c13ab093d76b0fa7bace", + "shasum": "" + }, + "require": { + "php": ">=7.1" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-main": "1.26-dev" + }, + "thanks": { + "name": "symfony/polyfill", + "url": "https://github.com/symfony/polyfill" + } + }, + "autoload": { + "files": [ + "bootstrap.php" + ], + "psr-4": { + "Symfony\\Polyfill\\Php80\\": "" + }, + "classmap": [ + "Resources/stubs" + ] + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Ion Bazan", + "email": "ion.bazan@gmail.com" + }, + { + "name": "Nicolas Grekas", + "email": "p@tchwork.com" + }, + { + "name": "Symfony Community", + "homepage": "https://symfony.com/contributors" + } + ], + "description": "Symfony polyfill backporting some PHP 8.0+ features to lower PHP versions", + "homepage": "https://symfony.com", + "keywords": [ + "compatibility", + "polyfill", + "portable", + "shim" + ], + "support": { + "source": "https://github.com/symfony/polyfill-php80/tree/v1.26.0" + }, + "funding": [ + { + "url": "https://symfony.com/sponsor", + "type": "custom" + }, + { + "url": "https://github.com/fabpot", + "type": "github" + }, + { + "url": "https://tidelift.com/funding/github/packagist/symfony/symfony", + "type": "tidelift" + } + ], + "time": "2022-05-10T07:21:04+00:00" + }, + { + "name": "symfony/polyfill-php81", + "version": "v1.26.0", + "source": { + "type": "git", + "url": "https://github.com/symfony/polyfill-php81.git", + "reference": "13f6d1271c663dc5ae9fb843a8f16521db7687a1" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/symfony/polyfill-php81/zipball/13f6d1271c663dc5ae9fb843a8f16521db7687a1", + "reference": "13f6d1271c663dc5ae9fb843a8f16521db7687a1", + "shasum": "" + }, + "require": { + "php": ">=7.1" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-main": "1.26-dev" + }, + "thanks": { + "name": "symfony/polyfill", + "url": "https://github.com/symfony/polyfill" + } + }, + "autoload": { + "files": [ + "bootstrap.php" + ], + "psr-4": { + "Symfony\\Polyfill\\Php81\\": "" + }, + "classmap": [ + "Resources/stubs" + ] + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Nicolas Grekas", + "email": "p@tchwork.com" + }, + { + "name": "Symfony Community", + "homepage": "https://symfony.com/contributors" + } + ], + "description": "Symfony polyfill backporting some PHP 8.1+ features to lower PHP versions", + "homepage": "https://symfony.com", + "keywords": [ + "compatibility", + "polyfill", + "portable", + "shim" + ], + "support": { + "source": "https://github.com/symfony/polyfill-php81/tree/v1.26.0" + }, + "funding": [ + { + "url": "https://symfony.com/sponsor", + "type": "custom" + }, + { + "url": "https://github.com/fabpot", + "type": "github" + }, + { + "url": "https://tidelift.com/funding/github/packagist/symfony/symfony", + "type": "tidelift" + } + ], + "time": "2022-05-24T11:49:31+00:00" + }, + { + "name": "symfony/process", + "version": "v5.4.8", + "source": { + "type": "git", + "url": "https://github.com/symfony/process.git", + "reference": "597f3fff8e3e91836bb0bd38f5718b56ddbde2f3" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/symfony/process/zipball/597f3fff8e3e91836bb0bd38f5718b56ddbde2f3", + "reference": "597f3fff8e3e91836bb0bd38f5718b56ddbde2f3", + "shasum": "" + }, + "require": { + "php": ">=7.2.5", + "symfony/polyfill-php80": "^1.16" + }, + "type": "library", + "autoload": { + "psr-4": { + "Symfony\\Component\\Process\\": "" + }, + "exclude-from-classmap": [ + "/Tests/" + ] + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Fabien Potencier", + "email": "fabien@symfony.com" + }, + { + "name": "Symfony Community", + "homepage": "https://symfony.com/contributors" + } + ], + "description": "Executes commands in sub-processes", + "homepage": "https://symfony.com", + "support": { + "source": "https://github.com/symfony/process/tree/v5.4.8" + }, + "funding": [ + { + "url": "https://symfony.com/sponsor", + "type": "custom" + }, + { + "url": "https://github.com/fabpot", + "type": "github" + }, + { + "url": "https://tidelift.com/funding/github/packagist/symfony/symfony", + "type": "tidelift" + } + ], + "time": "2022-04-08T05:07:18+00:00" + }, + { + "name": "symfony/routing", + "version": "v5.4.8", + "source": { + "type": "git", + "url": "https://github.com/symfony/routing.git", + "reference": "e07817bb6244ea33ef5ad31abc4a9288bef3f2f7" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/symfony/routing/zipball/e07817bb6244ea33ef5ad31abc4a9288bef3f2f7", + "reference": "e07817bb6244ea33ef5ad31abc4a9288bef3f2f7", + "shasum": "" + }, + "require": { + "php": ">=7.2.5", + "symfony/deprecation-contracts": "^2.1|^3", + "symfony/polyfill-php80": "^1.16" + }, + "conflict": { + "doctrine/annotations": "<1.12", + "symfony/config": "<5.3", + "symfony/dependency-injection": "<4.4", + "symfony/yaml": "<4.4" + }, + "require-dev": { + "doctrine/annotations": "^1.12", + "psr/log": "^1|^2|^3", + "symfony/config": "^5.3|^6.0", + "symfony/dependency-injection": "^4.4|^5.0|^6.0", + "symfony/expression-language": "^4.4|^5.0|^6.0", + "symfony/http-foundation": "^4.4|^5.0|^6.0", + "symfony/yaml": "^4.4|^5.0|^6.0" + }, + "suggest": { + "symfony/config": "For using the all-in-one router or any loader", + "symfony/expression-language": "For using expression matching", + "symfony/http-foundation": "For using a Symfony Request object", + "symfony/yaml": "For using the YAML loader" + }, + "type": "library", + "autoload": { + "psr-4": { + "Symfony\\Component\\Routing\\": "" + }, + "exclude-from-classmap": [ + "/Tests/" + ] + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Fabien Potencier", + "email": "fabien@symfony.com" + }, + { + "name": "Symfony Community", + "homepage": "https://symfony.com/contributors" + } + ], + "description": "Maps an HTTP request to a set of configuration variables", + "homepage": "https://symfony.com", + "keywords": [ + "router", + "routing", + "uri", + "url" + ], + "support": { + "source": "https://github.com/symfony/routing/tree/v5.4.8" + }, + "funding": [ + { + "url": "https://symfony.com/sponsor", + "type": "custom" + }, + { + "url": "https://github.com/fabpot", + "type": "github" + }, + { + "url": "https://tidelift.com/funding/github/packagist/symfony/symfony", + "type": "tidelift" + } + ], + "time": "2022-04-18T21:45:37+00:00" + }, + { + "name": "symfony/service-contracts", + "version": "v2.5.1", + "source": { + "type": "git", + "url": "https://github.com/symfony/service-contracts.git", + "reference": "24d9dc654b83e91aa59f9d167b131bc3b5bea24c" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/symfony/service-contracts/zipball/24d9dc654b83e91aa59f9d167b131bc3b5bea24c", + "reference": "24d9dc654b83e91aa59f9d167b131bc3b5bea24c", + "shasum": "" + }, + "require": { + "php": ">=7.2.5", + "psr/container": "^1.1", + "symfony/deprecation-contracts": "^2.1|^3" + }, + "conflict": { + "ext-psr": "<1.1|>=2" + }, + "suggest": { + "symfony/service-implementation": "" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-main": "2.5-dev" + }, + "thanks": { + "name": "symfony/contracts", + "url": "https://github.com/symfony/contracts" + } + }, + "autoload": { + "psr-4": { + "Symfony\\Contracts\\Service\\": "" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Nicolas Grekas", + "email": "p@tchwork.com" + }, + { + "name": "Symfony Community", + "homepage": "https://symfony.com/contributors" + } + ], + "description": "Generic abstractions related to writing services", + "homepage": "https://symfony.com", + "keywords": [ + "abstractions", + "contracts", + "decoupling", + "interfaces", + "interoperability", + "standards" + ], + "support": { + "source": "https://github.com/symfony/service-contracts/tree/v2.5.1" + }, + "funding": [ + { + "url": "https://symfony.com/sponsor", + "type": "custom" + }, + { + "url": "https://github.com/fabpot", + "type": "github" + }, + { + "url": "https://tidelift.com/funding/github/packagist/symfony/symfony", + "type": "tidelift" + } + ], + "time": "2022-03-13T20:07:29+00:00" + }, + { + "name": "symfony/stopwatch", + "version": "v5.4.5", + "source": { + "type": "git", + "url": "https://github.com/symfony/stopwatch.git", + "reference": "4d04b5c24f3c9a1a168a131f6cbe297155bc0d30" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/symfony/stopwatch/zipball/4d04b5c24f3c9a1a168a131f6cbe297155bc0d30", + "reference": "4d04b5c24f3c9a1a168a131f6cbe297155bc0d30", + "shasum": "" + }, + "require": { + "php": ">=7.2.5", + "symfony/service-contracts": "^1|^2|^3" + }, + "type": "library", + "autoload": { + "psr-4": { + "Symfony\\Component\\Stopwatch\\": "" + }, + "exclude-from-classmap": [ + "/Tests/" + ] + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Fabien Potencier", + "email": "fabien@symfony.com" + }, + { + "name": "Symfony Community", + "homepage": "https://symfony.com/contributors" + } + ], + "description": "Provides a way to profile code", + "homepage": "https://symfony.com", + "support": { + "source": "https://github.com/symfony/stopwatch/tree/v5.4.5" + }, + "funding": [ + { + "url": "https://symfony.com/sponsor", + "type": "custom" + }, + { + "url": "https://github.com/fabpot", + "type": "github" + }, + { + "url": "https://tidelift.com/funding/github/packagist/symfony/symfony", + "type": "tidelift" + } + ], + "time": "2022-02-18T16:06:09+00:00" + }, + { + "name": "symfony/string", + "version": "v5.4.9", + "source": { + "type": "git", + "url": "https://github.com/symfony/string.git", + "reference": "985e6a9703ef5ce32ba617c9c7d97873bb7b2a99" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/symfony/string/zipball/985e6a9703ef5ce32ba617c9c7d97873bb7b2a99", + "reference": "985e6a9703ef5ce32ba617c9c7d97873bb7b2a99", + "shasum": "" + }, + "require": { + "php": ">=7.2.5", + "symfony/polyfill-ctype": "~1.8", + "symfony/polyfill-intl-grapheme": "~1.0", + "symfony/polyfill-intl-normalizer": "~1.0", + "symfony/polyfill-mbstring": "~1.0", + "symfony/polyfill-php80": "~1.15" + }, + "conflict": { + "symfony/translation-contracts": ">=3.0" + }, + "require-dev": { + "symfony/error-handler": "^4.4|^5.0|^6.0", + "symfony/http-client": "^4.4|^5.0|^6.0", + "symfony/translation-contracts": "^1.1|^2", + "symfony/var-exporter": "^4.4|^5.0|^6.0" + }, + "type": "library", + "autoload": { + "files": [ + "Resources/functions.php" + ], + "psr-4": { + "Symfony\\Component\\String\\": "" + }, + "exclude-from-classmap": [ + "/Tests/" + ] + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Nicolas Grekas", + "email": "p@tchwork.com" + }, + { + "name": "Symfony Community", + "homepage": "https://symfony.com/contributors" + } + ], + "description": "Provides an object-oriented API to strings and deals with bytes, UTF-8 code points and grapheme clusters in a unified way", + "homepage": "https://symfony.com", + "keywords": [ + "grapheme", + "i18n", + "string", + "unicode", + "utf-8", + "utf8" + ], + "support": { + "source": "https://github.com/symfony/string/tree/v5.4.9" + }, + "funding": [ + { + "url": "https://symfony.com/sponsor", + "type": "custom" + }, + { + "url": "https://github.com/fabpot", + "type": "github" + }, + { + "url": "https://tidelift.com/funding/github/packagist/symfony/symfony", + "type": "tidelift" + } + ], + "time": "2022-04-19T10:40:37+00:00" + }, + { + "name": "symfony/translation", + "version": "v5.4.9", + "source": { + "type": "git", + "url": "https://github.com/symfony/translation.git", + "reference": "1639abc1177d26bcd4320e535e664cef067ab0ca" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/symfony/translation/zipball/1639abc1177d26bcd4320e535e664cef067ab0ca", + "reference": "1639abc1177d26bcd4320e535e664cef067ab0ca", + "shasum": "" + }, + "require": { + "php": ">=7.2.5", + "symfony/deprecation-contracts": "^2.1|^3", + "symfony/polyfill-mbstring": "~1.0", + "symfony/polyfill-php80": "^1.16", + "symfony/translation-contracts": "^2.3" + }, + "conflict": { + "symfony/config": "<4.4", + "symfony/console": "<5.3", + "symfony/dependency-injection": "<5.0", + "symfony/http-kernel": "<5.0", + "symfony/twig-bundle": "<5.0", + "symfony/yaml": "<4.4" + }, + "provide": { + "symfony/translation-implementation": "2.3" + }, + "require-dev": { + "psr/log": "^1|^2|^3", + "symfony/config": "^4.4|^5.0|^6.0", + "symfony/console": "^5.4|^6.0", + "symfony/dependency-injection": "^5.0|^6.0", + "symfony/finder": "^4.4|^5.0|^6.0", + "symfony/http-client-contracts": "^1.1|^2.0|^3.0", + "symfony/http-kernel": "^5.0|^6.0", + "symfony/intl": "^4.4|^5.0|^6.0", + "symfony/polyfill-intl-icu": "^1.21", + "symfony/service-contracts": "^1.1.2|^2|^3", + "symfony/yaml": "^4.4|^5.0|^6.0" + }, + "suggest": { + "psr/log-implementation": "To use logging capability in translator", + "symfony/config": "", + "symfony/yaml": "" + }, + "type": "library", + "autoload": { + "files": [ + "Resources/functions.php" + ], + "psr-4": { + "Symfony\\Component\\Translation\\": "" + }, + "exclude-from-classmap": [ + "/Tests/" + ] + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Fabien Potencier", + "email": "fabien@symfony.com" + }, + { + "name": "Symfony Community", + "homepage": "https://symfony.com/contributors" + } + ], + "description": "Provides tools to internationalize your application", + "homepage": "https://symfony.com", + "support": { + "source": "https://github.com/symfony/translation/tree/v5.4.9" + }, + "funding": [ + { + "url": "https://symfony.com/sponsor", + "type": "custom" + }, + { + "url": "https://github.com/fabpot", + "type": "github" + }, + { + "url": "https://tidelift.com/funding/github/packagist/symfony/symfony", + "type": "tidelift" + } + ], + "time": "2022-05-06T12:33:37+00:00" + }, + { + "name": "symfony/translation-contracts", + "version": "v2.5.1", + "source": { + "type": "git", + "url": "https://github.com/symfony/translation-contracts.git", + "reference": "1211df0afa701e45a04253110e959d4af4ef0f07" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/symfony/translation-contracts/zipball/1211df0afa701e45a04253110e959d4af4ef0f07", + "reference": "1211df0afa701e45a04253110e959d4af4ef0f07", + "shasum": "" + }, + "require": { + "php": ">=7.2.5" + }, + "suggest": { + "symfony/translation-implementation": "" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-main": "2.5-dev" + }, + "thanks": { + "name": "symfony/contracts", + "url": "https://github.com/symfony/contracts" + } + }, + "autoload": { + "psr-4": { + "Symfony\\Contracts\\Translation\\": "" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Nicolas Grekas", + "email": "p@tchwork.com" + }, + { + "name": "Symfony Community", + "homepage": "https://symfony.com/contributors" + } + ], + "description": "Generic abstractions related to translation", + "homepage": "https://symfony.com", + "keywords": [ + "abstractions", + "contracts", + "decoupling", + "interfaces", + "interoperability", + "standards" + ], + "support": { + "source": "https://github.com/symfony/translation-contracts/tree/v2.5.1" + }, + "funding": [ + { + "url": "https://symfony.com/sponsor", + "type": "custom" + }, + { + "url": "https://github.com/fabpot", + "type": "github" + }, + { + "url": "https://tidelift.com/funding/github/packagist/symfony/symfony", + "type": "tidelift" + } + ], + "time": "2022-01-02T09:53:40+00:00" + }, + { + "name": "symfony/var-dumper", + "version": "v5.4.9", + "source": { + "type": "git", + "url": "https://github.com/symfony/var-dumper.git", + "reference": "af52239a330fafd192c773795520dc2dd62b5657" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/symfony/var-dumper/zipball/af52239a330fafd192c773795520dc2dd62b5657", + "reference": "af52239a330fafd192c773795520dc2dd62b5657", + "shasum": "" + }, + "require": { + "php": ">=7.2.5", + "symfony/polyfill-mbstring": "~1.0", + "symfony/polyfill-php80": "^1.16" + }, + "conflict": { + "phpunit/phpunit": "<5.4.3", + "symfony/console": "<4.4" + }, + "require-dev": { + "ext-iconv": "*", + "symfony/console": "^4.4|^5.0|^6.0", + "symfony/process": "^4.4|^5.0|^6.0", + "symfony/uid": "^5.1|^6.0", + "twig/twig": "^2.13|^3.0.4" + }, + "suggest": { + "ext-iconv": "To convert non-UTF-8 strings to UTF-8 (or symfony/polyfill-iconv in case ext-iconv cannot be used).", + "ext-intl": "To show region name in time zone dump", + "symfony/console": "To use the ServerDumpCommand and/or the bin/var-dump-server script" + }, + "bin": [ + "Resources/bin/var-dump-server" + ], + "type": "library", + "autoload": { + "files": [ + "Resources/functions/dump.php" + ], + "psr-4": { + "Symfony\\Component\\VarDumper\\": "" + }, + "exclude-from-classmap": [ + "/Tests/" + ] + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Nicolas Grekas", + "email": "p@tchwork.com" + }, + { + "name": "Symfony Community", + "homepage": "https://symfony.com/contributors" + } + ], + "description": "Provides mechanisms for walking through any arbitrary PHP variable", + "homepage": "https://symfony.com", + "keywords": [ + "debug", + "dump" + ], + "support": { + "source": "https://github.com/symfony/var-dumper/tree/v5.4.9" + }, + "funding": [ + { + "url": "https://symfony.com/sponsor", + "type": "custom" + }, + { + "url": "https://github.com/fabpot", + "type": "github" + }, + { + "url": "https://tidelift.com/funding/github/packagist/symfony/symfony", + "type": "tidelift" + } + ], + "time": "2022-05-21T10:24:18+00:00" + }, + { + "name": "symfony/yaml", + "version": "v5.4.3", + "source": { + "type": "git", + "url": "https://github.com/symfony/yaml.git", + "reference": "e80f87d2c9495966768310fc531b487ce64237a2" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/symfony/yaml/zipball/e80f87d2c9495966768310fc531b487ce64237a2", + "reference": "e80f87d2c9495966768310fc531b487ce64237a2", + "shasum": "" + }, + "require": { + "php": ">=7.2.5", + "symfony/deprecation-contracts": "^2.1|^3", + "symfony/polyfill-ctype": "^1.8" + }, + "conflict": { + "symfony/console": "<5.3" + }, + "require-dev": { + "symfony/console": "^5.3|^6.0" + }, + "suggest": { + "symfony/console": "For validating YAML files using the lint command" + }, + "bin": [ + "Resources/bin/yaml-lint" + ], + "type": "library", + "autoload": { + "psr-4": { + "Symfony\\Component\\Yaml\\": "" + }, + "exclude-from-classmap": [ + "/Tests/" + ] + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Fabien Potencier", + "email": "fabien@symfony.com" + }, + { + "name": "Symfony Community", + "homepage": "https://symfony.com/contributors" + } + ], + "description": "Loads and dumps YAML files", + "homepage": "https://symfony.com", + "support": { + "source": "https://github.com/symfony/yaml/tree/v5.4.3" + }, + "funding": [ + { + "url": "https://symfony.com/sponsor", + "type": "custom" + }, + { + "url": "https://github.com/fabpot", + "type": "github" + }, + { + "url": "https://tidelift.com/funding/github/packagist/symfony/symfony", + "type": "tidelift" + } + ], + "time": "2022-01-26T16:32:32+00:00" + }, + { + "name": "theseer/tokenizer", + "version": "1.2.1", + "source": { + "type": "git", + "url": "https://github.com/theseer/tokenizer.git", + "reference": "34a41e998c2183e22995f158c581e7b5e755ab9e" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/theseer/tokenizer/zipball/34a41e998c2183e22995f158c581e7b5e755ab9e", + "reference": "34a41e998c2183e22995f158c581e7b5e755ab9e", + "shasum": "" + }, + "require": { + "ext-dom": "*", + "ext-tokenizer": "*", + "ext-xmlwriter": "*", + "php": "^7.2 || ^8.0" + }, + "type": "library", + "autoload": { + "classmap": [ + "src/" + ] + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "BSD-3-Clause" + ], + "authors": [ + { + "name": "Arne Blankerts", + "email": "arne@blankerts.de", + "role": "Developer" + } + ], + "description": "A small library for converting tokenized PHP source code into XML and potentially other formats", + "support": { + "issues": "https://github.com/theseer/tokenizer/issues", + "source": "https://github.com/theseer/tokenizer/tree/1.2.1" + }, + "funding": [ + { + "url": "https://github.com/theseer", + "type": "github" + } + ], + "time": "2021-07-28T10:34:58+00:00" + }, + { + "name": "tijsverkoyen/css-to-inline-styles", + "version": "2.2.4", + "source": { + "type": "git", + "url": "https://github.com/tijsverkoyen/CssToInlineStyles.git", + "reference": "da444caae6aca7a19c0c140f68c6182e337d5b1c" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/tijsverkoyen/CssToInlineStyles/zipball/da444caae6aca7a19c0c140f68c6182e337d5b1c", + "reference": "da444caae6aca7a19c0c140f68c6182e337d5b1c", + "shasum": "" + }, + "require": { + "ext-dom": "*", + "ext-libxml": "*", + "php": "^5.5 || ^7.0 || ^8.0", + "symfony/css-selector": "^2.7 || ^3.0 || ^4.0 || ^5.0 || ^6.0" + }, + "require-dev": { + "phpunit/phpunit": "^4.8.35 || ^5.7 || ^6.0 || ^7.5 || ^8.5.21 || ^9.5.10" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-master": "2.2.x-dev" + } + }, + "autoload": { + "psr-4": { + "TijsVerkoyen\\CssToInlineStyles\\": "src" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "BSD-3-Clause" + ], + "authors": [ + { + "name": "Tijs Verkoyen", + "email": "css_to_inline_styles@verkoyen.eu", + "role": "Developer" + } + ], + "description": "CssToInlineStyles is a class that enables you to convert HTML-pages/files into HTML-pages/files with inline styles. This is very useful when you're sending emails.", + "homepage": "https://github.com/tijsverkoyen/CssToInlineStyles", + "support": { + "issues": "https://github.com/tijsverkoyen/CssToInlineStyles/issues", + "source": "https://github.com/tijsverkoyen/CssToInlineStyles/tree/2.2.4" + }, + "time": "2021-12-08T09:12:39+00:00" + }, + { + "name": "vlucas/phpdotenv", + "version": "v5.4.1", + "source": { + "type": "git", + "url": "https://github.com/vlucas/phpdotenv.git", + "reference": "264dce589e7ce37a7ba99cb901eed8249fbec92f" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/vlucas/phpdotenv/zipball/264dce589e7ce37a7ba99cb901eed8249fbec92f", + "reference": "264dce589e7ce37a7ba99cb901eed8249fbec92f", + "shasum": "" + }, + "require": { + "ext-pcre": "*", + "graham-campbell/result-type": "^1.0.2", + "php": "^7.1.3 || ^8.0", + "phpoption/phpoption": "^1.8", + "symfony/polyfill-ctype": "^1.23", + "symfony/polyfill-mbstring": "^1.23.1", + "symfony/polyfill-php80": "^1.23.1" + }, + "require-dev": { + "bamarni/composer-bin-plugin": "^1.4.1", + "ext-filter": "*", + "phpunit/phpunit": "^7.5.20 || ^8.5.21 || ^9.5.10" + }, + "suggest": { + "ext-filter": "Required to use the boolean validator." + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-master": "5.4-dev" + } + }, + "autoload": { + "psr-4": { + "Dotenv\\": "src/" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "BSD-3-Clause" + ], + "authors": [ + { + "name": "Graham Campbell", + "email": "hello@gjcampbell.co.uk", + "homepage": "https://github.com/GrahamCampbell" + }, + { + "name": "Vance Lucas", + "email": "vance@vancelucas.com", + "homepage": "https://github.com/vlucas" + } + ], + "description": "Loads environment variables from `.env` to `getenv()`, `$_ENV` and `$_SERVER` automagically.", + "keywords": [ + "dotenv", + "env", + "environment" + ], + "support": { + "issues": "https://github.com/vlucas/phpdotenv/issues", + "source": "https://github.com/vlucas/phpdotenv/tree/v5.4.1" + }, + "funding": [ + { + "url": "https://github.com/GrahamCampbell", + "type": "github" + }, + { + "url": "https://tidelift.com/funding/github/packagist/vlucas/phpdotenv", + "type": "tidelift" + } + ], + "time": "2021-12-12T23:22:04+00:00" + }, + { + "name": "voku/portable-ascii", + "version": "1.6.1", + "source": { + "type": "git", + "url": "https://github.com/voku/portable-ascii.git", + "reference": "87337c91b9dfacee02452244ee14ab3c43bc485a" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/voku/portable-ascii/zipball/87337c91b9dfacee02452244ee14ab3c43bc485a", + "reference": "87337c91b9dfacee02452244ee14ab3c43bc485a", + "shasum": "" + }, + "require": { + "php": ">=7.0.0" + }, + "require-dev": { + "phpunit/phpunit": "~6.0 || ~7.0 || ~9.0" + }, + "suggest": { + "ext-intl": "Use Intl for transliterator_transliterate() support" + }, + "type": "library", + "autoload": { + "psr-4": { + "voku\\": "src/voku/" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Lars Moelleken", + "homepage": "http://www.moelleken.org/" + } + ], + "description": "Portable ASCII library - performance optimized (ascii) string functions for php.", + "homepage": "https://github.com/voku/portable-ascii", + "keywords": [ + "ascii", + "clean", + "php" + ], + "support": { + "issues": "https://github.com/voku/portable-ascii/issues", + "source": "https://github.com/voku/portable-ascii/tree/1.6.1" + }, + "funding": [ + { + "url": "https://www.paypal.me/moelleken", + "type": "custom" + }, + { + "url": "https://github.com/voku", + "type": "github" + }, + { + "url": "https://opencollective.com/portable-ascii", + "type": "open_collective" + }, + { + "url": "https://www.patreon.com/voku", + "type": "patreon" + }, + { + "url": "https://tidelift.com/funding/github/packagist/voku/portable-ascii", + "type": "tidelift" + } + ], + "time": "2022-01-24T18:55:24+00:00" + }, + { + "name": "webmozart/assert", + "version": "1.11.0", + "source": { + "type": "git", + "url": "https://github.com/webmozarts/assert.git", + "reference": "11cb2199493b2f8a3b53e7f19068fc6aac760991" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/webmozarts/assert/zipball/11cb2199493b2f8a3b53e7f19068fc6aac760991", + "reference": "11cb2199493b2f8a3b53e7f19068fc6aac760991", + "shasum": "" + }, + "require": { + "ext-ctype": "*", + "php": "^7.2 || ^8.0" + }, + "conflict": { + "phpstan/phpstan": "<0.12.20", + "vimeo/psalm": "<4.6.1 || 4.6.2" + }, + "require-dev": { + "phpunit/phpunit": "^8.5.13" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-master": "1.10-dev" + } + }, + "autoload": { + "psr-4": { + "Webmozart\\Assert\\": "src/" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Bernhard Schussek", + "email": "bschussek@gmail.com" + } + ], + "description": "Assertions to validate method input/output with nice error messages.", + "keywords": [ + "assert", + "check", + "validate" + ], + "support": { + "issues": "https://github.com/webmozarts/assert/issues", + "source": "https://github.com/webmozarts/assert/tree/1.11.0" + }, + "time": "2022-06-03T18:03:27+00:00" + }, + { + "name": "zbateson/mail-mime-parser", + "version": "2.2.1", + "source": { + "type": "git", + "url": "https://github.com/zbateson/mail-mime-parser.git", + "reference": "24955de7ec352b3258c1d4551efd21202cb8710c" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/zbateson/mail-mime-parser/zipball/24955de7ec352b3258c1d4551efd21202cb8710c", + "reference": "24955de7ec352b3258c1d4551efd21202cb8710c", + "shasum": "" + }, + "require": { + "guzzlehttp/psr7": "^1.7.0|^2.0", + "php": ">=5.4", + "pimple/pimple": "^3.0", + "zbateson/mb-wrapper": "^1.0.1", + "zbateson/stream-decorators": "^1.0.6" + }, + "require-dev": { + "mikey179/vfsstream": "^1.6.0", + "sanmai/phpunit-legacy-adapter": "^6.3 || ^8.2" + }, + "suggest": { + "ext-iconv": "For best support/performance", + "ext-mbstring": "For best support/performance" + }, + "type": "library", + "autoload": { + "psr-4": { + "ZBateson\\MailMimeParser\\": "src/" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "BSD-2-Clause" + ], + "authors": [ + { + "name": "Zaahid Bateson" + }, + { + "name": "Contributors", + "homepage": "https://github.com/zbateson/mail-mime-parser/graphs/contributors" + } + ], + "description": "MIME email message parser", + "homepage": "https://mail-mime-parser.org", + "keywords": [ + "MimeMailParser", + "email", + "mail", + "mailparse", + "mime", + "mimeparse", + "parser", + "php-imap" + ], + "support": { + "docs": "https://mail-mime-parser.org/#usage-guide", + "issues": "https://github.com/zbateson/mail-mime-parser/issues", + "source": "https://github.com/zbateson/mail-mime-parser" + }, + "funding": [ + { + "url": "https://github.com/zbateson", + "type": "github" + } + ], + "time": "2022-02-22T21:35:59+00:00" + }, + { + "name": "zbateson/mb-wrapper", + "version": "1.1.2", + "source": { + "type": "git", + "url": "https://github.com/zbateson/mb-wrapper.git", + "reference": "5d9d190ef18ce6d424e3ac6f5ebe13901f92b74a" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/zbateson/mb-wrapper/zipball/5d9d190ef18ce6d424e3ac6f5ebe13901f92b74a", + "reference": "5d9d190ef18ce6d424e3ac6f5ebe13901f92b74a", + "shasum": "" + }, + "require": { + "php": ">=5.4", + "symfony/polyfill-iconv": "^1.9", + "symfony/polyfill-mbstring": "^1.9" + }, + "require-dev": { + "sanmai/phpunit-legacy-adapter": "^6.3 || ^8" + }, + "suggest": { + "ext-iconv": "For best support/performance", + "ext-mbstring": "For best support/performance" + }, + "type": "library", + "autoload": { + "psr-4": { + "ZBateson\\MbWrapper\\": "src/" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "BSD-2-Clause" + ], + "authors": [ + { + "name": "Zaahid Bateson" + } + ], + "description": "Wrapper for mbstring with fallback to iconv for encoding conversion and string manipulation", + "keywords": [ + "charset", + "encoding", + "http", + "iconv", + "mail", + "mb", + "mb_convert_encoding", + "mbstring", + "mime", + "multibyte", + "string" + ], + "support": { + "issues": "https://github.com/zbateson/mb-wrapper/issues", + "source": "https://github.com/zbateson/mb-wrapper/tree/1.1.2" + }, + "funding": [ + { + "url": "https://github.com/zbateson", + "type": "github" + } + ], + "time": "2022-05-26T15:55:05+00:00" + }, + { + "name": "zbateson/stream-decorators", + "version": "1.0.6", + "source": { + "type": "git", + "url": "https://github.com/zbateson/stream-decorators.git", + "reference": "3403c4323bd1cd15fe54348b031b26b064c706af" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/zbateson/stream-decorators/zipball/3403c4323bd1cd15fe54348b031b26b064c706af", + "reference": "3403c4323bd1cd15fe54348b031b26b064c706af", + "shasum": "" + }, + "require": { + "guzzlehttp/psr7": "^1.7.0|^2.0", + "php": ">=5.4", + "zbateson/mb-wrapper": "^1.0.0" + }, + "require-dev": { + "sanmai/phpunit-legacy-adapter": "^6.3 || ^8" + }, + "type": "library", + "autoload": { + "psr-4": { + "ZBateson\\StreamDecorators\\": "src/" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "BSD-2-Clause" + ], + "authors": [ + { + "name": "Zaahid Bateson" + } + ], + "description": "PHP psr7 stream decorators for mime message part streams", + "keywords": [ + "base64", + "charset", + "decorators", + "mail", + "mime", + "psr7", + "quoted-printable", + "stream", + "uuencode" + ], + "support": { + "issues": "https://github.com/zbateson/stream-decorators/issues", + "source": "https://github.com/zbateson/stream-decorators/tree/1.0.6" + }, + "funding": [ + { + "url": "https://github.com/zbateson", + "type": "github" + } + ], + "time": "2021-07-08T19:01:59+00:00" + } + ], + "aliases": [], + "minimum-stability": "stable", + "stability-flags": [], + "prefer-stable": false, + "prefer-lowest": false, + "platform": { + "ext-curl": "^7.3", + "php": "^7.3" + }, + "platform-dev": [], + "plugin-api-version": "2.2.0" +} diff --git a/app/Lib/vendor/crm-client-3.0.6/docs/client-api/classes/LDC-LDCCRM-CrmApiV2.html b/app/Lib/vendor/crm-client-3.0.6/docs/client-api/classes/LDC-LDCCRM-CrmApiV2.html new file mode 100644 index 0000000..a74a44c --- /dev/null +++ b/app/Lib/vendor/crm-client-3.0.6/docs/client-api/classes/LDC-LDCCRM-CrmApiV2.html @@ -0,0 +1,807 @@ + + + + + CRM V2 + + + + + + + + + + + + + + + + + + + +
+

CRM V2

+ + + + + +
+ +
+
+ + + + +
+ + +
+

+ CrmApiV2 + + +
+ in package + +
+ + +

+ + + +

This is the main class to interact with the CRM

+ + + + + + + + + +

+ Table of Contents + +

+ +
+
+ $apiInterface + +  : ApiInterface +
+
The Api object that will handle requests and responses
+ +
+ __construct() + +  : mixed +
+
CrmApiV2
+ +
+ getCustomer() + +  : Customer|null +
+
Get a customer from its hashcode or email +If it does not exists a new instance +will be returned. You would have +to call its save method later on.
+ +
+ getCustomerOrNew() + +  : Customer +
+
Get a customer from its hashcode or email +If it does not exists a new instance +will be returned. You would have +to call its save method later on.
+ +
+ login() + +  : bool +
+
Test a customer credentials to see if it can login
+ +
+ ping() + +  : bool +
+
Use this the ping the crm and know its current status
+ +
+ setStatus() + +  : bool +
+
Set the single optin status for an email
+ +
+ + + + + + +
+

+ Properties + +

+
+

+ $apiInterface + + + +

+ + +

The Api object that will handle requests and responses

+ + + private + static ApiInterface + $apiInterface + + + + + + +
+
+ +
+

+ Methods + +

+
+

+ __construct() + +

+ + +

CrmApiV2

+ + + public + __construct([string|null $endpoint = null ][, string|null $bearerToken = null ][, string|null $bearerPwd = null ]) : mixed + + +
Parameters
+
+
+ $endpoint + : string|null + = null
+
+ +
+
+ $bearerToken + : string|null + = null
+
+ +
+
+ $bearerPwd + : string|null + = null
+
+ +
+
+ + + +
Return values
+ mixed + — + + +
+
+

+ getCustomer() + +

+ + +

Get a customer from its hashcode or email +If it does not exists a new instance +will be returned. You would have +to call its save method later on.

+ + + public + getCustomer(string $identification) : Customer|null + + +
Parameters
+
+
+ $identification + : string +
+
+

The customer hashcode or email.

+
+ +
+
+ + +
+ Tags + +
+
+
+ throws +
+
+ CrmException + +

If an error occurs on server side or on getting response.

+
+ +
+
+ throws +
+
+ ApiErrorException + +

If any error or \LDC\LDCCRM\Enums\ApiError occurs. +Possibles are : - modelNotFound, If this customer hashcode could not be found.

+
+ +
+
+ phpcs:ignore +
+
+ +

Squiz.Commenting.FunctionCommentThrowTag.WrongNumber

+
+ +
+
+ +
Return values
+ Customer|null + — +

Return null if the customer was not found

+
+ + +
+
+

+ getCustomerOrNew() + +

+ + +

Get a customer from its hashcode or email +If it does not exists a new instance +will be returned. You would have +to call its save method later on.

+ + + public + getCustomerOrNew(string $identification) : Customer + + +
Parameters
+
+
+ $identification + : string +
+
+

The customer hashcode or email.

+
+ +
+
+ + +
+ Tags + +
+
+
+ throws +
+
+ CrmException + +

If an error occurs on server side or on getting response.

+
+ +
+
+ throws +
+
+ ApiErrorException + +

If any error or \LDC\LDCCRM\Enums\ApiError occurs.

+
+ +
+
+ phpcs:ignore +
+
+ +

Squiz.Commenting.FunctionComment.EmptyThrows

+
+ +
+
+ +
Return values
+ Customer + — +

A client Customer model.

+
+ + +
+
+

+ login() + +

+ + +

Test a customer credentials to see if it can login

+ + + public + static login(string $email, string $password) : bool + + +
Parameters
+
+
+ $email + : string +
+
+ +
+
+ $password + : string +
+
+ +
+
+ + +
+ Tags + +
+
+
+ throws +
+
+ CrmException + +

If an error occurs on server side or on getting response.

+
+ +
+
+ throws +
+
+ ApiErrorException + +

If any error or \LDC\LDCCRM\Enums\ApiError occurs. +Possibles are : - authFailed, If credentials are not valid. +- customerNotActivated, If the account is not activated.

+
+ +
+
+ phpcs:ignore +
+
+ +

Squiz.Commenting.FunctionCommentThrowTag.WrongNumber

+
+ +
+
+ +
Return values
+ bool + — + + +
+
+

+ ping() + +

+ + +

Use this the ping the crm and know its current status

+ + + public + ping() : bool + + + + +
+ Tags + +
+
+
+ throws +
+
+ CrmException + +

If an error occurs +on server side or on getting response.

+
+ +
+
+ +
Return values
+ bool + — + + +
+
+

+ setStatus() + +

+ + +

Set the single optin status for an email

+ + + public + static setStatus(string $email, bool $opt_in) : bool + + +
Parameters
+
+
+ $email + : string +
+
+ +
+
+ $opt_in + : bool +
+
+ +
+
+ + +
+ Tags + +
+
+
+ throws +
+
+ CrmException + +

If an error occurs on server side or on getting response.

+
+ +
+
+ throws +
+
+ ApiErrorException + +

If any error or \LDC\LDCCRM\Enums\ApiError occurs. +Possibles are : - singleOptinCustomerExists, If a customer exists with this email.

+
+ +
+
+ phpcs:ignore +
+
+ +

Squiz.Commenting.FunctionCommentThrowTag.WrongNumber

+
+ +
+
+ +
Return values
+ bool + — +

true if succeeded

+
+ + +
+
+ + + + +
+
+
+
+

Search results

+ +
+
+
    +
    +
    +
    +
    +
    + + +
    + + + + + + + + diff --git a/app/Lib/vendor/crm-client-3.0.6/docs/client-api/classes/LDC-LDCCRM-Enums-ApiError.html b/app/Lib/vendor/crm-client-3.0.6/docs/client-api/classes/LDC-LDCCRM-Enums-ApiError.html new file mode 100644 index 0000000..f463e80 --- /dev/null +++ b/app/Lib/vendor/crm-client-3.0.6/docs/client-api/classes/LDC-LDCCRM-Enums-ApiError.html @@ -0,0 +1,906 @@ + + + + + CRM V2 + + + + + + + + + + + + + + + + + + + +
    +

    CRM V2

    + + + + + +
    + +
    +
    + + + + +
    + + +
    +

    + ApiError + + + extends BaseEnum + + +
    + in package + +
    + + +

    + + + +

    This describes an API error.

    + + + +
    + Tags + +
    +
    +
    + subpackage +
    +
    + +

    enums

    +
    + +
    +
    + + + + + + +

    + Table of Contents + +

    + +
    +
    + apiAuthFailed() + +  : +
    +
    + +
    + authFailed() + +  : +
    +
    + +
    + authorizationException() + +  : +
    +
    + +
    + customerAlreadyActive() + +  : +
    +
    + +
    + customerExists() + +  : +
    +
    + +
    + customerNotActivated() + +  : +
    +
    + +
    + labels() + +  : array<string|int, mixed> +
    +
    Libellés des possibilités de cet énumération (label)
    + +
    + methodNotAllowed() + +  : +
    +
    + +
    + missingParameter() + +  : +
    +
    + +
    + modelNotFound() + +  : +
    +
    + +
    + singleOptinCustomerExists() + +  : +
    +
    + +
    + throttleRequestsException() + +  : +
    +
    + +
    + validationFailed() + +  : +
    +
    + +
    + values() + +  : array<string|int, mixed> +
    +
    Valeurs des possibilités de cet énumération (value)
    + +
    + wrongTimeStamp() + +  : +
    +
    + +
    + + + + + + + +
    +

    + Methods + +

    +
    +

    + apiAuthFailed() + +

    + + + + + public + static apiAuthFailed() : + +

    The authentification to the api failed. You may have to +check into config or .env file for your service credentials

    +
    + + + + +
    Return values
    + + — + + +
    +
    +

    + authFailed() + +

    + + + + + public + static authFailed() : + +

    The authentification for this customer failed because of wrong credentials

    +
    + + + + +
    Return values
    + + — + + +
    +
    +

    + authorizationException() + +

    + + + + + public + static authorizationException() : + +

    You are maybe trying to access data that is out of your range. +This should not happen normally, it is here to allow you to handle this case. +If this happens fill a ticket on https://supportweb.ldc.fr +with some technical details

    +
    + + + + +
    Return values
    + + — + + +
    +
    +

    + customerAlreadyActive() + +

    + + + + + public + static customerAlreadyActive() : + +

    You have requested to activate a customer account, +but it is already active

    +
    + + + + +
    Return values
    + + — + + +
    +
    +

    + customerExists() + +

    + + + + + public + static customerExists() : + +

    The customer already exists

    +
    + + + + +
    Return values
    + + — + + +
    +
    +

    + customerNotActivated() + +

    + + + + + public + static customerNotActivated() : + +

    The customer account is not activated and cannot perform +this action

    +
    + + + + +
    Return values
    + + — + + +
    +
    +

    + labels() + +

    + + +

    Libellés des possibilités de cet énumération (label)

    + + + public + static labels() : array<string|int, mixed> + + + + + +
    Return values
    + array<string|int, mixed> + — + + +
    +
    +

    + methodNotAllowed() + +

    + + + + + public + static methodNotAllowed() : + +

    This http method is not allowed

    +
    + + + + +
    Return values
    + + — + + +
    +
    +

    + missingParameter() + +

    + + + + + public + static missingParameter() : + +

    The request is missing some parameters

    +
    + + + + +
    Return values
    + + — + + +
    +
    +

    + modelNotFound() + +

    + + + + + public + static modelNotFound() : + +

    The request model was not found (typically the customer)

    +
    + + + + +
    Return values
    + + — + + +
    +
    +

    + singleOptinCustomerExists() + +

    + + + + + public + static singleOptinCustomerExists() : + +

    You have requested to create a single optin for an email, +but it already exists

    +
    + + + + +
    Return values
    + + — + + +
    +
    +

    + throttleRequestsException() + +

    + + + + + public + static throttleRequestsException() : + +

    Too many requests have been attempted. The is a throttle security. +Normally you should not trigger this. +If this happens fill a ticket on https://supportweb.ldc.fr +with some technical details

    +
    + + + + +
    Return values
    + + — + + +
    +
    +

    + validationFailed() + +

    + + + + + public + static validationFailed() : + +

    This means some data could not be validated, +you may have to look into message to get the details

    +
    + + + + +
    Return values
    + + — + + +
    +
    +

    + values() + +

    + + +

    Valeurs des possibilités de cet énumération (value)

    + + + public + static values() : array<string|int, mixed> + + + + + +
    Return values
    + array<string|int, mixed> + — + + +
    +
    +

    + wrongTimeStamp() + +

    + + + + + public + static wrongTimeStamp() : + +

    The timestamp given is wrong. This would happen in case if +a replay attack scenario. Timestamps are provided in headers +and in the http body

    +
    + + + + +
    Return values
    + + — + + +
    +
    + + + + +
    +
    +
    +
    +

    Search results

    + +
    +
    +
      +
      +
      +
      +
      +
      + + +
      + + + + + + + + diff --git a/app/Lib/vendor/crm-client-3.0.6/docs/client-api/classes/LDC-LDCCRM-Enums-ApiStatus.html b/app/Lib/vendor/crm-client-3.0.6/docs/client-api/classes/LDC-LDCCRM-Enums-ApiStatus.html new file mode 100644 index 0000000..25185da --- /dev/null +++ b/app/Lib/vendor/crm-client-3.0.6/docs/client-api/classes/LDC-LDCCRM-Enums-ApiStatus.html @@ -0,0 +1,357 @@ + + + + + CRM V2 + + + + + + + + + + + + + + + + + + + +
      +

      CRM V2

      + + + + + +
      + +
      +
      + + + + +
      + + +
      +

      + ApiStatus + + + extends BaseEnum + + +
      + in package + +
      + + +

      + + + + + + +
      + Tags + +
      +
      +
      + subpackage +
      +
      + +

      enums

      +
      + +
      +
      + + + + + + +

      + Table of Contents + +

      + +
      +
      + KO() + +  : +
      +
      + +
      + OK() + +  : +
      +
      + +
      + + + + + + + +
      +

      + Methods + +

      +
      +

      + KO() + +

      + + + + + public + static KO() : + + + + + +
      Return values
      + + — + + +
      +
      +

      + OK() + +

      + + + + + public + static OK() : + + + + + +
      Return values
      + + — + + +
      +
      + + + + +
      +
      +
      +
      +

      Search results

      + +
      +
      +
        +
        +
        +
        +
        +
        + + +
        + + + + + + + + diff --git a/app/Lib/vendor/crm-client-3.0.6/docs/client-api/classes/LDC-LDCCRM-Enums-ArcadiaMailType.html b/app/Lib/vendor/crm-client-3.0.6/docs/client-api/classes/LDC-LDCCRM-Enums-ArcadiaMailType.html new file mode 100644 index 0000000..4a9897c --- /dev/null +++ b/app/Lib/vendor/crm-client-3.0.6/docs/client-api/classes/LDC-LDCCRM-Enums-ArcadiaMailType.html @@ -0,0 +1,397 @@ + + + + + CRM V2 + + + + + + + + + + + + + + + + + + + +
        +

        CRM V2

        + + + + + +
        + +
        +
        + + + + +
        + + +
        +

        + ArcadiaMailType + + + extends BaseEnum + + +
        + in package + +
        + + +

        + + + + + + +
        + Tags + +
        +
        +
        + subpackage +
        +
        + +

        enums

        +
        + +
        +
        + + + + + + +

        + Table of Contents + +

        + +
        +
        + default() + +  : +
        +
        + +
        + game() + +  : +
        +
        + +
        + values() + +  : array<string|int, mixed> +
        +
        Valeurs des possibilités de cet énumération (value)
        + +
        + + + + + + + +
        +

        + Methods + +

        +
        +

        + default() + +

        + + + + + public + static default() : + + + + + +
        Return values
        + + — + + +
        +
        +

        + game() + +

        + + + + + public + static game() : + + + + + +
        Return values
        + + — + + +
        +
        +

        + values() + +

        + + +

        Valeurs des possibilités de cet énumération (value)

        + + + public + static values() : array<string|int, mixed> + + + + + +
        Return values
        + array<string|int, mixed> + — + + +
        +
        + + + + +
        +
        +
        +
        +

        Search results

        + +
        +
        +
          +
          +
          +
          +
          +
          + + +
          + + + + + + + + diff --git a/app/Lib/vendor/crm-client-3.0.6/docs/client-api/classes/LDC-LDCCRM-Enums-ArcadiaOrderType.html b/app/Lib/vendor/crm-client-3.0.6/docs/client-api/classes/LDC-LDCCRM-Enums-ArcadiaOrderType.html new file mode 100644 index 0000000..4f25195 --- /dev/null +++ b/app/Lib/vendor/crm-client-3.0.6/docs/client-api/classes/LDC-LDCCRM-Enums-ArcadiaOrderType.html @@ -0,0 +1,397 @@ + + + + + CRM V2 + + + + + + + + + + + + + + + + + + + +
          +

          CRM V2

          + + + + + +
          + +
          +
          + + + + +
          + + +
          +

          + ArcadiaOrderType + + + extends BaseEnum + + +
          + in package + +
          + + +

          + + + + + + +
          + Tags + +
          +
          +
          + subpackage +
          +
          + +

          enums

          +
          + +
          +
          + + + + + + +

          + Table of Contents + +

          + +
          +
          + cb() + +  : +
          +
          + +
          + check() + +  : +
          +
          + +
          + values() + +  : array<string|int, mixed> +
          +
          Valeurs des possibilités de cet énumération (value)
          + +
          + + + + + + + +
          +

          + Methods + +

          +
          +

          + cb() + +

          + + + + + public + static cb() : + + + + + +
          Return values
          + + — + + +
          +
          +

          + check() + +

          + + + + + public + static check() : + + + + + +
          Return values
          + + — + + +
          +
          +

          + values() + +

          + + +

          Valeurs des possibilités de cet énumération (value)

          + + + public + static values() : array<string|int, mixed> + + + + + +
          Return values
          + array<string|int, mixed> + — + + +
          +
          + + + + +
          +
          +
          +
          +

          Search results

          + +
          +
          +
            +
            +
            +
            +
            +
            + + +
            + + + + + + + + diff --git a/app/Lib/vendor/crm-client-3.0.6/docs/client-api/classes/LDC-LDCCRM-Enums-Country.html b/app/Lib/vendor/crm-client-3.0.6/docs/client-api/classes/LDC-LDCCRM-Enums-Country.html new file mode 100644 index 0000000..92ebd08 --- /dev/null +++ b/app/Lib/vendor/crm-client-3.0.6/docs/client-api/classes/LDC-LDCCRM-Enums-Country.html @@ -0,0 +1,10078 @@ + + + + + CRM V2 + + + + + + + + + + + + + + + + + + + +
            +

            CRM V2

            + + + + + +
            + +
            +
            + + + + +
            + + +
            +

            + Country + + + extends BaseEnum + + +
            + in package + +
            + + +

            + + + +

            Liste de Pays

            + + + +
            + Tags + +
            +
            +
            + source +
            +
            + + +
            +
            + subpackage +
            +
            + +

            enums

            +
            + +
            +
            + + + + + + +

            + Table of Contents + +

            + +
            +
            + afghanistan() + +  : +
            +
            + +
            + alandIslands() + +  : +
            +
            + +
            + albania() + +  : +
            +
            + +
            + algeria() + +  : +
            +
            + +
            + americanSamoa() + +  : +
            +
            + +
            + andorra() + +  : +
            +
            + +
            + angola() + +  : +
            +
            + +
            + anguilla() + +  : +
            +
            + +
            + antarctica() + +  : +
            +
            + +
            + antiguaAndBarbuda() + +  : +
            +
            + +
            + argentina() + +  : +
            +
            + +
            + armenia() + +  : +
            +
            + +
            + aruba() + +  : +
            +
            + +
            + australia() + +  : +
            +
            + +
            + austria() + +  : +
            +
            + +
            + azerbaijan() + +  : +
            +
            + +
            + bahamas() + +  : +
            +
            + +
            + bahrain() + +  : +
            +
            + +
            + bangladesh() + +  : +
            +
            + +
            + barbados() + +  : +
            +
            + +
            + belarus() + +  : +
            +
            + +
            + belgium() + +  : +
            +
            + +
            + belize() + +  : +
            +
            + +
            + benin() + +  : +
            +
            + +
            + bermuda() + +  : +
            +
            + +
            + bhutan() + +  : +
            +
            + +
            + boliviaPlurinationalStateOf() + +  : +
            +
            + +
            + bonaireSintEustatiusAndSaba() + +  : +
            +
            + +
            + bosniaAndHerzegovina() + +  : +
            +
            + +
            + botswana() + +  : +
            +
            + +
            + bouvetIsland() + +  : +
            +
            + +
            + brazil() + +  : +
            +
            + +
            + britishIndianOceanTerritory() + +  : +
            +
            + +
            + bruneiDarussalam() + +  : +
            +
            + +
            + bulgaria() + +  : +
            +
            + +
            + burkinaFaso() + +  : +
            +
            + +
            + burundi() + +  : +
            +
            + +
            + cambodia() + +  : +
            +
            + +
            + cameroon() + +  : +
            +
            + +
            + canada() + +  : +
            +
            + +
            + capeVerde() + +  : +
            +
            + +
            + caymanIslands() + +  : +
            +
            + +
            + centralAfricanRepublic() + +  : +
            +
            + +
            + chad() + +  : +
            +
            + +
            + chile() + +  : +
            +
            + +
            + china() + +  : +
            +
            + +
            + christmasIsland() + +  : +
            +
            + +
            + cocosKeelingIslands() + +  : +
            +
            + +
            + colombia() + +  : +
            +
            + +
            + comoros() + +  : +
            +
            + +
            + congo() + +  : +
            +
            + +
            + congoTheDemocraticRepublicOfThe() + +  : +
            +
            + +
            + cookIslands() + +  : +
            +
            + +
            + costaRica() + +  : +
            +
            + +
            + coteDivoire() + +  : +
            +
            + +
            + croatia() + +  : +
            +
            + +
            + cuba() + +  : +
            +
            + +
            + curacao() + +  : +
            +
            + +
            + cyprus() + +  : +
            +
            + +
            + czechRepublic() + +  : +
            +
            + +
            + denmark() + +  : +
            +
            + +
            + djibouti() + +  : +
            +
            + +
            + dominica() + +  : +
            +
            + +
            + dominicanRepublic() + +  : +
            +
            + +
            + ecuador() + +  : +
            +
            + +
            + egypt() + +  : +
            +
            + +
            + elSalvador() + +  : +
            +
            + +
            + equatorialGuinea() + +  : +
            +
            + +
            + eritrea() + +  : +
            +
            + +
            + estonia() + +  : +
            +
            + +
            + ethiopia() + +  : +
            +
            + +
            + falklandIslandsMalvinas() + +  : +
            +
            + +
            + faroeIslands() + +  : +
            +
            + +
            + fiji() + +  : +
            +
            + +
            + finland() + +  : +
            +
            + +
            + france() + +  : +
            +
            + +
            + frenchGuiana() + +  : +
            +
            + +
            + frenchPolynesia() + +  : +
            +
            + +
            + frenchSouthernTerritories() + +  : +
            +
            + +
            + gabon() + +  : +
            +
            + +
            + gambia() + +  : +
            +
            + +
            + georgia() + +  : +
            +
            + +
            + germany() + +  : +
            +
            + +
            + ghana() + +  : +
            +
            + +
            + gibraltar() + +  : +
            +
            + +
            + greece() + +  : +
            +
            + +
            + greenland() + +  : +
            +
            + +
            + grenada() + +  : +
            +
            + +
            + guadeloupe() + +  : +
            +
            + +
            + guam() + +  : +
            +
            + +
            + guatemala() + +  : +
            +
            + +
            + guernsey() + +  : +
            +
            + +
            + guinea() + +  : +
            +
            + +
            + guineaBissau() + +  : +
            +
            + +
            + guyana() + +  : +
            +
            + +
            + haiti() + +  : +
            +
            + +
            + heardIslandAndMcdonaldIslands() + +  : +
            +
            + +
            + holySeeVaticanCityState() + +  : +
            +
            + +
            + honduras() + +  : +
            +
            + +
            + hongKong() + +  : +
            +
            + +
            + hungary() + +  : +
            +
            + +
            + iceland() + +  : +
            +
            + +
            + india() + +  : +
            +
            + +
            + indonesia() + +  : +
            +
            + +
            + iranIslamicRepublicOf() + +  : +
            +
            + +
            + iraq() + +  : +
            +
            + +
            + ireland() + +  : +
            +
            + +
            + isleOfMan() + +  : +
            +
            + +
            + israel() + +  : +
            +
            + +
            + italy() + +  : +
            +
            + +
            + jamaica() + +  : +
            +
            + +
            + japan() + +  : +
            +
            + +
            + jersey() + +  : +
            +
            + +
            + jordan() + +  : +
            +
            + +
            + kazakhstan() + +  : +
            +
            + +
            + kenya() + +  : +
            +
            + +
            + kiribati() + +  : +
            +
            + +
            + koreaDemocraticPeoplesRepublicOf() + +  : +
            +
            + +
            + koreaRepublicOf() + +  : +
            +
            + +
            + kuwait() + +  : +
            +
            + +
            + kyrgyzstan() + +  : +
            +
            + +
            + labels() + +  : array<string|int, mixed> +
            +
            Libellés des possibilités de cet énumération (label)
            + +
            + laoPeoplesDemocraticRepublic() + +  : +
            +
            + +
            + latvia() + +  : +
            +
            + +
            + lebanon() + +  : +
            +
            + +
            + lesotho() + +  : +
            +
            + +
            + liberia() + +  : +
            +
            + +
            + libya() + +  : +
            +
            + +
            + liechtenstein() + +  : +
            +
            + +
            + lithuania() + +  : +
            +
            + +
            + luxembourg() + +  : +
            +
            + +
            + macao() + +  : +
            +
            + +
            + macedoniaTheFormerYugoslavRepublicOf() + +  : +
            +
            + +
            + madagascar() + +  : +
            +
            + +
            + malawi() + +  : +
            +
            + +
            + malaysia() + +  : +
            +
            + +
            + maldives() + +  : +
            +
            + +
            + mali() + +  : +
            +
            + +
            + malta() + +  : +
            +
            + +
            + marshallIslands() + +  : +
            +
            + +
            + martinique() + +  : +
            +
            + +
            + mauritania() + +  : +
            +
            + +
            + mauritius() + +  : +
            +
            + +
            + mayotte() + +  : +
            +
            + +
            + mexico() + +  : +
            +
            + +
            + micronesiaFederatedStatesOf() + +  : +
            +
            + +
            + moldovaRepublicOf() + +  : +
            +
            + +
            + monaco() + +  : +
            +
            + +
            + mongolia() + +  : +
            +
            + +
            + montenegro() + +  : +
            +
            + +
            + montserrat() + +  : +
            +
            + +
            + morocco() + +  : +
            +
            + +
            + mozambique() + +  : +
            +
            + +
            + myanmar() + +  : +
            +
            + +
            + namibia() + +  : +
            +
            + +
            + nauru() + +  : +
            +
            + +
            + nepal() + +  : +
            +
            + +
            + netherlands() + +  : +
            +
            + +
            + newCaledonia() + +  : +
            +
            + +
            + newZealand() + +  : +
            +
            + +
            + nicaragua() + +  : +
            +
            + +
            + niger() + +  : +
            +
            + +
            + nigeria() + +  : +
            +
            + +
            + niue() + +  : +
            +
            + +
            + norfolkIsland() + +  : +
            +
            + +
            + northernMarianaIslands() + +  : +
            +
            + +
            + norway() + +  : +
            +
            + +
            + oman() + +  : +
            +
            + +
            + pakistan() + +  : +
            +
            + +
            + palau() + +  : +
            +
            + +
            + palestineStateOf() + +  : +
            +
            + +
            + panama() + +  : +
            +
            + +
            + papuaNewGuinea() + +  : +
            +
            + +
            + paraguay() + +  : +
            +
            + +
            + peru() + +  : +
            +
            + +
            + philippines() + +  : +
            +
            + +
            + pitcairn() + +  : +
            +
            + +
            + poland() + +  : +
            +
            + +
            + portugal() + +  : +
            +
            + +
            + puertoRico() + +  : +
            +
            + +
            + qatar() + +  : +
            +
            + +
            + reunion() + +  : +
            +
            + +
            + romania() + +  : +
            +
            + +
            + russianFederation() + +  : +
            +
            + +
            + rwanda() + +  : +
            +
            + +
            + saintBarthelemy() + +  : +
            +
            + +
            + saintHelenaAscensionAndTristanDaCunha() + +  : +
            +
            + +
            + saintKittsAndNevis() + +  : +
            +
            + +
            + saintLucia() + +  : +
            +
            + +
            + saintMartinFrenchPart() + +  : +
            +
            + +
            + saintPierreAndMiquelon() + +  : +
            +
            + +
            + saintVincentAndTheGrenadines() + +  : +
            +
            + +
            + samoa() + +  : +
            +
            + +
            + sanMarino() + +  : +
            +
            + +
            + saoTomeAndPrincipe() + +  : +
            +
            + +
            + saudiArabia() + +  : +
            +
            + +
            + senegal() + +  : +
            +
            + +
            + serbia() + +  : +
            +
            + +
            + seychelles() + +  : +
            +
            + +
            + sierraLeone() + +  : +
            +
            + +
            + singapore() + +  : +
            +
            + +
            + sintMaartenDutchPart() + +  : +
            +
            + +
            + slovakia() + +  : +
            +
            + +
            + slovenia() + +  : +
            +
            + +
            + solomonIslands() + +  : +
            +
            + +
            + somalia() + +  : +
            +
            + +
            + southAfrica() + +  : +
            +
            + +
            + southGeorgiaAndTheSouthSandwichIslands() + +  : +
            +
            + +
            + southSudan() + +  : +
            +
            + +
            + spain() + +  : +
            +
            + +
            + sriLanka() + +  : +
            +
            + +
            + sudan() + +  : +
            +
            + +
            + suriname() + +  : +
            +
            + +
            + svalbardAndJanMayen() + +  : +
            +
            + +
            + swaziland() + +  : +
            +
            + +
            + sweden() + +  : +
            +
            + +
            + switzerland() + +  : +
            +
            + +
            + syrianArabRepublic() + +  : +
            +
            + +
            + taiwanProvinceOfChina() + +  : +
            +
            + +
            + tajikistan() + +  : +
            +
            + +
            + tanzaniaUnitedRepublicOf() + +  : +
            +
            + +
            + thailand() + +  : +
            +
            + +
            + timorLeste() + +  : +
            +
            + +
            + togo() + +  : +
            +
            + +
            + tokelau() + +  : +
            +
            + +
            + tonga() + +  : +
            +
            + +
            + trinidadAndTobago() + +  : +
            +
            + +
            + tunisia() + +  : +
            +
            + +
            + turkey() + +  : +
            +
            + +
            + turkmenistan() + +  : +
            +
            + +
            + turksAndCaicosIslands() + +  : +
            +
            + +
            + tuvalu() + +  : +
            +
            + +
            + uganda() + +  : +
            +
            + +
            + ukraine() + +  : +
            +
            + +
            + unitedArabEmirates() + +  : +
            +
            + +
            + unitedKingdom() + +  : +
            +
            + +
            + unitedStates() + +  : +
            +
            + +
            + unitedStatesMinorOutlyingIslands() + +  : +
            +
            + +
            + uruguay() + +  : +
            +
            + +
            + uzbekistan() + +  : +
            +
            + +
            + values() + +  : array<string|int, mixed> +
            +
            Valeurs des possibilités de cet énumération (value)
            + +
            + vanuatu() + +  : +
            +
            + +
            + venezuelaBolivarianRepublicOf() + +  : +
            +
            + +
            + vietNam() + +  : +
            +
            + +
            + virginIslandsBritish() + +  : +
            +
            + +
            + virginIslandsUs() + +  : +
            +
            + +
            + wallisAndFutuna() + +  : +
            +
            + +
            + westernSahara() + +  : +
            +
            + +
            + yemen() + +  : +
            +
            + +
            + zambia() + +  : +
            +
            + +
            + zimbabwe() + +  : +
            +
            + +
            + + + + + + + +
            +

            + Methods + +

            +
            +

            + afghanistan() + +

            + + + + + public + static afghanistan() : + + + + + +
            Return values
            + + — + + +
            +
            +

            + alandIslands() + +

            + + + + + public + static alandIslands() : + + + + + +
            Return values
            + + — + + +
            +
            +

            + albania() + +

            + + + + + public + static albania() : + + + + + +
            Return values
            + + — + + +
            +
            +

            + algeria() + +

            + + + + + public + static algeria() : + + + + + +
            Return values
            + + — + + +
            +
            +

            + americanSamoa() + +

            + + + + + public + static americanSamoa() : + + + + + +
            Return values
            + + — + + +
            +
            +

            + andorra() + +

            + + + + + public + static andorra() : + + + + + +
            Return values
            + + — + + +
            +
            +

            + angola() + +

            + + + + + public + static angola() : + + + + + +
            Return values
            + + — + + +
            +
            +

            + anguilla() + +

            + + + + + public + static anguilla() : + + + + + +
            Return values
            + + — + + +
            +
            +

            + antarctica() + +

            + + + + + public + static antarctica() : + + + + + +
            Return values
            + + — + + +
            +
            +

            + antiguaAndBarbuda() + +

            + + + + + public + static antiguaAndBarbuda() : + + + + + +
            Return values
            + + — + + +
            +
            +

            + argentina() + +

            + + + + + public + static argentina() : + + + + + +
            Return values
            + + — + + +
            +
            +

            + armenia() + +

            + + + + + public + static armenia() : + + + + + +
            Return values
            + + — + + +
            +
            +

            + aruba() + +

            + + + + + public + static aruba() : + + + + + +
            Return values
            + + — + + +
            +
            +

            + australia() + +

            + + + + + public + static australia() : + + + + + +
            Return values
            + + — + + +
            +
            +

            + austria() + +

            + + + + + public + static austria() : + + + + + +
            Return values
            + + — + + +
            +
            +

            + azerbaijan() + +

            + + + + + public + static azerbaijan() : + + + + + +
            Return values
            + + — + + +
            +
            +

            + bahamas() + +

            + + + + + public + static bahamas() : + + + + + +
            Return values
            + + — + + +
            +
            +

            + bahrain() + +

            + + + + + public + static bahrain() : + + + + + +
            Return values
            + + — + + +
            +
            +

            + bangladesh() + +

            + + + + + public + static bangladesh() : + + + + + +
            Return values
            + + — + + +
            +
            +

            + barbados() + +

            + + + + + public + static barbados() : + + + + + +
            Return values
            + + — + + +
            +
            +

            + belarus() + +

            + + + + + public + static belarus() : + + + + + +
            Return values
            + + — + + +
            +
            +

            + belgium() + +

            + + + + + public + static belgium() : + + + + + +
            Return values
            + + — + + +
            +
            +

            + belize() + +

            + + + + + public + static belize() : + + + + + +
            Return values
            + + — + + +
            +
            +

            + benin() + +

            + + + + + public + static benin() : + + + + + +
            Return values
            + + — + + +
            +
            +

            + bermuda() + +

            + + + + + public + static bermuda() : + + + + + +
            Return values
            + + — + + +
            +
            +

            + bhutan() + +

            + + + + + public + static bhutan() : + + + + + +
            Return values
            + + — + + +
            +
            +

            + boliviaPlurinationalStateOf() + +

            + + + + + public + static boliviaPlurinationalStateOf() : + + + + + +
            Return values
            + + — + + +
            +
            +

            + bonaireSintEustatiusAndSaba() + +

            + + + + + public + static bonaireSintEustatiusAndSaba() : + + + + + +
            Return values
            + + — + + +
            +
            +

            + bosniaAndHerzegovina() + +

            + + + + + public + static bosniaAndHerzegovina() : + + + + + +
            Return values
            + + — + + +
            +
            +

            + botswana() + +

            + + + + + public + static botswana() : + + + + + +
            Return values
            + + — + + +
            +
            +

            + bouvetIsland() + +

            + + + + + public + static bouvetIsland() : + + + + + +
            Return values
            + + — + + +
            +
            +

            + brazil() + +

            + + + + + public + static brazil() : + + + + + +
            Return values
            + + — + + +
            +
            +

            + britishIndianOceanTerritory() + +

            + + + + + public + static britishIndianOceanTerritory() : + + + + + +
            Return values
            + + — + + +
            +
            +

            + bruneiDarussalam() + +

            + + + + + public + static bruneiDarussalam() : + + + + + +
            Return values
            + + — + + +
            +
            +

            + bulgaria() + +

            + + + + + public + static bulgaria() : + + + + + +
            Return values
            + + — + + +
            +
            +

            + burkinaFaso() + +

            + + + + + public + static burkinaFaso() : + + + + + +
            Return values
            + + — + + +
            +
            +

            + burundi() + +

            + + + + + public + static burundi() : + + + + + +
            Return values
            + + — + + +
            +
            +

            + cambodia() + +

            + + + + + public + static cambodia() : + + + + + +
            Return values
            + + — + + +
            +
            +

            + cameroon() + +

            + + + + + public + static cameroon() : + + + + + +
            Return values
            + + — + + +
            +
            +

            + canada() + +

            + + + + + public + static canada() : + + + + + +
            Return values
            + + — + + +
            +
            +

            + capeVerde() + +

            + + + + + public + static capeVerde() : + + + + + +
            Return values
            + + — + + +
            +
            +

            + caymanIslands() + +

            + + + + + public + static caymanIslands() : + + + + + +
            Return values
            + + — + + +
            +
            +

            + centralAfricanRepublic() + +

            + + + + + public + static centralAfricanRepublic() : + + + + + +
            Return values
            + + — + + +
            +
            +

            + chad() + +

            + + + + + public + static chad() : + + + + + +
            Return values
            + + — + + +
            +
            +

            + chile() + +

            + + + + + public + static chile() : + + + + + +
            Return values
            + + — + + +
            +
            +

            + china() + +

            + + + + + public + static china() : + + + + + +
            Return values
            + + — + + +
            +
            +

            + christmasIsland() + +

            + + + + + public + static christmasIsland() : + + + + + +
            Return values
            + + — + + +
            +
            +

            + cocosKeelingIslands() + +

            + + + + + public + static cocosKeelingIslands() : + + + + + +
            Return values
            + + — + + +
            +
            +

            + colombia() + +

            + + + + + public + static colombia() : + + + + + +
            Return values
            + + — + + +
            +
            +

            + comoros() + +

            + + + + + public + static comoros() : + + + + + +
            Return values
            + + — + + +
            +
            +

            + congo() + +

            + + + + + public + static congo() : + + + + + +
            Return values
            + + — + + +
            +
            +

            + congoTheDemocraticRepublicOfThe() + +

            + + + + + public + static congoTheDemocraticRepublicOfThe() : + + + + + +
            Return values
            + + — + + +
            +
            +

            + cookIslands() + +

            + + + + + public + static cookIslands() : + + + + + +
            Return values
            + + — + + +
            +
            +

            + costaRica() + +

            + + + + + public + static costaRica() : + + + + + +
            Return values
            + + — + + +
            +
            +

            + coteDivoire() + +

            + + + + + public + static coteDivoire() : + + + + + +
            Return values
            + + — + + +
            +
            +

            + croatia() + +

            + + + + + public + static croatia() : + + + + + +
            Return values
            + + — + + +
            +
            +

            + cuba() + +

            + + + + + public + static cuba() : + + + + + +
            Return values
            + + — + + +
            +
            +

            + curacao() + +

            + + + + + public + static curacao() : + + + + + +
            Return values
            + + — + + +
            +
            +

            + cyprus() + +

            + + + + + public + static cyprus() : + + + + + +
            Return values
            + + — + + +
            +
            +

            + czechRepublic() + +

            + + + + + public + static czechRepublic() : + + + + + +
            Return values
            + + — + + +
            +
            +

            + denmark() + +

            + + + + + public + static denmark() : + + + + + +
            Return values
            + + — + + +
            +
            +

            + djibouti() + +

            + + + + + public + static djibouti() : + + + + + +
            Return values
            + + — + + +
            +
            +

            + dominica() + +

            + + + + + public + static dominica() : + + + + + +
            Return values
            + + — + + +
            +
            +

            + dominicanRepublic() + +

            + + + + + public + static dominicanRepublic() : + + + + + +
            Return values
            + + — + + +
            +
            +

            + ecuador() + +

            + + + + + public + static ecuador() : + + + + + +
            Return values
            + + — + + +
            +
            +

            + egypt() + +

            + + + + + public + static egypt() : + + + + + +
            Return values
            + + — + + +
            +
            +

            + elSalvador() + +

            + + + + + public + static elSalvador() : + + + + + +
            Return values
            + + — + + +
            +
            +

            + equatorialGuinea() + +

            + + + + + public + static equatorialGuinea() : + + + + + +
            Return values
            + + — + + +
            +
            +

            + eritrea() + +

            + + + + + public + static eritrea() : + + + + + +
            Return values
            + + — + + +
            +
            +

            + estonia() + +

            + + + + + public + static estonia() : + + + + + +
            Return values
            + + — + + +
            +
            +

            + ethiopia() + +

            + + + + + public + static ethiopia() : + + + + + +
            Return values
            + + — + + +
            +
            +

            + falklandIslandsMalvinas() + +

            + + + + + public + static falklandIslandsMalvinas() : + + + + + +
            Return values
            + + — + + +
            +
            +

            + faroeIslands() + +

            + + + + + public + static faroeIslands() : + + + + + +
            Return values
            + + — + + +
            +
            +

            + fiji() + +

            + + + + + public + static fiji() : + + + + + +
            Return values
            + + — + + +
            +
            +

            + finland() + +

            + + + + + public + static finland() : + + + + + +
            Return values
            + + — + + +
            +
            +

            + france() + +

            + + + + + public + static france() : + + + + + +
            Return values
            + + — + + +
            +
            +

            + frenchGuiana() + +

            + + + + + public + static frenchGuiana() : + + + + + +
            Return values
            + + — + + +
            +
            +

            + frenchPolynesia() + +

            + + + + + public + static frenchPolynesia() : + + + + + +
            Return values
            + + — + + +
            +
            +

            + frenchSouthernTerritories() + +

            + + + + + public + static frenchSouthernTerritories() : + + + + + +
            Return values
            + + — + + +
            +
            +

            + gabon() + +

            + + + + + public + static gabon() : + + + + + +
            Return values
            + + — + + +
            +
            +

            + gambia() + +

            + + + + + public + static gambia() : + + + + + +
            Return values
            + + — + + +
            +
            +

            + georgia() + +

            + + + + + public + static georgia() : + + + + + +
            Return values
            + + — + + +
            +
            +

            + germany() + +

            + + + + + public + static germany() : + + + + + +
            Return values
            + + — + + +
            +
            +

            + ghana() + +

            + + + + + public + static ghana() : + + + + + +
            Return values
            + + — + + +
            +
            +

            + gibraltar() + +

            + + + + + public + static gibraltar() : + + + + + +
            Return values
            + + — + + +
            +
            +

            + greece() + +

            + + + + + public + static greece() : + + + + + +
            Return values
            + + — + + +
            +
            +

            + greenland() + +

            + + + + + public + static greenland() : + + + + + +
            Return values
            + + — + + +
            +
            +

            + grenada() + +

            + + + + + public + static grenada() : + + + + + +
            Return values
            + + — + + +
            +
            +

            + guadeloupe() + +

            + + + + + public + static guadeloupe() : + + + + + +
            Return values
            + + — + + +
            +
            +

            + guam() + +

            + + + + + public + static guam() : + + + + + +
            Return values
            + + — + + +
            +
            +

            + guatemala() + +

            + + + + + public + static guatemala() : + + + + + +
            Return values
            + + — + + +
            +
            +

            + guernsey() + +

            + + + + + public + static guernsey() : + + + + + +
            Return values
            + + — + + +
            +
            +

            + guinea() + +

            + + + + + public + static guinea() : + + + + + +
            Return values
            + + — + + +
            +
            +

            + guineaBissau() + +

            + + + + + public + static guineaBissau() : + + + + + +
            Return values
            + + — + + +
            +
            +

            + guyana() + +

            + + + + + public + static guyana() : + + + + + +
            Return values
            + + — + + +
            +
            +

            + haiti() + +

            + + + + + public + static haiti() : + + + + + +
            Return values
            + + — + + +
            +
            +

            + heardIslandAndMcdonaldIslands() + +

            + + + + + public + static heardIslandAndMcdonaldIslands() : + + + + + +
            Return values
            + + — + + +
            +
            +

            + holySeeVaticanCityState() + +

            + + + + + public + static holySeeVaticanCityState() : + + + + + +
            Return values
            + + — + + +
            +
            +

            + honduras() + +

            + + + + + public + static honduras() : + + + + + +
            Return values
            + + — + + +
            +
            +

            + hongKong() + +

            + + + + + public + static hongKong() : + + + + + +
            Return values
            + + — + + +
            +
            +

            + hungary() + +

            + + + + + public + static hungary() : + + + + + +
            Return values
            + + — + + +
            +
            +

            + iceland() + +

            + + + + + public + static iceland() : + + + + + +
            Return values
            + + — + + +
            +
            +

            + india() + +

            + + + + + public + static india() : + + + + + +
            Return values
            + + — + + +
            +
            +

            + indonesia() + +

            + + + + + public + static indonesia() : + + + + + +
            Return values
            + + — + + +
            +
            +

            + iranIslamicRepublicOf() + +

            + + + + + public + static iranIslamicRepublicOf() : + + + + + +
            Return values
            + + — + + +
            +
            +

            + iraq() + +

            + + + + + public + static iraq() : + + + + + +
            Return values
            + + — + + +
            +
            +

            + ireland() + +

            + + + + + public + static ireland() : + + + + + +
            Return values
            + + — + + +
            +
            +

            + isleOfMan() + +

            + + + + + public + static isleOfMan() : + + + + + +
            Return values
            + + — + + +
            +
            +

            + israel() + +

            + + + + + public + static israel() : + + + + + +
            Return values
            + + — + + +
            +
            +

            + italy() + +

            + + + + + public + static italy() : + + + + + +
            Return values
            + + — + + +
            +
            +

            + jamaica() + +

            + + + + + public + static jamaica() : + + + + + +
            Return values
            + + — + + +
            +
            +

            + japan() + +

            + + + + + public + static japan() : + + + + + +
            Return values
            + + — + + +
            +
            +

            + jersey() + +

            + + + + + public + static jersey() : + + + + + +
            Return values
            + + — + + +
            +
            +

            + jordan() + +

            + + + + + public + static jordan() : + + + + + +
            Return values
            + + — + + +
            +
            +

            + kazakhstan() + +

            + + + + + public + static kazakhstan() : + + + + + +
            Return values
            + + — + + +
            +
            +

            + kenya() + +

            + + + + + public + static kenya() : + + + + + +
            Return values
            + + — + + +
            +
            +

            + kiribati() + +

            + + + + + public + static kiribati() : + + + + + +
            Return values
            + + — + + +
            +
            +

            + koreaDemocraticPeoplesRepublicOf() + +

            + + + + + public + static koreaDemocraticPeoplesRepublicOf() : + + + + + +
            Return values
            + + — + + +
            +
            +

            + koreaRepublicOf() + +

            + + + + + public + static koreaRepublicOf() : + + + + + +
            Return values
            + + — + + +
            +
            +

            + kuwait() + +

            + + + + + public + static kuwait() : + + + + + +
            Return values
            + + — + + +
            +
            +

            + kyrgyzstan() + +

            + + + + + public + static kyrgyzstan() : + + + + + +
            Return values
            + + — + + +
            +
            +

            + labels() + +

            + + +

            Libellés des possibilités de cet énumération (label)

            + + + public + static labels() : array<string|int, mixed> + + + + + +
            Return values
            + array<string|int, mixed> + — + + +
            +
            +

            + laoPeoplesDemocraticRepublic() + +

            + + + + + public + static laoPeoplesDemocraticRepublic() : + + + + + +
            Return values
            + + — + + +
            +
            +

            + latvia() + +

            + + + + + public + static latvia() : + + + + + +
            Return values
            + + — + + +
            +
            +

            + lebanon() + +

            + + + + + public + static lebanon() : + + + + + +
            Return values
            + + — + + +
            +
            +

            + lesotho() + +

            + + + + + public + static lesotho() : + + + + + +
            Return values
            + + — + + +
            +
            +

            + liberia() + +

            + + + + + public + static liberia() : + + + + + +
            Return values
            + + — + + +
            +
            +

            + libya() + +

            + + + + + public + static libya() : + + + + + +
            Return values
            + + — + + +
            +
            +

            + liechtenstein() + +

            + + + + + public + static liechtenstein() : + + + + + +
            Return values
            + + — + + +
            +
            +

            + lithuania() + +

            + + + + + public + static lithuania() : + + + + + +
            Return values
            + + — + + +
            +
            +

            + luxembourg() + +

            + + + + + public + static luxembourg() : + + + + + +
            Return values
            + + — + + +
            +
            +

            + macao() + +

            + + + + + public + static macao() : + + + + + +
            Return values
            + + — + + +
            +
            +

            + macedoniaTheFormerYugoslavRepublicOf() + +

            + + + + + public + static macedoniaTheFormerYugoslavRepublicOf() : + + + + + +
            Return values
            + + — + + +
            +
            +

            + madagascar() + +

            + + + + + public + static madagascar() : + + + + + +
            Return values
            + + — + + +
            +
            +

            + malawi() + +

            + + + + + public + static malawi() : + + + + + +
            Return values
            + + — + + +
            +
            +

            + malaysia() + +

            + + + + + public + static malaysia() : + + + + + +
            Return values
            + + — + + +
            +
            +

            + maldives() + +

            + + + + + public + static maldives() : + + + + + +
            Return values
            + + — + + +
            +
            +

            + mali() + +

            + + + + + public + static mali() : + + + + + +
            Return values
            + + — + + +
            +
            +

            + malta() + +

            + + + + + public + static malta() : + + + + + +
            Return values
            + + — + + +
            +
            +

            + marshallIslands() + +

            + + + + + public + static marshallIslands() : + + + + + +
            Return values
            + + — + + +
            +
            +

            + martinique() + +

            + + + + + public + static martinique() : + + + + + +
            Return values
            + + — + + +
            +
            +

            + mauritania() + +

            + + + + + public + static mauritania() : + + + + + +
            Return values
            + + — + + +
            +
            +

            + mauritius() + +

            + + + + + public + static mauritius() : + + + + + +
            Return values
            + + — + + +
            +
            +

            + mayotte() + +

            + + + + + public + static mayotte() : + + + + + +
            Return values
            + + — + + +
            +
            +

            + mexico() + +

            + + + + + public + static mexico() : + + + + + +
            Return values
            + + — + + +
            +
            +

            + micronesiaFederatedStatesOf() + +

            + + + + + public + static micronesiaFederatedStatesOf() : + + + + + +
            Return values
            + + — + + +
            +
            +

            + moldovaRepublicOf() + +

            + + + + + public + static moldovaRepublicOf() : + + + + + +
            Return values
            + + — + + +
            +
            +

            + monaco() + +

            + + + + + public + static monaco() : + + + + + +
            Return values
            + + — + + +
            +
            +

            + mongolia() + +

            + + + + + public + static mongolia() : + + + + + +
            Return values
            + + — + + +
            +
            +

            + montenegro() + +

            + + + + + public + static montenegro() : + + + + + +
            Return values
            + + — + + +
            +
            +

            + montserrat() + +

            + + + + + public + static montserrat() : + + + + + +
            Return values
            + + — + + +
            +
            +

            + morocco() + +

            + + + + + public + static morocco() : + + + + + +
            Return values
            + + — + + +
            +
            +

            + mozambique() + +

            + + + + + public + static mozambique() : + + + + + +
            Return values
            + + — + + +
            +
            +

            + myanmar() + +

            + + + + + public + static myanmar() : + + + + + +
            Return values
            + + — + + +
            +
            +

            + namibia() + +

            + + + + + public + static namibia() : + + + + + +
            Return values
            + + — + + +
            +
            +

            + nauru() + +

            + + + + + public + static nauru() : + + + + + +
            Return values
            + + — + + +
            +
            +

            + nepal() + +

            + + + + + public + static nepal() : + + + + + +
            Return values
            + + — + + +
            +
            +

            + netherlands() + +

            + + + + + public + static netherlands() : + + + + + +
            Return values
            + + — + + +
            +
            +

            + newCaledonia() + +

            + + + + + public + static newCaledonia() : + + + + + +
            Return values
            + + — + + +
            +
            +

            + newZealand() + +

            + + + + + public + static newZealand() : + + + + + +
            Return values
            + + — + + +
            +
            +

            + nicaragua() + +

            + + + + + public + static nicaragua() : + + + + + +
            Return values
            + + — + + +
            +
            +

            + niger() + +

            + + + + + public + static niger() : + + + + + +
            Return values
            + + — + + +
            +
            +

            + nigeria() + +

            + + + + + public + static nigeria() : + + + + + +
            Return values
            + + — + + +
            +
            +

            + niue() + +

            + + + + + public + static niue() : + + + + + +
            Return values
            + + — + + +
            +
            +

            + norfolkIsland() + +

            + + + + + public + static norfolkIsland() : + + + + + +
            Return values
            + + — + + +
            +
            +

            + northernMarianaIslands() + +

            + + + + + public + static northernMarianaIslands() : + + + + + +
            Return values
            + + — + + +
            +
            +

            + norway() + +

            + + + + + public + static norway() : + + + + + +
            Return values
            + + — + + +
            +
            +

            + oman() + +

            + + + + + public + static oman() : + + + + + +
            Return values
            + + — + + +
            +
            +

            + pakistan() + +

            + + + + + public + static pakistan() : + + + + + +
            Return values
            + + — + + +
            +
            +

            + palau() + +

            + + + + + public + static palau() : + + + + + +
            Return values
            + + — + + +
            +
            +

            + palestineStateOf() + +

            + + + + + public + static palestineStateOf() : + + + + + +
            Return values
            + + — + + +
            +
            +

            + panama() + +

            + + + + + public + static panama() : + + + + + +
            Return values
            + + — + + +
            +
            +

            + papuaNewGuinea() + +

            + + + + + public + static papuaNewGuinea() : + + + + + +
            Return values
            + + — + + +
            +
            +

            + paraguay() + +

            + + + + + public + static paraguay() : + + + + + +
            Return values
            + + — + + +
            +
            +

            + peru() + +

            + + + + + public + static peru() : + + + + + +
            Return values
            + + — + + +
            +
            +

            + philippines() + +

            + + + + + public + static philippines() : + + + + + +
            Return values
            + + — + + +
            +
            +

            + pitcairn() + +

            + + + + + public + static pitcairn() : + + + + + +
            Return values
            + + — + + +
            +
            +

            + poland() + +

            + + + + + public + static poland() : + + + + + +
            Return values
            + + — + + +
            +
            +

            + portugal() + +

            + + + + + public + static portugal() : + + + + + +
            Return values
            + + — + + +
            +
            +

            + puertoRico() + +

            + + + + + public + static puertoRico() : + + + + + +
            Return values
            + + — + + +
            +
            +

            + qatar() + +

            + + + + + public + static qatar() : + + + + + +
            Return values
            + + — + + +
            +
            +

            + reunion() + +

            + + + + + public + static reunion() : + + + + + +
            Return values
            + + — + + +
            +
            +

            + romania() + +

            + + + + + public + static romania() : + + + + + +
            Return values
            + + — + + +
            +
            +

            + russianFederation() + +

            + + + + + public + static russianFederation() : + + + + + +
            Return values
            + + — + + +
            +
            +

            + rwanda() + +

            + + + + + public + static rwanda() : + + + + + +
            Return values
            + + — + + +
            +
            +

            + saintBarthelemy() + +

            + + + + + public + static saintBarthelemy() : + + + + + +
            Return values
            + + — + + +
            +
            +

            + saintHelenaAscensionAndTristanDaCunha() + +

            + + + + + public + static saintHelenaAscensionAndTristanDaCunha() : + + + + + +
            Return values
            + + — + + +
            +
            +

            + saintKittsAndNevis() + +

            + + + + + public + static saintKittsAndNevis() : + + + + + +
            Return values
            + + — + + +
            +
            +

            + saintLucia() + +

            + + + + + public + static saintLucia() : + + + + + +
            Return values
            + + — + + +
            +
            +

            + saintMartinFrenchPart() + +

            + + + + + public + static saintMartinFrenchPart() : + + + + + +
            Return values
            + + — + + +
            +
            +

            + saintPierreAndMiquelon() + +

            + + + + + public + static saintPierreAndMiquelon() : + + + + + +
            Return values
            + + — + + +
            +
            +

            + saintVincentAndTheGrenadines() + +

            + + + + + public + static saintVincentAndTheGrenadines() : + + + + + +
            Return values
            + + — + + +
            +
            +

            + samoa() + +

            + + + + + public + static samoa() : + + + + + +
            Return values
            + + — + + +
            +
            +

            + sanMarino() + +

            + + + + + public + static sanMarino() : + + + + + +
            Return values
            + + — + + +
            +
            +

            + saoTomeAndPrincipe() + +

            + + + + + public + static saoTomeAndPrincipe() : + + + + + +
            Return values
            + + — + + +
            +
            +

            + saudiArabia() + +

            + + + + + public + static saudiArabia() : + + + + + +
            Return values
            + + — + + +
            +
            +

            + senegal() + +

            + + + + + public + static senegal() : + + + + + +
            Return values
            + + — + + +
            +
            +

            + serbia() + +

            + + + + + public + static serbia() : + + + + + +
            Return values
            + + — + + +
            +
            +

            + seychelles() + +

            + + + + + public + static seychelles() : + + + + + +
            Return values
            + + — + + +
            +
            +

            + sierraLeone() + +

            + + + + + public + static sierraLeone() : + + + + + +
            Return values
            + + — + + +
            +
            +

            + singapore() + +

            + + + + + public + static singapore() : + + + + + +
            Return values
            + + — + + +
            +
            +

            + sintMaartenDutchPart() + +

            + + + + + public + static sintMaartenDutchPart() : + + + + + +
            Return values
            + + — + + +
            +
            +

            + slovakia() + +

            + + + + + public + static slovakia() : + + + + + +
            Return values
            + + — + + +
            +
            +

            + slovenia() + +

            + + + + + public + static slovenia() : + + + + + +
            Return values
            + + — + + +
            +
            +

            + solomonIslands() + +

            + + + + + public + static solomonIslands() : + + + + + +
            Return values
            + + — + + +
            +
            +

            + somalia() + +

            + + + + + public + static somalia() : + + + + + +
            Return values
            + + — + + +
            +
            +

            + southAfrica() + +

            + + + + + public + static southAfrica() : + + + + + +
            Return values
            + + — + + +
            +
            +

            + southGeorgiaAndTheSouthSandwichIslands() + +

            + + + + + public + static southGeorgiaAndTheSouthSandwichIslands() : + + + + + +
            Return values
            + + — + + +
            +
            +

            + southSudan() + +

            + + + + + public + static southSudan() : + + + + + +
            Return values
            + + — + + +
            +
            +

            + spain() + +

            + + + + + public + static spain() : + + + + + +
            Return values
            + + — + + +
            +
            +

            + sriLanka() + +

            + + + + + public + static sriLanka() : + + + + + +
            Return values
            + + — + + +
            +
            +

            + sudan() + +

            + + + + + public + static sudan() : + + + + + +
            Return values
            + + — + + +
            +
            +

            + suriname() + +

            + + + + + public + static suriname() : + + + + + +
            Return values
            + + — + + +
            +
            +

            + svalbardAndJanMayen() + +

            + + + + + public + static svalbardAndJanMayen() : + + + + + +
            Return values
            + + — + + +
            +
            +

            + swaziland() + +

            + + + + + public + static swaziland() : + + + + + +
            Return values
            + + — + + +
            +
            +

            + sweden() + +

            + + + + + public + static sweden() : + + + + + +
            Return values
            + + — + + +
            +
            +

            + switzerland() + +

            + + + + + public + static switzerland() : + + + + + +
            Return values
            + + — + + +
            +
            +

            + syrianArabRepublic() + +

            + + + + + public + static syrianArabRepublic() : + + + + + +
            Return values
            + + — + + +
            +
            +

            + taiwanProvinceOfChina() + +

            + + + + + public + static taiwanProvinceOfChina() : + + + + + +
            Return values
            + + — + + +
            +
            +

            + tajikistan() + +

            + + + + + public + static tajikistan() : + + + + + +
            Return values
            + + — + + +
            +
            +

            + tanzaniaUnitedRepublicOf() + +

            + + + + + public + static tanzaniaUnitedRepublicOf() : + + + + + +
            Return values
            + + — + + +
            +
            +

            + thailand() + +

            + + + + + public + static thailand() : + + + + + +
            Return values
            + + — + + +
            +
            +

            + timorLeste() + +

            + + + + + public + static timorLeste() : + + + + + +
            Return values
            + + — + + +
            +
            +

            + togo() + +

            + + + + + public + static togo() : + + + + + +
            Return values
            + + — + + +
            +
            +

            + tokelau() + +

            + + + + + public + static tokelau() : + + + + + +
            Return values
            + + — + + +
            +
            +

            + tonga() + +

            + + + + + public + static tonga() : + + + + + +
            Return values
            + + — + + +
            +
            +

            + trinidadAndTobago() + +

            + + + + + public + static trinidadAndTobago() : + + + + + +
            Return values
            + + — + + +
            +
            +

            + tunisia() + +

            + + + + + public + static tunisia() : + + + + + +
            Return values
            + + — + + +
            +
            +

            + turkey() + +

            + + + + + public + static turkey() : + + + + + +
            Return values
            + + — + + +
            +
            +

            + turkmenistan() + +

            + + + + + public + static turkmenistan() : + + + + + +
            Return values
            + + — + + +
            +
            +

            + turksAndCaicosIslands() + +

            + + + + + public + static turksAndCaicosIslands() : + + + + + +
            Return values
            + + — + + +
            +
            +

            + tuvalu() + +

            + + + + + public + static tuvalu() : + + + + + +
            Return values
            + + — + + +
            +
            +

            + uganda() + +

            + + + + + public + static uganda() : + + + + + +
            Return values
            + + — + + +
            +
            +

            + ukraine() + +

            + + + + + public + static ukraine() : + + + + + +
            Return values
            + + — + + +
            +
            +

            + unitedArabEmirates() + +

            + + + + + public + static unitedArabEmirates() : + + + + + +
            Return values
            + + — + + +
            +
            +

            + unitedKingdom() + +

            + + + + + public + static unitedKingdom() : + + + + + +
            Return values
            + + — + + +
            +
            +

            + unitedStates() + +

            + + + + + public + static unitedStates() : + + + + + +
            Return values
            + + — + + +
            +
            +

            + unitedStatesMinorOutlyingIslands() + +

            + + + + + public + static unitedStatesMinorOutlyingIslands() : + + + + + +
            Return values
            + + — + + +
            +
            +

            + uruguay() + +

            + + + + + public + static uruguay() : + + + + + +
            Return values
            + + — + + +
            +
            +

            + uzbekistan() + +

            + + + + + public + static uzbekistan() : + + + + + +
            Return values
            + + — + + +
            +
            +

            + values() + +

            + + +

            Valeurs des possibilités de cet énumération (value)

            + + + public + static values() : array<string|int, mixed> + + + + + +
            Return values
            + array<string|int, mixed> + — + + +
            +
            +

            + vanuatu() + +

            + + + + + public + static vanuatu() : + + + + + +
            Return values
            + + — + + +
            +
            +

            + venezuelaBolivarianRepublicOf() + +

            + + + + + public + static venezuelaBolivarianRepublicOf() : + + + + + +
            Return values
            + + — + + +
            +
            +

            + vietNam() + +

            + + + + + public + static vietNam() : + + + + + +
            Return values
            + + — + + +
            +
            +

            + virginIslandsBritish() + +

            + + + + + public + static virginIslandsBritish() : + + + + + +
            Return values
            + + — + + +
            +
            +

            + virginIslandsUs() + +

            + + + + + public + static virginIslandsUs() : + + + + + +
            Return values
            + + — + + +
            +
            +

            + wallisAndFutuna() + +

            + + + + + public + static wallisAndFutuna() : + + + + + +
            Return values
            + + — + + +
            +
            +

            + westernSahara() + +

            + + + + + public + static westernSahara() : + + + + + +
            Return values
            + + — + + +
            +
            +

            + yemen() + +

            + + + + + public + static yemen() : + + + + + +
            Return values
            + + — + + +
            +
            +

            + zambia() + +

            + + + + + public + static zambia() : + + + + + +
            Return values
            + + — + + +
            +
            +

            + zimbabwe() + +

            + + + + + public + static zimbabwe() : + + + + + +
            Return values
            + + — + + +
            +
            + + + + +
            +
            +
            +
            +

            Search results

            + +
            +
            +
              +
              +
              +
              +
              +
              + + +
              + + + + + + + + diff --git a/app/Lib/vendor/crm-client-3.0.6/docs/client-api/classes/LDC-LDCCRM-Enums-LogLevel.html b/app/Lib/vendor/crm-client-3.0.6/docs/client-api/classes/LDC-LDCCRM-Enums-LogLevel.html new file mode 100644 index 0000000..eddb0e8 --- /dev/null +++ b/app/Lib/vendor/crm-client-3.0.6/docs/client-api/classes/LDC-LDCCRM-Enums-LogLevel.html @@ -0,0 +1,647 @@ + + + + + CRM V2 + + + + + + + + + + + + + + + + + + + +
              +

              CRM V2

              + + + + + +
              + +
              +
              + + + + +
              + + +
              +

              + LogLevel + + + extends BaseEnum + + +
              + in package + +
              + + +

              + + + + + + +
              + Tags + +
              +
              +
              + subpackage +
              +
              + +

              enums

              +
              + +
              +
              + + + + + + +

              + Table of Contents + +

              + +
              +
              + ALERT() + +  : +
              +
              + +
              + CRIT() + +  : +
              +
              + +
              + DEBUG() + +  : +
              +
              + +
              + EMERG() + +  : +
              +
              + +
              + ERR() + +  : +
              +
              + +
              + INFO() + +  : +
              +
              + +
              + NOTICE() + +  : +
              +
              + +
              + WARNING() + +  : +
              +
              + +
              + values() + +  : array<string|int, mixed> +
              +
              Valeurs des possibilités de cet énumération (value)
              + +
              + + + + + + + +
              +

              + Methods + +

              +
              +

              + ALERT() + +

              + + + + + public + static ALERT() : + +

              action must be taken immediately

              +
              + + + + +
              Return values
              + + — + + +
              +
              +

              + CRIT() + +

              + + + + + public + static CRIT() : + +

              critical conditions

              +
              + + + + +
              Return values
              + + — + + +
              +
              +

              + DEBUG() + +

              + + + + + public + static DEBUG() : + +

              debug-level message

              +
              + + + + +
              Return values
              + + — + + +
              +
              +

              + EMERG() + +

              + + + + + public + static EMERG() : + +

              system is unusable

              +
              + + + + +
              Return values
              + + — + + +
              +
              +

              + ERR() + +

              + + + + + public + static ERR() : + +

              critical conditions

              +
              + + + + +
              Return values
              + + — + + +
              +
              +

              + INFO() + +

              + + + + + public + static INFO() : + +

              informational message

              +
              + + + + +
              Return values
              + + — + + +
              +
              +

              + NOTICE() + +

              + + + + + public + static NOTICE() : + +

              normal, but significant, condition

              +
              + + + + +
              Return values
              + + — + + +
              +
              +

              + WARNING() + +

              + + + + + public + static WARNING() : + +

              critical conditions

              +
              + + + + +
              Return values
              + + — + + +
              +
              +

              + values() + +

              + + +

              Valeurs des possibilités de cet énumération (value)

              + + + protected + static values() : array<string|int, mixed> + + + + + +
              Return values
              + array<string|int, mixed> + — + + +
              +
              + + + + +
              +
              +
              +
              +

              Search results

              + +
              +
              +
                +
                +
                +
                +
                +
                + + +
                + + + + + + + + diff --git a/app/Lib/vendor/crm-client-3.0.6/docs/client-api/classes/LDC-LDCCRM-Enums-QuestionType.html b/app/Lib/vendor/crm-client-3.0.6/docs/client-api/classes/LDC-LDCCRM-Enums-QuestionType.html new file mode 100644 index 0000000..d18f6cb --- /dev/null +++ b/app/Lib/vendor/crm-client-3.0.6/docs/client-api/classes/LDC-LDCCRM-Enums-QuestionType.html @@ -0,0 +1,436 @@ + + + + + CRM V2 + + + + + + + + + + + + + + + + + + + +
                +

                CRM V2

                + + + + + +
                + +
                +
                + + + + +
                + + +
                +

                + QuestionType + + + extends BaseEnum + + +
                + in package + +
                + + +

                + + + + + + +
                + Tags + +
                +
                +
                + subpackage +
                +
                + +

                enums

                +
                + +
                +
                + + + + + + +

                + Table of Contents + +

                + +
                +
                + checkbox() + +  : +
                +
                + +
                + radio() + +  : +
                +
                + +
                + select() + +  : +
                +
                + +
                + values() + +  : array<string|int, mixed> +
                +
                Valeurs des possibilités de cet énumération (value)
                + +
                + + + + + + + +
                +

                + Methods + +

                +
                +

                + checkbox() + +

                + + + + + public + static checkbox() : + + + + + +
                Return values
                + + — + + +
                +
                +

                + radio() + +

                + + + + + public + static radio() : + + + + + +
                Return values
                + + — + + +
                +
                +

                + select() + +

                + + + + + public + static select() : + + + + + +
                Return values
                + + — + + +
                +
                +

                + values() + +

                + + +

                Valeurs des possibilités de cet énumération (value)

                + + + public + static values() : array<string|int, mixed> + + + + + +
                Return values
                + array<string|int, mixed> + — + + +
                +
                + + + + +
                +
                +
                +
                +

                Search results

                + +
                +
                +
                  +
                  +
                  +
                  +
                  +
                  + + +
                  + + + + + + + + diff --git a/app/Lib/vendor/crm-client-3.0.6/docs/client-api/classes/LDC-LDCCRM-Exceptions-AccessError.html b/app/Lib/vendor/crm-client-3.0.6/docs/client-api/classes/LDC-LDCCRM-Exceptions-AccessError.html new file mode 100644 index 0000000..bb0244b --- /dev/null +++ b/app/Lib/vendor/crm-client-3.0.6/docs/client-api/classes/LDC-LDCCRM-Exceptions-AccessError.html @@ -0,0 +1,341 @@ + + + + + CRM V2 + + + + + + + + + + + + + + + + + + + +
                  +

                  CRM V2

                  + + + + + +
                  + +
                  +
                  + + + + +
                  + + +
                  +

                  + AccessError + + + extends Error + + +
                  + in package + +
                  + + +

                  + + + +

                  This is thrown when trying to set a value on an object property that does not exist.

                  + + + +
                  + Tags + +
                  +
                  +
                  + subpackage +
                  +
                  + +

                  exceptions

                  +
                  + +
                  +
                  + + + + + + +

                  + Table of Contents + +

                  + +
                  +
                  + __construct() + +  : mixed +
                  +
                  AccessError
                  + +
                  + + + + + + + +
                  +

                  + Methods + +

                  +
                  +

                  + __construct() + +

                  + + +

                  AccessError

                  + + + public + __construct(string $objectName, string $propertyName) : mixed + + +
                  Parameters
                  +
                  +
                  + $objectName + : string +
                  +
                  +

                  The object name where the property does not exist.

                  +
                  + +
                  +
                  + $propertyName + : string +
                  +
                  +

                  The property name that does not exist.

                  +
                  + +
                  +
                  + + + +
                  Return values
                  + mixed + — + + +
                  +
                  + + + + +
                  +
                  +
                  +
                  +

                  Search results

                  + +
                  +
                  +
                    +
                    +
                    +
                    +
                    +
                    + + +
                    + + + + + + + + diff --git a/app/Lib/vendor/crm-client-3.0.6/docs/client-api/classes/LDC-LDCCRM-Exceptions-ApiErrorException.html b/app/Lib/vendor/crm-client-3.0.6/docs/client-api/classes/LDC-LDCCRM-Exceptions-ApiErrorException.html new file mode 100644 index 0000000..1442ff7 --- /dev/null +++ b/app/Lib/vendor/crm-client-3.0.6/docs/client-api/classes/LDC-LDCCRM-Exceptions-ApiErrorException.html @@ -0,0 +1,630 @@ + + + + + CRM V2 + + + + + + + + + + + + + + + + + + + +
                    +

                    CRM V2

                    + + + + + +
                    + +
                    +
                    + + + + +
                    + + +
                    +

                    + ApiErrorException + + + extends Exception + + +
                    + in package + +
                    + + +

                    + + + +

                    This would be thrown if any of the case +referenced in \LDC\LDCCRM\Enums\ApiError would +occur within the crm

                    + +

                    On the client an ApiErrorException would +also be throw with the ApiError corresponding to +the situation

                    +
                    + + +
                    + Tags + +
                    +
                    +
                    + subpackage +
                    +
                    + +

                    exceptions

                    +
                    + +
                    +
                    + + + + + + +

                    + Table of Contents + +

                    + +
                    +
                    + $error + +  : ApiError +
                    +
                    Api Error +This value makes the error more explicit.
                    + +
                    + $httpCode + +  : int +
                    +
                    This is the http code returned by the crm.
                    + +
                    + $message + +  : string +
                    +
                    This is an explicit error message, +ou may print this to the front or not depending +on $error value
                    + +
                    + __construct() + +  : mixed +
                    +
                    Create a new exception base on ApiError enum.
                    + +
                    + getApiError() + +  : ApiError +
                    +
                    Get the Api Error
                    + +
                    + getStatusCode() + +  : int +
                    +
                    Get the http code
                    + +
                    + report() + +  : void +
                    +
                    This is used by laravel only.
                    + +
                    + + + + + + +
                    +

                    + Properties + +

                    +
                    +

                    + $error + + + +

                    + + +

                    Api Error +This value makes the error more explicit.

                    + + + protected + ApiError + $error + + +

                    Handling these errors are normal as inputs or +request may be undesired or refused by the crm.

                    +
                    + + + + +
                    +
                    +

                    + $httpCode + + + +

                    + + +

                    This is the http code returned by the crm.

                    + + + protected + int + $httpCode + + +

                    This value could be used to handle errors. +But please take in consideration $error first

                    +
                    + + + + +
                    +
                    +

                    + $message + + + +

                    + + +

                    This is an explicit error message, +ou may print this to the front or not depending +on $error value

                    + + + protected + string + $message + + + + + + +
                    +
                    + +
                    +

                    + Methods + +

                    +
                    +

                    + __construct() + +

                    + + +

                    Create a new exception base on ApiError enum.

                    + + + public + __construct(ApiError $error[, int $httpCode = 400 ][, string $message = '' ][, Throwable|null $previous = null ]) : mixed + + +
                    Parameters
                    +
                    +
                    + $error + : ApiError +
                    +
                    + +
                    +
                    + $httpCode + : int + = 400
                    +
                    + +
                    +
                    + $message + : string + = ''
                    +
                    + +
                    +
                    + $previous + : Throwable|null + = null
                    +
                    + +
                    +
                    + + + +
                    Return values
                    + mixed + — + + +
                    + +
                    +

                    + getStatusCode() + +

                    + + +

                    Get the http code

                    + + + public + getStatusCode() : int + + + + + +
                    Return values
                    + int + — + + +
                    +
                    +

                    + report() + +

                    + + +

                    This is used by laravel only.

                    + + + public + report() : void + +

                    It uses Log class to print the error.

                    +
                    + + + +
                    + Tags + +
                    +
                    +
                    + codeCoverageIgnore +
                    +
                    + + +
                    +
                    + +
                    Return values
                    + void + — + + +
                    +
                    + + + + +
                    +
                    +
                    +
                    +

                    Search results

                    + +
                    +
                    +
                      +
                      +
                      +
                      +
                      +
                      + + +
                      + + + + + + + + diff --git a/app/Lib/vendor/crm-client-3.0.6/docs/client-api/classes/LDC-LDCCRM-Exceptions-CrmException.html b/app/Lib/vendor/crm-client-3.0.6/docs/client-api/classes/LDC-LDCCRM-Exceptions-CrmException.html new file mode 100644 index 0000000..f80e475 --- /dev/null +++ b/app/Lib/vendor/crm-client-3.0.6/docs/client-api/classes/LDC-LDCCRM-Exceptions-CrmException.html @@ -0,0 +1,332 @@ + + + + + CRM V2 + + + + + + + + + + + + + + + + + + + +
                      +

                      CRM V2

                      + + + + + +
                      + +
                      +
                      + + + + +
                      + + +
                      +

                      + CrmException + + + extends Exception + + +
                      + in package + +
                      + + +

                      + + + +

                      This is a critical error.

                      + +

                      The request could not be handled. You may dump any value you can +get before submitting a ticker to https://supportweb.ldc.fr

                      +
                      + + +
                      + Tags + +
                      +
                      +
                      + subpackage +
                      +
                      + +

                      exceptions

                      +
                      + +
                      +
                      + codeCoverageIgnore +
                      +
                      + + +
                      +
                      + + + + + + +

                      + Table of Contents + +

                      + +
                      +
                      + report() + +  : void +
                      +
                      This is used by laravel only.
                      + +
                      + + + + + + + +
                      +

                      + Methods + +

                      +
                      +

                      + report() + +

                      + + +

                      This is used by laravel only.

                      + + + public + report() : void + +

                      It uses Log class to print the error.

                      +
                      + + + + +
                      Return values
                      + void + — + + +
                      +
                      + + + + +
                      +
                      +
                      +
                      +

                      Search results

                      + +
                      +
                      +
                        +
                        +
                        +
                        +
                        +
                        + + +
                        + + + + + + + + diff --git a/app/Lib/vendor/crm-client-3.0.6/docs/client-api/classes/LDC-LDCCRM-Exceptions-SkipValidationException.html b/app/Lib/vendor/crm-client-3.0.6/docs/client-api/classes/LDC-LDCCRM-Exceptions-SkipValidationException.html new file mode 100644 index 0000000..8f9d192 --- /dev/null +++ b/app/Lib/vendor/crm-client-3.0.6/docs/client-api/classes/LDC-LDCCRM-Exceptions-SkipValidationException.html @@ -0,0 +1,267 @@ + + + + + CRM V2 + + + + + + + + + + + + + + + + + + + +
                        +

                        CRM V2

                        + + + + + +
                        + +
                        +
                        + + + + +
                        + + +
                        +

                        + SkipValidationException + + + extends Exception + + +
                        + in package + +
                        + + +

                        + + + +

                        Used only for internal validator

                        + + + +
                        + Tags + +
                        +
                        +
                        + subpackage +
                        +
                        + +

                        exceptions

                        +
                        + +
                        +
                        + + + + + + + + + + + + + + + + + +
                        +
                        +
                        +
                        +

                        Search results

                        + +
                        +
                        +
                          +
                          +
                          +
                          +
                          +
                          + + +
                          + + + + + + + + diff --git a/app/Lib/vendor/crm-client-3.0.6/docs/client-api/classes/LDC-LDCCRM-Exceptions-ValidationException.html b/app/Lib/vendor/crm-client-3.0.6/docs/client-api/classes/LDC-LDCCRM-Exceptions-ValidationException.html new file mode 100644 index 0000000..38efae7 --- /dev/null +++ b/app/Lib/vendor/crm-client-3.0.6/docs/client-api/classes/LDC-LDCCRM-Exceptions-ValidationException.html @@ -0,0 +1,330 @@ + + + + + CRM V2 + + + + + + + + + + + + + + + + + + + +
                          +

                          CRM V2

                          + + + + + +
                          + +
                          +
                          + + + + +
                          + + +
                          +

                          + ValidationException + + + extends Exception + + +
                          + in package + +
                          + + +

                          + + + +

                          This would be thrown if a data could not be validated +on any models

                          + + + +
                          + Tags + +
                          +
                          +
                          + subpackage +
                          +
                          + +

                          exceptions

                          +
                          + +
                          +
                          + codeCoverageIgnore +
                          +
                          + + +
                          +
                          + + + + + + +

                          + Table of Contents + +

                          + +
                          +
                          + report() + +  : void +
                          +
                          This is used by laravel only.
                          + +
                          + + + + + + + +
                          +

                          + Methods + +

                          +
                          +

                          + report() + +

                          + + +

                          This is used by laravel only.

                          + + + public + report() : void + +

                          It uses Log class to print the error.

                          +
                          + + + + +
                          Return values
                          + void + — + + +
                          +
                          + + + + +
                          +
                          +
                          +
                          +

                          Search results

                          + +
                          +
                          +
                            +
                            +
                            +
                            +
                            +
                            + + +
                            + + + + + + + + diff --git a/app/Lib/vendor/crm-client-3.0.6/docs/client-api/classes/LDC-LDCCRM-Exceptions-WpCrmInvalidJsonUserInfo.html b/app/Lib/vendor/crm-client-3.0.6/docs/client-api/classes/LDC-LDCCRM-Exceptions-WpCrmInvalidJsonUserInfo.html new file mode 100644 index 0000000..772bff7 --- /dev/null +++ b/app/Lib/vendor/crm-client-3.0.6/docs/client-api/classes/LDC-LDCCRM-Exceptions-WpCrmInvalidJsonUserInfo.html @@ -0,0 +1,332 @@ + + + + + CRM V2 + + + + + + + + + + + + + + + + + + + +
                            +

                            CRM V2

                            + + + + + +
                            + +
                            +
                            + + + + +
                            + + +
                            +

                            + WpCrmInvalidJsonUserInfo + + + extends Error + + +
                            + in package + +
                            + + +

                            + + + +

                            This is thrown when trying to read WP customer from DB json data.

                            + + + +
                            + Tags + +
                            +
                            +
                            + subpackage +
                            +
                            + +

                            exceptions

                            +
                            + +
                            +
                            + + + + + + +

                            + Table of Contents + +

                            + +
                            +
                            + __construct() + +  : mixed +
                            +
                            WpCrmInvalidJsonUserInfo
                            + +
                            + + + + + + + +
                            +

                            + Methods + +

                            +
                            +

                            + __construct() + +

                            + + +

                            WpCrmInvalidJsonUserInfo

                            + + + public + __construct(string $message) : mixed + + +
                            Parameters
                            +
                            +
                            + $message + : string +
                            +
                            +

                            The error message.

                            +
                            + +
                            +
                            + + + +
                            Return values
                            + mixed + — + + +
                            +
                            + + + + +
                            +
                            +
                            +
                            +

                            Search results

                            + +
                            +
                            +
                              +
                              +
                              +
                              +
                              +
                              + + +
                              + + + + + + + + diff --git a/app/Lib/vendor/crm-client-3.0.6/docs/client-api/classes/LDC-LDCCRM-Models-Answer.html b/app/Lib/vendor/crm-client-3.0.6/docs/client-api/classes/LDC-LDCCRM-Models-Answer.html new file mode 100644 index 0000000..ae43965 --- /dev/null +++ b/app/Lib/vendor/crm-client-3.0.6/docs/client-api/classes/LDC-LDCCRM-Models-Answer.html @@ -0,0 +1,867 @@ + + + + + CRM V2 + + + + + + + + + + + + + + + + + + + +
                              +

                              CRM V2

                              + + + + + +
                              + +
                              +
                              + + + + +
                              + + +
                              +

                              + Answer + + + extends CrmClientModel + + +
                              + in package + +
                              + + +

                              + + + +

                              This class represents an answer +It has a method to submit answers

                              + + + +
                              + Tags + +
                              +
                              +
                              + category +
                              +
                              + +

                              Api Models

                              +
                              + +
                              +
                              + subpackage +
                              +
                              + +

                              models

                              +
                              + +
                              +
                              + author +
                              +
                              + +

                              Jérémy Munsch jeremy.munsch@ldc.fr

                              +
                              + +
                              +
                              + + + + + + +

                              + Table of Contents + +

                              + +
                              +
                              + $answers + +  : array<string|int, Answer> +
                              +
                              + +
                              + $id + +  : string +
                              +
                              + +
                              + $question + +  : string +
                              +
                              + +
                              + $type + +  : QuestionType +
                              +
                              + +
                              + $modelFields + +  : array<string|int, mixed> +
                              +
                              The crm customer fields
                              + +
                              + $validation + +  : array<string|int, mixed> +
                              +
                              Validation rules
                              + +
                              + $answer + +  : string +
                              +
                              The actual answer as a string
                              + +
                              + $id + +  : int +
                              +
                              The question id
                              + +
                              + __construct() + +  : mixed +
                              +
                              Answer
                              + +
                              + jsonSerialize() + +  : array<string|int, mixed> +
                              +
                              Serialize this object to an array
                              + +
                              + setQuestionAnswers() + +  : bool +
                              +
                              Set unanswered question for a specific customer
                              + +
                              + + + + + + +
                              +

                              + Properties + +

                              +
                              +

                              + $answers + + + +

                              + + + + + public + array<string|int, Answer> + $answers + + +

                              An array with answers

                              +
                              + +
                              + + + +
                              +
                              +

                              + $id + + + +

                              + + + + + public + string + $id + + +

                              The answer id

                              +
                              + +
                              + + + +
                              +
                              +

                              + $question + + + +

                              + + + + + public + string + $question + + +

                              The actual question as a string

                              +
                              + +
                              + + + +
                              +
                              +

                              + $type + + + +

                              + + + + + public + QuestionType + $type + + +

                              The question type to display, +it also hints wether it can accept one or multiple responses, +so only checkbox allows multiple responses

                              +
                              + +
                              + + + +
                              +
                              +

                              + $modelFields + + + +

                              + + +

                              The crm customer fields

                              + + + protected + array<string|int, mixed> + $modelFields + = ['id', 'answer'] + + + + + +
                              +
                              +

                              + $validation + + + +

                              + + +

                              Validation rules

                              + + + protected + static array<string|int, mixed> + $validation + = ['id' => 'required|int', 'answer' => 'required|string|max:255'] + + + + + +
                              +
                              +

                              + $answer + + + +

                              + + +

                              The actual answer as a string

                              + + + private + string + $answer + = null + +

                              Required +Max length 255 +Field Type varchar

                              +
                              + + + + +
                              +
                              +

                              + $id + + + +

                              + + +

                              The question id

                              + + + private + int + $id + + +

                              Required +Field Type bigInt

                              +
                              + + + + +
                              +
                              + +
                              +

                              + Methods + +

                              +
                              +

                              + __construct() + +

                              + + +

                              Answer

                              + + + public + __construct([array<string|int, mixed> $properties = [] ]) : mixed + + +
                              Parameters
                              +
                              +
                              + $properties + : array<string|int, mixed> + = []
                              +
                              + +
                              +
                              + + +
                              + Tags + +
                              +
                              +
                              + throws +
                              +
                              + ValidationException + +

                              If a field could not be validated.

                              +
                              + +
                              +
                              + +
                              Return values
                              + mixed + — + + +
                              +
                              +

                              + jsonSerialize() + +

                              + + +

                              Serialize this object to an array

                              + + + public + jsonSerialize() : array<string|int, mixed> + + + + + +
                              Return values
                              + array<string|int, mixed> + — + + +
                              +
                              +

                              + setQuestionAnswers() + +

                              + + +

                              Set unanswered question for a specific customer

                              + + + public + static setQuestionAnswers(string $hashcode, int $questionId, array<string|int, mixed> $answersId) : bool + + +
                              Parameters
                              +
                              +
                              + $hashcode + : string +
                              +
                              +

                              The customer hashcode.

                              +
                              + +
                              +
                              + $questionId + : int +
                              +
                              +

                              The question id.

                              +
                              + +
                              +
                              + $answersId + : array<string|int, mixed> +
                              +
                              +

                              An array with answers id.

                              +
                              + +
                              +
                              + + +
                              + Tags + +
                              +
                              +
                              + throws +
                              +
                              + ValidationException + +

                              If a hashcode is not a valid UUID.

                              +
                              + +
                              +
                              + throws +
                              +
                              + ValidationException + +

                              If any of the provided ids are invalid.

                              +
                              + +
                              +
                              + throws +
                              +
                              + ApiErrorException + +

                              If any error \LDC\LDCCRM\Enums\ApiError occurs. +Possibles are : - validationFailed, If given ids are wrong(CRM side).

                              +
                              + +
                              +
                              + throws +
                              +
                              + CrmException + +

                              If an error occurs on server side or on getting response.

                              +
                              + +
                              +
                              + +
                              Return values
                              + bool + — +

                              true if succeeded

                              +
                              + + +
                              +
                              + + + + +
                              +
                              +
                              +
                              +

                              Search results

                              + +
                              +
                              +
                                +
                                +
                                +
                                +
                                +
                                + + +
                                + + + + + + + + diff --git a/app/Lib/vendor/crm-client-3.0.6/docs/client-api/classes/LDC-LDCCRM-Models-ArcadiaMailDefault.html b/app/Lib/vendor/crm-client-3.0.6/docs/client-api/classes/LDC-LDCCRM-Models-ArcadiaMailDefault.html new file mode 100644 index 0000000..6867848 --- /dev/null +++ b/app/Lib/vendor/crm-client-3.0.6/docs/client-api/classes/LDC-LDCCRM-Models-ArcadiaMailDefault.html @@ -0,0 +1,2133 @@ + + + + + CRM V2 + + + + + + + + + + + + + + + + + + + +
                                +

                                CRM V2

                                + + + + + +
                                + +
                                +
                                + + + + +
                                + + +
                                +

                                + ArcadiaMailDefault + + + extends CrmClientModel + + +
                                + in package + +
                                + + +

                                + + + +

                                This class represents the customer info with +the account validation status

                                + + + +
                                + Tags + +
                                +
                                +
                                + category +
                                +
                                + +

                                Api Models

                                +
                                + +
                                +
                                + subpackage +
                                +
                                + +

                                models

                                +
                                + +
                                +
                                + author +
                                +
                                + +

                                Jérémy Munsch jeremy.munsch@ldc.fr

                                +
                                + +
                                +
                                + + + + + + +

                                + Table of Contents + +

                                + +
                                +
                                + $address + +  : string +
                                +
                                + +
                                + $address2 + +  : string +
                                +
                                + +
                                + $city + +  : string +
                                +
                                + +
                                + $email + +  : string +
                                +
                                + +
                                + $firstname + +  : string +
                                +
                                + +
                                + $label_type_support + +  : string +
                                +
                                + +
                                + $lastname + +  : string +
                                +
                                + +
                                + $operation + +  : int +
                                +
                                + +
                                + $order_date + +  : string +
                                +
                                + +
                                + $order_num + +  : int +
                                +
                                + +
                                + $package_unit_weight + +  : int +
                                +
                                + +
                                + $phone + +  : string +
                                +
                                + +
                                + $postcode + +  : string +
                                +
                                + +
                                + $state_order + +  : ArcadiaOrderType +
                                +
                                + +
                                + $support_code + +  : int +
                                +
                                + +
                                + $modelFields + +  : array<string|int, mixed> +
                                +
                                The crm customer fields
                                + +
                                + $validation + +  : array<string|int, mixed> +
                                +
                                Validation rules
                                + +
                                + $address + +  : string +
                                +
                                The user address (street number, name, etc)
                                + +
                                + $address2 + +  : string +
                                +
                                The user address 2nd part (street number, name, more, etc)
                                + +
                                + $city + +  : string +
                                +
                                The user address city
                                + +
                                + $email + +  : string +
                                +
                                An RFC Valid Email
                                + +
                                + $firstname + +  : string +
                                +
                                First name
                                + +
                                + $label_type_support + +  : string +
                                +
                                The arcadia type support label
                                + +
                                + $lastname + +  : string +
                                +
                                Last name
                                + +
                                + $operation + +  : int +
                                +
                                The arcadia operation code
                                + +
                                + $order_date + +  : string +
                                +
                                The arcadia order date
                                + +
                                + $order_num + +  : int +
                                +
                                The arcadia order number
                                + +
                                + $package_unit_weight + +  : int +
                                +
                                The arcadia package unit weight
                                + +
                                + $phone + +  : string +
                                +
                                The user phone
                                + +
                                + $postcode + +  : string +
                                +
                                The user address postcode
                                + +
                                + $state_order + +  : int +
                                +
                                The arcadia state order
                                + +
                                + $support_code + +  : int +
                                +
                                The arcadia support code
                                + +
                                + __construct() + +  : mixed +
                                +
                                ArcadiaMailDefault
                                + +
                                + __get() + +  : mixed +
                                +
                                Generic accessor
                                + +
                                + __set() + +  : void +
                                +
                                Set prop
                                + +
                                + fill() + +  : void +
                                +
                                Fill data into this model +using validation rules
                                + +
                                + jsonSerialize() + +  : array<string|int, mixed> +
                                +
                                Serialize this object to an array
                                + +
                                + send() + +  : bool +
                                +
                                Send The actual mail
                                + +
                                + validateAllValues() + +  : array<string|int, mixed> +
                                +
                                Validate all model properties
                                + +
                                + + + + + + +
                                +

                                + Properties + +

                                +
                                +

                                + $address + + + +

                                + + + + + public + string + $address + + +

                                The account address (street number, name, build, flat number)

                                +
                                + +
                                + + + +
                                +
                                +

                                + $address2 + + + +

                                + + + + + public + string + $address2 + + +

                                The account phone (address complement)

                                +
                                + +
                                + + + +
                                +
                                +

                                + $city + + + +

                                + + + + + public + string + $city + + +

                                The account city name

                                +
                                + +
                                + + + +
                                +
                                +

                                + $email + + + +

                                + + + + + public + string + $email + + +

                                Must be a rfc valid email on a valid domain name

                                +
                                + +
                                + + + +
                                +
                                +

                                + $firstname + + + +

                                + + + + + public + string + $firstname + + +

                                The account first name

                                +
                                + +
                                + + + +
                                +
                                +

                                + $label_type_support + + + +

                                + + + + + public + string + $label_type_support + + +

                                The arcadia type support label

                                +
                                + +
                                + + + +
                                +
                                +

                                + $lastname + + + +

                                + + + + + public + string + $lastname + + +

                                The account last name

                                +
                                + +
                                + + + +
                                +
                                +

                                + $operation + + + +

                                + + + + + public + int + $operation + + +

                                The arcadia operation code

                                +
                                + +
                                + + + +
                                +
                                +

                                + $order_date + + + +

                                + + + + + public + string + $order_date + + +

                                The arcadia order date 'yyyy-mm-dd HH:ii:ss'

                                +
                                + +
                                + + + +
                                +
                                +

                                + $order_num + + + +

                                + + + + + public + int + $order_num + + +

                                The arcadia order number

                                +
                                + +
                                + + + +
                                +
                                +

                                + $package_unit_weight + + + +

                                + + + + + public + int + $package_unit_weight + + +

                                The arcadia package unit weight

                                +
                                + +
                                + + + +
                                +
                                +

                                + $phone + + + +

                                + + + + + public + string + $phone + + +

                                The account phone

                                +
                                + +
                                + + + +
                                +
                                +

                                + $postcode + + + +

                                + + + + + public + string + $postcode + + +

                                The account city postcode

                                +
                                + +
                                + + + +
                                + +
                                +

                                + $support_code + + + +

                                + + + + + public + int + $support_code + + +

                                The arcadia support code

                                +
                                + +
                                + + + +
                                +
                                +

                                + $modelFields + + + +

                                + + +

                                The crm customer fields

                                + + + protected + array<string|int, mixed> + $modelFields + = ['email', 'firstname', 'lastname', 'phone', 'address', 'address2', 'city', 'postcode', 'operation', 'support_code', 'label_type_support', 'order_date', 'order_num', 'state_order', 'package_unit_weight'] + + + + + +
                                +
                                +

                                + $validation + + + +

                                + + +

                                Validation rules

                                + + + protected + static array<string|int, mixed> + $validation + = ['email' => 'required|email', 'firstname' => 'required|string|min:2|max:255', 'lastname' => 'required|string|min:2|max:255', 'phone' => 'sometimes|string|min:10|max:255', 'address' => 'sometimes|string|max:255', 'address2' => 'sometimes|string|max:255', 'city' => 'sometimes|string|max:255', 'postcode' => 'sometimes|string|max:255', 'operation' => 'required|int', 'support_code' => 'required|int', 'label_type_support' => 'required|string|min:2|max:255', 'order_date' => 'required|date_format:Y/m/d H:i:s', 'order_num' => 'required|int', 'state_order' => ['required'], 'package_unit_weight' => 'required|int'] + + + + + +
                                +
                                +

                                + $address + + + +

                                + + +

                                The user address (street number, name, etc)

                                + + + private + string + $address + = null + +

                                Validate: sometimes,string

                                +

                                Min length NA +Max length 255 +Field Type varchar

                                +
                                + + + + +
                                +
                                +

                                + $address2 + + + +

                                + + +

                                The user address 2nd part (street number, name, more, etc)

                                + + + private + string + $address2 + = null + +

                                Validate: sometimes,string

                                +

                                Min length NA +Max length 255 +Field Type varchar

                                +
                                + + + + +
                                +
                                +

                                + $city + + + +

                                + + +

                                The user address city

                                + + + private + string + $city + = null + +

                                Validate: sometimes,string

                                +

                                Min length NA +Max length 255 +Field Type varchar

                                +
                                + + + + +
                                +
                                +

                                + $email + + + +

                                + + +

                                An RFC Valid Email

                                + + + private + string + $email + = null + +

                                Validate: rfc,dns,spoof,filter

                                +

                                Required +Min length N/A +Max length 255 +Field Type varchar

                                +
                                + + + + +
                                +
                                +

                                + $firstname + + + +

                                + + +

                                First name

                                + + + private + string + $firstname + = null + +

                                Required +Min length 2 +Max length 255 +Field Type varchar

                                +
                                + + + + +
                                +
                                +

                                + $label_type_support + + + +

                                + + +

                                The arcadia type support label

                                + + + private + string + $label_type_support + = null + +

                                Validate: string

                                +

                                Required

                                +
                                + + + + +
                                +
                                +

                                + $lastname + + + +

                                + + +

                                Last name

                                + + + private + string + $lastname + = null + +

                                Required +Min length 2 +Max length 255 +Field Type varchar

                                +
                                + + + + +
                                +
                                +

                                + $operation + + + +

                                + + +

                                The arcadia operation code

                                + + + private + int + $operation + = null + +

                                Validate: int

                                +

                                Required

                                +
                                + + + + +
                                +
                                +

                                + $order_date + + + +

                                + + +

                                The arcadia order date

                                + + + private + string + $order_date + = null + +

                                Validate: date

                                +

                                Required

                                +
                                + + + + +
                                +
                                +

                                + $order_num + + + +

                                + + +

                                The arcadia order number

                                + + + private + int + $order_num + = null + +

                                Validate: numeric,digits:9

                                +

                                Required

                                +
                                + + + + +
                                +
                                +

                                + $package_unit_weight + + + +

                                + + +

                                The arcadia package unit weight

                                + + + private + int + $package_unit_weight + = null + +

                                Validate: integer

                                +

                                Required

                                +
                                + + + + +
                                +
                                +

                                + $phone + + + +

                                + + +

                                The user phone

                                + + + private + string + $phone + = null + +

                                Validate: sometimes,string

                                +

                                Required +Min length NA +Max length 255 +Field Type varchar

                                +
                                + + + + +
                                +
                                +

                                + $postcode + + + +

                                + + +

                                The user address postcode

                                + + + private + string + $postcode + = null + +

                                Validate: string

                                +

                                Required +Min length NA +Max length 255 +Field Type varchar

                                +
                                + + + + +
                                +
                                +

                                + $state_order + + + +

                                + + +

                                The arcadia state order

                                + + + private + int + $state_order + = null + +

                                Validate: in ArcadiaOrderType::toValues()

                                +

                                Required

                                +
                                + + + + +
                                +
                                +

                                + $support_code + + + +

                                + + +

                                The arcadia support code

                                + + + private + int + $support_code + = null + +

                                Validate: int

                                +

                                Required

                                +
                                + + + + +
                                +
                                + +
                                +

                                + Methods + +

                                +
                                +

                                + __construct() + +

                                + + +

                                ArcadiaMailDefault

                                + + + public + __construct([array<string|int, mixed> $properties = [] ]) : mixed + + +
                                Parameters
                                +
                                +
                                + $properties + : array<string|int, mixed> + = []
                                +
                                + +
                                +
                                + + +
                                + Tags + +
                                +
                                +
                                + throws +
                                +
                                + ValidationException + +

                                If a field could not be validated.

                                +
                                + +
                                +
                                + +
                                Return values
                                + mixed + — + + +
                                +
                                +

                                + __get() + +

                                + + +

                                Generic accessor

                                + + + public + __get(string $field) : mixed + + +
                                Parameters
                                +
                                +
                                + $field + : string +
                                +
                                + +
                                +
                                + + + +
                                Return values
                                + mixed + — + + +
                                +
                                +

                                + __set() + +

                                + + +

                                Set prop

                                + + + public + __set(string $field, mixed $value) : void + + +
                                Parameters
                                +
                                +
                                + $field + : string +
                                +
                                + +
                                +
                                + $value + : mixed +
                                +
                                + +
                                +
                                + + +
                                + Tags + +
                                +
                                +
                                + throws +
                                +
                                + TypeError + +

                                If the field has an incorrect value.

                                +
                                + +
                                +
                                + throws +
                                +
                                + AccessError + +

                                If trying to set a value on a unknown property.

                                +
                                + +
                                +
                                + +
                                Return values
                                + void + — + + +
                                +
                                +

                                + fill() + +

                                + + +

                                Fill data into this model +using validation rules

                                + + + public + fill(array<string|int, mixed> $properties) : void + + +
                                Parameters
                                +
                                +
                                + $properties + : array<string|int, mixed> +
                                +
                                + +
                                +
                                + + +
                                + Tags + +
                                +
                                +
                                + throws +
                                +
                                + ValidationException + +

                                If a field could not be validated.

                                +
                                + +
                                +
                                + +
                                Return values
                                + void + — + + +
                                +
                                +

                                + jsonSerialize() + +

                                + + +

                                Serialize this object to an array

                                + + + public + jsonSerialize() : array<string|int, mixed> + + + + + +
                                Return values
                                + array<string|int, mixed> + — + + +
                                +
                                +

                                + send() + +

                                + + +

                                Send The actual mail

                                + + + public + send() : bool + + + + +
                                + Tags + +
                                +
                                +
                                + throws +
                                +
                                + ValidationException + +

                                If a field could not be validated.

                                +
                                + +
                                +
                                + throws +
                                +
                                + CrmException + +

                                If an error occurs on server side or on getting response.

                                +
                                + +
                                +
                                + throws +
                                +
                                + ApiErrorException + +

                                If any error or \LDC\LDCCRM\Enums\ApiError occurs. +Possibles are : - validationFailed, If provided data is wrong(CRM side).

                                +
                                + +
                                +
                                + +
                                Return values
                                + bool + — +

                                true if succeeded

                                +
                                + + +
                                +
                                +

                                + validateAllValues() + +

                                + + +

                                Validate all model properties

                                + + + protected + validateAllValues([array<string|int, mixed> $ignore = [] ]) : array<string|int, mixed> + + +
                                Parameters
                                +
                                +
                                + $ignore + : array<string|int, mixed> + = []
                                +
                                + +
                                +
                                + + +
                                + Tags + +
                                +
                                +
                                + throws +
                                +
                                + ValidationException + +

                                If a field could not be validated.

                                +
                                + +
                                +
                                + +
                                Return values
                                + array<string|int, mixed> + — +

                                the validated values

                                +
                                + + +
                                +
                                + + + + +
                                +
                                +
                                +
                                +

                                Search results

                                + +
                                +
                                +
                                  +
                                  +
                                  +
                                  +
                                  +
                                  + + +
                                  + + + + + + + + diff --git a/app/Lib/vendor/crm-client-3.0.6/docs/client-api/classes/LDC-LDCCRM-Models-ArcadiaMailGame.html b/app/Lib/vendor/crm-client-3.0.6/docs/client-api/classes/LDC-LDCCRM-Models-ArcadiaMailGame.html new file mode 100644 index 0000000..3b1e731 --- /dev/null +++ b/app/Lib/vendor/crm-client-3.0.6/docs/client-api/classes/LDC-LDCCRM-Models-ArcadiaMailGame.html @@ -0,0 +1,1922 @@ + + + + + CRM V2 + + + + + + + + + + + + + + + + + + + +
                                  +

                                  CRM V2

                                  + + + + + +
                                  + +
                                  +
                                  + + + + +
                                  + + +
                                  +

                                  + ArcadiaMailGame + + + extends CrmClientModel + + +
                                  + in package + +
                                  + + +

                                  + + + +

                                  This class represents the customer info with +the account validation status

                                  + + + +
                                  + Tags + +
                                  +
                                  +
                                  + category +
                                  +
                                  + +

                                  Api Models

                                  +
                                  + +
                                  +
                                  + subpackage +
                                  +
                                  + +

                                  models

                                  +
                                  + +
                                  +
                                  + author +
                                  +
                                  + +

                                  Jérémy Munsch jeremy.munsch@ldc.fr

                                  +
                                  + +
                                  +
                                  + + + + + + +

                                  + Table of Contents + +

                                  + +
                                  +
                                  + $address + +  : string +
                                  +
                                  + +
                                  + $address2 + +  : string +
                                  +
                                  + +
                                  + $city + +  : string +
                                  +
                                  + +
                                  + $code_on_pack + +  : string +
                                  +
                                  + +
                                  + $code_unique + +  : string +
                                  +
                                  + +
                                  + $email + +  : string +
                                  +
                                  + +
                                  + $firstname + +  : string +
                                  +
                                  + +
                                  + $label_type_support + +  : string +
                                  +
                                  + +
                                  + $lastname + +  : string +
                                  +
                                  + +
                                  + $operation + +  : int +
                                  +
                                  + +
                                  + $order_date + +  : string +
                                  +
                                  + +
                                  + $phone + +  : string +
                                  +
                                  + +
                                  + $postcode + +  : string +
                                  +
                                  + +
                                  + $support_code + +  : int +
                                  +
                                  + +
                                  + $modelFields + +  : array<string|int, mixed> +
                                  +
                                  The crm customer fields
                                  + +
                                  + $validation + +  : array<string|int, mixed> +
                                  +
                                  Validation rules
                                  + +
                                  + $address + +  : string +
                                  +
                                  The user address (street number, name, etc)
                                  + +
                                  + $address2 + +  : string +
                                  +
                                  The user address 2nd part (street number, name, more, etc)
                                  + +
                                  + $city + +  : string +
                                  +
                                  The user address city
                                  + +
                                  + $code_on_pack + +  : string +
                                  +
                                  The arcadia code on pack
                                  + +
                                  + $code_unique + +  : string +
                                  +
                                  The arcadia code unique
                                  + +
                                  + $email + +  : string +
                                  +
                                  An RFC Valid Email
                                  + +
                                  + $firstname + +  : string +
                                  +
                                  First name
                                  + +
                                  + $label_type_support + +  : string +
                                  +
                                  The arcadia type support label
                                  + +
                                  + $lastname + +  : string +
                                  +
                                  Last name
                                  + +
                                  + $operation + +  : int +
                                  +
                                  The arcadia operation code
                                  + +
                                  + $order_date + +  : string +
                                  +
                                  The arcadia order date
                                  + +
                                  + $phone + +  : string +
                                  +
                                  The user phone
                                  + +
                                  + $postcode + +  : string +
                                  +
                                  The user address postcode
                                  + +
                                  + $support_code + +  : int +
                                  +
                                  The arcadia support code
                                  + +
                                  + __construct() + +  : mixed +
                                  +
                                  ArcadiaMailGame
                                  + +
                                  + __set() + +  : void +
                                  +
                                  Set prop
                                  + +
                                  + fill() + +  : void +
                                  +
                                  Fill data into this model +using validation rules
                                  + +
                                  + jsonSerialize() + +  : array<string|int, mixed> +
                                  +
                                  Serialize this object to an array
                                  + +
                                  + send() + +  : bool +
                                  +
                                  Send The actual mail
                                  + +
                                  + + + + + + +
                                  +

                                  + Properties + +

                                  +
                                  +

                                  + $address + + + +

                                  + + + + + public + string + $address + + +

                                  The account address (street number, name, build, flat number)

                                  +
                                  + +
                                  + + + +
                                  +
                                  +

                                  + $address2 + + + +

                                  + + + + + public + string + $address2 + + +

                                  The account phone (address complement)

                                  +
                                  + +
                                  + + + +
                                  +
                                  +

                                  + $city + + + +

                                  + + + + + public + string + $city + + +

                                  The account city name

                                  +
                                  + +
                                  + + + +
                                  +
                                  +

                                  + $code_on_pack + + + +

                                  + + + + + public + string + $code_on_pack + + +

                                  The arcadia code on pack

                                  +
                                  + +
                                  + + + +
                                  +
                                  +

                                  + $code_unique + + + +

                                  + + + + + public + string + $code_unique + + +

                                  The arcadia code unique

                                  +
                                  + +
                                  + + + +
                                  +
                                  +

                                  + $email + + + +

                                  + + + + + public + string + $email + + +

                                  Must be a rfc valid email on a valid domain name

                                  +
                                  + +
                                  + + + +
                                  +
                                  +

                                  + $firstname + + + +

                                  + + + + + public + string + $firstname + + +

                                  The account first name

                                  +
                                  + +
                                  + + + +
                                  +
                                  +

                                  + $label_type_support + + + +

                                  + + + + + public + string + $label_type_support + + +

                                  The arcadia type support label

                                  +
                                  + +
                                  + + + +
                                  +
                                  +

                                  + $lastname + + + +

                                  + + + + + public + string + $lastname + + +

                                  The account last name

                                  +
                                  + +
                                  + + + +
                                  +
                                  +

                                  + $operation + + + +

                                  + + + + + public + int + $operation + + +

                                  The arcadia operation code +Validate: int +Required

                                  +
                                  + +
                                  + + + +
                                  +
                                  +

                                  + $order_date + + + +

                                  + + + + + public + string + $order_date + + +

                                  The arcadia order date 'yyyy-mm-dd HH:ii:ss'

                                  +
                                  + +
                                  + + + +
                                  +
                                  +

                                  + $phone + + + +

                                  + + + + + public + string + $phone + + +

                                  The account phone

                                  +
                                  + +
                                  + + + +
                                  +
                                  +

                                  + $postcode + + + +

                                  + + + + + public + string + $postcode + + +

                                  The account city postcode

                                  +
                                  + +
                                  + + + +
                                  +
                                  +

                                  + $support_code + + + +

                                  + + + + + public + int + $support_code + + +

                                  The arcadia support code

                                  +
                                  + +
                                  + + + +
                                  +
                                  +

                                  + $modelFields + + + +

                                  + + +

                                  The crm customer fields

                                  + + + protected + array<string|int, mixed> + $modelFields + = ['email', 'firstname', 'lastname', 'phone', 'address', 'address2', 'city', 'postcode', 'operation', 'support_code', 'label_type_support', 'order_date', 'code_unique', 'code_on_pack'] + + + + + +
                                  +
                                  +

                                  + $validation + + + +

                                  + + +

                                  Validation rules

                                  + + + protected + static array<string|int, mixed> + $validation + = ['email' => 'required|email', 'firstname' => 'required|string|min:2|max:255', 'lastname' => 'required|string|min:2|max:255', 'phone' => 'sometimes|string|min:10|max:255', 'address' => 'sometimes|string|max:255', 'address2' => 'sometimes|string|max:255', 'city' => 'sometimes|string|max:255', 'postcode' => 'sometimes|string|max:255', 'operation' => 'required|int', 'support_code' => 'required|int', 'label_type_support' => 'required|string|min:2|max:255', 'order_date' => 'required|date_format:Y/m/d H:i:s', 'code_unique' => 'required|string', 'code_on_pack' => 'sometimes|string'] + + + + + +
                                  +
                                  +

                                  + $address + + + +

                                  + + +

                                  The user address (street number, name, etc)

                                  + + + private + string + $address + = null + +

                                  Validate: sometimes,string

                                  +

                                  Min length NA +Max length 255 +Field Type varchar

                                  +
                                  + + + + +
                                  +
                                  +

                                  + $address2 + + + +

                                  + + +

                                  The user address 2nd part (street number, name, more, etc)

                                  + + + private + string + $address2 + = null + +

                                  Validate: sometimes,string

                                  +

                                  Min length NA +Max length 255 +Field Type varchar

                                  +
                                  + + + + +
                                  +
                                  +

                                  + $city + + + +

                                  + + +

                                  The user address city

                                  + + + private + string + $city + = null + +

                                  Validate: sometimes,string

                                  +

                                  Min length NA +Max length 255 +Field Type varchar

                                  +
                                  + + + + +
                                  +
                                  +

                                  + $code_on_pack + + + +

                                  + + +

                                  The arcadia code on pack

                                  + + + private + string + $code_on_pack + = null + +

                                  Validate: sometimes

                                  +

                                  Required

                                  +
                                  + + + + +
                                  +
                                  +

                                  + $code_unique + + + +

                                  + + +

                                  The arcadia code unique

                                  + + + private + string + $code_unique + = null + +

                                  Validate: string

                                  +

                                  Required

                                  +
                                  + + + + +
                                  +
                                  +

                                  + $email + + + +

                                  + + +

                                  An RFC Valid Email

                                  + + + private + string + $email + = null + +

                                  Validate: rfc,dns,spoof,filter

                                  +

                                  Required +Min length N/A +Max length 255 +Field Type varchar

                                  +
                                  + + + + +
                                  +
                                  +

                                  + $firstname + + + +

                                  + + +

                                  First name

                                  + + + private + string + $firstname + = null + +

                                  Required +Min length 2 +Max length 255 +Field Type varchar

                                  +
                                  + + + + +
                                  +
                                  +

                                  + $label_type_support + + + +

                                  + + +

                                  The arcadia type support label

                                  + + + private + string + $label_type_support + = null + +

                                  Validate: string

                                  +

                                  Required

                                  +
                                  + + + + +
                                  +
                                  +

                                  + $lastname + + + +

                                  + + +

                                  Last name

                                  + + + private + string + $lastname + = null + +

                                  Required +Min length 2 +Max length 255 +Field Type varchar

                                  +
                                  + + + + +
                                  +
                                  +

                                  + $operation + + + +

                                  + + +

                                  The arcadia operation code

                                  + + + private + int + $operation + = null + +

                                  Validate: int

                                  +

                                  Required

                                  +
                                  + + + + +
                                  +
                                  +

                                  + $order_date + + + +

                                  + + +

                                  The arcadia order date

                                  + + + private + string + $order_date + = null + +

                                  Validate: date

                                  +

                                  Required

                                  +
                                  + + + + +
                                  +
                                  +

                                  + $phone + + + +

                                  + + +

                                  The user phone

                                  + + + private + string + $phone + = null + +

                                  Validate: sometimes,string

                                  +

                                  Required +Min length NA +Max length 255 +Field Type varchar

                                  +
                                  + + + + +
                                  +
                                  +

                                  + $postcode + + + +

                                  + + +

                                  The user address postcode

                                  + + + private + string + $postcode + = null + +

                                  Validate: string

                                  +

                                  Required +Min length NA +Max length 255 +Field Type varchar

                                  +
                                  + + + + +
                                  +
                                  +

                                  + $support_code + + + +

                                  + + +

                                  The arcadia support code

                                  + + + private + int + $support_code + = null + +

                                  Validate: int

                                  +

                                  Required

                                  +
                                  + + + + +
                                  +
                                  + +
                                  +

                                  + Methods + +

                                  +
                                  +

                                  + __construct() + +

                                  + + +

                                  ArcadiaMailGame

                                  + + + public + __construct([array<string|int, mixed> $properties = [] ]) : mixed + + +
                                  Parameters
                                  +
                                  +
                                  + $properties + : array<string|int, mixed> + = []
                                  +
                                  + +
                                  +
                                  + + +
                                  + Tags + +
                                  +
                                  +
                                  + throws +
                                  +
                                  + ValidationException + +

                                  If a field could not be validated.

                                  +
                                  + +
                                  +
                                  + +
                                  Return values
                                  + mixed + — + + +
                                  +
                                  +

                                  + __set() + +

                                  + + +

                                  Set prop

                                  + + + public + __set(string $field, mixed $value) : void + + +
                                  Parameters
                                  +
                                  +
                                  + $field + : string +
                                  +
                                  + +
                                  +
                                  + $value + : mixed +
                                  +
                                  + +
                                  +
                                  + + +
                                  + Tags + +
                                  +
                                  +
                                  + throws +
                                  +
                                  + TypeError + +

                                  If the field has an incorrect value.

                                  +
                                  + +
                                  +
                                  + throws +
                                  +
                                  + AccessError + +

                                  If trying to set a value on a unknown property.

                                  +
                                  + +
                                  +
                                  + +
                                  Return values
                                  + void + — + + +
                                  +
                                  +

                                  + fill() + +

                                  + + +

                                  Fill data into this model +using validation rules

                                  + + + public + fill(array<string|int, mixed> $properties) : void + + +
                                  Parameters
                                  +
                                  +
                                  + $properties + : array<string|int, mixed> +
                                  +
                                  + +
                                  +
                                  + + +
                                  + Tags + +
                                  +
                                  +
                                  + throws +
                                  +
                                  + ValidationException + +

                                  If a field could not be validated.

                                  +
                                  + +
                                  +
                                  + +
                                  Return values
                                  + void + — + + +
                                  +
                                  +

                                  + jsonSerialize() + +

                                  + + +

                                  Serialize this object to an array

                                  + + + public + jsonSerialize() : array<string|int, mixed> + + + + + +
                                  Return values
                                  + array<string|int, mixed> + — + + +
                                  +
                                  +

                                  + send() + +

                                  + + +

                                  Send The actual mail

                                  + + + public + send() : bool + + + + +
                                  + Tags + +
                                  +
                                  +
                                  + throws +
                                  +
                                  + CrmException + +

                                  If an error occurs on server side or on getting response.

                                  +
                                  + +
                                  +
                                  + throws +
                                  +
                                  + ApiErrorException + +

                                  If any error or \LDC\LDCCRM\Enums\ApiError occurs. +Possibles are : - validationFailed, If provided data is wrong(CRM side).

                                  +
                                  + +
                                  +
                                  + +
                                  Return values
                                  + bool + — +

                                  true if succeeded

                                  +
                                  + + +
                                  +
                                  + + + + +
                                  +
                                  +
                                  +
                                  +

                                  Search results

                                  + +
                                  +
                                  +
                                    +
                                    +
                                    +
                                    +
                                    +
                                    + + +
                                    + + + + + + + + diff --git a/app/Lib/vendor/crm-client-3.0.6/docs/client-api/classes/LDC-LDCCRM-Models-Customer.html b/app/Lib/vendor/crm-client-3.0.6/docs/client-api/classes/LDC-LDCCRM-Models-Customer.html new file mode 100644 index 0000000..12e4891 --- /dev/null +++ b/app/Lib/vendor/crm-client-3.0.6/docs/client-api/classes/LDC-LDCCRM-Models-Customer.html @@ -0,0 +1,2936 @@ + + + + + CRM V2 + + + + + + + + + + + + + + + + + + + +
                                    +

                                    CRM V2

                                    + + + + + +
                                    + +
                                    +
                                    + + + + +
                                    + + +
                                    +

                                    + Customer + + + extends CrmClientModel + + +
                                    + in package + +
                                    + + +

                                    + + + +

                                    This class represents the customer info with +the account validation status. You can use it as +a standalone class but beware of catching exceptions

                                    + +

                                    Be warned that on server side data is normalized

                                    +
                                      +
                                    • firstname and lastname are 'capitalized'
                                    • +
                                    • fields are trimmed
                                    • +
                                    • non numeric chars are removed from postcode
                                    • +
                                    +
                                    + + +
                                    + Tags + +
                                    +
                                    +
                                    + example +
                                    +
                                    + +

                                    examples/CustomerExample.php

                                    +
                                    + +
                                    +
                                    + category +
                                    +
                                    + +

                                    Api Models

                                    +
                                    + +
                                    +
                                    + subpackage +
                                    +
                                    + +

                                    models

                                    +
                                    + +
                                    +
                                    + author +
                                    +
                                    + +

                                    Jérémy Munsch jeremy.munsch@ldc.fr

                                    +
                                    + +
                                    +
                                    + + + + + + +

                                    + Table of Contents + +

                                    + +
                                    +
                                    + $address + +  : string +
                                    +
                                    + +
                                    + $address2 + +  : string +
                                    +
                                    + +
                                    + $birth_date + +  : string +
                                    +
                                    + +
                                    + $city + +  : string +
                                    +
                                    + +
                                    + $country + +  : Country +
                                    +
                                    + +
                                    + $email + +  : string +
                                    +
                                    + +
                                    + $firstname + +  : string +
                                    +
                                    + +
                                    + $hashcode + +  : string +
                                    +
                                    + +
                                    + $last_connection + +  : string +
                                    +
                                    + +
                                    + $lastname + +  : string +
                                    +
                                    + +
                                    + $opt_in + +  : bool +
                                    +
                                    + +
                                    + $password + +  : string +
                                    +
                                    + +
                                    + $phone + +  : string +
                                    +
                                    + +
                                    + $postcode + +  : string +
                                    +
                                    + +
                                    + $status + +  : bool +
                                    +
                                    + +
                                    + $invisibleFields + +  : array<string|int, mixed> +
                                    +
                                    The crm customer fields +the should not be visible
                                    + +
                                    + $modelFields + +  : array<string|int, mixed> +
                                    +
                                    The crm customer fields
                                    + +
                                    + $validation + +  : array<string|int, mixed> +
                                    +
                                    Validation rules
                                    + +
                                    + $address + +  : string +
                                    +
                                    The user address (street number, name, etc)
                                    + +
                                    + $address2 + +  : string +
                                    +
                                    The user address 2nd part (street number, name, more, etc)
                                    + +
                                    + $birth_date + +  : string +
                                    +
                                    Birth date
                                    + +
                                    + $city + +  : string +
                                    +
                                    The user address city
                                    + +
                                    + $country + +  : Country +
                                    +
                                    The user address postcode
                                    + +
                                    + $email + +  : string +
                                    +
                                    An RFC Valid Email
                                    + +
                                    + $firstname + +  : string +
                                    +
                                    First name
                                    + +
                                    + $hashcode + +  : string +
                                    +
                                    The user hashcode, this is link with the customer and the brand it is related to +It is used to identify the customer itself.
                                    + +
                                    + $last_connection + +  : string +
                                    +
                                    The last time the account was connected
                                    + +
                                    + $lastname + +  : string +
                                    +
                                    Last name
                                    + +
                                    + $opt_in + +  : bool +
                                    +
                                    The user optin choice
                                    + +
                                    + $password + +  : string +
                                    +
                                    The user password +This is set only when creating a user +Otherwise it has to be set to null
                                    + +
                                    + $phone + +  : string +
                                    +
                                    The user phone
                                    + +
                                    + $postcode + +  : string +
                                    +
                                    The user address postcode
                                    + +
                                    + $status + +  : bool +
                                    +
                                    Is the account activated ?
                                    + +
                                    + __construct() + +  : mixed +
                                    +
                                    Customer
                                    + +
                                    + __get() + +  : mixed|null +
                                    +
                                    Generic accessor
                                    + +
                                    + __set() + +  : void +
                                    +
                                    Set prop on the model.
                                    + +
                                    + activate() + +  : bool +
                                    +
                                    Active the customer on CRM.
                                    + +
                                    + delete() + +  : bool +
                                    +
                                    Removes the customer from CRM.
                                    + +
                                    + fill() + +  : void +
                                    +
                                    Fill values into model using validation rules.
                                    + +
                                    + find() + +  : self|null +
                                    +
                                    Find a customer using its hashcode in the crm
                                    + +
                                    + findWithEmail() + +  : self|null +
                                    +
                                    Find a customer using its email in the crm +This is an alias of Customer::find()
                                    + +
                                    + jsonSerialize() + +  : array<string|int, mixed> +
                                    +
                                    Serialize this object to an array
                                    + +
                                    + login() + +  : bool +
                                    +
                                    Test customer credentials
                                    + +
                                    + save() + +  : bool +
                                    +
                                    Save the customer on CRM.
                                    + +
                                    + toggleOptin() + +  : bool +
                                    +
                                    Toggle the account optin value in the crm
                                    + +
                                    + validateAllValues() + +  : array<string|int, mixed> +
                                    +
                                    Validate all model properties
                                    + +
                                    + store() + +  : bool +
                                    +
                                    Calls api store customer method
                                    + +
                                    + update() + +  : bool +
                                    +
                                    Calls api update customer method
                                    + +
                                    + + + + + + +
                                    +

                                    + Properties + +

                                    +
                                    +

                                    + $address + + + +

                                    + + + + + public + string + $address + + +

                                    The account address (street number, name, build, flat number)

                                    +
                                    + +
                                    + + + +
                                    +
                                    +

                                    + $address2 + + + +

                                    + + + + + public + string + $address2 + + +

                                    The account phone (address complement)

                                    +
                                    + +
                                    + + + +
                                    +
                                    +

                                    + $birth_date + + + +

                                    + + + + + public + string + $birth_date + + +

                                    The account birth date 'yyyy-mm-dd'

                                    +
                                    + +
                                    + + + +
                                    +
                                    +

                                    + $city + + + +

                                    + + + + + public + string + $city + + +

                                    The account city name

                                    +
                                    + +
                                    + + + +
                                    +
                                    +

                                    + $country + + + +

                                    + + + + + public + Country + $country + + +

                                    The account country residence

                                    +
                                    + +
                                    + + + +
                                    +
                                    +

                                    + $email + + + +

                                    + + + + + public + string + $email + + +

                                    Must be a rfc valid email on a valid domain name

                                    +
                                    + +
                                    + + + +
                                    +
                                    +

                                    + $firstname + + + +

                                    + + + + + public + string + $firstname + + +

                                    The account first name

                                    +
                                    + +
                                    + + + +
                                    +
                                    +

                                    + $hashcode + + + +

                                    + + + + + public + string + $hashcode + + +

                                    The crm hashcode this is a readonly field

                                    +
                                    + +
                                    + + + +
                                    +
                                    +

                                    + $last_connection + + + +

                                    + + + + + public + string + $last_connection + + +

                                    the last time user was connected 'yyyy-mm-dd HH:ii:ss'

                                    +
                                    + +
                                    + + + +
                                    +
                                    +

                                    + $lastname + + + +

                                    + + + + + public + string + $lastname + + +

                                    The account last name

                                    +
                                    + +
                                    + + + +
                                    +
                                    +

                                    + $opt_in + + + +

                                    + + + + + public + bool + $opt_in + + +

                                    true if the account is opt in

                                    +
                                    + +
                                    + + + +
                                    +
                                    +

                                    + $password + + + +

                                    + + + + + public + string + $password + + +

                                    Required only on create, must have upper and lowers chars, +at least 1 number, at leat 1 upper char, at least 1 lower char and +at leat 1 special char

                                    +
                                    + +
                                    + + + +
                                    +
                                    +

                                    + $phone + + + +

                                    + + + + + public + string + $phone + + +

                                    The account phone

                                    +
                                    + +
                                    + + + +
                                    +
                                    +

                                    + $postcode + + + +

                                    + + + + + public + string + $postcode + + +

                                    The account city postcode

                                    +
                                    + +
                                    + + + +
                                    +
                                    +

                                    + $status + + + +

                                    + + + + + public + bool + $status + + +

                                    true if the account is activated

                                    +
                                    + +
                                    + + + +
                                    +
                                    +

                                    + $invisibleFields + + + +

                                    + + +

                                    The crm customer fields +the should not be visible

                                    + + + protected + array<string|int, mixed> + $invisibleFields + = ['password'] + + + + + +
                                    +
                                    +

                                    + $modelFields + + + +

                                    + + +

                                    The crm customer fields

                                    + + + protected + array<string|int, mixed> + $modelFields + = ['hashcode', 'email', 'firstname', 'password', 'lastname', 'birth_date', 'phone', 'address', 'address2', 'city', 'postcode', 'country', 'opt_in', 'status', 'last_connection'] + + + + + +
                                    +
                                    +

                                    + $validation + + + +

                                    + + +

                                    Validation rules

                                    + + + protected + static array<string|int, mixed> + $validation + = ['hashcode' => 'required|uuid', 'email' => 'required|email', 'firstname' => 'required|string|min:1|max:255', 'lastname' => 'required|string|min:1|max:255', 'password' => 'required|min:8|max:255|mixedCase|containDigit|containSymbol', 'birth_date' => 'required|date_format:Y-m-d', 'phone' => 'sometimes|nullable|string|max:255', 'address' => 'sometimes|string|max:255', 'address2' => 'sometimes|string|max:255', 'city' => 'sometimes|string|min:2|max:255', 'postcode' => 'sometimes|string|max:255', 'country' => ['sometimes'], 'opt_in' => 'required|bool', 'status' => 'required|bool', 'last_connection' => 'sometimes|date'] + + + + + +
                                    +
                                    +

                                    + $address + + + +

                                    + + +

                                    The user address (street number, name, etc)

                                    + + + private + string + $address + = null + +

                                    Validate: sometimes,string

                                    +

                                    Min length NA +Max length 255 +Field Type varchar

                                    +
                                    + + + + +
                                    +
                                    +

                                    + $address2 + + + +

                                    + + +

                                    The user address 2nd part (street number, name, more, etc)

                                    + + + private + string + $address2 + = null + +

                                    Validate: sometimes,string

                                    +

                                    Min length NA +Max length 255 +Field Type varchar

                                    +
                                    + + + + +
                                    +
                                    +

                                    + $birth_date + + + +

                                    + + +

                                    Birth date

                                    + + + private + string + $birth_date + = null + +

                                    Validate: date_format:Y-m-d

                                    +

                                    Required +Field Type Date

                                    +
                                    + + + + +
                                    +
                                    +

                                    + $city + + + +

                                    + + +

                                    The user address city

                                    + + + private + string + $city + = null + +

                                    Validate: sometimes,string

                                    +

                                    Min length NA +Max length 255 +Field Type varchar

                                    +
                                    + + + + +
                                    +
                                    +

                                    + $country + + + +

                                    + + +

                                    The user address postcode

                                    + + + private + Country + $country + = null + +

                                    Validate: sometimes, in Country::toValues()

                                    +

                                    Required +Field Type tinyInt

                                    +
                                    + + + + +
                                    +
                                    +

                                    + $email + + + +

                                    + + +

                                    An RFC Valid Email

                                    + + + private + string + $email + = null + +

                                    Validate: rfc,dns,spoof,filter

                                    +

                                    Required +Min length N/A +Max length 255 +Field Type varchar

                                    +
                                    + + + + +
                                    +
                                    +

                                    + $firstname + + + +

                                    + + +

                                    First name

                                    + + + private + string + $firstname + = null + +

                                    Required +Min length 2 +Max length 255 +Field Type varchar

                                    +
                                    + + + + +
                                    +
                                    +

                                    + $hashcode + + + +

                                    + + +

                                    The user hashcode, this is link with the customer and the brand it is related to +It is used to identify the customer itself.

                                    + + + private + string + $hashcode + + +

                                    Validate: UUID, in customer_infos

                                    +

                                    Required +Min length 36 +Max length 36 +Field Type varchar

                                    +
                                    + + + + +
                                    +
                                    +

                                    + $last_connection + + + +

                                    + + +

                                    The last time the account was connected

                                    + + + private + string + $last_connection + = null + +

                                    This field is read only

                                    +
                                    + + + + +
                                    +
                                    +

                                    + $lastname + + + +

                                    + + +

                                    Last name

                                    + + + private + string + $lastname + = null + +

                                    Required +Min length 2 +Max length 255 +Field Type varchar

                                    +
                                    + + + + +
                                    +
                                    +

                                    + $opt_in + + + +

                                    + + +

                                    The user optin choice

                                    + + + private + bool + $opt_in + = false + +

                                    Validate: boolean

                                    +

                                    Required +Field Type TinyInt

                                    +
                                    + + + + +
                                    +
                                    +

                                    + $password + + + +

                                    + + +

                                    The user password +This is set only when creating a user +Otherwise it has to be set to null

                                    + + + private + string + $password + = null + +

                                    Validate: case_diff,numbers,letters,symbols,min:8

                                    +

                                    Min length 8 +Max length 255 +Field Type varchar

                                    +
                                    + + + + +
                                    +
                                    +

                                    + $phone + + + +

                                    + + +

                                    The user phone

                                    + + + private + string + $phone + = null + +

                                    Validate: sometimes,string

                                    +

                                    Required +Min length NA +Max length 255 +Field Type varchar

                                    +
                                    + + + + +
                                    +
                                    +

                                    + $postcode + + + +

                                    + + +

                                    The user address postcode

                                    + + + private + string + $postcode + = null + +

                                    Validate: string

                                    +

                                    Required +Min length NA +Max length 255 +Field Type varchar

                                    +
                                    + + + + +
                                    +
                                    +

                                    + $status + + + +

                                    + + +

                                    Is the account activated ?

                                    + + + private + bool + $status + = false + +

                                    This field is read only

                                    +
                                    + + + + +
                                    +
                                    + +
                                    +

                                    + Methods + +

                                    +
                                    +

                                    + __construct() + +

                                    + + +

                                    Customer

                                    + + + public + __construct([array<string|int, mixed> $properties = [] ]) : mixed + + +
                                    Parameters
                                    +
                                    +
                                    + $properties + : array<string|int, mixed> + = []
                                    +
                                    + +
                                    +
                                    + + +
                                    + Tags + +
                                    +
                                    +
                                    + throws +
                                    +
                                    + ValidationException + +

                                    If a field could not be validated.

                                    +
                                    + +
                                    +
                                    + +
                                    Return values
                                    + mixed + — + + +
                                    +
                                    +

                                    + __get() + +

                                    + + +

                                    Generic accessor

                                    + + + public + __get(string $field) : mixed|null + + +
                                    Parameters
                                    +
                                    +
                                    + $field + : string +
                                    +
                                    + +
                                    +
                                    + + + +
                                    Return values
                                    + mixed|null + — +

                                    Returns null if the property was not found any way.

                                    +
                                    + + +
                                    +
                                    +

                                    + __set() + +

                                    + + +

                                    Set prop on the model.

                                    + + + public + __set(string $field, mixed $value) : void + + +
                                    Parameters
                                    +
                                    +
                                    + $field + : string +
                                    +
                                    + +
                                    +
                                    + $value + : mixed +
                                    +
                                    + +
                                    +
                                    + + +
                                    + Tags + +
                                    +
                                    +
                                    + throws +
                                    +
                                    + ValidationException + +

                                    If a field could not be validated.

                                    +
                                    + +
                                    +
                                    + throws +
                                    +
                                    + AccessError + +

                                    If trying to set a value on a unknown property.

                                    +
                                    + +
                                    +
                                    + +
                                    Return values
                                    + void + — + + +
                                    +
                                    +

                                    + activate() + +

                                    + + +

                                    Active the customer on CRM.

                                    + + + public + activate() : bool + + + + +
                                    + Tags + +
                                    +
                                    +
                                    + throws +
                                    +
                                    + ValidationException + +

                                    If a customer's hashcode could not be validated.

                                    +
                                    + +
                                    +
                                    + throws +
                                    +
                                    + CrmException + +

                                    If an error occurs on server side or on getting response.

                                    +
                                    + +
                                    +
                                    + throws +
                                    +
                                    + ApiErrorException + +

                                    If any error or \LDC\LDCCRM\Enums\ApiError occurs. +Possibles are : - modelNotFound, If this customer hashcode could not be found. +- customerAlreadyActive, It the customer is already activated.

                                    +
                                    + +
                                    +
                                    + phpcs:ignore +
                                    +
                                    + +

                                    Squiz.Commenting.FunctionCommentThrowTag.WrongNumber

                                    +
                                    + +
                                    +
                                    + +
                                    Return values
                                    + bool + — +

                                    true if succeeded

                                    +
                                    + + +
                                    +
                                    +

                                    + delete() + +

                                    + + +

                                    Removes the customer from CRM.

                                    + + + public + delete() : bool + + + + +
                                    + Tags + +
                                    +
                                    +
                                    + throws +
                                    +
                                    + ValidationException + +

                                    If a field could not be validated.

                                    +
                                    + +
                                    +
                                    + throws +
                                    +
                                    + CrmException + +

                                    If an error occurs on server side or on getting response.

                                    +
                                    + +
                                    +
                                    + throws +
                                    +
                                    + ApiErrorException + +

                                    If any error or \LDC\LDCCRM\Enums\ApiError occurs. +Possibles are : - modelNotFound, If this customer hashcode could not be found.

                                    +
                                    + +
                                    +
                                    + phpcs:ignore +
                                    +
                                    + +

                                    Squiz.Commenting.FunctionCommentThrowTag.WrongNumber

                                    +
                                    + +
                                    +
                                    + +
                                    Return values
                                    + bool + — +

                                    true if succeeded

                                    +
                                    + + +
                                    +
                                    +

                                    + fill() + +

                                    + + +

                                    Fill values into model using validation rules.

                                    + + + public + fill(array<string|int, mixed> $properties) : void + + +
                                    Parameters
                                    +
                                    +
                                    + $properties + : array<string|int, mixed> +
                                    +
                                    + +
                                    +
                                    + + +
                                    + Tags + +
                                    +
                                    +
                                    + throws +
                                    +
                                    + ValidationException + +

                                    If a field could not be validated.

                                    +
                                    + +
                                    +
                                    + +
                                    Return values
                                    + void + — + + +
                                    +
                                    +

                                    + find() + +

                                    + + +

                                    Find a customer using its hashcode in the crm

                                    + + + public + static find(string $hashcode) : self|null + + +
                                    Parameters
                                    +
                                    +
                                    + $hashcode + : string +
                                    +
                                    + +
                                    +
                                    + + +
                                    + Tags + +
                                    +
                                    +
                                    + throws +
                                    +
                                    + CrmException + +

                                    If an error occurs on server side or on getting response.

                                    +
                                    + +
                                    +
                                    + throws +
                                    +
                                    + ApiErrorException + +

                                    If any error or \LDC\LDCCRM\Enums\ApiError occurs.

                                    +
                                    + +
                                    +
                                    + phpcs:ignore +
                                    +
                                    + +

                                    Squiz.Commenting.FunctionCommentThrowTag.WrongNumber

                                    +
                                    + +
                                    +
                                    + +
                                    Return values
                                    + self|null + — +

                                    Return null if the customer was not found

                                    +
                                    + + +
                                    +
                                    +

                                    + findWithEmail() + +

                                    + + +

                                    Find a customer using its email in the crm +This is an alias of Customer::find()

                                    + + + public + static findWithEmail(string $email) : self|null + + +
                                    Parameters
                                    +
                                    +
                                    + $email + : string +
                                    +
                                    + +
                                    +
                                    + + +
                                    + Tags + +
                                    +
                                    +
                                    + throws +
                                    +
                                    + CrmException + +

                                    If an error occurs on server side or on getting response.

                                    +
                                    + +
                                    +
                                    + throws +
                                    +
                                    + ApiErrorException + +

                                    If any error or \LDC\LDCCRM\Enums\ApiError occurs.

                                    +
                                    + +
                                    +
                                    + phpcs:ignore +
                                    +
                                    + +

                                    Squiz.Commenting.FunctionCommentThrowTag.WrongNumber

                                    +
                                    + +
                                    +
                                    + +
                                    Return values
                                    + self|null + — + + +
                                    +
                                    +

                                    + jsonSerialize() + +

                                    + + +

                                    Serialize this object to an array

                                    + + + public + jsonSerialize() : array<string|int, mixed> + + + + + +
                                    Return values
                                    + array<string|int, mixed> + — + + +
                                    +
                                    +

                                    + login() + +

                                    + + +

                                    Test customer credentials

                                    + + + public + static login(string $email, string $password) : bool + + +
                                    Parameters
                                    +
                                    +
                                    + $email + : string +
                                    +
                                    + +
                                    +
                                    + $password + : string +
                                    +
                                    + +
                                    +
                                    + + +
                                    + Tags + +
                                    +
                                    +
                                    + throws +
                                    +
                                    + ValidationException + +

                                    If a customer's email could not be validated.

                                    +
                                    + +
                                    +
                                    + throws +
                                    +
                                    + CrmException + +

                                    If an error occurs on server side or on getting response.

                                    +
                                    + +
                                    +
                                    + throws +
                                    +
                                    + ApiErrorException + +

                                    If any error or \LDC\LDCCRM\Enums\ApiError occurs. +Possibles are : - authFailed, If credentials are not valid. +- customerNotActivated, If the account is not activated.

                                    +
                                    + +
                                    +
                                    + phpcs:ignore +
                                    +
                                    + +

                                    Squiz.Commenting.FunctionCommentThrowTag.WrongNumber

                                    +
                                    + +
                                    +
                                    + +
                                    Return values
                                    + bool + — + + +
                                    +
                                    +

                                    + save() + +

                                    + + +

                                    Save the customer on CRM.

                                    + + + public + save() : bool + + + + +
                                    + Tags + +
                                    +
                                    +
                                    + throws +
                                    +
                                    + ValidationException + +

                                    If a field could not be validated.

                                    +
                                    + +
                                    +
                                    + throws +
                                    +
                                    + CrmException + +

                                    If an error occurs on server side or on getting response.

                                    +
                                    + +
                                    +
                                    + throws +
                                    +
                                    + ApiErrorException + +

                                    If any error or \LDC\LDCCRM\Enums\ApiError occurs. +Possibles are : - validationFailed, If provided data is wrong(CRM side). +- modelNotFound, If this customer hashcode could not be found (new customers only).

                                    +
                                    + +
                                    +
                                    + phpcs:ignore +
                                    +
                                    + +

                                    Squiz.Commenting.FunctionCommentThrowTag.WrongNumber

                                    +
                                    + +
                                    +
                                    + +
                                    Return values
                                    + bool + — +

                                    True if save was successfull.

                                    +
                                    + + +
                                    +
                                    +

                                    + toggleOptin() + +

                                    + + +

                                    Toggle the account optin value in the crm

                                    + + + public + toggleOptin() : bool + + + + +
                                    + Tags + +
                                    +
                                    +
                                    + throws +
                                    +
                                    + ValidationException + +

                                    If a field could not be validated.

                                    +
                                    + +
                                    +
                                    + throws +
                                    +
                                    + CrmException + +

                                    If an error occurs on server side or on getting response.

                                    +
                                    + +
                                    +
                                    + throws +
                                    +
                                    + ApiErrorException + +

                                    If any error or \LDC\LDCCRM\Enums\ApiError occurs. +Possibles are : - modelNotFound, If this customer hashcode could not be found.

                                    +
                                    + +
                                    +
                                    + phpcs:ignore +
                                    +
                                    + +

                                    Squiz.Commenting.FunctionCommentThrowTag.WrongNumber

                                    +
                                    + +
                                    +
                                    + +
                                    Return values
                                    + bool + — +

                                    true if succeeded

                                    +
                                    + + +
                                    +
                                    +

                                    + validateAllValues() + +

                                    + + +

                                    Validate all model properties

                                    + + + protected + validateAllValues([array<string|int, mixed> $ignore = [] ]) : array<string|int, mixed> + + +
                                    Parameters
                                    +
                                    +
                                    + $ignore + : array<string|int, mixed> + = []
                                    +
                                    + +
                                    +
                                    + + +
                                    + Tags + +
                                    +
                                    +
                                    + throws +
                                    +
                                    + ValidationException + +

                                    If a field could not be validated.

                                    +
                                    + +
                                    +
                                    + +
                                    Return values
                                    + array<string|int, mixed> + — +

                                    the validated values

                                    +
                                    + + +
                                    +
                                    +

                                    + store() + +

                                    + + +

                                    Calls api store customer method

                                    + + + private + store() : bool + + + + +
                                    + Tags + +
                                    +
                                    +
                                    + throws +
                                    +
                                    + ValidationException + +

                                    If a field could not be validated.

                                    +
                                    + +
                                    +
                                    + throws +
                                    +
                                    + CrmException + +

                                    If an error occurs on server side or on getting response.

                                    +
                                    + +
                                    +
                                    + throws +
                                    +
                                    + ApiErrorException + +

                                    If any error or \LDC\LDCCRM\Enums\ApiError occurs. +Possibles are : - validationFailed, If provided data is wrong(CRM side).

                                    +
                                    + +
                                    +
                                    + phpcs:ignore +
                                    +
                                    + +

                                    Squiz.Commenting.FunctionCommentThrowTag.WrongNumber

                                    +
                                    + +
                                    +
                                    + +
                                    Return values
                                    + bool + — +

                                    True if save was successfull.

                                    +
                                    + + +
                                    +
                                    +

                                    + update() + +

                                    + + +

                                    Calls api update customer method

                                    + + + private + update() : bool + + + + +
                                    + Tags + +
                                    +
                                    +
                                    + throws +
                                    +
                                    + ValidationException + +

                                    If a field could not be validated.

                                    +
                                    + +
                                    +
                                    + throws +
                                    +
                                    + CrmException + +

                                    If an error occurs on server side or on getting response.

                                    +
                                    + +
                                    +
                                    + throws +
                                    +
                                    + ApiErrorException + +

                                    If any error or \LDC\LDCCRM\Enums\ApiError occurs. +Possibles are : - validationFailed, If provided data is wrong(CRM side). +- modelNotFound, If this customer hashcode could not be found.

                                    +
                                    + +
                                    +
                                    + phpcs:ignore +
                                    +
                                    + +

                                    Squiz.Commenting.FunctionCommentThrowTag.WrongNumber

                                    +
                                    + +
                                    +
                                    + +
                                    Return values
                                    + bool + — +

                                    True if save was successfull.

                                    +
                                    + + +
                                    +
                                    + + + + +
                                    +
                                    +
                                    +
                                    +

                                    Search results

                                    + +
                                    +
                                    +
                                      +
                                      +
                                      +
                                      +
                                      +
                                      + + +
                                      + + + + + + + + diff --git a/app/Lib/vendor/crm-client-3.0.6/docs/client-api/classes/LDC-LDCCRM-Models-Question.html b/app/Lib/vendor/crm-client-3.0.6/docs/client-api/classes/LDC-LDCCRM-Models-Question.html new file mode 100644 index 0000000..de78d78 --- /dev/null +++ b/app/Lib/vendor/crm-client-3.0.6/docs/client-api/classes/LDC-LDCCRM-Models-Question.html @@ -0,0 +1,1381 @@ + + + + + CRM V2 + + + + + + + + + + + + + + + + + + + +
                                      +

                                      CRM V2

                                      + + + + + +
                                      + +
                                      +
                                      + + + + +
                                      + + +
                                      +

                                      + Question + + + extends CrmClientModel + + +
                                      + in package + +
                                      + + +

                                      + + + +

                                      This class represents a question +It has some static methods to retrieve questions and answers

                                      + + + +
                                      + Tags + +
                                      +
                                      +
                                      + category +
                                      +
                                      + +

                                      Api Models

                                      +
                                      + +
                                      +
                                      + subpackage +
                                      +
                                      + +

                                      models

                                      +
                                      + +
                                      +
                                      + author +
                                      +
                                      + +

                                      Jérémy Munsch jeremy.munsch@ldc.fr

                                      +
                                      + +
                                      +
                                      + + + + + + +

                                      + Table of Contents + +

                                      + +
                                      +
                                      + $answers + +  : array<string|int, Answer> +
                                      +
                                      + +
                                      + $id + +  : string +
                                      +
                                      + +
                                      + $question + +  : string +
                                      +
                                      + +
                                      + $type + +  : QuestionType +
                                      +
                                      + +
                                      + $modelFields + +  : array<string|int, mixed> +
                                      +
                                      The crm customer fields
                                      + +
                                      + $validation + +  : array<string|int, mixed> +
                                      +
                                      Validation rules
                                      + +
                                      + $answers + +  : array<string|int, mixed> +
                                      +
                                      The question answers
                                      + +
                                      + $id + +  : int +
                                      +
                                      The question id
                                      + +
                                      + $question + +  : string +
                                      +
                                      The actual question as a string
                                      + +
                                      + $type + +  : QuestionType +
                                      +
                                      The question type
                                      + +
                                      + __construct() + +  : mixed +
                                      +
                                      Question
                                      + +
                                      + __get() + +  : mixed +
                                      +
                                      General accessor
                                      + +
                                      + __set() + +  : void +
                                      +
                                      Set prop on the model.
                                      + +
                                      + all() + +  : array<string|int, mixed> +
                                      +
                                      Get all questions only
                                      + +
                                      + allWithCustomerAnswers() + +  : array<string|int, mixed> +
                                      +
                                      Get all the questions with customer answers
                                      + +
                                      + fill() + +  : void +
                                      +
                                      Fill values into model using validation rules.
                                      + +
                                      + jsonSerialize() + +  : array<string|int, mixed> +
                                      +
                                      Serialize this object to an array
                                      + +
                                      + unansweredBy() + +  : array<string|int, mixed> +
                                      +
                                      Get unanswered question for a specific customer
                                      + +
                                      + validateAllValues() + +  : array<string|int, mixed> +
                                      +
                                      Validate all model properties
                                      + +
                                      + + + + + + +
                                      +

                                      + Properties + +

                                      +
                                      +

                                      + $answers + + + +

                                      + + + + + public + array<string|int, Answer> + $answers + + +

                                      An array with answers

                                      +
                                      + +
                                      + + + +
                                      +
                                      +

                                      + $id + + + +

                                      + + + + + public + string + $id + + +

                                      The question id

                                      +
                                      + +
                                      + + + +
                                      +
                                      +

                                      + $question + + + +

                                      + + + + + public + string + $question + + +

                                      The actual question as a string

                                      +
                                      + +
                                      + + + +
                                      +
                                      +

                                      + $type + + + +

                                      + + + + + public + QuestionType + $type + + +

                                      The question type to display, +it also hints wether it can accept one or multiple responses, +so only checkbox allows multiple responses

                                      +
                                      + +
                                      + + + +
                                      +
                                      +

                                      + $modelFields + + + +

                                      + + +

                                      The crm customer fields

                                      + + + protected + array<string|int, mixed> + $modelFields + = ['id', 'question', 'type', 'answers'] + + + + + +
                                      +
                                      +

                                      + $validation + + + +

                                      + + +

                                      Validation rules

                                      + + + protected + static array<string|int, mixed> + $validation + = ['id' => 'required|int', 'question' => 'required|string|max:255', 'type' => ['required'], 'answers' => 'required|array'] + + + + + +
                                      +
                                      +

                                      + $answers + + + +

                                      + + +

                                      The question answers

                                      + + + private + array<string|int, mixed> + $answers + = [] + +

                                      \LDC\LDCCRM\Models\Answer

                                      +
                                      + + + + +
                                      +
                                      +

                                      + $id + + + +

                                      + + +

                                      The question id

                                      + + + private + int + $id + + +

                                      Required +Field Type bigInt

                                      +
                                      + + + + +
                                      +
                                      +

                                      + $question + + + +

                                      + + +

                                      The actual question as a string

                                      + + + private + string + $question + = null + +

                                      Required +Max length 255 +Field Type varchar

                                      +
                                      + + + + +
                                      +
                                      +

                                      + $type + + + +

                                      + + +

                                      The question type

                                      + + + private + QuestionType + $type + = null + +

                                      Validate: in QuestionType::toValues()

                                      +

                                      Required +Field Type tinyInteger

                                      +
                                      + + + + +
                                      +
                                      + +
                                      +

                                      + Methods + +

                                      +
                                      +

                                      + __construct() + +

                                      + + +

                                      Question

                                      + + + public + __construct([array<string|int, mixed> $properties = [] ]) : mixed + + +
                                      Parameters
                                      +
                                      +
                                      + $properties + : array<string|int, mixed> + = []
                                      +
                                      + +
                                      +
                                      + + +
                                      + Tags + +
                                      +
                                      +
                                      + throws +
                                      +
                                      + ValidationException + +

                                      If a field could not be validated.

                                      +
                                      + +
                                      +
                                      + +
                                      Return values
                                      + mixed + — + + +
                                      +
                                      +

                                      + __get() + +

                                      + + +

                                      General accessor

                                      + + + public + __get(string $field) : mixed + + +
                                      Parameters
                                      +
                                      +
                                      + $field + : string +
                                      +
                                      + +
                                      +
                                      + + + +
                                      Return values
                                      + mixed + — + + +
                                      +
                                      +

                                      + __set() + +

                                      + + +

                                      Set prop on the model.

                                      + + + public + __set(string $field, mixed $value) : void + + +
                                      Parameters
                                      +
                                      +
                                      + $field + : string +
                                      +
                                      + +
                                      +
                                      + $value + : mixed +
                                      +
                                      + +
                                      +
                                      + + +
                                      + Tags + +
                                      +
                                      +
                                      + throws +
                                      +
                                      + ValidationException + +

                                      If a field could not be validated.

                                      +
                                      + +
                                      +
                                      + throws +
                                      +
                                      + AccessError + +

                                      If trying to set a value on a unknown property.

                                      +
                                      + +
                                      +
                                      + +
                                      Return values
                                      + void + — + + +
                                      +
                                      +

                                      + all() + +

                                      + + +

                                      Get all questions only

                                      + + + public + static all() : array<string|int, mixed> + + + + +
                                      + Tags + +
                                      +
                                      +
                                      + throws +
                                      +
                                      + CrmException + +

                                      If an error occurs on server side or on getting response.

                                      +
                                      + +
                                      +
                                      + throws +
                                      +
                                      + ApiErrorException + +

                                      If any error or \LDC\LDCCRM\Enums\ApiError occurs.

                                      +
                                      + +
                                      +
                                      + phpcs:ignore +
                                      +
                                      + +

                                      Squiz.Commenting.FunctionCommentThrowTag.WrongNumber

                                      +
                                      + +
                                      +
                                      + +
                                      Return values
                                      + array<string|int, mixed> + — +

                                      of \LDC\LDCCRM\Models\Question

                                      +
                                      + + +
                                      +
                                      +

                                      + allWithCustomerAnswers() + +

                                      + + +

                                      Get all the questions with customer answers

                                      + + + public + static allWithCustomerAnswers(Customer $customer) : array<string|int, mixed> + + +
                                      Parameters
                                      +
                                      +
                                      + $customer + : Customer +
                                      +
                                      + +
                                      +
                                      + + +
                                      + Tags + +
                                      +
                                      +
                                      + throws +
                                      +
                                      + ValidationException + +

                                      If a customer's hashcode could not be validated.

                                      +
                                      + +
                                      +
                                      + throws +
                                      +
                                      + CrmException + +

                                      If an error occurs on server side or on getting response.

                                      +
                                      + +
                                      +
                                      + throws +
                                      +
                                      + ApiErrorException + +

                                      If any error or \LDC\LDCCRM\Enums\ApiError occurs. +Possibles are : - modelNotFound, If the customer could not be found(CRM side).

                                      +
                                      + +
                                      +
                                      + phpcs:ignore +
                                      +
                                      + +

                                      Squiz.Commenting.FunctionCommentThrowTag.WrongNumber

                                      +
                                      + +
                                      +
                                      + +
                                      Return values
                                      + array<string|int, mixed> + — +

                                      [ +0 => [ +'question' => \LDC\LDCCRM\Models\Question, +'customerAnswers' => \LDC\LDCCRM\Models\Answer[] +] +]

                                      +

                                      with \LDC\LDCCRM\Models\Question[] +and the customer \LDC\LDCCRM\Models\Answer[]

                                      +
                                      + + +
                                      +
                                      +

                                      + fill() + +

                                      + + +

                                      Fill values into model using validation rules.

                                      + + + public + fill(array<string|int, mixed> $properties) : void + + +
                                      Parameters
                                      +
                                      +
                                      + $properties + : array<string|int, mixed> +
                                      +
                                      + +
                                      +
                                      + + +
                                      + Tags + +
                                      +
                                      +
                                      + throws +
                                      +
                                      + ValidationException + +

                                      If a field could not be validated.

                                      +
                                      + +
                                      +
                                      + +
                                      Return values
                                      + void + — + + +
                                      +
                                      +

                                      + jsonSerialize() + +

                                      + + +

                                      Serialize this object to an array

                                      + + + public + jsonSerialize() : array<string|int, mixed> + + + + + +
                                      Return values
                                      + array<string|int, mixed> + — + + +
                                      +
                                      +

                                      + unansweredBy() + +

                                      + + +

                                      Get unanswered question for a specific customer

                                      + + + public + static unansweredBy(Customer $customer) : array<string|int, mixed> + + +
                                      Parameters
                                      +
                                      +
                                      + $customer + : Customer +
                                      +
                                      + +
                                      +
                                      + + +
                                      + Tags + +
                                      +
                                      +
                                      + throws +
                                      +
                                      + ValidationException + +

                                      If a customer's hashcode could not be validated.

                                      +
                                      + +
                                      +
                                      + throws +
                                      +
                                      + CrmException + +

                                      If an error occurs on server side or on getting response.

                                      +
                                      + +
                                      +
                                      + throws +
                                      +
                                      + ApiErrorException + +

                                      If any error or \LDC\LDCCRM\Enums\ApiError occurs. +Possibles are : - modelNotFound, If the customer could not be found(CRM side).

                                      +
                                      + +
                                      +
                                      + phpcs:ignore +
                                      +
                                      + +

                                      Squiz.Commenting.FunctionCommentThrowTag.WrongNumber

                                      +
                                      + +
                                      +
                                      + +
                                      Return values
                                      + array<string|int, mixed> + — +

                                      of \LDC\LDCCRM\Models\Question

                                      +
                                      + + +
                                      +
                                      +

                                      + validateAllValues() + +

                                      + + +

                                      Validate all model properties

                                      + + + protected + validateAllValues([array<string|int, mixed> $ignore = [] ]) : array<string|int, mixed> + + +
                                      Parameters
                                      +
                                      +
                                      + $ignore + : array<string|int, mixed> + = []
                                      +
                                      + +
                                      +
                                      + + +
                                      + Tags + +
                                      +
                                      +
                                      + throws +
                                      +
                                      + ValidationException + +

                                      If a field could not be validated.

                                      +
                                      + +
                                      +
                                      + +
                                      Return values
                                      + array<string|int, mixed> + — +

                                      the validated values

                                      +
                                      + + +
                                      +
                                      + + + + +
                                      +
                                      +
                                      +
                                      +

                                      Search results

                                      + +
                                      +
                                      +
                                        +
                                        +
                                        +
                                        +
                                        +
                                        + + +
                                        + + + + + + + + diff --git a/app/Lib/vendor/crm-client-3.0.6/docs/client-api/classes/LDC-LDCCRM-Models-SingleOptin.html b/app/Lib/vendor/crm-client-3.0.6/docs/client-api/classes/LDC-LDCCRM-Models-SingleOptin.html new file mode 100644 index 0000000..ebbecb2 --- /dev/null +++ b/app/Lib/vendor/crm-client-3.0.6/docs/client-api/classes/LDC-LDCCRM-Models-SingleOptin.html @@ -0,0 +1,469 @@ + + + + + CRM V2 + + + + + + + + + + + + + + + + + + + +
                                        +

                                        CRM V2

                                        + + + + + +
                                        + +
                                        +
                                        + + + + +
                                        + + +
                                        +

                                        + SingleOptin + + + extends CrmClientModel + + +
                                        + in package + +
                                        + + +

                                        + + + +

                                        This class allows to handle single optins

                                        + + + +
                                        + Tags + +
                                        +
                                        +
                                        + throws +
                                        +
                                        + ApiErrorException + +

                                        If an error occurs

                                        +
                                        + +
                                        +
                                        + throws +
                                        +
                                        + CrmException + +

                                        If the CRM encounters an error

                                        +
                                        + +
                                        +
                                        + category +
                                        +
                                        + +

                                        Api Models

                                        +
                                        + +
                                        +
                                        + subpackage +
                                        +
                                        + +

                                        models

                                        +
                                        + +
                                        +
                                        + author +
                                        +
                                        + +

                                        Jérémy Munsch jeremy.munsch@ldc.fr

                                        +
                                        + +
                                        +
                                        + + + + + + +

                                        + Table of Contents + +

                                        + +
                                        +
                                        + $validation + +  : array<string|int, mixed> +
                                        +
                                        Validation rules
                                        + +
                                        + setStatus() + +  : bool +
                                        +
                                        Set the single optin status for an email
                                        + +
                                        + + + + + + +
                                        +

                                        + Properties + +

                                        +
                                        +

                                        + $validation + + + +

                                        + + +

                                        Validation rules

                                        + + + protected + static array<string|int, mixed> + $validation + = ['email' => 'required|email', 'opt_in' => 'required|bool'] + + + + + +
                                        +
                                        + +
                                        +

                                        + Methods + +

                                        +
                                        +

                                        + setStatus() + +

                                        + + +

                                        Set the single optin status for an email

                                        + + + public + static setStatus(string $email, bool $opt_in) : bool + + +
                                        Parameters
                                        +
                                        +
                                        + $email + : string +
                                        +
                                        + +
                                        +
                                        + $opt_in + : bool +
                                        +
                                        + +
                                        +
                                        + + +
                                        + Tags + +
                                        +
                                        +
                                        + throws +
                                        +
                                        + ValidationException + +

                                        If a field email could not be validated.

                                        +
                                        + +
                                        +
                                        + throws +
                                        +
                                        + CrmException + +

                                        If an error occurs on server side or on getting response.

                                        +
                                        + +
                                        +
                                        + throws +
                                        +
                                        + ApiErrorException + +

                                        If any error or \LDC\LDCCRM\Enums\ApiError occurs. +Possibles are : - singleOptinCustomerExists, If a customer exists with this email.

                                        +
                                        + +
                                        +
                                        + phpcs:ignore +
                                        +
                                        + +

                                        Squiz.Commenting.FunctionCommentThrowTag.WrongNumber

                                        +
                                        + +
                                        +
                                        + +
                                        Return values
                                        + bool + — +

                                        true if succeeded

                                        +
                                        + + +
                                        +
                                        + + + + +
                                        +
                                        +
                                        +
                                        +

                                        Search results

                                        + +
                                        +
                                        +
                                          +
                                          +
                                          +
                                          +
                                          +
                                          + + +
                                          + + + + + + + + diff --git a/app/Lib/vendor/crm-client-3.0.6/docs/client-api/classes/LDC-LDCCRM-Models-Stats.html b/app/Lib/vendor/crm-client-3.0.6/docs/client-api/classes/LDC-LDCCRM-Models-Stats.html new file mode 100644 index 0000000..aad695e --- /dev/null +++ b/app/Lib/vendor/crm-client-3.0.6/docs/client-api/classes/LDC-LDCCRM-Models-Stats.html @@ -0,0 +1,621 @@ + + + + + CRM V2 + + + + + + + + + + + + + + + + + + + +
                                          +

                                          CRM V2

                                          + + + + + +
                                          + +
                                          +
                                          + + + + +
                                          + + +
                                          +

                                          + Stats + + + extends CrmClientModel + + +
                                          + in package + +
                                          + + +

                                          + + + +

                                          This class is used to get stats from CRM

                                          + + + +
                                          + Tags + +
                                          +
                                          +
                                          + throws +
                                          +
                                          + ApiErrorException + +

                                          If an error occurs

                                          +
                                          + +
                                          +
                                          + throws +
                                          +
                                          + CrmException + +

                                          If the CRM encounters an error

                                          +
                                          + +
                                          +
                                          + category +
                                          +
                                          + +

                                          Api Models

                                          +
                                          + +
                                          +
                                          + subpackage +
                                          +
                                          + +

                                          models

                                          +
                                          + +
                                          +
                                          + author +
                                          +
                                          + +

                                          Jérémy Munsch jeremy.munsch@ldc.fr

                                          +
                                          + +
                                          +
                                          + + + + + + +

                                          + Table of Contents + +

                                          + +
                                          +
                                          + $validation + +  : array<string|int, mixed> +
                                          +
                                          Validation rules
                                          + +
                                          + getBrandStats() + +  : array<string|int, mixed> +
                                          +
                                          Get brand stats ordered by ascendent days
                                          + +
                                          + getQuestionStats() + +  : array<string|int, mixed> +
                                          +
                                          Get brand stats ordered by ascendent days
                                          + +
                                          + + + + + + +
                                          +

                                          + Properties + +

                                          +
                                          +

                                          + $validation + + + +

                                          + + +

                                          Validation rules

                                          + + + protected + static array<string|int, mixed> + $validation + = ['question.id' => 'required|int|min:1', 'start' => 'required|date_format:Y-m-d', 'end' => 'required|date_format:Y-m-d'] + + + + + +
                                          +
                                          + +
                                          +

                                          + Methods + +

                                          +
                                          +

                                          + getBrandStats() + +

                                          + + +

                                          Get brand stats ordered by ascendent days

                                          + + + public + static getBrandStats(string $start, string $end) : array<string|int, mixed> + + +
                                          Parameters
                                          +
                                          +
                                          + $start + : string +
                                          +
                                          +

                                          Une date valide au format Y-m-d .

                                          +
                                          + +
                                          +
                                          + $end + : string +
                                          +
                                          +

                                          Une date valide au format Y-m-d .

                                          +
                                          + +
                                          +
                                          + + +
                                          + Tags + +
                                          +
                                          +
                                          + throws +
                                          +
                                          + ValidationException + +

                                          If a field start could not be validated.

                                          +
                                          + +
                                          +
                                          + throws +
                                          +
                                          + ValidationException + +

                                          If a field end could not be validated.

                                          +
                                          + +
                                          +
                                          + throws +
                                          +
                                          + CrmException + +

                                          If an error occurs on server side or on getting response.

                                          +
                                          + +
                                          +
                                          + throws +
                                          +
                                          + ApiErrorException + +

                                          If any error or \LDC\LDCCRM\Enums\ApiError occurs. +Possibles are : - validationFailed, If provided data is wrong(CRM side).

                                          +
                                          + +
                                          +
                                          + phpcs:ignore +
                                          +
                                          + +

                                          Squiz.Commenting.FunctionCommentThrowTag.WrongNumber

                                          +
                                          + +
                                          +
                                          + +
                                          Return values
                                          + array<string|int, mixed> + — +

                                          The stats array by day

                                          +
                                          + + +
                                          +
                                          +

                                          + getQuestionStats() + +

                                          + + +

                                          Get brand stats ordered by ascendent days

                                          + + + public + static getQuestionStats(Question $question, string $start, string $end) : array<string|int, mixed> + + +
                                          Parameters
                                          +
                                          +
                                          + $question + : Question +
                                          +
                                          +

                                          Une question CRM possèdant un id réel.

                                          +
                                          + +
                                          +
                                          + $start + : string +
                                          +
                                          +

                                          Une date valide au format Y-m-d .

                                          +
                                          + +
                                          +
                                          + $end + : string +
                                          +
                                          +

                                          Une date valide au format Y-m-d .

                                          +
                                          + +
                                          +
                                          + + +
                                          + Tags + +
                                          +
                                          +
                                          + throws +
                                          +
                                          + ValidationException + +

                                          If a question's id could not be validated.

                                          +
                                          + +
                                          +
                                          + throws +
                                          +
                                          + ValidationException + +

                                          If a field start could not be validated.

                                          +
                                          + +
                                          +
                                          + throws +
                                          +
                                          + ValidationException + +

                                          If a field end could not be validated.

                                          +
                                          + +
                                          +
                                          + throws +
                                          +
                                          + CrmException + +

                                          If an error occurs on server side or on getting response.

                                          +
                                          + +
                                          +
                                          + throws +
                                          +
                                          + ApiErrorException + +

                                          If any error or \LDC\LDCCRM\Enums\ApiError occurs. +Possibles are : - validationFailed, If provided data is wrong(CRM side).

                                          +
                                          + +
                                          +
                                          + phpcs:ignore +
                                          +
                                          + +

                                          Squiz.Commenting.FunctionCommentThrowTag.WrongNumber

                                          +
                                          + +
                                          +
                                          + +
                                          Return values
                                          + array<string|int, mixed> + — +

                                          The stats array by day

                                          +
                                          + + +
                                          +
                                          + + + + +
                                          +
                                          +
                                          +
                                          +

                                          Search results

                                          + +
                                          +
                                          +
                                            +
                                            +
                                            +
                                            +
                                            +
                                            + + +
                                            + + + + + + + + diff --git a/app/Lib/vendor/crm-client-3.0.6/docs/client-api/classes/LDC-LDCCRM-Transport-Request.html b/app/Lib/vendor/crm-client-3.0.6/docs/client-api/classes/LDC-LDCCRM-Transport-Request.html new file mode 100644 index 0000000..f192fc1 --- /dev/null +++ b/app/Lib/vendor/crm-client-3.0.6/docs/client-api/classes/LDC-LDCCRM-Transport-Request.html @@ -0,0 +1,1085 @@ + + + + + CRM V2 + + + + + + + + + + + + + + + + + + + +
                                            +

                                            CRM V2

                                            + + + + + +
                                            + +
                                            +
                                            + + + + +
                                            + + +
                                            +

                                            + Request + + +
                                            + in package + +
                                            + + +

                                            + + + +

                                            The LDC CRM request +Contains the http method, the requested url and data to pass

                                            + + + +
                                            + Tags + +
                                            +
                                            +
                                            + subpackage +
                                            +
                                            + +

                                            transport

                                            +
                                            + +
                                            +
                                            + + + + + + +

                                            + Table of Contents + +

                                            + +
                                            +
                                            + $data + +  : array<string|int, mixed> +
                                            +
                                            + +
                                            + $headers + +  : array<string|int, mixed> +
                                            +
                                            + +
                                            + $method + +  : HttpMethods +
                                            +
                                            + +
                                            + $uri + +  : string +
                                            +
                                            + +
                                            + $data + +  : array<string|int, mixed> +
                                            +
                                            Data to pass to the http body
                                            + +
                                            + $headers + +  : array<string|int, mixed> +
                                            +
                                            Data to pass to the http headers
                                            + +
                                            + $method + +  : HttpMethods +
                                            +
                                            The http method
                                            + +
                                            + $uri + +  : string +
                                            +
                                            The http url
                                            + +
                                            + $client + +  : Client +
                                            +
                                            GuzzleHttp client
                                            + +
                                            + $endpoint + +  : string +
                                            +
                                            The Api endpoint
                                            + +
                                            + $request + +  : callable +
                                            +
                                            Guzzle request
                                            + +
                                            + __construct() + +  : mixed +
                                            +
                                            Request
                                            + +
                                            + __get() + +  : mixed|null +
                                            +
                                            Generic accessor
                                            + +
                                            + addData() + +  : void +
                                            +
                                            Add data to the request
                                            + +
                                            + addHeaders() + +  : void +
                                            +
                                            Add headers to the request
                                            + +
                                            + call() + +  : ResponseInterface +
                                            +
                                            Make the Http request
                                            + +
                                            + setEndpoint() + +  : void +
                                            +
                                            Set the api endpoint to the request
                                            + +
                                            + makeRequest() + +  : void +
                                            +
                                            make the guzzle request
                                            + +
                                            + + + + + + +
                                            +

                                            + Properties + +

                                            +
                                            +

                                            + $data + + + +

                                            + + + + + public + array<string|int, mixed> + $data + + +

                                            readonly data

                                            +
                                            + +
                                            + + + +
                                            +
                                            +

                                            + $headers + + + +

                                            + + + + + public + array<string|int, mixed> + $headers + + +

                                            headers

                                            +
                                            + +
                                            + + + +
                                            +
                                            +

                                            + $method + + + +

                                            + + + + + public + HttpMethods + $method + + +

                                            readonly method

                                            +
                                            + +
                                            + + + +
                                            +
                                            +

                                            + $uri + + + +

                                            + + + + + public + string + $uri + + +

                                            readonly uri

                                            +
                                            + +
                                            + + + +
                                            +
                                            +

                                            + $data + + + +

                                            + + +

                                            Data to pass to the http body

                                            + + + protected + array<string|int, mixed> + $data + = [] + + + + + +
                                            +
                                            +

                                            + $headers + + + +

                                            + + +

                                            Data to pass to the http headers

                                            + + + protected + array<string|int, mixed> + $headers + = [] + + + + + +
                                            +
                                            +

                                            + $method + + + +

                                            + + +

                                            The http method

                                            + + + protected + HttpMethods + $method + + + + + + +
                                            +
                                            +

                                            + $uri + + + +

                                            + + +

                                            The http url

                                            + + + protected + string + $uri + + + + + + +
                                            +
                                            +

                                            + $client + + + +

                                            + + +

                                            GuzzleHttp client

                                            + + + private + Client + $client + + + + + + +
                                            +
                                            +

                                            + $endpoint + + + +

                                            + + +

                                            The Api endpoint

                                            + + + private + string + $endpoint + + + + + + +
                                            +
                                            +

                                            + $request + + + +

                                            + + +

                                            Guzzle request

                                            + + + private + callable + $request + + + +

                                            the returns \GuzzleHttp\Psr7\Request

                                            +
                                            + + + +
                                            +
                                            + +
                                            +

                                            + Methods + +

                                            +
                                            +

                                            + __construct() + +

                                            + + +

                                            Request

                                            + + + public + __construct(HttpMethods $method, string $uri[, array<string|int, mixed> $headers = [] ][, array<string|int, mixed> $data = [] ]) : mixed + + +
                                            Parameters
                                            +
                                            +
                                            + $method + : HttpMethods +
                                            +
                                            + +
                                            +
                                            + $uri + : string +
                                            +
                                            + +
                                            +
                                            + $headers + : array<string|int, mixed> + = []
                                            +
                                            + +
                                            +
                                            + $data + : array<string|int, mixed> + = []
                                            +
                                            + +
                                            +
                                            + + + +
                                            Return values
                                            + mixed + — + + +
                                            +
                                            +

                                            + __get() + +

                                            + + +

                                            Generic accessor

                                            + + + public + __get(string $field) : mixed|null + + +
                                            Parameters
                                            +
                                            +
                                            + $field + : string +
                                            +
                                            + +
                                            +
                                            + + + +
                                            Return values
                                            + mixed|null + — + + +
                                            +
                                            +

                                            + addData() + +

                                            + + +

                                            Add data to the request

                                            + + + public + addData(array<string|int, mixed> $data) : void + + +
                                            Parameters
                                            +
                                            +
                                            + $data + : array<string|int, mixed> +
                                            +
                                            + +
                                            +
                                            + + + +
                                            Return values
                                            + void + — + + +
                                            +
                                            +

                                            + addHeaders() + +

                                            + + +

                                            Add headers to the request

                                            + + + public + addHeaders(array<string|int, mixed> $headers) : void + + +
                                            Parameters
                                            +
                                            +
                                            + $headers + : array<string|int, mixed> +
                                            +
                                            + +
                                            +
                                            + + + +
                                            Return values
                                            + void + — + + +
                                            +
                                            +

                                            + call() + +

                                            + + +

                                            Make the Http request

                                            + + + public + call() : ResponseInterface + + + + + +
                                            Return values
                                            + ResponseInterface + — + + +
                                            +
                                            +

                                            + setEndpoint() + +

                                            + + +

                                            Set the api endpoint to the request

                                            + + + public + setEndpoint(string $endpoint) : void + + +
                                            Parameters
                                            +
                                            +
                                            + $endpoint + : string +
                                            +
                                            + +
                                            +
                                            + + + +
                                            Return values
                                            + void + — + + +
                                            +
                                            +

                                            + makeRequest() + +

                                            + + +

                                            make the guzzle request

                                            + + + private + makeRequest() : void + + + + + +
                                            Return values
                                            + void + — + + +
                                            +
                                            + + + + +
                                            +
                                            +
                                            +
                                            +

                                            Search results

                                            + +
                                            +
                                            +
                                              +
                                              +
                                              +
                                              +
                                              +
                                              + + +
                                              + + + + + + + + diff --git a/app/Lib/vendor/crm-client-3.0.6/docs/client-api/classes/LDC-LDCCRM-Transport-Response.html b/app/Lib/vendor/crm-client-3.0.6/docs/client-api/classes/LDC-LDCCRM-Transport-Response.html new file mode 100644 index 0000000..b219dbd --- /dev/null +++ b/app/Lib/vendor/crm-client-3.0.6/docs/client-api/classes/LDC-LDCCRM-Transport-Response.html @@ -0,0 +1,1105 @@ + + + + + CRM V2 + + + + + + + + + + + + + + + + + + + +
                                              +

                                              CRM V2

                                              + + + + + +
                                              + +
                                              +
                                              + + + + +
                                              + + +
                                              +

                                              + Response + + +
                                              + in package + +
                                              + + +

                                              + + + + + + +
                                              + Tags + +
                                              +
                                              +
                                              + subpackage +
                                              +
                                              + +

                                              transport

                                              +
                                              + +
                                              +
                                              + + + + + + +

                                              + Table of Contents + +

                                              + +
                                              +
                                              + $apiError + +  : ApiError|int +
                                              +
                                              + +
                                              + $body + +  : array<string|int, mixed> +
                                              +
                                              + +
                                              + $data + +  : array<string|int, mixed>|null +
                                              +
                                              + +
                                              + $headers + +  : array<string|int, mixed> +
                                              +
                                              + +
                                              + $httpCode + +  : int +
                                              +
                                              + +
                                              + $message + +  : string +
                                              +
                                              + +
                                              + $status + +  : ApiStatus +
                                              +
                                              + +
                                              + $apiError + +  : ApiError +
                                              +
                                              The api error
                                              + +
                                              + $body + +  : string +
                                              +
                                              The response body
                                              + +
                                              + $headers + +  : string +
                                              +
                                              The response headers
                                              + +
                                              + $httpCode + +  : int +
                                              +
                                              The response http code
                                              + +
                                              + $message + +  : string +
                                              +
                                              The interface message
                                              + +
                                              + $response + +  : ResponseInterface +
                                              +
                                              PSR response
                                              + +
                                              + $status + +  : ApiStatus +
                                              +
                                              The response status
                                              + +
                                              + __construct() + +  : mixed +
                                              +
                                              Response
                                              + +
                                              + __get() + +  : mixed|null +
                                              +
                                              Generic accessor
                                              + +
                                              + checkVersion() + +  : void +
                                              +
                                              This checks if the crm version is way far beyond the client version.
                                              + +
                                              + tryDecodeJson() + +  : array<string|int, mixed>|false +
                                              +
                                              Try to decode json and return false if it is +not a valid json
                                              + +
                                              + + + + + + +
                                              +

                                              + Properties + +

                                              +
                                              +

                                              + $apiError + + + +

                                              + + + + + public + ApiError|int + $apiError + + +

                                              The api error status it there is any

                                              +
                                              + +
                                              + + + +
                                              +
                                              +

                                              + $body + + + +

                                              + + + + + public + array<string|int, mixed> + $body + + +

                                              The http response body, this is parsed json

                                              +
                                              + +
                                              + + + +
                                              +
                                              +

                                              + $data + + + +

                                              + + + + + public + array<string|int, mixed>|null + $data + + +

                                              The reponse data

                                              +
                                              + +
                                              + + + +
                                              +
                                              +

                                              + $headers + + + +

                                              + + + + + public + array<string|int, mixed> + $headers + + +

                                              The http reponse headers

                                              +
                                              + +
                                              + + + +
                                              +
                                              +

                                              + $httpCode + + + +

                                              + + + + + public + int + $httpCode + + +

                                              The http response code

                                              +
                                              + +
                                              + + + +
                                              +
                                              +

                                              + $message + + + +

                                              + + + + + public + string + $message + + +

                                              The api message

                                              +
                                              + +
                                              + + + +
                                              +
                                              +

                                              + $status + + + +

                                              + + + + + public + ApiStatus + $status + + +

                                              The response api status

                                              +
                                              + +
                                              + + + +
                                              +
                                              +

                                              + $apiError + + + +

                                              + + +

                                              The api error

                                              + + + private + ApiError + $apiError + + + + + + +
                                              +
                                              +

                                              + $body + + + +

                                              + + +

                                              The response body

                                              + + + private + string + $body + + + + + + +
                                              +
                                              +

                                              + $headers + + + +

                                              + + +

                                              The response headers

                                              + + + private + string + $headers + + + + + + +
                                              +
                                              +

                                              + $httpCode + + + +

                                              + + +

                                              The response http code

                                              + + + private + int + $httpCode + = 0 + + + + + +
                                              +
                                              +

                                              + $message + + + +

                                              + + +

                                              The interface message

                                              + + + private + string + $message + + + + + + +
                                              +
                                              +

                                              + $response + + + +

                                              + + +

                                              PSR response

                                              + + + private + ResponseInterface + $response + + + + + + +
                                              +
                                              +

                                              + $status + + + +

                                              + + +

                                              The response status

                                              + + + private + ApiStatus + $status + + + + + + +
                                              +
                                              + +
                                              +

                                              + Methods + +

                                              +
                                              +

                                              + __construct() + +

                                              + + +

                                              Response

                                              + + + public + __construct(ApiStatus $status, ResponseInterface $response) : mixed + + +
                                              Parameters
                                              +
                                              +
                                              + $status + : ApiStatus +
                                              +
                                              + +
                                              +
                                              + $response + : ResponseInterface +
                                              +
                                              + +
                                              +
                                              + + +
                                              + Tags + +
                                              +
                                              +
                                              + throws +
                                              +
                                              + CrmException + +

                                              If HTTP response body in not JSON.

                                              +
                                              + +
                                              +
                                              + +
                                              Return values
                                              + mixed + — + + +
                                              +
                                              +

                                              + __get() + +

                                              + + +

                                              Generic accessor

                                              + + + public + __get(string $field) : mixed|null + + +
                                              Parameters
                                              +
                                              +
                                              + $field + : string +
                                              +
                                              + +
                                              +
                                              + + + +
                                              Return values
                                              + mixed|null + — + + +
                                              +
                                              +

                                              + checkVersion() + +

                                              + + +

                                              This checks if the crm version is way far beyond the client version.

                                              + + + private + checkVersion(string $version) : void + +

                                              If a minor version mismatch is detected we will log this as a warning. +If a major version mismatch is detected we will throw a CrmException as +there shall be an incompatibility with the response.

                                              +

                                              The goal here is to force clients to be up to date. +A major version change means breaking change.

                                              +
                                              + +
                                              Parameters
                                              +
                                              +
                                              + $version + : string +
                                              +
                                              + +
                                              +
                                              + + +
                                              + Tags + +
                                              +
                                              +
                                              + throws +
                                              +
                                              + CrmException + +

                                              If a major version mismatch is detected.

                                              +
                                              + +
                                              +
                                              + +
                                              Return values
                                              + void + — + + +
                                              +
                                              +

                                              + tryDecodeJson() + +

                                              + + +

                                              Try to decode json and return false if it is +not a valid json

                                              + + + private + tryDecodeJson(string $string) : array<string|int, mixed>|false + + +
                                              Parameters
                                              +
                                              +
                                              + $string + : string +
                                              +
                                              + +
                                              +
                                              + + + +
                                              Return values
                                              + array<string|int, mixed>|false + — +

                                              Returns an associative data array or false if failed to parse.

                                              +
                                              + + +
                                              +
                                              + + + + +
                                              +
                                              +
                                              +
                                              +

                                              Search results

                                              + +
                                              +
                                              +
                                                +
                                                +
                                                +
                                                +
                                                +
                                                + + +
                                                + + + + + + + + diff --git a/app/Lib/vendor/crm-client-3.0.6/docs/client-api/classes/LDC-LDCCRM-Utils.html b/app/Lib/vendor/crm-client-3.0.6/docs/client-api/classes/LDC-LDCCRM-Utils.html new file mode 100644 index 0000000..c7d2a28 --- /dev/null +++ b/app/Lib/vendor/crm-client-3.0.6/docs/client-api/classes/LDC-LDCCRM-Utils.html @@ -0,0 +1,2005 @@ + + + + + CRM V2 + + + + + + + + + + + + + + + + + + + +
                                                +

                                                CRM V2

                                                + + + + + +
                                                + +
                                                +
                                                + + + + +
                                                + + +
                                                +

                                                + Utils + + +
                                                + in package + +
                                                + + +

                                                + + + +

                                                This is the LDCCRM utility class

                                                + + + +
                                                + Tags + +
                                                +
                                                +
                                                + category +
                                                +
                                                + +

                                                Utility

                                                +
                                                + +
                                                +
                                                + uses +
                                                +
                                                + HttpMethods + + +
                                                +
                                                + uses +
                                                +
                                                + Request + + +
                                                +
                                                + subpackage +
                                                +
                                                + +

                                                utilities

                                                +
                                                + +
                                                +
                                                + + + + + + +

                                                + Table of Contents + +

                                                + +
                                                +
                                                + $packageInfos + +  : array<string|int, mixed> +
                                                +
                                                Package infos
                                                + +
                                                + $translations + +  : array<string|int, mixed> +
                                                +
                                                Loaded translations
                                                + +
                                                + getConfig() + +  : string|null +
                                                +
                                                This is only used for unit tests.
                                                + +
                                                + getPackageInfo() + +  : array<string|int, mixed> +
                                                +
                                                Get composer.json infos
                                                + +
                                                + getRawProperty() + +  : mixed|null +
                                                +
                                                Get a property of an object.
                                                + +
                                                + getResquest() + +  : Request +
                                                +
                                                Generate a Request from the route name
                                                + +
                                                + log() + +  : void +
                                                +
                                                Write log using syslog +It also write log using \Illuminate\Support\Facades\Log +if it is present
                                                + +
                                                + makeValidator() + +  : closure +
                                                +
                                                Create a new Validator instance.
                                                + +
                                                + setRawProperty() + +  : void +
                                                +
                                                Set a property without any validation.
                                                + +
                                                + translate() + +  : string +
                                                +
                                                Translation a string using php file lang
                                                + +
                                                + makeValidatorFromRule() + +  : array<string|int, mixed> +
                                                +
                                                Generate a validator
                                                + +
                                                + validationArray() + +  : array<string|int, mixed> +
                                                +
                                                Make Array validator
                                                + +
                                                + validationBool() + +  : array<string|int, mixed> +
                                                +
                                                Make Bool validator
                                                + +
                                                + validationClosure() + +  : array<string|int, mixed> +
                                                +
                                                Make Closure validator
                                                + +
                                                + validationContainDigit() + +  : array<string|int, mixed> +
                                                +
                                                Make ContainDigit validator
                                                + +
                                                + validationContainSymbol() + +  : array<string|int, mixed> +
                                                +
                                                Make ContainSymbol validator
                                                + +
                                                + validationDate() + +  : array<string|int, mixed> +
                                                +
                                                Make Date validator
                                                + +
                                                + validationDateFormat() + +  : array<string|int, mixed> +
                                                +
                                                Make DateFormat validator
                                                + +
                                                + validationEmail() + +  : array<string|int, mixed> +
                                                +
                                                Make Email validator
                                                + +
                                                + validationInt() + +  : array<string|int, mixed> +
                                                +
                                                Make Int validator
                                                + +
                                                + validationMax() + +  : array<string|int, mixed> +
                                                +
                                                Make Max validator
                                                + +
                                                + validationMin() + +  : array<string|int, mixed> +
                                                +
                                                Make Min validator
                                                + +
                                                + validationMixedCase() + +  : array<string|int, mixed> +
                                                +
                                                Make MixedCase validator
                                                + +
                                                + validationNullable() + +  : array<string|int, mixed> +
                                                +
                                                Make Nullable validator
                                                + +
                                                + validationRequired() + +  : array<string|int, mixed> +
                                                +
                                                Make Required validator
                                                + +
                                                + validationSometimes() + +  : array<string|int, mixed> +
                                                +
                                                Make Sometimes validator
                                                + +
                                                + validationString() + +  : array<string|int, mixed> +
                                                +
                                                Make String validator
                                                + +
                                                + validationUuid() + +  : array<string|int, mixed> +
                                                +
                                                Make Uuid validator
                                                + +
                                                + + + + + + +
                                                +

                                                + Properties + +

                                                +
                                                +

                                                + $packageInfos + + + +

                                                + + +

                                                Package infos

                                                + + + private + static array<string|int, mixed> + $packageInfos + + + + + + +
                                                +
                                                +

                                                + $translations + + + +

                                                + + +

                                                Loaded translations

                                                + + + private + static array<string|int, mixed> + $translations + = [] + + + + + +
                                                +
                                                + +
                                                +

                                                + Methods + +

                                                +
                                                +

                                                + getConfig() + +

                                                + + +

                                                This is only used for unit tests.

                                                + + + public + static getConfig(string $key[, string $default = null ]) : string|null + +

                                                Get config

                                                +
                                                + +
                                                Parameters
                                                +
                                                +
                                                + $key + : string +
                                                +
                                                + +
                                                +
                                                + $default + : string + = null
                                                +
                                                + +
                                                +
                                                + + + +
                                                Return values
                                                + string|null + — + + +
                                                +
                                                +

                                                + getPackageInfo() + +

                                                + + +

                                                Get composer.json infos

                                                + + + public + static getPackageInfo() : array<string|int, mixed> + + + + + +
                                                Return values
                                                + array<string|int, mixed> + — + + +
                                                +
                                                +

                                                + getRawProperty() + +

                                                + + +

                                                Get a property of an object.

                                                + + + public + static getRawProperty(object $object, string $property) : mixed|null + +

                                                ! Warning : this will return any property of the object, use with caution.

                                                +
                                                + +
                                                Parameters
                                                +
                                                +
                                                + $object + : object +
                                                +
                                                +

                                                The object to inspect.

                                                +
                                                + +
                                                +
                                                + $property + : string +
                                                +
                                                +

                                                The object property to inspect.

                                                +
                                                + +
                                                +
                                                + + + +
                                                Return values
                                                + mixed|null + — +

                                                Returns null if the property was not found any way.

                                                +
                                                + + +
                                                +
                                                +

                                                + getResquest() + +

                                                + + +

                                                Generate a Request from the route name

                                                + + + public + static getResquest(string $routeName[, array<string|int, mixed> $query = [] ][, array<string|int, mixed> $data = [] ]) : Request + + +
                                                Parameters
                                                +
                                                +
                                                + $routeName + : string +
                                                +
                                                + +
                                                +
                                                + $query + : array<string|int, mixed> + = []
                                                +
                                                +

                                                Params to pass on to the route.

                                                +
                                                + +
                                                +
                                                + $data + : array<string|int, mixed> + = []
                                                +
                                                +

                                                Http body params.

                                                +
                                                + +
                                                +
                                                + + +
                                                + Tags + +
                                                +
                                                +
                                                + throws +
                                                +
                                                + ErrorException + +

                                                If the requested route is unknown.

                                                +
                                                + +
                                                +
                                                + throws +
                                                +
                                                + ErrorException + +

                                                If a required parameter is missing.

                                                +
                                                + +
                                                +
                                                + +
                                                Return values
                                                + Request + — + + +
                                                +
                                                +

                                                + log() + +

                                                + + +

                                                Write log using syslog +It also write log using \Illuminate\Support\Facades\Log +if it is present

                                                + + + public + static log(string $message, LogLevel $level) : void + + +
                                                Parameters
                                                +
                                                +
                                                + $message + : string +
                                                +
                                                +

                                                The message is prefixed with "LDC CRM:" .

                                                +
                                                + +
                                                +
                                                + $level + : LogLevel +
                                                +
                                                +

                                                The log level to apply.

                                                +
                                                + +
                                                +
                                                + + + +
                                                Return values
                                                + void + — + + +
                                                +
                                                +

                                                + makeValidator() + +

                                                + + +

                                                Create a new Validator instance.

                                                + + + public + static makeValidator(array<string|int, mixed> $data, array<string|int, mixed> $rules) : closure + + +
                                                Parameters
                                                +
                                                +
                                                + $data + : array<string|int, mixed> +
                                                +
                                                + +
                                                +
                                                + $rules + : array<string|int, mixed> +
                                                +
                                                + +
                                                +
                                                + + +
                                                + Tags + +
                                                +
                                                +
                                                + throws +
                                                +
                                                + ErrorException + +

                                                If an unknown validation rule is used.

                                                +
                                                + +
                                                +
                                                + +
                                                Return values
                                                + closure + — + + +
                                                +
                                                +

                                                + setRawProperty() + +

                                                + + +

                                                Set a property without any validation.

                                                + + + public + static setRawProperty(object $object, string $property, mixed $value) : void + +

                                                ! Warning : this can change any property of the object, use with caution.

                                                +
                                                + +
                                                Parameters
                                                +
                                                +
                                                + $object + : object +
                                                +
                                                +

                                                The object to inspect.

                                                +
                                                + +
                                                +
                                                + $property + : string +
                                                +
                                                +

                                                The object property to assign to.

                                                +
                                                + +
                                                +
                                                + $value + : mixed +
                                                +
                                                +

                                                The value to insert.

                                                +
                                                + +
                                                +
                                                + + +
                                                + Tags + +
                                                +
                                                +
                                                + throws +
                                                +
                                                + AccessError + +

                                                If trying to set a value on a unknown property.

                                                +
                                                + +
                                                +
                                                + +
                                                Return values
                                                + void + — + + +
                                                +
                                                +

                                                + translate() + +

                                                + + +

                                                Translation a string using php file lang

                                                + + + public + static translate(string $key[, string $lang = 'fr' ]) : string + + +
                                                Parameters
                                                +
                                                +
                                                + $key + : string +
                                                +
                                                + +
                                                +
                                                + $lang + : string + = 'fr'
                                                +
                                                + +
                                                +
                                                + + + +
                                                Return values
                                                + string + — + + +
                                                +
                                                +

                                                + makeValidatorFromRule() + +

                                                + + +

                                                Generate a validator

                                                + + + private + static makeValidatorFromRule(mixed $rule, array<string|int, mixed> $data, string $attribute) : array<string|int, mixed> + + +
                                                Parameters
                                                +
                                                +
                                                + $rule + : mixed +
                                                +
                                                + +
                                                +
                                                + $data + : array<string|int, mixed> +
                                                +
                                                + +
                                                +
                                                + $attribute + : string +
                                                +
                                                + +
                                                +
                                                + + +
                                                + Tags + +
                                                +
                                                +
                                                + throws +
                                                +
                                                + ErrorException + +

                                                If a rule is unknown.

                                                +
                                                + +
                                                +
                                                + +
                                                Return values
                                                + array<string|int, mixed> + — + + +
                                                +
                                                +

                                                + validationArray() + +

                                                + + +

                                                Make Array validator

                                                + + + private + static validationArray(string $attribute, mixed $value) : array<string|int, mixed> + + +
                                                Parameters
                                                +
                                                +
                                                + $attribute + : string +
                                                +
                                                + +
                                                +
                                                + $value + : mixed +
                                                +
                                                + +
                                                +
                                                + + + +
                                                Return values
                                                + array<string|int, mixed> + — + + +
                                                +
                                                +

                                                + validationBool() + +

                                                + + +

                                                Make Bool validator

                                                + + + private + static validationBool(string $attribute, mixed $value) : array<string|int, mixed> + + +
                                                Parameters
                                                +
                                                +
                                                + $attribute + : string +
                                                +
                                                + +
                                                +
                                                + $value + : mixed +
                                                +
                                                + +
                                                +
                                                + + + +
                                                Return values
                                                + array<string|int, mixed> + — + + +
                                                +
                                                +

                                                + validationClosure() + +

                                                + + +

                                                Make Closure validator

                                                + + + private + static validationClosure(string $attribute, mixed $value, Closure $closure) : array<string|int, mixed> + + +
                                                Parameters
                                                +
                                                +
                                                + $attribute + : string +
                                                +
                                                + +
                                                +
                                                + $value + : mixed +
                                                +
                                                + +
                                                +
                                                + $closure + : Closure +
                                                +
                                                + +
                                                +
                                                + + + +
                                                Return values
                                                + array<string|int, mixed> + — + + +
                                                +
                                                +

                                                + validationContainDigit() + +

                                                + + +

                                                Make ContainDigit validator

                                                + + + private + static validationContainDigit(string $attribute, mixed $value) : array<string|int, mixed> + + +
                                                Parameters
                                                +
                                                +
                                                + $attribute + : string +
                                                +
                                                + +
                                                +
                                                + $value + : mixed +
                                                +
                                                + +
                                                +
                                                + + + +
                                                Return values
                                                + array<string|int, mixed> + — + + +
                                                +
                                                +

                                                + validationContainSymbol() + +

                                                + + +

                                                Make ContainSymbol validator

                                                + + + private + static validationContainSymbol(string $attribute, mixed $value) : array<string|int, mixed> + + +
                                                Parameters
                                                +
                                                +
                                                + $attribute + : string +
                                                +
                                                + +
                                                +
                                                + $value + : mixed +
                                                +
                                                + +
                                                +
                                                + + + +
                                                Return values
                                                + array<string|int, mixed> + — + + +
                                                +
                                                +

                                                + validationDate() + +

                                                + + +

                                                Make Date validator

                                                + + + private + static validationDate(string $attribute, mixed $value) : array<string|int, mixed> + + +
                                                Parameters
                                                +
                                                +
                                                + $attribute + : string +
                                                +
                                                + +
                                                +
                                                + $value + : mixed +
                                                +
                                                + +
                                                +
                                                + + + +
                                                Return values
                                                + array<string|int, mixed> + — + + +
                                                +
                                                +

                                                + validationDateFormat() + +

                                                + + +

                                                Make DateFormat validator

                                                + + + private + static validationDateFormat(string $attribute, mixed $value, array<string|int, mixed> $params) : array<string|int, mixed> + + +
                                                Parameters
                                                +
                                                +
                                                + $attribute + : string +
                                                +
                                                + +
                                                +
                                                + $value + : mixed +
                                                +
                                                + +
                                                +
                                                + $params + : array<string|int, mixed> +
                                                +
                                                + +
                                                +
                                                + + + +
                                                Return values
                                                + array<string|int, mixed> + — + + +
                                                +
                                                +

                                                + validationEmail() + +

                                                + + +

                                                Make Email validator

                                                + + + private + static validationEmail(string $attribute, mixed $value) : array<string|int, mixed> + + +
                                                Parameters
                                                +
                                                +
                                                + $attribute + : string +
                                                +
                                                + +
                                                +
                                                + $value + : mixed +
                                                +
                                                + +
                                                +
                                                + + + +
                                                Return values
                                                + array<string|int, mixed> + — + + +
                                                +
                                                +

                                                + validationInt() + +

                                                + + +

                                                Make Int validator

                                                + + + private + static validationInt(string $attribute, mixed $value) : array<string|int, mixed> + + +
                                                Parameters
                                                +
                                                +
                                                + $attribute + : string +
                                                +
                                                + +
                                                +
                                                + $value + : mixed +
                                                +
                                                + +
                                                +
                                                + + + +
                                                Return values
                                                + array<string|int, mixed> + — + + +
                                                +
                                                +

                                                + validationMax() + +

                                                + + +

                                                Make Max validator

                                                + + + private + static validationMax(string $attribute, mixed $value, array<string|int, mixed> $params) : array<string|int, mixed> + + +
                                                Parameters
                                                +
                                                +
                                                + $attribute + : string +
                                                +
                                                + +
                                                +
                                                + $value + : mixed +
                                                +
                                                + +
                                                +
                                                + $params + : array<string|int, mixed> +
                                                +
                                                + +
                                                +
                                                + + + +
                                                Return values
                                                + array<string|int, mixed> + — + + +
                                                +
                                                +

                                                + validationMin() + +

                                                + + +

                                                Make Min validator

                                                + + + private + static validationMin(string $attribute, mixed $value, array<string|int, mixed> $params) : array<string|int, mixed> + + +
                                                Parameters
                                                +
                                                +
                                                + $attribute + : string +
                                                +
                                                + +
                                                +
                                                + $value + : mixed +
                                                +
                                                + +
                                                +
                                                + $params + : array<string|int, mixed> +
                                                +
                                                + +
                                                +
                                                + + + +
                                                Return values
                                                + array<string|int, mixed> + — + + +
                                                +
                                                +

                                                + validationMixedCase() + +

                                                + + +

                                                Make MixedCase validator

                                                + + + private + static validationMixedCase(string $attribute, mixed $value) : array<string|int, mixed> + + +
                                                Parameters
                                                +
                                                +
                                                + $attribute + : string +
                                                +
                                                + +
                                                +
                                                + $value + : mixed +
                                                +
                                                + +
                                                +
                                                + + + +
                                                Return values
                                                + array<string|int, mixed> + — + + +
                                                +
                                                +

                                                + validationNullable() + +

                                                + + +

                                                Make Nullable validator

                                                + + + private + static validationNullable(string $attribute, mixed $value) : array<string|int, mixed> + + +
                                                Parameters
                                                +
                                                +
                                                + $attribute + : string +
                                                +
                                                + +
                                                +
                                                + $value + : mixed +
                                                +
                                                + +
                                                +
                                                + + + +
                                                Return values
                                                + array<string|int, mixed> + — + + +
                                                +
                                                +

                                                + validationRequired() + +

                                                + + +

                                                Make Required validator

                                                + + + private + static validationRequired(string $attribute, array<string|int, mixed> $data) : array<string|int, mixed> + + +
                                                Parameters
                                                +
                                                +
                                                + $attribute + : string +
                                                +
                                                + +
                                                +
                                                + $data + : array<string|int, mixed> +
                                                +
                                                + +
                                                +
                                                + + + +
                                                Return values
                                                + array<string|int, mixed> + — + + +
                                                +
                                                +

                                                + validationSometimes() + +

                                                + + +

                                                Make Sometimes validator

                                                + + + private + static validationSometimes(string $attribute, mixed $data) : array<string|int, mixed> + + +
                                                Parameters
                                                +
                                                +
                                                + $attribute + : string +
                                                +
                                                + +
                                                +
                                                + $data + : mixed +
                                                +
                                                + +
                                                +
                                                + + + +
                                                Return values
                                                + array<string|int, mixed> + — + + +
                                                +
                                                +

                                                + validationString() + +

                                                + + +

                                                Make String validator

                                                + + + private + static validationString(string $attribute, mixed $value) : array<string|int, mixed> + + +
                                                Parameters
                                                +
                                                +
                                                + $attribute + : string +
                                                +
                                                + +
                                                +
                                                + $value + : mixed +
                                                +
                                                + +
                                                +
                                                + + + +
                                                Return values
                                                + array<string|int, mixed> + — + + +
                                                +
                                                +

                                                + validationUuid() + +

                                                + + +

                                                Make Uuid validator

                                                + + + private + static validationUuid(string $attribute, mixed $value) : array<string|int, mixed> + + +
                                                Parameters
                                                +
                                                +
                                                + $attribute + : string +
                                                +
                                                + +
                                                +
                                                + $value + : mixed +
                                                +
                                                + +
                                                +
                                                + + + +
                                                Return values
                                                + array<string|int, mixed> + — + + +
                                                +
                                                + + + + +
                                                +
                                                +
                                                +
                                                +

                                                Search results

                                                + +
                                                +
                                                +
                                                  +
                                                  +
                                                  +
                                                  +
                                                  +
                                                  + + +
                                                  + + + + + + + + diff --git a/app/Lib/vendor/crm-client-3.0.6/docs/client-api/classes/LDC-LDCCRM-WordPress-WPCrm.html b/app/Lib/vendor/crm-client-3.0.6/docs/client-api/classes/LDC-LDCCRM-WordPress-WPCrm.html new file mode 100644 index 0000000..47d8cf9 --- /dev/null +++ b/app/Lib/vendor/crm-client-3.0.6/docs/client-api/classes/LDC-LDCCRM-WordPress-WPCrm.html @@ -0,0 +1,2013 @@ + + + + + CRM V2 + + + + + + + + + + + + + + + + + + + +
                                                  +

                                                  CRM V2

                                                  + + + + + +
                                                  + +
                                                  +
                                                  + + + + +
                                                  + + +
                                                  +

                                                  + WPCrm + + +
                                                  + in package + +
                                                  + + +

                                                  + + + +

                                                  Class de gestion des users en session avec Wordpress (ce truc immonde)

                                                  + + + +
                                                  + Tags + +
                                                  +
                                                  +
                                                  + category +
                                                  +
                                                  + +

                                                  API

                                                  +
                                                  + +
                                                  +
                                                  + subpackage +
                                                  +
                                                  + +

                                                  Wordpress

                                                  +
                                                  + +
                                                  +
                                                  + author +
                                                  +
                                                  + +

                                                  Jérémy Munsch jeremy.munsch@ldc.fr

                                                  +
                                                  + +
                                                  +
                                                  + license +
                                                  +
                                                  + +

                                                  MIT https://opensource.org/licenses/MIT

                                                  +
                                                  + +
                                                  +
                                                  + link +
                                                  +
                                                  + / + +
                                                  +
                                                  + + + + + + +

                                                  + Table of Contents + +

                                                  + +
                                                  +
                                                  + $api + +  : CrmApiV2 +
                                                  +
                                                  The user object
                                                  + +
                                                  + $user + +  : WPCrmUser +
                                                  +
                                                  The user object
                                                  + +
                                                  + $sessionDestroyed + +  : bool +
                                                  +
                                                  The session live status
                                                  + +
                                                  + $sessionKey + +  : string +
                                                  +
                                                  The session key name
                                                  + +
                                                  + activateUser() + +  : bool +
                                                  +
                                                  Toggle the current user optin value +on the current user and the crm
                                                  + +
                                                  + check() + +  : bool +
                                                  +
                                                  Check if the user is logged in.
                                                  + +
                                                  + deleteUser() + +  : bool +
                                                  +
                                                  Delete current customer from +the local database and the crm
                                                  + +
                                                  + getNewUser() + +  : WPCrmUser +
                                                  +
                                                  Generate a new user
                                                  + +
                                                  + getUser() + +  : WPCrmUser|null +
                                                  +
                                                  Get the current user +return null if the user is not logged in
                                                  + +
                                                  + getUserFromApi() + +  : WPCrmUser|false +
                                                  +
                                                  Get the current user +return api response code if an error occurs
                                                  + +
                                                  + getUserFromTable() + +  : array<string|int, mixed>|null +
                                                  +
                                                  Get a customer from table
                                                  + +
                                                  + getUserFromTableByEmail() + +  : array<string|int, mixed>|null +
                                                  +
                                                  Get a customer from table by an email
                                                  + +
                                                  + getUserFromTableByUuid() + +  : array<string|int, mixed>|null +
                                                  +
                                                  Get a customer from table by an email
                                                  + +
                                                  + login() + +  : WPCrmUser|false +
                                                  +
                                                  Try to login with CRM API +A session will be started if credentials are valid.
                                                  + +
                                                  + logout() + +  : void +
                                                  +
                                                  Destroy the customer from session +and therefore logout
                                                  + +
                                                  + saveUser() + +  : bool +
                                                  +
                                                  Save current customer to +the local database and on crm
                                                  + +
                                                  + setSingleOptin() + +  : bool +
                                                  +
                                                  Set the single optin status for an email +on the crm
                                                  + +
                                                  + toggleUserOptin() + +  : bool +
                                                  +
                                                  Toggle the current user optin value +on the current user and the crm
                                                  + +
                                                  + unsetActiveUser() + +  : void +
                                                  +
                                                  Remove active user +to prevent WPCrm::check to return true
                                                  + +
                                                  + bootSessionIfNeeded() + +  : void +
                                                  +
                                                  Boot the php session if needed
                                                  + +
                                                  + deleteUserFromTable() + +  : int +
                                                  +
                                                  Save or update the user to the table
                                                  + +
                                                  + getCustomer() + +  : Customer|null +
                                                  +
                                                  Get all customer infos
                                                  + +
                                                  + getWpDb() + +  : object +
                                                  +
                                                  Get WP 'pdo instance'
                                                  + +
                                                  + initLdcApi() + +  : CrmApiV2 +
                                                  +
                                                  Get the initialized API object
                                                  + +
                                                  + loginUserWithApi() + +  : bool +
                                                  +
                                                  Check customer credentials using the CRM.
                                                  + +
                                                  + makeApiV2Call() + +  : mixed|false +
                                                  +
                                                  Make a call using apiV2
                                                  + +
                                                  + query() + +  : int|bool +
                                                  +
                                                  Query in DB
                                                  + +
                                                  + saveOrUpdateUserToTable() + +  : int +
                                                  +
                                                  Save or update the user to the table
                                                  + +
                                                  + setUser() + +  : void +
                                                  +
                                                  Create a user +stores it to the session +and finally saves it to the database if it does not exists
                                                  + +
                                                  + + + + + + +
                                                  +

                                                  + Properties + +

                                                  +
                                                  +

                                                  + $api + + + +

                                                  + + +

                                                  The user object

                                                  + + + protected + static CrmApiV2 + $api + = null + + + + + +
                                                  +
                                                  +

                                                  + $user + + + +

                                                  + + +

                                                  The user object

                                                  + + + protected + static WPCrmUser + $user + = null + + + + + +
                                                  +
                                                  +

                                                  + $sessionDestroyed + + + +

                                                  + + +

                                                  The session live status

                                                  + + + private + static bool + $sessionDestroyed + = false + + + + + +
                                                  +
                                                  +

                                                  + $sessionKey + + + +

                                                  + + +

                                                  The session key name

                                                  + + + private + static string + $sessionKey + = null + + + + + +
                                                  +
                                                  + +
                                                  +

                                                  + Methods + +

                                                  +
                                                  +

                                                  + activateUser() + +

                                                  + + +

                                                  Toggle the current user optin value +on the current user and the crm

                                                  + + + public + static activateUser() : bool + + + + +
                                                  + Tags + +
                                                  +
                                                  +
                                                  + throws +
                                                  +
                                                  + ValidationException + +

                                                  If a customer's hashcode could not be validated.

                                                  +
                                                  + +
                                                  +
                                                  + throws +
                                                  +
                                                  + CrmException + +

                                                  If an error occurs on server side or on getting response.

                                                  +
                                                  + +
                                                  +
                                                  + throws +
                                                  +
                                                  + ApiErrorException + +

                                                  If any error or \LDC\LDCCRM\Enums\ApiError occurs. +Possibles are : - modelNotFound, If this customer hashcode could not be found. +- customerAlreadyActive, It the customer is already activated.

                                                  +
                                                  + +
                                                  +
                                                  + +
                                                  Return values
                                                  + bool + — +

                                                  True if the operation succeeded.

                                                  +
                                                  + + +
                                                  +
                                                  +

                                                  + check() + +

                                                  + + +

                                                  Check if the user is logged in.

                                                  + + + public + static check() : bool + +

                                                  This means he has an active valid session.

                                                  +
                                                  + + + + +
                                                  Return values
                                                  + bool + — + + +
                                                  +
                                                  +

                                                  + deleteUser() + +

                                                  + + +

                                                  Delete current customer from +the local database and the crm

                                                  + + + public + static deleteUser() : bool + + + + +
                                                  + Tags + +
                                                  +
                                                  +
                                                  + throws +
                                                  +
                                                  + CrmException + +

                                                  If a critical error occured.

                                                  +
                                                  + +
                                                  +
                                                  + throws +
                                                  +
                                                  + ApiErrorException + +

                                                  If any error or \LDC\LDCCRM\Enums\ApiError occurs. +Possibles are : - modelNotFound, If this customer hashcode could not be found.

                                                  +
                                                  + +
                                                  +
                                                  + phpcs:ignore +
                                                  +
                                                  + +

                                                  Squiz.Commenting.FunctionCommentThrowTag.WrongNumber

                                                  +
                                                  + +
                                                  +
                                                  + +
                                                  Return values
                                                  + bool + — +

                                                  true if the operation succeeded

                                                  +
                                                  + + +
                                                  +
                                                  +

                                                  + getNewUser() + +

                                                  + + +

                                                  Generate a new user

                                                  + + + public + static getNewUser() : WPCrmUser + + + + + +
                                                  Return values
                                                  + WPCrmUser + — + + +
                                                  +
                                                  +

                                                  + getUser() + +

                                                  + + +

                                                  Get the current user +return null if the user is not logged in

                                                  + + + public + static getUser() : WPCrmUser|null + + + + + +
                                                  Return values
                                                  + WPCrmUser|null + — + + +
                                                  +
                                                  +

                                                  + getUserFromApi() + +

                                                  + + +

                                                  Get the current user +return api response code if an error occurs

                                                  + + + public + static getUserFromApi(string $identification) : WPCrmUser|false + + +
                                                  Parameters
                                                  +
                                                  +
                                                  + $identification + : string +
                                                  +
                                                  +

                                                  The customer hashcode or email.

                                                  +
                                                  + +
                                                  +
                                                  + + +
                                                  + Tags + +
                                                  +
                                                  +
                                                  + throws +
                                                  +
                                                  + CrmException + +

                                                  If an error occurs on server side or on getting response.

                                                  +
                                                  + +
                                                  +
                                                  + throws +
                                                  +
                                                  + ApiErrorException + +

                                                  If any error or \LDC\LDCCRM\Enums\ApiError occurs.

                                                  +
                                                  + +
                                                  +
                                                  + phpcs:ignore +
                                                  +
                                                  + +

                                                  Squiz.Commenting.FunctionCommentThrowTag.WrongNumber

                                                  +
                                                  + +
                                                  +
                                                  + +
                                                  Return values
                                                  + WPCrmUser|false + — + + +
                                                  +
                                                  +

                                                  + getUserFromTable() + +

                                                  + + +

                                                  Get a customer from table

                                                  + + + public + static getUserFromTable(string $hashcode) : array<string|int, mixed>|null + + +
                                                  Parameters
                                                  +
                                                  +
                                                  + $hashcode + : string +
                                                  +
                                                  +

                                                  The customer hashcode.

                                                  +
                                                  + +
                                                  +
                                                  + + + +
                                                  Return values
                                                  + array<string|int, mixed>|null + — +

                                                  Database query result in format specified by $output or null on failure.

                                                  +
                                                  + + +
                                                  +
                                                  +

                                                  + getUserFromTableByEmail() + +

                                                  + + +

                                                  Get a customer from table by an email

                                                  + + + public + static getUserFromTableByEmail(string $email) : array<string|int, mixed>|null + + +
                                                  Parameters
                                                  +
                                                  +
                                                  + $email + : string +
                                                  +
                                                  +

                                                  The customer email.

                                                  +
                                                  + +
                                                  +
                                                  + + + +
                                                  Return values
                                                  + array<string|int, mixed>|null + — +

                                                  Database query result in format specified by $output or null on failure.

                                                  +
                                                  + + +
                                                  +
                                                  +

                                                  + getUserFromTableByUuid() + +

                                                  + + +

                                                  Get a customer from table by an email

                                                  + + + public + static getUserFromTableByUuid(string $uuid) : array<string|int, mixed>|null + + +
                                                  Parameters
                                                  +
                                                  +
                                                  + $uuid + : string +
                                                  +
                                                  +

                                                  The customer transaction uuid.

                                                  +
                                                  + +
                                                  +
                                                  + + + +
                                                  Return values
                                                  + array<string|int, mixed>|null + — +

                                                  Database query result in format specified by $output or null on failure.

                                                  +
                                                  + + +
                                                  +
                                                  +

                                                  + login() + +

                                                  + + +

                                                  Try to login with CRM API +A session will be started if credentials are valid.

                                                  + + + public + static login(string $email, string $password) : WPCrmUser|false + + +
                                                  Parameters
                                                  +
                                                  +
                                                  + $email + : string +
                                                  +
                                                  +

                                                  The customer email.

                                                  +
                                                  + +
                                                  +
                                                  + $password + : string +
                                                  +
                                                  +

                                                  The customer password.

                                                  +
                                                  + +
                                                  +
                                                  + + +
                                                  + Tags + +
                                                  +
                                                  +
                                                  + throws +
                                                  +
                                                  + CrmException + +

                                                  If an error occurs on server side or on getting response.

                                                  +
                                                  + +
                                                  +
                                                  + throws +
                                                  +
                                                  + ApiErrorException + +

                                                  If any error or \LDC\LDCCRM\Enums\ApiError occurs. +Possibles are : - authFailed, If credentials are not valid. +- customerNotActivated, If the account is not activated.

                                                  +
                                                  + +
                                                  +
                                                  + +
                                                  Return values
                                                  + WPCrmUser|false + — + + +
                                                  +
                                                  +

                                                  + logout() + +

                                                  + + +

                                                  Destroy the customer from session +and therefore logout

                                                  + + + public + static logout() : void + + + + + +
                                                  Return values
                                                  + void + — + + +
                                                  +
                                                  +

                                                  + saveUser() + +

                                                  + + +

                                                  Save current customer to +the local database and on crm

                                                  + + + public + static saveUser() : bool + + + + +
                                                  + Tags + +
                                                  +
                                                  +
                                                  + throws +
                                                  +
                                                  + CrmException + +

                                                  If a critical error occured.

                                                  +
                                                  + +
                                                  +
                                                  + throws +
                                                  +
                                                  + ApiErrorException + +

                                                  If any error or \LDC\LDCCRM\Enums\ApiError occurs. +Possibles are : - validationFailed, If provided data is wrong(CRM side). +- modelNotFound, If this customer hashcode could not be found.

                                                  +
                                                  + +
                                                  +
                                                  + phpcs:ignore +
                                                  +
                                                  + +

                                                  Squiz.Commenting.FunctionCommentThrowTag.WrongNumber

                                                  +
                                                  + +
                                                  +
                                                  + +
                                                  Return values
                                                  + bool + — +

                                                  true if the operation succeeded false otherwise

                                                  +
                                                  + + +
                                                  +
                                                  +

                                                  + setSingleOptin() + +

                                                  + + +

                                                  Set the single optin status for an email +on the crm

                                                  + + + public + static setSingleOptin(string $email, bool $opt_in) : bool + + +
                                                  Parameters
                                                  +
                                                  +
                                                  + $email + : string +
                                                  +
                                                  + +
                                                  +
                                                  + $opt_in + : bool +
                                                  +
                                                  + +
                                                  +
                                                  + + +
                                                  + Tags + +
                                                  +
                                                  +
                                                  + throws +
                                                  +
                                                  + ValidationException + +

                                                  If a field email could not be validated.

                                                  +
                                                  + +
                                                  +
                                                  + throws +
                                                  +
                                                  + CrmException + +

                                                  If an error occurs on server side or on getting response.

                                                  +
                                                  + +
                                                  +
                                                  + throws +
                                                  +
                                                  + ApiErrorException + +

                                                  If any error or \LDC\LDCCRM\Enums\ApiError occurs. +Possibles are : - singleOptinCustomerExists, If a customer exists with this email.

                                                  +
                                                  + +
                                                  +
                                                  + +
                                                  Return values
                                                  + bool + — +

                                                  true if the operation succeeded false otherwise

                                                  +
                                                  + + +
                                                  +
                                                  +

                                                  + toggleUserOptin() + +

                                                  + + +

                                                  Toggle the current user optin value +on the current user and the crm

                                                  + + + public + static toggleUserOptin() : bool + + + + +
                                                  + Tags + +
                                                  +
                                                  +
                                                  + throws +
                                                  +
                                                  + CrmException + +

                                                  If a critical error occured.

                                                  +
                                                  + +
                                                  +
                                                  + throws +
                                                  +
                                                  + ApiErrorException + +

                                                  If any error or \LDC\LDCCRM\Enums\ApiError occurs. +Possibles are : - modelNotFound, If this customer hashcode could not be found.

                                                  +
                                                  + +
                                                  +
                                                  + phpcs:ignore +
                                                  +
                                                  + +

                                                  Squiz.Commenting.FunctionCommentThrowTag.WrongNumber

                                                  +
                                                  + +
                                                  +
                                                  + +
                                                  Return values
                                                  + bool + — +

                                                  true if the operation succeeded

                                                  +
                                                  + + +
                                                  +
                                                  +

                                                  + unsetActiveUser() + +

                                                  + + +

                                                  Remove active user +to prevent WPCrm::check to return true

                                                  + + + public + static unsetActiveUser() : void + + + + + +
                                                  Return values
                                                  + void + — + + +
                                                  +
                                                  +

                                                  + bootSessionIfNeeded() + +

                                                  + + +

                                                  Boot the php session if needed

                                                  + + + private + static bootSessionIfNeeded() : void + + + + + +
                                                  Return values
                                                  + void + — + + +
                                                  +
                                                  +

                                                  + deleteUserFromTable() + +

                                                  + + +

                                                  Save or update the user to the table

                                                  + + + private + static deleteUserFromTable() : int + + + + + +
                                                  Return values
                                                  + int + — +

                                                  The number of row removed from the table.

                                                  +
                                                  + + +
                                                  +
                                                  +

                                                  + getCustomer() + +

                                                  + + +

                                                  Get all customer infos

                                                  + + + private + static getCustomer() : Customer|null + + + + + +
                                                  Return values
                                                  + Customer|null + — + + +
                                                  +
                                                  +

                                                  + getWpDb() + +

                                                  + + +

                                                  Get WP 'pdo instance'

                                                  + + + private + static getWpDb() : object + + + + + +
                                                  Return values
                                                  + object + — +

                                                  The $wpdb variable

                                                  +
                                                  + + +
                                                  +
                                                  +

                                                  + initLdcApi() + +

                                                  + + +

                                                  Get the initialized API object

                                                  + + + private + static initLdcApi() : CrmApiV2 + + + + +
                                                  + Tags + +
                                                  +
                                                  +
                                                  + throws +
                                                  +
                                                  + ErrorException + +

                                                  If php does not have extension curl.

                                                  +
                                                  + +
                                                  +
                                                  + +
                                                  Return values
                                                  + CrmApiV2 + — + + +
                                                  +
                                                  +

                                                  + loginUserWithApi() + +

                                                  + + +

                                                  Check customer credentials using the CRM.

                                                  + + + private + static loginUserWithApi(string $email, string $password) : bool + + +
                                                  Parameters
                                                  +
                                                  +
                                                  + $email + : string +
                                                  +
                                                  +

                                                  The customer email.

                                                  +
                                                  + +
                                                  +
                                                  + $password + : string +
                                                  +
                                                  +

                                                  The customer password.

                                                  +
                                                  + +
                                                  +
                                                  + + +
                                                  + Tags + +
                                                  +
                                                  +
                                                  + throws +
                                                  +
                                                  + CrmException + +

                                                  If an error occurs on server side or on getting response.

                                                  +
                                                  + +
                                                  +
                                                  + throws +
                                                  +
                                                  + ApiErrorException + +

                                                  If any error or \LDC\LDCCRM\Enums\ApiError occurs. +Possibles are : - authFailed, If credentials are not valid. +- customerNotActivated, If the account is not activated.

                                                  +
                                                  + +
                                                  +
                                                  + +
                                                  Return values
                                                  + bool + — + + +
                                                  +
                                                  +

                                                  + makeApiV2Call() + +

                                                  + + +

                                                  Make a call using apiV2

                                                  + + + private + static makeApiV2Call(object|string $obj, string $method[, array<string|int, mixed> $arguments = [] ]) : mixed|false + + +
                                                  Parameters
                                                  +
                                                  +
                                                  + $obj + : object|string +
                                                  +
                                                  +

                                                  An object or a class name.

                                                  +
                                                  + +
                                                  +
                                                  + $method + : string +
                                                  +
                                                  +

                                                  The method to call.

                                                  +
                                                  + +
                                                  +
                                                  + $arguments + : array<string|int, mixed> + = []
                                                  +
                                                  +

                                                  Arguments to pass.

                                                  +
                                                  + +
                                                  +
                                                  + + +
                                                  + Tags + +
                                                  +
                                                  +
                                                  + throws +
                                                  +
                                                  + ApiErrorException + +

                                                  If any of this exception is thrown.

                                                  +
                                                  + +
                                                  +
                                                  + throws +
                                                  +
                                                  + CrmException + +

                                                  If a critical error occured.

                                                  +
                                                  + +
                                                  +
                                                  + +
                                                  Return values
                                                  + mixed|false + — + + +
                                                  +
                                                  +

                                                  + query() + +

                                                  + + +

                                                  Query in DB

                                                  + + + private + static query(string $query[, array<string|int, mixed> $params = [] ]) : int|bool + + +
                                                  Parameters
                                                  +
                                                  +
                                                  + $query + : string +
                                                  +
                                                  +

                                                  La request avec les variables en points d'interrogation.

                                                  +
                                                  + +
                                                  +
                                                  + $params + : array<string|int, mixed> + = []
                                                  +
                                                  +

                                                  Les paramètres des la requète.

                                                  +
                                                  + +
                                                  +
                                                  + + + +
                                                  Return values
                                                  + int|bool + — +

                                                  Boolean true for CREATE, ALTER, TRUNCATE and DROP queries. +Number of rows affected/selected for all other queries. Boolean false on error.

                                                  +
                                                  + + +
                                                  +
                                                  +

                                                  + saveOrUpdateUserToTable() + +

                                                  + + +

                                                  Save or update the user to the table

                                                  + + + private + static saveOrUpdateUserToTable() : int + + + + + +
                                                  Return values
                                                  + int + — +

                                                  The number of row affected on the table.

                                                  +
                                                  + + +
                                                  +
                                                  +

                                                  + setUser() + +

                                                  + + +

                                                  Create a user +stores it to the session +and finally saves it to the database if it does not exists

                                                  + + + private + static setUser(Customer $customer) : void + + +
                                                  Parameters
                                                  +
                                                  +
                                                  + $customer + : Customer +
                                                  +
                                                  + +
                                                  +
                                                  + + + +
                                                  Return values
                                                  + void + — + + +
                                                  +
                                                  + + + + +
                                                  +
                                                  +
                                                  +
                                                  +

                                                  Search results

                                                  + +
                                                  +
                                                  +
                                                    +
                                                    +
                                                    +
                                                    +
                                                    +
                                                    + + +
                                                    + + + + + + + + diff --git a/app/Lib/vendor/crm-client-3.0.6/docs/client-api/classes/LDC-LDCCRM-WordPress-WPCrmAnswer.html b/app/Lib/vendor/crm-client-3.0.6/docs/client-api/classes/LDC-LDCCRM-WordPress-WPCrmAnswer.html new file mode 100644 index 0000000..605ba07 --- /dev/null +++ b/app/Lib/vendor/crm-client-3.0.6/docs/client-api/classes/LDC-LDCCRM-WordPress-WPCrmAnswer.html @@ -0,0 +1,437 @@ + + + + + CRM V2 + + + + + + + + + + + + + + + + + + + +
                                                    +

                                                    CRM V2

                                                    + + + + + +
                                                    + +
                                                    +
                                                    + + + + +
                                                    + + +
                                                    +

                                                    + WPCrmAnswer + + +
                                                    + in package + +
                                                    + + +

                                                    + + + +

                                                    Class de gestion de la segmentation question avec Wordpress (ce truc immonde)

                                                    + + + +
                                                    + Tags + +
                                                    +
                                                    +
                                                    + category +
                                                    +
                                                    + +

                                                    API

                                                    +
                                                    + +
                                                    +
                                                    + subpackage +
                                                    +
                                                    + +

                                                    Wordpress

                                                    +
                                                    + +
                                                    +
                                                    + author +
                                                    +
                                                    + +

                                                    Jérémy Munsch jeremy.munsch@ldc.fr

                                                    +
                                                    + +
                                                    +
                                                    + license +
                                                    +
                                                    + +

                                                    MIT https://opensource.org/licenses/MIT

                                                    +
                                                    + +
                                                    +
                                                    + link +
                                                    +
                                                    + / + +
                                                    +
                                                    + + + + + + +

                                                    + Table of Contents + +

                                                    + +
                                                    +
                                                    + setQuestionAnswers() + +  : bool +
                                                    +
                                                    Set answers to a question for a specific user
                                                    + +
                                                    + + + + + + + +
                                                    +

                                                    + Methods + +

                                                    +
                                                    +

                                                    + setQuestionAnswers() + +

                                                    + + +

                                                    Set answers to a question for a specific user

                                                    + + + public + setQuestionAnswers(WPCrmUser $user, int $questionId, array<string|int, mixed> $answersId) : bool + + +
                                                    Parameters
                                                    +
                                                    +
                                                    + $user + : WPCrmUser +
                                                    +
                                                    + +
                                                    +
                                                    + $questionId + : int +
                                                    +
                                                    +

                                                    The question id .

                                                    +
                                                    + +
                                                    +
                                                    + $answersId + : array<string|int, mixed> +
                                                    +
                                                    +

                                                    An array with answers id .

                                                    +
                                                    + +
                                                    +
                                                    + + +
                                                    + Tags + +
                                                    +
                                                    +
                                                    + throws +
                                                    +
                                                    + CrmException + +

                                                    If an error occurs on server side or on getting response.

                                                    +
                                                    + +
                                                    +
                                                    + throws +
                                                    +
                                                    + ValidationException + +

                                                    If $user hashcode is not a valid UUID.

                                                    +
                                                    + +
                                                    +
                                                    + throws +
                                                    +
                                                    + ValidationException + +

                                                    If any of the provided ids are invalid.

                                                    +
                                                    + +
                                                    +
                                                    + throws +
                                                    +
                                                    + ApiErrorException + +

                                                    If any error \LDC\LDCCRM\Enums\ApiError occurs. +Possibles are : - validationFailed, If given ids are wrong(CRM side).

                                                    +
                                                    + +
                                                    +
                                                    + phpcs:ignore +
                                                    +
                                                    + +

                                                    Squiz.Commenting.FunctionCommentThrowTag.WrongNumber

                                                    +
                                                    + +
                                                    +
                                                    + +
                                                    Return values
                                                    + bool + — +

                                                    true if succeeded

                                                    +
                                                    + + +
                                                    +
                                                    + + + + +
                                                    +
                                                    +
                                                    +
                                                    +

                                                    Search results

                                                    + +
                                                    +
                                                    +
                                                      +
                                                      +
                                                      +
                                                      +
                                                      +
                                                      + + +
                                                      + + + + + + + + diff --git a/app/Lib/vendor/crm-client-3.0.6/docs/client-api/classes/LDC-LDCCRM-WordPress-WPCrmQuestion.html b/app/Lib/vendor/crm-client-3.0.6/docs/client-api/classes/LDC-LDCCRM-WordPress-WPCrmQuestion.html new file mode 100644 index 0000000..6f19b9a --- /dev/null +++ b/app/Lib/vendor/crm-client-3.0.6/docs/client-api/classes/LDC-LDCCRM-WordPress-WPCrmQuestion.html @@ -0,0 +1,592 @@ + + + + + CRM V2 + + + + + + + + + + + + + + + + + + + +
                                                      +

                                                      CRM V2

                                                      + + + + + +
                                                      + +
                                                      +
                                                      + + + + +
                                                      + + +
                                                      +

                                                      + WPCrmQuestion + + +
                                                      + in package + +
                                                      + + +

                                                      + + + +

                                                      Class de gestion de la segmentation question avec Wordpress (ce truc immonde)

                                                      + + + +
                                                      + Tags + +
                                                      +
                                                      +
                                                      + category +
                                                      +
                                                      + +

                                                      API

                                                      +
                                                      + +
                                                      +
                                                      + subpackage +
                                                      +
                                                      + +

                                                      Wordpress

                                                      +
                                                      + +
                                                      +
                                                      + author +
                                                      +
                                                      + +

                                                      Jérémy Munsch jeremy.munsch@ldc.fr

                                                      +
                                                      + +
                                                      +
                                                      + license +
                                                      +
                                                      + +

                                                      MIT https://opensource.org/licenses/MIT

                                                      +
                                                      + +
                                                      +
                                                      + link +
                                                      +
                                                      + / + +
                                                      +
                                                      + + + + + + +

                                                      + Table of Contents + +

                                                      + +
                                                      +
                                                      + allWithCustomerAnswers() + +  : array<string|int, mixed> +
                                                      +
                                                      Get all the questions with user answers
                                                      + +
                                                      + getAll() + +  : array<string|int, mixed> +
                                                      +
                                                      Get all questions only
                                                      + +
                                                      + unansweredBy() + +  : array<string|int, Question> +
                                                      +
                                                      Get unanswered question for a specific customer
                                                      + +
                                                      + + + + + + + +
                                                      +

                                                      + Methods + +

                                                      +
                                                      +

                                                      + allWithCustomerAnswers() + +

                                                      + + +

                                                      Get all the questions with user answers

                                                      + + + public + static allWithCustomerAnswers(WPCrmUser $user) : array<string|int, mixed> + + +
                                                      Parameters
                                                      +
                                                      +
                                                      + $user + : WPCrmUser +
                                                      +
                                                      + +
                                                      +
                                                      + + +
                                                      + Tags + +
                                                      +
                                                      +
                                                      + throws +
                                                      +
                                                      + CrmException + +

                                                      If an error occurs on server side or on getting response.

                                                      +
                                                      + +
                                                      +
                                                      + throws +
                                                      +
                                                      + ValidationException + +

                                                      If a hashcode is not a valid UUID.

                                                      +
                                                      + +
                                                      +
                                                      + throws +
                                                      +
                                                      + ValidationException + +

                                                      If any of the provided ids are invalid.

                                                      +
                                                      + +
                                                      +
                                                      + throws +
                                                      +
                                                      + ApiErrorException + +

                                                      If any error or \LDC\LDCCRM\Enums\ApiError occurs. +Possibles are : - modelNotFound, If the customer could not be found(CRM side).

                                                      +
                                                      + +
                                                      +
                                                      + phpcs:ignore +
                                                      +
                                                      + +

                                                      Squiz.Commenting.FunctionCommentThrowTag.WrongNumber

                                                      +
                                                      + +
                                                      +
                                                      + +
                                                      Return values
                                                      + array<string|int, mixed> + — +

                                                      Of \LDC\LDCCRM\Models\Question and their \LDC\LDCCRM\Models\Answer.

                                                      +
                                                      + + +
                                                      +
                                                      +

                                                      + getAll() + +

                                                      + + +

                                                      Get all questions only

                                                      + + + public + static getAll() : array<string|int, mixed> + + + + +
                                                      + Tags + +
                                                      +
                                                      +
                                                      + throws +
                                                      +
                                                      + CrmException + +

                                                      If an error occurs on server side or on getting response.

                                                      +
                                                      + +
                                                      +
                                                      + throws +
                                                      +
                                                      + ApiErrorException + +

                                                      If any error or \LDC\LDCCRM\Enums\ApiError occurs.

                                                      +
                                                      + +
                                                      +
                                                      + phpcs:ignore +
                                                      +
                                                      + +

                                                      Squiz.Commenting.FunctionCommentThrowTag.WrongNumber

                                                      +
                                                      + +
                                                      +
                                                      + +
                                                      Return values
                                                      + array<string|int, mixed> + — +

                                                      Of \LDC\LDCCRM\Models\Question

                                                      +
                                                      + + +
                                                      +
                                                      +

                                                      + unansweredBy() + +

                                                      + + +

                                                      Get unanswered question for a specific customer

                                                      + + + public + static unansweredBy(WPCrmUser $user) : array<string|int, Question> + + +
                                                      Parameters
                                                      +
                                                      +
                                                      + $user + : WPCrmUser +
                                                      +
                                                      + +
                                                      +
                                                      + + +
                                                      + Tags + +
                                                      +
                                                      +
                                                      + throws +
                                                      +
                                                      + CrmException + +

                                                      If an error occurs on server side or on getting response.

                                                      +
                                                      + +
                                                      +
                                                      + throws +
                                                      +
                                                      + ValidationException + +

                                                      If $user hashcode is not a valid UUID.

                                                      +
                                                      + +
                                                      +
                                                      + throws +
                                                      +
                                                      + ApiErrorException + +

                                                      If any error or \LDC\LDCCRM\Enums\ApiError occurs. +Possibles are : - modelNotFound, If the customer could not be found(CRM side).

                                                      +
                                                      + +
                                                      +
                                                      + phpcs:ignore +
                                                      +
                                                      + +

                                                      Squiz.Commenting.FunctionCommentThrowTag.WrongNumber

                                                      +
                                                      + +
                                                      +
                                                      + +
                                                      Return values
                                                      + array<string|int, Question> + — + + +
                                                      +
                                                      + + + + +
                                                      +
                                                      +
                                                      +
                                                      +

                                                      Search results

                                                      + +
                                                      +
                                                      +
                                                        +
                                                        +
                                                        +
                                                        +
                                                        +
                                                        + + +
                                                        + + + + + + + + diff --git a/app/Lib/vendor/crm-client-3.0.6/docs/client-api/classes/LDC-LDCCRM-WordPress-WPCrmUser.html b/app/Lib/vendor/crm-client-3.0.6/docs/client-api/classes/LDC-LDCCRM-WordPress-WPCrmUser.html new file mode 100644 index 0000000..2976d9d --- /dev/null +++ b/app/Lib/vendor/crm-client-3.0.6/docs/client-api/classes/LDC-LDCCRM-WordPress-WPCrmUser.html @@ -0,0 +1,1801 @@ + + + + + CRM V2 + + + + + + + + + + + + + + + + + + + +
                                                        +

                                                        CRM V2

                                                        + + + + + +
                                                        + +
                                                        +
                                                        + + + + +
                                                        + + +
                                                        +

                                                        + WPCrmUser + + +
                                                        + in package + +
                                                        + + + implements + JsonSerializable + +

                                                        + + + +

                                                        Class de gestion des users en session avec Wordpress (ce truc immonde)

                                                        + + + +
                                                        + Tags + +
                                                        +
                                                        +
                                                        + category +
                                                        +
                                                        + +

                                                        API

                                                        +
                                                        + +
                                                        +
                                                        + subpackage +
                                                        +
                                                        + +

                                                        Wordpress

                                                        +
                                                        + +
                                                        +
                                                        + author +
                                                        +
                                                        + +

                                                        Jérémy Munsch jeremy.munsch@ldc.fr

                                                        +
                                                        + +
                                                        +
                                                        + license +
                                                        +
                                                        + +

                                                        MIT https://opensource.org/licenses/MIT

                                                        +
                                                        + +
                                                        +
                                                        + link +
                                                        +
                                                        + / + +
                                                        +
                                                        + + + + +

                                                        + Interfaces, Classes and Traits + +

                                                        + +
                                                        +
                                                        JsonSerializable
                                                        +
                                                        + + +
                                                        + + +

                                                        + Table of Contents + +

                                                        + +
                                                        +
                                                        + $address + +  : string +
                                                        +
                                                        + +
                                                        + $address2 + +  : string +
                                                        +
                                                        + +
                                                        + $birth_date + +  : string +
                                                        +
                                                        + +
                                                        + $city + +  : string +
                                                        +
                                                        + +
                                                        + $country + +  : Country +
                                                        +
                                                        + +
                                                        + $email + +  : string +
                                                        +
                                                        + +
                                                        + $firstname + +  : string +
                                                        +
                                                        + +
                                                        + $hashcode + +  : string +
                                                        +
                                                        + +
                                                        + $last_connection + +  : string +
                                                        +
                                                        + +
                                                        + $lastname + +  : string +
                                                        +
                                                        + +
                                                        + $opt_in + +  : bool +
                                                        +
                                                        + +
                                                        + $password + +  : string +
                                                        +
                                                        + +
                                                        + $phone + +  : string +
                                                        +
                                                        + +
                                                        + $postcode + +  : string +
                                                        +
                                                        + +
                                                        + $status + +  : bool +
                                                        +
                                                        + +
                                                        + $uuidToken + +  : string +
                                                        +
                                                        + +
                                                        + $info + +  : Customer +
                                                        +
                                                        The CRM customer info (the api response)
                                                        + +
                                                        + $pemail + +  : string +
                                                        +
                                                        The CRM customer email
                                                        + +
                                                        + $phashcode + +  : string +
                                                        +
                                                        The CRM hashcode (UUID)
                                                        + +
                                                        + $uuidToken + +  : string +
                                                        +
                                                        The CRM customer temp uuidToken to validate transactions
                                                        + +
                                                        + __construct() + +  : mixed +
                                                        +
                                                        WPCrmUser construct
                                                        + +
                                                        + __get() + +  : bool|string|Country|null +
                                                        +
                                                        Generic accessor
                                                        + +
                                                        + __set() + +  : void +
                                                        +
                                                        Generic mutator
                                                        + +
                                                        + activate() + +  : bool +
                                                        +
                                                        Activate the account in the crm
                                                        + +
                                                        + delete() + +  : bool +
                                                        +
                                                        Delete current customer to +the local database and on crm
                                                        + +
                                                        + jsonSerialize() + +  : array<string|int, mixed> +
                                                        +
                                                        Serialize this object to an array
                                                        + +
                                                        + parseFromJson() + +  : WPCrmUser +
                                                        +
                                                        Generate a user from session data
                                                        + +
                                                        + save() + +  : bool +
                                                        +
                                                        Save current customer to +the local database and on crm
                                                        + +
                                                        + setInfo() + +  : void +
                                                        +
                                                        Set the customer info +with api response
                                                        + +
                                                        + toggleOptin() + +  : bool +
                                                        +
                                                        Toggle the current user optin value +on the current user and the crm
                                                        + +
                                                        + + + + + + +
                                                        +

                                                        + Properties + +

                                                        +
                                                        +

                                                        + $address + + + +

                                                        + + + + + public + string + $address + + +

                                                        The account address (street number, name, build, flat number)

                                                        +
                                                        + +
                                                        + + + +
                                                        +
                                                        +

                                                        + $address2 + + + +

                                                        + + + + + public + string + $address2 + + +

                                                        — The account phone (address complement)

                                                        +
                                                        + +
                                                        + + + +
                                                        +
                                                        +

                                                        + $birth_date + + + +

                                                        + + + + + public + string + $birth_date + + +

                                                        — The account birth date 'yyyy-mm-dd'

                                                        +
                                                        + +
                                                        + + + +
                                                        +
                                                        +

                                                        + $city + + + +

                                                        + + + + + public + string + $city + + +

                                                        — The account city name

                                                        +
                                                        + +
                                                        + + + +
                                                        +
                                                        +

                                                        + $country + + + +

                                                        + + + + + public + Country + $country + + +

                                                        — The account country residence

                                                        +
                                                        + +
                                                        + + + +
                                                        +
                                                        +

                                                        + $email + + + +

                                                        + + + + + public + string + $email + + +

                                                        — Must be a rfc valid email on a valid domain name

                                                        +
                                                        + +
                                                        + + + +
                                                        +
                                                        +

                                                        + $firstname + + + +

                                                        + + + + + public + string + $firstname + + +

                                                        — The account first name

                                                        +
                                                        + +
                                                        + + + +
                                                        +
                                                        +

                                                        + $hashcode + + + +

                                                        + + + + + public + string + $hashcode + + +

                                                        — The crm hashcode this is a readonly field

                                                        +
                                                        + +
                                                        + + + +
                                                        +
                                                        +

                                                        + $last_connection + + + +

                                                        + + + + + public + string + $last_connection + + +

                                                        the last time user was connected 'yyyy-mm-dd HH:ii:ss'

                                                        +
                                                        + +
                                                        + + + +
                                                        +
                                                        +

                                                        + $lastname + + + +

                                                        + + + + + public + string + $lastname + + +

                                                        — The account last name

                                                        +
                                                        + +
                                                        + + + +
                                                        +
                                                        +

                                                        + $opt_in + + + +

                                                        + + + + + public + bool + $opt_in + + +

                                                        — true if the account is opt in

                                                        +
                                                        + +
                                                        + + + +
                                                        +
                                                        +

                                                        + $password + + + +

                                                        + + + + + public + string + $password + + +

                                                        Required only on create, +must have upper and lowers chars, +at least 1 number, +at leat 1 upper char, +at least 1 lower char and +at leat 1 special char

                                                        +
                                                        + +
                                                        + + + +
                                                        +
                                                        +

                                                        + $phone + + + +

                                                        + + + + + public + string + $phone + + +

                                                        — The account phone

                                                        +
                                                        + +
                                                        + + + +
                                                        +
                                                        +

                                                        + $postcode + + + +

                                                        + + + + + public + string + $postcode + + +

                                                        — The account city postcode

                                                        +
                                                        + +
                                                        + + + +
                                                        +
                                                        +

                                                        + $status + + + +

                                                        + + + + + public + bool + $status + + +

                                                        — true if the account is activated

                                                        +
                                                        + +
                                                        + + + +
                                                        +
                                                        +

                                                        + $uuidToken + + + +

                                                        + + + + + public + string + $uuidToken + + +

                                                        — A local transaction token for this user

                                                        +
                                                        + +
                                                        + + + +
                                                        +
                                                        +

                                                        + $info + + + +

                                                        + + +

                                                        The CRM customer info (the api response)

                                                        + + + protected + Customer + $info + = null + + + + + +
                                                        +
                                                        +

                                                        + $pemail + + + +

                                                        + + +

                                                        The CRM customer email

                                                        + + + protected + string + $pemail + = null + + + + + +
                                                        +
                                                        +

                                                        + $phashcode + + + +

                                                        + + +

                                                        The CRM hashcode (UUID)

                                                        + + + protected + string + $phashcode + = null + + + + + +
                                                        +
                                                        +

                                                        + $uuidToken + + + +

                                                        + + +

                                                        The CRM customer temp uuidToken to validate transactions

                                                        + + + protected + string + $uuidToken + = null + + +

                                                        UUID

                                                        +
                                                        + + + +
                                                        +
                                                        + +
                                                        +

                                                        + Methods + +

                                                        +
                                                        +

                                                        + __construct() + +

                                                        + + +

                                                        WPCrmUser construct

                                                        + + + public + __construct([string $hashcode = null ][, string $email = null ]) : mixed + + +
                                                        Parameters
                                                        +
                                                        +
                                                        + $hashcode + : string + = null
                                                        +
                                                        +

                                                        The customer hashcode (UUID).

                                                        +
                                                        + +
                                                        +
                                                        + $email + : string + = null
                                                        +
                                                        +

                                                        The customer email.

                                                        +
                                                        + +
                                                        +
                                                        + + + +
                                                        Return values
                                                        + mixed + — + + +
                                                        +
                                                        +

                                                        + __get() + +

                                                        + + +

                                                        Generic accessor

                                                        + + + public + __get(string $prop) : bool|string|Country|null + + +
                                                        Parameters
                                                        +
                                                        +
                                                        + $prop + : string +
                                                        +
                                                        +

                                                        The prop to get.

                                                        +
                                                        + +
                                                        +
                                                        + + + +
                                                        Return values
                                                        + bool|string|Country|null + — + + +
                                                        +
                                                        +

                                                        + __set() + +

                                                        + + +

                                                        Generic mutator

                                                        + + + public + __set(string $prop, mixed $value) : void + + +
                                                        Parameters
                                                        +
                                                        +
                                                        + $prop + : string +
                                                        +
                                                        +

                                                        The property to assign.

                                                        +
                                                        + +
                                                        +
                                                        + $value + : mixed +
                                                        +
                                                        +

                                                        The value to set.

                                                        +
                                                        + +
                                                        +
                                                        + + + +
                                                        Return values
                                                        + void + — + + +
                                                        +
                                                        +

                                                        + activate() + +

                                                        + + +

                                                        Activate the account in the crm

                                                        + + + public + activate() : bool + + + + +
                                                        + Tags + +
                                                        +
                                                        +
                                                        + throws +
                                                        +
                                                        + ValidationException + +

                                                        If a customer's hashcode could not be validated.

                                                        +
                                                        + +
                                                        +
                                                        + throws +
                                                        +
                                                        + CrmException + +

                                                        If an error occurs on server side or on getting response.

                                                        +
                                                        + +
                                                        +
                                                        + throws +
                                                        +
                                                        + ApiErrorException + +

                                                        If any error or \LDC\LDCCRM\Enums\ApiError occurs. +Possibles are : - modelNotFound, If this customer hashcode could not be found. +- customerAlreadyActive, It the customer is already activated.

                                                        +
                                                        + +
                                                        +
                                                        + +
                                                        Return values
                                                        + bool + — +

                                                        true if succeeded

                                                        +
                                                        + + +
                                                        +
                                                        +

                                                        + delete() + +

                                                        + + +

                                                        Delete current customer to +the local database and on crm

                                                        + + + public + delete() : bool + + + + +
                                                        + Tags + +
                                                        +
                                                        +
                                                        + throws +
                                                        +
                                                        + CrmException + +

                                                        If a critical error occured.

                                                        +
                                                        + +
                                                        +
                                                        + throws +
                                                        +
                                                        + ApiErrorException + +

                                                        If any error or \LDC\LDCCRM\Enums\ApiError occurs. +Possibles are : - modelNotFound, If this customer hashcode could not be found.

                                                        +
                                                        + +
                                                        +
                                                        + +
                                                        Return values
                                                        + bool + — +

                                                        true if the operation succeeded false otherwise

                                                        +
                                                        + + +
                                                        +
                                                        +

                                                        + jsonSerialize() + +

                                                        + + +

                                                        Serialize this object to an array

                                                        + + + public + jsonSerialize() : array<string|int, mixed> + + + + + +
                                                        Return values
                                                        + array<string|int, mixed> + — + + +
                                                        +
                                                        +

                                                        + parseFromJson() + +

                                                        + + +

                                                        Generate a user from session data

                                                        + + + public + static parseFromJson(string $string) : WPCrmUser + + +
                                                        Parameters
                                                        +
                                                        +
                                                        + $string + : string +
                                                        +
                                                        +

                                                        The json data stored in session.

                                                        +
                                                        + +
                                                        +
                                                        + + +
                                                        + Tags + +
                                                        +
                                                        +
                                                        + throws +
                                                        +
                                                        + WpCrmInvalidJsonUserInfo + +

                                                        If the json string does no +contain the needed information.

                                                        +
                                                        + +
                                                        +
                                                        + +
                                                        Return values
                                                        + WPCrmUser + — + + +
                                                        +
                                                        +

                                                        + save() + +

                                                        + + +

                                                        Save current customer to +the local database and on crm

                                                        + + + public + save() : bool + + + + +
                                                        + Tags + +
                                                        +
                                                        +
                                                        + throws +
                                                        +
                                                        + CrmException + +

                                                        If a critical error occured.

                                                        +
                                                        + +
                                                        +
                                                        + throws +
                                                        +
                                                        + ApiErrorException + +

                                                        If any error or \LDC\LDCCRM\Enums\ApiError occurs. +Possibles are : - validationFailed, If provided data is wrong(CRM side). +- modelNotFound, If this customer hashcode could not be found.

                                                        +
                                                        + +
                                                        +
                                                        + +
                                                        Return values
                                                        + bool + — +

                                                        true if the operation succeeded false otherwise

                                                        +
                                                        + + +
                                                        +
                                                        +

                                                        + setInfo() + +

                                                        + + +

                                                        Set the customer info +with api response

                                                        + + + public + setInfo(Customer $customer) : void + + +
                                                        Parameters
                                                        +
                                                        +
                                                        + $customer + : Customer +
                                                        +
                                                        +

                                                        The Api object reponse (user).

                                                        +
                                                        + +
                                                        +
                                                        + + + +
                                                        Return values
                                                        + void + — + + +
                                                        +
                                                        +

                                                        + toggleOptin() + +

                                                        + + +

                                                        Toggle the current user optin value +on the current user and the crm

                                                        + + + public + toggleOptin() : bool + + + + +
                                                        + Tags + +
                                                        +
                                                        +
                                                        + throws +
                                                        +
                                                        + CrmException + +

                                                        If a critical error occured.

                                                        +
                                                        + +
                                                        +
                                                        + throws +
                                                        +
                                                        + ApiErrorException + +

                                                        If any error or \LDC\LDCCRM\Enums\ApiError occurs. +Possibles are : - modelNotFound, If this customer hashcode could not be found.

                                                        +
                                                        + +
                                                        +
                                                        + +
                                                        Return values
                                                        + bool + — +

                                                        true if the operation succeeded

                                                        +
                                                        + + +
                                                        +
                                                        + + + + +
                                                        +
                                                        +
                                                        +
                                                        +

                                                        Search results

                                                        + +
                                                        +
                                                        +
                                                          +
                                                          +
                                                          +
                                                          +
                                                          +
                                                          + + +
                                                          + + + + + + + + diff --git a/app/Lib/vendor/crm-client-3.0.6/docs/client-api/css/base.css b/app/Lib/vendor/crm-client-3.0.6/docs/client-api/css/base.css new file mode 100644 index 0000000..db4e807 --- /dev/null +++ b/app/Lib/vendor/crm-client-3.0.6/docs/client-api/css/base.css @@ -0,0 +1,1087 @@ + +:root { + /* Typography */ + --font-primary: 'Source Sans Pro', Helvetica, Arial, sans-serif; + --font-secondary: 'Source Sans Pro', Helvetica, Arial, sans-serif; + --font-monospace: 'Source Code Pro', monospace; + --line-height--primary: 1.6; + --letter-spacing--primary: .05rem; + --text-base-size: 1em; + --text-scale-ratio: 1.2; + + --text-xxs: calc(var(--text-base-size) / var(--text-scale-ratio) / var(--text-scale-ratio) / var(--text-scale-ratio)); + --text-xs: calc(var(--text-base-size) / var(--text-scale-ratio) / var(--text-scale-ratio)); + --text-sm: calc(var(--text-base-size) / var(--text-scale-ratio)); + --text-md: var(--text-base-size); + --text-lg: calc(var(--text-base-size) * var(--text-scale-ratio)); + --text-xl: calc(var(--text-base-size) * var(--text-scale-ratio) * var(--text-scale-ratio)); + --text-xxl: calc(var(--text-base-size) * var(--text-scale-ratio) * var(--text-scale-ratio) * var(--text-scale-ratio)); + --text-xxxl: calc(var(--text-base-size) * var(--text-scale-ratio) * var(--text-scale-ratio) * var(--text-scale-ratio) * var(--text-scale-ratio)); + --text-xxxxl: calc(var(--text-base-size) * var(--text-scale-ratio) * var(--text-scale-ratio) * var(--text-scale-ratio) * var(--text-scale-ratio) * var(--text-scale-ratio)); + --text-xxxxxl: calc(var(--text-base-size) * var(--text-scale-ratio) * var(--text-scale-ratio) * var(--text-scale-ratio) * var(--text-scale-ratio) * var(--text-scale-ratio) * var(--text-scale-ratio)); + + /* Colors */ + --primary-color: hsl(96, 57%, 60%); + --primary-color-darken: hsl(96, 57%, 40%); + --primary-color-darker: hsl(96, 57%, 20%); + --primary-color-darkest: hsl(96, 57%, 10%); + --primary-color-lighten: hsl(96, 57%, 80%); + --primary-color-lighter: hsl(96, 57%, 99%); + --dark-gray: #d1d1d1; + --light-gray: #f0f0f0; + + --text-color: var(--primary-color-darkest); + + --header-height: var(--spacing-xxxxl); + --header-bg-color: var(--primary-color); + --code-background-color: #f7faf5; + --code-border-color: #d6e7cb; + --button-border-color: var(--primary-color-darken); + --button-color: transparent; + --button-color-primary: var(--primary-color); + --button-text-color: #555; + --button-text-color-primary: white; + --popover-background-color: rgba(255, 255, 255, 0.75); + --link-color-primary: var(--primary-color-darken); + --link-hover-color-primary: var(--primary-color-darker); + --form-field-border-color: var(--dark-gray); + --form-field-color: #fff; + --admonition-success-color: var(--primary-color); + --admonition-border-color: silver; + --table-separator-color: var(--primary-color-lighten); + --title-text-color: var(--primary-color); + + --sidebar-border-color: var(--primary-color-lighten); + + /* Grid */ + --container-width: 1400px; + + /* Spacing */ + --spacing-base-size: 1rem; + --spacing-scale-ratio: 1.5; + + --spacing-xxxs: calc(var(--spacing-base-size) / var(--spacing-scale-ratio) / var(--spacing-scale-ratio) / var(--spacing-scale-ratio) / var(--spacing-scale-ratio)); + --spacing-xxs: calc(var(--spacing-base-size) / var(--spacing-scale-ratio) / var(--spacing-scale-ratio) / var(--spacing-scale-ratio)); + --spacing-xs: calc(var(--spacing-base-size) / var(--spacing-scale-ratio) / var(--spacing-scale-ratio)); + --spacing-sm: calc(var(--spacing-base-size) / var(--spacing-scale-ratio)); + --spacing-md: var(--spacing-base-size); + --spacing-lg: calc(var(--spacing-base-size) * var(--spacing-scale-ratio)); + --spacing-xl: calc(var(--spacing-base-size) * var(--spacing-scale-ratio) * var(--spacing-scale-ratio)); + --spacing-xxl: calc(var(--spacing-base-size) * var(--spacing-scale-ratio) * var(--spacing-scale-ratio) * var(--spacing-scale-ratio)); + --spacing-xxxl: calc(var(--spacing-base-size) * var(--spacing-scale-ratio) * var(--spacing-scale-ratio) * var(--spacing-scale-ratio) * var(--spacing-scale-ratio)); + --spacing-xxxxl: calc(var(--spacing-base-size) * var(--spacing-scale-ratio) * var(--spacing-scale-ratio) * var(--spacing-scale-ratio) * var(--spacing-scale-ratio) * var(--spacing-scale-ratio)); + + --border-radius-base-size: 3px; +} + +/* Base Styles +-------------------------------------------------- */ +body { + color: var(--text-color); + font-family: var(--font-primary); + font-size: var(--text-md); + letter-spacing: var(--letter-spacing--primary); + line-height: var(--line-height--primary); +} + +.phpdocumentor h1, +.phpdocumentor h2, +.phpdocumentor h3, +.phpdocumentor h4, +.phpdocumentor h5, +.phpdocumentor h6 { + margin-bottom: var(--spacing-lg); + margin-top: var(--spacing-lg); + font-weight: 600; +} + +.phpdocumentor h1 { + font-size: var(--text-xxxxl); + letter-spacing: var(--letter-spacing--primary); + line-height: 1.2; + margin-top: 0; +} + +.phpdocumentor h2 { + font-size: var(--text-xxxl); + letter-spacing: var(--letter-spacing--primary); + line-height: 1.25; +} + +.phpdocumentor h3 { + font-size: var(--text-xxl); + letter-spacing: var(--letter-spacing--primary); + line-height: 1.3; +} + +.phpdocumentor h4 { + font-size: var(--text-xl); + letter-spacing: calc(var(--letter-spacing--primary) / 2); + line-height: 1.35; + margin-bottom: var(--spacing-md); +} + +.phpdocumentor h5 { + font-size: var(--text-lg); + letter-spacing: calc(var(--letter-spacing--primary) / 4); + line-height: 1.5; + margin-bottom: var(--spacing-md); + margin-top: var(--spacing-md); +} + +.phpdocumentor h6 { + font-size: var(--text-md); + letter-spacing: 0; + line-height: var(--line-height--primary); + margin-bottom: var(--spacing-md); + margin-top: var(--spacing-md); +} + +.phpdocumentor h1 .headerlink, +.phpdocumentor h2 .headerlink, +.phpdocumentor h3 .headerlink, +.phpdocumentor h4 .headerlink, +.phpdocumentor h5 .headerlink, +.phpdocumentor h6 .headerlink +{ + transition: all .3s ease-in-out; + opacity: 0; + text-decoration: none; + color: silver; + font-size: 80%; +} + +.phpdocumentor h1:hover .headerlink, +.phpdocumentor h2:hover .headerlink, +.phpdocumentor h3:hover .headerlink, +.phpdocumentor h4:hover .headerlink, +.phpdocumentor h5:hover .headerlink, +.phpdocumentor h6:hover .headerlink +{ + opacity: 1; +} +.phpdocumentor p { + margin-top: 0; + margin-bottom: var(--spacing-md); +} +.phpdocumentor figure { + margin-bottom: var(--spacing-md); +} + +.phpdocumentor figcaption { + text-align: center; + font-style: italic; + font-size: 80%; +} +.phpdocumentor-line { + border-top: 1px solid #E1E1E1; + border-width: 0; + margin-bottom: var(--spacing-xxl); + margin-top: var(--spacing-xxl); +} +.phpdocumentor-section { + box-sizing: border-box; + margin: 0 auto; + max-width: var(--container-width); + padding: 0 var(--spacing-lg); + position: relative; + width: 100%; +} + +@media (min-width: 1200px) { + .phpdocumentor-section { + padding: 0; + width: 95%; + } +} +.phpdocumentor-column { + box-sizing: border-box; + float: left; + width: 100%; +} + +@media (min-width: 550px) { + .phpdocumentor-column { + margin-left: 4%; + } + + .phpdocumentor-column:first-child { + margin-left: 0; + } + + .-one.phpdocumentor-column { + width: 4.66666666667%; + } + + .-two.phpdocumentor-column { + width: 13.3333333333%; + } + + .-three.phpdocumentor-column { + width: 22%; + } + + .-four.phpdocumentor-column { + width: 30.6666666667%; + } + + .-five.phpdocumentor-column { + width: 39.3333333333%; + } + + .-six.phpdocumentor-column { + width: 48%; + } + + .-seven.phpdocumentor-column { + width: 56.6666666667%; + } + + .-eight.phpdocumentor-column { + width: 65.3333333333%; + } + + .-nine.phpdocumentor-column { + width: 74.0%; + } + + .-ten.phpdocumentor-column { + width: 82.6666666667%; + } + + .-eleven.phpdocumentor-column { + width: 91.3333333333%; + } + + .-twelve.phpdocumentor-column { + margin-left: 0; + width: 100%; + } + + .-one-third.phpdocumentor-column { + width: 30.6666666667%; + } + + .-two-thirds.phpdocumentor-column { + width: 65.3333333333%; + } + + .-one-half.phpdocumentor-column { + width: 48%; + } + + /* Offsets */ + .-offset-by-one.phpdocumentor-column { + margin-left: 8.66666666667%; + } + + .-offset-by-two.phpdocumentor-column { + margin-left: 17.3333333333%; + } + + .-offset-by-three.phpdocumentor-column { + margin-left: 26%; + } + + .-offset-by-four.phpdocumentor-column { + margin-left: 34.6666666667%; + } + + .-offset-by-five.phpdocumentor-column { + margin-left: 43.3333333333%; + } + + .-offset-by-six.phpdocumentor-column { + margin-left: 52%; + } + + .-offset-by-seven.phpdocumentor-column { + margin-left: 60.6666666667%; + } + + .-offset-by-eight.phpdocumentor-column { + margin-left: 69.3333333333%; + } + + .-offset-by-nine.phpdocumentor-column { + margin-left: 78.0%; + } + + .-offset-by-ten.phpdocumentor-column { + margin-left: 86.6666666667%; + } + + .-offset-by-eleven.phpdocumentor-column { + margin-left: 95.3333333333%; + } + + .-offset-by-one-third.phpdocumentor-column { + margin-left: 34.6666666667%; + } + + .-offset-by-two-thirds.phpdocumentor-column { + margin-left: 69.3333333333%; + } + + .-offset-by-one-half.phpdocumentor-column { + margin-left: 52%; + } +} +.phpdocumentor a { + color: var(--link-color-primary); +} + +.phpdocumentor a:hover { + color: var(--link-hover-color-primary); +} +.phpdocumentor-button { + background-color: var(--button-color); + border: 1px solid var(--button-border-color); + border-radius: var(--border-radius-base-size); + box-sizing: border-box; + color: var(--button-text-color); + cursor: pointer; + display: inline-block; + font-size: var(--text-sm); + font-weight: 600; + height: 38px; + letter-spacing: .1rem; + line-height: 38px; + padding: 0 var(--spacing-xxl); + text-align: center; + text-decoration: none; + text-transform: uppercase; + white-space: nowrap; + margin-bottom: var(--spacing-md); +} + +.phpdocumentor-button .-wide { + width: 100%; +} + +.phpdocumentor-button:hover, +.phpdocumentor-button:focus { + border-color: #888; + color: #333; + outline: 0; +} + +.phpdocumentor-button.-primary { + background-color: var(--button-color-primary); + border-color: var(--button-color-primary); + color: var(--button-text-color-primary); +} + +.phpdocumentor-button.-primary:hover, +.phpdocumentor-button.-primary:focus { + background-color: var(--link-color-primary); + border-color: var(--link-color-primary); + color: var(--button-text-color-primary); +} +.phpdocumentor form { + margin-bottom: var(--spacing-md); +} + +.phpdocumentor-field { + background-color: var(--form-field-color); + border: 1px solid var(--form-field-border-color); + border-radius: var(--border-radius-base-size); + box-shadow: none; + box-sizing: border-box; + height: 38px; + padding: var(--spacing-xxxs) var(--spacing-xxs); /* The 6px vertically centers text on FF, ignored by Webkit */ + margin-bottom: var(--spacing-md); +} + +/* Removes awkward default styles on some inputs for iOS */ +input[type="email"], +input[type="number"], +input[type="search"], +input[type="text"], +input[type="tel"], +input[type="url"], +input[type="password"], +textarea { + -moz-appearance: none; + -webkit-appearance: none; + appearance: none; +} + +.phpdocumentor-textarea { + min-height: 65px; + padding-bottom: var(--spacing-xxxs); + padding-top: var(--spacing-xxxs); +} + +.phpdocumentor-field:focus { + border: 1px solid var(--button-color-primary); + outline: 0; +} + +.phpdocumentor-label { + display: block; + margin-bottom: var(--spacing-xs); +} + +.phpdocumentor-fieldset { + border-width: 0; + padding: 0; +} + +input[type="checkbox"].phpdocumentor-field, +input[type="radio"].phpdocumentor-field { + display: inline; +} +div.phpdocumentor-list > ul, +ul.phpdocumentor-list { + list-style: circle inside; +} + +ol.phpdocumentor-list { + list-style: decimal inside; +} + +div.phpdocumentor-list > ul, +ol.phpdocumentor-list, +ul.phpdocumentor-list { + margin-top: 0; + padding-left: 0; + margin-bottom: var(--spacing-md); +} + +dl { + margin-bottom: var(--spacing-md); +} + +div.phpdocumentor-list > ul ul, +ul.phpdocumentor-list ul.phpdocumentor-list, +ul.phpdocumentor-list ol.phpdocumentor-list, +ol.phpdocumentor-list ol.phpdocumentor-list, +ol.phpdocumentor-list ul.phpdocumentor-list { + font-size: var(--text-sm); + margin: var(--spacing-xs) 0 var(--spacing-xs) calc(var(--spacing-xs) * 2); +} + +li.phpdocumentor-list { + margin-bottom: var(--spacing-md); +} + +.phpdocumentor dl dt { + margin-bottom: var(--spacing-xs); +} + +.phpdocumentor dl dd { + margin-bottom: var(--spacing-md); +} +.phpdocumentor pre { + margin-bottom: var(--spacing-md); +} + +.phpdocumentor-code { + font-family: var(--font-monospace); + background: var(--code-background-color); + border: 1px solid var(--code-border-color); + border-radius: var(--border-radius-base-size); + font-size: var(--text-sm); + padding: var(--spacing-sm) var(--spacing-md); + width: 100%; + box-sizing: border-box; +} + +.phpdocumentor-code.-dark { + background: var(--primary-color-darkest); + color: var(--light-gray); + box-shadow: 0 2px 3px var(--dark-gray); +} + +pre > .phpdocumentor-code { + display: block; + white-space: pre; +} +.phpdocumentor blockquote { + border-left: 4px solid var(--primary-color-darken); + margin: var(--spacing-md) 0; + padding: var(--spacing-xs) var(--spacing-sm); + color: var(--primary-color-darker); + font-style: italic; +} + +.phpdocumentor blockquote p:last-of-type { + margin-bottom: 0; +} +.phpdocumentor table { + margin-bottom: var(--spacing-md); +} + +th.phpdocumentor-heading, +td.phpdocumentor-cell { + border-bottom: 1px solid var(--table-separator-color); + padding: var(--spacing-sm) var(--spacing-md); + text-align: left; +} + +th.phpdocumentor-heading:first-child, +td.phpdocumentor-cell:first-child { + padding-left: 0; +} + +th.phpdocumentor-heading:last-child, +td.phpdocumentor-cell:last-child { + padding-right: 0; +} + +.phpdocumentor-header { + display: flex; + flex-direction: row; + align-items: stretch; + flex-wrap: wrap; + justify-content: space-between; + height: auto; + padding: var(--spacing-md) var(--spacing-md); +} + +.phpdocumentor-header__menu-button { + position: absolute; + top: -100%; + left: -100%; +} + +.phpdocumentor-header__menu-icon { + font-size: 2rem; + color: var(--primary-color); +} + +.phpdocumentor-header__menu-button:checked ~ .phpdocumentor-topnav { + max-height: 250px; + padding-top: var(--spacing-md); +} + +@media (min-width: 1000px) { + .phpdocumentor-header { + flex-direction: row; + padding: var(--spacing-lg) var(--spacing-lg); + min-height: var(--header-height); + } + + .phpdocumentor-header__menu-icon { + display: none; + } +} + +@media (min-width: 1000px) { + .phpdocumentor-header { + padding-top: 0; + padding-bottom: 0; + } +} +@media (min-width: 1200px) { + .phpdocumentor-header { + padding: 0; + } +} +.phpdocumentor-title { + box-sizing: border-box; + color: var(--title-text-color); + font-size: var(--text-xxl); + letter-spacing: .05rem; + font-weight: normal; + width: auto; + margin: 0; + display: flex; + align-items: center; +} + +.phpdocumentor-title.-without-divider { + border: none; +} + +.phpdocumentor-title__link { + transition: all .3s ease-out; + display: flex; + color: var(--title-text-color); + text-decoration: none; + font-weight: normal; + white-space: nowrap; + transform: scale(.75); + transform-origin: left; +} + +.phpdocumentor-title__link:hover { + transform: perspective(15rem) translateX(.5rem); + font-weight: 600; +} + +@media (min-width: 1000px) { + .phpdocumentor-title { + width: 30.6666666667%; + border-right: var(--sidebar-border-color) solid 1px; + } + + .phpdocumentor-title__link { + transform-origin: left; + } +} + +@media (min-width: 1000px) { + .phpdocumentor-title__link { + transform: scale(.85); + } +} + +@media (min-width: 1200px) { + .phpdocumentor-title__link { + transform: scale(1); + } +} +.phpdocumentor-topnav { + display: flex; + align-items: center; + margin: 0; + max-height: 0; + overflow: hidden; + transition: max-height 0.2s ease-out; + flex-basis: 100%; +} + +.phpdocumentor-topnav__menu { + text-align: right; + list-style: none; + margin: 0; + padding: 0; + flex: 1; + display: flex; + flex-flow: row wrap; + justify-content: center; +} + +.phpdocumentor-topnav__menu-item { + margin: 0; + width: 100%; + display: inline-block; + text-align: center; + padding: var(--spacing-sm) 0 +} + +.phpdocumentor-topnav__menu-item.-social { + width: auto; + padding: var(--spacing-sm) +} + +.phpdocumentor-topnav__menu-item a { + display: inline-block; + color: var(--text-color); + text-decoration: none; + font-size: var(--text-lg); + transition: all .3s ease-out; + border-bottom: 1px dotted transparent; + line-height: 1; +} + +.phpdocumentor-topnav__menu-item a:hover { + transform: perspective(15rem) translateY(.1rem); + border-bottom: 1px dotted var(--text-color); +} + +@media (min-width: 1000px) { + .phpdocumentor-topnav { + max-height: none; + overflow: visible; + flex-basis: auto; + } + + .phpdocumentor-topnav__menu { + display: flex; + flex-flow: row wrap; + justify-content: flex-end; + } + + .phpdocumentor-topnav__menu-item, + .phpdocumentor-topnav__menu-item.-social { + width: auto; + display: inline; + text-align: right; + padding: 0 0 0 var(--spacing-md) + } +} +.phpdocumentor-sidebar { + margin: 0; + overflow: hidden; + max-height: 0; +} + +.phpdocumentor .phpdocumentor-sidebar .phpdocumentor-list { + padding: var(--spacing-xs) var(--spacing-md); + list-style: none; + margin: 0; +} + +.phpdocumentor .phpdocumentor-sidebar li { + white-space: nowrap; + text-overflow: ellipsis; + overflow: hidden; + padding: 0 0 var(--spacing-xxxs) var(--spacing-md); +} + +.phpdocumentor .phpdocumentor-sidebar abbr, +.phpdocumentor .phpdocumentor-sidebar a { + text-decoration: none; + border-bottom: none; + color: var(--text-color); + font-size: var(--text-md); + padding-left: 0; + transition: padding-left .4s ease-out; +} + +.phpdocumentor .phpdocumentor-sidebar a:hover { + padding-left: 5px; + font-weight: 600; +} + +.phpdocumentor .phpdocumentor-sidebar__category > * { + border-left: 1px solid var(--primary-color-lighten); +} + +.phpdocumentor .phpdocumentor-sidebar__category { + margin-bottom: var(--spacing-lg); +} + +.phpdocumentor .phpdocumentor-sidebar__category-header { + font-size: var(--text-md); + margin-bottom: var(--spacing-xs); + color: var(--link-color-primary); + font-weight: 600; + border-left: 0; +} + +.phpdocumentor .phpdocumentor-sidebar__root-package, +.phpdocumentor .phpdocumentor-sidebar__root-namespace { + font-size: var(--text-md); + margin: 0; + padding-top: var(--spacing-xs); + padding-left: var(--spacing-md); + color: var(--text-color); + font-weight: normal; +} + +@media (min-width: 550px) { + .phpdocumentor-sidebar { + border-right: var(--sidebar-border-color) solid 1px; + } +} + +.phpdocumentor-sidebar__menu-button { + position: absolute; + top: -100%; + left: -100%; +} + +.phpdocumentor-sidebar__menu-icon { + font-size: var(--text-md); + font-weight: 600; + background: var(--primary-color); + color: white; + margin: 0 0 var(--spacing-lg); + display: block; + padding: var(--spacing-sm); + text-align: center; + border-radius: 3px; + text-transform: uppercase; + letter-spacing: .15rem; +} + +.phpdocumentor-sidebar__menu-button:checked ~ .phpdocumentor-sidebar { + max-height: 100%; + padding-top: var(--spacing-md); +} + +@media (min-width: 550px) { + .phpdocumentor-sidebar { + overflow: visible; + max-height: 100%; + } + + .phpdocumentor-sidebar__menu-icon { + display: none; + } +} +.phpdocumentor-admonition { + border: 1px solid var(--admonition-border-color); + border-radius: var(--border-radius-base-size); + border-color: var(--primary-color-lighten); + background-color: var(--primary-color-lighter); + padding: var(--spacing-lg); + margin: var(--spacing-lg) 0; + display: flex; + flex-direction: row; + align-items: flex-start; +} + +.phpdocumentor-admonition p:last-of-type { + margin-bottom: 0; +} + +.phpdocumentor-admonition--success, +.phpdocumentor-admonition.-success { + border-color: var(--admonition-success-color); +} + +.phpdocumentor-admonition__icon { + margin-right: var(--spacing-md); + color: var(--primary-color); + max-width: 3rem; +} +.phpdocumentor ul.phpdocumentor-breadcrumbs { + font-size: var(--text-md); + list-style: none; + margin: 0; + padding: 0; +} + +.phpdocumentor ul.phpdocumentor-breadcrumbs a { + color: var(--text-color); + text-decoration: none; +} + +.phpdocumentor ul.phpdocumentor-breadcrumbs > li { + display: inline-block; + margin: 0; +} + +.phpdocumentor ul.phpdocumentor-breadcrumbs > li + li:before { + color: var(--dark-gray); + content: "\\\A0"; + padding: 0; +} +.phpdocumentor .phpdocumentor-back-to-top { + position: fixed; + bottom: 2rem; + font-size: 2.5rem; + opacity: .25; + transition: all .3s ease-in-out; + right: 2rem; +} + +.phpdocumentor .phpdocumentor-back-to-top:hover { + color: var(--link-color-primary); + opacity: 1; +} +.phpdocumentor-search { + position: relative; + display: none; /** disable by default for non-js flow */ + opacity: .3; /** white-out default for loading indication */ + transition: opacity .3s, background .3s; + margin: var(--spacing-sm) 0; + flex: 1; + min-width: 100%; +} + +.phpdocumentor-search label { + display: flex; + align-items: center; + flex: 1; +} + +.phpdocumentor-search__icon { + color: var(--primary-color); + margin-right: var(--spacing-sm); + width: 1rem; + height: 1rem; +} + +.phpdocumentor-search--enabled { + display: flex; +} + +.phpdocumentor-search--active { + opacity: 1; +} + +.phpdocumentor-search input:disabled { + background-color: lightgray; +} + +.phpdocumentor-search__field:focus, +.phpdocumentor-search__field { + margin-bottom: 0; + border: 0; + border-bottom: 2px solid var(--primary-color); + padding: 0; + border-radius: 0; + flex: 1; +} + +@media (min-width: 1000px) { + .phpdocumentor-search { + min-width: auto; + max-width: 20rem; + margin: 0 0 0 auto; + } +} +.phpdocumentor-content { + position: relative; +} + +.phpdocumentor-search-results { + backdrop-filter: blur(5px); + background: var(--popover-background-color); + position: fixed; + top: 0; + left: 0; + right: 0; + bottom: 0; + padding: 0; + opacity: 1; + pointer-events: all; + + transition: opacity .3s, background .3s; +} + +.phpdocumentor-search-results--hidden { + background: transparent; + backdrop-filter: blur(0); + opacity: 0; + pointer-events: none; +} + +.phpdocumentor-search-results__dialog { + width: 100%; + background: white; + max-height: 100%; + display: flex; + flex-direction: column; +} + +.phpdocumentor-search-results__body { + overflow: auto; +} + +.phpdocumentor-search-results__header { + padding: var(--spacing-lg); + display: flex; + justify-content: space-between; + background: var(--primary-color-darken); + color: white; + align-items: center; +} + +.phpdocumentor-search-results__close { + font-size: var(--text-xl); + background: none; + border: none; + padding: 0; + margin: 0; +} + +.phpdocumentor .phpdocumentor-search-results__title { + font-size: var(--text-xl); + margin-bottom: 0; +} + +.phpdocumentor-search-results__entries { + list-style: none; + padding: 0 var(--spacing-lg); + margin: 0; +} + +.phpdocumentor-search-results__entry { + border-bottom: 1px solid var(--table-separator-color); + padding: var(--spacing-sm) 0; + text-align: left; +} + +.phpdocumentor-search-results__entry a { + display: block; +} + +.phpdocumentor-search-results__entry small { + margin-top: var(--spacing-xs); + margin-bottom: var(--spacing-md); + color: var(--primary-color-darker); + display: block; + word-break: break-word; +} + +.phpdocumentor-search-results__entry h3 { + font-size: var(--text-lg); + margin: 0; +} + +@media (min-width: 550px) { + .phpdocumentor-search-results { + padding: 0 var(--spacing-lg); + } + + .phpdocumentor-search-results__entry h3 { + font-size: var(--text-xxl); + } + + .phpdocumentor-search-results__dialog { + margin: var(--spacing-xl) auto; + max-width: 40rem; + background: white; + border: 1px solid silver; + box-shadow: 0 2px 5px silver; + max-height: 40rem; + border-radius: 3px; + } +} +.phpdocumentor-modal { + position: fixed; + width: 100vw; + height: 100vh; + opacity: 0; + visibility: hidden; + transition: all 0.3s ease; + top: 0; + left: 0; + display: flex; + align-items: center; + justify-content: center; +} + +.phpdocumentor-modal__open { + visibility: visible; + opacity: 1; + transition-delay: 0s; +} + +.phpdocumentor-modal-bg { + position: absolute; + background: gray; + opacity: 50%; + width: 100%; + height: 100%; +} + +.phpdocumentor-modal-container { + border-radius: 1em; + background: #fff; + position: relative; + padding: 2em; +} + +.phpdocumentor-modal__close { + position: absolute; + right: 0.75em; + top: 0.75em; + outline: none; + appearance: none; + color: var(--primary-color); + background: none; + border: 0px; + font-weight: bold; + cursor: pointer; +} + +/* Used for screen readers and such */ +.visually-hidden { + display: none; +} + +.float-right { + float: right; +} + +.float-left { + float: left; +} diff --git a/app/Lib/vendor/crm-client-3.0.6/docs/client-api/css/normalize.css b/app/Lib/vendor/crm-client-3.0.6/docs/client-api/css/normalize.css new file mode 100644 index 0000000..579152b --- /dev/null +++ b/app/Lib/vendor/crm-client-3.0.6/docs/client-api/css/normalize.css @@ -0,0 +1,427 @@ +/*! normalize.css v3.0.2 | MIT License | git.io/normalize */ + +/** + * 1. Set default font family to sans-serif. + * 2. Prevent iOS text size adjust after orientation change, without disabling + * user zoom. + */ + +html { + font-family: sans-serif; /* 1 */ + -ms-text-size-adjust: 100%; /* 2 */ + -webkit-text-size-adjust: 100%; /* 2 */ +} + +/** + * Remove default margin. + */ + +body { + margin: 0; +} + +/* HTML5 display definitions + ========================================================================== */ + +/** + * Correct `block` display not defined for any HTML5 element in IE 8/9. + * Correct `block` display not defined for `details` or `summary` in IE 10/11 + * and Firefox. + * Correct `block` display not defined for `main` in IE 11. + */ + +article, +aside, +details, +figcaption, +figure, +footer, +header, +hgroup, +main, +menu, +nav, +section, +summary { + display: block; +} + +/** + * 1. Correct `inline-block` display not defined in IE 8/9. + * 2. Normalize vertical alignment of `progress` in Chrome, Firefox, and Opera. + */ + +audio, +canvas, +progress, +video { + display: inline-block; /* 1 */ + vertical-align: baseline; /* 2 */ +} + +/** + * Prevent modern browsers from displaying `audio` without controls. + * Remove excess height in iOS 5 devices. + */ + +audio:not([controls]) { + display: none; + height: 0; +} + +/** + * Address `[hidden]` styling not present in IE 8/9/10. + * Hide the `template` element in IE 8/9/11, Safari, and Firefox < 22. + */ + +[hidden], +template { + display: none; +} + +/* Links + ========================================================================== */ + +/** + * Remove the gray background color from active links in IE 10. + */ + +a { + background-color: transparent; +} + +/** + * Improve readability when focused and also mouse hovered in all browsers. + */ + +a:active, +a:hover { + outline: 0; +} + +/* Text-level semantics + ========================================================================== */ + +/** + * Address styling not present in IE 8/9/10/11, Safari, and Chrome. + */ + +abbr[title] { + border-bottom: 1px dotted; +} + +/** + * Address style set to `bolder` in Firefox 4+, Safari, and Chrome. + */ + +b, +strong { + font-weight: bold; +} + +/** + * Address styling not present in Safari and Chrome. + */ + +dfn { + font-style: italic; +} + +/** + * Address variable `h1` font-size and margin within `section` and `article` + * contexts in Firefox 4+, Safari, and Chrome. + */ + +h1 { + font-size: 2em; + margin: 0.67em 0; +} + +/** + * Address styling not present in IE 8/9. + */ + +mark { + background: #ff0; + color: #000; +} + +/** + * Address inconsistent and variable font size in all browsers. + */ + +small { + font-size: 80%; +} + +/** + * Prevent `sub` and `sup` affecting `line-height` in all browsers. + */ + +sub, +sup { + font-size: 75%; + line-height: 0; + position: relative; + vertical-align: baseline; +} + +sup { + top: -0.5em; +} + +sub { + bottom: -0.25em; +} + +/* Embedded content + ========================================================================== */ + +/** + * Remove border when inside `a` element in IE 8/9/10. + */ + +img { + border: 0; +} + +/** + * Correct overflow not hidden in IE 9/10/11. + */ + +svg:not(:root) { + overflow: hidden; +} + +/* Grouping content + ========================================================================== */ + +/** + * Address margin not present in IE 8/9 and Safari. + */ + +figure { + margin: 1em 40px; +} + +/** + * Address differences between Firefox and other browsers. + */ + +hr { + -moz-box-sizing: content-box; + box-sizing: content-box; + height: 0; +} + +/** + * Contain overflow in all browsers. + */ + +pre { + overflow: auto; +} + +/** + * Address odd `em`-unit font size rendering in all browsers. + */ + +code, +kbd, +pre, +samp { + font-family: var(--font-monospace); + font-size: 1em; +} + +/* Forms + ========================================================================== */ + +/** + * Known limitation: by default, Chrome and Safari on OS X allow very limited + * styling of `select`, unless a `border` property is set. + */ + +/** + * 1. Correct color not being inherited. + * Known issue: affects color of disabled elements. + * 2. Correct font properties not being inherited. + * 3. Address margins set differently in Firefox 4+, Safari, and Chrome. + */ + +button, +input, +optgroup, +select, +textarea { + color: inherit; /* 1 */ + font: inherit; /* 2 */ + margin: 0; /* 3 */ +} + +/** + * Address `overflow` set to `hidden` in IE 8/9/10/11. + */ + +button { + overflow: visible; +} + +/** + * Address inconsistent `text-transform` inheritance for `button` and `select`. + * All other form control elements do not inherit `text-transform` values. + * Correct `button` style inheritance in Firefox, IE 8/9/10/11, and Opera. + * Correct `select` style inheritance in Firefox. + */ + +button, +select { + text-transform: none; +} + +/** + * 1. Avoid the WebKit bug in Android 4.0.* where (2) destroys native `audio` + * and `video` controls. + * 2. Correct inability to style clickable `input` types in iOS. + * 3. Improve usability and consistency of cursor style between image-type + * `input` and others. + */ + +button, +html input[type="button"], /* 1 */ +input[type="reset"], +input[type="submit"] { + -webkit-appearance: button; /* 2 */ + cursor: pointer; /* 3 */ +} + +/** + * Re-set default cursor for disabled elements. + */ + +button[disabled], +html input[disabled] { + cursor: default; +} + +/** + * Remove inner padding and border in Firefox 4+. + */ + +button::-moz-focus-inner, +input::-moz-focus-inner { + border: 0; + padding: 0; +} + +/** + * Address Firefox 4+ setting `line-height` on `input` using `!important` in + * the UA stylesheet. + */ + +input { + line-height: normal; +} + +/** + * It's recommended that you don't attempt to style these elements. + * Firefox's implementation doesn't respect box-sizing, padding, or width. + * + * 1. Address box sizing set to `content-box` in IE 8/9/10. + * 2. Remove excess padding in IE 8/9/10. + */ + +input[type="checkbox"], +input[type="radio"] { + box-sizing: border-box; /* 1 */ + padding: 0; /* 2 */ +} + +/** + * Fix the cursor style for Chrome's increment/decrement buttons. For certain + * `font-size` values of the `input`, it causes the cursor style of the + * decrement button to change from `default` to `text`. + */ + +input[type="number"]::-webkit-inner-spin-button, +input[type="number"]::-webkit-outer-spin-button { + height: auto; +} + +/** + * 1. Address `appearance` set to `searchfield` in Safari and Chrome. + * 2. Address `box-sizing` set to `border-box` in Safari and Chrome + * (include `-moz` to future-proof). + */ + +input[type="search"] { + -webkit-appearance: textfield; /* 1 */ + -moz-box-sizing: content-box; + -webkit-box-sizing: content-box; /* 2 */ + box-sizing: content-box; +} + +/** + * Remove inner padding and search cancel button in Safari and Chrome on OS X. + * Safari (but not Chrome) clips the cancel button when the search input has + * padding (and `textfield` appearance). + */ + +input[type="search"]::-webkit-search-cancel-button, +input[type="search"]::-webkit-search-decoration { + -webkit-appearance: none; +} + +/** + * Define consistent border, margin, and padding. + */ + +fieldset { + border: 1px solid #c0c0c0; + margin: 0 2px; + padding: 0.35em 0.625em 0.75em; +} + +/** + * 1. Correct `color` not being inherited in IE 8/9/10/11. + * 2. Remove padding so people aren't caught out if they zero out fieldsets. + */ + +legend { + border: 0; /* 1 */ + padding: 0; /* 2 */ +} + +/** + * Remove default vertical scrollbar in IE 8/9/10/11. + */ + +textarea { + overflow: auto; +} + +/** + * Don't inherit the `font-weight` (applied by a rule above). + * NOTE: the default cannot safely be changed in Chrome and Safari on OS X. + */ + +optgroup { + font-weight: bold; +} + +/* Tables + ========================================================================== */ + +/** + * Remove most spacing between table cells. + */ + +table { + border-collapse: collapse; + border-spacing: 0; +} + +td, +th { + padding: 0; +} diff --git a/app/Lib/vendor/crm-client-3.0.6/docs/client-api/css/template.css b/app/Lib/vendor/crm-client-3.0.6/docs/client-api/css/template.css new file mode 100644 index 0000000..31f00e3 --- /dev/null +++ b/app/Lib/vendor/crm-client-3.0.6/docs/client-api/css/template.css @@ -0,0 +1,188 @@ +.phpdocumentor-summary { + font-style: italic; +} +.phpdocumentor-description { + margin-bottom: var(--spacing-md); +} +.phpdocumentor-element { + position: relative; +} + +.phpdocumentor .phpdocumentor-element__name { + line-height: 1; +} + +.phpdocumentor-element__package, +.phpdocumentor-element__extends, +.phpdocumentor-element__implements { + display: block; + font-size: var(--text-xxs); + font-weight: normal; + opacity: .7; +} + +.phpdocumentor-element__package .phpdocumentor-breadcrumbs { + display: inline; +} + +.phpdocumentor-element:not(:last-child) { + border-bottom: 1px solid var(--primary-color-lighten); + padding-bottom: var(--spacing-lg); +} + +.phpdocumentor-element.-deprecated .phpdocumentor-element__name { + text-decoration: line-through; +} + +.phpdocumentor-element__modifier { + font-size: var(--text-xxs); + padding: calc(var(--spacing-base-size) / 4) calc(var(--spacing-base-size) / 2); + color: var(--text-color); + background-color: var(--light-gray); + border-radius: 3px; + text-transform: uppercase; +} +.phpdocumentor-signature { + display: inline-block; + font-size: var(--text-sm); + margin-bottom: var(--spacing-md); +} + +.phpdocumentor-signature.-deprecated .phpdocumentor-signature__name { + text-decoration: line-through; +} +.phpdocumentor-table-of-contents { +} + +.phpdocumentor-table-of-contents .phpdocumentor-table-of-contents__entry { + padding-top: var(--spacing-xs); + margin-left: 2rem; + display: flex; +} + +.phpdocumentor-table-of-contents .phpdocumentor-table-of-contents__entry > a { + flex: 0 1 auto; +} + +.phpdocumentor-table-of-contents .phpdocumentor-table-of-contents__entry > span { + flex: 1; + white-space: nowrap; + text-overflow: ellipsis; + overflow: hidden; +} + +.phpdocumentor-table-of-contents .phpdocumentor-table-of-contents__entry:after { + content: ''; + height: 12px; + width: 12px; + left: 16px; + position: absolute; +} +.phpdocumentor-table-of-contents .phpdocumentor-table-of-contents__entry.-private:after { + background: url('data:image/svg+xml;utf8,') no-repeat; +} +.phpdocumentor-table-of-contents .phpdocumentor-table-of-contents__entry.-protected:after { + left: 13px; + background: url('data:image/svg+xml;utf8,') no-repeat; +} + +.phpdocumentor-table-of-contents .phpdocumentor-table-of-contents__entry:before { + width: 1.25rem; + height: 1.25rem; + line-height: 1.25rem; + background: transparent url('data:image/svg+xml;utf8,') no-repeat center center; + content: ''; + position: absolute; + left: 0; + border-radius: 50%; + font-weight: 600; + color: white; + text-align: center; + font-size: .75rem; + margin-top: .2rem; +} + +.phpdocumentor-table-of-contents .phpdocumentor-table-of-contents__entry.-method:before { + content: 'M'; + background-image: url('data:image/svg+xml;utf8,'); +} + +.phpdocumentor-table-of-contents .phpdocumentor-table-of-contents__entry.-function:before { + content: 'M'; + background-image: url('data:image/svg+xml;utf8,'); +} + +.phpdocumentor-table-of-contents .phpdocumentor-table-of-contents__entry.-property:before { + content: 'P' +} + +.phpdocumentor-table-of-contents .phpdocumentor-table-of-contents__entry.-constant:before { + content: 'C'; + background-color: transparent; + background-image: url('data:image/svg+xml;utf8,'); +} + +.phpdocumentor-table-of-contents .phpdocumentor-table-of-contents__entry.-class:before { + content: 'C' +} + +.phpdocumentor-table-of-contents .phpdocumentor-table-of-contents__entry.-interface:before { + content: 'I' +} + +.phpdocumentor-table-of-contents .phpdocumentor-table-of-contents__entry.-trait:before { + content: 'T' +} + +.phpdocumentor-table-of-contents .phpdocumentor-table-of-contents__entry.-namespace:before { + content: 'N' +} + +.phpdocumentor-table-of-contents .phpdocumentor-table-of-contents__entry.-package:before { + content: 'P' +} + +.phpdocumentor-table-of-contents dd { + font-style: italic; + margin-left: 2rem; +} +.phpdocumentor-element-found-in { + position: absolute; + top: 0; + right: 0; + font-size: var(--text-sm); + color: gray; +} + +.phpdocumentor-element-found-in .phpdocumentor-element-found-in__source { + flex: 0 1 auto; + display: inline-flex; +} + +.phpdocumentor-element-found-in .phpdocumentor-element-found-in__source:after { + width: 1.25rem; + height: 1.25rem; + line-height: 1.25rem; + background: transparent url('data:image/svg+xml;utf8,') no-repeat center center; + content: ''; + left: 0; + border-radius: 50%; + font-weight: 600; + text-align: center; + font-size: .75rem; + margin-top: .2rem; +} +.phpdocumentor-class-graph { + width: 100%; height: 600px; border:1px solid black; overflow: hidden +} + +.phpdocumentor-class-graph__graph { + width: 100%; +} +.phpdocumentor-tag-list__definition { + display: flex; +} + +.phpdocumentor-tag-link { + margin-right: var(--spacing-sm); +} diff --git a/app/Lib/vendor/crm-client-3.0.6/docs/client-api/files/examples-customerexample.html b/app/Lib/vendor/crm-client-3.0.6/docs/client-api/files/examples-customerexample.html new file mode 100644 index 0000000..d26f76d --- /dev/null +++ b/app/Lib/vendor/crm-client-3.0.6/docs/client-api/files/examples-customerexample.html @@ -0,0 +1,162 @@ + + + + + CRM V2 + + + + + + + + + + + + + + + + + + + +
                                                          +

                                                          CRM V2

                                                          + + + + + +
                                                          + +
                                                          +
                                                          + + + + +
                                                          +
                                                            +
                                                          + +
                                                          +

                                                          CustomerExample.php

                                                          + + +
                                                          + + + + + + + + + + + + + + +
                                                          +
                                                          +
                                                          +
                                                          +

                                                          Search results

                                                          + +
                                                          +
                                                          +
                                                            +
                                                            +
                                                            +
                                                            +
                                                            +
                                                            + + +
                                                            + + + + + + + + diff --git a/app/Lib/vendor/crm-client-3.0.6/docs/client-api/files/src-crmapiv2.html b/app/Lib/vendor/crm-client-3.0.6/docs/client-api/files/src-crmapiv2.html new file mode 100644 index 0000000..7d879d1 --- /dev/null +++ b/app/Lib/vendor/crm-client-3.0.6/docs/client-api/files/src-crmapiv2.html @@ -0,0 +1,173 @@ + + + + + CRM V2 + + + + + + + + + + + + + + + + + + + +
                                                            +

                                                            CRM V2

                                                            + + + + + +
                                                            + +
                                                            +
                                                            + + + + +
                                                            +
                                                              +
                                                            + +
                                                            +

                                                            CrmApiV2.php

                                                            + + +
                                                            + + + + + + +

                                                            + Interfaces, Classes and Traits + +

                                                            + +
                                                            + +
                                                            CrmApiV2
                                                            +
                                                            This is the main class to interact with the CRM
                                                            + +
                                                            + + + + + + + + +
                                                            +
                                                            +
                                                            +
                                                            +

                                                            Search results

                                                            + +
                                                            +
                                                            +
                                                              +
                                                              +
                                                              +
                                                              +
                                                              +
                                                              + + +
                                                              + + + + + + + + diff --git a/app/Lib/vendor/crm-client-3.0.6/docs/client-api/files/src-enums-apierror.html b/app/Lib/vendor/crm-client-3.0.6/docs/client-api/files/src-enums-apierror.html new file mode 100644 index 0000000..e9164b4 --- /dev/null +++ b/app/Lib/vendor/crm-client-3.0.6/docs/client-api/files/src-enums-apierror.html @@ -0,0 +1,173 @@ + + + + + CRM V2 + + + + + + + + + + + + + + + + + + + +
                                                              +

                                                              CRM V2

                                                              + + + + + +
                                                              + +
                                                              +
                                                              + + + + +
                                                              +
                                                                +
                                                              + +
                                                              +

                                                              ApiError.php

                                                              + + +
                                                              + + + + + + +

                                                              + Interfaces, Classes and Traits + +

                                                              + +
                                                              + +
                                                              ApiError
                                                              +
                                                              This describes an API error.
                                                              + +
                                                              + + + + + + + + +
                                                              +
                                                              +
                                                              +
                                                              +

                                                              Search results

                                                              + +
                                                              +
                                                              +
                                                                +
                                                                +
                                                                +
                                                                +
                                                                +
                                                                + + +
                                                                + + + + + + + + diff --git a/app/Lib/vendor/crm-client-3.0.6/docs/client-api/files/src-enums-apistatus.html b/app/Lib/vendor/crm-client-3.0.6/docs/client-api/files/src-enums-apistatus.html new file mode 100644 index 0000000..50c855a --- /dev/null +++ b/app/Lib/vendor/crm-client-3.0.6/docs/client-api/files/src-enums-apistatus.html @@ -0,0 +1,173 @@ + + + + + CRM V2 + + + + + + + + + + + + + + + + + + + +
                                                                +

                                                                CRM V2

                                                                + + + + + +
                                                                + +
                                                                +
                                                                + + + + +
                                                                +
                                                                  +
                                                                + +
                                                                +

                                                                ApiStatus.php

                                                                + + +
                                                                + + + + + + +

                                                                + Interfaces, Classes and Traits + +

                                                                + +
                                                                + +
                                                                ApiStatus
                                                                +
                                                                + +
                                                                + + + + + + + + +
                                                                +
                                                                +
                                                                +
                                                                +

                                                                Search results

                                                                + +
                                                                +
                                                                +
                                                                  +
                                                                  +
                                                                  +
                                                                  +
                                                                  +
                                                                  + + +
                                                                  + + + + + + + + diff --git a/app/Lib/vendor/crm-client-3.0.6/docs/client-api/files/src-enums-arcadiamailtype.html b/app/Lib/vendor/crm-client-3.0.6/docs/client-api/files/src-enums-arcadiamailtype.html new file mode 100644 index 0000000..8188097 --- /dev/null +++ b/app/Lib/vendor/crm-client-3.0.6/docs/client-api/files/src-enums-arcadiamailtype.html @@ -0,0 +1,173 @@ + + + + + CRM V2 + + + + + + + + + + + + + + + + + + + +
                                                                  +

                                                                  CRM V2

                                                                  + + + + + +
                                                                  + +
                                                                  +
                                                                  + + + + +
                                                                  +
                                                                    +
                                                                  + +
                                                                  +

                                                                  ArcadiaMailType.php

                                                                  + + +
                                                                  + + + + + + +

                                                                  + Interfaces, Classes and Traits + +

                                                                  + +
                                                                  + +
                                                                  ArcadiaMailType
                                                                  +
                                                                  + +
                                                                  + + + + + + + + +
                                                                  +
                                                                  +
                                                                  +
                                                                  +

                                                                  Search results

                                                                  + +
                                                                  +
                                                                  +
                                                                    +
                                                                    +
                                                                    +
                                                                    +
                                                                    +
                                                                    + + +
                                                                    + + + + + + + + diff --git a/app/Lib/vendor/crm-client-3.0.6/docs/client-api/files/src-enums-arcadiaordertype.html b/app/Lib/vendor/crm-client-3.0.6/docs/client-api/files/src-enums-arcadiaordertype.html new file mode 100644 index 0000000..7628230 --- /dev/null +++ b/app/Lib/vendor/crm-client-3.0.6/docs/client-api/files/src-enums-arcadiaordertype.html @@ -0,0 +1,173 @@ + + + + + CRM V2 + + + + + + + + + + + + + + + + + + + +
                                                                    +

                                                                    CRM V2

                                                                    + + + + + +
                                                                    + +
                                                                    +
                                                                    + + + + +
                                                                    +
                                                                      +
                                                                    + +
                                                                    +

                                                                    ArcadiaOrderType.php

                                                                    + + +
                                                                    + + + + + + +

                                                                    + Interfaces, Classes and Traits + +

                                                                    + +
                                                                    + +
                                                                    ArcadiaOrderType
                                                                    +
                                                                    + +
                                                                    + + + + + + + + +
                                                                    +
                                                                    +
                                                                    +
                                                                    +

                                                                    Search results

                                                                    + +
                                                                    +
                                                                    +
                                                                      +
                                                                      +
                                                                      +
                                                                      +
                                                                      +
                                                                      + + +
                                                                      + + + + + + + + diff --git a/app/Lib/vendor/crm-client-3.0.6/docs/client-api/files/src-enums-country.html b/app/Lib/vendor/crm-client-3.0.6/docs/client-api/files/src-enums-country.html new file mode 100644 index 0000000..b8fd6e0 --- /dev/null +++ b/app/Lib/vendor/crm-client-3.0.6/docs/client-api/files/src-enums-country.html @@ -0,0 +1,173 @@ + + + + + CRM V2 + + + + + + + + + + + + + + + + + + + +
                                                                      +

                                                                      CRM V2

                                                                      + + + + + +
                                                                      + +
                                                                      +
                                                                      + + + + +
                                                                      +
                                                                        +
                                                                      + +
                                                                      +

                                                                      Country.php

                                                                      + + +
                                                                      + + + + + + +

                                                                      + Interfaces, Classes and Traits + +

                                                                      + +
                                                                      + +
                                                                      Country
                                                                      +
                                                                      Liste de Pays
                                                                      + +
                                                                      + + + + + + + + +
                                                                      +
                                                                      +
                                                                      +
                                                                      +

                                                                      Search results

                                                                      + +
                                                                      +
                                                                      +
                                                                        +
                                                                        +
                                                                        +
                                                                        +
                                                                        +
                                                                        + + +
                                                                        + + + + + + + + diff --git a/app/Lib/vendor/crm-client-3.0.6/docs/client-api/files/src-enums-httpmethods.html b/app/Lib/vendor/crm-client-3.0.6/docs/client-api/files/src-enums-httpmethods.html new file mode 100644 index 0000000..7229c55 --- /dev/null +++ b/app/Lib/vendor/crm-client-3.0.6/docs/client-api/files/src-enums-httpmethods.html @@ -0,0 +1,162 @@ + + + + + CRM V2 + + + + + + + + + + + + + + + + + + + +
                                                                        +

                                                                        CRM V2

                                                                        + + + + + +
                                                                        + +
                                                                        +
                                                                        + + + + +
                                                                        +
                                                                          +
                                                                        + +
                                                                        +

                                                                        HttpMethods.php

                                                                        + + +
                                                                        + + + + + + + + + + + + + + +
                                                                        +
                                                                        +
                                                                        +
                                                                        +

                                                                        Search results

                                                                        + +
                                                                        +
                                                                        +
                                                                          +
                                                                          +
                                                                          +
                                                                          +
                                                                          +
                                                                          + + +
                                                                          + + + + + + + + diff --git a/app/Lib/vendor/crm-client-3.0.6/docs/client-api/files/src-enums-loglevel.html b/app/Lib/vendor/crm-client-3.0.6/docs/client-api/files/src-enums-loglevel.html new file mode 100644 index 0000000..ea00f52 --- /dev/null +++ b/app/Lib/vendor/crm-client-3.0.6/docs/client-api/files/src-enums-loglevel.html @@ -0,0 +1,173 @@ + + + + + CRM V2 + + + + + + + + + + + + + + + + + + + +
                                                                          +

                                                                          CRM V2

                                                                          + + + + + +
                                                                          + +
                                                                          +
                                                                          + + + + +
                                                                          +
                                                                            +
                                                                          + +
                                                                          +

                                                                          LogLevel.php

                                                                          + + +
                                                                          + + + + + + +

                                                                          + Interfaces, Classes and Traits + +

                                                                          + +
                                                                          + +
                                                                          LogLevel
                                                                          +
                                                                          + +
                                                                          + + + + + + + + +
                                                                          +
                                                                          +
                                                                          +
                                                                          +

                                                                          Search results

                                                                          + +
                                                                          +
                                                                          +
                                                                            +
                                                                            +
                                                                            +
                                                                            +
                                                                            +
                                                                            + + +
                                                                            + + + + + + + + diff --git a/app/Lib/vendor/crm-client-3.0.6/docs/client-api/files/src-enums-questiontype.html b/app/Lib/vendor/crm-client-3.0.6/docs/client-api/files/src-enums-questiontype.html new file mode 100644 index 0000000..d3587ff --- /dev/null +++ b/app/Lib/vendor/crm-client-3.0.6/docs/client-api/files/src-enums-questiontype.html @@ -0,0 +1,173 @@ + + + + + CRM V2 + + + + + + + + + + + + + + + + + + + +
                                                                            +

                                                                            CRM V2

                                                                            + + + + + +
                                                                            + +
                                                                            +
                                                                            + + + + +
                                                                            +
                                                                              +
                                                                            + +
                                                                            +

                                                                            QuestionType.php

                                                                            + + +
                                                                            + + + + + + +

                                                                            + Interfaces, Classes and Traits + +

                                                                            + +
                                                                            + +
                                                                            QuestionType
                                                                            +
                                                                            + +
                                                                            + + + + + + + + +
                                                                            +
                                                                            +
                                                                            +
                                                                            +

                                                                            Search results

                                                                            + +
                                                                            +
                                                                            +
                                                                              +
                                                                              +
                                                                              +
                                                                              +
                                                                              +
                                                                              + + +
                                                                              + + + + + + + + diff --git a/app/Lib/vendor/crm-client-3.0.6/docs/client-api/files/src-exceptions-accesserror.html b/app/Lib/vendor/crm-client-3.0.6/docs/client-api/files/src-exceptions-accesserror.html new file mode 100644 index 0000000..d53d80f --- /dev/null +++ b/app/Lib/vendor/crm-client-3.0.6/docs/client-api/files/src-exceptions-accesserror.html @@ -0,0 +1,173 @@ + + + + + CRM V2 + + + + + + + + + + + + + + + + + + + +
                                                                              +

                                                                              CRM V2

                                                                              + + + + + +
                                                                              + +
                                                                              +
                                                                              + + + + +
                                                                              +
                                                                                +
                                                                              + +
                                                                              +

                                                                              AccessError.php

                                                                              + + +
                                                                              + + + + + + +

                                                                              + Interfaces, Classes and Traits + +

                                                                              + +
                                                                              + +
                                                                              AccessError
                                                                              +
                                                                              This is thrown when trying to set a value on an object property that does not exist.
                                                                              + +
                                                                              + + + + + + + + +
                                                                              +
                                                                              +
                                                                              +
                                                                              +

                                                                              Search results

                                                                              + +
                                                                              +
                                                                              +
                                                                                +
                                                                                +
                                                                                +
                                                                                +
                                                                                +
                                                                                + + +
                                                                                + + + + + + + + diff --git a/app/Lib/vendor/crm-client-3.0.6/docs/client-api/files/src-exceptions-apierrorexception.html b/app/Lib/vendor/crm-client-3.0.6/docs/client-api/files/src-exceptions-apierrorexception.html new file mode 100644 index 0000000..67c7520 --- /dev/null +++ b/app/Lib/vendor/crm-client-3.0.6/docs/client-api/files/src-exceptions-apierrorexception.html @@ -0,0 +1,175 @@ + + + + + CRM V2 + + + + + + + + + + + + + + + + + + + +
                                                                                +

                                                                                CRM V2

                                                                                + + + + + +
                                                                                + +
                                                                                +
                                                                                + + + + +
                                                                                +
                                                                                  +
                                                                                + +
                                                                                +

                                                                                ApiErrorException.php

                                                                                + + +
                                                                                + + + + + + +

                                                                                + Interfaces, Classes and Traits + +

                                                                                + +
                                                                                + +
                                                                                ApiErrorException
                                                                                +
                                                                                This would be thrown if any of the case +referenced in \LDC\LDCCRM\Enums\ApiError would +occur within the crm
                                                                                + +
                                                                                + + + + + + + + +
                                                                                +
                                                                                +
                                                                                +
                                                                                +

                                                                                Search results

                                                                                + +
                                                                                +
                                                                                +
                                                                                  +
                                                                                  +
                                                                                  +
                                                                                  +
                                                                                  +
                                                                                  + + +
                                                                                  + + + + + + + + diff --git a/app/Lib/vendor/crm-client-3.0.6/docs/client-api/files/src-exceptions-crmexception.html b/app/Lib/vendor/crm-client-3.0.6/docs/client-api/files/src-exceptions-crmexception.html new file mode 100644 index 0000000..75ac072 --- /dev/null +++ b/app/Lib/vendor/crm-client-3.0.6/docs/client-api/files/src-exceptions-crmexception.html @@ -0,0 +1,173 @@ + + + + + CRM V2 + + + + + + + + + + + + + + + + + + + +
                                                                                  +

                                                                                  CRM V2

                                                                                  + + + + + +
                                                                                  + +
                                                                                  +
                                                                                  + + + + +
                                                                                  +
                                                                                    +
                                                                                  + +
                                                                                  +

                                                                                  CrmException.php

                                                                                  + + +
                                                                                  + + + + + + +

                                                                                  + Interfaces, Classes and Traits + +

                                                                                  + +
                                                                                  + +
                                                                                  CrmException
                                                                                  +
                                                                                  This is a critical error.
                                                                                  + +
                                                                                  + + + + + + + + +
                                                                                  +
                                                                                  +
                                                                                  +
                                                                                  +

                                                                                  Search results

                                                                                  + +
                                                                                  +
                                                                                  +
                                                                                    +
                                                                                    +
                                                                                    +
                                                                                    +
                                                                                    +
                                                                                    + + +
                                                                                    + + + + + + + + diff --git a/app/Lib/vendor/crm-client-3.0.6/docs/client-api/files/src-exceptions-skipvalidationexception.html b/app/Lib/vendor/crm-client-3.0.6/docs/client-api/files/src-exceptions-skipvalidationexception.html new file mode 100644 index 0000000..0bc7082 --- /dev/null +++ b/app/Lib/vendor/crm-client-3.0.6/docs/client-api/files/src-exceptions-skipvalidationexception.html @@ -0,0 +1,173 @@ + + + + + CRM V2 + + + + + + + + + + + + + + + + + + + +
                                                                                    +

                                                                                    CRM V2

                                                                                    + + + + + +
                                                                                    + +
                                                                                    +
                                                                                    + + + + +
                                                                                    +
                                                                                      +
                                                                                    + +
                                                                                    +

                                                                                    SkipValidationException.php

                                                                                    + + +
                                                                                    + + + + + + +

                                                                                    + Interfaces, Classes and Traits + +

                                                                                    + +
                                                                                    + +
                                                                                    SkipValidationException
                                                                                    +
                                                                                    Used only for internal validator
                                                                                    + +
                                                                                    + + + + + + + + +
                                                                                    +
                                                                                    +
                                                                                    +
                                                                                    +

                                                                                    Search results

                                                                                    + +
                                                                                    +
                                                                                    +
                                                                                      +
                                                                                      +
                                                                                      +
                                                                                      +
                                                                                      +
                                                                                      + + +
                                                                                      + + + + + + + + diff --git a/app/Lib/vendor/crm-client-3.0.6/docs/client-api/files/src-exceptions-validationexception.html b/app/Lib/vendor/crm-client-3.0.6/docs/client-api/files/src-exceptions-validationexception.html new file mode 100644 index 0000000..dfadef5 --- /dev/null +++ b/app/Lib/vendor/crm-client-3.0.6/docs/client-api/files/src-exceptions-validationexception.html @@ -0,0 +1,174 @@ + + + + + CRM V2 + + + + + + + + + + + + + + + + + + + +
                                                                                      +

                                                                                      CRM V2

                                                                                      + + + + + +
                                                                                      + +
                                                                                      +
                                                                                      + + + + +
                                                                                      +
                                                                                        +
                                                                                      + +
                                                                                      +

                                                                                      ValidationException.php

                                                                                      + + +
                                                                                      + + + + + + +

                                                                                      + Interfaces, Classes and Traits + +

                                                                                      + +
                                                                                      + +
                                                                                      ValidationException
                                                                                      +
                                                                                      This would be thrown if a data could not be validated +on any models
                                                                                      + +
                                                                                      + + + + + + + + +
                                                                                      +
                                                                                      +
                                                                                      +
                                                                                      +

                                                                                      Search results

                                                                                      + +
                                                                                      +
                                                                                      +
                                                                                        +
                                                                                        +
                                                                                        +
                                                                                        +
                                                                                        +
                                                                                        + + +
                                                                                        + + + + + + + + diff --git a/app/Lib/vendor/crm-client-3.0.6/docs/client-api/files/src-exceptions-wpcrminvalidjsonuserinfo.html b/app/Lib/vendor/crm-client-3.0.6/docs/client-api/files/src-exceptions-wpcrminvalidjsonuserinfo.html new file mode 100644 index 0000000..56757be --- /dev/null +++ b/app/Lib/vendor/crm-client-3.0.6/docs/client-api/files/src-exceptions-wpcrminvalidjsonuserinfo.html @@ -0,0 +1,173 @@ + + + + + CRM V2 + + + + + + + + + + + + + + + + + + + +
                                                                                        +

                                                                                        CRM V2

                                                                                        + + + + + +
                                                                                        + +
                                                                                        +
                                                                                        + + + + +
                                                                                        +
                                                                                          +
                                                                                        + +
                                                                                        +

                                                                                        WpCrmInvalidJsonUserInfo.php

                                                                                        + + +
                                                                                        + + + + + + +

                                                                                        + Interfaces, Classes and Traits + +

                                                                                        + +
                                                                                        + +
                                                                                        WpCrmInvalidJsonUserInfo
                                                                                        +
                                                                                        This is thrown when trying to read WP customer from DB json data.
                                                                                        + +
                                                                                        + + + + + + + + +
                                                                                        +
                                                                                        +
                                                                                        +
                                                                                        +

                                                                                        Search results

                                                                                        + +
                                                                                        +
                                                                                        +
                                                                                          +
                                                                                          +
                                                                                          +
                                                                                          +
                                                                                          +
                                                                                          + + +
                                                                                          + + + + + + + + diff --git a/app/Lib/vendor/crm-client-3.0.6/docs/client-api/files/src-models-answer.html b/app/Lib/vendor/crm-client-3.0.6/docs/client-api/files/src-models-answer.html new file mode 100644 index 0000000..a75ad59 --- /dev/null +++ b/app/Lib/vendor/crm-client-3.0.6/docs/client-api/files/src-models-answer.html @@ -0,0 +1,174 @@ + + + + + CRM V2 + + + + + + + + + + + + + + + + + + + +
                                                                                          +

                                                                                          CRM V2

                                                                                          + + + + + +
                                                                                          + +
                                                                                          +
                                                                                          + + + + +
                                                                                          +
                                                                                            +
                                                                                          + +
                                                                                          +

                                                                                          Answer.php

                                                                                          + + +
                                                                                          + + + + + + +

                                                                                          + Interfaces, Classes and Traits + +

                                                                                          + +
                                                                                          + +
                                                                                          Answer
                                                                                          +
                                                                                          This class represents an answer +It has a method to submit answers
                                                                                          + +
                                                                                          + + + + + + + + +
                                                                                          +
                                                                                          +
                                                                                          +
                                                                                          +

                                                                                          Search results

                                                                                          + +
                                                                                          +
                                                                                          +
                                                                                            +
                                                                                            +
                                                                                            +
                                                                                            +
                                                                                            +
                                                                                            + + +
                                                                                            + + + + + + + + diff --git a/app/Lib/vendor/crm-client-3.0.6/docs/client-api/files/src-models-arcadiamaildefault.html b/app/Lib/vendor/crm-client-3.0.6/docs/client-api/files/src-models-arcadiamaildefault.html new file mode 100644 index 0000000..e38cdd1 --- /dev/null +++ b/app/Lib/vendor/crm-client-3.0.6/docs/client-api/files/src-models-arcadiamaildefault.html @@ -0,0 +1,174 @@ + + + + + CRM V2 + + + + + + + + + + + + + + + + + + + +
                                                                                            +

                                                                                            CRM V2

                                                                                            + + + + + +
                                                                                            + +
                                                                                            +
                                                                                            + + + + +
                                                                                            +
                                                                                              +
                                                                                            + +
                                                                                            +

                                                                                            ArcadiaMailDefault.php

                                                                                            + + +
                                                                                            + + + + + + +

                                                                                            + Interfaces, Classes and Traits + +

                                                                                            + +
                                                                                            + +
                                                                                            ArcadiaMailDefault
                                                                                            +
                                                                                            This class represents the customer info with +the account validation status
                                                                                            + +
                                                                                            + + + + + + + + +
                                                                                            +
                                                                                            +
                                                                                            +
                                                                                            +

                                                                                            Search results

                                                                                            + +
                                                                                            +
                                                                                            +
                                                                                              +
                                                                                              +
                                                                                              +
                                                                                              +
                                                                                              +
                                                                                              + + +
                                                                                              + + + + + + + + diff --git a/app/Lib/vendor/crm-client-3.0.6/docs/client-api/files/src-models-arcadiamailgame.html b/app/Lib/vendor/crm-client-3.0.6/docs/client-api/files/src-models-arcadiamailgame.html new file mode 100644 index 0000000..bb2b6fe --- /dev/null +++ b/app/Lib/vendor/crm-client-3.0.6/docs/client-api/files/src-models-arcadiamailgame.html @@ -0,0 +1,174 @@ + + + + + CRM V2 + + + + + + + + + + + + + + + + + + + +
                                                                                              +

                                                                                              CRM V2

                                                                                              + + + + + +
                                                                                              + +
                                                                                              +
                                                                                              + + + + +
                                                                                              +
                                                                                                +
                                                                                              + +
                                                                                              +

                                                                                              ArcadiaMailGame.php

                                                                                              + + +
                                                                                              + + + + + + +

                                                                                              + Interfaces, Classes and Traits + +

                                                                                              + +
                                                                                              + +
                                                                                              ArcadiaMailGame
                                                                                              +
                                                                                              This class represents the customer info with +the account validation status
                                                                                              + +
                                                                                              + + + + + + + + +
                                                                                              +
                                                                                              +
                                                                                              +
                                                                                              +

                                                                                              Search results

                                                                                              + +
                                                                                              +
                                                                                              +
                                                                                                +
                                                                                                +
                                                                                                +
                                                                                                +
                                                                                                +
                                                                                                + + +
                                                                                                + + + + + + + + diff --git a/app/Lib/vendor/crm-client-3.0.6/docs/client-api/files/src-models-crmclientmodel.html b/app/Lib/vendor/crm-client-3.0.6/docs/client-api/files/src-models-crmclientmodel.html new file mode 100644 index 0000000..d811a9c --- /dev/null +++ b/app/Lib/vendor/crm-client-3.0.6/docs/client-api/files/src-models-crmclientmodel.html @@ -0,0 +1,162 @@ + + + + + CRM V2 + + + + + + + + + + + + + + + + + + + +
                                                                                                +

                                                                                                CRM V2

                                                                                                + + + + + +
                                                                                                + +
                                                                                                +
                                                                                                + + + + +
                                                                                                +
                                                                                                  +
                                                                                                + +
                                                                                                +

                                                                                                CrmClientModel.php

                                                                                                + + +
                                                                                                + + + + + + + + + + + + + + +
                                                                                                +
                                                                                                +
                                                                                                +
                                                                                                +

                                                                                                Search results

                                                                                                + +
                                                                                                +
                                                                                                +
                                                                                                  +
                                                                                                  +
                                                                                                  +
                                                                                                  +
                                                                                                  +
                                                                                                  + + +
                                                                                                  + + + + + + + + diff --git a/app/Lib/vendor/crm-client-3.0.6/docs/client-api/files/src-models-customer.html b/app/Lib/vendor/crm-client-3.0.6/docs/client-api/files/src-models-customer.html new file mode 100644 index 0000000..6fea515 --- /dev/null +++ b/app/Lib/vendor/crm-client-3.0.6/docs/client-api/files/src-models-customer.html @@ -0,0 +1,175 @@ + + + + + CRM V2 + + + + + + + + + + + + + + + + + + + +
                                                                                                  +

                                                                                                  CRM V2

                                                                                                  + + + + + +
                                                                                                  + +
                                                                                                  +
                                                                                                  + + + + +
                                                                                                  +
                                                                                                    +
                                                                                                  + +
                                                                                                  +

                                                                                                  Customer.php

                                                                                                  + + +
                                                                                                  + + + + + + +

                                                                                                  + Interfaces, Classes and Traits + +

                                                                                                  + +
                                                                                                  + +
                                                                                                  Customer
                                                                                                  +
                                                                                                  This class represents the customer info with +the account validation status. You can use it as +a standalone class but beware of catching exceptions
                                                                                                  + +
                                                                                                  + + + + + + + + +
                                                                                                  +
                                                                                                  +
                                                                                                  +
                                                                                                  +

                                                                                                  Search results

                                                                                                  + +
                                                                                                  +
                                                                                                  +
                                                                                                    +
                                                                                                    +
                                                                                                    +
                                                                                                    +
                                                                                                    +
                                                                                                    + + +
                                                                                                    + + + + + + + + diff --git a/app/Lib/vendor/crm-client-3.0.6/docs/client-api/files/src-models-question.html b/app/Lib/vendor/crm-client-3.0.6/docs/client-api/files/src-models-question.html new file mode 100644 index 0000000..2b74fed --- /dev/null +++ b/app/Lib/vendor/crm-client-3.0.6/docs/client-api/files/src-models-question.html @@ -0,0 +1,174 @@ + + + + + CRM V2 + + + + + + + + + + + + + + + + + + + +
                                                                                                    +

                                                                                                    CRM V2

                                                                                                    + + + + + +
                                                                                                    + +
                                                                                                    +
                                                                                                    + + + + +
                                                                                                    +
                                                                                                      +
                                                                                                    + +
                                                                                                    +

                                                                                                    Question.php

                                                                                                    + + +
                                                                                                    + + + + + + +

                                                                                                    + Interfaces, Classes and Traits + +

                                                                                                    + +
                                                                                                    + +
                                                                                                    Question
                                                                                                    +
                                                                                                    This class represents a question +It has some static methods to retrieve questions and answers
                                                                                                    + +
                                                                                                    + + + + + + + + +
                                                                                                    +
                                                                                                    +
                                                                                                    +
                                                                                                    +

                                                                                                    Search results

                                                                                                    + +
                                                                                                    +
                                                                                                    +
                                                                                                      +
                                                                                                      +
                                                                                                      +
                                                                                                      +
                                                                                                      +
                                                                                                      + + +
                                                                                                      + + + + + + + + diff --git a/app/Lib/vendor/crm-client-3.0.6/docs/client-api/files/src-models-singleoptin.html b/app/Lib/vendor/crm-client-3.0.6/docs/client-api/files/src-models-singleoptin.html new file mode 100644 index 0000000..d6a3c0d --- /dev/null +++ b/app/Lib/vendor/crm-client-3.0.6/docs/client-api/files/src-models-singleoptin.html @@ -0,0 +1,173 @@ + + + + + CRM V2 + + + + + + + + + + + + + + + + + + + +
                                                                                                      +

                                                                                                      CRM V2

                                                                                                      + + + + + +
                                                                                                      + +
                                                                                                      +
                                                                                                      + + + + +
                                                                                                      +
                                                                                                        +
                                                                                                      + +
                                                                                                      +

                                                                                                      SingleOptin.php

                                                                                                      + + +
                                                                                                      + + + + + + +

                                                                                                      + Interfaces, Classes and Traits + +

                                                                                                      + +
                                                                                                      + +
                                                                                                      SingleOptin
                                                                                                      +
                                                                                                      This class allows to handle single optins
                                                                                                      + +
                                                                                                      + + + + + + + + +
                                                                                                      +
                                                                                                      +
                                                                                                      +
                                                                                                      +

                                                                                                      Search results

                                                                                                      + +
                                                                                                      +
                                                                                                      +
                                                                                                        +
                                                                                                        +
                                                                                                        +
                                                                                                        +
                                                                                                        +
                                                                                                        + + +
                                                                                                        + + + + + + + + diff --git a/app/Lib/vendor/crm-client-3.0.6/docs/client-api/files/src-models-stats.html b/app/Lib/vendor/crm-client-3.0.6/docs/client-api/files/src-models-stats.html new file mode 100644 index 0000000..71e812c --- /dev/null +++ b/app/Lib/vendor/crm-client-3.0.6/docs/client-api/files/src-models-stats.html @@ -0,0 +1,173 @@ + + + + + CRM V2 + + + + + + + + + + + + + + + + + + + +
                                                                                                        +

                                                                                                        CRM V2

                                                                                                        + + + + + +
                                                                                                        + +
                                                                                                        +
                                                                                                        + + + + +
                                                                                                        +
                                                                                                          +
                                                                                                        + +
                                                                                                        +

                                                                                                        Stats.php

                                                                                                        + + +
                                                                                                        + + + + + + +

                                                                                                        + Interfaces, Classes and Traits + +

                                                                                                        + +
                                                                                                        + +
                                                                                                        Stats
                                                                                                        +
                                                                                                        This class is used to get stats from CRM
                                                                                                        + +
                                                                                                        + + + + + + + + +
                                                                                                        +
                                                                                                        +
                                                                                                        +
                                                                                                        +

                                                                                                        Search results

                                                                                                        + +
                                                                                                        +
                                                                                                        +
                                                                                                          +
                                                                                                          +
                                                                                                          +
                                                                                                          +
                                                                                                          +
                                                                                                          + + +
                                                                                                          + + + + + + + + diff --git a/app/Lib/vendor/crm-client-3.0.6/docs/client-api/files/src-transport-apiinterface.html b/app/Lib/vendor/crm-client-3.0.6/docs/client-api/files/src-transport-apiinterface.html new file mode 100644 index 0000000..19754a8 --- /dev/null +++ b/app/Lib/vendor/crm-client-3.0.6/docs/client-api/files/src-transport-apiinterface.html @@ -0,0 +1,162 @@ + + + + + CRM V2 + + + + + + + + + + + + + + + + + + + +
                                                                                                          +

                                                                                                          CRM V2

                                                                                                          + + + + + +
                                                                                                          + +
                                                                                                          +
                                                                                                          + + + + +
                                                                                                          +
                                                                                                            +
                                                                                                          + +
                                                                                                          +

                                                                                                          ApiInterface.php

                                                                                                          + + +
                                                                                                          + + + + + + + + + + + + + + +
                                                                                                          +
                                                                                                          +
                                                                                                          +
                                                                                                          +

                                                                                                          Search results

                                                                                                          + +
                                                                                                          +
                                                                                                          +
                                                                                                            +
                                                                                                            +
                                                                                                            +
                                                                                                            +
                                                                                                            +
                                                                                                            + + +
                                                                                                            + + + + + + + + diff --git a/app/Lib/vendor/crm-client-3.0.6/docs/client-api/files/src-transport-request.html b/app/Lib/vendor/crm-client-3.0.6/docs/client-api/files/src-transport-request.html new file mode 100644 index 0000000..299ea61 --- /dev/null +++ b/app/Lib/vendor/crm-client-3.0.6/docs/client-api/files/src-transport-request.html @@ -0,0 +1,174 @@ + + + + + CRM V2 + + + + + + + + + + + + + + + + + + + +
                                                                                                            +

                                                                                                            CRM V2

                                                                                                            + + + + + +
                                                                                                            + +
                                                                                                            +
                                                                                                            + + + + +
                                                                                                            +
                                                                                                              +
                                                                                                            + +
                                                                                                            +

                                                                                                            Request.php

                                                                                                            + + +
                                                                                                            + + + + + + +

                                                                                                            + Interfaces, Classes and Traits + +

                                                                                                            + +
                                                                                                            + +
                                                                                                            Request
                                                                                                            +
                                                                                                            The LDC CRM request +Contains the http method, the requested url and data to pass
                                                                                                            + +
                                                                                                            + + + + + + + + +
                                                                                                            +
                                                                                                            +
                                                                                                            +
                                                                                                            +

                                                                                                            Search results

                                                                                                            + +
                                                                                                            +
                                                                                                            +
                                                                                                              +
                                                                                                              +
                                                                                                              +
                                                                                                              +
                                                                                                              +
                                                                                                              + + +
                                                                                                              + + + + + + + + diff --git a/app/Lib/vendor/crm-client-3.0.6/docs/client-api/files/src-transport-response.html b/app/Lib/vendor/crm-client-3.0.6/docs/client-api/files/src-transport-response.html new file mode 100644 index 0000000..cb1c349 --- /dev/null +++ b/app/Lib/vendor/crm-client-3.0.6/docs/client-api/files/src-transport-response.html @@ -0,0 +1,173 @@ + + + + + CRM V2 + + + + + + + + + + + + + + + + + + + +
                                                                                                              +

                                                                                                              CRM V2

                                                                                                              + + + + + +
                                                                                                              + +
                                                                                                              +
                                                                                                              + + + + +
                                                                                                              +
                                                                                                                +
                                                                                                              + +
                                                                                                              +

                                                                                                              Response.php

                                                                                                              + + +
                                                                                                              + + + + + + +

                                                                                                              + Interfaces, Classes and Traits + +

                                                                                                              + +
                                                                                                              + +
                                                                                                              Response
                                                                                                              +
                                                                                                              + +
                                                                                                              + + + + + + + + +
                                                                                                              +
                                                                                                              +
                                                                                                              +
                                                                                                              +

                                                                                                              Search results

                                                                                                              + +
                                                                                                              +
                                                                                                              +
                                                                                                                +
                                                                                                                +
                                                                                                                +
                                                                                                                +
                                                                                                                +
                                                                                                                + + +
                                                                                                                + + + + + + + + diff --git a/app/Lib/vendor/crm-client-3.0.6/docs/client-api/files/src-utils.html b/app/Lib/vendor/crm-client-3.0.6/docs/client-api/files/src-utils.html new file mode 100644 index 0000000..be50783 --- /dev/null +++ b/app/Lib/vendor/crm-client-3.0.6/docs/client-api/files/src-utils.html @@ -0,0 +1,173 @@ + + + + + CRM V2 + + + + + + + + + + + + + + + + + + + +
                                                                                                                +

                                                                                                                CRM V2

                                                                                                                + + + + + +
                                                                                                                + +
                                                                                                                +
                                                                                                                + + + + +
                                                                                                                +
                                                                                                                  +
                                                                                                                + +
                                                                                                                +

                                                                                                                Utils.php

                                                                                                                + + +
                                                                                                                + + + + + + +

                                                                                                                + Interfaces, Classes and Traits + +

                                                                                                                + +
                                                                                                                + +
                                                                                                                Utils
                                                                                                                +
                                                                                                                This is the LDCCRM utility class
                                                                                                                + +
                                                                                                                + + + + + + + + +
                                                                                                                +
                                                                                                                +
                                                                                                                +
                                                                                                                +

                                                                                                                Search results

                                                                                                                + +
                                                                                                                +
                                                                                                                +
                                                                                                                  +
                                                                                                                  +
                                                                                                                  +
                                                                                                                  +
                                                                                                                  +
                                                                                                                  + + +
                                                                                                                  + + + + + + + + diff --git a/app/Lib/vendor/crm-client-3.0.6/docs/client-api/files/src-wordpress-wpcrm.html b/app/Lib/vendor/crm-client-3.0.6/docs/client-api/files/src-wordpress-wpcrm.html new file mode 100644 index 0000000..5db55b4 --- /dev/null +++ b/app/Lib/vendor/crm-client-3.0.6/docs/client-api/files/src-wordpress-wpcrm.html @@ -0,0 +1,213 @@ + + + + + CRM V2 + + + + + + + + + + + + + + + + + + + +
                                                                                                                  +

                                                                                                                  CRM V2

                                                                                                                  + + + + + +
                                                                                                                  + +
                                                                                                                  +
                                                                                                                  + + + + +
                                                                                                                  +
                                                                                                                    +
                                                                                                                  + +
                                                                                                                  +

                                                                                                                  WPCrm.php

                                                                                                                  + +

                                                                                                                  LDCCRM For Wordpress usage

                                                                                                                  + + + +
                                                                                                                  + Tags + +
                                                                                                                  +
                                                                                                                  +
                                                                                                                  + category +
                                                                                                                  +
                                                                                                                  + +

                                                                                                                  API

                                                                                                                  +
                                                                                                                  + +
                                                                                                                  +
                                                                                                                  + author +
                                                                                                                  +
                                                                                                                  + +

                                                                                                                  Jérémy Munsch jeremy.munsch@ldc.fr

                                                                                                                  +
                                                                                                                  + +
                                                                                                                  +
                                                                                                                  + license +
                                                                                                                  +
                                                                                                                  + +

                                                                                                                  MIT https://opensource.org/licenses/MIT

                                                                                                                  +
                                                                                                                  + +
                                                                                                                  +
                                                                                                                  + link +
                                                                                                                  +
                                                                                                                  + / + +
                                                                                                                  +
                                                                                                                  + + + + +

                                                                                                                  + Interfaces, Classes and Traits + +

                                                                                                                  + +
                                                                                                                  + +
                                                                                                                  WPCrm
                                                                                                                  +
                                                                                                                  Class de gestion des users en session avec Wordpress (ce truc immonde)
                                                                                                                  + +
                                                                                                                  + + + + + + + + +
                                                                                                                  +
                                                                                                                  +
                                                                                                                  +
                                                                                                                  +

                                                                                                                  Search results

                                                                                                                  + +
                                                                                                                  +
                                                                                                                  +
                                                                                                                    +
                                                                                                                    +
                                                                                                                    +
                                                                                                                    +
                                                                                                                    +
                                                                                                                    + + +
                                                                                                                    + + + + + + + + diff --git a/app/Lib/vendor/crm-client-3.0.6/docs/client-api/files/src-wordpress-wpcrmanswer.html b/app/Lib/vendor/crm-client-3.0.6/docs/client-api/files/src-wordpress-wpcrmanswer.html new file mode 100644 index 0000000..2cd9821 --- /dev/null +++ b/app/Lib/vendor/crm-client-3.0.6/docs/client-api/files/src-wordpress-wpcrmanswer.html @@ -0,0 +1,213 @@ + + + + + CRM V2 + + + + + + + + + + + + + + + + + + + +
                                                                                                                    +

                                                                                                                    CRM V2

                                                                                                                    + + + + + +
                                                                                                                    + +
                                                                                                                    +
                                                                                                                    + + + + +
                                                                                                                    +
                                                                                                                      +
                                                                                                                    + +
                                                                                                                    +

                                                                                                                    WPCrmAnswer.php

                                                                                                                    + +

                                                                                                                    LDCCRM For Wordpress usage

                                                                                                                    + + + +
                                                                                                                    + Tags + +
                                                                                                                    +
                                                                                                                    +
                                                                                                                    + category +
                                                                                                                    +
                                                                                                                    + +

                                                                                                                    API

                                                                                                                    +
                                                                                                                    + +
                                                                                                                    +
                                                                                                                    + author +
                                                                                                                    +
                                                                                                                    + +

                                                                                                                    Jérémy Munsch jeremy.munsch@ldc.fr

                                                                                                                    +
                                                                                                                    + +
                                                                                                                    +
                                                                                                                    + license +
                                                                                                                    +
                                                                                                                    + +

                                                                                                                    MIT https://opensource.org/licenses/MIT

                                                                                                                    +
                                                                                                                    + +
                                                                                                                    +
                                                                                                                    + link +
                                                                                                                    +
                                                                                                                    + / + +
                                                                                                                    +
                                                                                                                    + + + + +

                                                                                                                    + Interfaces, Classes and Traits + +

                                                                                                                    + +
                                                                                                                    + +
                                                                                                                    WPCrmAnswer
                                                                                                                    +
                                                                                                                    Class de gestion de la segmentation question avec Wordpress (ce truc immonde)
                                                                                                                    + +
                                                                                                                    + + + + + + + + +
                                                                                                                    +
                                                                                                                    +
                                                                                                                    +
                                                                                                                    +

                                                                                                                    Search results

                                                                                                                    + +
                                                                                                                    +
                                                                                                                    +
                                                                                                                      +
                                                                                                                      +
                                                                                                                      +
                                                                                                                      +
                                                                                                                      +
                                                                                                                      + + +
                                                                                                                      + + + + + + + + diff --git a/app/Lib/vendor/crm-client-3.0.6/docs/client-api/files/src-wordpress-wpcrmquestion.html b/app/Lib/vendor/crm-client-3.0.6/docs/client-api/files/src-wordpress-wpcrmquestion.html new file mode 100644 index 0000000..47a47ee --- /dev/null +++ b/app/Lib/vendor/crm-client-3.0.6/docs/client-api/files/src-wordpress-wpcrmquestion.html @@ -0,0 +1,213 @@ + + + + + CRM V2 + + + + + + + + + + + + + + + + + + + +
                                                                                                                      +

                                                                                                                      CRM V2

                                                                                                                      + + + + + +
                                                                                                                      + +
                                                                                                                      +
                                                                                                                      + + + + +
                                                                                                                      +
                                                                                                                        +
                                                                                                                      + +
                                                                                                                      +

                                                                                                                      WPCrmQuestion.php

                                                                                                                      + +

                                                                                                                      LDCCRM For Wordpress usage

                                                                                                                      + + + +
                                                                                                                      + Tags + +
                                                                                                                      +
                                                                                                                      +
                                                                                                                      + category +
                                                                                                                      +
                                                                                                                      + +

                                                                                                                      API

                                                                                                                      +
                                                                                                                      + +
                                                                                                                      +
                                                                                                                      + author +
                                                                                                                      +
                                                                                                                      + +

                                                                                                                      Jérémy Munsch jeremy.munsch@ldc.fr

                                                                                                                      +
                                                                                                                      + +
                                                                                                                      +
                                                                                                                      + license +
                                                                                                                      +
                                                                                                                      + +

                                                                                                                      MIT https://opensource.org/licenses/MIT

                                                                                                                      +
                                                                                                                      + +
                                                                                                                      +
                                                                                                                      + link +
                                                                                                                      +
                                                                                                                      + / + +
                                                                                                                      +
                                                                                                                      + + + + +

                                                                                                                      + Interfaces, Classes and Traits + +

                                                                                                                      + +
                                                                                                                      + +
                                                                                                                      WPCrmQuestion
                                                                                                                      +
                                                                                                                      Class de gestion de la segmentation question avec Wordpress (ce truc immonde)
                                                                                                                      + +
                                                                                                                      + + + + + + + + +
                                                                                                                      +
                                                                                                                      +
                                                                                                                      +
                                                                                                                      +

                                                                                                                      Search results

                                                                                                                      + +
                                                                                                                      +
                                                                                                                      +
                                                                                                                        +
                                                                                                                        +
                                                                                                                        +
                                                                                                                        +
                                                                                                                        +
                                                                                                                        + + +
                                                                                                                        + + + + + + + + diff --git a/app/Lib/vendor/crm-client-3.0.6/docs/client-api/files/src-wordpress-wpcrmuser.html b/app/Lib/vendor/crm-client-3.0.6/docs/client-api/files/src-wordpress-wpcrmuser.html new file mode 100644 index 0000000..82877b3 --- /dev/null +++ b/app/Lib/vendor/crm-client-3.0.6/docs/client-api/files/src-wordpress-wpcrmuser.html @@ -0,0 +1,213 @@ + + + + + CRM V2 + + + + + + + + + + + + + + + + + + + +
                                                                                                                        +

                                                                                                                        CRM V2

                                                                                                                        + + + + + +
                                                                                                                        + +
                                                                                                                        +
                                                                                                                        + + + + +
                                                                                                                        +
                                                                                                                          +
                                                                                                                        + +
                                                                                                                        +

                                                                                                                        WPCrmUser.php

                                                                                                                        + +

                                                                                                                        LDCCRM For Wordpress usage

                                                                                                                        + + + +
                                                                                                                        + Tags + +
                                                                                                                        +
                                                                                                                        +
                                                                                                                        + category +
                                                                                                                        +
                                                                                                                        + +

                                                                                                                        API

                                                                                                                        +
                                                                                                                        + +
                                                                                                                        +
                                                                                                                        + author +
                                                                                                                        +
                                                                                                                        + +

                                                                                                                        Jérémy Munsch jeremy.munsch@ldc.fr

                                                                                                                        +
                                                                                                                        + +
                                                                                                                        +
                                                                                                                        + license +
                                                                                                                        +
                                                                                                                        + +

                                                                                                                        MIT https://opensource.org/licenses/MIT

                                                                                                                        +
                                                                                                                        + +
                                                                                                                        +
                                                                                                                        + link +
                                                                                                                        +
                                                                                                                        + / + +
                                                                                                                        +
                                                                                                                        + + + + +

                                                                                                                        + Interfaces, Classes and Traits + +

                                                                                                                        + +
                                                                                                                        + +
                                                                                                                        WPCrmUser
                                                                                                                        +
                                                                                                                        Class de gestion des users en session avec Wordpress (ce truc immonde)
                                                                                                                        + +
                                                                                                                        + + + + + + + + +
                                                                                                                        +
                                                                                                                        +
                                                                                                                        +
                                                                                                                        +

                                                                                                                        Search results

                                                                                                                        + +
                                                                                                                        +
                                                                                                                        +
                                                                                                                          +
                                                                                                                          +
                                                                                                                          +
                                                                                                                          +
                                                                                                                          +
                                                                                                                          + + +
                                                                                                                          + + + + + + + + diff --git a/app/Lib/vendor/crm-client-3.0.6/docs/client-api/graphs/classes.html b/app/Lib/vendor/crm-client-3.0.6/docs/client-api/graphs/classes.html new file mode 100644 index 0000000..cc88261 --- /dev/null +++ b/app/Lib/vendor/crm-client-3.0.6/docs/client-api/graphs/classes.html @@ -0,0 +1,139 @@ + + + + + CRM V2 + + + + + + + + +
                                                                                                                          +

                                                                                                                          CRM V2

                                                                                                                          + + + + + +
                                                                                                                          + +
                                                                                                                          +
                                                                                                                          + + + + +
                                                                                                                          +
                                                                                                                          + +
                                                                                                                          + +
                                                                                                                          +
                                                                                                                          +
                                                                                                                          +

                                                                                                                          Search results

                                                                                                                          + +
                                                                                                                          +
                                                                                                                          +
                                                                                                                            +
                                                                                                                            +
                                                                                                                            +
                                                                                                                            +
                                                                                                                            +
                                                                                                                            + + +
                                                                                                                            + + + + + + + + diff --git a/app/Lib/vendor/crm-client-3.0.6/docs/client-api/index.html b/app/Lib/vendor/crm-client-3.0.6/docs/client-api/index.html new file mode 100644 index 0000000..2cb11dc --- /dev/null +++ b/app/Lib/vendor/crm-client-3.0.6/docs/client-api/index.html @@ -0,0 +1,167 @@ + + + + + CRM V2 + + + + + + + + + + + + + + + + + + + +
                                                                                                                            +

                                                                                                                            CRM V2

                                                                                                                            + + + + + +
                                                                                                                            + +
                                                                                                                            +
                                                                                                                            + + + + +
                                                                                                                            +

                                                                                                                            Documentation

                                                                                                                            + + +

                                                                                                                            + Packages + +

                                                                                                                            + +
                                                                                                                            +
                                                                                                                            LDCCrmClient
                                                                                                                            +
                                                                                                                            None
                                                                                                                            +
                                                                                                                            + +

                                                                                                                            + Namespaces + +

                                                                                                                            + +
                                                                                                                            +
                                                                                                                            LDC
                                                                                                                            +
                                                                                                                            + + + + + + + +
                                                                                                                            +
                                                                                                                            +
                                                                                                                            +

                                                                                                                            Search results

                                                                                                                            + +
                                                                                                                            +
                                                                                                                            +
                                                                                                                              +
                                                                                                                              +
                                                                                                                              +
                                                                                                                              +
                                                                                                                              +
                                                                                                                              + + +
                                                                                                                              + + + + + + + + diff --git a/app/Lib/vendor/crm-client-3.0.6/docs/client-api/indices/files.html b/app/Lib/vendor/crm-client-3.0.6/docs/client-api/indices/files.html new file mode 100644 index 0000000..af7d1b1 --- /dev/null +++ b/app/Lib/vendor/crm-client-3.0.6/docs/client-api/indices/files.html @@ -0,0 +1,203 @@ + + + + + CRM V2 + + + + + + + + + + + + + + + + + + + +
                                                                                                                              +

                                                                                                                              CRM V2

                                                                                                                              + + + + + +
                                                                                                                              + +
                                                                                                                              +
                                                                                                                              + + + + + +
                                                                                                                              + + +
                                                                                                                              + + + + + + + + diff --git a/app/Lib/vendor/crm-client-3.0.6/docs/client-api/js/search.js b/app/Lib/vendor/crm-client-3.0.6/docs/client-api/js/search.js new file mode 100644 index 0000000..093d6d0 --- /dev/null +++ b/app/Lib/vendor/crm-client-3.0.6/docs/client-api/js/search.js @@ -0,0 +1,173 @@ +// Search module for phpDocumentor +// +// This module is a wrapper around fuse.js that will use a given index and attach itself to a +// search form and to a search results pane identified by the following data attributes: +// +// 1. data-search-form +// 2. data-search-results +// +// The data-search-form is expected to have a single input element of type 'search' that will trigger searching for +// a series of results, were the data-search-results pane is expected to have a direct UL child that will be populated +// with rendered results. +// +// The search has various stages, upon loading this stage the data-search-form receives the CSS class +// 'phpdocumentor-search--enabled'; this indicates that JS is allowed and indices are being loaded. It is recommended +// to hide the form by default and show it when it receives this class to achieve progressive enhancement for this +// feature. +// +// After loading this module, it is expected to load a search index asynchronously, for example: +// +// +// +// In this script the generated index should attach itself to the search module using the `appendIndex` function. By +// doing it like this the page will continue loading, unhindered by the loading of the search. +// +// After the page has fully loaded, and all these deferred indexes loaded, the initialization of the search module will +// be called and the form will receive the class 'phpdocumentor-search--active', indicating search is ready. At this +// point, the input field will also have it's 'disabled' attribute removed. +var Search = (function () { + var fuse; + var index = []; + var options = { + shouldSort: true, + threshold: 0.6, + location: 0, + distance: 100, + maxPatternLength: 32, + minMatchCharLength: 1, + keys: [ + "fqsen", + "name", + "summary", + "url" + ] + }; + + // Credit David Walsh (https://davidwalsh.name/javascript-debounce-function) + // Returns a function, that, as long as it continues to be invoked, will not + // be triggered. The function will be called after it stops being called for + // N milliseconds. If `immediate` is passed, trigger the function on the + // leading edge, instead of the trailing. + function debounce(func, wait, immediate) { + var timeout; + + return function executedFunction() { + var context = this; + var args = arguments; + + var later = function () { + timeout = null; + if (!immediate) func.apply(context, args); + }; + + var callNow = immediate && !timeout; + clearTimeout(timeout); + timeout = setTimeout(later, wait); + if (callNow) func.apply(context, args); + }; + } + + function close() { + // Start scroll prevention: https://css-tricks.com/prevent-page-scrolling-when-a-modal-is-open/ + const scrollY = document.body.style.top; + document.body.style.position = ''; + document.body.style.top = ''; + window.scrollTo(0, parseInt(scrollY || '0') * -1); + // End scroll prevention + + var form = document.querySelector('[data-search-form]'); + var searchResults = document.querySelector('[data-search-results]'); + + form.classList.toggle('phpdocumentor-search--has-results', false); + searchResults.classList.add('phpdocumentor-search-results--hidden'); + var searchField = document.querySelector('[data-search-form] input[type="search"]'); + searchField.blur(); + } + + function search(event) { + // Start scroll prevention: https://css-tricks.com/prevent-page-scrolling-when-a-modal-is-open/ + document.body.style.position = 'fixed'; + document.body.style.top = `-${window.scrollY}px`; + // End scroll prevention + + // prevent enter's from autosubmitting + event.stopPropagation(); + + var form = document.querySelector('[data-search-form]'); + var searchResults = document.querySelector('[data-search-results]'); + var searchResultEntries = document.querySelector('[data-search-results] .phpdocumentor-search-results__entries'); + + searchResultEntries.innerHTML = ''; + + if (!event.target.value) { + close(); + return; + } + + form.classList.toggle('phpdocumentor-search--has-results', true); + searchResults.classList.remove('phpdocumentor-search-results--hidden'); + var results = fuse.search(event.target.value, {limit: 25}); + + results.forEach(function (result) { + var entry = document.createElement("li"); + entry.classList.add("phpdocumentor-search-results__entry"); + entry.innerHTML += '

                                                                                                                              ' + result.name + "

                                                                                                                              \n"; + entry.innerHTML += '' + result.fqsen + "\n"; + entry.innerHTML += '
                                                                                                                              ' + result.summary + '
                                                                                                                              '; + searchResultEntries.appendChild(entry) + }); + } + + function appendIndex(added) { + index = index.concat(added); + + // re-initialize search engine when appending an index after initialisation + if (typeof fuse !== 'undefined') { + fuse = new Fuse(index, options); + } + } + + function init() { + fuse = new Fuse(index, options); + + var form = document.querySelector('[data-search-form]'); + var searchField = document.querySelector('[data-search-form] input[type="search"]'); + + var closeButton = document.querySelector('.phpdocumentor-search-results__close'); + closeButton.addEventListener('click', function() { close() }.bind(this)); + + var searchResults = document.querySelector('[data-search-results]'); + searchResults.addEventListener('click', function() { close() }.bind(this)); + + form.classList.add('phpdocumentor-search--active'); + + searchField.setAttribute('placeholder', 'Search (Press "/" to focus)'); + searchField.removeAttribute('disabled'); + searchField.addEventListener('keyup', debounce(search, 300)); + + window.addEventListener('keyup', function (event) { + if (event.key === '/') { + searchField.focus(); + } + if (event.code === 'Escape') { + close(); + } + }.bind(this)); + } + + return { + appendIndex, + init + } +})(); + +window.addEventListener('DOMContentLoaded', function () { + var form = document.querySelector('[data-search-form]'); + + // When JS is supported; show search box. Must be before including the search for it to take effect immediately + form.classList.add('phpdocumentor-search--enabled'); +}); + +window.addEventListener('load', function () { + Search.init(); +}); diff --git a/app/Lib/vendor/crm-client-3.0.6/docs/client-api/js/searchIndex.js b/app/Lib/vendor/crm-client-3.0.6/docs/client-api/js/searchIndex.js new file mode 100644 index 0000000..3ec691a --- /dev/null +++ b/app/Lib/vendor/crm-client-3.0.6/docs/client-api/js/searchIndex.js @@ -0,0 +1,1339 @@ +Search.appendIndex( + [ + { + "fqsen": "\\LDC\\LDCCRM\\CrmApiV2", + "name": "CrmApiV2", + "summary": "This\u0020is\u0020the\u0020main\u0020class\u0020to\u0020interact\u0020with\u0020the\u0020CRM", + "url": "classes/LDC-LDCCRM-CrmApiV2.html" + }, { + "fqsen": "\\LDC\\LDCCRM\\CrmApiV2\u003A\u003A__construct\u0028\u0029", + "name": "__construct", + "summary": "CrmApiV2", + "url": "classes/LDC-LDCCRM-CrmApiV2.html#method___construct" + }, { + "fqsen": "\\LDC\\LDCCRM\\CrmApiV2\u003A\u003Aping\u0028\u0029", + "name": "ping", + "summary": "Use\u0020this\u0020the\u0020ping\u0020the\u0020crm\u0020and\u0020know\u0020its\u0020current\u0020status", + "url": "classes/LDC-LDCCRM-CrmApiV2.html#method_ping" + }, { + "fqsen": "\\LDC\\LDCCRM\\CrmApiV2\u003A\u003AgetCustomerOrNew\u0028\u0029", + "name": "getCustomerOrNew", + "summary": "Get\u0020a\u0020customer\u0020from\u0020its\u0020hashcode\u0020or\u0020email\nIf\u0020it\u0020does\u0020not\u0020exists\u0020a\u0020new\u0020instance\nwill\u0020be\u0020returned.\u0020You\u0020would\u0020have\nto\u0020call\u0020its\u0020save\u0020method\u0020later\u0020on.", + "url": "classes/LDC-LDCCRM-CrmApiV2.html#method_getCustomerOrNew" + }, { + "fqsen": "\\LDC\\LDCCRM\\CrmApiV2\u003A\u003AgetCustomer\u0028\u0029", + "name": "getCustomer", + "summary": "Get\u0020a\u0020customer\u0020from\u0020its\u0020hashcode\u0020or\u0020email\nIf\u0020it\u0020does\u0020not\u0020exists\u0020a\u0020new\u0020instance\nwill\u0020be\u0020returned.\u0020You\u0020would\u0020have\nto\u0020call\u0020its\u0020save\u0020method\u0020later\u0020on.", + "url": "classes/LDC-LDCCRM-CrmApiV2.html#method_getCustomer" + }, { + "fqsen": "\\LDC\\LDCCRM\\CrmApiV2\u003A\u003AsetStatus\u0028\u0029", + "name": "setStatus", + "summary": "Set\u0020the\u0020single\u0020optin\u0020status\u0020for\u0020an\u0020email", + "url": "classes/LDC-LDCCRM-CrmApiV2.html#method_setStatus" + }, { + "fqsen": "\\LDC\\LDCCRM\\CrmApiV2\u003A\u003Alogin\u0028\u0029", + "name": "login", + "summary": "Test\u0020a\u0020customer\u0020credentials\u0020to\u0020see\u0020if\u0020it\u0020can\u0020login", + "url": "classes/LDC-LDCCRM-CrmApiV2.html#method_login" + }, { + "fqsen": "\\LDC\\LDCCRM\\CrmApiV2\u003A\u003A\u0024apiInterface", + "name": "apiInterface", + "summary": "The\u0020Api\u0020object\u0020that\u0020will\u0020handle\u0020requests\u0020and\u0020responses", + "url": "classes/LDC-LDCCRM-CrmApiV2.html#property_apiInterface" + }, { + "fqsen": "\\LDC\\LDCCRM\\Enums\\ApiError", + "name": "ApiError", + "summary": "This\u0020describes\u0020an\u0020API\u0020error.", + "url": "classes/LDC-LDCCRM-Enums-ApiError.html" + }, { + "fqsen": "\\LDC\\LDCCRM\\Enums\\ApiError\u003A\u003Avalues\u0028\u0029", + "name": "values", + "summary": "Valeurs\u0020des\u0020possibilit\u00E9s\u0020de\u0020cet\u0020\u00E9num\u00E9ration\u0020\u0028value\u0029", + "url": "classes/LDC-LDCCRM-Enums-ApiError.html#method_values" + }, { + "fqsen": "\\LDC\\LDCCRM\\Enums\\ApiError\u003A\u003Alabels\u0028\u0029", + "name": "labels", + "summary": "Libell\u00E9s\u0020des\u0020possibilit\u00E9s\u0020de\u0020cet\u0020\u00E9num\u00E9ration\u0020\u0028label\u0029", + "url": "classes/LDC-LDCCRM-Enums-ApiError.html#method_labels" + }, { + "fqsen": "\\LDC\\LDCCRM\\Enums\\ApiStatus", + "name": "ApiStatus", + "summary": "", + "url": "classes/LDC-LDCCRM-Enums-ApiStatus.html" + }, { + "fqsen": "\\LDC\\LDCCRM\\Enums\\ArcadiaMailType", + "name": "ArcadiaMailType", + "summary": "", + "url": "classes/LDC-LDCCRM-Enums-ArcadiaMailType.html" + }, { + "fqsen": "\\LDC\\LDCCRM\\Enums\\ArcadiaMailType\u003A\u003Avalues\u0028\u0029", + "name": "values", + "summary": "Valeurs\u0020des\u0020possibilit\u00E9s\u0020de\u0020cet\u0020\u00E9num\u00E9ration\u0020\u0028value\u0029", + "url": "classes/LDC-LDCCRM-Enums-ArcadiaMailType.html#method_values" + }, { + "fqsen": "\\LDC\\LDCCRM\\Enums\\ArcadiaOrderType", + "name": "ArcadiaOrderType", + "summary": "", + "url": "classes/LDC-LDCCRM-Enums-ArcadiaOrderType.html" + }, { + "fqsen": "\\LDC\\LDCCRM\\Enums\\ArcadiaOrderType\u003A\u003Avalues\u0028\u0029", + "name": "values", + "summary": "Valeurs\u0020des\u0020possibilit\u00E9s\u0020de\u0020cet\u0020\u00E9num\u00E9ration\u0020\u0028value\u0029", + "url": "classes/LDC-LDCCRM-Enums-ArcadiaOrderType.html#method_values" + }, { + "fqsen": "\\LDC\\LDCCRM\\Enums\\Country", + "name": "Country", + "summary": "Liste\u0020de\u0020Pays", + "url": "classes/LDC-LDCCRM-Enums-Country.html" + }, { + "fqsen": "\\LDC\\LDCCRM\\Enums\\Country\u003A\u003Avalues\u0028\u0029", + "name": "values", + "summary": "Valeurs\u0020des\u0020possibilit\u00E9s\u0020de\u0020cet\u0020\u00E9num\u00E9ration\u0020\u0028value\u0029", + "url": "classes/LDC-LDCCRM-Enums-Country.html#method_values" + }, { + "fqsen": "\\LDC\\LDCCRM\\Enums\\Country\u003A\u003Alabels\u0028\u0029", + "name": "labels", + "summary": "Libell\u00E9s\u0020des\u0020possibilit\u00E9s\u0020de\u0020cet\u0020\u00E9num\u00E9ration\u0020\u0028label\u0029", + "url": "classes/LDC-LDCCRM-Enums-Country.html#method_labels" + }, { + "fqsen": "\\LDC\\LDCCRM\\Enums\\LogLevel", + "name": "LogLevel", + "summary": "", + "url": "classes/LDC-LDCCRM-Enums-LogLevel.html" + }, { + "fqsen": "\\LDC\\LDCCRM\\Enums\\LogLevel\u003A\u003Avalues\u0028\u0029", + "name": "values", + "summary": "Valeurs\u0020des\u0020possibilit\u00E9s\u0020de\u0020cet\u0020\u00E9num\u00E9ration\u0020\u0028value\u0029", + "url": "classes/LDC-LDCCRM-Enums-LogLevel.html#method_values" + }, { + "fqsen": "\\LDC\\LDCCRM\\Enums\\QuestionType", + "name": "QuestionType", + "summary": "", + "url": "classes/LDC-LDCCRM-Enums-QuestionType.html" + }, { + "fqsen": "\\LDC\\LDCCRM\\Enums\\QuestionType\u003A\u003Avalues\u0028\u0029", + "name": "values", + "summary": "Valeurs\u0020des\u0020possibilit\u00E9s\u0020de\u0020cet\u0020\u00E9num\u00E9ration\u0020\u0028value\u0029", + "url": "classes/LDC-LDCCRM-Enums-QuestionType.html#method_values" + }, { + "fqsen": "\\LDC\\LDCCRM\\Exceptions\\AccessError", + "name": "AccessError", + "summary": "This\u0020is\u0020thrown\u0020when\u0020trying\u0020to\u0020set\u0020a\u0020value\u0020on\u0020an\u0020object\u0020property\u0020that\u0020does\u0020not\u0020exist.", + "url": "classes/LDC-LDCCRM-Exceptions-AccessError.html" + }, { + "fqsen": "\\LDC\\LDCCRM\\Exceptions\\AccessError\u003A\u003A__construct\u0028\u0029", + "name": "__construct", + "summary": "AccessError", + "url": "classes/LDC-LDCCRM-Exceptions-AccessError.html#method___construct" + }, { + "fqsen": "\\LDC\\LDCCRM\\Exceptions\\ApiErrorException", + "name": "ApiErrorException", + "summary": "This\u0020would\u0020be\u0020thrown\u0020if\u0020any\u0020of\u0020the\u0020case\nreferenced\u0020in\u0020\\LDC\\LDCCRM\\Enums\\ApiError\u0020would\noccur\u0020within\u0020the\u0020crm", + "url": "classes/LDC-LDCCRM-Exceptions-ApiErrorException.html" + }, { + "fqsen": "\\LDC\\LDCCRM\\Exceptions\\ApiErrorException\u003A\u003A__construct\u0028\u0029", + "name": "__construct", + "summary": "Create\u0020a\u0020new\u0020exception\u0020base\u0020on\u0020ApiError\u0020enum.", + "url": "classes/LDC-LDCCRM-Exceptions-ApiErrorException.html#method___construct" + }, { + "fqsen": "\\LDC\\LDCCRM\\Exceptions\\ApiErrorException\u003A\u003AgetApiError\u0028\u0029", + "name": "getApiError", + "summary": "Get\u0020the\u0020Api\u0020Error", + "url": "classes/LDC-LDCCRM-Exceptions-ApiErrorException.html#method_getApiError" + }, { + "fqsen": "\\LDC\\LDCCRM\\Exceptions\\ApiErrorException\u003A\u003AgetStatusCode\u0028\u0029", + "name": "getStatusCode", + "summary": "Get\u0020the\u0020http\u0020code", + "url": "classes/LDC-LDCCRM-Exceptions-ApiErrorException.html#method_getStatusCode" + }, { + "fqsen": "\\LDC\\LDCCRM\\Exceptions\\ApiErrorException\u003A\u003Areport\u0028\u0029", + "name": "report", + "summary": "This\u0020is\u0020used\u0020by\u0020laravel\u0020only.", + "url": "classes/LDC-LDCCRM-Exceptions-ApiErrorException.html#method_report" + }, { + "fqsen": "\\LDC\\LDCCRM\\Exceptions\\ApiErrorException\u003A\u003A\u0024error", + "name": "error", + "summary": "Api\u0020Error\nThis\u0020value\u0020makes\u0020the\u0020error\u0020more\u0020explicit.", + "url": "classes/LDC-LDCCRM-Exceptions-ApiErrorException.html#property_error" + }, { + "fqsen": "\\LDC\\LDCCRM\\Exceptions\\ApiErrorException\u003A\u003A\u0024message", + "name": "message", + "summary": "This\u0020is\u0020an\u0020explicit\u0020error\u0020message,\nou\u0020may\u0020print\u0020this\u0020to\u0020the\u0020front\u0020or\u0020not\u0020depending\non\u0020\u0024error\u0020value", + "url": "classes/LDC-LDCCRM-Exceptions-ApiErrorException.html#property_message" + }, { + "fqsen": "\\LDC\\LDCCRM\\Exceptions\\ApiErrorException\u003A\u003A\u0024httpCode", + "name": "httpCode", + "summary": "This\u0020is\u0020the\u0020http\u0020code\u0020returned\u0020by\u0020the\u0020crm.", + "url": "classes/LDC-LDCCRM-Exceptions-ApiErrorException.html#property_httpCode" + }, { + "fqsen": "\\LDC\\LDCCRM\\Exceptions\\CrmException", + "name": "CrmException", + "summary": "This\u0020is\u0020a\u0020critical\u0020error.", + "url": "classes/LDC-LDCCRM-Exceptions-CrmException.html" + }, { + "fqsen": "\\LDC\\LDCCRM\\Exceptions\\CrmException\u003A\u003Areport\u0028\u0029", + "name": "report", + "summary": "This\u0020is\u0020used\u0020by\u0020laravel\u0020only.", + "url": "classes/LDC-LDCCRM-Exceptions-CrmException.html#method_report" + }, { + "fqsen": "\\LDC\\LDCCRM\\Exceptions\\SkipValidationException", + "name": "SkipValidationException", + "summary": "Used\u0020only\u0020for\u0020internal\u0020validator", + "url": "classes/LDC-LDCCRM-Exceptions-SkipValidationException.html" + }, { + "fqsen": "\\LDC\\LDCCRM\\Exceptions\\ValidationException", + "name": "ValidationException", + "summary": "This\u0020would\u0020be\u0020thrown\u0020if\u0020a\u0020data\u0020could\u0020not\u0020be\u0020validated\non\u0020any\u0020models", + "url": "classes/LDC-LDCCRM-Exceptions-ValidationException.html" + }, { + "fqsen": "\\LDC\\LDCCRM\\Exceptions\\ValidationException\u003A\u003Areport\u0028\u0029", + "name": "report", + "summary": "This\u0020is\u0020used\u0020by\u0020laravel\u0020only.", + "url": "classes/LDC-LDCCRM-Exceptions-ValidationException.html#method_report" + }, { + "fqsen": "\\LDC\\LDCCRM\\Exceptions\\WpCrmInvalidJsonUserInfo", + "name": "WpCrmInvalidJsonUserInfo", + "summary": "This\u0020is\u0020thrown\u0020when\u0020trying\u0020to\u0020read\u0020WP\u0020customer\u0020from\u0020DB\u0020json\u0020data.", + "url": "classes/LDC-LDCCRM-Exceptions-WpCrmInvalidJsonUserInfo.html" + }, { + "fqsen": "\\LDC\\LDCCRM\\Exceptions\\WpCrmInvalidJsonUserInfo\u003A\u003A__construct\u0028\u0029", + "name": "__construct", + "summary": "WpCrmInvalidJsonUserInfo", + "url": "classes/LDC-LDCCRM-Exceptions-WpCrmInvalidJsonUserInfo.html#method___construct" + }, { + "fqsen": "\\LDC\\LDCCRM\\Models\\Answer", + "name": "Answer", + "summary": "This\u0020class\u0020represents\u0020an\u0020answer\nIt\u0020has\u0020a\u0020method\u0020to\u0020submit\u0020answers", + "url": "classes/LDC-LDCCRM-Models-Answer.html" + }, { + "fqsen": "\\LDC\\LDCCRM\\Models\\Answer\u003A\u003A__construct\u0028\u0029", + "name": "__construct", + "summary": "Answer", + "url": "classes/LDC-LDCCRM-Models-Answer.html#method___construct" + }, { + "fqsen": "\\LDC\\LDCCRM\\Models\\Answer\u003A\u003AsetQuestionAnswers\u0028\u0029", + "name": "setQuestionAnswers", + "summary": "Set\u0020unanswered\u0020question\u0020for\u0020a\u0020specific\u0020customer", + "url": "classes/LDC-LDCCRM-Models-Answer.html#method_setQuestionAnswers" + }, { + "fqsen": "\\LDC\\LDCCRM\\Models\\Answer\u003A\u003AjsonSerialize\u0028\u0029", + "name": "jsonSerialize", + "summary": "Serialize\u0020this\u0020object\u0020to\u0020an\u0020array", + "url": "classes/LDC-LDCCRM-Models-Answer.html#method_jsonSerialize" + }, { + "fqsen": "\\LDC\\LDCCRM\\Models\\Answer\u003A\u003A\u0024id", + "name": "id", + "summary": "The\u0020question\u0020id", + "url": "classes/LDC-LDCCRM-Models-Answer.html#property_id" + }, { + "fqsen": "\\LDC\\LDCCRM\\Models\\Answer\u003A\u003A\u0024answer", + "name": "answer", + "summary": "The\u0020actual\u0020answer\u0020as\u0020a\u0020string", + "url": "classes/LDC-LDCCRM-Models-Answer.html#property_answer" + }, { + "fqsen": "\\LDC\\LDCCRM\\Models\\Answer\u003A\u003A\u0024modelFields", + "name": "modelFields", + "summary": "The\u0020crm\u0020customer\u0020fields", + "url": "classes/LDC-LDCCRM-Models-Answer.html#property_modelFields" + }, { + "fqsen": "\\LDC\\LDCCRM\\Models\\Answer\u003A\u003A\u0024validation", + "name": "validation", + "summary": "Validation\u0020rules", + "url": "classes/LDC-LDCCRM-Models-Answer.html#property_validation" + }, { + "fqsen": "\\LDC\\LDCCRM\\Models\\ArcadiaMailDefault", + "name": "ArcadiaMailDefault", + "summary": "This\u0020class\u0020represents\u0020the\u0020customer\u0020info\u0020with\nthe\u0020account\u0020validation\u0020status", + "url": "classes/LDC-LDCCRM-Models-ArcadiaMailDefault.html" + }, { + "fqsen": "\\LDC\\LDCCRM\\Models\\ArcadiaMailDefault\u003A\u003A__construct\u0028\u0029", + "name": "__construct", + "summary": "ArcadiaMailDefault", + "url": "classes/LDC-LDCCRM-Models-ArcadiaMailDefault.html#method___construct" + }, { + "fqsen": "\\LDC\\LDCCRM\\Models\\ArcadiaMailDefault\u003A\u003A__get\u0028\u0029", + "name": "__get", + "summary": "Generic\u0020accessor", + "url": "classes/LDC-LDCCRM-Models-ArcadiaMailDefault.html#method___get" + }, { + "fqsen": "\\LDC\\LDCCRM\\Models\\ArcadiaMailDefault\u003A\u003A__set\u0028\u0029", + "name": "__set", + "summary": "Set\u0020prop", + "url": "classes/LDC-LDCCRM-Models-ArcadiaMailDefault.html#method___set" + }, { + "fqsen": "\\LDC\\LDCCRM\\Models\\ArcadiaMailDefault\u003A\u003Afill\u0028\u0029", + "name": "fill", + "summary": "Fill\u0020data\u0020into\u0020this\u0020model\nusing\u0020validation\u0020rules", + "url": "classes/LDC-LDCCRM-Models-ArcadiaMailDefault.html#method_fill" + }, { + "fqsen": "\\LDC\\LDCCRM\\Models\\ArcadiaMailDefault\u003A\u003AvalidateAllValues\u0028\u0029", + "name": "validateAllValues", + "summary": "Validate\u0020all\u0020model\u0020properties", + "url": "classes/LDC-LDCCRM-Models-ArcadiaMailDefault.html#method_validateAllValues" + }, { + "fqsen": "\\LDC\\LDCCRM\\Models\\ArcadiaMailDefault\u003A\u003Asend\u0028\u0029", + "name": "send", + "summary": "Send\u0020The\u0020actual\u0020mail", + "url": "classes/LDC-LDCCRM-Models-ArcadiaMailDefault.html#method_send" + }, { + "fqsen": "\\LDC\\LDCCRM\\Models\\ArcadiaMailDefault\u003A\u003AjsonSerialize\u0028\u0029", + "name": "jsonSerialize", + "summary": "Serialize\u0020this\u0020object\u0020to\u0020an\u0020array", + "url": "classes/LDC-LDCCRM-Models-ArcadiaMailDefault.html#method_jsonSerialize" + }, { + "fqsen": "\\LDC\\LDCCRM\\Models\\ArcadiaMailDefault\u003A\u003A\u0024email", + "name": "email", + "summary": "An\u0020RFC\u0020Valid\u0020Email", + "url": "classes/LDC-LDCCRM-Models-ArcadiaMailDefault.html#property_email" + }, { + "fqsen": "\\LDC\\LDCCRM\\Models\\ArcadiaMailDefault\u003A\u003A\u0024firstname", + "name": "firstname", + "summary": "First\u0020name", + "url": "classes/LDC-LDCCRM-Models-ArcadiaMailDefault.html#property_firstname" + }, { + "fqsen": "\\LDC\\LDCCRM\\Models\\ArcadiaMailDefault\u003A\u003A\u0024lastname", + "name": "lastname", + "summary": "Last\u0020name", + "url": "classes/LDC-LDCCRM-Models-ArcadiaMailDefault.html#property_lastname" + }, { + "fqsen": "\\LDC\\LDCCRM\\Models\\ArcadiaMailDefault\u003A\u003A\u0024phone", + "name": "phone", + "summary": "The\u0020user\u0020phone", + "url": "classes/LDC-LDCCRM-Models-ArcadiaMailDefault.html#property_phone" + }, { + "fqsen": "\\LDC\\LDCCRM\\Models\\ArcadiaMailDefault\u003A\u003A\u0024address", + "name": "address", + "summary": "The\u0020user\u0020address\u0020\u0028street\u0020number,\u0020name,\u0020etc\u0029", + "url": "classes/LDC-LDCCRM-Models-ArcadiaMailDefault.html#property_address" + }, { + "fqsen": "\\LDC\\LDCCRM\\Models\\ArcadiaMailDefault\u003A\u003A\u0024address2", + "name": "address2", + "summary": "The\u0020user\u0020address\u00202nd\u0020part\u0020\u0028street\u0020number,\u0020name,\u0020more,\u0020etc\u0029", + "url": "classes/LDC-LDCCRM-Models-ArcadiaMailDefault.html#property_address2" + }, { + "fqsen": "\\LDC\\LDCCRM\\Models\\ArcadiaMailDefault\u003A\u003A\u0024city", + "name": "city", + "summary": "The\u0020user\u0020address\u0020city", + "url": "classes/LDC-LDCCRM-Models-ArcadiaMailDefault.html#property_city" + }, { + "fqsen": "\\LDC\\LDCCRM\\Models\\ArcadiaMailDefault\u003A\u003A\u0024postcode", + "name": "postcode", + "summary": "The\u0020user\u0020address\u0020postcode", + "url": "classes/LDC-LDCCRM-Models-ArcadiaMailDefault.html#property_postcode" + }, { + "fqsen": "\\LDC\\LDCCRM\\Models\\ArcadiaMailDefault\u003A\u003A\u0024operation", + "name": "operation", + "summary": "The\u0020arcadia\u0020operation\u0020code", + "url": "classes/LDC-LDCCRM-Models-ArcadiaMailDefault.html#property_operation" + }, { + "fqsen": "\\LDC\\LDCCRM\\Models\\ArcadiaMailDefault\u003A\u003A\u0024support_code", + "name": "support_code", + "summary": "The\u0020arcadia\u0020support\u0020code", + "url": "classes/LDC-LDCCRM-Models-ArcadiaMailDefault.html#property_support_code" + }, { + "fqsen": "\\LDC\\LDCCRM\\Models\\ArcadiaMailDefault\u003A\u003A\u0024label_type_support", + "name": "label_type_support", + "summary": "The\u0020arcadia\u0020type\u0020support\u0020label", + "url": "classes/LDC-LDCCRM-Models-ArcadiaMailDefault.html#property_label_type_support" + }, { + "fqsen": "\\LDC\\LDCCRM\\Models\\ArcadiaMailDefault\u003A\u003A\u0024order_date", + "name": "order_date", + "summary": "The\u0020arcadia\u0020order\u0020date", + "url": "classes/LDC-LDCCRM-Models-ArcadiaMailDefault.html#property_order_date" + }, { + "fqsen": "\\LDC\\LDCCRM\\Models\\ArcadiaMailDefault\u003A\u003A\u0024order_num", + "name": "order_num", + "summary": "The\u0020arcadia\u0020order\u0020number", + "url": "classes/LDC-LDCCRM-Models-ArcadiaMailDefault.html#property_order_num" + }, { + "fqsen": "\\LDC\\LDCCRM\\Models\\ArcadiaMailDefault\u003A\u003A\u0024state_order", + "name": "state_order", + "summary": "The\u0020arcadia\u0020state\u0020order", + "url": "classes/LDC-LDCCRM-Models-ArcadiaMailDefault.html#property_state_order" + }, { + "fqsen": "\\LDC\\LDCCRM\\Models\\ArcadiaMailDefault\u003A\u003A\u0024package_unit_weight", + "name": "package_unit_weight", + "summary": "The\u0020arcadia\u0020package\u0020unit\u0020weight", + "url": "classes/LDC-LDCCRM-Models-ArcadiaMailDefault.html#property_package_unit_weight" + }, { + "fqsen": "\\LDC\\LDCCRM\\Models\\ArcadiaMailDefault\u003A\u003A\u0024modelFields", + "name": "modelFields", + "summary": "The\u0020crm\u0020customer\u0020fields", + "url": "classes/LDC-LDCCRM-Models-ArcadiaMailDefault.html#property_modelFields" + }, { + "fqsen": "\\LDC\\LDCCRM\\Models\\ArcadiaMailDefault\u003A\u003A\u0024validation", + "name": "validation", + "summary": "Validation\u0020rules", + "url": "classes/LDC-LDCCRM-Models-ArcadiaMailDefault.html#property_validation" + }, { + "fqsen": "\\LDC\\LDCCRM\\Models\\ArcadiaMailGame", + "name": "ArcadiaMailGame", + "summary": "This\u0020class\u0020represents\u0020the\u0020customer\u0020info\u0020with\nthe\u0020account\u0020validation\u0020status", + "url": "classes/LDC-LDCCRM-Models-ArcadiaMailGame.html" + }, { + "fqsen": "\\LDC\\LDCCRM\\Models\\ArcadiaMailGame\u003A\u003A__construct\u0028\u0029", + "name": "__construct", + "summary": "ArcadiaMailGame", + "url": "classes/LDC-LDCCRM-Models-ArcadiaMailGame.html#method___construct" + }, { + "fqsen": "\\LDC\\LDCCRM\\Models\\ArcadiaMailGame\u003A\u003A__set\u0028\u0029", + "name": "__set", + "summary": "Set\u0020prop", + "url": "classes/LDC-LDCCRM-Models-ArcadiaMailGame.html#method___set" + }, { + "fqsen": "\\LDC\\LDCCRM\\Models\\ArcadiaMailGame\u003A\u003Afill\u0028\u0029", + "name": "fill", + "summary": "Fill\u0020data\u0020into\u0020this\u0020model\nusing\u0020validation\u0020rules", + "url": "classes/LDC-LDCCRM-Models-ArcadiaMailGame.html#method_fill" + }, { + "fqsen": "\\LDC\\LDCCRM\\Models\\ArcadiaMailGame\u003A\u003Asend\u0028\u0029", + "name": "send", + "summary": "Send\u0020The\u0020actual\u0020mail", + "url": "classes/LDC-LDCCRM-Models-ArcadiaMailGame.html#method_send" + }, { + "fqsen": "\\LDC\\LDCCRM\\Models\\ArcadiaMailGame\u003A\u003AjsonSerialize\u0028\u0029", + "name": "jsonSerialize", + "summary": "Serialize\u0020this\u0020object\u0020to\u0020an\u0020array", + "url": "classes/LDC-LDCCRM-Models-ArcadiaMailGame.html#method_jsonSerialize" + }, { + "fqsen": "\\LDC\\LDCCRM\\Models\\ArcadiaMailGame\u003A\u003A\u0024email", + "name": "email", + "summary": "An\u0020RFC\u0020Valid\u0020Email", + "url": "classes/LDC-LDCCRM-Models-ArcadiaMailGame.html#property_email" + }, { + "fqsen": "\\LDC\\LDCCRM\\Models\\ArcadiaMailGame\u003A\u003A\u0024firstname", + "name": "firstname", + "summary": "First\u0020name", + "url": "classes/LDC-LDCCRM-Models-ArcadiaMailGame.html#property_firstname" + }, { + "fqsen": "\\LDC\\LDCCRM\\Models\\ArcadiaMailGame\u003A\u003A\u0024lastname", + "name": "lastname", + "summary": "Last\u0020name", + "url": "classes/LDC-LDCCRM-Models-ArcadiaMailGame.html#property_lastname" + }, { + "fqsen": "\\LDC\\LDCCRM\\Models\\ArcadiaMailGame\u003A\u003A\u0024phone", + "name": "phone", + "summary": "The\u0020user\u0020phone", + "url": "classes/LDC-LDCCRM-Models-ArcadiaMailGame.html#property_phone" + }, { + "fqsen": "\\LDC\\LDCCRM\\Models\\ArcadiaMailGame\u003A\u003A\u0024address", + "name": "address", + "summary": "The\u0020user\u0020address\u0020\u0028street\u0020number,\u0020name,\u0020etc\u0029", + "url": "classes/LDC-LDCCRM-Models-ArcadiaMailGame.html#property_address" + }, { + "fqsen": "\\LDC\\LDCCRM\\Models\\ArcadiaMailGame\u003A\u003A\u0024address2", + "name": "address2", + "summary": "The\u0020user\u0020address\u00202nd\u0020part\u0020\u0028street\u0020number,\u0020name,\u0020more,\u0020etc\u0029", + "url": "classes/LDC-LDCCRM-Models-ArcadiaMailGame.html#property_address2" + }, { + "fqsen": "\\LDC\\LDCCRM\\Models\\ArcadiaMailGame\u003A\u003A\u0024city", + "name": "city", + "summary": "The\u0020user\u0020address\u0020city", + "url": "classes/LDC-LDCCRM-Models-ArcadiaMailGame.html#property_city" + }, { + "fqsen": "\\LDC\\LDCCRM\\Models\\ArcadiaMailGame\u003A\u003A\u0024postcode", + "name": "postcode", + "summary": "The\u0020user\u0020address\u0020postcode", + "url": "classes/LDC-LDCCRM-Models-ArcadiaMailGame.html#property_postcode" + }, { + "fqsen": "\\LDC\\LDCCRM\\Models\\ArcadiaMailGame\u003A\u003A\u0024operation", + "name": "operation", + "summary": "The\u0020arcadia\u0020operation\u0020code", + "url": "classes/LDC-LDCCRM-Models-ArcadiaMailGame.html#property_operation" + }, { + "fqsen": "\\LDC\\LDCCRM\\Models\\ArcadiaMailGame\u003A\u003A\u0024support_code", + "name": "support_code", + "summary": "The\u0020arcadia\u0020support\u0020code", + "url": "classes/LDC-LDCCRM-Models-ArcadiaMailGame.html#property_support_code" + }, { + "fqsen": "\\LDC\\LDCCRM\\Models\\ArcadiaMailGame\u003A\u003A\u0024label_type_support", + "name": "label_type_support", + "summary": "The\u0020arcadia\u0020type\u0020support\u0020label", + "url": "classes/LDC-LDCCRM-Models-ArcadiaMailGame.html#property_label_type_support" + }, { + "fqsen": "\\LDC\\LDCCRM\\Models\\ArcadiaMailGame\u003A\u003A\u0024order_date", + "name": "order_date", + "summary": "The\u0020arcadia\u0020order\u0020date", + "url": "classes/LDC-LDCCRM-Models-ArcadiaMailGame.html#property_order_date" + }, { + "fqsen": "\\LDC\\LDCCRM\\Models\\ArcadiaMailGame\u003A\u003A\u0024code_unique", + "name": "code_unique", + "summary": "The\u0020arcadia\u0020code\u0020unique", + "url": "classes/LDC-LDCCRM-Models-ArcadiaMailGame.html#property_code_unique" + }, { + "fqsen": "\\LDC\\LDCCRM\\Models\\ArcadiaMailGame\u003A\u003A\u0024code_on_pack", + "name": "code_on_pack", + "summary": "The\u0020arcadia\u0020code\u0020on\u0020pack", + "url": "classes/LDC-LDCCRM-Models-ArcadiaMailGame.html#property_code_on_pack" + }, { + "fqsen": "\\LDC\\LDCCRM\\Models\\ArcadiaMailGame\u003A\u003A\u0024modelFields", + "name": "modelFields", + "summary": "The\u0020crm\u0020customer\u0020fields", + "url": "classes/LDC-LDCCRM-Models-ArcadiaMailGame.html#property_modelFields" + }, { + "fqsen": "\\LDC\\LDCCRM\\Models\\ArcadiaMailGame\u003A\u003A\u0024validation", + "name": "validation", + "summary": "Validation\u0020rules", + "url": "classes/LDC-LDCCRM-Models-ArcadiaMailGame.html#property_validation" + }, { + "fqsen": "\\LDC\\LDCCRM\\Models\\Customer", + "name": "Customer", + "summary": "This\u0020class\u0020represents\u0020the\u0020customer\u0020info\u0020with\nthe\u0020account\u0020validation\u0020status.\u0020You\u0020can\u0020use\u0020it\u0020as\na\u0020standalone\u0020class\u0020but\u0020beware\u0020of\u0020catching\u0020exceptions", + "url": "classes/LDC-LDCCRM-Models-Customer.html" + }, { + "fqsen": "\\LDC\\LDCCRM\\Models\\Customer\u003A\u003A__construct\u0028\u0029", + "name": "__construct", + "summary": "Customer", + "url": "classes/LDC-LDCCRM-Models-Customer.html#method___construct" + }, { + "fqsen": "\\LDC\\LDCCRM\\Models\\Customer\u003A\u003A__get\u0028\u0029", + "name": "__get", + "summary": "Generic\u0020accessor", + "url": "classes/LDC-LDCCRM-Models-Customer.html#method___get" + }, { + "fqsen": "\\LDC\\LDCCRM\\Models\\Customer\u003A\u003A__set\u0028\u0029", + "name": "__set", + "summary": "Set\u0020prop\u0020on\u0020the\u0020model.", + "url": "classes/LDC-LDCCRM-Models-Customer.html#method___set" + }, { + "fqsen": "\\LDC\\LDCCRM\\Models\\Customer\u003A\u003Afill\u0028\u0029", + "name": "fill", + "summary": "Fill\u0020values\u0020into\u0020model\u0020using\u0020validation\u0020rules.", + "url": "classes/LDC-LDCCRM-Models-Customer.html#method_fill" + }, { + "fqsen": "\\LDC\\LDCCRM\\Models\\Customer\u003A\u003AvalidateAllValues\u0028\u0029", + "name": "validateAllValues", + "summary": "Validate\u0020all\u0020model\u0020properties", + "url": "classes/LDC-LDCCRM-Models-Customer.html#method_validateAllValues" + }, { + "fqsen": "\\LDC\\LDCCRM\\Models\\Customer\u003A\u003Afind\u0028\u0029", + "name": "find", + "summary": "Find\u0020a\u0020customer\u0020using\u0020its\u0020hashcode\u0020in\u0020the\u0020crm", + "url": "classes/LDC-LDCCRM-Models-Customer.html#method_find" + }, { + "fqsen": "\\LDC\\LDCCRM\\Models\\Customer\u003A\u003AfindWithEmail\u0028\u0029", + "name": "findWithEmail", + "summary": "Find\u0020a\u0020customer\u0020using\u0020its\u0020email\u0020in\u0020the\u0020crm\nThis\u0020is\u0020an\u0020alias\u0020of\u0020Customer\u003A\u003Afind\u0028\u0029", + "url": "classes/LDC-LDCCRM-Models-Customer.html#method_findWithEmail" + }, { + "fqsen": "\\LDC\\LDCCRM\\Models\\Customer\u003A\u003Asave\u0028\u0029", + "name": "save", + "summary": "Save\u0020the\u0020customer\u0020on\u0020CRM.", + "url": "classes/LDC-LDCCRM-Models-Customer.html#method_save" + }, { + "fqsen": "\\LDC\\LDCCRM\\Models\\Customer\u003A\u003Astore\u0028\u0029", + "name": "store", + "summary": "Calls\u0020api\u0020store\u0020customer\u0020method", + "url": "classes/LDC-LDCCRM-Models-Customer.html#method_store" + }, { + "fqsen": "\\LDC\\LDCCRM\\Models\\Customer\u003A\u003Aupdate\u0028\u0029", + "name": "update", + "summary": "Calls\u0020api\u0020update\u0020customer\u0020method", + "url": "classes/LDC-LDCCRM-Models-Customer.html#method_update" + }, { + "fqsen": "\\LDC\\LDCCRM\\Models\\Customer\u003A\u003Adelete\u0028\u0029", + "name": "delete", + "summary": "Removes\u0020the\u0020customer\u0020from\u0020CRM.", + "url": "classes/LDC-LDCCRM-Models-Customer.html#method_delete" + }, { + "fqsen": "\\LDC\\LDCCRM\\Models\\Customer\u003A\u003Aactivate\u0028\u0029", + "name": "activate", + "summary": "Active\u0020the\u0020customer\u0020on\u0020CRM.", + "url": "classes/LDC-LDCCRM-Models-Customer.html#method_activate" + }, { + "fqsen": "\\LDC\\LDCCRM\\Models\\Customer\u003A\u003AtoggleOptin\u0028\u0029", + "name": "toggleOptin", + "summary": "Toggle\u0020the\u0020account\u0020optin\u0020value\u0020in\u0020the\u0020crm", + "url": "classes/LDC-LDCCRM-Models-Customer.html#method_toggleOptin" + }, { + "fqsen": "\\LDC\\LDCCRM\\Models\\Customer\u003A\u003Alogin\u0028\u0029", + "name": "login", + "summary": "Test\u0020customer\u0020credentials", + "url": "classes/LDC-LDCCRM-Models-Customer.html#method_login" + }, { + "fqsen": "\\LDC\\LDCCRM\\Models\\Customer\u003A\u003AjsonSerialize\u0028\u0029", + "name": "jsonSerialize", + "summary": "Serialize\u0020this\u0020object\u0020to\u0020an\u0020array", + "url": "classes/LDC-LDCCRM-Models-Customer.html#method_jsonSerialize" + }, { + "fqsen": "\\LDC\\LDCCRM\\Models\\Customer\u003A\u003A\u0024hashcode", + "name": "hashcode", + "summary": "The\u0020user\u0020hashcode,\u0020this\u0020is\u0020link\u0020with\u0020the\u0020customer\u0020and\u0020the\u0020brand\u0020it\u0020is\u0020related\u0020to\nIt\u0020is\u0020used\u0020to\u0020identify\u0020the\u0020customer\u0020itself.", + "url": "classes/LDC-LDCCRM-Models-Customer.html#property_hashcode" + }, { + "fqsen": "\\LDC\\LDCCRM\\Models\\Customer\u003A\u003A\u0024email", + "name": "email", + "summary": "An\u0020RFC\u0020Valid\u0020Email", + "url": "classes/LDC-LDCCRM-Models-Customer.html#property_email" + }, { + "fqsen": "\\LDC\\LDCCRM\\Models\\Customer\u003A\u003A\u0024password", + "name": "password", + "summary": "The\u0020user\u0020password\nThis\u0020is\u0020set\u0020only\u0020when\u0020creating\u0020a\u0020user\nOtherwise\u0020it\u0020has\u0020to\u0020be\u0020set\u0020to\u0020null", + "url": "classes/LDC-LDCCRM-Models-Customer.html#property_password" + }, { + "fqsen": "\\LDC\\LDCCRM\\Models\\Customer\u003A\u003A\u0024firstname", + "name": "firstname", + "summary": "First\u0020name", + "url": "classes/LDC-LDCCRM-Models-Customer.html#property_firstname" + }, { + "fqsen": "\\LDC\\LDCCRM\\Models\\Customer\u003A\u003A\u0024lastname", + "name": "lastname", + "summary": "Last\u0020name", + "url": "classes/LDC-LDCCRM-Models-Customer.html#property_lastname" + }, { + "fqsen": "\\LDC\\LDCCRM\\Models\\Customer\u003A\u003A\u0024birth_date", + "name": "birth_date", + "summary": "Birth\u0020date", + "url": "classes/LDC-LDCCRM-Models-Customer.html#property_birth_date" + }, { + "fqsen": "\\LDC\\LDCCRM\\Models\\Customer\u003A\u003A\u0024phone", + "name": "phone", + "summary": "The\u0020user\u0020phone", + "url": "classes/LDC-LDCCRM-Models-Customer.html#property_phone" + }, { + "fqsen": "\\LDC\\LDCCRM\\Models\\Customer\u003A\u003A\u0024address", + "name": "address", + "summary": "The\u0020user\u0020address\u0020\u0028street\u0020number,\u0020name,\u0020etc\u0029", + "url": "classes/LDC-LDCCRM-Models-Customer.html#property_address" + }, { + "fqsen": "\\LDC\\LDCCRM\\Models\\Customer\u003A\u003A\u0024address2", + "name": "address2", + "summary": "The\u0020user\u0020address\u00202nd\u0020part\u0020\u0028street\u0020number,\u0020name,\u0020more,\u0020etc\u0029", + "url": "classes/LDC-LDCCRM-Models-Customer.html#property_address2" + }, { + "fqsen": "\\LDC\\LDCCRM\\Models\\Customer\u003A\u003A\u0024city", + "name": "city", + "summary": "The\u0020user\u0020address\u0020city", + "url": "classes/LDC-LDCCRM-Models-Customer.html#property_city" + }, { + "fqsen": "\\LDC\\LDCCRM\\Models\\Customer\u003A\u003A\u0024postcode", + "name": "postcode", + "summary": "The\u0020user\u0020address\u0020postcode", + "url": "classes/LDC-LDCCRM-Models-Customer.html#property_postcode" + }, { + "fqsen": "\\LDC\\LDCCRM\\Models\\Customer\u003A\u003A\u0024country", + "name": "country", + "summary": "The\u0020user\u0020address\u0020postcode", + "url": "classes/LDC-LDCCRM-Models-Customer.html#property_country" + }, { + "fqsen": "\\LDC\\LDCCRM\\Models\\Customer\u003A\u003A\u0024opt_in", + "name": "opt_in", + "summary": "The\u0020user\u0020optin\u0020choice", + "url": "classes/LDC-LDCCRM-Models-Customer.html#property_opt_in" + }, { + "fqsen": "\\LDC\\LDCCRM\\Models\\Customer\u003A\u003A\u0024status", + "name": "status", + "summary": "Is\u0020the\u0020account\u0020activated\u0020\u003F", + "url": "classes/LDC-LDCCRM-Models-Customer.html#property_status" + }, { + "fqsen": "\\LDC\\LDCCRM\\Models\\Customer\u003A\u003A\u0024last_connection", + "name": "last_connection", + "summary": "The\u0020last\u0020time\u0020the\u0020account\u0020was\u0020connected", + "url": "classes/LDC-LDCCRM-Models-Customer.html#property_last_connection" + }, { + "fqsen": "\\LDC\\LDCCRM\\Models\\Customer\u003A\u003A\u0024modelFields", + "name": "modelFields", + "summary": "The\u0020crm\u0020customer\u0020fields", + "url": "classes/LDC-LDCCRM-Models-Customer.html#property_modelFields" + }, { + "fqsen": "\\LDC\\LDCCRM\\Models\\Customer\u003A\u003A\u0024invisibleFields", + "name": "invisibleFields", + "summary": "The\u0020crm\u0020customer\u0020fields\nthe\u0020should\u0020not\u0020be\u0020visible", + "url": "classes/LDC-LDCCRM-Models-Customer.html#property_invisibleFields" + }, { + "fqsen": "\\LDC\\LDCCRM\\Models\\Customer\u003A\u003A\u0024validation", + "name": "validation", + "summary": "Validation\u0020rules", + "url": "classes/LDC-LDCCRM-Models-Customer.html#property_validation" + }, { + "fqsen": "\\LDC\\LDCCRM\\Models\\Question", + "name": "Question", + "summary": "This\u0020class\u0020represents\u0020a\u0020question\nIt\u0020has\u0020some\u0020static\u0020methods\u0020to\u0020retrieve\u0020questions\u0020and\u0020answers", + "url": "classes/LDC-LDCCRM-Models-Question.html" + }, { + "fqsen": "\\LDC\\LDCCRM\\Models\\Question\u003A\u003A__construct\u0028\u0029", + "name": "__construct", + "summary": "Question", + "url": "classes/LDC-LDCCRM-Models-Question.html#method___construct" + }, { + "fqsen": "\\LDC\\LDCCRM\\Models\\Question\u003A\u003A__get\u0028\u0029", + "name": "__get", + "summary": "General\u0020accessor", + "url": "classes/LDC-LDCCRM-Models-Question.html#method___get" + }, { + "fqsen": "\\LDC\\LDCCRM\\Models\\Question\u003A\u003A__set\u0028\u0029", + "name": "__set", + "summary": "Set\u0020prop\u0020on\u0020the\u0020model.", + "url": "classes/LDC-LDCCRM-Models-Question.html#method___set" + }, { + "fqsen": "\\LDC\\LDCCRM\\Models\\Question\u003A\u003Afill\u0028\u0029", + "name": "fill", + "summary": "Fill\u0020values\u0020into\u0020model\u0020using\u0020validation\u0020rules.", + "url": "classes/LDC-LDCCRM-Models-Question.html#method_fill" + }, { + "fqsen": "\\LDC\\LDCCRM\\Models\\Question\u003A\u003AvalidateAllValues\u0028\u0029", + "name": "validateAllValues", + "summary": "Validate\u0020all\u0020model\u0020properties", + "url": "classes/LDC-LDCCRM-Models-Question.html#method_validateAllValues" + }, { + "fqsen": "\\LDC\\LDCCRM\\Models\\Question\u003A\u003Aall\u0028\u0029", + "name": "all", + "summary": "Get\u0020all\u0020questions\u0020only", + "url": "classes/LDC-LDCCRM-Models-Question.html#method_all" + }, { + "fqsen": "\\LDC\\LDCCRM\\Models\\Question\u003A\u003AallWithCustomerAnswers\u0028\u0029", + "name": "allWithCustomerAnswers", + "summary": "Get\u0020all\u0020the\u0020questions\u0020with\u0020customer\u0020answers", + "url": "classes/LDC-LDCCRM-Models-Question.html#method_allWithCustomerAnswers" + }, { + "fqsen": "\\LDC\\LDCCRM\\Models\\Question\u003A\u003AunansweredBy\u0028\u0029", + "name": "unansweredBy", + "summary": "Get\u0020unanswered\u0020question\u0020for\u0020a\u0020specific\u0020customer", + "url": "classes/LDC-LDCCRM-Models-Question.html#method_unansweredBy" + }, { + "fqsen": "\\LDC\\LDCCRM\\Models\\Question\u003A\u003AjsonSerialize\u0028\u0029", + "name": "jsonSerialize", + "summary": "Serialize\u0020this\u0020object\u0020to\u0020an\u0020array", + "url": "classes/LDC-LDCCRM-Models-Question.html#method_jsonSerialize" + }, { + "fqsen": "\\LDC\\LDCCRM\\Models\\Question\u003A\u003A\u0024id", + "name": "id", + "summary": "The\u0020question\u0020id", + "url": "classes/LDC-LDCCRM-Models-Question.html#property_id" + }, { + "fqsen": "\\LDC\\LDCCRM\\Models\\Question\u003A\u003A\u0024question", + "name": "question", + "summary": "The\u0020actual\u0020question\u0020as\u0020a\u0020string", + "url": "classes/LDC-LDCCRM-Models-Question.html#property_question" + }, { + "fqsen": "\\LDC\\LDCCRM\\Models\\Question\u003A\u003A\u0024type", + "name": "type", + "summary": "The\u0020question\u0020type", + "url": "classes/LDC-LDCCRM-Models-Question.html#property_type" + }, { + "fqsen": "\\LDC\\LDCCRM\\Models\\Question\u003A\u003A\u0024answers", + "name": "answers", + "summary": "The\u0020question\u0020answers", + "url": "classes/LDC-LDCCRM-Models-Question.html#property_answers" + }, { + "fqsen": "\\LDC\\LDCCRM\\Models\\Question\u003A\u003A\u0024modelFields", + "name": "modelFields", + "summary": "The\u0020crm\u0020customer\u0020fields", + "url": "classes/LDC-LDCCRM-Models-Question.html#property_modelFields" + }, { + "fqsen": "\\LDC\\LDCCRM\\Models\\Question\u003A\u003A\u0024validation", + "name": "validation", + "summary": "Validation\u0020rules", + "url": "classes/LDC-LDCCRM-Models-Question.html#property_validation" + }, { + "fqsen": "\\LDC\\LDCCRM\\Models\\SingleOptin", + "name": "SingleOptin", + "summary": "This\u0020class\u0020allows\u0020to\u0020handle\u0020single\u0020optins", + "url": "classes/LDC-LDCCRM-Models-SingleOptin.html" + }, { + "fqsen": "\\LDC\\LDCCRM\\Models\\SingleOptin\u003A\u003AsetStatus\u0028\u0029", + "name": "setStatus", + "summary": "Set\u0020the\u0020single\u0020optin\u0020status\u0020for\u0020an\u0020email", + "url": "classes/LDC-LDCCRM-Models-SingleOptin.html#method_setStatus" + }, { + "fqsen": "\\LDC\\LDCCRM\\Models\\SingleOptin\u003A\u003A\u0024validation", + "name": "validation", + "summary": "Validation\u0020rules", + "url": "classes/LDC-LDCCRM-Models-SingleOptin.html#property_validation" + }, { + "fqsen": "\\LDC\\LDCCRM\\Models\\Stats", + "name": "Stats", + "summary": "This\u0020class\u0020is\u0020used\u0020to\u0020get\u0020stats\u0020from\u0020CRM", + "url": "classes/LDC-LDCCRM-Models-Stats.html" + }, { + "fqsen": "\\LDC\\LDCCRM\\Models\\Stats\u003A\u003AgetBrandStats\u0028\u0029", + "name": "getBrandStats", + "summary": "Get\u0020brand\u0020stats\u0020ordered\u0020by\u0020ascendent\u0020days", + "url": "classes/LDC-LDCCRM-Models-Stats.html#method_getBrandStats" + }, { + "fqsen": "\\LDC\\LDCCRM\\Models\\Stats\u003A\u003AgetQuestionStats\u0028\u0029", + "name": "getQuestionStats", + "summary": "Get\u0020brand\u0020stats\u0020ordered\u0020by\u0020ascendent\u0020days", + "url": "classes/LDC-LDCCRM-Models-Stats.html#method_getQuestionStats" + }, { + "fqsen": "\\LDC\\LDCCRM\\Models\\Stats\u003A\u003A\u0024validation", + "name": "validation", + "summary": "Validation\u0020rules", + "url": "classes/LDC-LDCCRM-Models-Stats.html#property_validation" + }, { + "fqsen": "\\LDC\\LDCCRM\\Transport\\Request", + "name": "Request", + "summary": "The\u0020LDC\u0020CRM\u0020request\nContains\u0020the\u0020http\u0020method,\u0020the\u0020requested\u0020url\u0020and\u0020data\u0020to\u0020pass", + "url": "classes/LDC-LDCCRM-Transport-Request.html" + }, { + "fqsen": "\\LDC\\LDCCRM\\Transport\\Request\u003A\u003A__construct\u0028\u0029", + "name": "__construct", + "summary": "Request", + "url": "classes/LDC-LDCCRM-Transport-Request.html#method___construct" + }, { + "fqsen": "\\LDC\\LDCCRM\\Transport\\Request\u003A\u003A__get\u0028\u0029", + "name": "__get", + "summary": "Generic\u0020accessor", + "url": "classes/LDC-LDCCRM-Transport-Request.html#method___get" + }, { + "fqsen": "\\LDC\\LDCCRM\\Transport\\Request\u003A\u003AmakeRequest\u0028\u0029", + "name": "makeRequest", + "summary": "make\u0020the\u0020guzzle\u0020request", + "url": "classes/LDC-LDCCRM-Transport-Request.html#method_makeRequest" + }, { + "fqsen": "\\LDC\\LDCCRM\\Transport\\Request\u003A\u003AsetEndpoint\u0028\u0029", + "name": "setEndpoint", + "summary": "Set\u0020the\u0020api\u0020endpoint\u0020to\u0020the\u0020request", + "url": "classes/LDC-LDCCRM-Transport-Request.html#method_setEndpoint" + }, { + "fqsen": "\\LDC\\LDCCRM\\Transport\\Request\u003A\u003Acall\u0028\u0029", + "name": "call", + "summary": "Make\u0020the\u0020Http\u0020request", + "url": "classes/LDC-LDCCRM-Transport-Request.html#method_call" + }, { + "fqsen": "\\LDC\\LDCCRM\\Transport\\Request\u003A\u003AaddHeaders\u0028\u0029", + "name": "addHeaders", + "summary": "Add\u0020headers\u0020to\u0020the\u0020request", + "url": "classes/LDC-LDCCRM-Transport-Request.html#method_addHeaders" + }, { + "fqsen": "\\LDC\\LDCCRM\\Transport\\Request\u003A\u003AaddData\u0028\u0029", + "name": "addData", + "summary": "Add\u0020data\u0020to\u0020the\u0020request", + "url": "classes/LDC-LDCCRM-Transport-Request.html#method_addData" + }, { + "fqsen": "\\LDC\\LDCCRM\\Transport\\Request\u003A\u003A\u0024client", + "name": "client", + "summary": "GuzzleHttp\u0020client", + "url": "classes/LDC-LDCCRM-Transport-Request.html#property_client" + }, { + "fqsen": "\\LDC\\LDCCRM\\Transport\\Request\u003A\u003A\u0024method", + "name": "method", + "summary": "The\u0020http\u0020method", + "url": "classes/LDC-LDCCRM-Transport-Request.html#property_method" + }, { + "fqsen": "\\LDC\\LDCCRM\\Transport\\Request\u003A\u003A\u0024uri", + "name": "uri", + "summary": "The\u0020http\u0020url", + "url": "classes/LDC-LDCCRM-Transport-Request.html#property_uri" + }, { + "fqsen": "\\LDC\\LDCCRM\\Transport\\Request\u003A\u003A\u0024headers", + "name": "headers", + "summary": "Data\u0020to\u0020pass\u0020to\u0020the\u0020http\u0020headers", + "url": "classes/LDC-LDCCRM-Transport-Request.html#property_headers" + }, { + "fqsen": "\\LDC\\LDCCRM\\Transport\\Request\u003A\u003A\u0024data", + "name": "data", + "summary": "Data\u0020to\u0020pass\u0020to\u0020the\u0020http\u0020body", + "url": "classes/LDC-LDCCRM-Transport-Request.html#property_data" + }, { + "fqsen": "\\LDC\\LDCCRM\\Transport\\Request\u003A\u003A\u0024request", + "name": "request", + "summary": "Guzzle\u0020request", + "url": "classes/LDC-LDCCRM-Transport-Request.html#property_request" + }, { + "fqsen": "\\LDC\\LDCCRM\\Transport\\Request\u003A\u003A\u0024endpoint", + "name": "endpoint", + "summary": "The\u0020Api\u0020endpoint", + "url": "classes/LDC-LDCCRM-Transport-Request.html#property_endpoint" + }, { + "fqsen": "\\LDC\\LDCCRM\\Transport\\Response", + "name": "Response", + "summary": "", + "url": "classes/LDC-LDCCRM-Transport-Response.html" + }, { + "fqsen": "\\LDC\\LDCCRM\\Transport\\Response\u003A\u003A__construct\u0028\u0029", + "name": "__construct", + "summary": "Response", + "url": "classes/LDC-LDCCRM-Transport-Response.html#method___construct" + }, { + "fqsen": "\\LDC\\LDCCRM\\Transport\\Response\u003A\u003A__get\u0028\u0029", + "name": "__get", + "summary": "Generic\u0020accessor", + "url": "classes/LDC-LDCCRM-Transport-Response.html#method___get" + }, { + "fqsen": "\\LDC\\LDCCRM\\Transport\\Response\u003A\u003AtryDecodeJson\u0028\u0029", + "name": "tryDecodeJson", + "summary": "Try\u0020to\u0020decode\u0020json\u0020and\u0020return\u0020false\u0020if\u0020it\u0020is\nnot\u0020a\u0020valid\u0020json", + "url": "classes/LDC-LDCCRM-Transport-Response.html#method_tryDecodeJson" + }, { + "fqsen": "\\LDC\\LDCCRM\\Transport\\Response\u003A\u003AcheckVersion\u0028\u0029", + "name": "checkVersion", + "summary": "This\u0020checks\u0020if\u0020the\u0020crm\u0020version\u0020is\u0020way\u0020far\u0020beyond\u0020the\u0020client\u0020version.", + "url": "classes/LDC-LDCCRM-Transport-Response.html#method_checkVersion" + }, { + "fqsen": "\\LDC\\LDCCRM\\Transport\\Response\u003A\u003A\u0024status", + "name": "status", + "summary": "The\u0020response\u0020status", + "url": "classes/LDC-LDCCRM-Transport-Response.html#property_status" + }, { + "fqsen": "\\LDC\\LDCCRM\\Transport\\Response\u003A\u003A\u0024apiError", + "name": "apiError", + "summary": "The\u0020api\u0020error", + "url": "classes/LDC-LDCCRM-Transport-Response.html#property_apiError" + }, { + "fqsen": "\\LDC\\LDCCRM\\Transport\\Response\u003A\u003A\u0024httpCode", + "name": "httpCode", + "summary": "The\u0020response\u0020http\u0020code", + "url": "classes/LDC-LDCCRM-Transport-Response.html#property_httpCode" + }, { + "fqsen": "\\LDC\\LDCCRM\\Transport\\Response\u003A\u003A\u0024headers", + "name": "headers", + "summary": "The\u0020response\u0020headers", + "url": "classes/LDC-LDCCRM-Transport-Response.html#property_headers" + }, { + "fqsen": "\\LDC\\LDCCRM\\Transport\\Response\u003A\u003A\u0024body", + "name": "body", + "summary": "The\u0020response\u0020body", + "url": "classes/LDC-LDCCRM-Transport-Response.html#property_body" + }, { + "fqsen": "\\LDC\\LDCCRM\\Transport\\Response\u003A\u003A\u0024message", + "name": "message", + "summary": "The\u0020interface\u0020message", + "url": "classes/LDC-LDCCRM-Transport-Response.html#property_message" + }, { + "fqsen": "\\LDC\\LDCCRM\\Transport\\Response\u003A\u003A\u0024response", + "name": "response", + "summary": "PSR\u0020response", + "url": "classes/LDC-LDCCRM-Transport-Response.html#property_response" + }, { + "fqsen": "\\LDC\\LDCCRM\\Utils", + "name": "Utils", + "summary": "This\u0020is\u0020the\u0020LDCCRM\u0020utility\u0020class", + "url": "classes/LDC-LDCCRM-Utils.html" + }, { + "fqsen": "\\LDC\\LDCCRM\\Utils\u003A\u003AmakeValidator\u0028\u0029", + "name": "makeValidator", + "summary": "Create\u0020a\u0020new\u0020Validator\u0020instance.", + "url": "classes/LDC-LDCCRM-Utils.html#method_makeValidator" + }, { + "fqsen": "\\LDC\\LDCCRM\\Utils\u003A\u003AmakeValidatorFromRule\u0028\u0029", + "name": "makeValidatorFromRule", + "summary": "Generate\u0020a\u0020validator", + "url": "classes/LDC-LDCCRM-Utils.html#method_makeValidatorFromRule" + }, { + "fqsen": "\\LDC\\LDCCRM\\Utils\u003A\u003AvalidationRequired\u0028\u0029", + "name": "validationRequired", + "summary": "Make\u0020Required\u0020validator", + "url": "classes/LDC-LDCCRM-Utils.html#method_validationRequired" + }, { + "fqsen": "\\LDC\\LDCCRM\\Utils\u003A\u003AvalidationNullable\u0028\u0029", + "name": "validationNullable", + "summary": "Make\u0020Nullable\u0020validator", + "url": "classes/LDC-LDCCRM-Utils.html#method_validationNullable" + }, { + "fqsen": "\\LDC\\LDCCRM\\Utils\u003A\u003AvalidationSometimes\u0028\u0029", + "name": "validationSometimes", + "summary": "Make\u0020Sometimes\u0020validator", + "url": "classes/LDC-LDCCRM-Utils.html#method_validationSometimes" + }, { + "fqsen": "\\LDC\\LDCCRM\\Utils\u003A\u003AvalidationInt\u0028\u0029", + "name": "validationInt", + "summary": "Make\u0020Int\u0020validator", + "url": "classes/LDC-LDCCRM-Utils.html#method_validationInt" + }, { + "fqsen": "\\LDC\\LDCCRM\\Utils\u003A\u003AvalidationString\u0028\u0029", + "name": "validationString", + "summary": "Make\u0020String\u0020validator", + "url": "classes/LDC-LDCCRM-Utils.html#method_validationString" + }, { + "fqsen": "\\LDC\\LDCCRM\\Utils\u003A\u003AvalidationBool\u0028\u0029", + "name": "validationBool", + "summary": "Make\u0020Bool\u0020validator", + "url": "classes/LDC-LDCCRM-Utils.html#method_validationBool" + }, { + "fqsen": "\\LDC\\LDCCRM\\Utils\u003A\u003AvalidationMin\u0028\u0029", + "name": "validationMin", + "summary": "Make\u0020Min\u0020validator", + "url": "classes/LDC-LDCCRM-Utils.html#method_validationMin" + }, { + "fqsen": "\\LDC\\LDCCRM\\Utils\u003A\u003AvalidationMax\u0028\u0029", + "name": "validationMax", + "summary": "Make\u0020Max\u0020validator", + "url": "classes/LDC-LDCCRM-Utils.html#method_validationMax" + }, { + "fqsen": "\\LDC\\LDCCRM\\Utils\u003A\u003AvalidationUuid\u0028\u0029", + "name": "validationUuid", + "summary": "Make\u0020Uuid\u0020validator", + "url": "classes/LDC-LDCCRM-Utils.html#method_validationUuid" + }, { + "fqsen": "\\LDC\\LDCCRM\\Utils\u003A\u003AvalidationMixedCase\u0028\u0029", + "name": "validationMixedCase", + "summary": "Make\u0020MixedCase\u0020validator", + "url": "classes/LDC-LDCCRM-Utils.html#method_validationMixedCase" + }, { + "fqsen": "\\LDC\\LDCCRM\\Utils\u003A\u003AvalidationContainDigit\u0028\u0029", + "name": "validationContainDigit", + "summary": "Make\u0020ContainDigit\u0020validator", + "url": "classes/LDC-LDCCRM-Utils.html#method_validationContainDigit" + }, { + "fqsen": "\\LDC\\LDCCRM\\Utils\u003A\u003AvalidationContainSymbol\u0028\u0029", + "name": "validationContainSymbol", + "summary": "Make\u0020ContainSymbol\u0020validator", + "url": "classes/LDC-LDCCRM-Utils.html#method_validationContainSymbol" + }, { + "fqsen": "\\LDC\\LDCCRM\\Utils\u003A\u003AvalidationDate\u0028\u0029", + "name": "validationDate", + "summary": "Make\u0020Date\u0020validator", + "url": "classes/LDC-LDCCRM-Utils.html#method_validationDate" + }, { + "fqsen": "\\LDC\\LDCCRM\\Utils\u003A\u003AvalidationDateFormat\u0028\u0029", + "name": "validationDateFormat", + "summary": "Make\u0020DateFormat\u0020validator", + "url": "classes/LDC-LDCCRM-Utils.html#method_validationDateFormat" + }, { + "fqsen": "\\LDC\\LDCCRM\\Utils\u003A\u003AvalidationEmail\u0028\u0029", + "name": "validationEmail", + "summary": "Make\u0020Email\u0020validator", + "url": "classes/LDC-LDCCRM-Utils.html#method_validationEmail" + }, { + "fqsen": "\\LDC\\LDCCRM\\Utils\u003A\u003AvalidationArray\u0028\u0029", + "name": "validationArray", + "summary": "Make\u0020Array\u0020validator", + "url": "classes/LDC-LDCCRM-Utils.html#method_validationArray" + }, { + "fqsen": "\\LDC\\LDCCRM\\Utils\u003A\u003AvalidationClosure\u0028\u0029", + "name": "validationClosure", + "summary": "Make\u0020Closure\u0020validator", + "url": "classes/LDC-LDCCRM-Utils.html#method_validationClosure" + }, { + "fqsen": "\\LDC\\LDCCRM\\Utils\u003A\u003AgetConfig\u0028\u0029", + "name": "getConfig", + "summary": "This\u0020is\u0020only\u0020used\u0020for\u0020unit\u0020tests.", + "url": "classes/LDC-LDCCRM-Utils.html#method_getConfig" + }, { + "fqsen": "\\LDC\\LDCCRM\\Utils\u003A\u003AgetResquest\u0028\u0029", + "name": "getResquest", + "summary": "Generate\u0020a\u0020Request\u0020from\u0020the\u0020route\u0020name", + "url": "classes/LDC-LDCCRM-Utils.html#method_getResquest" + }, { + "fqsen": "\\LDC\\LDCCRM\\Utils\u003A\u003AgetPackageInfo\u0028\u0029", + "name": "getPackageInfo", + "summary": "Get\u0020composer.json\u0020infos", + "url": "classes/LDC-LDCCRM-Utils.html#method_getPackageInfo" + }, { + "fqsen": "\\LDC\\LDCCRM\\Utils\u003A\u003Atranslate\u0028\u0029", + "name": "translate", + "summary": "Translation\u0020a\u0020string\u0020using\u0020php\u0020file\u0020lang", + "url": "classes/LDC-LDCCRM-Utils.html#method_translate" + }, { + "fqsen": "\\LDC\\LDCCRM\\Utils\u003A\u003Alog\u0028\u0029", + "name": "log", + "summary": "Write\u0020log\u0020using\u0020syslog\nIt\u0020also\u0020write\u0020log\u0020using\u0020\\Illuminate\\Support\\Facades\\Log\nif\u0020it\u0020is\u0020present", + "url": "classes/LDC-LDCCRM-Utils.html#method_log" + }, { + "fqsen": "\\LDC\\LDCCRM\\Utils\u003A\u003AsetRawProperty\u0028\u0029", + "name": "setRawProperty", + "summary": "Set\u0020a\u0020property\u0020without\u0020any\u0020validation.", + "url": "classes/LDC-LDCCRM-Utils.html#method_setRawProperty" + }, { + "fqsen": "\\LDC\\LDCCRM\\Utils\u003A\u003AgetRawProperty\u0028\u0029", + "name": "getRawProperty", + "summary": "Get\u0020a\u0020property\u0020of\u0020an\u0020object.", + "url": "classes/LDC-LDCCRM-Utils.html#method_getRawProperty" + }, { + "fqsen": "\\LDC\\LDCCRM\\Utils\u003A\u003A\u0024packageInfos", + "name": "packageInfos", + "summary": "Package\u0020infos", + "url": "classes/LDC-LDCCRM-Utils.html#property_packageInfos" + }, { + "fqsen": "\\LDC\\LDCCRM\\Utils\u003A\u003A\u0024translations", + "name": "translations", + "summary": "Loaded\u0020translations", + "url": "classes/LDC-LDCCRM-Utils.html#property_translations" + }, { + "fqsen": "\\LDC\\LDCCRM\\WordPress\\WPCrm", + "name": "WPCrm", + "summary": "Class\u0020de\u0020gestion\u0020des\u0020users\u0020en\u0020session\u0020avec\u0020Wordpress\u0020\u0028ce\u0020truc\u0020immonde\u0029", + "url": "classes/LDC-LDCCRM-WordPress-WPCrm.html" + }, { + "fqsen": "\\LDC\\LDCCRM\\WordPress\\WPCrm\u003A\u003AgetUser\u0028\u0029", + "name": "getUser", + "summary": "Get\u0020the\u0020current\u0020user\nreturn\u0020null\u0020if\u0020the\u0020user\u0020is\u0020not\u0020logged\u0020in", + "url": "classes/LDC-LDCCRM-WordPress-WPCrm.html#method_getUser" + }, { + "fqsen": "\\LDC\\LDCCRM\\WordPress\\WPCrm\u003A\u003AgetUserFromApi\u0028\u0029", + "name": "getUserFromApi", + "summary": "Get\u0020the\u0020current\u0020user\nreturn\u0020api\u0020response\u0020code\u0020if\u0020an\u0020error\u0020occurs", + "url": "classes/LDC-LDCCRM-WordPress-WPCrm.html#method_getUserFromApi" + }, { + "fqsen": "\\LDC\\LDCCRM\\WordPress\\WPCrm\u003A\u003Alogin\u0028\u0029", + "name": "login", + "summary": "Try\u0020to\u0020login\u0020with\u0020CRM\u0020API\nA\u0020session\u0020will\u0020be\u0020started\u0020if\u0020credentials\u0020are\u0020valid.", + "url": "classes/LDC-LDCCRM-WordPress-WPCrm.html#method_login" + }, { + "fqsen": "\\LDC\\LDCCRM\\WordPress\\WPCrm\u003A\u003Alogout\u0028\u0029", + "name": "logout", + "summary": "Destroy\u0020the\u0020customer\u0020from\u0020session\nand\u0020therefore\u0020logout", + "url": "classes/LDC-LDCCRM-WordPress-WPCrm.html#method_logout" + }, { + "fqsen": "\\LDC\\LDCCRM\\WordPress\\WPCrm\u003A\u003Acheck\u0028\u0029", + "name": "check", + "summary": "Check\u0020if\u0020the\u0020user\u0020is\u0020logged\u0020in.", + "url": "classes/LDC-LDCCRM-WordPress-WPCrm.html#method_check" + }, { + "fqsen": "\\LDC\\LDCCRM\\WordPress\\WPCrm\u003A\u003AsaveUser\u0028\u0029", + "name": "saveUser", + "summary": "Save\u0020current\u0020customer\u0020to\nthe\u0020local\u0020database\u0020and\u0020on\u0020crm", + "url": "classes/LDC-LDCCRM-WordPress-WPCrm.html#method_saveUser" + }, { + "fqsen": "\\LDC\\LDCCRM\\WordPress\\WPCrm\u003A\u003AdeleteUser\u0028\u0029", + "name": "deleteUser", + "summary": "Delete\u0020current\u0020customer\u0020from\nthe\u0020local\u0020database\u0020and\u0020the\u0020crm", + "url": "classes/LDC-LDCCRM-WordPress-WPCrm.html#method_deleteUser" + }, { + "fqsen": "\\LDC\\LDCCRM\\WordPress\\WPCrm\u003A\u003AtoggleUserOptin\u0028\u0029", + "name": "toggleUserOptin", + "summary": "Toggle\u0020the\u0020current\u0020user\u0020optin\u0020value\non\u0020the\u0020current\u0020user\u0020and\u0020the\u0020crm", + "url": "classes/LDC-LDCCRM-WordPress-WPCrm.html#method_toggleUserOptin" + }, { + "fqsen": "\\LDC\\LDCCRM\\WordPress\\WPCrm\u003A\u003AsetSingleOptin\u0028\u0029", + "name": "setSingleOptin", + "summary": "Set\u0020the\u0020single\u0020optin\u0020status\u0020for\u0020an\u0020email\non\u0020the\u0020crm", + "url": "classes/LDC-LDCCRM-WordPress-WPCrm.html#method_setSingleOptin" + }, { + "fqsen": "\\LDC\\LDCCRM\\WordPress\\WPCrm\u003A\u003AactivateUser\u0028\u0029", + "name": "activateUser", + "summary": "Toggle\u0020the\u0020current\u0020user\u0020optin\u0020value\non\u0020the\u0020current\u0020user\u0020and\u0020the\u0020crm", + "url": "classes/LDC-LDCCRM-WordPress-WPCrm.html#method_activateUser" + }, { + "fqsen": "\\LDC\\LDCCRM\\WordPress\\WPCrm\u003A\u003AgetNewUser\u0028\u0029", + "name": "getNewUser", + "summary": "Generate\u0020a\u0020new\u0020user", + "url": "classes/LDC-LDCCRM-WordPress-WPCrm.html#method_getNewUser" + }, { + "fqsen": "\\LDC\\LDCCRM\\WordPress\\WPCrm\u003A\u003AunsetActiveUser\u0028\u0029", + "name": "unsetActiveUser", + "summary": "Remove\u0020active\u0020user\nto\u0020prevent\u0020WPCrm\u003A\u003Acheck\u0020to\u0020return\u0020true", + "url": "classes/LDC-LDCCRM-WordPress-WPCrm.html#method_unsetActiveUser" + }, { + "fqsen": "\\LDC\\LDCCRM\\WordPress\\WPCrm\u003A\u003AloginUserWithApi\u0028\u0029", + "name": "loginUserWithApi", + "summary": "Check\u0020customer\u0020credentials\u0020using\u0020the\u0020CRM.", + "url": "classes/LDC-LDCCRM-WordPress-WPCrm.html#method_loginUserWithApi" + }, { + "fqsen": "\\LDC\\LDCCRM\\WordPress\\WPCrm\u003A\u003AgetCustomer\u0028\u0029", + "name": "getCustomer", + "summary": "Get\u0020all\u0020customer\u0020infos", + "url": "classes/LDC-LDCCRM-WordPress-WPCrm.html#method_getCustomer" + }, { + "fqsen": "\\LDC\\LDCCRM\\WordPress\\WPCrm\u003A\u003AsetUser\u0028\u0029", + "name": "setUser", + "summary": "Create\u0020a\u0020user\nstores\u0020it\u0020to\u0020the\u0020session\nand\u0020finally\u0020saves\u0020it\u0020to\u0020the\u0020database\u0020if\u0020it\u0020does\u0020not\u0020exists", + "url": "classes/LDC-LDCCRM-WordPress-WPCrm.html#method_setUser" + }, { + "fqsen": "\\LDC\\LDCCRM\\WordPress\\WPCrm\u003A\u003AinitLdcApi\u0028\u0029", + "name": "initLdcApi", + "summary": "Get\u0020the\u0020initialized\u0020API\u0020object", + "url": "classes/LDC-LDCCRM-WordPress-WPCrm.html#method_initLdcApi" + }, { + "fqsen": "\\LDC\\LDCCRM\\WordPress\\WPCrm\u003A\u003AmakeApiV2Call\u0028\u0029", + "name": "makeApiV2Call", + "summary": "Make\u0020a\u0020call\u0020using\u0020apiV2", + "url": "classes/LDC-LDCCRM-WordPress-WPCrm.html#method_makeApiV2Call" + }, { + "fqsen": "\\LDC\\LDCCRM\\WordPress\\WPCrm\u003A\u003AbootSessionIfNeeded\u0028\u0029", + "name": "bootSessionIfNeeded", + "summary": "Boot\u0020the\u0020php\u0020session\u0020if\u0020needed", + "url": "classes/LDC-LDCCRM-WordPress-WPCrm.html#method_bootSessionIfNeeded" + }, { + "fqsen": "\\LDC\\LDCCRM\\WordPress\\WPCrm\u003A\u003AgetUserFromTable\u0028\u0029", + "name": "getUserFromTable", + "summary": "Get\u0020a\u0020customer\u0020from\u0020table", + "url": "classes/LDC-LDCCRM-WordPress-WPCrm.html#method_getUserFromTable" + }, { + "fqsen": "\\LDC\\LDCCRM\\WordPress\\WPCrm\u003A\u003AgetUserFromTableByEmail\u0028\u0029", + "name": "getUserFromTableByEmail", + "summary": "Get\u0020a\u0020customer\u0020from\u0020table\u0020by\u0020an\u0020email", + "url": "classes/LDC-LDCCRM-WordPress-WPCrm.html#method_getUserFromTableByEmail" + }, { + "fqsen": "\\LDC\\LDCCRM\\WordPress\\WPCrm\u003A\u003AgetUserFromTableByUuid\u0028\u0029", + "name": "getUserFromTableByUuid", + "summary": "Get\u0020a\u0020customer\u0020from\u0020table\u0020by\u0020an\u0020email", + "url": "classes/LDC-LDCCRM-WordPress-WPCrm.html#method_getUserFromTableByUuid" + }, { + "fqsen": "\\LDC\\LDCCRM\\WordPress\\WPCrm\u003A\u003AsaveOrUpdateUserToTable\u0028\u0029", + "name": "saveOrUpdateUserToTable", + "summary": "Save\u0020or\u0020update\u0020the\u0020user\u0020to\u0020the\u0020table", + "url": "classes/LDC-LDCCRM-WordPress-WPCrm.html#method_saveOrUpdateUserToTable" + }, { + "fqsen": "\\LDC\\LDCCRM\\WordPress\\WPCrm\u003A\u003AdeleteUserFromTable\u0028\u0029", + "name": "deleteUserFromTable", + "summary": "Save\u0020or\u0020update\u0020the\u0020user\u0020to\u0020the\u0020table", + "url": "classes/LDC-LDCCRM-WordPress-WPCrm.html#method_deleteUserFromTable" + }, { + "fqsen": "\\LDC\\LDCCRM\\WordPress\\WPCrm\u003A\u003Aquery\u0028\u0029", + "name": "query", + "summary": "Query\u0020in\u0020DB", + "url": "classes/LDC-LDCCRM-WordPress-WPCrm.html#method_query" + }, { + "fqsen": "\\LDC\\LDCCRM\\WordPress\\WPCrm\u003A\u003AgetWpDb\u0028\u0029", + "name": "getWpDb", + "summary": "Get\u0020WP\u0020\u0027pdo\u0020instance\u0027", + "url": "classes/LDC-LDCCRM-WordPress-WPCrm.html#method_getWpDb" + }, { + "fqsen": "\\LDC\\LDCCRM\\WordPress\\WPCrm\u003A\u003A\u0024sessionKey", + "name": "sessionKey", + "summary": "The\u0020session\u0020key\u0020name", + "url": "classes/LDC-LDCCRM-WordPress-WPCrm.html#property_sessionKey" + }, { + "fqsen": "\\LDC\\LDCCRM\\WordPress\\WPCrm\u003A\u003A\u0024sessionDestroyed", + "name": "sessionDestroyed", + "summary": "The\u0020session\u0020live\u0020status", + "url": "classes/LDC-LDCCRM-WordPress-WPCrm.html#property_sessionDestroyed" + }, { + "fqsen": "\\LDC\\LDCCRM\\WordPress\\WPCrm\u003A\u003A\u0024api", + "name": "api", + "summary": "The\u0020user\u0020object", + "url": "classes/LDC-LDCCRM-WordPress-WPCrm.html#property_api" + }, { + "fqsen": "\\LDC\\LDCCRM\\WordPress\\WPCrm\u003A\u003A\u0024user", + "name": "user", + "summary": "The\u0020user\u0020object", + "url": "classes/LDC-LDCCRM-WordPress-WPCrm.html#property_user" + }, { + "fqsen": "\\LDC\\LDCCRM\\WordPress\\WPCrmAnswer", + "name": "WPCrmAnswer", + "summary": "Class\u0020de\u0020gestion\u0020de\u0020la\u0020segmentation\u0020question\u0020avec\u0020Wordpress\u0020\u0028ce\u0020truc\u0020immonde\u0029", + "url": "classes/LDC-LDCCRM-WordPress-WPCrmAnswer.html" + }, { + "fqsen": "\\LDC\\LDCCRM\\WordPress\\WPCrmAnswer\u003A\u003AsetQuestionAnswers\u0028\u0029", + "name": "setQuestionAnswers", + "summary": "Set\u0020answers\u0020to\u0020a\u0020question\u0020for\u0020a\u0020specific\u0020user", + "url": "classes/LDC-LDCCRM-WordPress-WPCrmAnswer.html#method_setQuestionAnswers" + }, { + "fqsen": "\\LDC\\LDCCRM\\WordPress\\WPCrmQuestion", + "name": "WPCrmQuestion", + "summary": "Class\u0020de\u0020gestion\u0020de\u0020la\u0020segmentation\u0020question\u0020avec\u0020Wordpress\u0020\u0028ce\u0020truc\u0020immonde\u0029", + "url": "classes/LDC-LDCCRM-WordPress-WPCrmQuestion.html" + }, { + "fqsen": "\\LDC\\LDCCRM\\WordPress\\WPCrmQuestion\u003A\u003AgetAll\u0028\u0029", + "name": "getAll", + "summary": "Get\u0020all\u0020questions\u0020only", + "url": "classes/LDC-LDCCRM-WordPress-WPCrmQuestion.html#method_getAll" + }, { + "fqsen": "\\LDC\\LDCCRM\\WordPress\\WPCrmQuestion\u003A\u003AallWithCustomerAnswers\u0028\u0029", + "name": "allWithCustomerAnswers", + "summary": "Get\u0020all\u0020the\u0020questions\u0020with\u0020user\u0020answers", + "url": "classes/LDC-LDCCRM-WordPress-WPCrmQuestion.html#method_allWithCustomerAnswers" + }, { + "fqsen": "\\LDC\\LDCCRM\\WordPress\\WPCrmQuestion\u003A\u003AunansweredBy\u0028\u0029", + "name": "unansweredBy", + "summary": "Get\u0020unanswered\u0020question\u0020for\u0020a\u0020specific\u0020customer", + "url": "classes/LDC-LDCCRM-WordPress-WPCrmQuestion.html#method_unansweredBy" + }, { + "fqsen": "\\LDC\\LDCCRM\\WordPress\\WPCrmUser", + "name": "WPCrmUser", + "summary": "Class\u0020de\u0020gestion\u0020des\u0020users\u0020en\u0020session\u0020avec\u0020Wordpress\u0020\u0028ce\u0020truc\u0020immonde\u0029", + "url": "classes/LDC-LDCCRM-WordPress-WPCrmUser.html" + }, { + "fqsen": "\\LDC\\LDCCRM\\WordPress\\WPCrmUser\u003A\u003A__construct\u0028\u0029", + "name": "__construct", + "summary": "WPCrmUser\u0020construct", + "url": "classes/LDC-LDCCRM-WordPress-WPCrmUser.html#method___construct" + }, { + "fqsen": "\\LDC\\LDCCRM\\WordPress\\WPCrmUser\u003A\u003A__get\u0028\u0029", + "name": "__get", + "summary": "Generic\u0020accessor", + "url": "classes/LDC-LDCCRM-WordPress-WPCrmUser.html#method___get" + }, { + "fqsen": "\\LDC\\LDCCRM\\WordPress\\WPCrmUser\u003A\u003A__set\u0028\u0029", + "name": "__set", + "summary": "Generic\u0020mutator", + "url": "classes/LDC-LDCCRM-WordPress-WPCrmUser.html#method___set" + }, { + "fqsen": "\\LDC\\LDCCRM\\WordPress\\WPCrmUser\u003A\u003AsetInfo\u0028\u0029", + "name": "setInfo", + "summary": "Set\u0020the\u0020customer\u0020info\nwith\u0020api\u0020response", + "url": "classes/LDC-LDCCRM-WordPress-WPCrmUser.html#method_setInfo" + }, { + "fqsen": "\\LDC\\LDCCRM\\WordPress\\WPCrmUser\u003A\u003AparseFromJson\u0028\u0029", + "name": "parseFromJson", + "summary": "Generate\u0020a\u0020user\u0020from\u0020session\u0020data", + "url": "classes/LDC-LDCCRM-WordPress-WPCrmUser.html#method_parseFromJson" + }, { + "fqsen": "\\LDC\\LDCCRM\\WordPress\\WPCrmUser\u003A\u003AjsonSerialize\u0028\u0029", + "name": "jsonSerialize", + "summary": "Serialize\u0020this\u0020object\u0020to\u0020an\u0020array", + "url": "classes/LDC-LDCCRM-WordPress-WPCrmUser.html#method_jsonSerialize" + }, { + "fqsen": "\\LDC\\LDCCRM\\WordPress\\WPCrmUser\u003A\u003Asave\u0028\u0029", + "name": "save", + "summary": "Save\u0020current\u0020customer\u0020to\nthe\u0020local\u0020database\u0020and\u0020on\u0020crm", + "url": "classes/LDC-LDCCRM-WordPress-WPCrmUser.html#method_save" + }, { + "fqsen": "\\LDC\\LDCCRM\\WordPress\\WPCrmUser\u003A\u003Adelete\u0028\u0029", + "name": "delete", + "summary": "Delete\u0020current\u0020customer\u0020to\nthe\u0020local\u0020database\u0020and\u0020on\u0020crm", + "url": "classes/LDC-LDCCRM-WordPress-WPCrmUser.html#method_delete" + }, { + "fqsen": "\\LDC\\LDCCRM\\WordPress\\WPCrmUser\u003A\u003AtoggleOptin\u0028\u0029", + "name": "toggleOptin", + "summary": "Toggle\u0020the\u0020current\u0020user\u0020optin\u0020value\non\u0020the\u0020current\u0020user\u0020and\u0020the\u0020crm", + "url": "classes/LDC-LDCCRM-WordPress-WPCrmUser.html#method_toggleOptin" + }, { + "fqsen": "\\LDC\\LDCCRM\\WordPress\\WPCrmUser\u003A\u003Aactivate\u0028\u0029", + "name": "activate", + "summary": "Activate\u0020the\u0020account\u0020in\u0020the\u0020crm", + "url": "classes/LDC-LDCCRM-WordPress-WPCrmUser.html#method_activate" + }, { + "fqsen": "\\LDC\\LDCCRM\\WordPress\\WPCrmUser\u003A\u003A\u0024phashcode", + "name": "phashcode", + "summary": "The\u0020CRM\u0020hashcode\u0020\u0028UUID\u0029", + "url": "classes/LDC-LDCCRM-WordPress-WPCrmUser.html#property_phashcode" + }, { + "fqsen": "\\LDC\\LDCCRM\\WordPress\\WPCrmUser\u003A\u003A\u0024pemail", + "name": "pemail", + "summary": "The\u0020CRM\u0020customer\u0020email", + "url": "classes/LDC-LDCCRM-WordPress-WPCrmUser.html#property_pemail" + }, { + "fqsen": "\\LDC\\LDCCRM\\WordPress\\WPCrmUser\u003A\u003A\u0024info", + "name": "info", + "summary": "The\u0020CRM\u0020customer\u0020info\u0020\u0028the\u0020api\u0020response\u0029", + "url": "classes/LDC-LDCCRM-WordPress-WPCrmUser.html#property_info" + }, { + "fqsen": "\\LDC\\LDCCRM\\WordPress\\WPCrmUser\u003A\u003A\u0024uuidToken", + "name": "uuidToken", + "summary": "The\u0020CRM\u0020customer\u0020temp\u0020uuidToken\u0020to\u0020validate\u0020transactions", + "url": "classes/LDC-LDCCRM-WordPress-WPCrmUser.html#property_uuidToken" + }, { + "fqsen": "\\", + "name": "\\", + "summary": "", + "url": "namespaces/default.html" + }, { + "fqsen": "\\LDC\\LDCCRM", + "name": "LDCCRM", + "summary": "", + "url": "namespaces/ldc-ldccrm.html" + }, { + "fqsen": "\\LDC", + "name": "LDC", + "summary": "", + "url": "namespaces/ldc.html" + }, { + "fqsen": "\\LDC\\LDCCRM\\Enums", + "name": "Enums", + "summary": "", + "url": "namespaces/ldc-ldccrm-enums.html" + }, { + "fqsen": "\\LDC\\LDCCRM\\Exceptions", + "name": "Exceptions", + "summary": "", + "url": "namespaces/ldc-ldccrm-exceptions.html" + }, { + "fqsen": "\\LDC\\LDCCRM\\Models", + "name": "Models", + "summary": "", + "url": "namespaces/ldc-ldccrm-models.html" + }, { + "fqsen": "\\LDC\\LDCCRM\\Transport", + "name": "Transport", + "summary": "", + "url": "namespaces/ldc-ldccrm-transport.html" + }, { + "fqsen": "\\LDC\\LDCCRM\\WordPress", + "name": "WordPress", + "summary": "", + "url": "namespaces/ldc-ldccrm-wordpress.html" + } ] +); diff --git a/app/Lib/vendor/crm-client-3.0.6/docs/client-api/namespaces/default.html b/app/Lib/vendor/crm-client-3.0.6/docs/client-api/namespaces/default.html new file mode 100644 index 0000000..e254fb3 --- /dev/null +++ b/app/Lib/vendor/crm-client-3.0.6/docs/client-api/namespaces/default.html @@ -0,0 +1,162 @@ + + + + + CRM V2 + + + + + + + + + + + + + + + + + + + +
                                                                                                                              +

                                                                                                                              CRM V2

                                                                                                                              + + + + + +
                                                                                                                              + +
                                                                                                                              +
                                                                                                                              + + + + +
                                                                                                                              +
                                                                                                                                +
                                                                                                                              + +
                                                                                                                              +

                                                                                                                              API Documentation

                                                                                                                              + + +

                                                                                                                              + Namespaces + +

                                                                                                                              + +
                                                                                                                              +
                                                                                                                              LDC
                                                                                                                              +
                                                                                                                              + + + + + + + +
                                                                                                                              +
                                                                                                                              +
                                                                                                                              +
                                                                                                                              +

                                                                                                                              Search results

                                                                                                                              + +
                                                                                                                              +
                                                                                                                              +
                                                                                                                                +
                                                                                                                                +
                                                                                                                                +
                                                                                                                                +
                                                                                                                                +
                                                                                                                                + + +
                                                                                                                                + + + + + + + + diff --git a/app/Lib/vendor/crm-client-3.0.6/docs/client-api/namespaces/ldc-ldccrm-enums.html b/app/Lib/vendor/crm-client-3.0.6/docs/client-api/namespaces/ldc-ldccrm-enums.html new file mode 100644 index 0000000..f7e2bc8 --- /dev/null +++ b/app/Lib/vendor/crm-client-3.0.6/docs/client-api/namespaces/ldc-ldccrm-enums.html @@ -0,0 +1,179 @@ + + + + + CRM V2 + + + + + + + + + + + + + + + + + + + +
                                                                                                                                +

                                                                                                                                CRM V2

                                                                                                                                + + + + + +
                                                                                                                                + +
                                                                                                                                +
                                                                                                                                + + + + +
                                                                                                                                + + + +
                                                                                                                                +
                                                                                                                                +
                                                                                                                                +

                                                                                                                                Search results

                                                                                                                                + +
                                                                                                                                +
                                                                                                                                +
                                                                                                                                  +
                                                                                                                                  +
                                                                                                                                  +
                                                                                                                                  +
                                                                                                                                  +
                                                                                                                                  + + +
                                                                                                                                  + + + + + + + + diff --git a/app/Lib/vendor/crm-client-3.0.6/docs/client-api/namespaces/ldc-ldccrm-exceptions.html b/app/Lib/vendor/crm-client-3.0.6/docs/client-api/namespaces/ldc-ldccrm-exceptions.html new file mode 100644 index 0000000..2061037 --- /dev/null +++ b/app/Lib/vendor/crm-client-3.0.6/docs/client-api/namespaces/ldc-ldccrm-exceptions.html @@ -0,0 +1,180 @@ + + + + + CRM V2 + + + + + + + + + + + + + + + + + + + +
                                                                                                                                  +

                                                                                                                                  CRM V2

                                                                                                                                  + + + + + +
                                                                                                                                  + +
                                                                                                                                  +
                                                                                                                                  + + + + +
                                                                                                                                  + + +
                                                                                                                                  +

                                                                                                                                  Exceptions

                                                                                                                                  + + + +

                                                                                                                                  + Interfaces, Classes and Traits + +

                                                                                                                                  + +
                                                                                                                                  + +
                                                                                                                                  AccessError
                                                                                                                                  +
                                                                                                                                  This is thrown when trying to set a value on an object property that does not exist.
                                                                                                                                  +
                                                                                                                                  ApiErrorException
                                                                                                                                  +
                                                                                                                                  This would be thrown if any of the case +referenced in \LDC\LDCCRM\Enums\ApiError would +occur within the crm
                                                                                                                                  +
                                                                                                                                  CrmException
                                                                                                                                  +
                                                                                                                                  This is a critical error.
                                                                                                                                  +
                                                                                                                                  SkipValidationException
                                                                                                                                  +
                                                                                                                                  Used only for internal validator
                                                                                                                                  +
                                                                                                                                  ValidationException
                                                                                                                                  +
                                                                                                                                  This would be thrown if a data could not be validated +on any models
                                                                                                                                  +
                                                                                                                                  WpCrmInvalidJsonUserInfo
                                                                                                                                  +
                                                                                                                                  This is thrown when trying to read WP customer from DB json data.
                                                                                                                                  + +
                                                                                                                                  + + + + + + +
                                                                                                                                  +
                                                                                                                                  +
                                                                                                                                  +
                                                                                                                                  +

                                                                                                                                  Search results

                                                                                                                                  + +
                                                                                                                                  +
                                                                                                                                  +
                                                                                                                                    +
                                                                                                                                    +
                                                                                                                                    +
                                                                                                                                    +
                                                                                                                                    +
                                                                                                                                    + + +
                                                                                                                                    + + + + + + + + diff --git a/app/Lib/vendor/crm-client-3.0.6/docs/client-api/namespaces/ldc-ldccrm-models.html b/app/Lib/vendor/crm-client-3.0.6/docs/client-api/namespaces/ldc-ldccrm-models.html new file mode 100644 index 0000000..715b496 --- /dev/null +++ b/app/Lib/vendor/crm-client-3.0.6/docs/client-api/namespaces/ldc-ldccrm-models.html @@ -0,0 +1,185 @@ + + + + + CRM V2 + + + + + + + + + + + + + + + + + + + +
                                                                                                                                    +

                                                                                                                                    CRM V2

                                                                                                                                    + + + + + +
                                                                                                                                    + +
                                                                                                                                    +
                                                                                                                                    + + + + +
                                                                                                                                    + + +
                                                                                                                                    +

                                                                                                                                    Models

                                                                                                                                    + + + +

                                                                                                                                    + Interfaces, Classes and Traits + +

                                                                                                                                    + +
                                                                                                                                    + +
                                                                                                                                    Answer
                                                                                                                                    +
                                                                                                                                    This class represents an answer +It has a method to submit answers
                                                                                                                                    +
                                                                                                                                    ArcadiaMailDefault
                                                                                                                                    +
                                                                                                                                    This class represents the customer info with +the account validation status
                                                                                                                                    +
                                                                                                                                    ArcadiaMailGame
                                                                                                                                    +
                                                                                                                                    This class represents the customer info with +the account validation status
                                                                                                                                    +
                                                                                                                                    Customer
                                                                                                                                    +
                                                                                                                                    This class represents the customer info with +the account validation status. You can use it as +a standalone class but beware of catching exceptions
                                                                                                                                    +
                                                                                                                                    Question
                                                                                                                                    +
                                                                                                                                    This class represents a question +It has some static methods to retrieve questions and answers
                                                                                                                                    +
                                                                                                                                    SingleOptin
                                                                                                                                    +
                                                                                                                                    This class allows to handle single optins
                                                                                                                                    +
                                                                                                                                    Stats
                                                                                                                                    +
                                                                                                                                    This class is used to get stats from CRM
                                                                                                                                    + +
                                                                                                                                    + + + + + + +
                                                                                                                                    +
                                                                                                                                    +
                                                                                                                                    +
                                                                                                                                    +

                                                                                                                                    Search results

                                                                                                                                    + +
                                                                                                                                    +
                                                                                                                                    +
                                                                                                                                      +
                                                                                                                                      +
                                                                                                                                      +
                                                                                                                                      +
                                                                                                                                      +
                                                                                                                                      + + +
                                                                                                                                      + + + + + + + + diff --git a/app/Lib/vendor/crm-client-3.0.6/docs/client-api/namespaces/ldc-ldccrm-transport.html b/app/Lib/vendor/crm-client-3.0.6/docs/client-api/namespaces/ldc-ldccrm-transport.html new file mode 100644 index 0000000..937b238 --- /dev/null +++ b/app/Lib/vendor/crm-client-3.0.6/docs/client-api/namespaces/ldc-ldccrm-transport.html @@ -0,0 +1,170 @@ + + + + + CRM V2 + + + + + + + + + + + + + + + + + + + +
                                                                                                                                      +

                                                                                                                                      CRM V2

                                                                                                                                      + + + + + +
                                                                                                                                      + +
                                                                                                                                      +
                                                                                                                                      + + + + +
                                                                                                                                      + + +
                                                                                                                                      +

                                                                                                                                      Transport

                                                                                                                                      + + + +

                                                                                                                                      + Interfaces, Classes and Traits + +

                                                                                                                                      + +
                                                                                                                                      + +
                                                                                                                                      Request
                                                                                                                                      +
                                                                                                                                      The LDC CRM request +Contains the http method, the requested url and data to pass
                                                                                                                                      +
                                                                                                                                      Response
                                                                                                                                      +
                                                                                                                                      + +
                                                                                                                                      + + + + + + +
                                                                                                                                      +
                                                                                                                                      +
                                                                                                                                      +
                                                                                                                                      +

                                                                                                                                      Search results

                                                                                                                                      + +
                                                                                                                                      +
                                                                                                                                      +
                                                                                                                                        +
                                                                                                                                        +
                                                                                                                                        +
                                                                                                                                        +
                                                                                                                                        +
                                                                                                                                        + + +
                                                                                                                                        + + + + + + + + diff --git a/app/Lib/vendor/crm-client-3.0.6/docs/client-api/namespaces/ldc-ldccrm-wordpress.html b/app/Lib/vendor/crm-client-3.0.6/docs/client-api/namespaces/ldc-ldccrm-wordpress.html new file mode 100644 index 0000000..23e4e24 --- /dev/null +++ b/app/Lib/vendor/crm-client-3.0.6/docs/client-api/namespaces/ldc-ldccrm-wordpress.html @@ -0,0 +1,173 @@ + + + + + CRM V2 + + + + + + + + + + + + + + + + + + + +
                                                                                                                                        +

                                                                                                                                        CRM V2

                                                                                                                                        + + + + + +
                                                                                                                                        + +
                                                                                                                                        +
                                                                                                                                        + + + + +
                                                                                                                                        + + +
                                                                                                                                        +

                                                                                                                                        WordPress

                                                                                                                                        + + + +

                                                                                                                                        + Interfaces, Classes and Traits + +

                                                                                                                                        + +
                                                                                                                                        + +
                                                                                                                                        WPCrm
                                                                                                                                        +
                                                                                                                                        Class de gestion des users en session avec Wordpress (ce truc immonde)
                                                                                                                                        +
                                                                                                                                        WPCrmAnswer
                                                                                                                                        +
                                                                                                                                        Class de gestion de la segmentation question avec Wordpress (ce truc immonde)
                                                                                                                                        +
                                                                                                                                        WPCrmQuestion
                                                                                                                                        +
                                                                                                                                        Class de gestion de la segmentation question avec Wordpress (ce truc immonde)
                                                                                                                                        +
                                                                                                                                        WPCrmUser
                                                                                                                                        +
                                                                                                                                        Class de gestion des users en session avec Wordpress (ce truc immonde)
                                                                                                                                        + +
                                                                                                                                        + + + + + + +
                                                                                                                                        +
                                                                                                                                        +
                                                                                                                                        +
                                                                                                                                        +

                                                                                                                                        Search results

                                                                                                                                        + +
                                                                                                                                        +
                                                                                                                                        +
                                                                                                                                          +
                                                                                                                                          +
                                                                                                                                          +
                                                                                                                                          +
                                                                                                                                          +
                                                                                                                                          + + +
                                                                                                                                          + + + + + + + + diff --git a/app/Lib/vendor/crm-client-3.0.6/docs/client-api/namespaces/ldc-ldccrm.html b/app/Lib/vendor/crm-client-3.0.6/docs/client-api/namespaces/ldc-ldccrm.html new file mode 100644 index 0000000..849623e --- /dev/null +++ b/app/Lib/vendor/crm-client-3.0.6/docs/client-api/namespaces/ldc-ldccrm.html @@ -0,0 +1,180 @@ + + + + + CRM V2 + + + + + + + + + + + + + + + + + + + +
                                                                                                                                          +

                                                                                                                                          CRM V2

                                                                                                                                          + + + + + +
                                                                                                                                          + +
                                                                                                                                          +
                                                                                                                                          + + + + +
                                                                                                                                          + + +
                                                                                                                                          +

                                                                                                                                          LDCCRM

                                                                                                                                          + + +

                                                                                                                                          + Namespaces + +

                                                                                                                                          + +
                                                                                                                                          +
                                                                                                                                          Enums
                                                                                                                                          +
                                                                                                                                          Exceptions
                                                                                                                                          +
                                                                                                                                          Models
                                                                                                                                          +
                                                                                                                                          Transport
                                                                                                                                          +
                                                                                                                                          WordPress
                                                                                                                                          +
                                                                                                                                          + +

                                                                                                                                          + Interfaces, Classes and Traits + +

                                                                                                                                          + +
                                                                                                                                          + +
                                                                                                                                          CrmApiV2
                                                                                                                                          +
                                                                                                                                          This is the main class to interact with the CRM
                                                                                                                                          +
                                                                                                                                          Utils
                                                                                                                                          +
                                                                                                                                          This is the LDCCRM utility class
                                                                                                                                          + +
                                                                                                                                          + + + + + + +
                                                                                                                                          +
                                                                                                                                          +
                                                                                                                                          +
                                                                                                                                          +

                                                                                                                                          Search results

                                                                                                                                          + +
                                                                                                                                          +
                                                                                                                                          +
                                                                                                                                            +
                                                                                                                                            +
                                                                                                                                            +
                                                                                                                                            +
                                                                                                                                            +
                                                                                                                                            + + +
                                                                                                                                            + + + + + + + + diff --git a/app/Lib/vendor/crm-client-3.0.6/docs/client-api/namespaces/ldc.html b/app/Lib/vendor/crm-client-3.0.6/docs/client-api/namespaces/ldc.html new file mode 100644 index 0000000..4c85420 --- /dev/null +++ b/app/Lib/vendor/crm-client-3.0.6/docs/client-api/namespaces/ldc.html @@ -0,0 +1,162 @@ + + + + + CRM V2 + + + + + + + + + + + + + + + + + + + +
                                                                                                                                            +

                                                                                                                                            CRM V2

                                                                                                                                            + + + + + +
                                                                                                                                            + +
                                                                                                                                            +
                                                                                                                                            + + + + +
                                                                                                                                            +
                                                                                                                                              +
                                                                                                                                            + +
                                                                                                                                            +

                                                                                                                                            LDC

                                                                                                                                            + + +

                                                                                                                                            + Namespaces + +

                                                                                                                                            + +
                                                                                                                                            +
                                                                                                                                            LDCCRM
                                                                                                                                            +
                                                                                                                                            + + + + + + + +
                                                                                                                                            +
                                                                                                                                            +
                                                                                                                                            +
                                                                                                                                            +

                                                                                                                                            Search results

                                                                                                                                            + +
                                                                                                                                            +
                                                                                                                                            +
                                                                                                                                              +
                                                                                                                                              +
                                                                                                                                              +
                                                                                                                                              +
                                                                                                                                              +
                                                                                                                                              + + +
                                                                                                                                              + + + + + + + + diff --git a/app/Lib/vendor/crm-client-3.0.6/docs/client-api/packages/LDCCrmClient-Wordpress.html b/app/Lib/vendor/crm-client-3.0.6/docs/client-api/packages/LDCCrmClient-Wordpress.html new file mode 100644 index 0000000..7fd2cad --- /dev/null +++ b/app/Lib/vendor/crm-client-3.0.6/docs/client-api/packages/LDCCrmClient-Wordpress.html @@ -0,0 +1,172 @@ + + + + + CRM V2 + + + + + + + + + + + + + + + + + + + +
                                                                                                                                              +

                                                                                                                                              CRM V2

                                                                                                                                              + + + + + +
                                                                                                                                              + +
                                                                                                                                              +
                                                                                                                                              + + + + +
                                                                                                                                              + + +
                                                                                                                                              +

                                                                                                                                              Wordpress

                                                                                                                                              + + + +

                                                                                                                                              + Interfaces, Classes and Traits + +

                                                                                                                                              + +
                                                                                                                                              + +
                                                                                                                                              WPCrm
                                                                                                                                              +
                                                                                                                                              Class de gestion des users en session avec Wordpress (ce truc immonde)
                                                                                                                                              +
                                                                                                                                              WPCrmAnswer
                                                                                                                                              +
                                                                                                                                              Class de gestion de la segmentation question avec Wordpress (ce truc immonde)
                                                                                                                                              +
                                                                                                                                              WPCrmQuestion
                                                                                                                                              +
                                                                                                                                              Class de gestion de la segmentation question avec Wordpress (ce truc immonde)
                                                                                                                                              +
                                                                                                                                              WPCrmUser
                                                                                                                                              +
                                                                                                                                              Class de gestion des users en session avec Wordpress (ce truc immonde)
                                                                                                                                              + +
                                                                                                                                              + + + + + + +
                                                                                                                                              +
                                                                                                                                              +
                                                                                                                                              +
                                                                                                                                              +

                                                                                                                                              Search results

                                                                                                                                              + +
                                                                                                                                              +
                                                                                                                                              +
                                                                                                                                                +
                                                                                                                                                +
                                                                                                                                                +
                                                                                                                                                +
                                                                                                                                                +
                                                                                                                                                + + +
                                                                                                                                                + + + + + + + + diff --git a/app/Lib/vendor/crm-client-3.0.6/docs/client-api/packages/LDCCrmClient-enums.html b/app/Lib/vendor/crm-client-3.0.6/docs/client-api/packages/LDCCrmClient-enums.html new file mode 100644 index 0000000..f4af5ce --- /dev/null +++ b/app/Lib/vendor/crm-client-3.0.6/docs/client-api/packages/LDCCrmClient-enums.html @@ -0,0 +1,178 @@ + + + + + CRM V2 + + + + + + + + + + + + + + + + + + + +
                                                                                                                                                +

                                                                                                                                                CRM V2

                                                                                                                                                + + + + + +
                                                                                                                                                + +
                                                                                                                                                +
                                                                                                                                                + + + + +
                                                                                                                                                + + + +
                                                                                                                                                +
                                                                                                                                                +
                                                                                                                                                +

                                                                                                                                                Search results

                                                                                                                                                + +
                                                                                                                                                +
                                                                                                                                                +
                                                                                                                                                  +
                                                                                                                                                  +
                                                                                                                                                  +
                                                                                                                                                  +
                                                                                                                                                  +
                                                                                                                                                  + + +
                                                                                                                                                  + + + + + + + + diff --git a/app/Lib/vendor/crm-client-3.0.6/docs/client-api/packages/LDCCrmClient-exceptions.html b/app/Lib/vendor/crm-client-3.0.6/docs/client-api/packages/LDCCrmClient-exceptions.html new file mode 100644 index 0000000..3a0f3ff --- /dev/null +++ b/app/Lib/vendor/crm-client-3.0.6/docs/client-api/packages/LDCCrmClient-exceptions.html @@ -0,0 +1,179 @@ + + + + + CRM V2 + + + + + + + + + + + + + + + + + + + +
                                                                                                                                                  +

                                                                                                                                                  CRM V2

                                                                                                                                                  + + + + + +
                                                                                                                                                  + +
                                                                                                                                                  +
                                                                                                                                                  + + + + +
                                                                                                                                                  + + +
                                                                                                                                                  +

                                                                                                                                                  exceptions

                                                                                                                                                  + + + +

                                                                                                                                                  + Interfaces, Classes and Traits + +

                                                                                                                                                  + +
                                                                                                                                                  + +
                                                                                                                                                  AccessError
                                                                                                                                                  +
                                                                                                                                                  This is thrown when trying to set a value on an object property that does not exist.
                                                                                                                                                  +
                                                                                                                                                  ApiErrorException
                                                                                                                                                  +
                                                                                                                                                  This would be thrown if any of the case +referenced in \LDC\LDCCRM\Enums\ApiError would +occur within the crm
                                                                                                                                                  +
                                                                                                                                                  CrmException
                                                                                                                                                  +
                                                                                                                                                  This is a critical error.
                                                                                                                                                  +
                                                                                                                                                  SkipValidationException
                                                                                                                                                  +
                                                                                                                                                  Used only for internal validator
                                                                                                                                                  +
                                                                                                                                                  ValidationException
                                                                                                                                                  +
                                                                                                                                                  This would be thrown if a data could not be validated +on any models
                                                                                                                                                  +
                                                                                                                                                  WpCrmInvalidJsonUserInfo
                                                                                                                                                  +
                                                                                                                                                  This is thrown when trying to read WP customer from DB json data.
                                                                                                                                                  + +
                                                                                                                                                  + + + + + + +
                                                                                                                                                  +
                                                                                                                                                  +
                                                                                                                                                  +
                                                                                                                                                  +

                                                                                                                                                  Search results

                                                                                                                                                  + +
                                                                                                                                                  +
                                                                                                                                                  +
                                                                                                                                                    +
                                                                                                                                                    +
                                                                                                                                                    +
                                                                                                                                                    +
                                                                                                                                                    +
                                                                                                                                                    + + +
                                                                                                                                                    + + + + + + + + diff --git a/app/Lib/vendor/crm-client-3.0.6/docs/client-api/packages/LDCCrmClient-models.html b/app/Lib/vendor/crm-client-3.0.6/docs/client-api/packages/LDCCrmClient-models.html new file mode 100644 index 0000000..c3be18d --- /dev/null +++ b/app/Lib/vendor/crm-client-3.0.6/docs/client-api/packages/LDCCrmClient-models.html @@ -0,0 +1,184 @@ + + + + + CRM V2 + + + + + + + + + + + + + + + + + + + +
                                                                                                                                                    +

                                                                                                                                                    CRM V2

                                                                                                                                                    + + + + + +
                                                                                                                                                    + +
                                                                                                                                                    +
                                                                                                                                                    + + + + +
                                                                                                                                                    + + +
                                                                                                                                                    +

                                                                                                                                                    models

                                                                                                                                                    + + + +

                                                                                                                                                    + Interfaces, Classes and Traits + +

                                                                                                                                                    + +
                                                                                                                                                    + +
                                                                                                                                                    Answer
                                                                                                                                                    +
                                                                                                                                                    This class represents an answer +It has a method to submit answers
                                                                                                                                                    +
                                                                                                                                                    ArcadiaMailDefault
                                                                                                                                                    +
                                                                                                                                                    This class represents the customer info with +the account validation status
                                                                                                                                                    +
                                                                                                                                                    ArcadiaMailGame
                                                                                                                                                    +
                                                                                                                                                    This class represents the customer info with +the account validation status
                                                                                                                                                    +
                                                                                                                                                    Customer
                                                                                                                                                    +
                                                                                                                                                    This class represents the customer info with +the account validation status. You can use it as +a standalone class but beware of catching exceptions
                                                                                                                                                    +
                                                                                                                                                    Question
                                                                                                                                                    +
                                                                                                                                                    This class represents a question +It has some static methods to retrieve questions and answers
                                                                                                                                                    +
                                                                                                                                                    SingleOptin
                                                                                                                                                    +
                                                                                                                                                    This class allows to handle single optins
                                                                                                                                                    +
                                                                                                                                                    Stats
                                                                                                                                                    +
                                                                                                                                                    This class is used to get stats from CRM
                                                                                                                                                    + +
                                                                                                                                                    + + + + + + +
                                                                                                                                                    +
                                                                                                                                                    +
                                                                                                                                                    +
                                                                                                                                                    +

                                                                                                                                                    Search results

                                                                                                                                                    + +
                                                                                                                                                    +
                                                                                                                                                    +
                                                                                                                                                      +
                                                                                                                                                      +
                                                                                                                                                      +
                                                                                                                                                      +
                                                                                                                                                      +
                                                                                                                                                      + + +
                                                                                                                                                      + + + + + + + + diff --git a/app/Lib/vendor/crm-client-3.0.6/docs/client-api/packages/LDCCrmClient-transport.html b/app/Lib/vendor/crm-client-3.0.6/docs/client-api/packages/LDCCrmClient-transport.html new file mode 100644 index 0000000..34305af --- /dev/null +++ b/app/Lib/vendor/crm-client-3.0.6/docs/client-api/packages/LDCCrmClient-transport.html @@ -0,0 +1,169 @@ + + + + + CRM V2 + + + + + + + + + + + + + + + + + + + +
                                                                                                                                                      +

                                                                                                                                                      CRM V2

                                                                                                                                                      + + + + + +
                                                                                                                                                      + +
                                                                                                                                                      +
                                                                                                                                                      + + + + +
                                                                                                                                                      + + +
                                                                                                                                                      +

                                                                                                                                                      transport

                                                                                                                                                      + + + +

                                                                                                                                                      + Interfaces, Classes and Traits + +

                                                                                                                                                      + +
                                                                                                                                                      + +
                                                                                                                                                      Request
                                                                                                                                                      +
                                                                                                                                                      The LDC CRM request +Contains the http method, the requested url and data to pass
                                                                                                                                                      +
                                                                                                                                                      Response
                                                                                                                                                      +
                                                                                                                                                      + +
                                                                                                                                                      + + + + + + +
                                                                                                                                                      +
                                                                                                                                                      +
                                                                                                                                                      +
                                                                                                                                                      +

                                                                                                                                                      Search results

                                                                                                                                                      + +
                                                                                                                                                      +
                                                                                                                                                      +
                                                                                                                                                        +
                                                                                                                                                        +
                                                                                                                                                        +
                                                                                                                                                        +
                                                                                                                                                        +
                                                                                                                                                        + + +
                                                                                                                                                        + + + + + + + + diff --git a/app/Lib/vendor/crm-client-3.0.6/docs/client-api/packages/LDCCrmClient-utilities.html b/app/Lib/vendor/crm-client-3.0.6/docs/client-api/packages/LDCCrmClient-utilities.html new file mode 100644 index 0000000..f302c2d --- /dev/null +++ b/app/Lib/vendor/crm-client-3.0.6/docs/client-api/packages/LDCCrmClient-utilities.html @@ -0,0 +1,166 @@ + + + + + CRM V2 + + + + + + + + + + + + + + + + + + + +
                                                                                                                                                        +

                                                                                                                                                        CRM V2

                                                                                                                                                        + + + + + +
                                                                                                                                                        + +
                                                                                                                                                        +
                                                                                                                                                        + + + + +
                                                                                                                                                        + + +
                                                                                                                                                        +

                                                                                                                                                        utilities

                                                                                                                                                        + + + +

                                                                                                                                                        + Interfaces, Classes and Traits + +

                                                                                                                                                        + +
                                                                                                                                                        + +
                                                                                                                                                        Utils
                                                                                                                                                        +
                                                                                                                                                        This is the LDCCRM utility class
                                                                                                                                                        + +
                                                                                                                                                        + + + + + + +
                                                                                                                                                        +
                                                                                                                                                        +
                                                                                                                                                        +
                                                                                                                                                        +

                                                                                                                                                        Search results

                                                                                                                                                        + +
                                                                                                                                                        +
                                                                                                                                                        +
                                                                                                                                                          +
                                                                                                                                                          +
                                                                                                                                                          +
                                                                                                                                                          +
                                                                                                                                                          +
                                                                                                                                                          + + +
                                                                                                                                                          + + + + + + + + diff --git a/app/Lib/vendor/crm-client-3.0.6/docs/client-api/packages/LDCCrmClient.html b/app/Lib/vendor/crm-client-3.0.6/docs/client-api/packages/LDCCrmClient.html new file mode 100644 index 0000000..4654e06 --- /dev/null +++ b/app/Lib/vendor/crm-client-3.0.6/docs/client-api/packages/LDCCrmClient.html @@ -0,0 +1,178 @@ + + + + + CRM V2 + + + + + + + + + + + + + + + + + + + +
                                                                                                                                                          +

                                                                                                                                                          CRM V2

                                                                                                                                                          + + + + + +
                                                                                                                                                          + +
                                                                                                                                                          +
                                                                                                                                                          + + + + +
                                                                                                                                                          +
                                                                                                                                                            +
                                                                                                                                                          + + +
                                                                                                                                                          +
                                                                                                                                                          +
                                                                                                                                                          +

                                                                                                                                                          Search results

                                                                                                                                                          + +
                                                                                                                                                          +
                                                                                                                                                          +
                                                                                                                                                            +
                                                                                                                                                            +
                                                                                                                                                            +
                                                                                                                                                            +
                                                                                                                                                            +
                                                                                                                                                            + + +
                                                                                                                                                            + + + + + + + + diff --git a/app/Lib/vendor/crm-client-3.0.6/docs/client-api/packages/None.html b/app/Lib/vendor/crm-client-3.0.6/docs/client-api/packages/None.html new file mode 100644 index 0000000..d9a0064 --- /dev/null +++ b/app/Lib/vendor/crm-client-3.0.6/docs/client-api/packages/None.html @@ -0,0 +1,154 @@ + + + + + CRM V2 + + + + + + + + + + + + + + + + + + + +
                                                                                                                                                            +

                                                                                                                                                            CRM V2

                                                                                                                                                            + + + + + +
                                                                                                                                                            + +
                                                                                                                                                            +
                                                                                                                                                            + + + + +
                                                                                                                                                            +
                                                                                                                                                              +
                                                                                                                                                            + +
                                                                                                                                                            +

                                                                                                                                                            None

                                                                                                                                                            + + + + + + + + + +
                                                                                                                                                            +
                                                                                                                                                            +
                                                                                                                                                            +
                                                                                                                                                            +

                                                                                                                                                            Search results

                                                                                                                                                            + +
                                                                                                                                                            +
                                                                                                                                                            +
                                                                                                                                                              +
                                                                                                                                                              +
                                                                                                                                                              +
                                                                                                                                                              +
                                                                                                                                                              +
                                                                                                                                                              + + +
                                                                                                                                                              + + + + + + + + diff --git a/app/Lib/vendor/crm-client-3.0.6/docs/client-api/packages/default.html b/app/Lib/vendor/crm-client-3.0.6/docs/client-api/packages/default.html new file mode 100644 index 0000000..3cdcc15 --- /dev/null +++ b/app/Lib/vendor/crm-client-3.0.6/docs/client-api/packages/default.html @@ -0,0 +1,163 @@ + + + + + CRM V2 + + + + + + + + + + + + + + + + + + + +
                                                                                                                                                              +

                                                                                                                                                              CRM V2

                                                                                                                                                              + + + + + +
                                                                                                                                                              + +
                                                                                                                                                              +
                                                                                                                                                              + + + + +
                                                                                                                                                              +
                                                                                                                                                                +
                                                                                                                                                              + +
                                                                                                                                                              +

                                                                                                                                                              API Documentation

                                                                                                                                                              + +

                                                                                                                                                              + Packages + +

                                                                                                                                                              + +
                                                                                                                                                              +
                                                                                                                                                              LDCCrmClient
                                                                                                                                                              +
                                                                                                                                                              None
                                                                                                                                                              +
                                                                                                                                                              + + + + + + + + +
                                                                                                                                                              +
                                                                                                                                                              +
                                                                                                                                                              +
                                                                                                                                                              +

                                                                                                                                                              Search results

                                                                                                                                                              + +
                                                                                                                                                              +
                                                                                                                                                              +
                                                                                                                                                                +
                                                                                                                                                                +
                                                                                                                                                                +
                                                                                                                                                                +
                                                                                                                                                                +
                                                                                                                                                                + + +
                                                                                                                                                                + + + + + + + + diff --git a/app/Lib/vendor/crm-client-3.0.6/docs/client-api/reports/deprecated.html b/app/Lib/vendor/crm-client-3.0.6/docs/client-api/reports/deprecated.html new file mode 100644 index 0000000..0e14398 --- /dev/null +++ b/app/Lib/vendor/crm-client-3.0.6/docs/client-api/reports/deprecated.html @@ -0,0 +1,152 @@ + + + + + CRM V2 » Deprecated elements + + + + + + + + + + + + + + + + + + + + +
                                                                                                                                                                +

                                                                                                                                                                CRM V2

                                                                                                                                                                + + + + + +
                                                                                                                                                                + +
                                                                                                                                                                +
                                                                                                                                                                + + + + +
                                                                                                                                                                + + +
                                                                                                                                                                +

                                                                                                                                                                Deprecated

                                                                                                                                                                + + +
                                                                                                                                                                + No deprecated elements have been found in this project. +
                                                                                                                                                                +
                                                                                                                                                                +
                                                                                                                                                                +
                                                                                                                                                                +
                                                                                                                                                                +

                                                                                                                                                                Search results

                                                                                                                                                                + +
                                                                                                                                                                +
                                                                                                                                                                +
                                                                                                                                                                  +
                                                                                                                                                                  +
                                                                                                                                                                  +
                                                                                                                                                                  +
                                                                                                                                                                  +
                                                                                                                                                                  + + +
                                                                                                                                                                  + + + + + + + + diff --git a/app/Lib/vendor/crm-client-3.0.6/docs/client-api/reports/errors.html b/app/Lib/vendor/crm-client-3.0.6/docs/client-api/reports/errors.html new file mode 100644 index 0000000..31cf4ac --- /dev/null +++ b/app/Lib/vendor/crm-client-3.0.6/docs/client-api/reports/errors.html @@ -0,0 +1,151 @@ + + + + + CRM V2 » Compilation errors + + + + + + + + + + + + + + + + + + + + +
                                                                                                                                                                  +

                                                                                                                                                                  CRM V2

                                                                                                                                                                  + + + + + +
                                                                                                                                                                  + +
                                                                                                                                                                  +
                                                                                                                                                                  + + + + +
                                                                                                                                                                  + + +
                                                                                                                                                                  +

                                                                                                                                                                  Errors

                                                                                                                                                                  + + +
                                                                                                                                                                  No errors have been found in this project.
                                                                                                                                                                  + +
                                                                                                                                                                  +
                                                                                                                                                                  +
                                                                                                                                                                  +
                                                                                                                                                                  +

                                                                                                                                                                  Search results

                                                                                                                                                                  + +
                                                                                                                                                                  +
                                                                                                                                                                  +
                                                                                                                                                                    +
                                                                                                                                                                    +
                                                                                                                                                                    +
                                                                                                                                                                    +
                                                                                                                                                                    +
                                                                                                                                                                    + + +
                                                                                                                                                                    + + + + + + + + diff --git a/app/Lib/vendor/crm-client-3.0.6/docs/client-api/reports/markers.html b/app/Lib/vendor/crm-client-3.0.6/docs/client-api/reports/markers.html new file mode 100644 index 0000000..faa9c4a --- /dev/null +++ b/app/Lib/vendor/crm-client-3.0.6/docs/client-api/reports/markers.html @@ -0,0 +1,152 @@ + + + + + CRM V2 » Markers + + + + + + + + + + + + + + + + + + + + +
                                                                                                                                                                    +

                                                                                                                                                                    CRM V2

                                                                                                                                                                    + + + + + +
                                                                                                                                                                    + +
                                                                                                                                                                    +
                                                                                                                                                                    + + + + +
                                                                                                                                                                    + + +
                                                                                                                                                                    +

                                                                                                                                                                    Markers

                                                                                                                                                                    + +
                                                                                                                                                                    + No markers have been found in this project. +
                                                                                                                                                                    + +
                                                                                                                                                                    +
                                                                                                                                                                    +
                                                                                                                                                                    +
                                                                                                                                                                    +

                                                                                                                                                                    Search results

                                                                                                                                                                    + +
                                                                                                                                                                    +
                                                                                                                                                                    +
                                                                                                                                                                      +
                                                                                                                                                                      +
                                                                                                                                                                      +
                                                                                                                                                                      +
                                                                                                                                                                      +
                                                                                                                                                                      + + +
                                                                                                                                                                      + + + + + + + + diff --git a/app/Lib/vendor/crm-client-3.0.6/docs/usages/client.md b/app/Lib/vendor/crm-client-3.0.6/docs/usages/client.md new file mode 100644 index 0000000..e1b6eed --- /dev/null +++ b/app/Lib/vendor/crm-client-3.0.6/docs/usages/client.md @@ -0,0 +1,14 @@ +# Normal usage + +[Back](../../readme.md) + +Classes you can use are located in the ``\LDC\LDCCRM\Models`` namespace. + +- ``Answer`` : To provide an answers to a specific question. +- ``Customer`` : To fetch, create, update, delete, authenticate, activate, opt in or opt out you customer. +- ``Question`` : Used to fetch questions, unanswered question but also answered questions. +- ``SingleOptin`` : Use this to create a single opt in. For people who might just want to subscribe to a newsletter. +- ``Stats`` : Use this to fetch stats about questions or just general stats. + + +For more detailed info, you may refer to the [Client API DOC](../client-api/index.html) diff --git a/app/Lib/vendor/crm-client-3.0.6/docs/usages/custom.md b/app/Lib/vendor/crm-client-3.0.6/docs/usages/custom.md new file mode 100644 index 0000000..5c1e7b8 --- /dev/null +++ b/app/Lib/vendor/crm-client-3.0.6/docs/usages/custom.md @@ -0,0 +1,194 @@ +# Custom implementation + +[Back](../../readme.md) + +***PLEASE NOTE: This should not be ever implemented on client side js lib or any. Doing this you will allow access all you clients data and make a security breach. You api secret shall remain secret. At your request it can be regenerated.*** + +The service provided is a restful api. The access is pretty simple but remains secured as possible. Make sure **you read all of the sections** as you handle **api errors** correctly. +The two steps you may achieve are +- Authenticate to the api correctly +- Implement a correct usage of each available calls you need. + +## Prerequisite + +From here you will learn how to consume data from LDC CRM. +**The prerequisite are still the same.** +You will need a **service ``token`` and ``password``**. The endpoint remains the same **https://ldc-crm.ldc.fr**. + +--- +There are multiple calls you can make but you will need to get some informations from this repo. + +- From file ``apiConfig.readonly.json`` + + - version: Use this as a landmark, if version evolves you may hear from us warning changes. As a matter effect from here only security updates may be applied. Any major changes may be discussed with partners. + - timestampTimeout: This value is in seconds and means that if your call cannot reach us until this delay it will not be accepted. + - apiRequestRatePerMinute: This is the threshold per minutes that will trigger throttling, thus your request may be refused. + - servicesDBCache: This value you can just ignore it. + +- From file ``src/routes.json`` + + - This contains the api routes. You can have more explications on different routes in [docs/usages/custom/routes.md](custom/routes.md). + +## Authentication + +The system used is completely restful. It prevents timing attacks, replay attacks (in a time lap), man in the middle attacks. We choose to adopt a system like Amazon web service uses https://docs.aws.amazon.com/AmazonSimpleDB/latest/DeveloperGuide/HMACAuth.html + +We consider this to be enough as the point the actual CRM is, also with regard to the financial resources available to LDC. + +### How to create a signature ? + +You will need to assemble information on your request. + +- The URL including scheme, host and path (eg: *https://ldc-crm.fr/customer/1*) +- Http method in lowercase (eg: *get*) +- Parameters + + All request must be sent as ``www/url-encoded``. Also parameters you have to collect here must be flattened joined with dots. example: + + 'code_on_pack', + 'code_unique', + 'label_type_support', + 'operation', + 'order_date', + 'support_code', + 'type', + 'deliver.firstname', + 'deliver.lastname', + 'deliver.email', + 'deliver.address', + 'deliver.address2', + 'deliver.city', + 'deliver.postcode', + 'deliver.phone' + + Then have to be sorted by ***natural order*** eg: + + 'code_on_pack', + 'code_unique', + 'deliver.address', + 'deliver.address2', + 'deliver.city', + 'deliver.email', + 'deliver.firstname', + 'deliver.lastname', + 'deliver.phone', + 'deliver.postcode', + 'label_type_support', + 'operation', + 'order_date', + 'support_code', + 'type' + + Notes: To these parameters you must add two things your service token and a timestamp. + + **eg:** + - ``bearer_token=cc82d97eb7235812f5cc1561ddcd64969`` + - ``timestamp=2021-12-29 21:10:31`` + + Time stamp must have this format ``Y-m-d H:i:s`` as a classic DateTime. This will serve as nonce making harder to guess data obfuscated with ssl. + + After this you will have to **concatenate all parameters names with their values using ``=`` then all parameters between them using char ``&``**. Note that each parameter key and value must be url encoded according [rfc3986](http://www.faqs.org/rfcs/rfc3986.html). + + Finally you will have to concatenate those 3 items, uri, method and parameters with ``\n``. eg: + + http://127.0.0.1/api/v2/arcadia/outgoing-mail/default\n + post\n + bearer_token=cc82d97eb7235812f5cc1561ddcd64969 + 4810e56&deliver.address=94%2C%20chemin%20de%20 + Hamon%0A79344%20Bonnin&deliver.address2=& + deliver.city=Blanchet&deliver.email=danielle + 42%40gmail.com&deliver.firstname=Marianne& + deliver.lastname=Morvan&deliver.phone=01%2043%20 + 53%2013%2073&deliver.postcode=92%20197&label_ + type_support=Fond%20carte%20Aimant%C3%A9& + operation=16&order_date=2021%2F12%2F29%2022 + %3A10%3A31&order_num=23&package_unit_weight=0& + state_order=0&support_code=1×tamp=2021- + 12-29%2021%3A10%3A31 + + This string will be used to calculate our signature using [hmac, rfc2104](http://www.faqs.org/rfcs/rfc2104.html) method with algo sha256, the result will be binary encode as base64. + + **PHP** + + base64_encode(hash_hmac( + 'sha256', + $concatRequestString, + $servicePassword, + true + )); + + **ASP.NET** + + var secretKeyByteArray = Convert.FromBase64String(APIKey); + + byte[] signature = Encoding.UTF8.GetBytes(signatureRawData); + + using (HMACSHA256 hmac = new HMACSHA256(secretKeyByteArray)) + { + byte[] signatureBytes = hmac.ComputeHash(signature); + string requestSignatureBase64String = Convert.ToBase64String(signatureBytes); + } + + **JAVA** + + byte[] secretKey = "bearer_pwd".getBytes("UTF-8"); + byte[] message = "https://ldc-crm.fr\nget\n....".getBytes("UTF-8") + byte[] hmacSha256 = null; + String base64HmacSha256 = ''; + try { + Mac mac = Mac.getInstance("HmacSHA256"); + SecretKeySpec secretKeySpec = new SecretKeySpec(secretKey, "HmacSHA256"); + mac.init(secretKeySpec); + hmacSha256 = mac.doFinal(message); + base64HmacSha256 = Base64.getEncoder().encodeToString(hmacSha256); + } catch (Exception e) { + throw new RuntimeException("Failed to calculate hmac-sha256", e); + } + + This way your request will be able to pass checks, also to be authenticated since you give your api token we now which data you may be served with. + Details about how to implement this is up to you after that. If your request is not accepted you will always have details about what is wrong. + +### Mandatory parameters for all requests + +Every request except ``apiV2.ping`` needs a signature parameter. Some you have to provide foreach each request ``bearer_token``, ``timestamp``, ``signature``. Also only request. + +## HTTP CONTENT-TYPE + +Every request have to be json_encoded. The crm will only handle json requests and also respond only in json. No other ways are handled at this time. This means your requests will need to have two HTTP headers +- ``Accept: application/json`` +- ``Content-Type: application/json`` +Of course body will have to be encoded as json to be a valid request. Minimal body content shall be ``{}``, ``[]`` following [RFC-4627](https://www.rfc-editor.org/rfc/rfc4627) instead of [RFC-8259](https://www.rfc-editor.org/rfc/rfc8259) witch is the actual "Internet Standard" as marked from 2017. + +## Handling Errors + +All responses will be constants, this means you will always find a json array which contains : + + [ + 'status': 'OK' or 'KO', + 'data': [], + 'version': '3.0.0' // status version + ] + +***So having to handle error you will find*** + + [ + 'status': 'KO' + 'data': [ + 'code': xxx, // integer + 'message': 'error message text' + ] + 'version': '3.0.0' + ] + + +You may find all types of error message in ``src/Enums/ApiError.php``, this file contains detailed description of many errors, so we won't detail them in here. + +In general you may catch http error code 500 which is a general error of course. + +**You may also have errors that are not covered in the ApiError doc**. This could happen even if all code of crm is tested, we encourage you to have a log supervision of your project. + +**You may use errors messages to display in your app**. As for example the ``validationFailed`` error will always contain detailed information about why your request was rejected. This information will be in french language and could be displayed directly to your users. How ever you could also wrap all of this using only the error code. + +## Routes + +Please refer to the [Prerequisite section](#prerequisite) diff --git a/app/Lib/vendor/crm-client-3.0.6/docs/usages/custom/routes.md b/app/Lib/vendor/crm-client-3.0.6/docs/usages/custom/routes.md new file mode 100644 index 0000000..d308b79 --- /dev/null +++ b/app/Lib/vendor/crm-client-3.0.6/docs/usages/custom/routes.md @@ -0,0 +1,576 @@ +# Routes + +[Back](../custom.md) + +Summary + +- [Routes](#routes) + - [Ping](#ping) + - [Opt in](#opt-in) + - [Create a customer](#create-a-customer) + - [Get customer info](#get-customer-info) + - [Update a customer](#update-a-customer) + - [Delete a customer](#delete-a-customer) + - [Authenticate a customer](#authenticate-a-customer) + - [Send customer answers to a question](#send-customer-answers-to-a-question) + - [Question listing](#question-listing) + - [Question listing unanswered only](#question-listing-unanswered-only) + - [Question listing with customer answers](#question-listing-with-customer-answers) + - [Get brand statistics](#get-brand-statistics) + - [Get question statistics](#get-question-statistics) + +**For all error codes please refer to ``src/Enums/ApiError.php``** + +--- + +## Ping + +Name : ``apiV2.ping`` + +URI : ``api/v2/ping`` + +METHOD: ``GET|HEAD`` + +PARAMETERS : + + [] + +This is the only route that don't need to be authenticated. You may use this to check in a supervision or any if you can still reach LDC crm and if it has not crashed. + + Response code you always be. + + HTTP : 200 + [ + 'status': 'OK', + 'data': [], + 'version': 'x.x.x' + ] + +--- + +## Opt in + +Name : ``apiV2.optin`` + +URI : ``api/v2/optin`` + +METHOD: ``POST`` + +PARAMETERS: + + [ + 'email': '', // A valid email string + 'status': 0 or 1 // A valid boolean value + ] + +You this you may create or delete a single opt in. This is used to add one of your customer to you mailing lists. So you may bind this to a subscribe newsletter button for example. ***Please note that you cannot create a single opt in using the same email than one of you customer have*** + + + Response should be if ok. + + HTTP : 200 + [ + 'status': 'OK', + 'data': [], + 'version': 'x.x.x' + ] + +Possible errors: + + - ``singleOptinCustomerExists`` : If a customer using the same email exists. You are not allowed to create a single opt in. + - ``validationException`` : + - If the provided ``email`` is not valid, checks are dns, rfc, spoof based. This is as strict as possible to prevent your contact list to contain trash. + - If ``status`` do not contain a boolean value. + +--- + +## Create a customer + +Name : ``apiV2.customers.store`` + +URI : ``api/v2/customers`` + +METHOD: ``POST`` + +PARAMETERS: + +- ``firstname`` : **required** *string* min:1 max:255 +- ``lastname`` : **required** *string* min:1 max:255 +- ``email`` : **required** max:255 A valid email string +- ``password`` : **required** min:8 max:255 Need to have mixed case, letters, numbers and must not be compromised. This means it must not appear as breached on the internet. +- ``birth_date``: **required** Must be with format Y-m-d. +- ``address``: *string* max:255. +- ``address2``: *string* max:255. +- ``phone``: *string* Accepted country phones are France, Belgium Luxembourg. +- ``country``: *integer* This has to contain a value of ``src/Enums/Country.php``, accepted are France or DROM COM (guadeloupe, martinique, frenchGuiana, reunion, saintPierreAndMiquelon, mayotte, saintBarthelemy, saintMartinFrenchPart, wallisAndFutuna, frenchPolynesia, newCaledonia), Belgium or Luxembourg +- ``city``: *string* min:2 max:255 +- ``postcode``: *string* A valid postal code of France, Belgium or Luxembourg +- ``opt_in``: **required** A valid boolean + + +This is used of course to create a new customer. +***Note : Reponse will contain hashcode, this is the ID of your customer and you may store this information along with its email*** + +**Note : If a single optin exists with you customer email, it will be deleted** + + +Response should be if ok. + + HTTP : 200 + [ + 'status': 'OK', + 'data': [ + firstname string + lastname string + birth_date datetime + address string + address2 string + phone string + country string + city string + postcode string + opt_in boolean + hashcode string + status boolean + ], + 'version': 'x.x.x' + ] + +Possible errors: + + - ``validationException`` : If any provided parameter is invalid. + +--- + +## Get customer info + +Name : ``apiV2.customers.show`` + +URI : ``api/v2/customers/{serviceCustomer}`` + +METHOD: ``GET|HEAD`` + +ROUTE PARAMETERS : + +- ``serviceCustomer`` : The customer hashcode or email, But you may absolutely prefer the customer hashcode. Requested uris leave trace in system logs. + + +This is used to get data about a customer, to show profile page for example. **You are encouraged to cache these informations** and update only when the customer updates its own informations. + + +Response should be if ok. + + HTTP : 200 + [ + 'status': 'OK', + 'data': [ + firstname string + lastname string + birth_date datetime + address string + address2 string + phone string + country string + city string + postcode string + opt_in boolean + hashcode string + status boolean + ], + 'version': 'x.x.x' + ] + +Possible errors: + + - ``modelNotFound`` : If the customer could not be found. + +--- + +## Update a customer + +Name : ``apiV2.customers.update`` + +URI : ``api/v2/customers/{serviceCustomer}`` + +METHOD: ``PUT|PATCH`` + +ROUTE PARAMETERS : + +- ``serviceCustomer`` : The customer hashcode or email, But you may absolutely prefer the customer hashcode. Requested uris leave trace in system logs. + +PARAMETERS: + +- ``firstname`` : **at_least** *string* min:1 max:255 +- ``lastname`` : **at_least** *string* min:1 max:255 +- ``email`` : **at_least** max:255 A valid email string +- ``password`` : **at_least** min:8 max:255 Need to have mixed case, letters, numbers and must not be compromised. This means it must not appear as breached on the internet. +- ``birth_date``: **at_least** Must be with format Y-m-d. +- ``address``: **at_least** max:255. +- ``address2``: **at_least** max:255. +- ``phone``: **at_least** Accepted country phones are France, Belgium Luxembourg. +- ``country``: **at_least** This has to contain a value of ``src/Enums/Country.php``, accepted are France or DROM COM (guadeloupe, martinique, frenchGuiana, reunion, saintPierreAndMiquelon, mayotte, saintBarthelemy, saintMartinFrenchPart, wallisAndFutuna, frenchPolynesia, newCaledonia), Belgium or Luxembourg +- ``city``: **at_least** min:2 max:255 +- ``postcode``: **at_least** A valid postal code of France, Belgium or Luxembourg +- ``opt_in``: **at_least** A valid boolean + + +This is used to update customer info. You must at least update on field while calling this. + +**Note : at_least rule means that at least one of these fields must be present. Send only fields you want to update.** + + + Response should be if ok. + + HTTP : 200 + [ + 'status': 'OK', + 'data': [ + firstname string + lastname string + birth_date datetime + address string + address2 string + phone string + country string + city string + postcode string + opt_in boolean + hashcode string + status boolean + ], + 'version': 'x.x.x' + ] + +Possible errors: + + - ``validationException`` : If any provided parameter is invalid. + - ``modelNotFound`` : If the customer could not be found. + +--- + +## Delete a customer + +Name : ``apiV2.customers.destroy`` + +URI : ``api/v2/customers/{serviceCustomer}`` + +METHOD: ``DELETE`` + +ROUTE PARAMETERS : + +- ``serviceCustomer`` : The customer hashcode or email, But you may absolutely prefer the customer hashcode. Requested uris leave trace in system logs. + + +This is used to remove customer info. ***This cannot be undone and will completly remove all of customer info on our systems.*** + + Response should be if ok. + + HTTP : 200 + [ + 'status': 'OK', + 'data': [], + 'version': 'x.x.x' + ] + +Possible errors: + + - ``modelNotFound`` : If the customer could not be found. + +--- + +## Authenticate a customer + +Name : ``apiV2.customers.authenticate`` + +URI : ``api/v2/customers/authenticate`` + +METHOD: ``POST`` + +PARAMETERS : + +- ``email`` : This should be a valid email address and of course exists in you customer database. +- ``password`` : The actual customer password. + + +Use this to test Customer credentials and determine if there are valid. You shall then allow login. + +***Note : make sure you use https connection, http only connections are not accepted*** + +**Note: to login a customer account must be activated, this means you shall verify yourself his email address, than call the activate url.** + +Response should be if ok. + + HTTP : 200 + [ + 'status': 'OK', + 'data': [], + 'version': 'x.x.x' + ] + +Possible errors: + + - ``validationFailed`` : If email is no valid. + - ``authFailed`` : If credentials aren't valid. + - ``customerNotActivated`` : If the customer account is not activated. + +--- + +## Send customer answers to a question + +Name : ``apiV2.customers.answers.store`` + +URI : ``api/v2/customers/{serviceCustomer}/answers`` + +METHOD: ``POST`` + +ROUTE PARAMETERS : + +- ``serviceCustomer`` : The customer hashcode or email, But you may absolutely prefer the customer hashcode. Requested uris leave trace in system logs. + +PARAMETERS : + +- ``question`` : This has to be a valid question ID +- ``answers`` : Has to be an array that contains a valid list of answers ID. Even if only one answer is given it still has to be an array. Answers has to belong to the provided question ID. + + This is to provide customer answer(s) + + ***Note : no checks are done as for the question type, this means even the question should have only one answer you can provide multiple answers.*** + + Response should be if ok. + + HTTP : 200 + [ + 'status': 'OK', + 'data': [], + 'version': 'x.x.x' + ] + +Possible errors: + + - ``validationFailed`` : If any of the provided IDS are not valid. + - ``modelNotFound`` : If the customer could not be found. + +--- + +## Question listing + +Name : ``apiV2.questions.index`` + +URI : ``api/v2/questions`` + +METHOD: ``GET|HEAD`` + + Use this call to fetch all existing questions. This method also provide the possible answers. We encourage you to cache them. + + Response should be if ok. + + HTTP : 200 + [ + 'status': 'OK', + 'data': [ + [ + 'id' => xx, // question id + 'type' => xx // ``src/Enums/QuestionType.php``, + 'question' => 'question string', // The question string. + 'answers' => [ + [ + 'id' => xx, // Answer ID + 'answer' => 'answer string' + ], + ... + ], + ... + ] + ], + 'version': 'x.x.x' + ] + +--- + +## Question listing unanswered only + +Name : ``apiV2.questions.unAnsweredBy`` + +URI : ``api/v2/questions/un-answered-by/{serviceCustomer}`` + +METHOD: ``GET|HEAD`` + +ROUTE PARAMETERS : + +- ``serviceCustomer`` : The customer hashcode or email, But you may absolutely prefer the customer hashcode. Requested uris leave trace in system logs. + + Use this to get question that are still unanswered by your customer. + + ***Note : no checks are done as for the question type, this means even the question should have only one answer you can provide multiple answers.*** + + Response should be if ok. + + HTTP : 200 + [ + 'status': 'OK', + 'data': [ + [ + 'id' => xx, // question id + 'type' => xx // ``src/Enums/QuestionType.php``, + 'question' => 'question string', // The question string. + 'answers' => [ + [ + 'id' => xx, // Answer ID + 'answer' => 'answer string' + ], + ... + ] + ], + ... + ], + 'version': 'x.x.x' + ] + + - ``modelNotFound`` : If the customer could not be found. + +--- + +## Question listing with customer answers + +Name : ``apiV2.questions.indexWithResponse`` + +URI : ``api/v2/questions/with-answers/{serviceCustomer}`` + +METHOD: ``GET|HEAD`` + +ROUTE PARAMETERS : + +- ``serviceCustomer`` : The customer hashcode or email, But you may absolutely prefer the customer hashcode. Requested uris leave trace in system logs. + +Use this to get all questions associated with answers already given by your customer. + +***Note : no checks are done as for the question type, this means even the question should have only one answer you can provide multiple answers.*** + + Response should be if ok. + + HTTP : 200 + [ + 'status': 'OK', + 'data': [ + [ + 'id' => xx, // question id + 'type' => xx // ``src/Enums/QuestionType.php``, + 'question' => 'question string', // The question string. + 'answers' => [ + [ + 'id' => xx, // Answer ID + 'answer' => 'answer string' + ], + ... + ], + 'customerAnswers' => [ + [ + 'id' => xx, // Answer ID + 'answer' => 'answer string' + ], + ... + ] + ], + ... + ], + 'version': 'x.x.x' + ] + + - ``modelNotFound`` : If the customer could not be found. + +--- + +## Get brand statistics + +Name : ``apiV2.stats.brandStats`` + +URI : ``api/v2/stats/brand`` + +METHOD: ``GET|HEAD`` + +ROUTE PARAMETERS : + +- ``serviceCustomer`` : The customer hashcode or email, But you may absolutely prefer the customer hashcode. Requested uris leave trace in system logs. + +PARAMETERS : +- ``start`` : Must be a date with format ``Y-m-d``, also has to represent a date before ``end`` +- ``end`` Must be a date with format ``Y-m-d``, also has to represent a date after ``start`` + +**Note : The period shall not be exceed 3 month.** + +***Note : Active user are those who connected since last 6 month, new accounts also are those who has been created since less than 6 months.*** + +Use this to get General stats about your service. + + Response should be if ok. + + HTTP : 200 + [ + 'status': 'OK', + 'data': [ + [ + [ + 'date' => 'Y-m-d', // Date with format + 'active' => xx, // Active users integer + 'inactive' => xx, // Inactive users integer + 'old_accounts' => xx, // Old accounts integer + 'new_accounts' => xx, // New accounts integer + 'total_accounts' => xx, // Total accounts integer + 'total_opt_in' => xx // Total opt in integer + ] + ], + ... + ], + 'version': 'x.x.x' + ] + + - ``validationFailed`` : If any of the provided dates are invalid. + +--- + +## Get question statistics + +Name : ``apiV2.stats.questionStats`` + +URI : ``api/v2/stats/question/{serviceQuestion}`` + +METHOD: ``GET|HEAD`` + +ROUTE PARAMETERS : +- ``serviceQuestion`` : The question ID you want statistics about. + +PARAMETERS : +- ``start`` : Must be a date with format ``Y-m-d``, also has to represent a date before ``end`` +- ``end`` Must be a date with format ``Y-m-d``, also has to represent a date after ``start`` + +**Note : The period shall not be exceed 3 month.** + +***Note : Active user are those who connected since last 6 month, new accounts also are those who has been created since less than 6 months.*** + +Use this to get General stats about your service. + + Response should be if ok. + + HTTP : 200 + [ + 'status': 'OK', + 'data': [ + 'answers' [ + [ + 'id' => xx, // Answer ID + 'answer' => 'answer string' + ], + ... + ], + 'stats' => [ + 'Y-m-d' = [ + 'xx' => xx, // Index is answer ID, value is integer the total count of persons who gave this answer this day. + ], + ... + ] + ], + 'version': 'x.x.x' + ] + + - ``modelNotFound`` : If the question could not be found. + - ``validationFailed`` : If any of the provided dates are invalid. diff --git a/app/Lib/vendor/crm-client-3.0.6/docs/usages/wordpress-client.md b/app/Lib/vendor/crm-client-3.0.6/docs/usages/wordpress-client.md new file mode 100644 index 0000000..c6c0daa --- /dev/null +++ b/app/Lib/vendor/crm-client-3.0.6/docs/usages/wordpress-client.md @@ -0,0 +1,21 @@ +# Wordpress client usage + +[Back](../../readme.md) + +This client is experimental. It may be used on wordpress sites. + +To use it you shall create a new table : + + // TABLE LDC CUSTOMERS + CREATE TABLE `ldc_wp_customers` ( + `hashcode` VARCHAR(36) NOT NULL DEFAULT '' COMMENT 'Le hashcode (UUID)', + `email` VARCHAR(255) NOT NULL DEFAULT '' COMMENT 'Le customer email', + `uuid` VARCHAR(50) NOT NULL DEFAULT '' COMMENT 'Code unique (inscripton, validation, etc)', + PRIMARY KEY (`hashcode`) + ) + COMMENT='Les customers sur un WP liées à la CRM' + COLLATE='utf8mb4_unicode_ci'; + +It will handle for you the customer session provide login and logout method but also other services provided by the crm. + +For more detailed info, you may refer to the [Client API DOC](../client-api/index.html) diff --git a/app/Lib/vendor/crm-client-3.0.6/documentation/classes/LDC-LDCCRM-CrmApiV2.html b/app/Lib/vendor/crm-client-3.0.6/documentation/classes/LDC-LDCCRM-CrmApiV2.html new file mode 100644 index 0000000..80b4c8e --- /dev/null +++ b/app/Lib/vendor/crm-client-3.0.6/documentation/classes/LDC-LDCCRM-CrmApiV2.html @@ -0,0 +1,785 @@ + + + + + CRM V2 + + + + + + + + + + + + + + + + + + + +
                                                                                                                                                                      +

                                                                                                                                                                      CRM V2

                                                                                                                                                                      + + + + + +
                                                                                                                                                                      + +
                                                                                                                                                                      +
                                                                                                                                                                      + + + + +
                                                                                                                                                                      + + +
                                                                                                                                                                      +

                                                                                                                                                                      + CrmApiV2 + + +
                                                                                                                                                                      + in package + +
                                                                                                                                                                      + + +

                                                                                                                                                                      + + + +

                                                                                                                                                                      This is the main class to interact with the CRM

                                                                                                                                                                      + + + + + + + + + +

                                                                                                                                                                      + Table of Contents + +

                                                                                                                                                                      + +
                                                                                                                                                                      +
                                                                                                                                                                      + $apiInterface + +  : ApiInterface +
                                                                                                                                                                      +
                                                                                                                                                                      The Api object that will handle requests and responses
                                                                                                                                                                      + +
                                                                                                                                                                      + __construct() + +  : mixed +
                                                                                                                                                                      +
                                                                                                                                                                      CrmApiV2
                                                                                                                                                                      + +
                                                                                                                                                                      + getCustomer() + +  : Customer|null +
                                                                                                                                                                      +
                                                                                                                                                                      Get a customer from its hashcode or email +If it does not exists a new instance +will be returned. You would have +to call its save method later on.
                                                                                                                                                                      + +
                                                                                                                                                                      + getCustomerOrNew() + +  : Customer +
                                                                                                                                                                      +
                                                                                                                                                                      Get a customer from its hashcode or email +If it does not exists a new instance +will be returned. You would have +to call its save method later on.
                                                                                                                                                                      + +
                                                                                                                                                                      + login() + +  : bool +
                                                                                                                                                                      +
                                                                                                                                                                      Test a customer credentials to see if it can login
                                                                                                                                                                      + +
                                                                                                                                                                      + ping() + +  : bool +
                                                                                                                                                                      +
                                                                                                                                                                      Use this the ping the crm and know its current status
                                                                                                                                                                      + +
                                                                                                                                                                      + setStatus() + +  : bool +
                                                                                                                                                                      +
                                                                                                                                                                      Set the single optin status for an email
                                                                                                                                                                      + +
                                                                                                                                                                      + + + + + + +
                                                                                                                                                                      +

                                                                                                                                                                      + Properties + +

                                                                                                                                                                      +
                                                                                                                                                                      +

                                                                                                                                                                      + $apiInterface + + + +

                                                                                                                                                                      + + +

                                                                                                                                                                      The Api object that will handle requests and responses

                                                                                                                                                                      + + + private + static ApiInterface + $apiInterface + + + + + + +
                                                                                                                                                                      +
                                                                                                                                                                      + +
                                                                                                                                                                      +

                                                                                                                                                                      + Methods + +

                                                                                                                                                                      +
                                                                                                                                                                      +

                                                                                                                                                                      + __construct() + +

                                                                                                                                                                      + + +

                                                                                                                                                                      CrmApiV2

                                                                                                                                                                      + + + public + __construct([string|null $endpoint = null ][, string|null $bearerToken = null ][, string|null $bearerPwd = null ]) : mixed + + +
                                                                                                                                                                      Parameters
                                                                                                                                                                      +
                                                                                                                                                                      +
                                                                                                                                                                      + $endpoint + : string|null + = null
                                                                                                                                                                      +
                                                                                                                                                                      + +
                                                                                                                                                                      +
                                                                                                                                                                      + $bearerToken + : string|null + = null
                                                                                                                                                                      +
                                                                                                                                                                      + +
                                                                                                                                                                      +
                                                                                                                                                                      + $bearerPwd + : string|null + = null
                                                                                                                                                                      +
                                                                                                                                                                      + +
                                                                                                                                                                      +
                                                                                                                                                                      + + + +
                                                                                                                                                                      Return values
                                                                                                                                                                      + mixed + — + + +
                                                                                                                                                                      +
                                                                                                                                                                      +

                                                                                                                                                                      + getCustomer() + +

                                                                                                                                                                      + + +

                                                                                                                                                                      Get a customer from its hashcode or email +If it does not exists a new instance +will be returned. You would have +to call its save method later on.

                                                                                                                                                                      + + + public + getCustomer(string $identification) : Customer|null + + +
                                                                                                                                                                      Parameters
                                                                                                                                                                      +
                                                                                                                                                                      +
                                                                                                                                                                      + $identification + : string +
                                                                                                                                                                      +
                                                                                                                                                                      +

                                                                                                                                                                      The customer hashcode or email.

                                                                                                                                                                      +
                                                                                                                                                                      + +
                                                                                                                                                                      +
                                                                                                                                                                      + + +
                                                                                                                                                                      + Tags + +
                                                                                                                                                                      +
                                                                                                                                                                      +
                                                                                                                                                                      + throws +
                                                                                                                                                                      +
                                                                                                                                                                      + CrmException + +

                                                                                                                                                                      If an error occurs on server side or on getting response.

                                                                                                                                                                      +
                                                                                                                                                                      + +
                                                                                                                                                                      +
                                                                                                                                                                      + throws +
                                                                                                                                                                      +
                                                                                                                                                                      + ApiErrorException + +

                                                                                                                                                                      If any error or \LDC\LDCCRM\Enums\ApiError occurs. +Possibles are : - modelNotFound, If this customer hashcode could not be found.

                                                                                                                                                                      +
                                                                                                                                                                      + +
                                                                                                                                                                      +
                                                                                                                                                                      + phpcs:ignore +
                                                                                                                                                                      +
                                                                                                                                                                      + +

                                                                                                                                                                      Squiz.Commenting.FunctionCommentThrowTag.WrongNumber

                                                                                                                                                                      +
                                                                                                                                                                      + +
                                                                                                                                                                      +
                                                                                                                                                                      + +
                                                                                                                                                                      Return values
                                                                                                                                                                      + Customer|null + — +

                                                                                                                                                                      Return null if the customer was not found

                                                                                                                                                                      +
                                                                                                                                                                      + + +
                                                                                                                                                                      +
                                                                                                                                                                      +

                                                                                                                                                                      + getCustomerOrNew() + +

                                                                                                                                                                      + + +

                                                                                                                                                                      Get a customer from its hashcode or email +If it does not exists a new instance +will be returned. You would have +to call its save method later on.

                                                                                                                                                                      + + + public + getCustomerOrNew(string $identification) : Customer + + +
                                                                                                                                                                      Parameters
                                                                                                                                                                      +
                                                                                                                                                                      +
                                                                                                                                                                      + $identification + : string +
                                                                                                                                                                      +
                                                                                                                                                                      +

                                                                                                                                                                      The customer hashcode or email.

                                                                                                                                                                      +
                                                                                                                                                                      + +
                                                                                                                                                                      +
                                                                                                                                                                      + + +
                                                                                                                                                                      + Tags + +
                                                                                                                                                                      +
                                                                                                                                                                      +
                                                                                                                                                                      + throws +
                                                                                                                                                                      +
                                                                                                                                                                      + CrmException + +

                                                                                                                                                                      If an error occurs on server side or on getting response.

                                                                                                                                                                      +
                                                                                                                                                                      + +
                                                                                                                                                                      +
                                                                                                                                                                      + throws +
                                                                                                                                                                      +
                                                                                                                                                                      + ApiErrorException + +

                                                                                                                                                                      If any error or \LDC\LDCCRM\Enums\ApiError occurs.

                                                                                                                                                                      +
                                                                                                                                                                      + +
                                                                                                                                                                      +
                                                                                                                                                                      + phpcs:ignore +
                                                                                                                                                                      +
                                                                                                                                                                      + +

                                                                                                                                                                      Squiz.Commenting.FunctionComment.EmptyThrows

                                                                                                                                                                      +
                                                                                                                                                                      + +
                                                                                                                                                                      +
                                                                                                                                                                      + +
                                                                                                                                                                      Return values
                                                                                                                                                                      + Customer + — +

                                                                                                                                                                      A client Customer model.

                                                                                                                                                                      +
                                                                                                                                                                      + + +
                                                                                                                                                                      +
                                                                                                                                                                      +

                                                                                                                                                                      + login() + +

                                                                                                                                                                      + + +

                                                                                                                                                                      Test a customer credentials to see if it can login

                                                                                                                                                                      + + + public + static login(string $email, string $password) : bool + + +
                                                                                                                                                                      Parameters
                                                                                                                                                                      +
                                                                                                                                                                      +
                                                                                                                                                                      + $email + : string +
                                                                                                                                                                      +
                                                                                                                                                                      + +
                                                                                                                                                                      +
                                                                                                                                                                      + $password + : string +
                                                                                                                                                                      +
                                                                                                                                                                      + +
                                                                                                                                                                      +
                                                                                                                                                                      + + +
                                                                                                                                                                      + Tags + +
                                                                                                                                                                      +
                                                                                                                                                                      +
                                                                                                                                                                      + throws +
                                                                                                                                                                      +
                                                                                                                                                                      + CrmException + +

                                                                                                                                                                      If an error occurs on server side or on getting response.

                                                                                                                                                                      +
                                                                                                                                                                      + +
                                                                                                                                                                      +
                                                                                                                                                                      + throws +
                                                                                                                                                                      +
                                                                                                                                                                      + ApiErrorException + +

                                                                                                                                                                      If any error or \LDC\LDCCRM\Enums\ApiError occurs. +Possibles are : - authFailed, If credentials are not valid. +- customerNotActivated, If the account is not activated.

                                                                                                                                                                      +
                                                                                                                                                                      + +
                                                                                                                                                                      +
                                                                                                                                                                      + phpcs:ignore +
                                                                                                                                                                      +
                                                                                                                                                                      + +

                                                                                                                                                                      Squiz.Commenting.FunctionCommentThrowTag.WrongNumber

                                                                                                                                                                      +
                                                                                                                                                                      + +
                                                                                                                                                                      +
                                                                                                                                                                      + +
                                                                                                                                                                      Return values
                                                                                                                                                                      + bool + — + + +
                                                                                                                                                                      +
                                                                                                                                                                      +

                                                                                                                                                                      + ping() + +

                                                                                                                                                                      + + +

                                                                                                                                                                      Use this the ping the crm and know its current status

                                                                                                                                                                      + + + public + ping() : bool + + + + +
                                                                                                                                                                      + Tags + +
                                                                                                                                                                      +
                                                                                                                                                                      +
                                                                                                                                                                      + throws +
                                                                                                                                                                      +
                                                                                                                                                                      + CrmException + +

                                                                                                                                                                      If an error occurs +on server side or on getting response.

                                                                                                                                                                      +
                                                                                                                                                                      + +
                                                                                                                                                                      +
                                                                                                                                                                      + +
                                                                                                                                                                      Return values
                                                                                                                                                                      + bool + — + + +
                                                                                                                                                                      +
                                                                                                                                                                      +

                                                                                                                                                                      + setStatus() + +

                                                                                                                                                                      + + +

                                                                                                                                                                      Set the single optin status for an email

                                                                                                                                                                      + + + public + static setStatus(string $email, bool $opt_in) : bool + + +
                                                                                                                                                                      Parameters
                                                                                                                                                                      +
                                                                                                                                                                      +
                                                                                                                                                                      + $email + : string +
                                                                                                                                                                      +
                                                                                                                                                                      + +
                                                                                                                                                                      +
                                                                                                                                                                      + $opt_in + : bool +
                                                                                                                                                                      +
                                                                                                                                                                      + +
                                                                                                                                                                      +
                                                                                                                                                                      + + +
                                                                                                                                                                      + Tags + +
                                                                                                                                                                      +
                                                                                                                                                                      +
                                                                                                                                                                      + throws +
                                                                                                                                                                      +
                                                                                                                                                                      + CrmException + +

                                                                                                                                                                      If an error occurs on server side or on getting response.

                                                                                                                                                                      +
                                                                                                                                                                      + +
                                                                                                                                                                      +
                                                                                                                                                                      + throws +
                                                                                                                                                                      +
                                                                                                                                                                      + ApiErrorException + +

                                                                                                                                                                      If any error or \LDC\LDCCRM\Enums\ApiError occurs. +Possibles are : - singleOptinCustomerExists, If a customer exists with this email.

                                                                                                                                                                      +
                                                                                                                                                                      + +
                                                                                                                                                                      +
                                                                                                                                                                      + phpcs:ignore +
                                                                                                                                                                      +
                                                                                                                                                                      + +

                                                                                                                                                                      Squiz.Commenting.FunctionCommentThrowTag.WrongNumber

                                                                                                                                                                      +
                                                                                                                                                                      + +
                                                                                                                                                                      +
                                                                                                                                                                      + +
                                                                                                                                                                      Return values
                                                                                                                                                                      + bool + — +

                                                                                                                                                                      true if succeeded

                                                                                                                                                                      +
                                                                                                                                                                      + + +
                                                                                                                                                                      +
                                                                                                                                                                      + + + + +
                                                                                                                                                                      +
                                                                                                                                                                      +
                                                                                                                                                                      +
                                                                                                                                                                      +

                                                                                                                                                                      Search results

                                                                                                                                                                      + +
                                                                                                                                                                      +
                                                                                                                                                                      +
                                                                                                                                                                        +
                                                                                                                                                                        +
                                                                                                                                                                        +
                                                                                                                                                                        +
                                                                                                                                                                        +
                                                                                                                                                                        + + +
                                                                                                                                                                        + + + + + + + + diff --git a/app/Lib/vendor/crm-client-3.0.6/documentation/classes/LDC-LDCCRM-Enums-ApiError.html b/app/Lib/vendor/crm-client-3.0.6/documentation/classes/LDC-LDCCRM-Enums-ApiError.html new file mode 100644 index 0000000..67fa657 --- /dev/null +++ b/app/Lib/vendor/crm-client-3.0.6/documentation/classes/LDC-LDCCRM-Enums-ApiError.html @@ -0,0 +1,884 @@ + + + + + CRM V2 + + + + + + + + + + + + + + + + + + + +
                                                                                                                                                                        +

                                                                                                                                                                        CRM V2

                                                                                                                                                                        + + + + + +
                                                                                                                                                                        + +
                                                                                                                                                                        +
                                                                                                                                                                        + + + + +
                                                                                                                                                                        + + +
                                                                                                                                                                        +

                                                                                                                                                                        + ApiError + + + extends BaseEnum + + +
                                                                                                                                                                        + in package + +
                                                                                                                                                                        + + +

                                                                                                                                                                        + + + +

                                                                                                                                                                        This describes an API error.

                                                                                                                                                                        + + + +
                                                                                                                                                                        + Tags + +
                                                                                                                                                                        +
                                                                                                                                                                        +
                                                                                                                                                                        + subpackage +
                                                                                                                                                                        +
                                                                                                                                                                        + +

                                                                                                                                                                        enums

                                                                                                                                                                        +
                                                                                                                                                                        + +
                                                                                                                                                                        +
                                                                                                                                                                        + + + + + + +

                                                                                                                                                                        + Table of Contents + +

                                                                                                                                                                        + +
                                                                                                                                                                        +
                                                                                                                                                                        + apiAuthFailed() + +  : +
                                                                                                                                                                        +
                                                                                                                                                                        + +
                                                                                                                                                                        + authFailed() + +  : +
                                                                                                                                                                        +
                                                                                                                                                                        + +
                                                                                                                                                                        + authorizationException() + +  : +
                                                                                                                                                                        +
                                                                                                                                                                        + +
                                                                                                                                                                        + customerAlreadyActive() + +  : +
                                                                                                                                                                        +
                                                                                                                                                                        + +
                                                                                                                                                                        + customerExists() + +  : +
                                                                                                                                                                        +
                                                                                                                                                                        + +
                                                                                                                                                                        + customerNotActivated() + +  : +
                                                                                                                                                                        +
                                                                                                                                                                        + +
                                                                                                                                                                        + labels() + +  : array<string|int, mixed> +
                                                                                                                                                                        +
                                                                                                                                                                        Libellés des possibilités de cet énumération (label)
                                                                                                                                                                        + +
                                                                                                                                                                        + methodNotAllowed() + +  : +
                                                                                                                                                                        +
                                                                                                                                                                        + +
                                                                                                                                                                        + missingParameter() + +  : +
                                                                                                                                                                        +
                                                                                                                                                                        + +
                                                                                                                                                                        + modelNotFound() + +  : +
                                                                                                                                                                        +
                                                                                                                                                                        + +
                                                                                                                                                                        + singleOptinCustomerExists() + +  : +
                                                                                                                                                                        +
                                                                                                                                                                        + +
                                                                                                                                                                        + throttleRequestsException() + +  : +
                                                                                                                                                                        +
                                                                                                                                                                        + +
                                                                                                                                                                        + validationFailed() + +  : +
                                                                                                                                                                        +
                                                                                                                                                                        + +
                                                                                                                                                                        + values() + +  : array<string|int, mixed> +
                                                                                                                                                                        +
                                                                                                                                                                        Valeurs des possibilités de cet énumération (value)
                                                                                                                                                                        + +
                                                                                                                                                                        + wrongTimeStamp() + +  : +
                                                                                                                                                                        +
                                                                                                                                                                        + +
                                                                                                                                                                        + + + + + + + +
                                                                                                                                                                        +

                                                                                                                                                                        + Methods + +

                                                                                                                                                                        +
                                                                                                                                                                        +

                                                                                                                                                                        + apiAuthFailed() + +

                                                                                                                                                                        + + + + + public + static apiAuthFailed() : + +

                                                                                                                                                                        The authentification to the api failed. You may have to +check into config or .env file for your service credentials

                                                                                                                                                                        +
                                                                                                                                                                        + + + + +
                                                                                                                                                                        Return values
                                                                                                                                                                        + + — + + +
                                                                                                                                                                        +
                                                                                                                                                                        +

                                                                                                                                                                        + authFailed() + +

                                                                                                                                                                        + + + + + public + static authFailed() : + +

                                                                                                                                                                        The authentification for this customer failed because of wrong credentials

                                                                                                                                                                        +
                                                                                                                                                                        + + + + +
                                                                                                                                                                        Return values
                                                                                                                                                                        + + — + + +
                                                                                                                                                                        +
                                                                                                                                                                        +

                                                                                                                                                                        + authorizationException() + +

                                                                                                                                                                        + + + + + public + static authorizationException() : + +

                                                                                                                                                                        You are maybe trying to access data that is out of your range. +This should not happen normally, it is here to allow you to handle this case. +If this happens fill a ticket on https://supportweb.ldc.fr +with some technical details

                                                                                                                                                                        +
                                                                                                                                                                        + + + + +
                                                                                                                                                                        Return values
                                                                                                                                                                        + + — + + +
                                                                                                                                                                        +
                                                                                                                                                                        +

                                                                                                                                                                        + customerAlreadyActive() + +

                                                                                                                                                                        + + + + + public + static customerAlreadyActive() : + +

                                                                                                                                                                        You have requested to activate a customer account, +but it is already active

                                                                                                                                                                        +
                                                                                                                                                                        + + + + +
                                                                                                                                                                        Return values
                                                                                                                                                                        + + — + + +
                                                                                                                                                                        +
                                                                                                                                                                        +

                                                                                                                                                                        + customerExists() + +

                                                                                                                                                                        + + + + + public + static customerExists() : + +

                                                                                                                                                                        The customer already exists

                                                                                                                                                                        +
                                                                                                                                                                        + + + + +
                                                                                                                                                                        Return values
                                                                                                                                                                        + + — + + +
                                                                                                                                                                        +
                                                                                                                                                                        +

                                                                                                                                                                        + customerNotActivated() + +

                                                                                                                                                                        + + + + + public + static customerNotActivated() : + +

                                                                                                                                                                        The customer account is not activated and cannot perform +this action

                                                                                                                                                                        +
                                                                                                                                                                        + + + + +
                                                                                                                                                                        Return values
                                                                                                                                                                        + + — + + +
                                                                                                                                                                        +
                                                                                                                                                                        +

                                                                                                                                                                        + labels() + +

                                                                                                                                                                        + + +

                                                                                                                                                                        Libellés des possibilités de cet énumération (label)

                                                                                                                                                                        + + + public + static labels() : array<string|int, mixed> + + + + + +
                                                                                                                                                                        Return values
                                                                                                                                                                        + array<string|int, mixed> + — + + +
                                                                                                                                                                        +
                                                                                                                                                                        +

                                                                                                                                                                        + methodNotAllowed() + +

                                                                                                                                                                        + + + + + public + static methodNotAllowed() : + +

                                                                                                                                                                        This http method is not allowed

                                                                                                                                                                        +
                                                                                                                                                                        + + + + +
                                                                                                                                                                        Return values
                                                                                                                                                                        + + — + + +
                                                                                                                                                                        +
                                                                                                                                                                        +

                                                                                                                                                                        + missingParameter() + +

                                                                                                                                                                        + + + + + public + static missingParameter() : + +

                                                                                                                                                                        The request is missing some parameters

                                                                                                                                                                        +
                                                                                                                                                                        + + + + +
                                                                                                                                                                        Return values
                                                                                                                                                                        + + — + + +
                                                                                                                                                                        +
                                                                                                                                                                        +

                                                                                                                                                                        + modelNotFound() + +

                                                                                                                                                                        + + + + + public + static modelNotFound() : + +

                                                                                                                                                                        The request model was not found (typically the customer)

                                                                                                                                                                        +
                                                                                                                                                                        + + + + +
                                                                                                                                                                        Return values
                                                                                                                                                                        + + — + + +
                                                                                                                                                                        +
                                                                                                                                                                        +

                                                                                                                                                                        + singleOptinCustomerExists() + +

                                                                                                                                                                        + + + + + public + static singleOptinCustomerExists() : + +

                                                                                                                                                                        You have requested to create a single optin for an email, +but it already exists

                                                                                                                                                                        +
                                                                                                                                                                        + + + + +
                                                                                                                                                                        Return values
                                                                                                                                                                        + + — + + +
                                                                                                                                                                        +
                                                                                                                                                                        +

                                                                                                                                                                        + throttleRequestsException() + +

                                                                                                                                                                        + + + + + public + static throttleRequestsException() : + +

                                                                                                                                                                        Too many requests have been attempted. The is a throttle security. +Normally you should not trigger this. +If this happens fill a ticket on https://supportweb.ldc.fr +with some technical details

                                                                                                                                                                        +
                                                                                                                                                                        + + + + +
                                                                                                                                                                        Return values
                                                                                                                                                                        + + — + + +
                                                                                                                                                                        +
                                                                                                                                                                        +

                                                                                                                                                                        + validationFailed() + +

                                                                                                                                                                        + + + + + public + static validationFailed() : + +

                                                                                                                                                                        This means some data could not be validated, +you may have to look into message to get the details

                                                                                                                                                                        +
                                                                                                                                                                        + + + + +
                                                                                                                                                                        Return values
                                                                                                                                                                        + + — + + +
                                                                                                                                                                        +
                                                                                                                                                                        +

                                                                                                                                                                        + values() + +

                                                                                                                                                                        + + +

                                                                                                                                                                        Valeurs des possibilités de cet énumération (value)

                                                                                                                                                                        + + + public + static values() : array<string|int, mixed> + + + + + +
                                                                                                                                                                        Return values
                                                                                                                                                                        + array<string|int, mixed> + — + + +
                                                                                                                                                                        +
                                                                                                                                                                        +

                                                                                                                                                                        + wrongTimeStamp() + +

                                                                                                                                                                        + + + + + public + static wrongTimeStamp() : + +

                                                                                                                                                                        The timestamp given is wrong. This would happen in case if +a replay attack scenario. Timestamps are provided in headers +and in the http body

                                                                                                                                                                        +
                                                                                                                                                                        + + + + +
                                                                                                                                                                        Return values
                                                                                                                                                                        + + — + + +
                                                                                                                                                                        +
                                                                                                                                                                        + + + + +
                                                                                                                                                                        +
                                                                                                                                                                        +
                                                                                                                                                                        +
                                                                                                                                                                        +

                                                                                                                                                                        Search results

                                                                                                                                                                        + +
                                                                                                                                                                        +
                                                                                                                                                                        +
                                                                                                                                                                          +
                                                                                                                                                                          +
                                                                                                                                                                          +
                                                                                                                                                                          +
                                                                                                                                                                          +
                                                                                                                                                                          + + +
                                                                                                                                                                          + + + + + + + + diff --git a/app/Lib/vendor/crm-client-3.0.6/documentation/classes/LDC-LDCCRM-Enums-ApiStatus.html b/app/Lib/vendor/crm-client-3.0.6/documentation/classes/LDC-LDCCRM-Enums-ApiStatus.html new file mode 100644 index 0000000..7673647 --- /dev/null +++ b/app/Lib/vendor/crm-client-3.0.6/documentation/classes/LDC-LDCCRM-Enums-ApiStatus.html @@ -0,0 +1,335 @@ + + + + + CRM V2 + + + + + + + + + + + + + + + + + + + +
                                                                                                                                                                          +

                                                                                                                                                                          CRM V2

                                                                                                                                                                          + + + + + +
                                                                                                                                                                          + +
                                                                                                                                                                          +
                                                                                                                                                                          + + + + +
                                                                                                                                                                          + + +
                                                                                                                                                                          +

                                                                                                                                                                          + ApiStatus + + + extends BaseEnum + + +
                                                                                                                                                                          + in package + +
                                                                                                                                                                          + + +

                                                                                                                                                                          + + + + + + +
                                                                                                                                                                          + Tags + +
                                                                                                                                                                          +
                                                                                                                                                                          +
                                                                                                                                                                          + subpackage +
                                                                                                                                                                          +
                                                                                                                                                                          + +

                                                                                                                                                                          enums

                                                                                                                                                                          +
                                                                                                                                                                          + +
                                                                                                                                                                          +
                                                                                                                                                                          + + + + + + +

                                                                                                                                                                          + Table of Contents + +

                                                                                                                                                                          + +
                                                                                                                                                                          +
                                                                                                                                                                          + KO() + +  : +
                                                                                                                                                                          +
                                                                                                                                                                          + +
                                                                                                                                                                          + OK() + +  : +
                                                                                                                                                                          +
                                                                                                                                                                          + +
                                                                                                                                                                          + + + + + + + +
                                                                                                                                                                          +

                                                                                                                                                                          + Methods + +

                                                                                                                                                                          +
                                                                                                                                                                          +

                                                                                                                                                                          + KO() + +

                                                                                                                                                                          + + + + + public + static KO() : + + + + + +
                                                                                                                                                                          Return values
                                                                                                                                                                          + + — + + +
                                                                                                                                                                          +
                                                                                                                                                                          +

                                                                                                                                                                          + OK() + +

                                                                                                                                                                          + + + + + public + static OK() : + + + + + +
                                                                                                                                                                          Return values
                                                                                                                                                                          + + — + + +
                                                                                                                                                                          +
                                                                                                                                                                          + + + + +
                                                                                                                                                                          +
                                                                                                                                                                          +
                                                                                                                                                                          +
                                                                                                                                                                          +

                                                                                                                                                                          Search results

                                                                                                                                                                          + +
                                                                                                                                                                          +
                                                                                                                                                                          +
                                                                                                                                                                            +
                                                                                                                                                                            +
                                                                                                                                                                            +
                                                                                                                                                                            +
                                                                                                                                                                            +
                                                                                                                                                                            + + +
                                                                                                                                                                            + + + + + + + + diff --git a/app/Lib/vendor/crm-client-3.0.6/documentation/classes/LDC-LDCCRM-Enums-ArcadiaMailType.html b/app/Lib/vendor/crm-client-3.0.6/documentation/classes/LDC-LDCCRM-Enums-ArcadiaMailType.html new file mode 100644 index 0000000..022ec3b --- /dev/null +++ b/app/Lib/vendor/crm-client-3.0.6/documentation/classes/LDC-LDCCRM-Enums-ArcadiaMailType.html @@ -0,0 +1,375 @@ + + + + + CRM V2 + + + + + + + + + + + + + + + + + + + +
                                                                                                                                                                            +

                                                                                                                                                                            CRM V2

                                                                                                                                                                            + + + + + +
                                                                                                                                                                            + +
                                                                                                                                                                            +
                                                                                                                                                                            + + + + +
                                                                                                                                                                            + + +
                                                                                                                                                                            +

                                                                                                                                                                            + ArcadiaMailType + + + extends BaseEnum + + +
                                                                                                                                                                            + in package + +
                                                                                                                                                                            + + +

                                                                                                                                                                            + + + + + + +
                                                                                                                                                                            + Tags + +
                                                                                                                                                                            +
                                                                                                                                                                            +
                                                                                                                                                                            + subpackage +
                                                                                                                                                                            +
                                                                                                                                                                            + +

                                                                                                                                                                            enums

                                                                                                                                                                            +
                                                                                                                                                                            + +
                                                                                                                                                                            +
                                                                                                                                                                            + + + + + + +

                                                                                                                                                                            + Table of Contents + +

                                                                                                                                                                            + +
                                                                                                                                                                            +
                                                                                                                                                                            + default() + +  : +
                                                                                                                                                                            +
                                                                                                                                                                            + +
                                                                                                                                                                            + game() + +  : +
                                                                                                                                                                            +
                                                                                                                                                                            + +
                                                                                                                                                                            + values() + +  : array<string|int, mixed> +
                                                                                                                                                                            +
                                                                                                                                                                            Valeurs des possibilités de cet énumération (value)
                                                                                                                                                                            + +
                                                                                                                                                                            + + + + + + + +
                                                                                                                                                                            +

                                                                                                                                                                            + Methods + +

                                                                                                                                                                            +
                                                                                                                                                                            +

                                                                                                                                                                            + default() + +

                                                                                                                                                                            + + + + + public + static default() : + + + + + +
                                                                                                                                                                            Return values
                                                                                                                                                                            + + — + + +
                                                                                                                                                                            +
                                                                                                                                                                            +

                                                                                                                                                                            + game() + +

                                                                                                                                                                            + + + + + public + static game() : + + + + + +
                                                                                                                                                                            Return values
                                                                                                                                                                            + + — + + +
                                                                                                                                                                            +
                                                                                                                                                                            +

                                                                                                                                                                            + values() + +

                                                                                                                                                                            + + +

                                                                                                                                                                            Valeurs des possibilités de cet énumération (value)

                                                                                                                                                                            + + + public + static values() : array<string|int, mixed> + + + + + +
                                                                                                                                                                            Return values
                                                                                                                                                                            + array<string|int, mixed> + — + + +
                                                                                                                                                                            +
                                                                                                                                                                            + + + + +
                                                                                                                                                                            +
                                                                                                                                                                            +
                                                                                                                                                                            +
                                                                                                                                                                            +

                                                                                                                                                                            Search results

                                                                                                                                                                            + +
                                                                                                                                                                            +
                                                                                                                                                                            +
                                                                                                                                                                              +
                                                                                                                                                                              +
                                                                                                                                                                              +
                                                                                                                                                                              +
                                                                                                                                                                              +
                                                                                                                                                                              + + +
                                                                                                                                                                              + + + + + + + + diff --git a/app/Lib/vendor/crm-client-3.0.6/documentation/classes/LDC-LDCCRM-Enums-ArcadiaOrderType.html b/app/Lib/vendor/crm-client-3.0.6/documentation/classes/LDC-LDCCRM-Enums-ArcadiaOrderType.html new file mode 100644 index 0000000..8c5779b --- /dev/null +++ b/app/Lib/vendor/crm-client-3.0.6/documentation/classes/LDC-LDCCRM-Enums-ArcadiaOrderType.html @@ -0,0 +1,375 @@ + + + + + CRM V2 + + + + + + + + + + + + + + + + + + + +
                                                                                                                                                                              +

                                                                                                                                                                              CRM V2

                                                                                                                                                                              + + + + + +
                                                                                                                                                                              + +
                                                                                                                                                                              +
                                                                                                                                                                              + + + + +
                                                                                                                                                                              + + +
                                                                                                                                                                              +

                                                                                                                                                                              + ArcadiaOrderType + + + extends BaseEnum + + +
                                                                                                                                                                              + in package + +
                                                                                                                                                                              + + +

                                                                                                                                                                              + + + + + + +
                                                                                                                                                                              + Tags + +
                                                                                                                                                                              +
                                                                                                                                                                              +
                                                                                                                                                                              + subpackage +
                                                                                                                                                                              +
                                                                                                                                                                              + +

                                                                                                                                                                              enums

                                                                                                                                                                              +
                                                                                                                                                                              + +
                                                                                                                                                                              +
                                                                                                                                                                              + + + + + + +

                                                                                                                                                                              + Table of Contents + +

                                                                                                                                                                              + +
                                                                                                                                                                              +
                                                                                                                                                                              + cb() + +  : +
                                                                                                                                                                              +
                                                                                                                                                                              + +
                                                                                                                                                                              + check() + +  : +
                                                                                                                                                                              +
                                                                                                                                                                              + +
                                                                                                                                                                              + values() + +  : array<string|int, mixed> +
                                                                                                                                                                              +
                                                                                                                                                                              Valeurs des possibilités de cet énumération (value)
                                                                                                                                                                              + +
                                                                                                                                                                              + + + + + + + +
                                                                                                                                                                              +

                                                                                                                                                                              + Methods + +

                                                                                                                                                                              +
                                                                                                                                                                              +

                                                                                                                                                                              + cb() + +

                                                                                                                                                                              + + + + + public + static cb() : + + + + + +
                                                                                                                                                                              Return values
                                                                                                                                                                              + + — + + +
                                                                                                                                                                              +
                                                                                                                                                                              +

                                                                                                                                                                              + check() + +

                                                                                                                                                                              + + + + + public + static check() : + + + + + +
                                                                                                                                                                              Return values
                                                                                                                                                                              + + — + + +
                                                                                                                                                                              +
                                                                                                                                                                              +

                                                                                                                                                                              + values() + +

                                                                                                                                                                              + + +

                                                                                                                                                                              Valeurs des possibilités de cet énumération (value)

                                                                                                                                                                              + + + public + static values() : array<string|int, mixed> + + + + + +
                                                                                                                                                                              Return values
                                                                                                                                                                              + array<string|int, mixed> + — + + +
                                                                                                                                                                              +
                                                                                                                                                                              + + + + +
                                                                                                                                                                              +
                                                                                                                                                                              +
                                                                                                                                                                              +
                                                                                                                                                                              +

                                                                                                                                                                              Search results

                                                                                                                                                                              + +
                                                                                                                                                                              +
                                                                                                                                                                              +
                                                                                                                                                                                +
                                                                                                                                                                                +
                                                                                                                                                                                +
                                                                                                                                                                                +
                                                                                                                                                                                +
                                                                                                                                                                                + + +
                                                                                                                                                                                + + + + + + + + diff --git a/app/Lib/vendor/crm-client-3.0.6/documentation/classes/LDC-LDCCRM-Enums-Country.html b/app/Lib/vendor/crm-client-3.0.6/documentation/classes/LDC-LDCCRM-Enums-Country.html new file mode 100644 index 0000000..4172692 --- /dev/null +++ b/app/Lib/vendor/crm-client-3.0.6/documentation/classes/LDC-LDCCRM-Enums-Country.html @@ -0,0 +1,10056 @@ + + + + + CRM V2 + + + + + + + + + + + + + + + + + + + +
                                                                                                                                                                                +

                                                                                                                                                                                CRM V2

                                                                                                                                                                                + + + + + +
                                                                                                                                                                                + +
                                                                                                                                                                                +
                                                                                                                                                                                + + + + +
                                                                                                                                                                                + + +
                                                                                                                                                                                +

                                                                                                                                                                                + Country + + + extends BaseEnum + + +
                                                                                                                                                                                + in package + +
                                                                                                                                                                                + + +

                                                                                                                                                                                + + + +

                                                                                                                                                                                Liste de Pays

                                                                                                                                                                                + + + +
                                                                                                                                                                                + Tags + +
                                                                                                                                                                                +
                                                                                                                                                                                +
                                                                                                                                                                                + source +
                                                                                                                                                                                +
                                                                                                                                                                                + + +
                                                                                                                                                                                +
                                                                                                                                                                                + subpackage +
                                                                                                                                                                                +
                                                                                                                                                                                + +

                                                                                                                                                                                enums

                                                                                                                                                                                +
                                                                                                                                                                                + +
                                                                                                                                                                                +
                                                                                                                                                                                + + + + + + +

                                                                                                                                                                                + Table of Contents + +

                                                                                                                                                                                + +
                                                                                                                                                                                +
                                                                                                                                                                                + afghanistan() + +  : +
                                                                                                                                                                                +
                                                                                                                                                                                + +
                                                                                                                                                                                + alandIslands() + +  : +
                                                                                                                                                                                +
                                                                                                                                                                                + +
                                                                                                                                                                                + albania() + +  : +
                                                                                                                                                                                +
                                                                                                                                                                                + +
                                                                                                                                                                                + algeria() + +  : +
                                                                                                                                                                                +
                                                                                                                                                                                + +
                                                                                                                                                                                + americanSamoa() + +  : +
                                                                                                                                                                                +
                                                                                                                                                                                + +
                                                                                                                                                                                + andorra() + +  : +
                                                                                                                                                                                +
                                                                                                                                                                                + +
                                                                                                                                                                                + angola() + +  : +
                                                                                                                                                                                +
                                                                                                                                                                                + +
                                                                                                                                                                                + anguilla() + +  : +
                                                                                                                                                                                +
                                                                                                                                                                                + +
                                                                                                                                                                                + antarctica() + +  : +
                                                                                                                                                                                +
                                                                                                                                                                                + +
                                                                                                                                                                                + antiguaAndBarbuda() + +  : +
                                                                                                                                                                                +
                                                                                                                                                                                + +
                                                                                                                                                                                + argentina() + +  : +
                                                                                                                                                                                +
                                                                                                                                                                                + +
                                                                                                                                                                                + armenia() + +  : +
                                                                                                                                                                                +
                                                                                                                                                                                + +
                                                                                                                                                                                + aruba() + +  : +
                                                                                                                                                                                +
                                                                                                                                                                                + +
                                                                                                                                                                                + australia() + +  : +
                                                                                                                                                                                +
                                                                                                                                                                                + +
                                                                                                                                                                                + austria() + +  : +
                                                                                                                                                                                +
                                                                                                                                                                                + +
                                                                                                                                                                                + azerbaijan() + +  : +
                                                                                                                                                                                +
                                                                                                                                                                                + +
                                                                                                                                                                                + bahamas() + +  : +
                                                                                                                                                                                +
                                                                                                                                                                                + +
                                                                                                                                                                                + bahrain() + +  : +
                                                                                                                                                                                +
                                                                                                                                                                                + +
                                                                                                                                                                                + bangladesh() + +  : +
                                                                                                                                                                                +
                                                                                                                                                                                + +
                                                                                                                                                                                + barbados() + +  : +
                                                                                                                                                                                +
                                                                                                                                                                                + +
                                                                                                                                                                                + belarus() + +  : +
                                                                                                                                                                                +
                                                                                                                                                                                + +
                                                                                                                                                                                + belgium() + +  : +
                                                                                                                                                                                +
                                                                                                                                                                                + +
                                                                                                                                                                                + belize() + +  : +
                                                                                                                                                                                +
                                                                                                                                                                                + +
                                                                                                                                                                                + benin() + +  : +
                                                                                                                                                                                +
                                                                                                                                                                                + +
                                                                                                                                                                                + bermuda() + +  : +
                                                                                                                                                                                +
                                                                                                                                                                                + +
                                                                                                                                                                                + bhutan() + +  : +
                                                                                                                                                                                +
                                                                                                                                                                                + +
                                                                                                                                                                                + boliviaPlurinationalStateOf() + +  : +
                                                                                                                                                                                +
                                                                                                                                                                                + +
                                                                                                                                                                                + bonaireSintEustatiusAndSaba() + +  : +
                                                                                                                                                                                +
                                                                                                                                                                                + +
                                                                                                                                                                                + bosniaAndHerzegovina() + +  : +
                                                                                                                                                                                +
                                                                                                                                                                                + +
                                                                                                                                                                                + botswana() + +  : +
                                                                                                                                                                                +
                                                                                                                                                                                + +
                                                                                                                                                                                + bouvetIsland() + +  : +
                                                                                                                                                                                +
                                                                                                                                                                                + +
                                                                                                                                                                                + brazil() + +  : +
                                                                                                                                                                                +
                                                                                                                                                                                + +
                                                                                                                                                                                + britishIndianOceanTerritory() + +  : +
                                                                                                                                                                                +
                                                                                                                                                                                + +
                                                                                                                                                                                + bruneiDarussalam() + +  : +
                                                                                                                                                                                +
                                                                                                                                                                                + +
                                                                                                                                                                                + bulgaria() + +  : +
                                                                                                                                                                                +
                                                                                                                                                                                + +
                                                                                                                                                                                + burkinaFaso() + +  : +
                                                                                                                                                                                +
                                                                                                                                                                                + +
                                                                                                                                                                                + burundi() + +  : +
                                                                                                                                                                                +
                                                                                                                                                                                + +
                                                                                                                                                                                + cambodia() + +  : +
                                                                                                                                                                                +
                                                                                                                                                                                + +
                                                                                                                                                                                + cameroon() + +  : +
                                                                                                                                                                                +
                                                                                                                                                                                + +
                                                                                                                                                                                + canada() + +  : +
                                                                                                                                                                                +
                                                                                                                                                                                + +
                                                                                                                                                                                + capeVerde() + +  : +
                                                                                                                                                                                +
                                                                                                                                                                                + +
                                                                                                                                                                                + caymanIslands() + +  : +
                                                                                                                                                                                +
                                                                                                                                                                                + +
                                                                                                                                                                                + centralAfricanRepublic() + +  : +
                                                                                                                                                                                +
                                                                                                                                                                                + +
                                                                                                                                                                                + chad() + +  : +
                                                                                                                                                                                +
                                                                                                                                                                                + +
                                                                                                                                                                                + chile() + +  : +
                                                                                                                                                                                +
                                                                                                                                                                                + +
                                                                                                                                                                                + china() + +  : +
                                                                                                                                                                                +
                                                                                                                                                                                + +
                                                                                                                                                                                + christmasIsland() + +  : +
                                                                                                                                                                                +
                                                                                                                                                                                + +
                                                                                                                                                                                + cocosKeelingIslands() + +  : +
                                                                                                                                                                                +
                                                                                                                                                                                + +
                                                                                                                                                                                + colombia() + +  : +
                                                                                                                                                                                +
                                                                                                                                                                                + +
                                                                                                                                                                                + comoros() + +  : +
                                                                                                                                                                                +
                                                                                                                                                                                + +
                                                                                                                                                                                + congo() + +  : +
                                                                                                                                                                                +
                                                                                                                                                                                + +
                                                                                                                                                                                + congoTheDemocraticRepublicOfThe() + +  : +
                                                                                                                                                                                +
                                                                                                                                                                                + +
                                                                                                                                                                                + cookIslands() + +  : +
                                                                                                                                                                                +
                                                                                                                                                                                + +
                                                                                                                                                                                + costaRica() + +  : +
                                                                                                                                                                                +
                                                                                                                                                                                + +
                                                                                                                                                                                + coteDivoire() + +  : +
                                                                                                                                                                                +
                                                                                                                                                                                + +
                                                                                                                                                                                + croatia() + +  : +
                                                                                                                                                                                +
                                                                                                                                                                                + +
                                                                                                                                                                                + cuba() + +  : +
                                                                                                                                                                                +
                                                                                                                                                                                + +
                                                                                                                                                                                + curacao() + +  : +
                                                                                                                                                                                +
                                                                                                                                                                                + +
                                                                                                                                                                                + cyprus() + +  : +
                                                                                                                                                                                +
                                                                                                                                                                                + +
                                                                                                                                                                                + czechRepublic() + +  : +
                                                                                                                                                                                +
                                                                                                                                                                                + +
                                                                                                                                                                                + denmark() + +  : +
                                                                                                                                                                                +
                                                                                                                                                                                + +
                                                                                                                                                                                + djibouti() + +  : +
                                                                                                                                                                                +
                                                                                                                                                                                + +
                                                                                                                                                                                + dominica() + +  : +
                                                                                                                                                                                +
                                                                                                                                                                                + +
                                                                                                                                                                                + dominicanRepublic() + +  : +
                                                                                                                                                                                +
                                                                                                                                                                                + +
                                                                                                                                                                                + ecuador() + +  : +
                                                                                                                                                                                +
                                                                                                                                                                                + +
                                                                                                                                                                                + egypt() + +  : +
                                                                                                                                                                                +
                                                                                                                                                                                + +
                                                                                                                                                                                + elSalvador() + +  : +
                                                                                                                                                                                +
                                                                                                                                                                                + +
                                                                                                                                                                                + equatorialGuinea() + +  : +
                                                                                                                                                                                +
                                                                                                                                                                                + +
                                                                                                                                                                                + eritrea() + +  : +
                                                                                                                                                                                +
                                                                                                                                                                                + +
                                                                                                                                                                                + estonia() + +  : +
                                                                                                                                                                                +
                                                                                                                                                                                + +
                                                                                                                                                                                + ethiopia() + +  : +
                                                                                                                                                                                +
                                                                                                                                                                                + +
                                                                                                                                                                                + falklandIslandsMalvinas() + +  : +
                                                                                                                                                                                +
                                                                                                                                                                                + +
                                                                                                                                                                                + faroeIslands() + +  : +
                                                                                                                                                                                +
                                                                                                                                                                                + +
                                                                                                                                                                                + fiji() + +  : +
                                                                                                                                                                                +
                                                                                                                                                                                + +
                                                                                                                                                                                + finland() + +  : +
                                                                                                                                                                                +
                                                                                                                                                                                + +
                                                                                                                                                                                + france() + +  : +
                                                                                                                                                                                +
                                                                                                                                                                                + +
                                                                                                                                                                                + frenchGuiana() + +  : +
                                                                                                                                                                                +
                                                                                                                                                                                + +
                                                                                                                                                                                + frenchPolynesia() + +  : +
                                                                                                                                                                                +
                                                                                                                                                                                + +
                                                                                                                                                                                + frenchSouthernTerritories() + +  : +
                                                                                                                                                                                +
                                                                                                                                                                                + +
                                                                                                                                                                                + gabon() + +  : +
                                                                                                                                                                                +
                                                                                                                                                                                + +
                                                                                                                                                                                + gambia() + +  : +
                                                                                                                                                                                +
                                                                                                                                                                                + +
                                                                                                                                                                                + georgia() + +  : +
                                                                                                                                                                                +
                                                                                                                                                                                + +
                                                                                                                                                                                + germany() + +  : +
                                                                                                                                                                                +
                                                                                                                                                                                + +
                                                                                                                                                                                + ghana() + +  : +
                                                                                                                                                                                +
                                                                                                                                                                                + +
                                                                                                                                                                                + gibraltar() + +  : +
                                                                                                                                                                                +
                                                                                                                                                                                + +
                                                                                                                                                                                + greece() + +  : +
                                                                                                                                                                                +
                                                                                                                                                                                + +
                                                                                                                                                                                + greenland() + +  : +
                                                                                                                                                                                +
                                                                                                                                                                                + +
                                                                                                                                                                                + grenada() + +  : +
                                                                                                                                                                                +
                                                                                                                                                                                + +
                                                                                                                                                                                + guadeloupe() + +  : +
                                                                                                                                                                                +
                                                                                                                                                                                + +
                                                                                                                                                                                + guam() + +  : +
                                                                                                                                                                                +
                                                                                                                                                                                + +
                                                                                                                                                                                + guatemala() + +  : +
                                                                                                                                                                                +
                                                                                                                                                                                + +
                                                                                                                                                                                + guernsey() + +  : +
                                                                                                                                                                                +
                                                                                                                                                                                + +
                                                                                                                                                                                + guinea() + +  : +
                                                                                                                                                                                +
                                                                                                                                                                                + +
                                                                                                                                                                                + guineaBissau() + +  : +
                                                                                                                                                                                +
                                                                                                                                                                                + +
                                                                                                                                                                                + guyana() + +  : +
                                                                                                                                                                                +
                                                                                                                                                                                + +
                                                                                                                                                                                + haiti() + +  : +
                                                                                                                                                                                +
                                                                                                                                                                                + +
                                                                                                                                                                                + heardIslandAndMcdonaldIslands() + +  : +
                                                                                                                                                                                +
                                                                                                                                                                                + +
                                                                                                                                                                                + holySeeVaticanCityState() + +  : +
                                                                                                                                                                                +
                                                                                                                                                                                + +
                                                                                                                                                                                + honduras() + +  : +
                                                                                                                                                                                +
                                                                                                                                                                                + +
                                                                                                                                                                                + hongKong() + +  : +
                                                                                                                                                                                +
                                                                                                                                                                                + +
                                                                                                                                                                                + hungary() + +  : +
                                                                                                                                                                                +
                                                                                                                                                                                + +
                                                                                                                                                                                + iceland() + +  : +
                                                                                                                                                                                +
                                                                                                                                                                                + +
                                                                                                                                                                                + india() + +  : +
                                                                                                                                                                                +
                                                                                                                                                                                + +
                                                                                                                                                                                + indonesia() + +  : +
                                                                                                                                                                                +
                                                                                                                                                                                + +
                                                                                                                                                                                + iranIslamicRepublicOf() + +  : +
                                                                                                                                                                                +
                                                                                                                                                                                + +
                                                                                                                                                                                + iraq() + +  : +
                                                                                                                                                                                +
                                                                                                                                                                                + +
                                                                                                                                                                                + ireland() + +  : +
                                                                                                                                                                                +
                                                                                                                                                                                + +
                                                                                                                                                                                + isleOfMan() + +  : +
                                                                                                                                                                                +
                                                                                                                                                                                + +
                                                                                                                                                                                + israel() + +  : +
                                                                                                                                                                                +
                                                                                                                                                                                + +
                                                                                                                                                                                + italy() + +  : +
                                                                                                                                                                                +
                                                                                                                                                                                + +
                                                                                                                                                                                + jamaica() + +  : +
                                                                                                                                                                                +
                                                                                                                                                                                + +
                                                                                                                                                                                + japan() + +  : +
                                                                                                                                                                                +
                                                                                                                                                                                + +
                                                                                                                                                                                + jersey() + +  : +
                                                                                                                                                                                +
                                                                                                                                                                                + +
                                                                                                                                                                                + jordan() + +  : +
                                                                                                                                                                                +
                                                                                                                                                                                + +
                                                                                                                                                                                + kazakhstan() + +  : +
                                                                                                                                                                                +
                                                                                                                                                                                + +
                                                                                                                                                                                + kenya() + +  : +
                                                                                                                                                                                +
                                                                                                                                                                                + +
                                                                                                                                                                                + kiribati() + +  : +
                                                                                                                                                                                +
                                                                                                                                                                                + +
                                                                                                                                                                                + koreaDemocraticPeoplesRepublicOf() + +  : +
                                                                                                                                                                                +
                                                                                                                                                                                + +
                                                                                                                                                                                + koreaRepublicOf() + +  : +
                                                                                                                                                                                +
                                                                                                                                                                                + +
                                                                                                                                                                                + kuwait() + +  : +
                                                                                                                                                                                +
                                                                                                                                                                                + +
                                                                                                                                                                                + kyrgyzstan() + +  : +
                                                                                                                                                                                +
                                                                                                                                                                                + +
                                                                                                                                                                                + labels() + +  : array<string|int, mixed> +
                                                                                                                                                                                +
                                                                                                                                                                                Libellés des possibilités de cet énumération (label)
                                                                                                                                                                                + +
                                                                                                                                                                                + laoPeoplesDemocraticRepublic() + +  : +
                                                                                                                                                                                +
                                                                                                                                                                                + +
                                                                                                                                                                                + latvia() + +  : +
                                                                                                                                                                                +
                                                                                                                                                                                + +
                                                                                                                                                                                + lebanon() + +  : +
                                                                                                                                                                                +
                                                                                                                                                                                + +
                                                                                                                                                                                + lesotho() + +  : +
                                                                                                                                                                                +
                                                                                                                                                                                + +
                                                                                                                                                                                + liberia() + +  : +
                                                                                                                                                                                +
                                                                                                                                                                                + +
                                                                                                                                                                                + libya() + +  : +
                                                                                                                                                                                +
                                                                                                                                                                                + +
                                                                                                                                                                                + liechtenstein() + +  : +
                                                                                                                                                                                +
                                                                                                                                                                                + +
                                                                                                                                                                                + lithuania() + +  : +
                                                                                                                                                                                +
                                                                                                                                                                                + +
                                                                                                                                                                                + luxembourg() + +  : +
                                                                                                                                                                                +
                                                                                                                                                                                + +
                                                                                                                                                                                + macao() + +  : +
                                                                                                                                                                                +
                                                                                                                                                                                + +
                                                                                                                                                                                + macedoniaTheFormerYugoslavRepublicOf() + +  : +
                                                                                                                                                                                +
                                                                                                                                                                                + +
                                                                                                                                                                                + madagascar() + +  : +
                                                                                                                                                                                +
                                                                                                                                                                                + +
                                                                                                                                                                                + malawi() + +  : +
                                                                                                                                                                                +
                                                                                                                                                                                + +
                                                                                                                                                                                + malaysia() + +  : +
                                                                                                                                                                                +
                                                                                                                                                                                + +
                                                                                                                                                                                + maldives() + +  : +
                                                                                                                                                                                +
                                                                                                                                                                                + +
                                                                                                                                                                                + mali() + +  : +
                                                                                                                                                                                +
                                                                                                                                                                                + +
                                                                                                                                                                                + malta() + +  : +
                                                                                                                                                                                +
                                                                                                                                                                                + +
                                                                                                                                                                                + marshallIslands() + +  : +
                                                                                                                                                                                +
                                                                                                                                                                                + +
                                                                                                                                                                                + martinique() + +  : +
                                                                                                                                                                                +
                                                                                                                                                                                + +
                                                                                                                                                                                + mauritania() + +  : +
                                                                                                                                                                                +
                                                                                                                                                                                + +
                                                                                                                                                                                + mauritius() + +  : +
                                                                                                                                                                                +
                                                                                                                                                                                + +
                                                                                                                                                                                + mayotte() + +  : +
                                                                                                                                                                                +
                                                                                                                                                                                + +
                                                                                                                                                                                + mexico() + +  : +
                                                                                                                                                                                +
                                                                                                                                                                                + +
                                                                                                                                                                                + micronesiaFederatedStatesOf() + +  : +
                                                                                                                                                                                +
                                                                                                                                                                                + +
                                                                                                                                                                                + moldovaRepublicOf() + +  : +
                                                                                                                                                                                +
                                                                                                                                                                                + +
                                                                                                                                                                                + monaco() + +  : +
                                                                                                                                                                                +
                                                                                                                                                                                + +
                                                                                                                                                                                + mongolia() + +  : +
                                                                                                                                                                                +
                                                                                                                                                                                + +
                                                                                                                                                                                + montenegro() + +  : +
                                                                                                                                                                                +
                                                                                                                                                                                + +
                                                                                                                                                                                + montserrat() + +  : +
                                                                                                                                                                                +
                                                                                                                                                                                + +
                                                                                                                                                                                + morocco() + +  : +
                                                                                                                                                                                +
                                                                                                                                                                                + +
                                                                                                                                                                                + mozambique() + +  : +
                                                                                                                                                                                +
                                                                                                                                                                                + +
                                                                                                                                                                                + myanmar() + +  : +
                                                                                                                                                                                +
                                                                                                                                                                                + +
                                                                                                                                                                                + namibia() + +  : +
                                                                                                                                                                                +
                                                                                                                                                                                + +
                                                                                                                                                                                + nauru() + +  : +
                                                                                                                                                                                +
                                                                                                                                                                                + +
                                                                                                                                                                                + nepal() + +  : +
                                                                                                                                                                                +
                                                                                                                                                                                + +
                                                                                                                                                                                + netherlands() + +  : +
                                                                                                                                                                                +
                                                                                                                                                                                + +
                                                                                                                                                                                + newCaledonia() + +  : +
                                                                                                                                                                                +
                                                                                                                                                                                + +
                                                                                                                                                                                + newZealand() + +  : +
                                                                                                                                                                                +
                                                                                                                                                                                + +
                                                                                                                                                                                + nicaragua() + +  : +
                                                                                                                                                                                +
                                                                                                                                                                                + +
                                                                                                                                                                                + niger() + +  : +
                                                                                                                                                                                +
                                                                                                                                                                                + +
                                                                                                                                                                                + nigeria() + +  : +
                                                                                                                                                                                +
                                                                                                                                                                                + +
                                                                                                                                                                                + niue() + +  : +
                                                                                                                                                                                +
                                                                                                                                                                                + +
                                                                                                                                                                                + norfolkIsland() + +  : +
                                                                                                                                                                                +
                                                                                                                                                                                + +
                                                                                                                                                                                + northernMarianaIslands() + +  : +
                                                                                                                                                                                +
                                                                                                                                                                                + +
                                                                                                                                                                                + norway() + +  : +
                                                                                                                                                                                +
                                                                                                                                                                                + +
                                                                                                                                                                                + oman() + +  : +
                                                                                                                                                                                +
                                                                                                                                                                                + +
                                                                                                                                                                                + pakistan() + +  : +
                                                                                                                                                                                +
                                                                                                                                                                                + +
                                                                                                                                                                                + palau() + +  : +
                                                                                                                                                                                +
                                                                                                                                                                                + +
                                                                                                                                                                                + palestineStateOf() + +  : +
                                                                                                                                                                                +
                                                                                                                                                                                + +
                                                                                                                                                                                + panama() + +  : +
                                                                                                                                                                                +
                                                                                                                                                                                + +
                                                                                                                                                                                + papuaNewGuinea() + +  : +
                                                                                                                                                                                +
                                                                                                                                                                                + +
                                                                                                                                                                                + paraguay() + +  : +
                                                                                                                                                                                +
                                                                                                                                                                                + +
                                                                                                                                                                                + peru() + +  : +
                                                                                                                                                                                +
                                                                                                                                                                                + +
                                                                                                                                                                                + philippines() + +  : +
                                                                                                                                                                                +
                                                                                                                                                                                + +
                                                                                                                                                                                + pitcairn() + +  : +
                                                                                                                                                                                +
                                                                                                                                                                                + +
                                                                                                                                                                                + poland() + +  : +
                                                                                                                                                                                +
                                                                                                                                                                                + +
                                                                                                                                                                                + portugal() + +  : +
                                                                                                                                                                                +
                                                                                                                                                                                + +
                                                                                                                                                                                + puertoRico() + +  : +
                                                                                                                                                                                +
                                                                                                                                                                                + +
                                                                                                                                                                                + qatar() + +  : +
                                                                                                                                                                                +
                                                                                                                                                                                + +
                                                                                                                                                                                + reunion() + +  : +
                                                                                                                                                                                +
                                                                                                                                                                                + +
                                                                                                                                                                                + romania() + +  : +
                                                                                                                                                                                +
                                                                                                                                                                                + +
                                                                                                                                                                                + russianFederation() + +  : +
                                                                                                                                                                                +
                                                                                                                                                                                + +
                                                                                                                                                                                + rwanda() + +  : +
                                                                                                                                                                                +
                                                                                                                                                                                + +
                                                                                                                                                                                + saintBarthelemy() + +  : +
                                                                                                                                                                                +
                                                                                                                                                                                + +
                                                                                                                                                                                + saintHelenaAscensionAndTristanDaCunha() + +  : +
                                                                                                                                                                                +
                                                                                                                                                                                + +
                                                                                                                                                                                + saintKittsAndNevis() + +  : +
                                                                                                                                                                                +
                                                                                                                                                                                + +
                                                                                                                                                                                + saintLucia() + +  : +
                                                                                                                                                                                +
                                                                                                                                                                                + +
                                                                                                                                                                                + saintMartinFrenchPart() + +  : +
                                                                                                                                                                                +
                                                                                                                                                                                + +
                                                                                                                                                                                + saintPierreAndMiquelon() + +  : +
                                                                                                                                                                                +
                                                                                                                                                                                + +
                                                                                                                                                                                + saintVincentAndTheGrenadines() + +  : +
                                                                                                                                                                                +
                                                                                                                                                                                + +
                                                                                                                                                                                + samoa() + +  : +
                                                                                                                                                                                +
                                                                                                                                                                                + +
                                                                                                                                                                                + sanMarino() + +  : +
                                                                                                                                                                                +
                                                                                                                                                                                + +
                                                                                                                                                                                + saoTomeAndPrincipe() + +  : +
                                                                                                                                                                                +
                                                                                                                                                                                + +
                                                                                                                                                                                + saudiArabia() + +  : +
                                                                                                                                                                                +
                                                                                                                                                                                + +
                                                                                                                                                                                + senegal() + +  : +
                                                                                                                                                                                +
                                                                                                                                                                                + +
                                                                                                                                                                                + serbia() + +  : +
                                                                                                                                                                                +
                                                                                                                                                                                + +
                                                                                                                                                                                + seychelles() + +  : +
                                                                                                                                                                                +
                                                                                                                                                                                + +
                                                                                                                                                                                + sierraLeone() + +  : +
                                                                                                                                                                                +
                                                                                                                                                                                + +
                                                                                                                                                                                + singapore() + +  : +
                                                                                                                                                                                +
                                                                                                                                                                                + +
                                                                                                                                                                                + sintMaartenDutchPart() + +  : +
                                                                                                                                                                                +
                                                                                                                                                                                + +
                                                                                                                                                                                + slovakia() + +  : +
                                                                                                                                                                                +
                                                                                                                                                                                + +
                                                                                                                                                                                + slovenia() + +  : +
                                                                                                                                                                                +
                                                                                                                                                                                + +
                                                                                                                                                                                + solomonIslands() + +  : +
                                                                                                                                                                                +
                                                                                                                                                                                + +
                                                                                                                                                                                + somalia() + +  : +
                                                                                                                                                                                +
                                                                                                                                                                                + +
                                                                                                                                                                                + southAfrica() + +  : +
                                                                                                                                                                                +
                                                                                                                                                                                + +
                                                                                                                                                                                + southGeorgiaAndTheSouthSandwichIslands() + +  : +
                                                                                                                                                                                +
                                                                                                                                                                                + +
                                                                                                                                                                                + southSudan() + +  : +
                                                                                                                                                                                +
                                                                                                                                                                                + +
                                                                                                                                                                                + spain() + +  : +
                                                                                                                                                                                +
                                                                                                                                                                                + +
                                                                                                                                                                                + sriLanka() + +  : +
                                                                                                                                                                                +
                                                                                                                                                                                + +
                                                                                                                                                                                + sudan() + +  : +
                                                                                                                                                                                +
                                                                                                                                                                                + +
                                                                                                                                                                                + suriname() + +  : +
                                                                                                                                                                                +
                                                                                                                                                                                + +
                                                                                                                                                                                + svalbardAndJanMayen() + +  : +
                                                                                                                                                                                +
                                                                                                                                                                                + +
                                                                                                                                                                                + swaziland() + +  : +
                                                                                                                                                                                +
                                                                                                                                                                                + +
                                                                                                                                                                                + sweden() + +  : +
                                                                                                                                                                                +
                                                                                                                                                                                + +
                                                                                                                                                                                + switzerland() + +  : +
                                                                                                                                                                                +
                                                                                                                                                                                + +
                                                                                                                                                                                + syrianArabRepublic() + +  : +
                                                                                                                                                                                +
                                                                                                                                                                                + +
                                                                                                                                                                                + taiwanProvinceOfChina() + +  : +
                                                                                                                                                                                +
                                                                                                                                                                                + +
                                                                                                                                                                                + tajikistan() + +  : +
                                                                                                                                                                                +
                                                                                                                                                                                + +
                                                                                                                                                                                + tanzaniaUnitedRepublicOf() + +  : +
                                                                                                                                                                                +
                                                                                                                                                                                + +
                                                                                                                                                                                + thailand() + +  : +
                                                                                                                                                                                +
                                                                                                                                                                                + +
                                                                                                                                                                                + timorLeste() + +  : +
                                                                                                                                                                                +
                                                                                                                                                                                + +
                                                                                                                                                                                + togo() + +  : +
                                                                                                                                                                                +
                                                                                                                                                                                + +
                                                                                                                                                                                + tokelau() + +  : +
                                                                                                                                                                                +
                                                                                                                                                                                + +
                                                                                                                                                                                + tonga() + +  : +
                                                                                                                                                                                +
                                                                                                                                                                                + +
                                                                                                                                                                                + trinidadAndTobago() + +  : +
                                                                                                                                                                                +
                                                                                                                                                                                + +
                                                                                                                                                                                + tunisia() + +  : +
                                                                                                                                                                                +
                                                                                                                                                                                + +
                                                                                                                                                                                + turkey() + +  : +
                                                                                                                                                                                +
                                                                                                                                                                                + +
                                                                                                                                                                                + turkmenistan() + +  : +
                                                                                                                                                                                +
                                                                                                                                                                                + +
                                                                                                                                                                                + turksAndCaicosIslands() + +  : +
                                                                                                                                                                                +
                                                                                                                                                                                + +
                                                                                                                                                                                + tuvalu() + +  : +
                                                                                                                                                                                +
                                                                                                                                                                                + +
                                                                                                                                                                                + uganda() + +  : +
                                                                                                                                                                                +
                                                                                                                                                                                + +
                                                                                                                                                                                + ukraine() + +  : +
                                                                                                                                                                                +
                                                                                                                                                                                + +
                                                                                                                                                                                + unitedArabEmirates() + +  : +
                                                                                                                                                                                +
                                                                                                                                                                                + +
                                                                                                                                                                                + unitedKingdom() + +  : +
                                                                                                                                                                                +
                                                                                                                                                                                + +
                                                                                                                                                                                + unitedStates() + +  : +
                                                                                                                                                                                +
                                                                                                                                                                                + +
                                                                                                                                                                                + unitedStatesMinorOutlyingIslands() + +  : +
                                                                                                                                                                                +
                                                                                                                                                                                + +
                                                                                                                                                                                + uruguay() + +  : +
                                                                                                                                                                                +
                                                                                                                                                                                + +
                                                                                                                                                                                + uzbekistan() + +  : +
                                                                                                                                                                                +
                                                                                                                                                                                + +
                                                                                                                                                                                + values() + +  : array<string|int, mixed> +
                                                                                                                                                                                +
                                                                                                                                                                                Valeurs des possibilités de cet énumération (value)
                                                                                                                                                                                + +
                                                                                                                                                                                + vanuatu() + +  : +
                                                                                                                                                                                +
                                                                                                                                                                                + +
                                                                                                                                                                                + venezuelaBolivarianRepublicOf() + +  : +
                                                                                                                                                                                +
                                                                                                                                                                                + +
                                                                                                                                                                                + vietNam() + +  : +
                                                                                                                                                                                +
                                                                                                                                                                                + +
                                                                                                                                                                                + virginIslandsBritish() + +  : +
                                                                                                                                                                                +
                                                                                                                                                                                + +
                                                                                                                                                                                + virginIslandsUs() + +  : +
                                                                                                                                                                                +
                                                                                                                                                                                + +
                                                                                                                                                                                + wallisAndFutuna() + +  : +
                                                                                                                                                                                +
                                                                                                                                                                                + +
                                                                                                                                                                                + westernSahara() + +  : +
                                                                                                                                                                                +
                                                                                                                                                                                + +
                                                                                                                                                                                + yemen() + +  : +
                                                                                                                                                                                +
                                                                                                                                                                                + +
                                                                                                                                                                                + zambia() + +  : +
                                                                                                                                                                                +
                                                                                                                                                                                + +
                                                                                                                                                                                + zimbabwe() + +  : +
                                                                                                                                                                                +
                                                                                                                                                                                + +
                                                                                                                                                                                + + + + + + + +
                                                                                                                                                                                +

                                                                                                                                                                                + Methods + +

                                                                                                                                                                                +
                                                                                                                                                                                +

                                                                                                                                                                                + afghanistan() + +

                                                                                                                                                                                + + + + + public + static afghanistan() : + + + + + +
                                                                                                                                                                                Return values
                                                                                                                                                                                + + — + + +
                                                                                                                                                                                +
                                                                                                                                                                                +

                                                                                                                                                                                + alandIslands() + +

                                                                                                                                                                                + + + + + public + static alandIslands() : + + + + + +
                                                                                                                                                                                Return values
                                                                                                                                                                                + + — + + +
                                                                                                                                                                                +
                                                                                                                                                                                +

                                                                                                                                                                                + albania() + +

                                                                                                                                                                                + + + + + public + static albania() : + + + + + +
                                                                                                                                                                                Return values
                                                                                                                                                                                + + — + + +
                                                                                                                                                                                +
                                                                                                                                                                                +

                                                                                                                                                                                + algeria() + +

                                                                                                                                                                                + + + + + public + static algeria() : + + + + + +
                                                                                                                                                                                Return values
                                                                                                                                                                                + + — + + +
                                                                                                                                                                                +
                                                                                                                                                                                +

                                                                                                                                                                                + americanSamoa() + +

                                                                                                                                                                                + + + + + public + static americanSamoa() : + + + + + +
                                                                                                                                                                                Return values
                                                                                                                                                                                + + — + + +
                                                                                                                                                                                +
                                                                                                                                                                                +

                                                                                                                                                                                + andorra() + +

                                                                                                                                                                                + + + + + public + static andorra() : + + + + + +
                                                                                                                                                                                Return values
                                                                                                                                                                                + + — + + +
                                                                                                                                                                                +
                                                                                                                                                                                +

                                                                                                                                                                                + angola() + +

                                                                                                                                                                                + + + + + public + static angola() : + + + + + +
                                                                                                                                                                                Return values
                                                                                                                                                                                + + — + + +
                                                                                                                                                                                +
                                                                                                                                                                                +

                                                                                                                                                                                + anguilla() + +

                                                                                                                                                                                + + + + + public + static anguilla() : + + + + + +
                                                                                                                                                                                Return values
                                                                                                                                                                                + + — + + +
                                                                                                                                                                                +
                                                                                                                                                                                +

                                                                                                                                                                                + antarctica() + +

                                                                                                                                                                                + + + + + public + static antarctica() : + + + + + +
                                                                                                                                                                                Return values
                                                                                                                                                                                + + — + + +
                                                                                                                                                                                +
                                                                                                                                                                                +

                                                                                                                                                                                + antiguaAndBarbuda() + +

                                                                                                                                                                                + + + + + public + static antiguaAndBarbuda() : + + + + + +
                                                                                                                                                                                Return values
                                                                                                                                                                                + + — + + +
                                                                                                                                                                                +
                                                                                                                                                                                +

                                                                                                                                                                                + argentina() + +

                                                                                                                                                                                + + + + + public + static argentina() : + + + + + +
                                                                                                                                                                                Return values
                                                                                                                                                                                + + — + + +
                                                                                                                                                                                +
                                                                                                                                                                                +

                                                                                                                                                                                + armenia() + +

                                                                                                                                                                                + + + + + public + static armenia() : + + + + + +
                                                                                                                                                                                Return values
                                                                                                                                                                                + + — + + +
                                                                                                                                                                                +
                                                                                                                                                                                +

                                                                                                                                                                                + aruba() + +

                                                                                                                                                                                + + + + + public + static aruba() : + + + + + +
                                                                                                                                                                                Return values
                                                                                                                                                                                + + — + + +
                                                                                                                                                                                +
                                                                                                                                                                                +

                                                                                                                                                                                + australia() + +

                                                                                                                                                                                + + + + + public + static australia() : + + + + + +
                                                                                                                                                                                Return values
                                                                                                                                                                                + + — + + +
                                                                                                                                                                                +
                                                                                                                                                                                +

                                                                                                                                                                                + austria() + +

                                                                                                                                                                                + + + + + public + static austria() : + + + + + +
                                                                                                                                                                                Return values
                                                                                                                                                                                + + — + + +
                                                                                                                                                                                +
                                                                                                                                                                                +

                                                                                                                                                                                + azerbaijan() + +

                                                                                                                                                                                + + + + + public + static azerbaijan() : + + + + + +
                                                                                                                                                                                Return values
                                                                                                                                                                                + + — + + +
                                                                                                                                                                                +
                                                                                                                                                                                +

                                                                                                                                                                                + bahamas() + +

                                                                                                                                                                                + + + + + public + static bahamas() : + + + + + +
                                                                                                                                                                                Return values
                                                                                                                                                                                + + — + + +
                                                                                                                                                                                +
                                                                                                                                                                                +

                                                                                                                                                                                + bahrain() + +

                                                                                                                                                                                + + + + + public + static bahrain() : + + + + + +
                                                                                                                                                                                Return values
                                                                                                                                                                                + + — + + +
                                                                                                                                                                                +
                                                                                                                                                                                +

                                                                                                                                                                                + bangladesh() + +

                                                                                                                                                                                + + + + + public + static bangladesh() : + + + + + +
                                                                                                                                                                                Return values
                                                                                                                                                                                + + — + + +
                                                                                                                                                                                +
                                                                                                                                                                                +

                                                                                                                                                                                + barbados() + +

                                                                                                                                                                                + + + + + public + static barbados() : + + + + + +
                                                                                                                                                                                Return values
                                                                                                                                                                                + + — + + +
                                                                                                                                                                                +
                                                                                                                                                                                +

                                                                                                                                                                                + belarus() + +

                                                                                                                                                                                + + + + + public + static belarus() : + + + + + +
                                                                                                                                                                                Return values
                                                                                                                                                                                + + — + + +
                                                                                                                                                                                +
                                                                                                                                                                                +

                                                                                                                                                                                + belgium() + +

                                                                                                                                                                                + + + + + public + static belgium() : + + + + + +
                                                                                                                                                                                Return values
                                                                                                                                                                                + + — + + +
                                                                                                                                                                                +
                                                                                                                                                                                +

                                                                                                                                                                                + belize() + +

                                                                                                                                                                                + + + + + public + static belize() : + + + + + +
                                                                                                                                                                                Return values
                                                                                                                                                                                + + — + + +
                                                                                                                                                                                +
                                                                                                                                                                                +

                                                                                                                                                                                + benin() + +

                                                                                                                                                                                + + + + + public + static benin() : + + + + + +
                                                                                                                                                                                Return values
                                                                                                                                                                                + + — + + +
                                                                                                                                                                                +
                                                                                                                                                                                +

                                                                                                                                                                                + bermuda() + +

                                                                                                                                                                                + + + + + public + static bermuda() : + + + + + +
                                                                                                                                                                                Return values
                                                                                                                                                                                + + — + + +
                                                                                                                                                                                +
                                                                                                                                                                                +

                                                                                                                                                                                + bhutan() + +

                                                                                                                                                                                + + + + + public + static bhutan() : + + + + + +
                                                                                                                                                                                Return values
                                                                                                                                                                                + + — + + +
                                                                                                                                                                                +
                                                                                                                                                                                +

                                                                                                                                                                                + boliviaPlurinationalStateOf() + +

                                                                                                                                                                                + + + + + public + static boliviaPlurinationalStateOf() : + + + + + +
                                                                                                                                                                                Return values
                                                                                                                                                                                + + — + + +
                                                                                                                                                                                +
                                                                                                                                                                                +

                                                                                                                                                                                + bonaireSintEustatiusAndSaba() + +

                                                                                                                                                                                + + + + + public + static bonaireSintEustatiusAndSaba() : + + + + + +
                                                                                                                                                                                Return values
                                                                                                                                                                                + + — + + +
                                                                                                                                                                                +
                                                                                                                                                                                +

                                                                                                                                                                                + bosniaAndHerzegovina() + +

                                                                                                                                                                                + + + + + public + static bosniaAndHerzegovina() : + + + + + +
                                                                                                                                                                                Return values
                                                                                                                                                                                + + — + + +
                                                                                                                                                                                +
                                                                                                                                                                                +

                                                                                                                                                                                + botswana() + +

                                                                                                                                                                                + + + + + public + static botswana() : + + + + + +
                                                                                                                                                                                Return values
                                                                                                                                                                                + + — + + +
                                                                                                                                                                                +
                                                                                                                                                                                +

                                                                                                                                                                                + bouvetIsland() + +

                                                                                                                                                                                + + + + + public + static bouvetIsland() : + + + + + +
                                                                                                                                                                                Return values
                                                                                                                                                                                + + — + + +
                                                                                                                                                                                +
                                                                                                                                                                                +

                                                                                                                                                                                + brazil() + +

                                                                                                                                                                                + + + + + public + static brazil() : + + + + + +
                                                                                                                                                                                Return values
                                                                                                                                                                                + + — + + +
                                                                                                                                                                                +
                                                                                                                                                                                +

                                                                                                                                                                                + britishIndianOceanTerritory() + +

                                                                                                                                                                                + + + + + public + static britishIndianOceanTerritory() : + + + + + +
                                                                                                                                                                                Return values
                                                                                                                                                                                + + — + + +
                                                                                                                                                                                +
                                                                                                                                                                                +

                                                                                                                                                                                + bruneiDarussalam() + +

                                                                                                                                                                                + + + + + public + static bruneiDarussalam() : + + + + + +
                                                                                                                                                                                Return values
                                                                                                                                                                                + + — + + +
                                                                                                                                                                                +
                                                                                                                                                                                +

                                                                                                                                                                                + bulgaria() + +

                                                                                                                                                                                + + + + + public + static bulgaria() : + + + + + +
                                                                                                                                                                                Return values
                                                                                                                                                                                + + — + + +
                                                                                                                                                                                +
                                                                                                                                                                                +

                                                                                                                                                                                + burkinaFaso() + +

                                                                                                                                                                                + + + + + public + static burkinaFaso() : + + + + + +
                                                                                                                                                                                Return values
                                                                                                                                                                                + + — + + +
                                                                                                                                                                                +
                                                                                                                                                                                +

                                                                                                                                                                                + burundi() + +

                                                                                                                                                                                + + + + + public + static burundi() : + + + + + +
                                                                                                                                                                                Return values
                                                                                                                                                                                + + — + + +
                                                                                                                                                                                +
                                                                                                                                                                                +

                                                                                                                                                                                + cambodia() + +

                                                                                                                                                                                + + + + + public + static cambodia() : + + + + + +
                                                                                                                                                                                Return values
                                                                                                                                                                                + + — + + +
                                                                                                                                                                                +
                                                                                                                                                                                +

                                                                                                                                                                                + cameroon() + +

                                                                                                                                                                                + + + + + public + static cameroon() : + + + + + +
                                                                                                                                                                                Return values
                                                                                                                                                                                + + — + + +
                                                                                                                                                                                +
                                                                                                                                                                                +

                                                                                                                                                                                + canada() + +

                                                                                                                                                                                + + + + + public + static canada() : + + + + + +
                                                                                                                                                                                Return values
                                                                                                                                                                                + + — + + +
                                                                                                                                                                                +
                                                                                                                                                                                +

                                                                                                                                                                                + capeVerde() + +

                                                                                                                                                                                + + + + + public + static capeVerde() : + + + + + +
                                                                                                                                                                                Return values
                                                                                                                                                                                + + — + + +
                                                                                                                                                                                +
                                                                                                                                                                                +

                                                                                                                                                                                + caymanIslands() + +

                                                                                                                                                                                + + + + + public + static caymanIslands() : + + + + + +
                                                                                                                                                                                Return values
                                                                                                                                                                                + + — + + +
                                                                                                                                                                                +
                                                                                                                                                                                +

                                                                                                                                                                                + centralAfricanRepublic() + +

                                                                                                                                                                                + + + + + public + static centralAfricanRepublic() : + + + + + +
                                                                                                                                                                                Return values
                                                                                                                                                                                + + — + + +
                                                                                                                                                                                +
                                                                                                                                                                                +

                                                                                                                                                                                + chad() + +

                                                                                                                                                                                + + + + + public + static chad() : + + + + + +
                                                                                                                                                                                Return values
                                                                                                                                                                                + + — + + +
                                                                                                                                                                                +
                                                                                                                                                                                +

                                                                                                                                                                                + chile() + +

                                                                                                                                                                                + + + + + public + static chile() : + + + + + +
                                                                                                                                                                                Return values
                                                                                                                                                                                + + — + + +
                                                                                                                                                                                +
                                                                                                                                                                                +

                                                                                                                                                                                + china() + +

                                                                                                                                                                                + + + + + public + static china() : + + + + + +
                                                                                                                                                                                Return values
                                                                                                                                                                                + + — + + +
                                                                                                                                                                                +
                                                                                                                                                                                +

                                                                                                                                                                                + christmasIsland() + +

                                                                                                                                                                                + + + + + public + static christmasIsland() : + + + + + +
                                                                                                                                                                                Return values
                                                                                                                                                                                + + — + + +
                                                                                                                                                                                +
                                                                                                                                                                                +

                                                                                                                                                                                + cocosKeelingIslands() + +

                                                                                                                                                                                + + + + + public + static cocosKeelingIslands() : + + + + + +
                                                                                                                                                                                Return values
                                                                                                                                                                                + + — + + +
                                                                                                                                                                                +
                                                                                                                                                                                +

                                                                                                                                                                                + colombia() + +

                                                                                                                                                                                + + + + + public + static colombia() : + + + + + +
                                                                                                                                                                                Return values
                                                                                                                                                                                + + — + + +
                                                                                                                                                                                +
                                                                                                                                                                                +

                                                                                                                                                                                + comoros() + +

                                                                                                                                                                                + + + + + public + static comoros() : + + + + + +
                                                                                                                                                                                Return values
                                                                                                                                                                                + + — + + +
                                                                                                                                                                                +
                                                                                                                                                                                +

                                                                                                                                                                                + congo() + +

                                                                                                                                                                                + + + + + public + static congo() : + + + + + +
                                                                                                                                                                                Return values
                                                                                                                                                                                + + — + + +
                                                                                                                                                                                +
                                                                                                                                                                                +

                                                                                                                                                                                + congoTheDemocraticRepublicOfThe() + +

                                                                                                                                                                                + + + + + public + static congoTheDemocraticRepublicOfThe() : + + + + + +
                                                                                                                                                                                Return values
                                                                                                                                                                                + + — + + +
                                                                                                                                                                                +
                                                                                                                                                                                +

                                                                                                                                                                                + cookIslands() + +

                                                                                                                                                                                + + + + + public + static cookIslands() : + + + + + +
                                                                                                                                                                                Return values
                                                                                                                                                                                + + — + + +
                                                                                                                                                                                +
                                                                                                                                                                                +

                                                                                                                                                                                + costaRica() + +

                                                                                                                                                                                + + + + + public + static costaRica() : + + + + + +
                                                                                                                                                                                Return values
                                                                                                                                                                                + + — + + +
                                                                                                                                                                                +
                                                                                                                                                                                +

                                                                                                                                                                                + coteDivoire() + +

                                                                                                                                                                                + + + + + public + static coteDivoire() : + + + + + +
                                                                                                                                                                                Return values
                                                                                                                                                                                + + — + + +
                                                                                                                                                                                +
                                                                                                                                                                                +

                                                                                                                                                                                + croatia() + +

                                                                                                                                                                                + + + + + public + static croatia() : + + + + + +
                                                                                                                                                                                Return values
                                                                                                                                                                                + + — + + +
                                                                                                                                                                                +
                                                                                                                                                                                +

                                                                                                                                                                                + cuba() + +

                                                                                                                                                                                + + + + + public + static cuba() : + + + + + +
                                                                                                                                                                                Return values
                                                                                                                                                                                + + — + + +
                                                                                                                                                                                +
                                                                                                                                                                                +

                                                                                                                                                                                + curacao() + +

                                                                                                                                                                                + + + + + public + static curacao() : + + + + + +
                                                                                                                                                                                Return values
                                                                                                                                                                                + + — + + +
                                                                                                                                                                                +
                                                                                                                                                                                +

                                                                                                                                                                                + cyprus() + +

                                                                                                                                                                                + + + + + public + static cyprus() : + + + + + +
                                                                                                                                                                                Return values
                                                                                                                                                                                + + — + + +
                                                                                                                                                                                +
                                                                                                                                                                                +

                                                                                                                                                                                + czechRepublic() + +

                                                                                                                                                                                + + + + + public + static czechRepublic() : + + + + + +
                                                                                                                                                                                Return values
                                                                                                                                                                                + + — + + +
                                                                                                                                                                                +
                                                                                                                                                                                +

                                                                                                                                                                                + denmark() + +

                                                                                                                                                                                + + + + + public + static denmark() : + + + + + +
                                                                                                                                                                                Return values
                                                                                                                                                                                + + — + + +
                                                                                                                                                                                +
                                                                                                                                                                                +

                                                                                                                                                                                + djibouti() + +

                                                                                                                                                                                + + + + + public + static djibouti() : + + + + + +
                                                                                                                                                                                Return values
                                                                                                                                                                                + + — + + +
                                                                                                                                                                                +
                                                                                                                                                                                +

                                                                                                                                                                                + dominica() + +

                                                                                                                                                                                + + + + + public + static dominica() : + + + + + +
                                                                                                                                                                                Return values
                                                                                                                                                                                + + — + + +
                                                                                                                                                                                +
                                                                                                                                                                                +

                                                                                                                                                                                + dominicanRepublic() + +

                                                                                                                                                                                + + + + + public + static dominicanRepublic() : + + + + + +
                                                                                                                                                                                Return values
                                                                                                                                                                                + + — + + +
                                                                                                                                                                                +
                                                                                                                                                                                +

                                                                                                                                                                                + ecuador() + +

                                                                                                                                                                                + + + + + public + static ecuador() : + + + + + +
                                                                                                                                                                                Return values
                                                                                                                                                                                + + — + + +
                                                                                                                                                                                +
                                                                                                                                                                                +

                                                                                                                                                                                + egypt() + +

                                                                                                                                                                                + + + + + public + static egypt() : + + + + + +
                                                                                                                                                                                Return values
                                                                                                                                                                                + + — + + +
                                                                                                                                                                                +
                                                                                                                                                                                +

                                                                                                                                                                                + elSalvador() + +

                                                                                                                                                                                + + + + + public + static elSalvador() : + + + + + +
                                                                                                                                                                                Return values
                                                                                                                                                                                + + — + + +
                                                                                                                                                                                +
                                                                                                                                                                                +

                                                                                                                                                                                + equatorialGuinea() + +

                                                                                                                                                                                + + + + + public + static equatorialGuinea() : + + + + + +
                                                                                                                                                                                Return values
                                                                                                                                                                                + + — + + +
                                                                                                                                                                                +
                                                                                                                                                                                +

                                                                                                                                                                                + eritrea() + +

                                                                                                                                                                                + + + + + public + static eritrea() : + + + + + +
                                                                                                                                                                                Return values
                                                                                                                                                                                + + — + + +
                                                                                                                                                                                +
                                                                                                                                                                                +

                                                                                                                                                                                + estonia() + +

                                                                                                                                                                                + + + + + public + static estonia() : + + + + + +
                                                                                                                                                                                Return values
                                                                                                                                                                                + + — + + +
                                                                                                                                                                                +
                                                                                                                                                                                +

                                                                                                                                                                                + ethiopia() + +

                                                                                                                                                                                + + + + + public + static ethiopia() : + + + + + +
                                                                                                                                                                                Return values
                                                                                                                                                                                + + — + + +
                                                                                                                                                                                +
                                                                                                                                                                                +

                                                                                                                                                                                + falklandIslandsMalvinas() + +

                                                                                                                                                                                + + + + + public + static falklandIslandsMalvinas() : + + + + + +
                                                                                                                                                                                Return values
                                                                                                                                                                                + + — + + +
                                                                                                                                                                                +
                                                                                                                                                                                +

                                                                                                                                                                                + faroeIslands() + +

                                                                                                                                                                                + + + + + public + static faroeIslands() : + + + + + +
                                                                                                                                                                                Return values
                                                                                                                                                                                + + — + + +
                                                                                                                                                                                +
                                                                                                                                                                                +

                                                                                                                                                                                + fiji() + +

                                                                                                                                                                                + + + + + public + static fiji() : + + + + + +
                                                                                                                                                                                Return values
                                                                                                                                                                                + + — + + +
                                                                                                                                                                                +
                                                                                                                                                                                +

                                                                                                                                                                                + finland() + +

                                                                                                                                                                                + + + + + public + static finland() : + + + + + +
                                                                                                                                                                                Return values
                                                                                                                                                                                + + — + + +
                                                                                                                                                                                +
                                                                                                                                                                                +

                                                                                                                                                                                + france() + +

                                                                                                                                                                                + + + + + public + static france() : + + + + + +
                                                                                                                                                                                Return values
                                                                                                                                                                                + + — + + +
                                                                                                                                                                                +
                                                                                                                                                                                +

                                                                                                                                                                                + frenchGuiana() + +

                                                                                                                                                                                + + + + + public + static frenchGuiana() : + + + + + +
                                                                                                                                                                                Return values
                                                                                                                                                                                + + — + + +
                                                                                                                                                                                +
                                                                                                                                                                                +

                                                                                                                                                                                + frenchPolynesia() + +

                                                                                                                                                                                + + + + + public + static frenchPolynesia() : + + + + + +
                                                                                                                                                                                Return values
                                                                                                                                                                                + + — + + +
                                                                                                                                                                                +
                                                                                                                                                                                +

                                                                                                                                                                                + frenchSouthernTerritories() + +

                                                                                                                                                                                + + + + + public + static frenchSouthernTerritories() : + + + + + +
                                                                                                                                                                                Return values
                                                                                                                                                                                + + — + + +
                                                                                                                                                                                +
                                                                                                                                                                                +

                                                                                                                                                                                + gabon() + +

                                                                                                                                                                                + + + + + public + static gabon() : + + + + + +
                                                                                                                                                                                Return values
                                                                                                                                                                                + + — + + +
                                                                                                                                                                                +
                                                                                                                                                                                +

                                                                                                                                                                                + gambia() + +

                                                                                                                                                                                + + + + + public + static gambia() : + + + + + +
                                                                                                                                                                                Return values
                                                                                                                                                                                + + — + + +
                                                                                                                                                                                +
                                                                                                                                                                                +

                                                                                                                                                                                + georgia() + +

                                                                                                                                                                                + + + + + public + static georgia() : + + + + + +
                                                                                                                                                                                Return values
                                                                                                                                                                                + + — + + +
                                                                                                                                                                                +
                                                                                                                                                                                +

                                                                                                                                                                                + germany() + +

                                                                                                                                                                                + + + + + public + static germany() : + + + + + +
                                                                                                                                                                                Return values
                                                                                                                                                                                + + — + + +
                                                                                                                                                                                +
                                                                                                                                                                                +

                                                                                                                                                                                + ghana() + +

                                                                                                                                                                                + + + + + public + static ghana() : + + + + + +
                                                                                                                                                                                Return values
                                                                                                                                                                                + + — + + +
                                                                                                                                                                                +
                                                                                                                                                                                +

                                                                                                                                                                                + gibraltar() + +

                                                                                                                                                                                + + + + + public + static gibraltar() : + + + + + +
                                                                                                                                                                                Return values
                                                                                                                                                                                + + — + + +
                                                                                                                                                                                +
                                                                                                                                                                                +

                                                                                                                                                                                + greece() + +

                                                                                                                                                                                + + + + + public + static greece() : + + + + + +
                                                                                                                                                                                Return values
                                                                                                                                                                                + + — + + +
                                                                                                                                                                                +
                                                                                                                                                                                +

                                                                                                                                                                                + greenland() + +

                                                                                                                                                                                + + + + + public + static greenland() : + + + + + +
                                                                                                                                                                                Return values
                                                                                                                                                                                + + — + + +
                                                                                                                                                                                +
                                                                                                                                                                                +

                                                                                                                                                                                + grenada() + +

                                                                                                                                                                                + + + + + public + static grenada() : + + + + + +
                                                                                                                                                                                Return values
                                                                                                                                                                                + + — + + +
                                                                                                                                                                                +
                                                                                                                                                                                +

                                                                                                                                                                                + guadeloupe() + +

                                                                                                                                                                                + + + + + public + static guadeloupe() : + + + + + +
                                                                                                                                                                                Return values
                                                                                                                                                                                + + — + + +
                                                                                                                                                                                +
                                                                                                                                                                                +

                                                                                                                                                                                + guam() + +

                                                                                                                                                                                + + + + + public + static guam() : + + + + + +
                                                                                                                                                                                Return values
                                                                                                                                                                                + + — + + +
                                                                                                                                                                                +
                                                                                                                                                                                +

                                                                                                                                                                                + guatemala() + +

                                                                                                                                                                                + + + + + public + static guatemala() : + + + + + +
                                                                                                                                                                                Return values
                                                                                                                                                                                + + — + + +
                                                                                                                                                                                +
                                                                                                                                                                                +

                                                                                                                                                                                + guernsey() + +

                                                                                                                                                                                + + + + + public + static guernsey() : + + + + + +
                                                                                                                                                                                Return values
                                                                                                                                                                                + + — + + +
                                                                                                                                                                                +
                                                                                                                                                                                +

                                                                                                                                                                                + guinea() + +

                                                                                                                                                                                + + + + + public + static guinea() : + + + + + +
                                                                                                                                                                                Return values
                                                                                                                                                                                + + — + + +
                                                                                                                                                                                +
                                                                                                                                                                                +

                                                                                                                                                                                + guineaBissau() + +

                                                                                                                                                                                + + + + + public + static guineaBissau() : + + + + + +
                                                                                                                                                                                Return values
                                                                                                                                                                                + + — + + +
                                                                                                                                                                                +
                                                                                                                                                                                +

                                                                                                                                                                                + guyana() + +

                                                                                                                                                                                + + + + + public + static guyana() : + + + + + +
                                                                                                                                                                                Return values
                                                                                                                                                                                + + — + + +
                                                                                                                                                                                +
                                                                                                                                                                                +

                                                                                                                                                                                + haiti() + +

                                                                                                                                                                                + + + + + public + static haiti() : + + + + + +
                                                                                                                                                                                Return values
                                                                                                                                                                                + + — + + +
                                                                                                                                                                                +
                                                                                                                                                                                +

                                                                                                                                                                                + heardIslandAndMcdonaldIslands() + +

                                                                                                                                                                                + + + + + public + static heardIslandAndMcdonaldIslands() : + + + + + +
                                                                                                                                                                                Return values
                                                                                                                                                                                + + — + + +
                                                                                                                                                                                +
                                                                                                                                                                                +

                                                                                                                                                                                + holySeeVaticanCityState() + +

                                                                                                                                                                                + + + + + public + static holySeeVaticanCityState() : + + + + + +
                                                                                                                                                                                Return values
                                                                                                                                                                                + + — + + +
                                                                                                                                                                                +
                                                                                                                                                                                +

                                                                                                                                                                                + honduras() + +

                                                                                                                                                                                + + + + + public + static honduras() : + + + + + +
                                                                                                                                                                                Return values
                                                                                                                                                                                + + — + + +
                                                                                                                                                                                +
                                                                                                                                                                                +

                                                                                                                                                                                + hongKong() + +

                                                                                                                                                                                + + + + + public + static hongKong() : + + + + + +
                                                                                                                                                                                Return values
                                                                                                                                                                                + + — + + +
                                                                                                                                                                                +
                                                                                                                                                                                +

                                                                                                                                                                                + hungary() + +

                                                                                                                                                                                + + + + + public + static hungary() : + + + + + +
                                                                                                                                                                                Return values
                                                                                                                                                                                + + — + + +
                                                                                                                                                                                +
                                                                                                                                                                                +

                                                                                                                                                                                + iceland() + +

                                                                                                                                                                                + + + + + public + static iceland() : + + + + + +
                                                                                                                                                                                Return values
                                                                                                                                                                                + + — + + +
                                                                                                                                                                                +
                                                                                                                                                                                +

                                                                                                                                                                                + india() + +

                                                                                                                                                                                + + + + + public + static india() : + + + + + +
                                                                                                                                                                                Return values
                                                                                                                                                                                + + — + + +
                                                                                                                                                                                +
                                                                                                                                                                                +

                                                                                                                                                                                + indonesia() + +

                                                                                                                                                                                + + + + + public + static indonesia() : + + + + + +
                                                                                                                                                                                Return values
                                                                                                                                                                                + + — + + +
                                                                                                                                                                                +
                                                                                                                                                                                +

                                                                                                                                                                                + iranIslamicRepublicOf() + +

                                                                                                                                                                                + + + + + public + static iranIslamicRepublicOf() : + + + + + +
                                                                                                                                                                                Return values
                                                                                                                                                                                + + — + + +
                                                                                                                                                                                +
                                                                                                                                                                                +

                                                                                                                                                                                + iraq() + +

                                                                                                                                                                                + + + + + public + static iraq() : + + + + + +
                                                                                                                                                                                Return values
                                                                                                                                                                                + + — + + +
                                                                                                                                                                                +
                                                                                                                                                                                +

                                                                                                                                                                                + ireland() + +

                                                                                                                                                                                + + + + + public + static ireland() : + + + + + +
                                                                                                                                                                                Return values
                                                                                                                                                                                + + — + + +
                                                                                                                                                                                +
                                                                                                                                                                                +

                                                                                                                                                                                + isleOfMan() + +

                                                                                                                                                                                + + + + + public + static isleOfMan() : + + + + + +
                                                                                                                                                                                Return values
                                                                                                                                                                                + + — + + +
                                                                                                                                                                                +
                                                                                                                                                                                +

                                                                                                                                                                                + israel() + +

                                                                                                                                                                                + + + + + public + static israel() : + + + + + +
                                                                                                                                                                                Return values
                                                                                                                                                                                + + — + + +
                                                                                                                                                                                +
                                                                                                                                                                                +

                                                                                                                                                                                + italy() + +

                                                                                                                                                                                + + + + + public + static italy() : + + + + + +
                                                                                                                                                                                Return values
                                                                                                                                                                                + + — + + +
                                                                                                                                                                                +
                                                                                                                                                                                +

                                                                                                                                                                                + jamaica() + +

                                                                                                                                                                                + + + + + public + static jamaica() : + + + + + +
                                                                                                                                                                                Return values
                                                                                                                                                                                + + — + + +
                                                                                                                                                                                +
                                                                                                                                                                                +

                                                                                                                                                                                + japan() + +

                                                                                                                                                                                + + + + + public + static japan() : + + + + + +
                                                                                                                                                                                Return values
                                                                                                                                                                                + + — + + +
                                                                                                                                                                                +
                                                                                                                                                                                +

                                                                                                                                                                                + jersey() + +

                                                                                                                                                                                + + + + + public + static jersey() : + + + + + +
                                                                                                                                                                                Return values
                                                                                                                                                                                + + — + + +
                                                                                                                                                                                +
                                                                                                                                                                                +

                                                                                                                                                                                + jordan() + +

                                                                                                                                                                                + + + + + public + static jordan() : + + + + + +
                                                                                                                                                                                Return values
                                                                                                                                                                                + + — + + +
                                                                                                                                                                                +
                                                                                                                                                                                +

                                                                                                                                                                                + kazakhstan() + +

                                                                                                                                                                                + + + + + public + static kazakhstan() : + + + + + +
                                                                                                                                                                                Return values
                                                                                                                                                                                + + — + + +
                                                                                                                                                                                +
                                                                                                                                                                                +

                                                                                                                                                                                + kenya() + +

                                                                                                                                                                                + + + + + public + static kenya() : + + + + + +
                                                                                                                                                                                Return values
                                                                                                                                                                                + + — + + +
                                                                                                                                                                                +
                                                                                                                                                                                +

                                                                                                                                                                                + kiribati() + +

                                                                                                                                                                                + + + + + public + static kiribati() : + + + + + +
                                                                                                                                                                                Return values
                                                                                                                                                                                + + — + + +
                                                                                                                                                                                +
                                                                                                                                                                                +

                                                                                                                                                                                + koreaDemocraticPeoplesRepublicOf() + +

                                                                                                                                                                                + + + + + public + static koreaDemocraticPeoplesRepublicOf() : + + + + + +
                                                                                                                                                                                Return values
                                                                                                                                                                                + + — + + +
                                                                                                                                                                                +
                                                                                                                                                                                +

                                                                                                                                                                                + koreaRepublicOf() + +

                                                                                                                                                                                + + + + + public + static koreaRepublicOf() : + + + + + +
                                                                                                                                                                                Return values
                                                                                                                                                                                + + — + + +
                                                                                                                                                                                +
                                                                                                                                                                                +

                                                                                                                                                                                + kuwait() + +

                                                                                                                                                                                + + + + + public + static kuwait() : + + + + + +
                                                                                                                                                                                Return values
                                                                                                                                                                                + + — + + +
                                                                                                                                                                                +
                                                                                                                                                                                +

                                                                                                                                                                                + kyrgyzstan() + +

                                                                                                                                                                                + + + + + public + static kyrgyzstan() : + + + + + +
                                                                                                                                                                                Return values
                                                                                                                                                                                + + — + + +
                                                                                                                                                                                +
                                                                                                                                                                                +

                                                                                                                                                                                + labels() + +

                                                                                                                                                                                + + +

                                                                                                                                                                                Libellés des possibilités de cet énumération (label)

                                                                                                                                                                                + + + public + static labels() : array<string|int, mixed> + + + + + +
                                                                                                                                                                                Return values
                                                                                                                                                                                + array<string|int, mixed> + — + + +
                                                                                                                                                                                +
                                                                                                                                                                                +

                                                                                                                                                                                + laoPeoplesDemocraticRepublic() + +

                                                                                                                                                                                + + + + + public + static laoPeoplesDemocraticRepublic() : + + + + + +
                                                                                                                                                                                Return values
                                                                                                                                                                                + + — + + +
                                                                                                                                                                                +
                                                                                                                                                                                +

                                                                                                                                                                                + latvia() + +

                                                                                                                                                                                + + + + + public + static latvia() : + + + + + +
                                                                                                                                                                                Return values
                                                                                                                                                                                + + — + + +
                                                                                                                                                                                +
                                                                                                                                                                                +

                                                                                                                                                                                + lebanon() + +

                                                                                                                                                                                + + + + + public + static lebanon() : + + + + + +
                                                                                                                                                                                Return values
                                                                                                                                                                                + + — + + +
                                                                                                                                                                                +
                                                                                                                                                                                +

                                                                                                                                                                                + lesotho() + +

                                                                                                                                                                                + + + + + public + static lesotho() : + + + + + +
                                                                                                                                                                                Return values
                                                                                                                                                                                + + — + + +
                                                                                                                                                                                +
                                                                                                                                                                                +

                                                                                                                                                                                + liberia() + +

                                                                                                                                                                                + + + + + public + static liberia() : + + + + + +
                                                                                                                                                                                Return values
                                                                                                                                                                                + + — + + +
                                                                                                                                                                                +
                                                                                                                                                                                +

                                                                                                                                                                                + libya() + +

                                                                                                                                                                                + + + + + public + static libya() : + + + + + +
                                                                                                                                                                                Return values
                                                                                                                                                                                + + — + + +
                                                                                                                                                                                +
                                                                                                                                                                                +

                                                                                                                                                                                + liechtenstein() + +

                                                                                                                                                                                + + + + + public + static liechtenstein() : + + + + + +
                                                                                                                                                                                Return values
                                                                                                                                                                                + + — + + +
                                                                                                                                                                                +
                                                                                                                                                                                +

                                                                                                                                                                                + lithuania() + +

                                                                                                                                                                                + + + + + public + static lithuania() : + + + + + +
                                                                                                                                                                                Return values
                                                                                                                                                                                + + — + + +
                                                                                                                                                                                +
                                                                                                                                                                                +

                                                                                                                                                                                + luxembourg() + +

                                                                                                                                                                                + + + + + public + static luxembourg() : + + + + + +
                                                                                                                                                                                Return values
                                                                                                                                                                                + + — + + +
                                                                                                                                                                                +
                                                                                                                                                                                +

                                                                                                                                                                                + macao() + +

                                                                                                                                                                                + + + + + public + static macao() : + + + + + +
                                                                                                                                                                                Return values
                                                                                                                                                                                + + — + + +
                                                                                                                                                                                +
                                                                                                                                                                                +

                                                                                                                                                                                + macedoniaTheFormerYugoslavRepublicOf() + +

                                                                                                                                                                                + + + + + public + static macedoniaTheFormerYugoslavRepublicOf() : + + + + + +
                                                                                                                                                                                Return values
                                                                                                                                                                                + + — + + +
                                                                                                                                                                                +
                                                                                                                                                                                +

                                                                                                                                                                                + madagascar() + +

                                                                                                                                                                                + + + + + public + static madagascar() : + + + + + +
                                                                                                                                                                                Return values
                                                                                                                                                                                + + — + + +
                                                                                                                                                                                +
                                                                                                                                                                                +

                                                                                                                                                                                + malawi() + +

                                                                                                                                                                                + + + + + public + static malawi() : + + + + + +
                                                                                                                                                                                Return values
                                                                                                                                                                                + + — + + +
                                                                                                                                                                                +
                                                                                                                                                                                +

                                                                                                                                                                                + malaysia() + +

                                                                                                                                                                                + + + + + public + static malaysia() : + + + + + +
                                                                                                                                                                                Return values
                                                                                                                                                                                + + — + + +
                                                                                                                                                                                +
                                                                                                                                                                                +

                                                                                                                                                                                + maldives() + +

                                                                                                                                                                                + + + + + public + static maldives() : + + + + + +
                                                                                                                                                                                Return values
                                                                                                                                                                                + + — + + +
                                                                                                                                                                                +
                                                                                                                                                                                +

                                                                                                                                                                                + mali() + +

                                                                                                                                                                                + + + + + public + static mali() : + + + + + +
                                                                                                                                                                                Return values
                                                                                                                                                                                + + — + + +
                                                                                                                                                                                +
                                                                                                                                                                                +

                                                                                                                                                                                + malta() + +

                                                                                                                                                                                + + + + + public + static malta() : + + + + + +
                                                                                                                                                                                Return values
                                                                                                                                                                                + + — + + +
                                                                                                                                                                                +
                                                                                                                                                                                +

                                                                                                                                                                                + marshallIslands() + +

                                                                                                                                                                                + + + + + public + static marshallIslands() : + + + + + +
                                                                                                                                                                                Return values
                                                                                                                                                                                + + — + + +
                                                                                                                                                                                +
                                                                                                                                                                                +

                                                                                                                                                                                + martinique() + +

                                                                                                                                                                                + + + + + public + static martinique() : + + + + + +
                                                                                                                                                                                Return values
                                                                                                                                                                                + + — + + +
                                                                                                                                                                                +
                                                                                                                                                                                +

                                                                                                                                                                                + mauritania() + +

                                                                                                                                                                                + + + + + public + static mauritania() : + + + + + +
                                                                                                                                                                                Return values
                                                                                                                                                                                + + — + + +
                                                                                                                                                                                +
                                                                                                                                                                                +

                                                                                                                                                                                + mauritius() + +

                                                                                                                                                                                + + + + + public + static mauritius() : + + + + + +
                                                                                                                                                                                Return values
                                                                                                                                                                                + + — + + +
                                                                                                                                                                                +
                                                                                                                                                                                +

                                                                                                                                                                                + mayotte() + +

                                                                                                                                                                                + + + + + public + static mayotte() : + + + + + +
                                                                                                                                                                                Return values
                                                                                                                                                                                + + — + + +
                                                                                                                                                                                +
                                                                                                                                                                                +

                                                                                                                                                                                + mexico() + +

                                                                                                                                                                                + + + + + public + static mexico() : + + + + + +
                                                                                                                                                                                Return values
                                                                                                                                                                                + + — + + +
                                                                                                                                                                                +
                                                                                                                                                                                +

                                                                                                                                                                                + micronesiaFederatedStatesOf() + +

                                                                                                                                                                                + + + + + public + static micronesiaFederatedStatesOf() : + + + + + +
                                                                                                                                                                                Return values
                                                                                                                                                                                + + — + + +
                                                                                                                                                                                +
                                                                                                                                                                                +

                                                                                                                                                                                + moldovaRepublicOf() + +

                                                                                                                                                                                + + + + + public + static moldovaRepublicOf() : + + + + + +
                                                                                                                                                                                Return values
                                                                                                                                                                                + + — + + +
                                                                                                                                                                                +
                                                                                                                                                                                +

                                                                                                                                                                                + monaco() + +

                                                                                                                                                                                + + + + + public + static monaco() : + + + + + +
                                                                                                                                                                                Return values
                                                                                                                                                                                + + — + + +
                                                                                                                                                                                +
                                                                                                                                                                                +

                                                                                                                                                                                + mongolia() + +

                                                                                                                                                                                + + + + + public + static mongolia() : + + + + + +
                                                                                                                                                                                Return values
                                                                                                                                                                                + + — + + +
                                                                                                                                                                                +
                                                                                                                                                                                +

                                                                                                                                                                                + montenegro() + +

                                                                                                                                                                                + + + + + public + static montenegro() : + + + + + +
                                                                                                                                                                                Return values
                                                                                                                                                                                + + — + + +
                                                                                                                                                                                +
                                                                                                                                                                                +

                                                                                                                                                                                + montserrat() + +

                                                                                                                                                                                + + + + + public + static montserrat() : + + + + + +
                                                                                                                                                                                Return values
                                                                                                                                                                                + + — + + +
                                                                                                                                                                                +
                                                                                                                                                                                +

                                                                                                                                                                                + morocco() + +

                                                                                                                                                                                + + + + + public + static morocco() : + + + + + +
                                                                                                                                                                                Return values
                                                                                                                                                                                + + — + + +
                                                                                                                                                                                +
                                                                                                                                                                                +

                                                                                                                                                                                + mozambique() + +

                                                                                                                                                                                + + + + + public + static mozambique() : + + + + + +
                                                                                                                                                                                Return values
                                                                                                                                                                                + + — + + +
                                                                                                                                                                                +
                                                                                                                                                                                +

                                                                                                                                                                                + myanmar() + +

                                                                                                                                                                                + + + + + public + static myanmar() : + + + + + +
                                                                                                                                                                                Return values
                                                                                                                                                                                + + — + + +
                                                                                                                                                                                +
                                                                                                                                                                                +

                                                                                                                                                                                + namibia() + +

                                                                                                                                                                                + + + + + public + static namibia() : + + + + + +
                                                                                                                                                                                Return values
                                                                                                                                                                                + + — + + +
                                                                                                                                                                                +
                                                                                                                                                                                +

                                                                                                                                                                                + nauru() + +

                                                                                                                                                                                + + + + + public + static nauru() : + + + + + +
                                                                                                                                                                                Return values
                                                                                                                                                                                + + — + + +
                                                                                                                                                                                +
                                                                                                                                                                                +

                                                                                                                                                                                + nepal() + +

                                                                                                                                                                                + + + + + public + static nepal() : + + + + + +
                                                                                                                                                                                Return values
                                                                                                                                                                                + + — + + +
                                                                                                                                                                                +
                                                                                                                                                                                +

                                                                                                                                                                                + netherlands() + +

                                                                                                                                                                                + + + + + public + static netherlands() : + + + + + +
                                                                                                                                                                                Return values
                                                                                                                                                                                + + — + + +
                                                                                                                                                                                +
                                                                                                                                                                                +

                                                                                                                                                                                + newCaledonia() + +

                                                                                                                                                                                + + + + + public + static newCaledonia() : + + + + + +
                                                                                                                                                                                Return values
                                                                                                                                                                                + + — + + +
                                                                                                                                                                                +
                                                                                                                                                                                +

                                                                                                                                                                                + newZealand() + +

                                                                                                                                                                                + + + + + public + static newZealand() : + + + + + +
                                                                                                                                                                                Return values
                                                                                                                                                                                + + — + + +
                                                                                                                                                                                +
                                                                                                                                                                                +

                                                                                                                                                                                + nicaragua() + +

                                                                                                                                                                                + + + + + public + static nicaragua() : + + + + + +
                                                                                                                                                                                Return values
                                                                                                                                                                                + + — + + +
                                                                                                                                                                                +
                                                                                                                                                                                +

                                                                                                                                                                                + niger() + +

                                                                                                                                                                                + + + + + public + static niger() : + + + + + +
                                                                                                                                                                                Return values
                                                                                                                                                                                + + — + + +
                                                                                                                                                                                +
                                                                                                                                                                                +

                                                                                                                                                                                + nigeria() + +

                                                                                                                                                                                + + + + + public + static nigeria() : + + + + + +
                                                                                                                                                                                Return values
                                                                                                                                                                                + + — + + +
                                                                                                                                                                                +
                                                                                                                                                                                +

                                                                                                                                                                                + niue() + +

                                                                                                                                                                                + + + + + public + static niue() : + + + + + +
                                                                                                                                                                                Return values
                                                                                                                                                                                + + — + + +
                                                                                                                                                                                +
                                                                                                                                                                                +

                                                                                                                                                                                + norfolkIsland() + +

                                                                                                                                                                                + + + + + public + static norfolkIsland() : + + + + + +
                                                                                                                                                                                Return values
                                                                                                                                                                                + + — + + +
                                                                                                                                                                                +
                                                                                                                                                                                +

                                                                                                                                                                                + northernMarianaIslands() + +

                                                                                                                                                                                + + + + + public + static northernMarianaIslands() : + + + + + +
                                                                                                                                                                                Return values
                                                                                                                                                                                + + — + + +
                                                                                                                                                                                +
                                                                                                                                                                                +

                                                                                                                                                                                + norway() + +

                                                                                                                                                                                + + + + + public + static norway() : + + + + + +
                                                                                                                                                                                Return values
                                                                                                                                                                                + + — + + +
                                                                                                                                                                                +
                                                                                                                                                                                +

                                                                                                                                                                                + oman() + +

                                                                                                                                                                                + + + + + public + static oman() : + + + + + +
                                                                                                                                                                                Return values
                                                                                                                                                                                + + — + + +
                                                                                                                                                                                +
                                                                                                                                                                                +

                                                                                                                                                                                + pakistan() + +

                                                                                                                                                                                + + + + + public + static pakistan() : + + + + + +
                                                                                                                                                                                Return values
                                                                                                                                                                                + + — + + +
                                                                                                                                                                                +
                                                                                                                                                                                +

                                                                                                                                                                                + palau() + +

                                                                                                                                                                                + + + + + public + static palau() : + + + + + +
                                                                                                                                                                                Return values
                                                                                                                                                                                + + — + + +
                                                                                                                                                                                +
                                                                                                                                                                                +

                                                                                                                                                                                + palestineStateOf() + +

                                                                                                                                                                                + + + + + public + static palestineStateOf() : + + + + + +
                                                                                                                                                                                Return values
                                                                                                                                                                                + + — + + +
                                                                                                                                                                                +
                                                                                                                                                                                +

                                                                                                                                                                                + panama() + +

                                                                                                                                                                                + + + + + public + static panama() : + + + + + +
                                                                                                                                                                                Return values
                                                                                                                                                                                + + — + + +
                                                                                                                                                                                +
                                                                                                                                                                                +

                                                                                                                                                                                + papuaNewGuinea() + +

                                                                                                                                                                                + + + + + public + static papuaNewGuinea() : + + + + + +
                                                                                                                                                                                Return values
                                                                                                                                                                                + + — + + +
                                                                                                                                                                                +
                                                                                                                                                                                +

                                                                                                                                                                                + paraguay() + +

                                                                                                                                                                                + + + + + public + static paraguay() : + + + + + +
                                                                                                                                                                                Return values
                                                                                                                                                                                + + — + + +
                                                                                                                                                                                +
                                                                                                                                                                                +

                                                                                                                                                                                + peru() + +

                                                                                                                                                                                + + + + + public + static peru() : + + + + + +
                                                                                                                                                                                Return values
                                                                                                                                                                                + + — + + +
                                                                                                                                                                                +
                                                                                                                                                                                +

                                                                                                                                                                                + philippines() + +

                                                                                                                                                                                + + + + + public + static philippines() : + + + + + +
                                                                                                                                                                                Return values
                                                                                                                                                                                + + — + + +
                                                                                                                                                                                +
                                                                                                                                                                                +

                                                                                                                                                                                + pitcairn() + +

                                                                                                                                                                                + + + + + public + static pitcairn() : + + + + + +
                                                                                                                                                                                Return values
                                                                                                                                                                                + + — + + +
                                                                                                                                                                                +
                                                                                                                                                                                +

                                                                                                                                                                                + poland() + +

                                                                                                                                                                                + + + + + public + static poland() : + + + + + +
                                                                                                                                                                                Return values
                                                                                                                                                                                + + — + + +
                                                                                                                                                                                +
                                                                                                                                                                                +

                                                                                                                                                                                + portugal() + +

                                                                                                                                                                                + + + + + public + static portugal() : + + + + + +
                                                                                                                                                                                Return values
                                                                                                                                                                                + + — + + +
                                                                                                                                                                                +
                                                                                                                                                                                +

                                                                                                                                                                                + puertoRico() + +

                                                                                                                                                                                + + + + + public + static puertoRico() : + + + + + +
                                                                                                                                                                                Return values
                                                                                                                                                                                + + — + + +
                                                                                                                                                                                +
                                                                                                                                                                                +

                                                                                                                                                                                + qatar() + +

                                                                                                                                                                                + + + + + public + static qatar() : + + + + + +
                                                                                                                                                                                Return values
                                                                                                                                                                                + + — + + +
                                                                                                                                                                                +
                                                                                                                                                                                +

                                                                                                                                                                                + reunion() + +

                                                                                                                                                                                + + + + + public + static reunion() : + + + + + +
                                                                                                                                                                                Return values
                                                                                                                                                                                + + — + + +
                                                                                                                                                                                +
                                                                                                                                                                                +

                                                                                                                                                                                + romania() + +

                                                                                                                                                                                + + + + + public + static romania() : + + + + + +
                                                                                                                                                                                Return values
                                                                                                                                                                                + + — + + +
                                                                                                                                                                                +
                                                                                                                                                                                +

                                                                                                                                                                                + russianFederation() + +

                                                                                                                                                                                + + + + + public + static russianFederation() : + + + + + +
                                                                                                                                                                                Return values
                                                                                                                                                                                + + — + + +
                                                                                                                                                                                +
                                                                                                                                                                                +

                                                                                                                                                                                + rwanda() + +

                                                                                                                                                                                + + + + + public + static rwanda() : + + + + + +
                                                                                                                                                                                Return values
                                                                                                                                                                                + + — + + +
                                                                                                                                                                                +
                                                                                                                                                                                +

                                                                                                                                                                                + saintBarthelemy() + +

                                                                                                                                                                                + + + + + public + static saintBarthelemy() : + + + + + +
                                                                                                                                                                                Return values
                                                                                                                                                                                + + — + + +
                                                                                                                                                                                +
                                                                                                                                                                                +

                                                                                                                                                                                + saintHelenaAscensionAndTristanDaCunha() + +

                                                                                                                                                                                + + + + + public + static saintHelenaAscensionAndTristanDaCunha() : + + + + + +
                                                                                                                                                                                Return values
                                                                                                                                                                                + + — + + +
                                                                                                                                                                                +
                                                                                                                                                                                +

                                                                                                                                                                                + saintKittsAndNevis() + +

                                                                                                                                                                                + + + + + public + static saintKittsAndNevis() : + + + + + +
                                                                                                                                                                                Return values
                                                                                                                                                                                + + — + + +
                                                                                                                                                                                +
                                                                                                                                                                                +

                                                                                                                                                                                + saintLucia() + +

                                                                                                                                                                                + + + + + public + static saintLucia() : + + + + + +
                                                                                                                                                                                Return values
                                                                                                                                                                                + + — + + +
                                                                                                                                                                                +
                                                                                                                                                                                +

                                                                                                                                                                                + saintMartinFrenchPart() + +

                                                                                                                                                                                + + + + + public + static saintMartinFrenchPart() : + + + + + +
                                                                                                                                                                                Return values
                                                                                                                                                                                + + — + + +
                                                                                                                                                                                +
                                                                                                                                                                                +

                                                                                                                                                                                + saintPierreAndMiquelon() + +

                                                                                                                                                                                + + + + + public + static saintPierreAndMiquelon() : + + + + + +
                                                                                                                                                                                Return values
                                                                                                                                                                                + + — + + +
                                                                                                                                                                                +
                                                                                                                                                                                +

                                                                                                                                                                                + saintVincentAndTheGrenadines() + +

                                                                                                                                                                                + + + + + public + static saintVincentAndTheGrenadines() : + + + + + +
                                                                                                                                                                                Return values
                                                                                                                                                                                + + — + + +
                                                                                                                                                                                +
                                                                                                                                                                                +

                                                                                                                                                                                + samoa() + +

                                                                                                                                                                                + + + + + public + static samoa() : + + + + + +
                                                                                                                                                                                Return values
                                                                                                                                                                                + + — + + +
                                                                                                                                                                                +
                                                                                                                                                                                +

                                                                                                                                                                                + sanMarino() + +

                                                                                                                                                                                + + + + + public + static sanMarino() : + + + + + +
                                                                                                                                                                                Return values
                                                                                                                                                                                + + — + + +
                                                                                                                                                                                +
                                                                                                                                                                                +

                                                                                                                                                                                + saoTomeAndPrincipe() + +

                                                                                                                                                                                + + + + + public + static saoTomeAndPrincipe() : + + + + + +
                                                                                                                                                                                Return values
                                                                                                                                                                                + + — + + +
                                                                                                                                                                                +
                                                                                                                                                                                +

                                                                                                                                                                                + saudiArabia() + +

                                                                                                                                                                                + + + + + public + static saudiArabia() : + + + + + +
                                                                                                                                                                                Return values
                                                                                                                                                                                + + — + + +
                                                                                                                                                                                +
                                                                                                                                                                                +

                                                                                                                                                                                + senegal() + +

                                                                                                                                                                                + + + + + public + static senegal() : + + + + + +
                                                                                                                                                                                Return values
                                                                                                                                                                                + + — + + +
                                                                                                                                                                                +
                                                                                                                                                                                +

                                                                                                                                                                                + serbia() + +

                                                                                                                                                                                + + + + + public + static serbia() : + + + + + +
                                                                                                                                                                                Return values
                                                                                                                                                                                + + — + + +
                                                                                                                                                                                +
                                                                                                                                                                                +

                                                                                                                                                                                + seychelles() + +

                                                                                                                                                                                + + + + + public + static seychelles() : + + + + + +
                                                                                                                                                                                Return values
                                                                                                                                                                                + + — + + +
                                                                                                                                                                                +
                                                                                                                                                                                +

                                                                                                                                                                                + sierraLeone() + +

                                                                                                                                                                                + + + + + public + static sierraLeone() : + + + + + +
                                                                                                                                                                                Return values
                                                                                                                                                                                + + — + + +
                                                                                                                                                                                +
                                                                                                                                                                                +

                                                                                                                                                                                + singapore() + +

                                                                                                                                                                                + + + + + public + static singapore() : + + + + + +
                                                                                                                                                                                Return values
                                                                                                                                                                                + + — + + +
                                                                                                                                                                                +
                                                                                                                                                                                +

                                                                                                                                                                                + sintMaartenDutchPart() + +

                                                                                                                                                                                + + + + + public + static sintMaartenDutchPart() : + + + + + +
                                                                                                                                                                                Return values
                                                                                                                                                                                + + — + + +
                                                                                                                                                                                +
                                                                                                                                                                                +

                                                                                                                                                                                + slovakia() + +

                                                                                                                                                                                + + + + + public + static slovakia() : + + + + + +
                                                                                                                                                                                Return values
                                                                                                                                                                                + + — + + +
                                                                                                                                                                                +
                                                                                                                                                                                +

                                                                                                                                                                                + slovenia() + +

                                                                                                                                                                                + + + + + public + static slovenia() : + + + + + +
                                                                                                                                                                                Return values
                                                                                                                                                                                + + — + + +
                                                                                                                                                                                +
                                                                                                                                                                                +

                                                                                                                                                                                + solomonIslands() + +

                                                                                                                                                                                + + + + + public + static solomonIslands() : + + + + + +
                                                                                                                                                                                Return values
                                                                                                                                                                                + + — + + +
                                                                                                                                                                                +
                                                                                                                                                                                +

                                                                                                                                                                                + somalia() + +

                                                                                                                                                                                + + + + + public + static somalia() : + + + + + +
                                                                                                                                                                                Return values
                                                                                                                                                                                + + — + + +
                                                                                                                                                                                +
                                                                                                                                                                                +

                                                                                                                                                                                + southAfrica() + +

                                                                                                                                                                                + + + + + public + static southAfrica() : + + + + + +
                                                                                                                                                                                Return values
                                                                                                                                                                                + + — + + +
                                                                                                                                                                                +
                                                                                                                                                                                +

                                                                                                                                                                                + southGeorgiaAndTheSouthSandwichIslands() + +

                                                                                                                                                                                + + + + + public + static southGeorgiaAndTheSouthSandwichIslands() : + + + + + +
                                                                                                                                                                                Return values
                                                                                                                                                                                + + — + + +
                                                                                                                                                                                +
                                                                                                                                                                                +

                                                                                                                                                                                + southSudan() + +

                                                                                                                                                                                + + + + + public + static southSudan() : + + + + + +
                                                                                                                                                                                Return values
                                                                                                                                                                                + + — + + +
                                                                                                                                                                                +
                                                                                                                                                                                +

                                                                                                                                                                                + spain() + +

                                                                                                                                                                                + + + + + public + static spain() : + + + + + +
                                                                                                                                                                                Return values
                                                                                                                                                                                + + — + + +
                                                                                                                                                                                +
                                                                                                                                                                                +

                                                                                                                                                                                + sriLanka() + +

                                                                                                                                                                                + + + + + public + static sriLanka() : + + + + + +
                                                                                                                                                                                Return values
                                                                                                                                                                                + + — + + +
                                                                                                                                                                                +
                                                                                                                                                                                +

                                                                                                                                                                                + sudan() + +

                                                                                                                                                                                + + + + + public + static sudan() : + + + + + +
                                                                                                                                                                                Return values
                                                                                                                                                                                + + — + + +
                                                                                                                                                                                +
                                                                                                                                                                                +

                                                                                                                                                                                + suriname() + +

                                                                                                                                                                                + + + + + public + static suriname() : + + + + + +
                                                                                                                                                                                Return values
                                                                                                                                                                                + + — + + +
                                                                                                                                                                                +
                                                                                                                                                                                +

                                                                                                                                                                                + svalbardAndJanMayen() + +

                                                                                                                                                                                + + + + + public + static svalbardAndJanMayen() : + + + + + +
                                                                                                                                                                                Return values
                                                                                                                                                                                + + — + + +
                                                                                                                                                                                +
                                                                                                                                                                                +

                                                                                                                                                                                + swaziland() + +

                                                                                                                                                                                + + + + + public + static swaziland() : + + + + + +
                                                                                                                                                                                Return values
                                                                                                                                                                                + + — + + +
                                                                                                                                                                                +
                                                                                                                                                                                +

                                                                                                                                                                                + sweden() + +

                                                                                                                                                                                + + + + + public + static sweden() : + + + + + +
                                                                                                                                                                                Return values
                                                                                                                                                                                + + — + + +
                                                                                                                                                                                +
                                                                                                                                                                                +

                                                                                                                                                                                + switzerland() + +

                                                                                                                                                                                + + + + + public + static switzerland() : + + + + + +
                                                                                                                                                                                Return values
                                                                                                                                                                                + + — + + +
                                                                                                                                                                                +
                                                                                                                                                                                +

                                                                                                                                                                                + syrianArabRepublic() + +

                                                                                                                                                                                + + + + + public + static syrianArabRepublic() : + + + + + +
                                                                                                                                                                                Return values
                                                                                                                                                                                + + — + + +
                                                                                                                                                                                +
                                                                                                                                                                                +

                                                                                                                                                                                + taiwanProvinceOfChina() + +

                                                                                                                                                                                + + + + + public + static taiwanProvinceOfChina() : + + + + + +
                                                                                                                                                                                Return values
                                                                                                                                                                                + + — + + +
                                                                                                                                                                                +
                                                                                                                                                                                +

                                                                                                                                                                                + tajikistan() + +

                                                                                                                                                                                + + + + + public + static tajikistan() : + + + + + +
                                                                                                                                                                                Return values
                                                                                                                                                                                + + — + + +
                                                                                                                                                                                +
                                                                                                                                                                                +

                                                                                                                                                                                + tanzaniaUnitedRepublicOf() + +

                                                                                                                                                                                + + + + + public + static tanzaniaUnitedRepublicOf() : + + + + + +
                                                                                                                                                                                Return values
                                                                                                                                                                                + + — + + +
                                                                                                                                                                                +
                                                                                                                                                                                +

                                                                                                                                                                                + thailand() + +

                                                                                                                                                                                + + + + + public + static thailand() : + + + + + +
                                                                                                                                                                                Return values
                                                                                                                                                                                + + — + + +
                                                                                                                                                                                +
                                                                                                                                                                                +

                                                                                                                                                                                + timorLeste() + +

                                                                                                                                                                                + + + + + public + static timorLeste() : + + + + + +
                                                                                                                                                                                Return values
                                                                                                                                                                                + + — + + +
                                                                                                                                                                                +
                                                                                                                                                                                +

                                                                                                                                                                                + togo() + +

                                                                                                                                                                                + + + + + public + static togo() : + + + + + +
                                                                                                                                                                                Return values
                                                                                                                                                                                + + — + + +
                                                                                                                                                                                +
                                                                                                                                                                                +

                                                                                                                                                                                + tokelau() + +

                                                                                                                                                                                + + + + + public + static tokelau() : + + + + + +
                                                                                                                                                                                Return values
                                                                                                                                                                                + + — + + +
                                                                                                                                                                                +
                                                                                                                                                                                +

                                                                                                                                                                                + tonga() + +

                                                                                                                                                                                + + + + + public + static tonga() : + + + + + +
                                                                                                                                                                                Return values
                                                                                                                                                                                + + — + + +
                                                                                                                                                                                +
                                                                                                                                                                                +

                                                                                                                                                                                + trinidadAndTobago() + +

                                                                                                                                                                                + + + + + public + static trinidadAndTobago() : + + + + + +
                                                                                                                                                                                Return values
                                                                                                                                                                                + + — + + +
                                                                                                                                                                                +
                                                                                                                                                                                +

                                                                                                                                                                                + tunisia() + +

                                                                                                                                                                                + + + + + public + static tunisia() : + + + + + +
                                                                                                                                                                                Return values
                                                                                                                                                                                + + — + + +
                                                                                                                                                                                +
                                                                                                                                                                                +

                                                                                                                                                                                + turkey() + +

                                                                                                                                                                                + + + + + public + static turkey() : + + + + + +
                                                                                                                                                                                Return values
                                                                                                                                                                                + + — + + +
                                                                                                                                                                                +
                                                                                                                                                                                +

                                                                                                                                                                                + turkmenistan() + +

                                                                                                                                                                                + + + + + public + static turkmenistan() : + + + + + +
                                                                                                                                                                                Return values
                                                                                                                                                                                + + — + + +
                                                                                                                                                                                +
                                                                                                                                                                                +

                                                                                                                                                                                + turksAndCaicosIslands() + +

                                                                                                                                                                                + + + + + public + static turksAndCaicosIslands() : + + + + + +
                                                                                                                                                                                Return values
                                                                                                                                                                                + + — + + +
                                                                                                                                                                                +
                                                                                                                                                                                +

                                                                                                                                                                                + tuvalu() + +

                                                                                                                                                                                + + + + + public + static tuvalu() : + + + + + +
                                                                                                                                                                                Return values
                                                                                                                                                                                + + — + + +
                                                                                                                                                                                +
                                                                                                                                                                                +

                                                                                                                                                                                + uganda() + +

                                                                                                                                                                                + + + + + public + static uganda() : + + + + + +
                                                                                                                                                                                Return values
                                                                                                                                                                                + + — + + +
                                                                                                                                                                                +
                                                                                                                                                                                +

                                                                                                                                                                                + ukraine() + +

                                                                                                                                                                                + + + + + public + static ukraine() : + + + + + +
                                                                                                                                                                                Return values
                                                                                                                                                                                + + — + + +
                                                                                                                                                                                +
                                                                                                                                                                                +

                                                                                                                                                                                + unitedArabEmirates() + +

                                                                                                                                                                                + + + + + public + static unitedArabEmirates() : + + + + + +
                                                                                                                                                                                Return values
                                                                                                                                                                                + + — + + +
                                                                                                                                                                                +
                                                                                                                                                                                +

                                                                                                                                                                                + unitedKingdom() + +

                                                                                                                                                                                + + + + + public + static unitedKingdom() : + + + + + +
                                                                                                                                                                                Return values
                                                                                                                                                                                + + — + + +
                                                                                                                                                                                +
                                                                                                                                                                                +

                                                                                                                                                                                + unitedStates() + +

                                                                                                                                                                                + + + + + public + static unitedStates() : + + + + + +
                                                                                                                                                                                Return values
                                                                                                                                                                                + + — + + +
                                                                                                                                                                                +
                                                                                                                                                                                +

                                                                                                                                                                                + unitedStatesMinorOutlyingIslands() + +

                                                                                                                                                                                + + + + + public + static unitedStatesMinorOutlyingIslands() : + + + + + +
                                                                                                                                                                                Return values
                                                                                                                                                                                + + — + + +
                                                                                                                                                                                +
                                                                                                                                                                                +

                                                                                                                                                                                + uruguay() + +

                                                                                                                                                                                + + + + + public + static uruguay() : + + + + + +
                                                                                                                                                                                Return values
                                                                                                                                                                                + + — + + +
                                                                                                                                                                                +
                                                                                                                                                                                +

                                                                                                                                                                                + uzbekistan() + +

                                                                                                                                                                                + + + + + public + static uzbekistan() : + + + + + +
                                                                                                                                                                                Return values
                                                                                                                                                                                + + — + + +
                                                                                                                                                                                +
                                                                                                                                                                                +

                                                                                                                                                                                + values() + +

                                                                                                                                                                                + + +

                                                                                                                                                                                Valeurs des possibilités de cet énumération (value)

                                                                                                                                                                                + + + public + static values() : array<string|int, mixed> + + + + + +
                                                                                                                                                                                Return values
                                                                                                                                                                                + array<string|int, mixed> + — + + +
                                                                                                                                                                                +
                                                                                                                                                                                +

                                                                                                                                                                                + vanuatu() + +

                                                                                                                                                                                + + + + + public + static vanuatu() : + + + + + +
                                                                                                                                                                                Return values
                                                                                                                                                                                + + — + + +
                                                                                                                                                                                +
                                                                                                                                                                                +

                                                                                                                                                                                + venezuelaBolivarianRepublicOf() + +

                                                                                                                                                                                + + + + + public + static venezuelaBolivarianRepublicOf() : + + + + + +
                                                                                                                                                                                Return values
                                                                                                                                                                                + + — + + +
                                                                                                                                                                                +
                                                                                                                                                                                +

                                                                                                                                                                                + vietNam() + +

                                                                                                                                                                                + + + + + public + static vietNam() : + + + + + +
                                                                                                                                                                                Return values
                                                                                                                                                                                + + — + + +
                                                                                                                                                                                +
                                                                                                                                                                                +

                                                                                                                                                                                + virginIslandsBritish() + +

                                                                                                                                                                                + + + + + public + static virginIslandsBritish() : + + + + + +
                                                                                                                                                                                Return values
                                                                                                                                                                                + + — + + +
                                                                                                                                                                                +
                                                                                                                                                                                +

                                                                                                                                                                                + virginIslandsUs() + +

                                                                                                                                                                                + + + + + public + static virginIslandsUs() : + + + + + +
                                                                                                                                                                                Return values
                                                                                                                                                                                + + — + + +
                                                                                                                                                                                +
                                                                                                                                                                                +

                                                                                                                                                                                + wallisAndFutuna() + +

                                                                                                                                                                                + + + + + public + static wallisAndFutuna() : + + + + + +
                                                                                                                                                                                Return values
                                                                                                                                                                                + + — + + +
                                                                                                                                                                                +
                                                                                                                                                                                +

                                                                                                                                                                                + westernSahara() + +

                                                                                                                                                                                + + + + + public + static westernSahara() : + + + + + +
                                                                                                                                                                                Return values
                                                                                                                                                                                + + — + + +
                                                                                                                                                                                +
                                                                                                                                                                                +

                                                                                                                                                                                + yemen() + +

                                                                                                                                                                                + + + + + public + static yemen() : + + + + + +
                                                                                                                                                                                Return values
                                                                                                                                                                                + + — + + +
                                                                                                                                                                                +
                                                                                                                                                                                +

                                                                                                                                                                                + zambia() + +

                                                                                                                                                                                + + + + + public + static zambia() : + + + + + +
                                                                                                                                                                                Return values
                                                                                                                                                                                + + — + + +
                                                                                                                                                                                +
                                                                                                                                                                                +

                                                                                                                                                                                + zimbabwe() + +

                                                                                                                                                                                + + + + + public + static zimbabwe() : + + + + + +
                                                                                                                                                                                Return values
                                                                                                                                                                                + + — + + +
                                                                                                                                                                                +
                                                                                                                                                                                + + + + +
                                                                                                                                                                                +
                                                                                                                                                                                +
                                                                                                                                                                                +
                                                                                                                                                                                +

                                                                                                                                                                                Search results

                                                                                                                                                                                + +
                                                                                                                                                                                +
                                                                                                                                                                                +
                                                                                                                                                                                  +
                                                                                                                                                                                  +
                                                                                                                                                                                  +
                                                                                                                                                                                  +
                                                                                                                                                                                  +
                                                                                                                                                                                  + + +
                                                                                                                                                                                  + + + + + + + + diff --git a/app/Lib/vendor/crm-client-3.0.6/documentation/classes/LDC-LDCCRM-Enums-LogLevel.html b/app/Lib/vendor/crm-client-3.0.6/documentation/classes/LDC-LDCCRM-Enums-LogLevel.html new file mode 100644 index 0000000..0aa2021 --- /dev/null +++ b/app/Lib/vendor/crm-client-3.0.6/documentation/classes/LDC-LDCCRM-Enums-LogLevel.html @@ -0,0 +1,625 @@ + + + + + CRM V2 + + + + + + + + + + + + + + + + + + + +
                                                                                                                                                                                  +

                                                                                                                                                                                  CRM V2

                                                                                                                                                                                  + + + + + +
                                                                                                                                                                                  + +
                                                                                                                                                                                  +
                                                                                                                                                                                  + + + + +
                                                                                                                                                                                  + + +
                                                                                                                                                                                  +

                                                                                                                                                                                  + LogLevel + + + extends BaseEnum + + +
                                                                                                                                                                                  + in package + +
                                                                                                                                                                                  + + +

                                                                                                                                                                                  + + + + + + +
                                                                                                                                                                                  + Tags + +
                                                                                                                                                                                  +
                                                                                                                                                                                  +
                                                                                                                                                                                  + subpackage +
                                                                                                                                                                                  +
                                                                                                                                                                                  + +

                                                                                                                                                                                  enums

                                                                                                                                                                                  +
                                                                                                                                                                                  + +
                                                                                                                                                                                  +
                                                                                                                                                                                  + + + + + + +

                                                                                                                                                                                  + Table of Contents + +

                                                                                                                                                                                  + +
                                                                                                                                                                                  +
                                                                                                                                                                                  + ALERT() + +  : +
                                                                                                                                                                                  +
                                                                                                                                                                                  + +
                                                                                                                                                                                  + CRIT() + +  : +
                                                                                                                                                                                  +
                                                                                                                                                                                  + +
                                                                                                                                                                                  + DEBUG() + +  : +
                                                                                                                                                                                  +
                                                                                                                                                                                  + +
                                                                                                                                                                                  + EMERG() + +  : +
                                                                                                                                                                                  +
                                                                                                                                                                                  + +
                                                                                                                                                                                  + ERR() + +  : +
                                                                                                                                                                                  +
                                                                                                                                                                                  + +
                                                                                                                                                                                  + INFO() + +  : +
                                                                                                                                                                                  +
                                                                                                                                                                                  + +
                                                                                                                                                                                  + NOTICE() + +  : +
                                                                                                                                                                                  +
                                                                                                                                                                                  + +
                                                                                                                                                                                  + WARNING() + +  : +
                                                                                                                                                                                  +
                                                                                                                                                                                  + +
                                                                                                                                                                                  + values() + +  : array<string|int, mixed> +
                                                                                                                                                                                  +
                                                                                                                                                                                  Valeurs des possibilités de cet énumération (value)
                                                                                                                                                                                  + +
                                                                                                                                                                                  + + + + + + + +
                                                                                                                                                                                  +

                                                                                                                                                                                  + Methods + +

                                                                                                                                                                                  +
                                                                                                                                                                                  +

                                                                                                                                                                                  + ALERT() + +

                                                                                                                                                                                  + + + + + public + static ALERT() : + +

                                                                                                                                                                                  action must be taken immediately

                                                                                                                                                                                  +
                                                                                                                                                                                  + + + + +
                                                                                                                                                                                  Return values
                                                                                                                                                                                  + + — + + +
                                                                                                                                                                                  +
                                                                                                                                                                                  +

                                                                                                                                                                                  + CRIT() + +

                                                                                                                                                                                  + + + + + public + static CRIT() : + +

                                                                                                                                                                                  critical conditions

                                                                                                                                                                                  +
                                                                                                                                                                                  + + + + +
                                                                                                                                                                                  Return values
                                                                                                                                                                                  + + — + + +
                                                                                                                                                                                  +
                                                                                                                                                                                  +

                                                                                                                                                                                  + DEBUG() + +

                                                                                                                                                                                  + + + + + public + static DEBUG() : + +

                                                                                                                                                                                  debug-level message

                                                                                                                                                                                  +
                                                                                                                                                                                  + + + + +
                                                                                                                                                                                  Return values
                                                                                                                                                                                  + + — + + +
                                                                                                                                                                                  +
                                                                                                                                                                                  +

                                                                                                                                                                                  + EMERG() + +

                                                                                                                                                                                  + + + + + public + static EMERG() : + +

                                                                                                                                                                                  system is unusable

                                                                                                                                                                                  +
                                                                                                                                                                                  + + + + +
                                                                                                                                                                                  Return values
                                                                                                                                                                                  + + — + + +
                                                                                                                                                                                  +
                                                                                                                                                                                  +

                                                                                                                                                                                  + ERR() + +

                                                                                                                                                                                  + + + + + public + static ERR() : + +

                                                                                                                                                                                  critical conditions

                                                                                                                                                                                  +
                                                                                                                                                                                  + + + + +
                                                                                                                                                                                  Return values
                                                                                                                                                                                  + + — + + +
                                                                                                                                                                                  +
                                                                                                                                                                                  +

                                                                                                                                                                                  + INFO() + +

                                                                                                                                                                                  + + + + + public + static INFO() : + +

                                                                                                                                                                                  informational message

                                                                                                                                                                                  +
                                                                                                                                                                                  + + + + +
                                                                                                                                                                                  Return values
                                                                                                                                                                                  + + — + + +
                                                                                                                                                                                  +
                                                                                                                                                                                  +

                                                                                                                                                                                  + NOTICE() + +

                                                                                                                                                                                  + + + + + public + static NOTICE() : + +

                                                                                                                                                                                  normal, but significant, condition

                                                                                                                                                                                  +
                                                                                                                                                                                  + + + + +
                                                                                                                                                                                  Return values
                                                                                                                                                                                  + + — + + +
                                                                                                                                                                                  +
                                                                                                                                                                                  +

                                                                                                                                                                                  + WARNING() + +

                                                                                                                                                                                  + + + + + public + static WARNING() : + +

                                                                                                                                                                                  critical conditions

                                                                                                                                                                                  +
                                                                                                                                                                                  + + + + +
                                                                                                                                                                                  Return values
                                                                                                                                                                                  + + — + + +
                                                                                                                                                                                  +
                                                                                                                                                                                  +

                                                                                                                                                                                  + values() + +

                                                                                                                                                                                  + + +

                                                                                                                                                                                  Valeurs des possibilités de cet énumération (value)

                                                                                                                                                                                  + + + protected + static values() : array<string|int, mixed> + + + + + +
                                                                                                                                                                                  Return values
                                                                                                                                                                                  + array<string|int, mixed> + — + + +
                                                                                                                                                                                  +
                                                                                                                                                                                  + + + + +
                                                                                                                                                                                  +
                                                                                                                                                                                  +
                                                                                                                                                                                  +
                                                                                                                                                                                  +

                                                                                                                                                                                  Search results

                                                                                                                                                                                  + +
                                                                                                                                                                                  +
                                                                                                                                                                                  +
                                                                                                                                                                                    +
                                                                                                                                                                                    +
                                                                                                                                                                                    +
                                                                                                                                                                                    +
                                                                                                                                                                                    +
                                                                                                                                                                                    + + +
                                                                                                                                                                                    + + + + + + + + diff --git a/app/Lib/vendor/crm-client-3.0.6/documentation/classes/LDC-LDCCRM-Enums-QuestionType.html b/app/Lib/vendor/crm-client-3.0.6/documentation/classes/LDC-LDCCRM-Enums-QuestionType.html new file mode 100644 index 0000000..3f8f304 --- /dev/null +++ b/app/Lib/vendor/crm-client-3.0.6/documentation/classes/LDC-LDCCRM-Enums-QuestionType.html @@ -0,0 +1,414 @@ + + + + + CRM V2 + + + + + + + + + + + + + + + + + + + +
                                                                                                                                                                                    +

                                                                                                                                                                                    CRM V2

                                                                                                                                                                                    + + + + + +
                                                                                                                                                                                    + +
                                                                                                                                                                                    +
                                                                                                                                                                                    + + + + +
                                                                                                                                                                                    + + +
                                                                                                                                                                                    +

                                                                                                                                                                                    + QuestionType + + + extends BaseEnum + + +
                                                                                                                                                                                    + in package + +
                                                                                                                                                                                    + + +

                                                                                                                                                                                    + + + + + + +
                                                                                                                                                                                    + Tags + +
                                                                                                                                                                                    +
                                                                                                                                                                                    +
                                                                                                                                                                                    + subpackage +
                                                                                                                                                                                    +
                                                                                                                                                                                    + +

                                                                                                                                                                                    enums

                                                                                                                                                                                    +
                                                                                                                                                                                    + +
                                                                                                                                                                                    +
                                                                                                                                                                                    + + + + + + +

                                                                                                                                                                                    + Table of Contents + +

                                                                                                                                                                                    + +
                                                                                                                                                                                    +
                                                                                                                                                                                    + checkbox() + +  : +
                                                                                                                                                                                    +
                                                                                                                                                                                    + +
                                                                                                                                                                                    + radio() + +  : +
                                                                                                                                                                                    +
                                                                                                                                                                                    + +
                                                                                                                                                                                    + select() + +  : +
                                                                                                                                                                                    +
                                                                                                                                                                                    + +
                                                                                                                                                                                    + values() + +  : array<string|int, mixed> +
                                                                                                                                                                                    +
                                                                                                                                                                                    Valeurs des possibilités de cet énumération (value)
                                                                                                                                                                                    + +
                                                                                                                                                                                    + + + + + + + +
                                                                                                                                                                                    +

                                                                                                                                                                                    + Methods + +

                                                                                                                                                                                    +
                                                                                                                                                                                    +

                                                                                                                                                                                    + checkbox() + +

                                                                                                                                                                                    + + + + + public + static checkbox() : + + + + + +
                                                                                                                                                                                    Return values
                                                                                                                                                                                    + + — + + +
                                                                                                                                                                                    +
                                                                                                                                                                                    +

                                                                                                                                                                                    + radio() + +

                                                                                                                                                                                    + + + + + public + static radio() : + + + + + +
                                                                                                                                                                                    Return values
                                                                                                                                                                                    + + — + + +
                                                                                                                                                                                    +
                                                                                                                                                                                    +

                                                                                                                                                                                    + select() + +

                                                                                                                                                                                    + + + + + public + static select() : + + + + + +
                                                                                                                                                                                    Return values
                                                                                                                                                                                    + + — + + +
                                                                                                                                                                                    +
                                                                                                                                                                                    +

                                                                                                                                                                                    + values() + +

                                                                                                                                                                                    + + +

                                                                                                                                                                                    Valeurs des possibilités de cet énumération (value)

                                                                                                                                                                                    + + + public + static values() : array<string|int, mixed> + + + + + +
                                                                                                                                                                                    Return values
                                                                                                                                                                                    + array<string|int, mixed> + — + + +
                                                                                                                                                                                    +
                                                                                                                                                                                    + + + + +
                                                                                                                                                                                    +
                                                                                                                                                                                    +
                                                                                                                                                                                    +
                                                                                                                                                                                    +

                                                                                                                                                                                    Search results

                                                                                                                                                                                    + +
                                                                                                                                                                                    +
                                                                                                                                                                                    +
                                                                                                                                                                                      +
                                                                                                                                                                                      +
                                                                                                                                                                                      +
                                                                                                                                                                                      +
                                                                                                                                                                                      +
                                                                                                                                                                                      + + +
                                                                                                                                                                                      + + + + + + + + diff --git a/app/Lib/vendor/crm-client-3.0.6/documentation/classes/LDC-LDCCRM-Exceptions-AccessError.html b/app/Lib/vendor/crm-client-3.0.6/documentation/classes/LDC-LDCCRM-Exceptions-AccessError.html new file mode 100644 index 0000000..3a5c03b --- /dev/null +++ b/app/Lib/vendor/crm-client-3.0.6/documentation/classes/LDC-LDCCRM-Exceptions-AccessError.html @@ -0,0 +1,319 @@ + + + + + CRM V2 + + + + + + + + + + + + + + + + + + + +
                                                                                                                                                                                      +

                                                                                                                                                                                      CRM V2

                                                                                                                                                                                      + + + + + +
                                                                                                                                                                                      + +
                                                                                                                                                                                      +
                                                                                                                                                                                      + + + + +
                                                                                                                                                                                      + + +
                                                                                                                                                                                      +

                                                                                                                                                                                      + AccessError + + + extends Error + + +
                                                                                                                                                                                      + in package + +
                                                                                                                                                                                      + + +

                                                                                                                                                                                      + + + +

                                                                                                                                                                                      This is thrown when trying to set a value on an object property that does not exist.

                                                                                                                                                                                      + + + +
                                                                                                                                                                                      + Tags + +
                                                                                                                                                                                      +
                                                                                                                                                                                      +
                                                                                                                                                                                      + subpackage +
                                                                                                                                                                                      +
                                                                                                                                                                                      + +

                                                                                                                                                                                      exceptions

                                                                                                                                                                                      +
                                                                                                                                                                                      + +
                                                                                                                                                                                      +
                                                                                                                                                                                      + + + + + + +

                                                                                                                                                                                      + Table of Contents + +

                                                                                                                                                                                      + +
                                                                                                                                                                                      +
                                                                                                                                                                                      + __construct() + +  : mixed +
                                                                                                                                                                                      +
                                                                                                                                                                                      AccessError
                                                                                                                                                                                      + +
                                                                                                                                                                                      + + + + + + + +
                                                                                                                                                                                      +

                                                                                                                                                                                      + Methods + +

                                                                                                                                                                                      +
                                                                                                                                                                                      +

                                                                                                                                                                                      + __construct() + +

                                                                                                                                                                                      + + +

                                                                                                                                                                                      AccessError

                                                                                                                                                                                      + + + public + __construct(string $objectName, string $propertyName) : mixed + + +
                                                                                                                                                                                      Parameters
                                                                                                                                                                                      +
                                                                                                                                                                                      +
                                                                                                                                                                                      + $objectName + : string +
                                                                                                                                                                                      +
                                                                                                                                                                                      +

                                                                                                                                                                                      The object name where the property does not exist.

                                                                                                                                                                                      +
                                                                                                                                                                                      + +
                                                                                                                                                                                      +
                                                                                                                                                                                      + $propertyName + : string +
                                                                                                                                                                                      +
                                                                                                                                                                                      +

                                                                                                                                                                                      The property name that does not exist.

                                                                                                                                                                                      +
                                                                                                                                                                                      + +
                                                                                                                                                                                      +
                                                                                                                                                                                      + + + +
                                                                                                                                                                                      Return values
                                                                                                                                                                                      + mixed + — + + +
                                                                                                                                                                                      +
                                                                                                                                                                                      + + + + +
                                                                                                                                                                                      +
                                                                                                                                                                                      +
                                                                                                                                                                                      +
                                                                                                                                                                                      +

                                                                                                                                                                                      Search results

                                                                                                                                                                                      + +
                                                                                                                                                                                      +
                                                                                                                                                                                      +
                                                                                                                                                                                        +
                                                                                                                                                                                        +
                                                                                                                                                                                        +
                                                                                                                                                                                        +
                                                                                                                                                                                        +
                                                                                                                                                                                        + + +
                                                                                                                                                                                        + + + + + + + + diff --git a/app/Lib/vendor/crm-client-3.0.6/documentation/classes/LDC-LDCCRM-Exceptions-ApiErrorException.html b/app/Lib/vendor/crm-client-3.0.6/documentation/classes/LDC-LDCCRM-Exceptions-ApiErrorException.html new file mode 100644 index 0000000..76fa30e --- /dev/null +++ b/app/Lib/vendor/crm-client-3.0.6/documentation/classes/LDC-LDCCRM-Exceptions-ApiErrorException.html @@ -0,0 +1,595 @@ + + + + + CRM V2 + + + + + + + + + + + + + + + + + + + +
                                                                                                                                                                                        +

                                                                                                                                                                                        CRM V2

                                                                                                                                                                                        + + + + + +
                                                                                                                                                                                        + +
                                                                                                                                                                                        +
                                                                                                                                                                                        + + + + +
                                                                                                                                                                                        + + +
                                                                                                                                                                                        +

                                                                                                                                                                                        + ApiErrorException + + + extends Exception + + +
                                                                                                                                                                                        + in package + +
                                                                                                                                                                                        + + +

                                                                                                                                                                                        + + + +

                                                                                                                                                                                        This would be thrown if any of the case +referenced in \LDC\LDCCRM\Enums\ApiError would +occur within the crm

                                                                                                                                                                                        + +

                                                                                                                                                                                        On the client an ApiErrorException would +also be throw with the ApiError corresponding to +the situation

                                                                                                                                                                                        +
                                                                                                                                                                                        + + +
                                                                                                                                                                                        + Tags + +
                                                                                                                                                                                        +
                                                                                                                                                                                        +
                                                                                                                                                                                        + subpackage +
                                                                                                                                                                                        +
                                                                                                                                                                                        + +

                                                                                                                                                                                        exceptions

                                                                                                                                                                                        +
                                                                                                                                                                                        + +
                                                                                                                                                                                        +
                                                                                                                                                                                        + + + + + + +

                                                                                                                                                                                        + Table of Contents + +

                                                                                                                                                                                        + +
                                                                                                                                                                                        +
                                                                                                                                                                                        + $error + +  : ApiError +
                                                                                                                                                                                        +
                                                                                                                                                                                        Api Error +This value makes the error more explicit.
                                                                                                                                                                                        + +
                                                                                                                                                                                        + $httpCode + +  : int +
                                                                                                                                                                                        +
                                                                                                                                                                                        This is the http code returned by the crm.
                                                                                                                                                                                        + +
                                                                                                                                                                                        + $message + +  : string +
                                                                                                                                                                                        +
                                                                                                                                                                                        This is an explicit error message, +ou may print this to the front or not depending +on $error value
                                                                                                                                                                                        + +
                                                                                                                                                                                        + __construct() + +  : mixed +
                                                                                                                                                                                        +
                                                                                                                                                                                        Create a new exception base on ApiError enum.
                                                                                                                                                                                        + +
                                                                                                                                                                                        + getApiError() + +  : ApiError +
                                                                                                                                                                                        +
                                                                                                                                                                                        Get the Api Error
                                                                                                                                                                                        + +
                                                                                                                                                                                        + getStatusCode() + +  : int +
                                                                                                                                                                                        +
                                                                                                                                                                                        Get the http code
                                                                                                                                                                                        + +
                                                                                                                                                                                        + report() + +  : void +
                                                                                                                                                                                        +
                                                                                                                                                                                        This is used by laravel only.
                                                                                                                                                                                        + +
                                                                                                                                                                                        + + + + + + +
                                                                                                                                                                                        +

                                                                                                                                                                                        + Properties + +

                                                                                                                                                                                        +
                                                                                                                                                                                        +

                                                                                                                                                                                        + $error + + + +

                                                                                                                                                                                        + + +

                                                                                                                                                                                        Api Error +This value makes the error more explicit.

                                                                                                                                                                                        + + + protected + ApiError + $error + + +

                                                                                                                                                                                        Handling these errors are normal as inputs or +request may be undesired or refused by the crm.

                                                                                                                                                                                        +
                                                                                                                                                                                        + + + + +
                                                                                                                                                                                        +
                                                                                                                                                                                        +

                                                                                                                                                                                        + $httpCode + + + +

                                                                                                                                                                                        + + +

                                                                                                                                                                                        This is the http code returned by the crm.

                                                                                                                                                                                        + + + protected + int + $httpCode + + +

                                                                                                                                                                                        This value could be used to handle errors. +But please take in consideration $error first

                                                                                                                                                                                        +
                                                                                                                                                                                        + + + + +
                                                                                                                                                                                        +
                                                                                                                                                                                        +

                                                                                                                                                                                        + $message + + + +

                                                                                                                                                                                        + + +

                                                                                                                                                                                        This is an explicit error message, +ou may print this to the front or not depending +on $error value

                                                                                                                                                                                        + + + protected + string + $message + + + + + + +
                                                                                                                                                                                        +
                                                                                                                                                                                        + +
                                                                                                                                                                                        +

                                                                                                                                                                                        + Methods + +

                                                                                                                                                                                        +
                                                                                                                                                                                        +

                                                                                                                                                                                        + __construct() + +

                                                                                                                                                                                        + + +

                                                                                                                                                                                        Create a new exception base on ApiError enum.

                                                                                                                                                                                        + + + public + __construct(ApiError $error[, int $httpCode = 400 ][, string $message = '' ][, Throwable|null $previous = null ]) : mixed + + +
                                                                                                                                                                                        Parameters
                                                                                                                                                                                        +
                                                                                                                                                                                        +
                                                                                                                                                                                        + $error + : ApiError +
                                                                                                                                                                                        +
                                                                                                                                                                                        + +
                                                                                                                                                                                        +
                                                                                                                                                                                        + $httpCode + : int + = 400
                                                                                                                                                                                        +
                                                                                                                                                                                        + +
                                                                                                                                                                                        +
                                                                                                                                                                                        + $message + : string + = ''
                                                                                                                                                                                        +
                                                                                                                                                                                        + +
                                                                                                                                                                                        +
                                                                                                                                                                                        + $previous + : Throwable|null + = null
                                                                                                                                                                                        +
                                                                                                                                                                                        + +
                                                                                                                                                                                        +
                                                                                                                                                                                        + + + +
                                                                                                                                                                                        Return values
                                                                                                                                                                                        + mixed + — + + +
                                                                                                                                                                                        + +
                                                                                                                                                                                        +

                                                                                                                                                                                        + getStatusCode() + +

                                                                                                                                                                                        + + +

                                                                                                                                                                                        Get the http code

                                                                                                                                                                                        + + + public + getStatusCode() : int + + + + + +
                                                                                                                                                                                        Return values
                                                                                                                                                                                        + int + — + + +
                                                                                                                                                                                        +
                                                                                                                                                                                        +

                                                                                                                                                                                        + report() + +

                                                                                                                                                                                        + + +

                                                                                                                                                                                        This is used by laravel only.

                                                                                                                                                                                        + + + public + report() : void + +

                                                                                                                                                                                        It uses Log class to print the error.

                                                                                                                                                                                        +
                                                                                                                                                                                        + + + + +
                                                                                                                                                                                        Return values
                                                                                                                                                                                        + void + — + + +
                                                                                                                                                                                        +
                                                                                                                                                                                        + + + + +
                                                                                                                                                                                        +
                                                                                                                                                                                        +
                                                                                                                                                                                        +
                                                                                                                                                                                        +

                                                                                                                                                                                        Search results

                                                                                                                                                                                        + +
                                                                                                                                                                                        +
                                                                                                                                                                                        +
                                                                                                                                                                                          +
                                                                                                                                                                                          +
                                                                                                                                                                                          +
                                                                                                                                                                                          +
                                                                                                                                                                                          +
                                                                                                                                                                                          + + +
                                                                                                                                                                                          + + + + + + + + diff --git a/app/Lib/vendor/crm-client-3.0.6/documentation/classes/LDC-LDCCRM-Exceptions-CrmException.html b/app/Lib/vendor/crm-client-3.0.6/documentation/classes/LDC-LDCCRM-Exceptions-CrmException.html new file mode 100644 index 0000000..8f1da3e --- /dev/null +++ b/app/Lib/vendor/crm-client-3.0.6/documentation/classes/LDC-LDCCRM-Exceptions-CrmException.html @@ -0,0 +1,310 @@ + + + + + CRM V2 + + + + + + + + + + + + + + + + + + + +
                                                                                                                                                                                          +

                                                                                                                                                                                          CRM V2

                                                                                                                                                                                          + + + + + +
                                                                                                                                                                                          + +
                                                                                                                                                                                          +
                                                                                                                                                                                          + + + + +
                                                                                                                                                                                          + + +
                                                                                                                                                                                          +

                                                                                                                                                                                          + CrmException + + + extends Exception + + +
                                                                                                                                                                                          + in package + +
                                                                                                                                                                                          + + +

                                                                                                                                                                                          + + + +

                                                                                                                                                                                          This is a critical error.

                                                                                                                                                                                          + +

                                                                                                                                                                                          The request could not be handled. You may dump any value you can +get before submitting a ticker to https://supportweb.ldc.fr

                                                                                                                                                                                          +
                                                                                                                                                                                          + + +
                                                                                                                                                                                          + Tags + +
                                                                                                                                                                                          +
                                                                                                                                                                                          +
                                                                                                                                                                                          + subpackage +
                                                                                                                                                                                          +
                                                                                                                                                                                          + +

                                                                                                                                                                                          exceptions

                                                                                                                                                                                          +
                                                                                                                                                                                          + +
                                                                                                                                                                                          +
                                                                                                                                                                                          + codeCoverageIgnore +
                                                                                                                                                                                          +
                                                                                                                                                                                          + + +
                                                                                                                                                                                          +
                                                                                                                                                                                          + + + + + + +

                                                                                                                                                                                          + Table of Contents + +

                                                                                                                                                                                          + +
                                                                                                                                                                                          +
                                                                                                                                                                                          + report() + +  : void +
                                                                                                                                                                                          +
                                                                                                                                                                                          This is used by laravel only.
                                                                                                                                                                                          + +
                                                                                                                                                                                          + + + + + + + +
                                                                                                                                                                                          +

                                                                                                                                                                                          + Methods + +

                                                                                                                                                                                          +
                                                                                                                                                                                          +

                                                                                                                                                                                          + report() + +

                                                                                                                                                                                          + + +

                                                                                                                                                                                          This is used by laravel only.

                                                                                                                                                                                          + + + public + report() : void + +

                                                                                                                                                                                          It uses Log class to print the error.

                                                                                                                                                                                          +
                                                                                                                                                                                          + + + + +
                                                                                                                                                                                          Return values
                                                                                                                                                                                          + void + — + + +
                                                                                                                                                                                          +
                                                                                                                                                                                          + + + + +
                                                                                                                                                                                          +
                                                                                                                                                                                          +
                                                                                                                                                                                          +
                                                                                                                                                                                          +

                                                                                                                                                                                          Search results

                                                                                                                                                                                          + +
                                                                                                                                                                                          +
                                                                                                                                                                                          +
                                                                                                                                                                                            +
                                                                                                                                                                                            +
                                                                                                                                                                                            +
                                                                                                                                                                                            +
                                                                                                                                                                                            +
                                                                                                                                                                                            + + +
                                                                                                                                                                                            + + + + + + + + diff --git a/app/Lib/vendor/crm-client-3.0.6/documentation/classes/LDC-LDCCRM-Exceptions-SkipValidationException.html b/app/Lib/vendor/crm-client-3.0.6/documentation/classes/LDC-LDCCRM-Exceptions-SkipValidationException.html new file mode 100644 index 0000000..191f5a2 --- /dev/null +++ b/app/Lib/vendor/crm-client-3.0.6/documentation/classes/LDC-LDCCRM-Exceptions-SkipValidationException.html @@ -0,0 +1,245 @@ + + + + + CRM V2 + + + + + + + + + + + + + + + + + + + +
                                                                                                                                                                                            +

                                                                                                                                                                                            CRM V2

                                                                                                                                                                                            + + + + + +
                                                                                                                                                                                            + +
                                                                                                                                                                                            +
                                                                                                                                                                                            + + + + +
                                                                                                                                                                                            + + +
                                                                                                                                                                                            +

                                                                                                                                                                                            + SkipValidationException + + + extends Exception + + +
                                                                                                                                                                                            + in package + +
                                                                                                                                                                                            + + +

                                                                                                                                                                                            + + + +

                                                                                                                                                                                            Used only for internal validator

                                                                                                                                                                                            + + + +
                                                                                                                                                                                            + Tags + +
                                                                                                                                                                                            +
                                                                                                                                                                                            +
                                                                                                                                                                                            + subpackage +
                                                                                                                                                                                            +
                                                                                                                                                                                            + +

                                                                                                                                                                                            exceptions

                                                                                                                                                                                            +
                                                                                                                                                                                            + +
                                                                                                                                                                                            +
                                                                                                                                                                                            + + + + + + + + + + + + + + + + + +
                                                                                                                                                                                            +
                                                                                                                                                                                            +
                                                                                                                                                                                            +
                                                                                                                                                                                            +

                                                                                                                                                                                            Search results

                                                                                                                                                                                            + +
                                                                                                                                                                                            +
                                                                                                                                                                                            +
                                                                                                                                                                                              +
                                                                                                                                                                                              +
                                                                                                                                                                                              +
                                                                                                                                                                                              +
                                                                                                                                                                                              +
                                                                                                                                                                                              + + +
                                                                                                                                                                                              + + + + + + + + diff --git a/app/Lib/vendor/crm-client-3.0.6/documentation/classes/LDC-LDCCRM-Exceptions-ValidationException.html b/app/Lib/vendor/crm-client-3.0.6/documentation/classes/LDC-LDCCRM-Exceptions-ValidationException.html new file mode 100644 index 0000000..f6cefc1 --- /dev/null +++ b/app/Lib/vendor/crm-client-3.0.6/documentation/classes/LDC-LDCCRM-Exceptions-ValidationException.html @@ -0,0 +1,308 @@ + + + + + CRM V2 + + + + + + + + + + + + + + + + + + + +
                                                                                                                                                                                              +

                                                                                                                                                                                              CRM V2

                                                                                                                                                                                              + + + + + +
                                                                                                                                                                                              + +
                                                                                                                                                                                              +
                                                                                                                                                                                              + + + + +
                                                                                                                                                                                              + + +
                                                                                                                                                                                              +

                                                                                                                                                                                              + ValidationException + + + extends Exception + + +
                                                                                                                                                                                              + in package + +
                                                                                                                                                                                              + + +

                                                                                                                                                                                              + + + +

                                                                                                                                                                                              This would be thrown if a data could not be validated +on any models

                                                                                                                                                                                              + + + +
                                                                                                                                                                                              + Tags + +
                                                                                                                                                                                              +
                                                                                                                                                                                              +
                                                                                                                                                                                              + subpackage +
                                                                                                                                                                                              +
                                                                                                                                                                                              + +

                                                                                                                                                                                              exceptions

                                                                                                                                                                                              +
                                                                                                                                                                                              + +
                                                                                                                                                                                              +
                                                                                                                                                                                              + codeCoverageIgnore +
                                                                                                                                                                                              +
                                                                                                                                                                                              + + +
                                                                                                                                                                                              +
                                                                                                                                                                                              + + + + + + +

                                                                                                                                                                                              + Table of Contents + +

                                                                                                                                                                                              + +
                                                                                                                                                                                              +
                                                                                                                                                                                              + report() + +  : void +
                                                                                                                                                                                              +
                                                                                                                                                                                              This is used by laravel only.
                                                                                                                                                                                              + +
                                                                                                                                                                                              + + + + + + + +
                                                                                                                                                                                              +

                                                                                                                                                                                              + Methods + +

                                                                                                                                                                                              +
                                                                                                                                                                                              +

                                                                                                                                                                                              + report() + +

                                                                                                                                                                                              + + +

                                                                                                                                                                                              This is used by laravel only.

                                                                                                                                                                                              + + + public + report() : void + +

                                                                                                                                                                                              It uses Log class to print the error.

                                                                                                                                                                                              +
                                                                                                                                                                                              + + + + +
                                                                                                                                                                                              Return values
                                                                                                                                                                                              + void + — + + +
                                                                                                                                                                                              +
                                                                                                                                                                                              + + + + +
                                                                                                                                                                                              +
                                                                                                                                                                                              +
                                                                                                                                                                                              +
                                                                                                                                                                                              +

                                                                                                                                                                                              Search results

                                                                                                                                                                                              + +
                                                                                                                                                                                              +
                                                                                                                                                                                              +
                                                                                                                                                                                                +
                                                                                                                                                                                                +
                                                                                                                                                                                                +
                                                                                                                                                                                                +
                                                                                                                                                                                                +
                                                                                                                                                                                                + + +
                                                                                                                                                                                                + + + + + + + + diff --git a/app/Lib/vendor/crm-client-3.0.6/documentation/classes/LDC-LDCCRM-Exceptions-WpCrmInvalidJsonUserInfo.html b/app/Lib/vendor/crm-client-3.0.6/documentation/classes/LDC-LDCCRM-Exceptions-WpCrmInvalidJsonUserInfo.html new file mode 100644 index 0000000..73c0da5 --- /dev/null +++ b/app/Lib/vendor/crm-client-3.0.6/documentation/classes/LDC-LDCCRM-Exceptions-WpCrmInvalidJsonUserInfo.html @@ -0,0 +1,310 @@ + + + + + CRM V2 + + + + + + + + + + + + + + + + + + + +
                                                                                                                                                                                                +

                                                                                                                                                                                                CRM V2

                                                                                                                                                                                                + + + + + +
                                                                                                                                                                                                + +
                                                                                                                                                                                                +
                                                                                                                                                                                                + + + + +
                                                                                                                                                                                                + + +
                                                                                                                                                                                                +

                                                                                                                                                                                                + WpCrmInvalidJsonUserInfo + + + extends Error + + +
                                                                                                                                                                                                + in package + +
                                                                                                                                                                                                + + +

                                                                                                                                                                                                + + + +

                                                                                                                                                                                                This is thrown when trying to read WP customer from DB json data.

                                                                                                                                                                                                + + + +
                                                                                                                                                                                                + Tags + +
                                                                                                                                                                                                +
                                                                                                                                                                                                +
                                                                                                                                                                                                + subpackage +
                                                                                                                                                                                                +
                                                                                                                                                                                                + +

                                                                                                                                                                                                exceptions

                                                                                                                                                                                                +
                                                                                                                                                                                                + +
                                                                                                                                                                                                +
                                                                                                                                                                                                + + + + + + +

                                                                                                                                                                                                + Table of Contents + +

                                                                                                                                                                                                + +
                                                                                                                                                                                                +
                                                                                                                                                                                                + __construct() + +  : mixed +
                                                                                                                                                                                                +
                                                                                                                                                                                                WpCrmInvalidJsonUserInfo
                                                                                                                                                                                                + +
                                                                                                                                                                                                + + + + + + + +
                                                                                                                                                                                                +

                                                                                                                                                                                                + Methods + +

                                                                                                                                                                                                +
                                                                                                                                                                                                +

                                                                                                                                                                                                + __construct() + +

                                                                                                                                                                                                + + +

                                                                                                                                                                                                WpCrmInvalidJsonUserInfo

                                                                                                                                                                                                + + + public + __construct(string $message) : mixed + + +
                                                                                                                                                                                                Parameters
                                                                                                                                                                                                +
                                                                                                                                                                                                +
                                                                                                                                                                                                + $message + : string +
                                                                                                                                                                                                +
                                                                                                                                                                                                +

                                                                                                                                                                                                The error message.

                                                                                                                                                                                                +
                                                                                                                                                                                                + +
                                                                                                                                                                                                +
                                                                                                                                                                                                + + + +
                                                                                                                                                                                                Return values
                                                                                                                                                                                                + mixed + — + + +
                                                                                                                                                                                                +
                                                                                                                                                                                                + + + + +
                                                                                                                                                                                                +
                                                                                                                                                                                                +
                                                                                                                                                                                                +
                                                                                                                                                                                                +

                                                                                                                                                                                                Search results

                                                                                                                                                                                                + +
                                                                                                                                                                                                +
                                                                                                                                                                                                +
                                                                                                                                                                                                  +
                                                                                                                                                                                                  +
                                                                                                                                                                                                  +
                                                                                                                                                                                                  +
                                                                                                                                                                                                  +
                                                                                                                                                                                                  + + +
                                                                                                                                                                                                  + + + + + + + + diff --git a/app/Lib/vendor/crm-client-3.0.6/documentation/classes/LDC-LDCCRM-Models-Answer.html b/app/Lib/vendor/crm-client-3.0.6/documentation/classes/LDC-LDCCRM-Models-Answer.html new file mode 100644 index 0000000..5dd47ba --- /dev/null +++ b/app/Lib/vendor/crm-client-3.0.6/documentation/classes/LDC-LDCCRM-Models-Answer.html @@ -0,0 +1,845 @@ + + + + + CRM V2 + + + + + + + + + + + + + + + + + + + +
                                                                                                                                                                                                  +

                                                                                                                                                                                                  CRM V2

                                                                                                                                                                                                  + + + + + +
                                                                                                                                                                                                  + +
                                                                                                                                                                                                  +
                                                                                                                                                                                                  + + + + +
                                                                                                                                                                                                  + + +
                                                                                                                                                                                                  +

                                                                                                                                                                                                  + Answer + + + extends CrmClientModel + + +
                                                                                                                                                                                                  + in package + +
                                                                                                                                                                                                  + + +

                                                                                                                                                                                                  + + + +

                                                                                                                                                                                                  This class represents an answer +It has a method to submit answers

                                                                                                                                                                                                  + + + +
                                                                                                                                                                                                  + Tags + +
                                                                                                                                                                                                  +
                                                                                                                                                                                                  +
                                                                                                                                                                                                  + category +
                                                                                                                                                                                                  +
                                                                                                                                                                                                  + +

                                                                                                                                                                                                  Api Models

                                                                                                                                                                                                  +
                                                                                                                                                                                                  + +
                                                                                                                                                                                                  +
                                                                                                                                                                                                  + subpackage +
                                                                                                                                                                                                  +
                                                                                                                                                                                                  + +

                                                                                                                                                                                                  models

                                                                                                                                                                                                  +
                                                                                                                                                                                                  + +
                                                                                                                                                                                                  +
                                                                                                                                                                                                  + author +
                                                                                                                                                                                                  +
                                                                                                                                                                                                  + +

                                                                                                                                                                                                  Jérémy Munsch jeremy.munsch@ldc.fr

                                                                                                                                                                                                  +
                                                                                                                                                                                                  + +
                                                                                                                                                                                                  +
                                                                                                                                                                                                  + + + + + + +

                                                                                                                                                                                                  + Table of Contents + +

                                                                                                                                                                                                  + +
                                                                                                                                                                                                  +
                                                                                                                                                                                                  + $answers + +  : array<string|int, Answer> +
                                                                                                                                                                                                  +
                                                                                                                                                                                                  + +
                                                                                                                                                                                                  + $id + +  : string +
                                                                                                                                                                                                  +
                                                                                                                                                                                                  + +
                                                                                                                                                                                                  + $question + +  : string +
                                                                                                                                                                                                  +
                                                                                                                                                                                                  + +
                                                                                                                                                                                                  + $type + +  : QuestionType +
                                                                                                                                                                                                  +
                                                                                                                                                                                                  + +
                                                                                                                                                                                                  + $modelFields + +  : array<string|int, mixed> +
                                                                                                                                                                                                  +
                                                                                                                                                                                                  The crm customer fields
                                                                                                                                                                                                  + +
                                                                                                                                                                                                  + $validation + +  : array<string|int, mixed> +
                                                                                                                                                                                                  +
                                                                                                                                                                                                  Validation rules
                                                                                                                                                                                                  + +
                                                                                                                                                                                                  + $answer + +  : string +
                                                                                                                                                                                                  +
                                                                                                                                                                                                  The actual answer as a string
                                                                                                                                                                                                  + +
                                                                                                                                                                                                  + $id + +  : int +
                                                                                                                                                                                                  +
                                                                                                                                                                                                  The question id
                                                                                                                                                                                                  + +
                                                                                                                                                                                                  + __construct() + +  : mixed +
                                                                                                                                                                                                  +
                                                                                                                                                                                                  Answer
                                                                                                                                                                                                  + +
                                                                                                                                                                                                  + jsonSerialize() + +  : array<string|int, mixed> +
                                                                                                                                                                                                  +
                                                                                                                                                                                                  Serialize this object to an array
                                                                                                                                                                                                  + +
                                                                                                                                                                                                  + setQuestionAnswers() + +  : bool +
                                                                                                                                                                                                  +
                                                                                                                                                                                                  Set unanswered question for a specific customer
                                                                                                                                                                                                  + +
                                                                                                                                                                                                  + + + + + + +
                                                                                                                                                                                                  +

                                                                                                                                                                                                  + Properties + +

                                                                                                                                                                                                  +
                                                                                                                                                                                                  +

                                                                                                                                                                                                  + $answers + + + +

                                                                                                                                                                                                  + + + + + public + array<string|int, Answer> + $answers + + +

                                                                                                                                                                                                  An array with answers

                                                                                                                                                                                                  +
                                                                                                                                                                                                  + +
                                                                                                                                                                                                  + + + +
                                                                                                                                                                                                  +
                                                                                                                                                                                                  +

                                                                                                                                                                                                  + $id + + + +

                                                                                                                                                                                                  + + + + + public + string + $id + + +

                                                                                                                                                                                                  The answer id

                                                                                                                                                                                                  +
                                                                                                                                                                                                  + +
                                                                                                                                                                                                  + + + +
                                                                                                                                                                                                  +
                                                                                                                                                                                                  +

                                                                                                                                                                                                  + $question + + + +

                                                                                                                                                                                                  + + + + + public + string + $question + + +

                                                                                                                                                                                                  The actual question as a string

                                                                                                                                                                                                  +
                                                                                                                                                                                                  + +
                                                                                                                                                                                                  + + + +
                                                                                                                                                                                                  +
                                                                                                                                                                                                  +

                                                                                                                                                                                                  + $type + + + +

                                                                                                                                                                                                  + + + + + public + QuestionType + $type + + +

                                                                                                                                                                                                  The question type to display, +it also hints wether it can accept one or multiple responses, +so only checkbox allows multiple responses

                                                                                                                                                                                                  +
                                                                                                                                                                                                  + +
                                                                                                                                                                                                  + + + +
                                                                                                                                                                                                  +
                                                                                                                                                                                                  +

                                                                                                                                                                                                  + $modelFields + + + +

                                                                                                                                                                                                  + + +

                                                                                                                                                                                                  The crm customer fields

                                                                                                                                                                                                  + + + protected + array<string|int, mixed> + $modelFields + = ['id', 'answer'] + + + + + +
                                                                                                                                                                                                  +
                                                                                                                                                                                                  +

                                                                                                                                                                                                  + $validation + + + +

                                                                                                                                                                                                  + + +

                                                                                                                                                                                                  Validation rules

                                                                                                                                                                                                  + + + protected + static array<string|int, mixed> + $validation + = ['id' => 'required|int', 'answer' => 'required|string|max:255'] + + + + + +
                                                                                                                                                                                                  +
                                                                                                                                                                                                  +

                                                                                                                                                                                                  + $answer + + + +

                                                                                                                                                                                                  + + +

                                                                                                                                                                                                  The actual answer as a string

                                                                                                                                                                                                  + + + private + string + $answer + = null + +

                                                                                                                                                                                                  Required +Max length 255 +Field Type varchar

                                                                                                                                                                                                  +
                                                                                                                                                                                                  + + + + +
                                                                                                                                                                                                  +
                                                                                                                                                                                                  +

                                                                                                                                                                                                  + $id + + + +

                                                                                                                                                                                                  + + +

                                                                                                                                                                                                  The question id

                                                                                                                                                                                                  + + + private + int + $id + + +

                                                                                                                                                                                                  Required +Field Type bigInt

                                                                                                                                                                                                  +
                                                                                                                                                                                                  + + + + +
                                                                                                                                                                                                  +
                                                                                                                                                                                                  + +
                                                                                                                                                                                                  +

                                                                                                                                                                                                  + Methods + +

                                                                                                                                                                                                  +
                                                                                                                                                                                                  +

                                                                                                                                                                                                  + __construct() + +

                                                                                                                                                                                                  + + +

                                                                                                                                                                                                  Answer

                                                                                                                                                                                                  + + + public + __construct([array<string|int, mixed> $properties = [] ]) : mixed + + +
                                                                                                                                                                                                  Parameters
                                                                                                                                                                                                  +
                                                                                                                                                                                                  +
                                                                                                                                                                                                  + $properties + : array<string|int, mixed> + = []
                                                                                                                                                                                                  +
                                                                                                                                                                                                  + +
                                                                                                                                                                                                  +
                                                                                                                                                                                                  + + +
                                                                                                                                                                                                  + Tags + +
                                                                                                                                                                                                  +
                                                                                                                                                                                                  +
                                                                                                                                                                                                  + throws +
                                                                                                                                                                                                  +
                                                                                                                                                                                                  + ValidationException + +

                                                                                                                                                                                                  If a field could not be validated.

                                                                                                                                                                                                  +
                                                                                                                                                                                                  + +
                                                                                                                                                                                                  +
                                                                                                                                                                                                  + +
                                                                                                                                                                                                  Return values
                                                                                                                                                                                                  + mixed + — + + +
                                                                                                                                                                                                  +
                                                                                                                                                                                                  +

                                                                                                                                                                                                  + jsonSerialize() + +

                                                                                                                                                                                                  + + +

                                                                                                                                                                                                  Serialize this object to an array

                                                                                                                                                                                                  + + + public + jsonSerialize() : array<string|int, mixed> + + + + + +
                                                                                                                                                                                                  Return values
                                                                                                                                                                                                  + array<string|int, mixed> + — + + +
                                                                                                                                                                                                  +
                                                                                                                                                                                                  +

                                                                                                                                                                                                  + setQuestionAnswers() + +

                                                                                                                                                                                                  + + +

                                                                                                                                                                                                  Set unanswered question for a specific customer

                                                                                                                                                                                                  + + + public + static setQuestionAnswers(string $hashcode, int $questionId, array<string|int, mixed> $answersId) : bool + + +
                                                                                                                                                                                                  Parameters
                                                                                                                                                                                                  +
                                                                                                                                                                                                  +
                                                                                                                                                                                                  + $hashcode + : string +
                                                                                                                                                                                                  +
                                                                                                                                                                                                  +

                                                                                                                                                                                                  The customer hashcode.

                                                                                                                                                                                                  +
                                                                                                                                                                                                  + +
                                                                                                                                                                                                  +
                                                                                                                                                                                                  + $questionId + : int +
                                                                                                                                                                                                  +
                                                                                                                                                                                                  +

                                                                                                                                                                                                  The question id.

                                                                                                                                                                                                  +
                                                                                                                                                                                                  + +
                                                                                                                                                                                                  +
                                                                                                                                                                                                  + $answersId + : array<string|int, mixed> +
                                                                                                                                                                                                  +
                                                                                                                                                                                                  +

                                                                                                                                                                                                  An array with answers id.

                                                                                                                                                                                                  +
                                                                                                                                                                                                  + +
                                                                                                                                                                                                  +
                                                                                                                                                                                                  + + +
                                                                                                                                                                                                  + Tags + +
                                                                                                                                                                                                  +
                                                                                                                                                                                                  +
                                                                                                                                                                                                  + throws +
                                                                                                                                                                                                  +
                                                                                                                                                                                                  + ValidationException + +

                                                                                                                                                                                                  If a hashcode is not a valid UUID.

                                                                                                                                                                                                  +
                                                                                                                                                                                                  + +
                                                                                                                                                                                                  +
                                                                                                                                                                                                  + throws +
                                                                                                                                                                                                  +
                                                                                                                                                                                                  + ValidationException + +

                                                                                                                                                                                                  If any of the provided ids are invalid.

                                                                                                                                                                                                  +
                                                                                                                                                                                                  + +
                                                                                                                                                                                                  +
                                                                                                                                                                                                  + throws +
                                                                                                                                                                                                  +
                                                                                                                                                                                                  + ApiErrorException + +

                                                                                                                                                                                                  If any error \LDC\LDCCRM\Enums\ApiError occurs. +Possibles are : - validationFailed, If given ids are wrong(CRM side).

                                                                                                                                                                                                  +
                                                                                                                                                                                                  + +
                                                                                                                                                                                                  +
                                                                                                                                                                                                  + throws +
                                                                                                                                                                                                  +
                                                                                                                                                                                                  + CrmException + +

                                                                                                                                                                                                  If an error occurs on server side or on getting response.

                                                                                                                                                                                                  +
                                                                                                                                                                                                  + +
                                                                                                                                                                                                  +
                                                                                                                                                                                                  + +
                                                                                                                                                                                                  Return values
                                                                                                                                                                                                  + bool + — +

                                                                                                                                                                                                  true if succeeded

                                                                                                                                                                                                  +
                                                                                                                                                                                                  + + +
                                                                                                                                                                                                  +
                                                                                                                                                                                                  + + + + +
                                                                                                                                                                                                  +
                                                                                                                                                                                                  +
                                                                                                                                                                                                  +
                                                                                                                                                                                                  +

                                                                                                                                                                                                  Search results

                                                                                                                                                                                                  + +
                                                                                                                                                                                                  +
                                                                                                                                                                                                  +
                                                                                                                                                                                                    +
                                                                                                                                                                                                    +
                                                                                                                                                                                                    +
                                                                                                                                                                                                    +
                                                                                                                                                                                                    +
                                                                                                                                                                                                    + + +
                                                                                                                                                                                                    + + + + + + + + diff --git a/app/Lib/vendor/crm-client-3.0.6/documentation/classes/LDC-LDCCRM-Models-ArcadiaMailDefault.html b/app/Lib/vendor/crm-client-3.0.6/documentation/classes/LDC-LDCCRM-Models-ArcadiaMailDefault.html new file mode 100644 index 0000000..bfb379b --- /dev/null +++ b/app/Lib/vendor/crm-client-3.0.6/documentation/classes/LDC-LDCCRM-Models-ArcadiaMailDefault.html @@ -0,0 +1,2111 @@ + + + + + CRM V2 + + + + + + + + + + + + + + + + + + + +
                                                                                                                                                                                                    +

                                                                                                                                                                                                    CRM V2

                                                                                                                                                                                                    + + + + + +
                                                                                                                                                                                                    + +
                                                                                                                                                                                                    +
                                                                                                                                                                                                    + + + + +
                                                                                                                                                                                                    + + +
                                                                                                                                                                                                    +

                                                                                                                                                                                                    + ArcadiaMailDefault + + + extends CrmClientModel + + +
                                                                                                                                                                                                    + in package + +
                                                                                                                                                                                                    + + +

                                                                                                                                                                                                    + + + +

                                                                                                                                                                                                    This class represents the customer info with +the account validation status

                                                                                                                                                                                                    + + + +
                                                                                                                                                                                                    + Tags + +
                                                                                                                                                                                                    +
                                                                                                                                                                                                    +
                                                                                                                                                                                                    + category +
                                                                                                                                                                                                    +
                                                                                                                                                                                                    + +

                                                                                                                                                                                                    Api Models

                                                                                                                                                                                                    +
                                                                                                                                                                                                    + +
                                                                                                                                                                                                    +
                                                                                                                                                                                                    + subpackage +
                                                                                                                                                                                                    +
                                                                                                                                                                                                    + +

                                                                                                                                                                                                    models

                                                                                                                                                                                                    +
                                                                                                                                                                                                    + +
                                                                                                                                                                                                    +
                                                                                                                                                                                                    + author +
                                                                                                                                                                                                    +
                                                                                                                                                                                                    + +

                                                                                                                                                                                                    Jérémy Munsch jeremy.munsch@ldc.fr

                                                                                                                                                                                                    +
                                                                                                                                                                                                    + +
                                                                                                                                                                                                    +
                                                                                                                                                                                                    + + + + + + +

                                                                                                                                                                                                    + Table of Contents + +

                                                                                                                                                                                                    + +
                                                                                                                                                                                                    +
                                                                                                                                                                                                    + $address + +  : string +
                                                                                                                                                                                                    +
                                                                                                                                                                                                    + +
                                                                                                                                                                                                    + $address2 + +  : string +
                                                                                                                                                                                                    +
                                                                                                                                                                                                    + +
                                                                                                                                                                                                    + $city + +  : string +
                                                                                                                                                                                                    +
                                                                                                                                                                                                    + +
                                                                                                                                                                                                    + $email + +  : string +
                                                                                                                                                                                                    +
                                                                                                                                                                                                    + +
                                                                                                                                                                                                    + $firstname + +  : string +
                                                                                                                                                                                                    +
                                                                                                                                                                                                    + +
                                                                                                                                                                                                    + $label_type_support + +  : string +
                                                                                                                                                                                                    +
                                                                                                                                                                                                    + +
                                                                                                                                                                                                    + $lastname + +  : string +
                                                                                                                                                                                                    +
                                                                                                                                                                                                    + +
                                                                                                                                                                                                    + $operation + +  : int +
                                                                                                                                                                                                    +
                                                                                                                                                                                                    + +
                                                                                                                                                                                                    + $order_date + +  : string +
                                                                                                                                                                                                    +
                                                                                                                                                                                                    + +
                                                                                                                                                                                                    + $order_num + +  : int +
                                                                                                                                                                                                    +
                                                                                                                                                                                                    + +
                                                                                                                                                                                                    + $package_unit_weight + +  : int +
                                                                                                                                                                                                    +
                                                                                                                                                                                                    + +
                                                                                                                                                                                                    + $phone + +  : string +
                                                                                                                                                                                                    +
                                                                                                                                                                                                    + +
                                                                                                                                                                                                    + $postcode + +  : string +
                                                                                                                                                                                                    +
                                                                                                                                                                                                    + +
                                                                                                                                                                                                    + $state_order + +  : ArcadiaOrderType +
                                                                                                                                                                                                    +
                                                                                                                                                                                                    + +
                                                                                                                                                                                                    + $support_code + +  : int +
                                                                                                                                                                                                    +
                                                                                                                                                                                                    + +
                                                                                                                                                                                                    + $modelFields + +  : array<string|int, mixed> +
                                                                                                                                                                                                    +
                                                                                                                                                                                                    The crm customer fields
                                                                                                                                                                                                    + +
                                                                                                                                                                                                    + $validation + +  : array<string|int, mixed> +
                                                                                                                                                                                                    +
                                                                                                                                                                                                    Validation rules
                                                                                                                                                                                                    + +
                                                                                                                                                                                                    + $address + +  : string +
                                                                                                                                                                                                    +
                                                                                                                                                                                                    The user address (street number, name, etc)
                                                                                                                                                                                                    + +
                                                                                                                                                                                                    + $address2 + +  : string +
                                                                                                                                                                                                    +
                                                                                                                                                                                                    The user address 2nd part (street number, name, more, etc)
                                                                                                                                                                                                    + +
                                                                                                                                                                                                    + $city + +  : string +
                                                                                                                                                                                                    +
                                                                                                                                                                                                    The user address city
                                                                                                                                                                                                    + +
                                                                                                                                                                                                    + $email + +  : string +
                                                                                                                                                                                                    +
                                                                                                                                                                                                    An RFC Valid Email
                                                                                                                                                                                                    + +
                                                                                                                                                                                                    + $firstname + +  : string +
                                                                                                                                                                                                    +
                                                                                                                                                                                                    First name
                                                                                                                                                                                                    + +
                                                                                                                                                                                                    + $label_type_support + +  : string +
                                                                                                                                                                                                    +
                                                                                                                                                                                                    The arcadia type support label
                                                                                                                                                                                                    + +
                                                                                                                                                                                                    + $lastname + +  : string +
                                                                                                                                                                                                    +
                                                                                                                                                                                                    Last name
                                                                                                                                                                                                    + +
                                                                                                                                                                                                    + $operation + +  : int +
                                                                                                                                                                                                    +
                                                                                                                                                                                                    The arcadia operation code
                                                                                                                                                                                                    + +
                                                                                                                                                                                                    + $order_date + +  : string +
                                                                                                                                                                                                    +
                                                                                                                                                                                                    The arcadia order date
                                                                                                                                                                                                    + +
                                                                                                                                                                                                    + $order_num + +  : int +
                                                                                                                                                                                                    +
                                                                                                                                                                                                    The arcadia order number
                                                                                                                                                                                                    + +
                                                                                                                                                                                                    + $package_unit_weight + +  : int +
                                                                                                                                                                                                    +
                                                                                                                                                                                                    The arcadia package unit weight
                                                                                                                                                                                                    + +
                                                                                                                                                                                                    + $phone + +  : string +
                                                                                                                                                                                                    +
                                                                                                                                                                                                    The user phone
                                                                                                                                                                                                    + +
                                                                                                                                                                                                    + $postcode + +  : string +
                                                                                                                                                                                                    +
                                                                                                                                                                                                    The user address postcode
                                                                                                                                                                                                    + +
                                                                                                                                                                                                    + $state_order + +  : int +
                                                                                                                                                                                                    +
                                                                                                                                                                                                    The arcadia state order
                                                                                                                                                                                                    + +
                                                                                                                                                                                                    + $support_code + +  : int +
                                                                                                                                                                                                    +
                                                                                                                                                                                                    The arcadia support code
                                                                                                                                                                                                    + +
                                                                                                                                                                                                    + __construct() + +  : mixed +
                                                                                                                                                                                                    +
                                                                                                                                                                                                    ArcadiaMailDefault
                                                                                                                                                                                                    + +
                                                                                                                                                                                                    + __get() + +  : mixed +
                                                                                                                                                                                                    +
                                                                                                                                                                                                    Generic accessor
                                                                                                                                                                                                    + +
                                                                                                                                                                                                    + __set() + +  : void +
                                                                                                                                                                                                    +
                                                                                                                                                                                                    Set prop
                                                                                                                                                                                                    + +
                                                                                                                                                                                                    + fill() + +  : void +
                                                                                                                                                                                                    +
                                                                                                                                                                                                    Fill data into this model +using validation rules
                                                                                                                                                                                                    + +
                                                                                                                                                                                                    + jsonSerialize() + +  : array<string|int, mixed> +
                                                                                                                                                                                                    +
                                                                                                                                                                                                    Serialize this object to an array
                                                                                                                                                                                                    + +
                                                                                                                                                                                                    + send() + +  : bool +
                                                                                                                                                                                                    +
                                                                                                                                                                                                    Send The actual mail
                                                                                                                                                                                                    + +
                                                                                                                                                                                                    + validateAllValues() + +  : array<string|int, mixed> +
                                                                                                                                                                                                    +
                                                                                                                                                                                                    Validate all model properties
                                                                                                                                                                                                    + +
                                                                                                                                                                                                    + + + + + + +
                                                                                                                                                                                                    +

                                                                                                                                                                                                    + Properties + +

                                                                                                                                                                                                    +
                                                                                                                                                                                                    +

                                                                                                                                                                                                    + $address + + + +

                                                                                                                                                                                                    + + + + + public + string + $address + + +

                                                                                                                                                                                                    The account address (street number, name, build, flat number)

                                                                                                                                                                                                    +
                                                                                                                                                                                                    + +
                                                                                                                                                                                                    + + + +
                                                                                                                                                                                                    +
                                                                                                                                                                                                    +

                                                                                                                                                                                                    + $address2 + + + +

                                                                                                                                                                                                    + + + + + public + string + $address2 + + +

                                                                                                                                                                                                    The account phone (address complement)

                                                                                                                                                                                                    +
                                                                                                                                                                                                    + +
                                                                                                                                                                                                    + + + +
                                                                                                                                                                                                    +
                                                                                                                                                                                                    +

                                                                                                                                                                                                    + $city + + + +

                                                                                                                                                                                                    + + + + + public + string + $city + + +

                                                                                                                                                                                                    The account city name

                                                                                                                                                                                                    +
                                                                                                                                                                                                    + +
                                                                                                                                                                                                    + + + +
                                                                                                                                                                                                    +
                                                                                                                                                                                                    +

                                                                                                                                                                                                    + $email + + + +

                                                                                                                                                                                                    + + + + + public + string + $email + + +

                                                                                                                                                                                                    Must be a rfc valid email on a valid domain name

                                                                                                                                                                                                    +
                                                                                                                                                                                                    + +
                                                                                                                                                                                                    + + + +
                                                                                                                                                                                                    +
                                                                                                                                                                                                    +

                                                                                                                                                                                                    + $firstname + + + +

                                                                                                                                                                                                    + + + + + public + string + $firstname + + +

                                                                                                                                                                                                    The account first name

                                                                                                                                                                                                    +
                                                                                                                                                                                                    + +
                                                                                                                                                                                                    + + + +
                                                                                                                                                                                                    +
                                                                                                                                                                                                    +

                                                                                                                                                                                                    + $label_type_support + + + +

                                                                                                                                                                                                    + + + + + public + string + $label_type_support + + +

                                                                                                                                                                                                    The arcadia type support label

                                                                                                                                                                                                    +
                                                                                                                                                                                                    + +
                                                                                                                                                                                                    + + + +
                                                                                                                                                                                                    +
                                                                                                                                                                                                    +

                                                                                                                                                                                                    + $lastname + + + +

                                                                                                                                                                                                    + + + + + public + string + $lastname + + +

                                                                                                                                                                                                    The account last name

                                                                                                                                                                                                    +
                                                                                                                                                                                                    + +
                                                                                                                                                                                                    + + + +
                                                                                                                                                                                                    +
                                                                                                                                                                                                    +

                                                                                                                                                                                                    + $operation + + + +

                                                                                                                                                                                                    + + + + + public + int + $operation + + +

                                                                                                                                                                                                    The arcadia operation code

                                                                                                                                                                                                    +
                                                                                                                                                                                                    + +
                                                                                                                                                                                                    + + + +
                                                                                                                                                                                                    +
                                                                                                                                                                                                    +

                                                                                                                                                                                                    + $order_date + + + +

                                                                                                                                                                                                    + + + + + public + string + $order_date + + +

                                                                                                                                                                                                    The arcadia order date 'yyyy-mm-dd HH:ii:ss'

                                                                                                                                                                                                    +
                                                                                                                                                                                                    + +
                                                                                                                                                                                                    + + + +
                                                                                                                                                                                                    +
                                                                                                                                                                                                    +

                                                                                                                                                                                                    + $order_num + + + +

                                                                                                                                                                                                    + + + + + public + int + $order_num + + +

                                                                                                                                                                                                    The arcadia order number

                                                                                                                                                                                                    +
                                                                                                                                                                                                    + +
                                                                                                                                                                                                    + + + +
                                                                                                                                                                                                    +
                                                                                                                                                                                                    +

                                                                                                                                                                                                    + $package_unit_weight + + + +

                                                                                                                                                                                                    + + + + + public + int + $package_unit_weight + + +

                                                                                                                                                                                                    The arcadia package unit weight

                                                                                                                                                                                                    +
                                                                                                                                                                                                    + +
                                                                                                                                                                                                    + + + +
                                                                                                                                                                                                    +
                                                                                                                                                                                                    +

                                                                                                                                                                                                    + $phone + + + +

                                                                                                                                                                                                    + + + + + public + string + $phone + + +

                                                                                                                                                                                                    The account phone

                                                                                                                                                                                                    +
                                                                                                                                                                                                    + +
                                                                                                                                                                                                    + + + +
                                                                                                                                                                                                    +
                                                                                                                                                                                                    +

                                                                                                                                                                                                    + $postcode + + + +

                                                                                                                                                                                                    + + + + + public + string + $postcode + + +

                                                                                                                                                                                                    The account city postcode

                                                                                                                                                                                                    +
                                                                                                                                                                                                    + +
                                                                                                                                                                                                    + + + +
                                                                                                                                                                                                    + +
                                                                                                                                                                                                    +

                                                                                                                                                                                                    + $support_code + + + +

                                                                                                                                                                                                    + + + + + public + int + $support_code + + +

                                                                                                                                                                                                    The arcadia support code

                                                                                                                                                                                                    +
                                                                                                                                                                                                    + +
                                                                                                                                                                                                    + + + +
                                                                                                                                                                                                    +
                                                                                                                                                                                                    +

                                                                                                                                                                                                    + $modelFields + + + +

                                                                                                                                                                                                    + + +

                                                                                                                                                                                                    The crm customer fields

                                                                                                                                                                                                    + + + protected + array<string|int, mixed> + $modelFields + = ['email', 'firstname', 'lastname', 'phone', 'address', 'address2', 'city', 'postcode', 'operation', 'support_code', 'label_type_support', 'order_date', 'order_num', 'state_order', 'package_unit_weight'] + + + + + +
                                                                                                                                                                                                    +
                                                                                                                                                                                                    +

                                                                                                                                                                                                    + $validation + + + +

                                                                                                                                                                                                    + + +

                                                                                                                                                                                                    Validation rules

                                                                                                                                                                                                    + + + protected + static array<string|int, mixed> + $validation + = ['email' => 'required|email', 'firstname' => 'required|string|min:2|max:255', 'lastname' => 'required|string|min:2|max:255', 'phone' => 'sometimes|string|min:10|max:255', 'address' => 'sometimes|string|max:255', 'address2' => 'sometimes|string|max:255', 'city' => 'sometimes|string|max:255', 'postcode' => 'sometimes|string|max:255', 'operation' => 'required|int', 'support_code' => 'required|int', 'label_type_support' => 'required|string|min:2|max:255', 'order_date' => 'required|date_format:Y/m/d H:i:s', 'order_num' => 'required|int', 'state_order' => ['required'], 'package_unit_weight' => 'required|int'] + + + + + +
                                                                                                                                                                                                    +
                                                                                                                                                                                                    +

                                                                                                                                                                                                    + $address + + + +

                                                                                                                                                                                                    + + +

                                                                                                                                                                                                    The user address (street number, name, etc)

                                                                                                                                                                                                    + + + private + string + $address + = null + +

                                                                                                                                                                                                    Validate: sometimes,string

                                                                                                                                                                                                    +

                                                                                                                                                                                                    Min length NA +Max length 255 +Field Type varchar

                                                                                                                                                                                                    +
                                                                                                                                                                                                    + + + + +
                                                                                                                                                                                                    +
                                                                                                                                                                                                    +

                                                                                                                                                                                                    + $address2 + + + +

                                                                                                                                                                                                    + + +

                                                                                                                                                                                                    The user address 2nd part (street number, name, more, etc)

                                                                                                                                                                                                    + + + private + string + $address2 + = null + +

                                                                                                                                                                                                    Validate: sometimes,string

                                                                                                                                                                                                    +

                                                                                                                                                                                                    Min length NA +Max length 255 +Field Type varchar

                                                                                                                                                                                                    +
                                                                                                                                                                                                    + + + + +
                                                                                                                                                                                                    +
                                                                                                                                                                                                    +

                                                                                                                                                                                                    + $city + + + +

                                                                                                                                                                                                    + + +

                                                                                                                                                                                                    The user address city

                                                                                                                                                                                                    + + + private + string + $city + = null + +

                                                                                                                                                                                                    Validate: sometimes,string

                                                                                                                                                                                                    +

                                                                                                                                                                                                    Min length NA +Max length 255 +Field Type varchar

                                                                                                                                                                                                    +
                                                                                                                                                                                                    + + + + +
                                                                                                                                                                                                    +
                                                                                                                                                                                                    +

                                                                                                                                                                                                    + $email + + + +

                                                                                                                                                                                                    + + +

                                                                                                                                                                                                    An RFC Valid Email

                                                                                                                                                                                                    + + + private + string + $email + = null + +

                                                                                                                                                                                                    Validate: rfc,dns,spoof,filter

                                                                                                                                                                                                    +

                                                                                                                                                                                                    Required +Min length N/A +Max length 255 +Field Type varchar

                                                                                                                                                                                                    +
                                                                                                                                                                                                    + + + + +
                                                                                                                                                                                                    +
                                                                                                                                                                                                    +

                                                                                                                                                                                                    + $firstname + + + +

                                                                                                                                                                                                    + + +

                                                                                                                                                                                                    First name

                                                                                                                                                                                                    + + + private + string + $firstname + = null + +

                                                                                                                                                                                                    Required +Min length 2 +Max length 255 +Field Type varchar

                                                                                                                                                                                                    +
                                                                                                                                                                                                    + + + + +
                                                                                                                                                                                                    +
                                                                                                                                                                                                    +

                                                                                                                                                                                                    + $label_type_support + + + +

                                                                                                                                                                                                    + + +

                                                                                                                                                                                                    The arcadia type support label

                                                                                                                                                                                                    + + + private + string + $label_type_support + = null + +

                                                                                                                                                                                                    Validate: string

                                                                                                                                                                                                    +

                                                                                                                                                                                                    Required

                                                                                                                                                                                                    +
                                                                                                                                                                                                    + + + + +
                                                                                                                                                                                                    +
                                                                                                                                                                                                    +

                                                                                                                                                                                                    + $lastname + + + +

                                                                                                                                                                                                    + + +

                                                                                                                                                                                                    Last name

                                                                                                                                                                                                    + + + private + string + $lastname + = null + +

                                                                                                                                                                                                    Required +Min length 2 +Max length 255 +Field Type varchar

                                                                                                                                                                                                    +
                                                                                                                                                                                                    + + + + +
                                                                                                                                                                                                    +
                                                                                                                                                                                                    +

                                                                                                                                                                                                    + $operation + + + +

                                                                                                                                                                                                    + + +

                                                                                                                                                                                                    The arcadia operation code

                                                                                                                                                                                                    + + + private + int + $operation + = null + +

                                                                                                                                                                                                    Validate: int

                                                                                                                                                                                                    +

                                                                                                                                                                                                    Required

                                                                                                                                                                                                    +
                                                                                                                                                                                                    + + + + +
                                                                                                                                                                                                    +
                                                                                                                                                                                                    +

                                                                                                                                                                                                    + $order_date + + + +

                                                                                                                                                                                                    + + +

                                                                                                                                                                                                    The arcadia order date

                                                                                                                                                                                                    + + + private + string + $order_date + = null + +

                                                                                                                                                                                                    Validate: date

                                                                                                                                                                                                    +

                                                                                                                                                                                                    Required

                                                                                                                                                                                                    +
                                                                                                                                                                                                    + + + + +
                                                                                                                                                                                                    +
                                                                                                                                                                                                    +

                                                                                                                                                                                                    + $order_num + + + +

                                                                                                                                                                                                    + + +

                                                                                                                                                                                                    The arcadia order number

                                                                                                                                                                                                    + + + private + int + $order_num + = null + +

                                                                                                                                                                                                    Validate: numeric,digits:9

                                                                                                                                                                                                    +

                                                                                                                                                                                                    Required

                                                                                                                                                                                                    +
                                                                                                                                                                                                    + + + + +
                                                                                                                                                                                                    +
                                                                                                                                                                                                    +

                                                                                                                                                                                                    + $package_unit_weight + + + +

                                                                                                                                                                                                    + + +

                                                                                                                                                                                                    The arcadia package unit weight

                                                                                                                                                                                                    + + + private + int + $package_unit_weight + = null + +

                                                                                                                                                                                                    Validate: integer

                                                                                                                                                                                                    +

                                                                                                                                                                                                    Required

                                                                                                                                                                                                    +
                                                                                                                                                                                                    + + + + +
                                                                                                                                                                                                    +
                                                                                                                                                                                                    +

                                                                                                                                                                                                    + $phone + + + +

                                                                                                                                                                                                    + + +

                                                                                                                                                                                                    The user phone

                                                                                                                                                                                                    + + + private + string + $phone + = null + +

                                                                                                                                                                                                    Validate: sometimes,string

                                                                                                                                                                                                    +

                                                                                                                                                                                                    Required +Min length NA +Max length 255 +Field Type varchar

                                                                                                                                                                                                    +
                                                                                                                                                                                                    + + + + +
                                                                                                                                                                                                    +
                                                                                                                                                                                                    +

                                                                                                                                                                                                    + $postcode + + + +

                                                                                                                                                                                                    + + +

                                                                                                                                                                                                    The user address postcode

                                                                                                                                                                                                    + + + private + string + $postcode + = null + +

                                                                                                                                                                                                    Validate: string

                                                                                                                                                                                                    +

                                                                                                                                                                                                    Required +Min length NA +Max length 255 +Field Type varchar

                                                                                                                                                                                                    +
                                                                                                                                                                                                    + + + + +
                                                                                                                                                                                                    +
                                                                                                                                                                                                    +

                                                                                                                                                                                                    + $state_order + + + +

                                                                                                                                                                                                    + + +

                                                                                                                                                                                                    The arcadia state order

                                                                                                                                                                                                    + + + private + int + $state_order + = null + +

                                                                                                                                                                                                    Validate: in ArcadiaOrderType::toValues()

                                                                                                                                                                                                    +

                                                                                                                                                                                                    Required

                                                                                                                                                                                                    +
                                                                                                                                                                                                    + + + + +
                                                                                                                                                                                                    +
                                                                                                                                                                                                    +

                                                                                                                                                                                                    + $support_code + + + +

                                                                                                                                                                                                    + + +

                                                                                                                                                                                                    The arcadia support code

                                                                                                                                                                                                    + + + private + int + $support_code + = null + +

                                                                                                                                                                                                    Validate: int

                                                                                                                                                                                                    +

                                                                                                                                                                                                    Required

                                                                                                                                                                                                    +
                                                                                                                                                                                                    + + + + +
                                                                                                                                                                                                    +
                                                                                                                                                                                                    + +
                                                                                                                                                                                                    +

                                                                                                                                                                                                    + Methods + +

                                                                                                                                                                                                    +
                                                                                                                                                                                                    +

                                                                                                                                                                                                    + __construct() + +

                                                                                                                                                                                                    + + +

                                                                                                                                                                                                    ArcadiaMailDefault

                                                                                                                                                                                                    + + + public + __construct([array<string|int, mixed> $properties = [] ]) : mixed + + +
                                                                                                                                                                                                    Parameters
                                                                                                                                                                                                    +
                                                                                                                                                                                                    +
                                                                                                                                                                                                    + $properties + : array<string|int, mixed> + = []
                                                                                                                                                                                                    +
                                                                                                                                                                                                    + +
                                                                                                                                                                                                    +
                                                                                                                                                                                                    + + +
                                                                                                                                                                                                    + Tags + +
                                                                                                                                                                                                    +
                                                                                                                                                                                                    +
                                                                                                                                                                                                    + throws +
                                                                                                                                                                                                    +
                                                                                                                                                                                                    + ValidationException + +

                                                                                                                                                                                                    If a field could not be validated.

                                                                                                                                                                                                    +
                                                                                                                                                                                                    + +
                                                                                                                                                                                                    +
                                                                                                                                                                                                    + +
                                                                                                                                                                                                    Return values
                                                                                                                                                                                                    + mixed + — + + +
                                                                                                                                                                                                    +
                                                                                                                                                                                                    +

                                                                                                                                                                                                    + __get() + +

                                                                                                                                                                                                    + + +

                                                                                                                                                                                                    Generic accessor

                                                                                                                                                                                                    + + + public + __get(string $field) : mixed + + +
                                                                                                                                                                                                    Parameters
                                                                                                                                                                                                    +
                                                                                                                                                                                                    +
                                                                                                                                                                                                    + $field + : string +
                                                                                                                                                                                                    +
                                                                                                                                                                                                    + +
                                                                                                                                                                                                    +
                                                                                                                                                                                                    + + + +
                                                                                                                                                                                                    Return values
                                                                                                                                                                                                    + mixed + — + + +
                                                                                                                                                                                                    +
                                                                                                                                                                                                    +

                                                                                                                                                                                                    + __set() + +

                                                                                                                                                                                                    + + +

                                                                                                                                                                                                    Set prop

                                                                                                                                                                                                    + + + public + __set(string $field, mixed $value) : void + + +
                                                                                                                                                                                                    Parameters
                                                                                                                                                                                                    +
                                                                                                                                                                                                    +
                                                                                                                                                                                                    + $field + : string +
                                                                                                                                                                                                    +
                                                                                                                                                                                                    + +
                                                                                                                                                                                                    +
                                                                                                                                                                                                    + $value + : mixed +
                                                                                                                                                                                                    +
                                                                                                                                                                                                    + +
                                                                                                                                                                                                    +
                                                                                                                                                                                                    + + +
                                                                                                                                                                                                    + Tags + +
                                                                                                                                                                                                    +
                                                                                                                                                                                                    +
                                                                                                                                                                                                    + throws +
                                                                                                                                                                                                    +
                                                                                                                                                                                                    + TypeError + +

                                                                                                                                                                                                    If the field has an incorrect value.

                                                                                                                                                                                                    +
                                                                                                                                                                                                    + +
                                                                                                                                                                                                    +
                                                                                                                                                                                                    + throws +
                                                                                                                                                                                                    +
                                                                                                                                                                                                    + AccessError + +

                                                                                                                                                                                                    If trying to set a value on a unknown property.

                                                                                                                                                                                                    +
                                                                                                                                                                                                    + +
                                                                                                                                                                                                    +
                                                                                                                                                                                                    + +
                                                                                                                                                                                                    Return values
                                                                                                                                                                                                    + void + — + + +
                                                                                                                                                                                                    +
                                                                                                                                                                                                    +

                                                                                                                                                                                                    + fill() + +

                                                                                                                                                                                                    + + +

                                                                                                                                                                                                    Fill data into this model +using validation rules

                                                                                                                                                                                                    + + + public + fill(array<string|int, mixed> $properties) : void + + +
                                                                                                                                                                                                    Parameters
                                                                                                                                                                                                    +
                                                                                                                                                                                                    +
                                                                                                                                                                                                    + $properties + : array<string|int, mixed> +
                                                                                                                                                                                                    +
                                                                                                                                                                                                    + +
                                                                                                                                                                                                    +
                                                                                                                                                                                                    + + +
                                                                                                                                                                                                    + Tags + +
                                                                                                                                                                                                    +
                                                                                                                                                                                                    +
                                                                                                                                                                                                    + throws +
                                                                                                                                                                                                    +
                                                                                                                                                                                                    + ValidationException + +

                                                                                                                                                                                                    If a field could not be validated.

                                                                                                                                                                                                    +
                                                                                                                                                                                                    + +
                                                                                                                                                                                                    +
                                                                                                                                                                                                    + +
                                                                                                                                                                                                    Return values
                                                                                                                                                                                                    + void + — + + +
                                                                                                                                                                                                    +
                                                                                                                                                                                                    +

                                                                                                                                                                                                    + jsonSerialize() + +

                                                                                                                                                                                                    + + +

                                                                                                                                                                                                    Serialize this object to an array

                                                                                                                                                                                                    + + + public + jsonSerialize() : array<string|int, mixed> + + + + + +
                                                                                                                                                                                                    Return values
                                                                                                                                                                                                    + array<string|int, mixed> + — + + +
                                                                                                                                                                                                    +
                                                                                                                                                                                                    +

                                                                                                                                                                                                    + send() + +

                                                                                                                                                                                                    + + +

                                                                                                                                                                                                    Send The actual mail

                                                                                                                                                                                                    + + + public + send() : bool + + + + +
                                                                                                                                                                                                    + Tags + +
                                                                                                                                                                                                    +
                                                                                                                                                                                                    +
                                                                                                                                                                                                    + throws +
                                                                                                                                                                                                    +
                                                                                                                                                                                                    + ValidationException + +

                                                                                                                                                                                                    If a field could not be validated.

                                                                                                                                                                                                    +
                                                                                                                                                                                                    + +
                                                                                                                                                                                                    +
                                                                                                                                                                                                    + throws +
                                                                                                                                                                                                    +
                                                                                                                                                                                                    + CrmException + +

                                                                                                                                                                                                    If an error occurs on server side or on getting response.

                                                                                                                                                                                                    +
                                                                                                                                                                                                    + +
                                                                                                                                                                                                    +
                                                                                                                                                                                                    + throws +
                                                                                                                                                                                                    +
                                                                                                                                                                                                    + ApiErrorException + +

                                                                                                                                                                                                    If any error or \LDC\LDCCRM\Enums\ApiError occurs. +Possibles are : - validationFailed, If provided data is wrong(CRM side).

                                                                                                                                                                                                    +
                                                                                                                                                                                                    + +
                                                                                                                                                                                                    +
                                                                                                                                                                                                    + +
                                                                                                                                                                                                    Return values
                                                                                                                                                                                                    + bool + — +

                                                                                                                                                                                                    true if succeeded

                                                                                                                                                                                                    +
                                                                                                                                                                                                    + + +
                                                                                                                                                                                                    +
                                                                                                                                                                                                    +

                                                                                                                                                                                                    + validateAllValues() + +

                                                                                                                                                                                                    + + +

                                                                                                                                                                                                    Validate all model properties

                                                                                                                                                                                                    + + + protected + validateAllValues([array<string|int, mixed> $ignore = [] ]) : array<string|int, mixed> + + +
                                                                                                                                                                                                    Parameters
                                                                                                                                                                                                    +
                                                                                                                                                                                                    +
                                                                                                                                                                                                    + $ignore + : array<string|int, mixed> + = []
                                                                                                                                                                                                    +
                                                                                                                                                                                                    + +
                                                                                                                                                                                                    +
                                                                                                                                                                                                    + + +
                                                                                                                                                                                                    + Tags + +
                                                                                                                                                                                                    +
                                                                                                                                                                                                    +
                                                                                                                                                                                                    + throws +
                                                                                                                                                                                                    +
                                                                                                                                                                                                    + ValidationException + +

                                                                                                                                                                                                    If a field could not be validated.

                                                                                                                                                                                                    +
                                                                                                                                                                                                    + +
                                                                                                                                                                                                    +
                                                                                                                                                                                                    + +
                                                                                                                                                                                                    Return values
                                                                                                                                                                                                    + array<string|int, mixed> + — +

                                                                                                                                                                                                    the validated values

                                                                                                                                                                                                    +
                                                                                                                                                                                                    + + +
                                                                                                                                                                                                    +
                                                                                                                                                                                                    + + + + +
                                                                                                                                                                                                    +
                                                                                                                                                                                                    +
                                                                                                                                                                                                    +
                                                                                                                                                                                                    +

                                                                                                                                                                                                    Search results

                                                                                                                                                                                                    + +
                                                                                                                                                                                                    +
                                                                                                                                                                                                    +
                                                                                                                                                                                                      +
                                                                                                                                                                                                      +
                                                                                                                                                                                                      +
                                                                                                                                                                                                      +
                                                                                                                                                                                                      +
                                                                                                                                                                                                      + + +
                                                                                                                                                                                                      + + + + + + + + diff --git a/app/Lib/vendor/crm-client-3.0.6/documentation/classes/LDC-LDCCRM-Models-ArcadiaMailGame.html b/app/Lib/vendor/crm-client-3.0.6/documentation/classes/LDC-LDCCRM-Models-ArcadiaMailGame.html new file mode 100644 index 0000000..b6f748b --- /dev/null +++ b/app/Lib/vendor/crm-client-3.0.6/documentation/classes/LDC-LDCCRM-Models-ArcadiaMailGame.html @@ -0,0 +1,1900 @@ + + + + + CRM V2 + + + + + + + + + + + + + + + + + + + +
                                                                                                                                                                                                      +

                                                                                                                                                                                                      CRM V2

                                                                                                                                                                                                      + + + + + +
                                                                                                                                                                                                      + +
                                                                                                                                                                                                      +
                                                                                                                                                                                                      + + + + +
                                                                                                                                                                                                      + + +
                                                                                                                                                                                                      +

                                                                                                                                                                                                      + ArcadiaMailGame + + + extends CrmClientModel + + +
                                                                                                                                                                                                      + in package + +
                                                                                                                                                                                                      + + +

                                                                                                                                                                                                      + + + +

                                                                                                                                                                                                      This class represents the customer info with +the account validation status

                                                                                                                                                                                                      + + + +
                                                                                                                                                                                                      + Tags + +
                                                                                                                                                                                                      +
                                                                                                                                                                                                      +
                                                                                                                                                                                                      + category +
                                                                                                                                                                                                      +
                                                                                                                                                                                                      + +

                                                                                                                                                                                                      Api Models

                                                                                                                                                                                                      +
                                                                                                                                                                                                      + +
                                                                                                                                                                                                      +
                                                                                                                                                                                                      + subpackage +
                                                                                                                                                                                                      +
                                                                                                                                                                                                      + +

                                                                                                                                                                                                      models

                                                                                                                                                                                                      +
                                                                                                                                                                                                      + +
                                                                                                                                                                                                      +
                                                                                                                                                                                                      + author +
                                                                                                                                                                                                      +
                                                                                                                                                                                                      + +

                                                                                                                                                                                                      Jérémy Munsch jeremy.munsch@ldc.fr

                                                                                                                                                                                                      +
                                                                                                                                                                                                      + +
                                                                                                                                                                                                      +
                                                                                                                                                                                                      + + + + + + +

                                                                                                                                                                                                      + Table of Contents + +

                                                                                                                                                                                                      + +
                                                                                                                                                                                                      +
                                                                                                                                                                                                      + $address + +  : string +
                                                                                                                                                                                                      +
                                                                                                                                                                                                      + +
                                                                                                                                                                                                      + $address2 + +  : string +
                                                                                                                                                                                                      +
                                                                                                                                                                                                      + +
                                                                                                                                                                                                      + $city + +  : string +
                                                                                                                                                                                                      +
                                                                                                                                                                                                      + +
                                                                                                                                                                                                      + $code_on_pack + +  : string +
                                                                                                                                                                                                      +
                                                                                                                                                                                                      + +
                                                                                                                                                                                                      + $code_unique + +  : string +
                                                                                                                                                                                                      +
                                                                                                                                                                                                      + +
                                                                                                                                                                                                      + $email + +  : string +
                                                                                                                                                                                                      +
                                                                                                                                                                                                      + +
                                                                                                                                                                                                      + $firstname + +  : string +
                                                                                                                                                                                                      +
                                                                                                                                                                                                      + +
                                                                                                                                                                                                      + $label_type_support + +  : string +
                                                                                                                                                                                                      +
                                                                                                                                                                                                      + +
                                                                                                                                                                                                      + $lastname + +  : string +
                                                                                                                                                                                                      +
                                                                                                                                                                                                      + +
                                                                                                                                                                                                      + $operation + +  : int +
                                                                                                                                                                                                      +
                                                                                                                                                                                                      + +
                                                                                                                                                                                                      + $order_date + +  : string +
                                                                                                                                                                                                      +
                                                                                                                                                                                                      + +
                                                                                                                                                                                                      + $phone + +  : string +
                                                                                                                                                                                                      +
                                                                                                                                                                                                      + +
                                                                                                                                                                                                      + $postcode + +  : string +
                                                                                                                                                                                                      +
                                                                                                                                                                                                      + +
                                                                                                                                                                                                      + $support_code + +  : int +
                                                                                                                                                                                                      +
                                                                                                                                                                                                      + +
                                                                                                                                                                                                      + $modelFields + +  : array<string|int, mixed> +
                                                                                                                                                                                                      +
                                                                                                                                                                                                      The crm customer fields
                                                                                                                                                                                                      + +
                                                                                                                                                                                                      + $validation + +  : array<string|int, mixed> +
                                                                                                                                                                                                      +
                                                                                                                                                                                                      Validation rules
                                                                                                                                                                                                      + +
                                                                                                                                                                                                      + $address + +  : string +
                                                                                                                                                                                                      +
                                                                                                                                                                                                      The user address (street number, name, etc)
                                                                                                                                                                                                      + +
                                                                                                                                                                                                      + $address2 + +  : string +
                                                                                                                                                                                                      +
                                                                                                                                                                                                      The user address 2nd part (street number, name, more, etc)
                                                                                                                                                                                                      + +
                                                                                                                                                                                                      + $city + +  : string +
                                                                                                                                                                                                      +
                                                                                                                                                                                                      The user address city
                                                                                                                                                                                                      + +
                                                                                                                                                                                                      + $code_on_pack + +  : string +
                                                                                                                                                                                                      +
                                                                                                                                                                                                      The arcadia code on pack
                                                                                                                                                                                                      + +
                                                                                                                                                                                                      + $code_unique + +  : string +
                                                                                                                                                                                                      +
                                                                                                                                                                                                      The arcadia code unique
                                                                                                                                                                                                      + +
                                                                                                                                                                                                      + $email + +  : string +
                                                                                                                                                                                                      +
                                                                                                                                                                                                      An RFC Valid Email
                                                                                                                                                                                                      + +
                                                                                                                                                                                                      + $firstname + +  : string +
                                                                                                                                                                                                      +
                                                                                                                                                                                                      First name
                                                                                                                                                                                                      + +
                                                                                                                                                                                                      + $label_type_support + +  : string +
                                                                                                                                                                                                      +
                                                                                                                                                                                                      The arcadia type support label
                                                                                                                                                                                                      + +
                                                                                                                                                                                                      + $lastname + +  : string +
                                                                                                                                                                                                      +
                                                                                                                                                                                                      Last name
                                                                                                                                                                                                      + +
                                                                                                                                                                                                      + $operation + +  : int +
                                                                                                                                                                                                      +
                                                                                                                                                                                                      The arcadia operation code
                                                                                                                                                                                                      + +
                                                                                                                                                                                                      + $order_date + +  : string +
                                                                                                                                                                                                      +
                                                                                                                                                                                                      The arcadia order date
                                                                                                                                                                                                      + +
                                                                                                                                                                                                      + $phone + +  : string +
                                                                                                                                                                                                      +
                                                                                                                                                                                                      The user phone
                                                                                                                                                                                                      + +
                                                                                                                                                                                                      + $postcode + +  : string +
                                                                                                                                                                                                      +
                                                                                                                                                                                                      The user address postcode
                                                                                                                                                                                                      + +
                                                                                                                                                                                                      + $support_code + +  : int +
                                                                                                                                                                                                      +
                                                                                                                                                                                                      The arcadia support code
                                                                                                                                                                                                      + +
                                                                                                                                                                                                      + __construct() + +  : mixed +
                                                                                                                                                                                                      +
                                                                                                                                                                                                      ArcadiaMailGame
                                                                                                                                                                                                      + +
                                                                                                                                                                                                      + __set() + +  : void +
                                                                                                                                                                                                      +
                                                                                                                                                                                                      Set prop
                                                                                                                                                                                                      + +
                                                                                                                                                                                                      + fill() + +  : void +
                                                                                                                                                                                                      +
                                                                                                                                                                                                      Fill data into this model +using validation rules
                                                                                                                                                                                                      + +
                                                                                                                                                                                                      + jsonSerialize() + +  : array<string|int, mixed> +
                                                                                                                                                                                                      +
                                                                                                                                                                                                      Serialize this object to an array
                                                                                                                                                                                                      + +
                                                                                                                                                                                                      + send() + +  : bool +
                                                                                                                                                                                                      +
                                                                                                                                                                                                      Send The actual mail
                                                                                                                                                                                                      + +
                                                                                                                                                                                                      + + + + + + +
                                                                                                                                                                                                      +

                                                                                                                                                                                                      + Properties + +

                                                                                                                                                                                                      +
                                                                                                                                                                                                      +

                                                                                                                                                                                                      + $address + + + +

                                                                                                                                                                                                      + + + + + public + string + $address + + +

                                                                                                                                                                                                      The account address (street number, name, build, flat number)

                                                                                                                                                                                                      +
                                                                                                                                                                                                      + +
                                                                                                                                                                                                      + + + +
                                                                                                                                                                                                      +
                                                                                                                                                                                                      +

                                                                                                                                                                                                      + $address2 + + + +

                                                                                                                                                                                                      + + + + + public + string + $address2 + + +

                                                                                                                                                                                                      The account phone (address complement)

                                                                                                                                                                                                      +
                                                                                                                                                                                                      + +
                                                                                                                                                                                                      + + + +
                                                                                                                                                                                                      +
                                                                                                                                                                                                      +

                                                                                                                                                                                                      + $city + + + +

                                                                                                                                                                                                      + + + + + public + string + $city + + +

                                                                                                                                                                                                      The account city name

                                                                                                                                                                                                      +
                                                                                                                                                                                                      + +
                                                                                                                                                                                                      + + + +
                                                                                                                                                                                                      +
                                                                                                                                                                                                      +

                                                                                                                                                                                                      + $code_on_pack + + + +

                                                                                                                                                                                                      + + + + + public + string + $code_on_pack + + +

                                                                                                                                                                                                      The arcadia code on pack

                                                                                                                                                                                                      +
                                                                                                                                                                                                      + +
                                                                                                                                                                                                      + + + +
                                                                                                                                                                                                      +
                                                                                                                                                                                                      +

                                                                                                                                                                                                      + $code_unique + + + +

                                                                                                                                                                                                      + + + + + public + string + $code_unique + + +

                                                                                                                                                                                                      The arcadia code unique

                                                                                                                                                                                                      +
                                                                                                                                                                                                      + +
                                                                                                                                                                                                      + + + +
                                                                                                                                                                                                      +
                                                                                                                                                                                                      +

                                                                                                                                                                                                      + $email + + + +

                                                                                                                                                                                                      + + + + + public + string + $email + + +

                                                                                                                                                                                                      Must be a rfc valid email on a valid domain name

                                                                                                                                                                                                      +
                                                                                                                                                                                                      + +
                                                                                                                                                                                                      + + + +
                                                                                                                                                                                                      +
                                                                                                                                                                                                      +

                                                                                                                                                                                                      + $firstname + + + +

                                                                                                                                                                                                      + + + + + public + string + $firstname + + +

                                                                                                                                                                                                      The account first name

                                                                                                                                                                                                      +
                                                                                                                                                                                                      + +
                                                                                                                                                                                                      + + + +
                                                                                                                                                                                                      +
                                                                                                                                                                                                      +

                                                                                                                                                                                                      + $label_type_support + + + +

                                                                                                                                                                                                      + + + + + public + string + $label_type_support + + +

                                                                                                                                                                                                      The arcadia type support label

                                                                                                                                                                                                      +
                                                                                                                                                                                                      + +
                                                                                                                                                                                                      + + + +
                                                                                                                                                                                                      +
                                                                                                                                                                                                      +

                                                                                                                                                                                                      + $lastname + + + +

                                                                                                                                                                                                      + + + + + public + string + $lastname + + +

                                                                                                                                                                                                      The account last name

                                                                                                                                                                                                      +
                                                                                                                                                                                                      + +
                                                                                                                                                                                                      + + + +
                                                                                                                                                                                                      +
                                                                                                                                                                                                      +

                                                                                                                                                                                                      + $operation + + + +

                                                                                                                                                                                                      + + + + + public + int + $operation + + +

                                                                                                                                                                                                      The arcadia operation code +Validate: int +Required

                                                                                                                                                                                                      +
                                                                                                                                                                                                      + +
                                                                                                                                                                                                      + + + +
                                                                                                                                                                                                      +
                                                                                                                                                                                                      +

                                                                                                                                                                                                      + $order_date + + + +

                                                                                                                                                                                                      + + + + + public + string + $order_date + + +

                                                                                                                                                                                                      The arcadia order date 'yyyy-mm-dd HH:ii:ss'

                                                                                                                                                                                                      +
                                                                                                                                                                                                      + +
                                                                                                                                                                                                      + + + +
                                                                                                                                                                                                      +
                                                                                                                                                                                                      +

                                                                                                                                                                                                      + $phone + + + +

                                                                                                                                                                                                      + + + + + public + string + $phone + + +

                                                                                                                                                                                                      The account phone

                                                                                                                                                                                                      +
                                                                                                                                                                                                      + +
                                                                                                                                                                                                      + + + +
                                                                                                                                                                                                      +
                                                                                                                                                                                                      +

                                                                                                                                                                                                      + $postcode + + + +

                                                                                                                                                                                                      + + + + + public + string + $postcode + + +

                                                                                                                                                                                                      The account city postcode

                                                                                                                                                                                                      +
                                                                                                                                                                                                      + +
                                                                                                                                                                                                      + + + +
                                                                                                                                                                                                      +
                                                                                                                                                                                                      +

                                                                                                                                                                                                      + $support_code + + + +

                                                                                                                                                                                                      + + + + + public + int + $support_code + + +

                                                                                                                                                                                                      The arcadia support code

                                                                                                                                                                                                      +
                                                                                                                                                                                                      + +
                                                                                                                                                                                                      + + + +
                                                                                                                                                                                                      +
                                                                                                                                                                                                      +

                                                                                                                                                                                                      + $modelFields + + + +

                                                                                                                                                                                                      + + +

                                                                                                                                                                                                      The crm customer fields

                                                                                                                                                                                                      + + + protected + array<string|int, mixed> + $modelFields + = ['email', 'firstname', 'lastname', 'phone', 'address', 'address2', 'city', 'postcode', 'operation', 'support_code', 'label_type_support', 'order_date', 'code_unique', 'code_on_pack'] + + + + + +
                                                                                                                                                                                                      +
                                                                                                                                                                                                      +

                                                                                                                                                                                                      + $validation + + + +

                                                                                                                                                                                                      + + +

                                                                                                                                                                                                      Validation rules

                                                                                                                                                                                                      + + + protected + static array<string|int, mixed> + $validation + = ['email' => 'required|email', 'firstname' => 'required|string|min:2|max:255', 'lastname' => 'required|string|min:2|max:255', 'phone' => 'sometimes|string|min:10|max:255', 'address' => 'sometimes|string|max:255', 'address2' => 'sometimes|string|max:255', 'city' => 'sometimes|string|max:255', 'postcode' => 'sometimes|string|max:255', 'operation' => 'required|int', 'support_code' => 'required|int', 'label_type_support' => 'required|string|min:2|max:255', 'order_date' => 'required|date_format:Y/m/d H:i:s', 'code_unique' => 'required|string', 'code_on_pack' => 'sometimes|string'] + + + + + +
                                                                                                                                                                                                      +
                                                                                                                                                                                                      +

                                                                                                                                                                                                      + $address + + + +

                                                                                                                                                                                                      + + +

                                                                                                                                                                                                      The user address (street number, name, etc)

                                                                                                                                                                                                      + + + private + string + $address + = null + +

                                                                                                                                                                                                      Validate: sometimes,string

                                                                                                                                                                                                      +

                                                                                                                                                                                                      Min length NA +Max length 255 +Field Type varchar

                                                                                                                                                                                                      +
                                                                                                                                                                                                      + + + + +
                                                                                                                                                                                                      +
                                                                                                                                                                                                      +

                                                                                                                                                                                                      + $address2 + + + +

                                                                                                                                                                                                      + + +

                                                                                                                                                                                                      The user address 2nd part (street number, name, more, etc)

                                                                                                                                                                                                      + + + private + string + $address2 + = null + +

                                                                                                                                                                                                      Validate: sometimes,string

                                                                                                                                                                                                      +

                                                                                                                                                                                                      Min length NA +Max length 255 +Field Type varchar

                                                                                                                                                                                                      +
                                                                                                                                                                                                      + + + + +
                                                                                                                                                                                                      +
                                                                                                                                                                                                      +

                                                                                                                                                                                                      + $city + + + +

                                                                                                                                                                                                      + + +

                                                                                                                                                                                                      The user address city

                                                                                                                                                                                                      + + + private + string + $city + = null + +

                                                                                                                                                                                                      Validate: sometimes,string

                                                                                                                                                                                                      +

                                                                                                                                                                                                      Min length NA +Max length 255 +Field Type varchar

                                                                                                                                                                                                      +
                                                                                                                                                                                                      + + + + +
                                                                                                                                                                                                      +
                                                                                                                                                                                                      +

                                                                                                                                                                                                      + $code_on_pack + + + +

                                                                                                                                                                                                      + + +

                                                                                                                                                                                                      The arcadia code on pack

                                                                                                                                                                                                      + + + private + string + $code_on_pack + = null + +

                                                                                                                                                                                                      Validate: sometimes

                                                                                                                                                                                                      +

                                                                                                                                                                                                      Required

                                                                                                                                                                                                      +
                                                                                                                                                                                                      + + + + +
                                                                                                                                                                                                      +
                                                                                                                                                                                                      +

                                                                                                                                                                                                      + $code_unique + + + +

                                                                                                                                                                                                      + + +

                                                                                                                                                                                                      The arcadia code unique

                                                                                                                                                                                                      + + + private + string + $code_unique + = null + +

                                                                                                                                                                                                      Validate: string

                                                                                                                                                                                                      +

                                                                                                                                                                                                      Required

                                                                                                                                                                                                      +
                                                                                                                                                                                                      + + + + +
                                                                                                                                                                                                      +
                                                                                                                                                                                                      +

                                                                                                                                                                                                      + $email + + + +

                                                                                                                                                                                                      + + +

                                                                                                                                                                                                      An RFC Valid Email

                                                                                                                                                                                                      + + + private + string + $email + = null + +

                                                                                                                                                                                                      Validate: rfc,dns,spoof,filter

                                                                                                                                                                                                      +

                                                                                                                                                                                                      Required +Min length N/A +Max length 255 +Field Type varchar

                                                                                                                                                                                                      +
                                                                                                                                                                                                      + + + + +
                                                                                                                                                                                                      +
                                                                                                                                                                                                      +

                                                                                                                                                                                                      + $firstname + + + +

                                                                                                                                                                                                      + + +

                                                                                                                                                                                                      First name

                                                                                                                                                                                                      + + + private + string + $firstname + = null + +

                                                                                                                                                                                                      Required +Min length 2 +Max length 255 +Field Type varchar

                                                                                                                                                                                                      +
                                                                                                                                                                                                      + + + + +
                                                                                                                                                                                                      +
                                                                                                                                                                                                      +

                                                                                                                                                                                                      + $label_type_support + + + +

                                                                                                                                                                                                      + + +

                                                                                                                                                                                                      The arcadia type support label

                                                                                                                                                                                                      + + + private + string + $label_type_support + = null + +

                                                                                                                                                                                                      Validate: string

                                                                                                                                                                                                      +

                                                                                                                                                                                                      Required

                                                                                                                                                                                                      +
                                                                                                                                                                                                      + + + + +
                                                                                                                                                                                                      +
                                                                                                                                                                                                      +

                                                                                                                                                                                                      + $lastname + + + +

                                                                                                                                                                                                      + + +

                                                                                                                                                                                                      Last name

                                                                                                                                                                                                      + + + private + string + $lastname + = null + +

                                                                                                                                                                                                      Required +Min length 2 +Max length 255 +Field Type varchar

                                                                                                                                                                                                      +
                                                                                                                                                                                                      + + + + +
                                                                                                                                                                                                      +
                                                                                                                                                                                                      +

                                                                                                                                                                                                      + $operation + + + +

                                                                                                                                                                                                      + + +

                                                                                                                                                                                                      The arcadia operation code

                                                                                                                                                                                                      + + + private + int + $operation + = null + +

                                                                                                                                                                                                      Validate: int

                                                                                                                                                                                                      +

                                                                                                                                                                                                      Required

                                                                                                                                                                                                      +
                                                                                                                                                                                                      + + + + +
                                                                                                                                                                                                      +
                                                                                                                                                                                                      +

                                                                                                                                                                                                      + $order_date + + + +

                                                                                                                                                                                                      + + +

                                                                                                                                                                                                      The arcadia order date

                                                                                                                                                                                                      + + + private + string + $order_date + = null + +

                                                                                                                                                                                                      Validate: date

                                                                                                                                                                                                      +

                                                                                                                                                                                                      Required

                                                                                                                                                                                                      +
                                                                                                                                                                                                      + + + + +
                                                                                                                                                                                                      +
                                                                                                                                                                                                      +

                                                                                                                                                                                                      + $phone + + + +

                                                                                                                                                                                                      + + +

                                                                                                                                                                                                      The user phone

                                                                                                                                                                                                      + + + private + string + $phone + = null + +

                                                                                                                                                                                                      Validate: sometimes,string

                                                                                                                                                                                                      +

                                                                                                                                                                                                      Required +Min length NA +Max length 255 +Field Type varchar

                                                                                                                                                                                                      +
                                                                                                                                                                                                      + + + + +
                                                                                                                                                                                                      +
                                                                                                                                                                                                      +

                                                                                                                                                                                                      + $postcode + + + +

                                                                                                                                                                                                      + + +

                                                                                                                                                                                                      The user address postcode

                                                                                                                                                                                                      + + + private + string + $postcode + = null + +

                                                                                                                                                                                                      Validate: string

                                                                                                                                                                                                      +

                                                                                                                                                                                                      Required +Min length NA +Max length 255 +Field Type varchar

                                                                                                                                                                                                      +
                                                                                                                                                                                                      + + + + +
                                                                                                                                                                                                      +
                                                                                                                                                                                                      +

                                                                                                                                                                                                      + $support_code + + + +

                                                                                                                                                                                                      + + +

                                                                                                                                                                                                      The arcadia support code

                                                                                                                                                                                                      + + + private + int + $support_code + = null + +

                                                                                                                                                                                                      Validate: int

                                                                                                                                                                                                      +

                                                                                                                                                                                                      Required

                                                                                                                                                                                                      +
                                                                                                                                                                                                      + + + + +
                                                                                                                                                                                                      +
                                                                                                                                                                                                      + +
                                                                                                                                                                                                      +

                                                                                                                                                                                                      + Methods + +

                                                                                                                                                                                                      +
                                                                                                                                                                                                      +

                                                                                                                                                                                                      + __construct() + +

                                                                                                                                                                                                      + + +

                                                                                                                                                                                                      ArcadiaMailGame

                                                                                                                                                                                                      + + + public + __construct([array<string|int, mixed> $properties = [] ]) : mixed + + +
                                                                                                                                                                                                      Parameters
                                                                                                                                                                                                      +
                                                                                                                                                                                                      +
                                                                                                                                                                                                      + $properties + : array<string|int, mixed> + = []
                                                                                                                                                                                                      +
                                                                                                                                                                                                      + +
                                                                                                                                                                                                      +
                                                                                                                                                                                                      + + +
                                                                                                                                                                                                      + Tags + +
                                                                                                                                                                                                      +
                                                                                                                                                                                                      +
                                                                                                                                                                                                      + throws +
                                                                                                                                                                                                      +
                                                                                                                                                                                                      + ValidationException + +

                                                                                                                                                                                                      If a field could not be validated.

                                                                                                                                                                                                      +
                                                                                                                                                                                                      + +
                                                                                                                                                                                                      +
                                                                                                                                                                                                      + +
                                                                                                                                                                                                      Return values
                                                                                                                                                                                                      + mixed + — + + +
                                                                                                                                                                                                      +
                                                                                                                                                                                                      +

                                                                                                                                                                                                      + __set() + +

                                                                                                                                                                                                      + + +

                                                                                                                                                                                                      Set prop

                                                                                                                                                                                                      + + + public + __set(string $field, mixed $value) : void + + +
                                                                                                                                                                                                      Parameters
                                                                                                                                                                                                      +
                                                                                                                                                                                                      +
                                                                                                                                                                                                      + $field + : string +
                                                                                                                                                                                                      +
                                                                                                                                                                                                      + +
                                                                                                                                                                                                      +
                                                                                                                                                                                                      + $value + : mixed +
                                                                                                                                                                                                      +
                                                                                                                                                                                                      + +
                                                                                                                                                                                                      +
                                                                                                                                                                                                      + + +
                                                                                                                                                                                                      + Tags + +
                                                                                                                                                                                                      +
                                                                                                                                                                                                      +
                                                                                                                                                                                                      + throws +
                                                                                                                                                                                                      +
                                                                                                                                                                                                      + TypeError + +

                                                                                                                                                                                                      If the field has an incorrect value.

                                                                                                                                                                                                      +
                                                                                                                                                                                                      + +
                                                                                                                                                                                                      +
                                                                                                                                                                                                      + throws +
                                                                                                                                                                                                      +
                                                                                                                                                                                                      + AccessError + +

                                                                                                                                                                                                      If trying to set a value on a unknown property.

                                                                                                                                                                                                      +
                                                                                                                                                                                                      + +
                                                                                                                                                                                                      +
                                                                                                                                                                                                      + +
                                                                                                                                                                                                      Return values
                                                                                                                                                                                                      + void + — + + +
                                                                                                                                                                                                      +
                                                                                                                                                                                                      +

                                                                                                                                                                                                      + fill() + +

                                                                                                                                                                                                      + + +

                                                                                                                                                                                                      Fill data into this model +using validation rules

                                                                                                                                                                                                      + + + public + fill(array<string|int, mixed> $properties) : void + + +
                                                                                                                                                                                                      Parameters
                                                                                                                                                                                                      +
                                                                                                                                                                                                      +
                                                                                                                                                                                                      + $properties + : array<string|int, mixed> +
                                                                                                                                                                                                      +
                                                                                                                                                                                                      + +
                                                                                                                                                                                                      +
                                                                                                                                                                                                      + + +
                                                                                                                                                                                                      + Tags + +
                                                                                                                                                                                                      +
                                                                                                                                                                                                      +
                                                                                                                                                                                                      + throws +
                                                                                                                                                                                                      +
                                                                                                                                                                                                      + ValidationException + +

                                                                                                                                                                                                      If a field could not be validated.

                                                                                                                                                                                                      +
                                                                                                                                                                                                      + +
                                                                                                                                                                                                      +
                                                                                                                                                                                                      + +
                                                                                                                                                                                                      Return values
                                                                                                                                                                                                      + void + — + + +
                                                                                                                                                                                                      +
                                                                                                                                                                                                      +

                                                                                                                                                                                                      + jsonSerialize() + +

                                                                                                                                                                                                      + + +

                                                                                                                                                                                                      Serialize this object to an array

                                                                                                                                                                                                      + + + public + jsonSerialize() : array<string|int, mixed> + + + + + +
                                                                                                                                                                                                      Return values
                                                                                                                                                                                                      + array<string|int, mixed> + — + + +
                                                                                                                                                                                                      +
                                                                                                                                                                                                      +

                                                                                                                                                                                                      + send() + +

                                                                                                                                                                                                      + + +

                                                                                                                                                                                                      Send The actual mail

                                                                                                                                                                                                      + + + public + send() : bool + + + + +
                                                                                                                                                                                                      + Tags + +
                                                                                                                                                                                                      +
                                                                                                                                                                                                      +
                                                                                                                                                                                                      + throws +
                                                                                                                                                                                                      +
                                                                                                                                                                                                      + CrmException + +

                                                                                                                                                                                                      If an error occurs on server side or on getting response.

                                                                                                                                                                                                      +
                                                                                                                                                                                                      + +
                                                                                                                                                                                                      +
                                                                                                                                                                                                      + throws +
                                                                                                                                                                                                      +
                                                                                                                                                                                                      + ApiErrorException + +

                                                                                                                                                                                                      If any error or \LDC\LDCCRM\Enums\ApiError occurs. +Possibles are : - validationFailed, If provided data is wrong(CRM side).

                                                                                                                                                                                                      +
                                                                                                                                                                                                      + +
                                                                                                                                                                                                      +
                                                                                                                                                                                                      + +
                                                                                                                                                                                                      Return values
                                                                                                                                                                                                      + bool + — +

                                                                                                                                                                                                      true if succeeded

                                                                                                                                                                                                      +
                                                                                                                                                                                                      + + +
                                                                                                                                                                                                      +
                                                                                                                                                                                                      + + + + +
                                                                                                                                                                                                      +
                                                                                                                                                                                                      +
                                                                                                                                                                                                      +
                                                                                                                                                                                                      +

                                                                                                                                                                                                      Search results

                                                                                                                                                                                                      + +
                                                                                                                                                                                                      +
                                                                                                                                                                                                      +
                                                                                                                                                                                                        +
                                                                                                                                                                                                        +
                                                                                                                                                                                                        +
                                                                                                                                                                                                        +
                                                                                                                                                                                                        +
                                                                                                                                                                                                        + + +
                                                                                                                                                                                                        + + + + + + + + diff --git a/app/Lib/vendor/crm-client-3.0.6/documentation/classes/LDC-LDCCRM-Models-Customer.html b/app/Lib/vendor/crm-client-3.0.6/documentation/classes/LDC-LDCCRM-Models-Customer.html new file mode 100644 index 0000000..3bd943f --- /dev/null +++ b/app/Lib/vendor/crm-client-3.0.6/documentation/classes/LDC-LDCCRM-Models-Customer.html @@ -0,0 +1,2914 @@ + + + + + CRM V2 + + + + + + + + + + + + + + + + + + + +
                                                                                                                                                                                                        +

                                                                                                                                                                                                        CRM V2

                                                                                                                                                                                                        + + + + + +
                                                                                                                                                                                                        + +
                                                                                                                                                                                                        +
                                                                                                                                                                                                        + + + + +
                                                                                                                                                                                                        + + +
                                                                                                                                                                                                        +

                                                                                                                                                                                                        + Customer + + + extends CrmClientModel + + +
                                                                                                                                                                                                        + in package + +
                                                                                                                                                                                                        + + +

                                                                                                                                                                                                        + + + +

                                                                                                                                                                                                        This class represents the customer info with +the account validation status. You can use it as +a standalone class but beware of catching exceptions

                                                                                                                                                                                                        + +

                                                                                                                                                                                                        Be warned that on server side data is normalized

                                                                                                                                                                                                        +
                                                                                                                                                                                                          +
                                                                                                                                                                                                        • firstname and lastname are 'capitalized'
                                                                                                                                                                                                        • +
                                                                                                                                                                                                        • fields are trimmed
                                                                                                                                                                                                        • +
                                                                                                                                                                                                        • non numeric chars are removed from postcode
                                                                                                                                                                                                        • +
                                                                                                                                                                                                        +
                                                                                                                                                                                                        + + +
                                                                                                                                                                                                        + Tags + +
                                                                                                                                                                                                        +
                                                                                                                                                                                                        +
                                                                                                                                                                                                        + example +
                                                                                                                                                                                                        +
                                                                                                                                                                                                        + +

                                                                                                                                                                                                        examples/CustomerExample.php

                                                                                                                                                                                                        +
                                                                                                                                                                                                        + +
                                                                                                                                                                                                        +
                                                                                                                                                                                                        + category +
                                                                                                                                                                                                        +
                                                                                                                                                                                                        + +

                                                                                                                                                                                                        Api Models

                                                                                                                                                                                                        +
                                                                                                                                                                                                        + +
                                                                                                                                                                                                        +
                                                                                                                                                                                                        + subpackage +
                                                                                                                                                                                                        +
                                                                                                                                                                                                        + +

                                                                                                                                                                                                        models

                                                                                                                                                                                                        +
                                                                                                                                                                                                        + +
                                                                                                                                                                                                        +
                                                                                                                                                                                                        + author +
                                                                                                                                                                                                        +
                                                                                                                                                                                                        + +

                                                                                                                                                                                                        Jérémy Munsch jeremy.munsch@ldc.fr

                                                                                                                                                                                                        +
                                                                                                                                                                                                        + +
                                                                                                                                                                                                        +
                                                                                                                                                                                                        + + + + + + +

                                                                                                                                                                                                        + Table of Contents + +

                                                                                                                                                                                                        + +
                                                                                                                                                                                                        +
                                                                                                                                                                                                        + $address + +  : string +
                                                                                                                                                                                                        +
                                                                                                                                                                                                        + +
                                                                                                                                                                                                        + $address2 + +  : string +
                                                                                                                                                                                                        +
                                                                                                                                                                                                        + +
                                                                                                                                                                                                        + $birth_date + +  : string +
                                                                                                                                                                                                        +
                                                                                                                                                                                                        + +
                                                                                                                                                                                                        + $city + +  : string +
                                                                                                                                                                                                        +
                                                                                                                                                                                                        + +
                                                                                                                                                                                                        + $country + +  : Country +
                                                                                                                                                                                                        +
                                                                                                                                                                                                        + +
                                                                                                                                                                                                        + $email + +  : string +
                                                                                                                                                                                                        +
                                                                                                                                                                                                        + +
                                                                                                                                                                                                        + $firstname + +  : string +
                                                                                                                                                                                                        +
                                                                                                                                                                                                        + +
                                                                                                                                                                                                        + $hashcode + +  : string +
                                                                                                                                                                                                        +
                                                                                                                                                                                                        + +
                                                                                                                                                                                                        + $last_connection + +  : string +
                                                                                                                                                                                                        +
                                                                                                                                                                                                        + +
                                                                                                                                                                                                        + $lastname + +  : string +
                                                                                                                                                                                                        +
                                                                                                                                                                                                        + +
                                                                                                                                                                                                        + $opt_in + +  : bool +
                                                                                                                                                                                                        +
                                                                                                                                                                                                        + +
                                                                                                                                                                                                        + $password + +  : string +
                                                                                                                                                                                                        +
                                                                                                                                                                                                        + +
                                                                                                                                                                                                        + $phone + +  : string +
                                                                                                                                                                                                        +
                                                                                                                                                                                                        + +
                                                                                                                                                                                                        + $postcode + +  : string +
                                                                                                                                                                                                        +
                                                                                                                                                                                                        + +
                                                                                                                                                                                                        + $status + +  : bool +
                                                                                                                                                                                                        +
                                                                                                                                                                                                        + +
                                                                                                                                                                                                        + $invisibleFields + +  : array<string|int, mixed> +
                                                                                                                                                                                                        +
                                                                                                                                                                                                        The crm customer fields +the should not be visible
                                                                                                                                                                                                        + +
                                                                                                                                                                                                        + $modelFields + +  : array<string|int, mixed> +
                                                                                                                                                                                                        +
                                                                                                                                                                                                        The crm customer fields
                                                                                                                                                                                                        + +
                                                                                                                                                                                                        + $validation + +  : array<string|int, mixed> +
                                                                                                                                                                                                        +
                                                                                                                                                                                                        Validation rules
                                                                                                                                                                                                        + +
                                                                                                                                                                                                        + $address + +  : string +
                                                                                                                                                                                                        +
                                                                                                                                                                                                        The user address (street number, name, etc)
                                                                                                                                                                                                        + +
                                                                                                                                                                                                        + $address2 + +  : string +
                                                                                                                                                                                                        +
                                                                                                                                                                                                        The user address 2nd part (street number, name, more, etc)
                                                                                                                                                                                                        + +
                                                                                                                                                                                                        + $birth_date + +  : string +
                                                                                                                                                                                                        +
                                                                                                                                                                                                        Birth date
                                                                                                                                                                                                        + +
                                                                                                                                                                                                        + $city + +  : string +
                                                                                                                                                                                                        +
                                                                                                                                                                                                        The user address city
                                                                                                                                                                                                        + +
                                                                                                                                                                                                        + $country + +  : Country +
                                                                                                                                                                                                        +
                                                                                                                                                                                                        The user address postcode
                                                                                                                                                                                                        + +
                                                                                                                                                                                                        + $email + +  : string +
                                                                                                                                                                                                        +
                                                                                                                                                                                                        An RFC Valid Email
                                                                                                                                                                                                        + +
                                                                                                                                                                                                        + $firstname + +  : string +
                                                                                                                                                                                                        +
                                                                                                                                                                                                        First name
                                                                                                                                                                                                        + +
                                                                                                                                                                                                        + $hashcode + +  : string +
                                                                                                                                                                                                        +
                                                                                                                                                                                                        The user hashcode, this is link with the customer and the brand it is related to +It is used to identify the customer itself.
                                                                                                                                                                                                        + +
                                                                                                                                                                                                        + $last_connection + +  : string +
                                                                                                                                                                                                        +
                                                                                                                                                                                                        The last time the account was connected
                                                                                                                                                                                                        + +
                                                                                                                                                                                                        + $lastname + +  : string +
                                                                                                                                                                                                        +
                                                                                                                                                                                                        Last name
                                                                                                                                                                                                        + +
                                                                                                                                                                                                        + $opt_in + +  : bool +
                                                                                                                                                                                                        +
                                                                                                                                                                                                        The user optin choice
                                                                                                                                                                                                        + +
                                                                                                                                                                                                        + $password + +  : string +
                                                                                                                                                                                                        +
                                                                                                                                                                                                        The user password +This is set only when creating a user +Otherwise it has to be set to null
                                                                                                                                                                                                        + +
                                                                                                                                                                                                        + $phone + +  : string +
                                                                                                                                                                                                        +
                                                                                                                                                                                                        The user phone
                                                                                                                                                                                                        + +
                                                                                                                                                                                                        + $postcode + +  : string +
                                                                                                                                                                                                        +
                                                                                                                                                                                                        The user address postcode
                                                                                                                                                                                                        + +
                                                                                                                                                                                                        + $status + +  : bool +
                                                                                                                                                                                                        +
                                                                                                                                                                                                        Is the account activated ?
                                                                                                                                                                                                        + +
                                                                                                                                                                                                        + __construct() + +  : mixed +
                                                                                                                                                                                                        +
                                                                                                                                                                                                        Customer
                                                                                                                                                                                                        + +
                                                                                                                                                                                                        + __get() + +  : mixed|null +
                                                                                                                                                                                                        +
                                                                                                                                                                                                        Generic accessor
                                                                                                                                                                                                        + +
                                                                                                                                                                                                        + __set() + +  : void +
                                                                                                                                                                                                        +
                                                                                                                                                                                                        Set prop on the model.
                                                                                                                                                                                                        + +
                                                                                                                                                                                                        + activate() + +  : bool +
                                                                                                                                                                                                        +
                                                                                                                                                                                                        Active the customer on CRM.
                                                                                                                                                                                                        + +
                                                                                                                                                                                                        + delete() + +  : bool +
                                                                                                                                                                                                        +
                                                                                                                                                                                                        Removes the customer from CRM.
                                                                                                                                                                                                        + +
                                                                                                                                                                                                        + fill() + +  : void +
                                                                                                                                                                                                        +
                                                                                                                                                                                                        Fill values into model using validation rules.
                                                                                                                                                                                                        + +
                                                                                                                                                                                                        + find() + +  : self|null +
                                                                                                                                                                                                        +
                                                                                                                                                                                                        Find a customer using its hashcode in the crm
                                                                                                                                                                                                        + +
                                                                                                                                                                                                        + findWithEmail() + +  : self|null +
                                                                                                                                                                                                        +
                                                                                                                                                                                                        Find a customer using its email in the crm +This is an alias of Customer::find()
                                                                                                                                                                                                        + +
                                                                                                                                                                                                        + jsonSerialize() + +  : array<string|int, mixed> +
                                                                                                                                                                                                        +
                                                                                                                                                                                                        Serialize this object to an array
                                                                                                                                                                                                        + +
                                                                                                                                                                                                        + login() + +  : bool +
                                                                                                                                                                                                        +
                                                                                                                                                                                                        Test customer credentials
                                                                                                                                                                                                        + +
                                                                                                                                                                                                        + save() + +  : bool +
                                                                                                                                                                                                        +
                                                                                                                                                                                                        Save the customer on CRM.
                                                                                                                                                                                                        + +
                                                                                                                                                                                                        + toggleOptin() + +  : bool +
                                                                                                                                                                                                        +
                                                                                                                                                                                                        Toggle the account optin value in the crm
                                                                                                                                                                                                        + +
                                                                                                                                                                                                        + validateAllValues() + +  : array<string|int, mixed> +
                                                                                                                                                                                                        +
                                                                                                                                                                                                        Validate all model properties
                                                                                                                                                                                                        + +
                                                                                                                                                                                                        + store() + +  : bool +
                                                                                                                                                                                                        +
                                                                                                                                                                                                        Calls api store customer method
                                                                                                                                                                                                        + +
                                                                                                                                                                                                        + update() + +  : bool +
                                                                                                                                                                                                        +
                                                                                                                                                                                                        Calls api update customer method
                                                                                                                                                                                                        + +
                                                                                                                                                                                                        + + + + + + +
                                                                                                                                                                                                        +

                                                                                                                                                                                                        + Properties + +

                                                                                                                                                                                                        +
                                                                                                                                                                                                        +

                                                                                                                                                                                                        + $address + + + +

                                                                                                                                                                                                        + + + + + public + string + $address + + +

                                                                                                                                                                                                        The account address (street number, name, build, flat number)

                                                                                                                                                                                                        +
                                                                                                                                                                                                        + +
                                                                                                                                                                                                        + + + +
                                                                                                                                                                                                        +
                                                                                                                                                                                                        +

                                                                                                                                                                                                        + $address2 + + + +

                                                                                                                                                                                                        + + + + + public + string + $address2 + + +

                                                                                                                                                                                                        The account phone (address complement)

                                                                                                                                                                                                        +
                                                                                                                                                                                                        + +
                                                                                                                                                                                                        + + + +
                                                                                                                                                                                                        +
                                                                                                                                                                                                        +

                                                                                                                                                                                                        + $birth_date + + + +

                                                                                                                                                                                                        + + + + + public + string + $birth_date + + +

                                                                                                                                                                                                        The account birth date 'yyyy-mm-dd'

                                                                                                                                                                                                        +
                                                                                                                                                                                                        + +
                                                                                                                                                                                                        + + + +
                                                                                                                                                                                                        +
                                                                                                                                                                                                        +

                                                                                                                                                                                                        + $city + + + +

                                                                                                                                                                                                        + + + + + public + string + $city + + +

                                                                                                                                                                                                        The account city name

                                                                                                                                                                                                        +
                                                                                                                                                                                                        + +
                                                                                                                                                                                                        + + + +
                                                                                                                                                                                                        +
                                                                                                                                                                                                        +

                                                                                                                                                                                                        + $country + + + +

                                                                                                                                                                                                        + + + + + public + Country + $country + + +

                                                                                                                                                                                                        The account country residence

                                                                                                                                                                                                        +
                                                                                                                                                                                                        + +
                                                                                                                                                                                                        + + + +
                                                                                                                                                                                                        +
                                                                                                                                                                                                        +

                                                                                                                                                                                                        + $email + + + +

                                                                                                                                                                                                        + + + + + public + string + $email + + +

                                                                                                                                                                                                        Must be a rfc valid email on a valid domain name

                                                                                                                                                                                                        +
                                                                                                                                                                                                        + +
                                                                                                                                                                                                        + + + +
                                                                                                                                                                                                        +
                                                                                                                                                                                                        +

                                                                                                                                                                                                        + $firstname + + + +

                                                                                                                                                                                                        + + + + + public + string + $firstname + + +

                                                                                                                                                                                                        The account first name

                                                                                                                                                                                                        +
                                                                                                                                                                                                        + +
                                                                                                                                                                                                        + + + +
                                                                                                                                                                                                        +
                                                                                                                                                                                                        +

                                                                                                                                                                                                        + $hashcode + + + +

                                                                                                                                                                                                        + + + + + public + string + $hashcode + + +

                                                                                                                                                                                                        The crm hashcode this is a readonly field

                                                                                                                                                                                                        +
                                                                                                                                                                                                        + +
                                                                                                                                                                                                        + + + +
                                                                                                                                                                                                        +
                                                                                                                                                                                                        +

                                                                                                                                                                                                        + $last_connection + + + +

                                                                                                                                                                                                        + + + + + public + string + $last_connection + + +

                                                                                                                                                                                                        the last time user was connected 'yyyy-mm-dd HH:ii:ss'

                                                                                                                                                                                                        +
                                                                                                                                                                                                        + +
                                                                                                                                                                                                        + + + +
                                                                                                                                                                                                        +
                                                                                                                                                                                                        +

                                                                                                                                                                                                        + $lastname + + + +

                                                                                                                                                                                                        + + + + + public + string + $lastname + + +

                                                                                                                                                                                                        The account last name

                                                                                                                                                                                                        +
                                                                                                                                                                                                        + +
                                                                                                                                                                                                        + + + +
                                                                                                                                                                                                        +
                                                                                                                                                                                                        +

                                                                                                                                                                                                        + $opt_in + + + +

                                                                                                                                                                                                        + + + + + public + bool + $opt_in + + +

                                                                                                                                                                                                        true if the account is opt in

                                                                                                                                                                                                        +
                                                                                                                                                                                                        + +
                                                                                                                                                                                                        + + + +
                                                                                                                                                                                                        +
                                                                                                                                                                                                        +

                                                                                                                                                                                                        + $password + + + +

                                                                                                                                                                                                        + + + + + public + string + $password + + +

                                                                                                                                                                                                        Required only on create, must have upper and lowers chars, +at least 1 number, at leat 1 upper char, at least 1 lower char and +at leat 1 special char

                                                                                                                                                                                                        +
                                                                                                                                                                                                        + +
                                                                                                                                                                                                        + + + +
                                                                                                                                                                                                        +
                                                                                                                                                                                                        +

                                                                                                                                                                                                        + $phone + + + +

                                                                                                                                                                                                        + + + + + public + string + $phone + + +

                                                                                                                                                                                                        The account phone

                                                                                                                                                                                                        +
                                                                                                                                                                                                        + +
                                                                                                                                                                                                        + + + +
                                                                                                                                                                                                        +
                                                                                                                                                                                                        +

                                                                                                                                                                                                        + $postcode + + + +

                                                                                                                                                                                                        + + + + + public + string + $postcode + + +

                                                                                                                                                                                                        The account city postcode

                                                                                                                                                                                                        +
                                                                                                                                                                                                        + +
                                                                                                                                                                                                        + + + +
                                                                                                                                                                                                        +
                                                                                                                                                                                                        +

                                                                                                                                                                                                        + $status + + + +

                                                                                                                                                                                                        + + + + + public + bool + $status + + +

                                                                                                                                                                                                        true if the account is activated

                                                                                                                                                                                                        +
                                                                                                                                                                                                        + +
                                                                                                                                                                                                        + + + +
                                                                                                                                                                                                        +
                                                                                                                                                                                                        +

                                                                                                                                                                                                        + $invisibleFields + + + +

                                                                                                                                                                                                        + + +

                                                                                                                                                                                                        The crm customer fields +the should not be visible

                                                                                                                                                                                                        + + + protected + array<string|int, mixed> + $invisibleFields + = ['password'] + + + + + +
                                                                                                                                                                                                        +
                                                                                                                                                                                                        +

                                                                                                                                                                                                        + $modelFields + + + +

                                                                                                                                                                                                        + + +

                                                                                                                                                                                                        The crm customer fields

                                                                                                                                                                                                        + + + protected + array<string|int, mixed> + $modelFields + = ['hashcode', 'email', 'firstname', 'password', 'lastname', 'birth_date', 'phone', 'address', 'address2', 'city', 'postcode', 'country', 'opt_in', 'status', 'last_connection'] + + + + + +
                                                                                                                                                                                                        +
                                                                                                                                                                                                        +

                                                                                                                                                                                                        + $validation + + + +

                                                                                                                                                                                                        + + +

                                                                                                                                                                                                        Validation rules

                                                                                                                                                                                                        + + + protected + static array<string|int, mixed> + $validation + = ['hashcode' => 'required|uuid', 'email' => 'required|email', 'firstname' => 'required|string|min:1|max:255', 'lastname' => 'required|string|min:1|max:255', 'password' => 'required|min:8|max:255|mixedCase|containDigit|containSymbol', 'birth_date' => 'required|date_format:Y-m-d', 'phone' => 'sometimes|nullable|string|max:255', 'address' => 'sometimes|string|max:255', 'address2' => 'sometimes|string|max:255', 'city' => 'sometimes|string|min:2|max:255', 'postcode' => 'sometimes|string|max:255', 'country' => ['sometimes'], 'opt_in' => 'required|bool', 'status' => 'required|bool', 'last_connection' => 'sometimes|date'] + + + + + +
                                                                                                                                                                                                        +
                                                                                                                                                                                                        +

                                                                                                                                                                                                        + $address + + + +

                                                                                                                                                                                                        + + +

                                                                                                                                                                                                        The user address (street number, name, etc)

                                                                                                                                                                                                        + + + private + string + $address + = null + +

                                                                                                                                                                                                        Validate: sometimes,string

                                                                                                                                                                                                        +

                                                                                                                                                                                                        Min length NA +Max length 255 +Field Type varchar

                                                                                                                                                                                                        +
                                                                                                                                                                                                        + + + + +
                                                                                                                                                                                                        +
                                                                                                                                                                                                        +

                                                                                                                                                                                                        + $address2 + + + +

                                                                                                                                                                                                        + + +

                                                                                                                                                                                                        The user address 2nd part (street number, name, more, etc)

                                                                                                                                                                                                        + + + private + string + $address2 + = null + +

                                                                                                                                                                                                        Validate: sometimes,string

                                                                                                                                                                                                        +

                                                                                                                                                                                                        Min length NA +Max length 255 +Field Type varchar

                                                                                                                                                                                                        +
                                                                                                                                                                                                        + + + + +
                                                                                                                                                                                                        +
                                                                                                                                                                                                        +

                                                                                                                                                                                                        + $birth_date + + + +

                                                                                                                                                                                                        + + +

                                                                                                                                                                                                        Birth date

                                                                                                                                                                                                        + + + private + string + $birth_date + = null + +

                                                                                                                                                                                                        Validate: date_format:Y-m-d

                                                                                                                                                                                                        +

                                                                                                                                                                                                        Required +Field Type Date

                                                                                                                                                                                                        +
                                                                                                                                                                                                        + + + + +
                                                                                                                                                                                                        +
                                                                                                                                                                                                        +

                                                                                                                                                                                                        + $city + + + +

                                                                                                                                                                                                        + + +

                                                                                                                                                                                                        The user address city

                                                                                                                                                                                                        + + + private + string + $city + = null + +

                                                                                                                                                                                                        Validate: sometimes,string

                                                                                                                                                                                                        +

                                                                                                                                                                                                        Min length NA +Max length 255 +Field Type varchar

                                                                                                                                                                                                        +
                                                                                                                                                                                                        + + + + +
                                                                                                                                                                                                        +
                                                                                                                                                                                                        +

                                                                                                                                                                                                        + $country + + + +

                                                                                                                                                                                                        + + +

                                                                                                                                                                                                        The user address postcode

                                                                                                                                                                                                        + + + private + Country + $country + = null + +

                                                                                                                                                                                                        Validate: sometimes, in Country::toValues()

                                                                                                                                                                                                        +

                                                                                                                                                                                                        Required +Field Type tinyInt

                                                                                                                                                                                                        +
                                                                                                                                                                                                        + + + + +
                                                                                                                                                                                                        +
                                                                                                                                                                                                        +

                                                                                                                                                                                                        + $email + + + +

                                                                                                                                                                                                        + + +

                                                                                                                                                                                                        An RFC Valid Email

                                                                                                                                                                                                        + + + private + string + $email + = null + +

                                                                                                                                                                                                        Validate: rfc,dns,spoof,filter

                                                                                                                                                                                                        +

                                                                                                                                                                                                        Required +Min length N/A +Max length 255 +Field Type varchar

                                                                                                                                                                                                        +
                                                                                                                                                                                                        + + + + +
                                                                                                                                                                                                        +
                                                                                                                                                                                                        +

                                                                                                                                                                                                        + $firstname + + + +

                                                                                                                                                                                                        + + +

                                                                                                                                                                                                        First name

                                                                                                                                                                                                        + + + private + string + $firstname + = null + +

                                                                                                                                                                                                        Required +Min length 2 +Max length 255 +Field Type varchar

                                                                                                                                                                                                        +
                                                                                                                                                                                                        + + + + +
                                                                                                                                                                                                        +
                                                                                                                                                                                                        +

                                                                                                                                                                                                        + $hashcode + + + +

                                                                                                                                                                                                        + + +

                                                                                                                                                                                                        The user hashcode, this is link with the customer and the brand it is related to +It is used to identify the customer itself.

                                                                                                                                                                                                        + + + private + string + $hashcode + + +

                                                                                                                                                                                                        Validate: UUID, in customer_infos

                                                                                                                                                                                                        +

                                                                                                                                                                                                        Required +Min length 36 +Max length 36 +Field Type varchar

                                                                                                                                                                                                        +
                                                                                                                                                                                                        + + + + +
                                                                                                                                                                                                        +
                                                                                                                                                                                                        +

                                                                                                                                                                                                        + $last_connection + + + +

                                                                                                                                                                                                        + + +

                                                                                                                                                                                                        The last time the account was connected

                                                                                                                                                                                                        + + + private + string + $last_connection + = null + +

                                                                                                                                                                                                        This field is read only

                                                                                                                                                                                                        +
                                                                                                                                                                                                        + + + + +
                                                                                                                                                                                                        +
                                                                                                                                                                                                        +

                                                                                                                                                                                                        + $lastname + + + +

                                                                                                                                                                                                        + + +

                                                                                                                                                                                                        Last name

                                                                                                                                                                                                        + + + private + string + $lastname + = null + +

                                                                                                                                                                                                        Required +Min length 2 +Max length 255 +Field Type varchar

                                                                                                                                                                                                        +
                                                                                                                                                                                                        + + + + +
                                                                                                                                                                                                        +
                                                                                                                                                                                                        +

                                                                                                                                                                                                        + $opt_in + + + +

                                                                                                                                                                                                        + + +

                                                                                                                                                                                                        The user optin choice

                                                                                                                                                                                                        + + + private + bool + $opt_in + = false + +

                                                                                                                                                                                                        Validate: boolean

                                                                                                                                                                                                        +

                                                                                                                                                                                                        Required +Field Type TinyInt

                                                                                                                                                                                                        +
                                                                                                                                                                                                        + + + + +
                                                                                                                                                                                                        +
                                                                                                                                                                                                        +

                                                                                                                                                                                                        + $password + + + +

                                                                                                                                                                                                        + + +

                                                                                                                                                                                                        The user password +This is set only when creating a user +Otherwise it has to be set to null

                                                                                                                                                                                                        + + + private + string + $password + = null + +

                                                                                                                                                                                                        Validate: case_diff,numbers,letters,symbols,min:8

                                                                                                                                                                                                        +

                                                                                                                                                                                                        Min length 8 +Max length 255 +Field Type varchar

                                                                                                                                                                                                        +
                                                                                                                                                                                                        + + + + +
                                                                                                                                                                                                        +
                                                                                                                                                                                                        +

                                                                                                                                                                                                        + $phone + + + +

                                                                                                                                                                                                        + + +

                                                                                                                                                                                                        The user phone

                                                                                                                                                                                                        + + + private + string + $phone + = null + +

                                                                                                                                                                                                        Validate: sometimes,string

                                                                                                                                                                                                        +

                                                                                                                                                                                                        Required +Min length NA +Max length 255 +Field Type varchar

                                                                                                                                                                                                        +
                                                                                                                                                                                                        + + + + +
                                                                                                                                                                                                        +
                                                                                                                                                                                                        +

                                                                                                                                                                                                        + $postcode + + + +

                                                                                                                                                                                                        + + +

                                                                                                                                                                                                        The user address postcode

                                                                                                                                                                                                        + + + private + string + $postcode + = null + +

                                                                                                                                                                                                        Validate: string

                                                                                                                                                                                                        +

                                                                                                                                                                                                        Required +Min length NA +Max length 255 +Field Type varchar

                                                                                                                                                                                                        +
                                                                                                                                                                                                        + + + + +
                                                                                                                                                                                                        +
                                                                                                                                                                                                        +

                                                                                                                                                                                                        + $status + + + +

                                                                                                                                                                                                        + + +

                                                                                                                                                                                                        Is the account activated ?

                                                                                                                                                                                                        + + + private + bool + $status + = false + +

                                                                                                                                                                                                        This field is read only

                                                                                                                                                                                                        +
                                                                                                                                                                                                        + + + + +
                                                                                                                                                                                                        +
                                                                                                                                                                                                        + +
                                                                                                                                                                                                        +

                                                                                                                                                                                                        + Methods + +

                                                                                                                                                                                                        +
                                                                                                                                                                                                        +

                                                                                                                                                                                                        + __construct() + +

                                                                                                                                                                                                        + + +

                                                                                                                                                                                                        Customer

                                                                                                                                                                                                        + + + public + __construct([array<string|int, mixed> $properties = [] ]) : mixed + + +
                                                                                                                                                                                                        Parameters
                                                                                                                                                                                                        +
                                                                                                                                                                                                        +
                                                                                                                                                                                                        + $properties + : array<string|int, mixed> + = []
                                                                                                                                                                                                        +
                                                                                                                                                                                                        + +
                                                                                                                                                                                                        +
                                                                                                                                                                                                        + + +
                                                                                                                                                                                                        + Tags + +
                                                                                                                                                                                                        +
                                                                                                                                                                                                        +
                                                                                                                                                                                                        + throws +
                                                                                                                                                                                                        +
                                                                                                                                                                                                        + ValidationException + +

                                                                                                                                                                                                        If a field could not be validated.

                                                                                                                                                                                                        +
                                                                                                                                                                                                        + +
                                                                                                                                                                                                        +
                                                                                                                                                                                                        + +
                                                                                                                                                                                                        Return values
                                                                                                                                                                                                        + mixed + — + + +
                                                                                                                                                                                                        +
                                                                                                                                                                                                        +

                                                                                                                                                                                                        + __get() + +

                                                                                                                                                                                                        + + +

                                                                                                                                                                                                        Generic accessor

                                                                                                                                                                                                        + + + public + __get(string $field) : mixed|null + + +
                                                                                                                                                                                                        Parameters
                                                                                                                                                                                                        +
                                                                                                                                                                                                        +
                                                                                                                                                                                                        + $field + : string +
                                                                                                                                                                                                        +
                                                                                                                                                                                                        + +
                                                                                                                                                                                                        +
                                                                                                                                                                                                        + + + +
                                                                                                                                                                                                        Return values
                                                                                                                                                                                                        + mixed|null + — +

                                                                                                                                                                                                        Returns null if the property was not found any way.

                                                                                                                                                                                                        +
                                                                                                                                                                                                        + + +
                                                                                                                                                                                                        +
                                                                                                                                                                                                        +

                                                                                                                                                                                                        + __set() + +

                                                                                                                                                                                                        + + +

                                                                                                                                                                                                        Set prop on the model.

                                                                                                                                                                                                        + + + public + __set(string $field, mixed $value) : void + + +
                                                                                                                                                                                                        Parameters
                                                                                                                                                                                                        +
                                                                                                                                                                                                        +
                                                                                                                                                                                                        + $field + : string +
                                                                                                                                                                                                        +
                                                                                                                                                                                                        + +
                                                                                                                                                                                                        +
                                                                                                                                                                                                        + $value + : mixed +
                                                                                                                                                                                                        +
                                                                                                                                                                                                        + +
                                                                                                                                                                                                        +
                                                                                                                                                                                                        + + +
                                                                                                                                                                                                        + Tags + +
                                                                                                                                                                                                        +
                                                                                                                                                                                                        +
                                                                                                                                                                                                        + throws +
                                                                                                                                                                                                        +
                                                                                                                                                                                                        + ValidationException + +

                                                                                                                                                                                                        If a field could not be validated.

                                                                                                                                                                                                        +
                                                                                                                                                                                                        + +
                                                                                                                                                                                                        +
                                                                                                                                                                                                        + throws +
                                                                                                                                                                                                        +
                                                                                                                                                                                                        + AccessError + +

                                                                                                                                                                                                        If trying to set a value on a unknown property.

                                                                                                                                                                                                        +
                                                                                                                                                                                                        + +
                                                                                                                                                                                                        +
                                                                                                                                                                                                        + +
                                                                                                                                                                                                        Return values
                                                                                                                                                                                                        + void + — + + +
                                                                                                                                                                                                        +
                                                                                                                                                                                                        +

                                                                                                                                                                                                        + activate() + +

                                                                                                                                                                                                        + + +

                                                                                                                                                                                                        Active the customer on CRM.

                                                                                                                                                                                                        + + + public + activate() : bool + + + + +
                                                                                                                                                                                                        + Tags + +
                                                                                                                                                                                                        +
                                                                                                                                                                                                        +
                                                                                                                                                                                                        + throws +
                                                                                                                                                                                                        +
                                                                                                                                                                                                        + ValidationException + +

                                                                                                                                                                                                        If a customer's hashcode could not be validated.

                                                                                                                                                                                                        +
                                                                                                                                                                                                        + +
                                                                                                                                                                                                        +
                                                                                                                                                                                                        + throws +
                                                                                                                                                                                                        +
                                                                                                                                                                                                        + CrmException + +

                                                                                                                                                                                                        If an error occurs on server side or on getting response.

                                                                                                                                                                                                        +
                                                                                                                                                                                                        + +
                                                                                                                                                                                                        +
                                                                                                                                                                                                        + throws +
                                                                                                                                                                                                        +
                                                                                                                                                                                                        + ApiErrorException + +

                                                                                                                                                                                                        If any error or \LDC\LDCCRM\Enums\ApiError occurs. +Possibles are : - modelNotFound, If this customer hashcode could not be found. +- customerAlreadyActive, It the customer is already activated.

                                                                                                                                                                                                        +
                                                                                                                                                                                                        + +
                                                                                                                                                                                                        +
                                                                                                                                                                                                        + phpcs:ignore +
                                                                                                                                                                                                        +
                                                                                                                                                                                                        + +

                                                                                                                                                                                                        Squiz.Commenting.FunctionCommentThrowTag.WrongNumber

                                                                                                                                                                                                        +
                                                                                                                                                                                                        + +
                                                                                                                                                                                                        +
                                                                                                                                                                                                        + +
                                                                                                                                                                                                        Return values
                                                                                                                                                                                                        + bool + — +

                                                                                                                                                                                                        true if succeeded

                                                                                                                                                                                                        +
                                                                                                                                                                                                        + + +
                                                                                                                                                                                                        +
                                                                                                                                                                                                        +

                                                                                                                                                                                                        + delete() + +

                                                                                                                                                                                                        + + +

                                                                                                                                                                                                        Removes the customer from CRM.

                                                                                                                                                                                                        + + + public + delete() : bool + + + + +
                                                                                                                                                                                                        + Tags + +
                                                                                                                                                                                                        +
                                                                                                                                                                                                        +
                                                                                                                                                                                                        + throws +
                                                                                                                                                                                                        +
                                                                                                                                                                                                        + ValidationException + +

                                                                                                                                                                                                        If a field could not be validated.

                                                                                                                                                                                                        +
                                                                                                                                                                                                        + +
                                                                                                                                                                                                        +
                                                                                                                                                                                                        + throws +
                                                                                                                                                                                                        +
                                                                                                                                                                                                        + CrmException + +

                                                                                                                                                                                                        If an error occurs on server side or on getting response.

                                                                                                                                                                                                        +
                                                                                                                                                                                                        + +
                                                                                                                                                                                                        +
                                                                                                                                                                                                        + throws +
                                                                                                                                                                                                        +
                                                                                                                                                                                                        + ApiErrorException + +

                                                                                                                                                                                                        If any error or \LDC\LDCCRM\Enums\ApiError occurs. +Possibles are : - modelNotFound, If this customer hashcode could not be found.

                                                                                                                                                                                                        +
                                                                                                                                                                                                        + +
                                                                                                                                                                                                        +
                                                                                                                                                                                                        + phpcs:ignore +
                                                                                                                                                                                                        +
                                                                                                                                                                                                        + +

                                                                                                                                                                                                        Squiz.Commenting.FunctionCommentThrowTag.WrongNumber

                                                                                                                                                                                                        +
                                                                                                                                                                                                        + +
                                                                                                                                                                                                        +
                                                                                                                                                                                                        + +
                                                                                                                                                                                                        Return values
                                                                                                                                                                                                        + bool + — +

                                                                                                                                                                                                        true if succeeded

                                                                                                                                                                                                        +
                                                                                                                                                                                                        + + +
                                                                                                                                                                                                        +
                                                                                                                                                                                                        +

                                                                                                                                                                                                        + fill() + +

                                                                                                                                                                                                        + + +

                                                                                                                                                                                                        Fill values into model using validation rules.

                                                                                                                                                                                                        + + + public + fill(array<string|int, mixed> $properties) : void + + +
                                                                                                                                                                                                        Parameters
                                                                                                                                                                                                        +
                                                                                                                                                                                                        +
                                                                                                                                                                                                        + $properties + : array<string|int, mixed> +
                                                                                                                                                                                                        +
                                                                                                                                                                                                        + +
                                                                                                                                                                                                        +
                                                                                                                                                                                                        + + +
                                                                                                                                                                                                        + Tags + +
                                                                                                                                                                                                        +
                                                                                                                                                                                                        +
                                                                                                                                                                                                        + throws +
                                                                                                                                                                                                        +
                                                                                                                                                                                                        + ValidationException + +

                                                                                                                                                                                                        If a field could not be validated.

                                                                                                                                                                                                        +
                                                                                                                                                                                                        + +
                                                                                                                                                                                                        +
                                                                                                                                                                                                        + +
                                                                                                                                                                                                        Return values
                                                                                                                                                                                                        + void + — + + +
                                                                                                                                                                                                        +
                                                                                                                                                                                                        +

                                                                                                                                                                                                        + find() + +

                                                                                                                                                                                                        + + +

                                                                                                                                                                                                        Find a customer using its hashcode in the crm

                                                                                                                                                                                                        + + + public + static find(string $hashcode) : self|null + + +
                                                                                                                                                                                                        Parameters
                                                                                                                                                                                                        +
                                                                                                                                                                                                        +
                                                                                                                                                                                                        + $hashcode + : string +
                                                                                                                                                                                                        +
                                                                                                                                                                                                        + +
                                                                                                                                                                                                        +
                                                                                                                                                                                                        + + +
                                                                                                                                                                                                        + Tags + +
                                                                                                                                                                                                        +
                                                                                                                                                                                                        +
                                                                                                                                                                                                        + throws +
                                                                                                                                                                                                        +
                                                                                                                                                                                                        + CrmException + +

                                                                                                                                                                                                        If an error occurs on server side or on getting response.

                                                                                                                                                                                                        +
                                                                                                                                                                                                        + +
                                                                                                                                                                                                        +
                                                                                                                                                                                                        + throws +
                                                                                                                                                                                                        +
                                                                                                                                                                                                        + ApiErrorException + +

                                                                                                                                                                                                        If any error or \LDC\LDCCRM\Enums\ApiError occurs.

                                                                                                                                                                                                        +
                                                                                                                                                                                                        + +
                                                                                                                                                                                                        +
                                                                                                                                                                                                        + phpcs:ignore +
                                                                                                                                                                                                        +
                                                                                                                                                                                                        + +

                                                                                                                                                                                                        Squiz.Commenting.FunctionCommentThrowTag.WrongNumber

                                                                                                                                                                                                        +
                                                                                                                                                                                                        + +
                                                                                                                                                                                                        +
                                                                                                                                                                                                        + +
                                                                                                                                                                                                        Return values
                                                                                                                                                                                                        + self|null + — +

                                                                                                                                                                                                        Return null if the customer was not found

                                                                                                                                                                                                        +
                                                                                                                                                                                                        + + +
                                                                                                                                                                                                        +
                                                                                                                                                                                                        +

                                                                                                                                                                                                        + findWithEmail() + +

                                                                                                                                                                                                        + + +

                                                                                                                                                                                                        Find a customer using its email in the crm +This is an alias of Customer::find()

                                                                                                                                                                                                        + + + public + static findWithEmail(string $email) : self|null + + +
                                                                                                                                                                                                        Parameters
                                                                                                                                                                                                        +
                                                                                                                                                                                                        +
                                                                                                                                                                                                        + $email + : string +
                                                                                                                                                                                                        +
                                                                                                                                                                                                        + +
                                                                                                                                                                                                        +
                                                                                                                                                                                                        + + +
                                                                                                                                                                                                        + Tags + +
                                                                                                                                                                                                        +
                                                                                                                                                                                                        +
                                                                                                                                                                                                        + throws +
                                                                                                                                                                                                        +
                                                                                                                                                                                                        + CrmException + +

                                                                                                                                                                                                        If an error occurs on server side or on getting response.

                                                                                                                                                                                                        +
                                                                                                                                                                                                        + +
                                                                                                                                                                                                        +
                                                                                                                                                                                                        + throws +
                                                                                                                                                                                                        +
                                                                                                                                                                                                        + ApiErrorException + +

                                                                                                                                                                                                        If any error or \LDC\LDCCRM\Enums\ApiError occurs.

                                                                                                                                                                                                        +
                                                                                                                                                                                                        + +
                                                                                                                                                                                                        +
                                                                                                                                                                                                        + phpcs:ignore +
                                                                                                                                                                                                        +
                                                                                                                                                                                                        + +

                                                                                                                                                                                                        Squiz.Commenting.FunctionCommentThrowTag.WrongNumber

                                                                                                                                                                                                        +
                                                                                                                                                                                                        + +
                                                                                                                                                                                                        +
                                                                                                                                                                                                        + +
                                                                                                                                                                                                        Return values
                                                                                                                                                                                                        + self|null + — + + +
                                                                                                                                                                                                        +
                                                                                                                                                                                                        +

                                                                                                                                                                                                        + jsonSerialize() + +

                                                                                                                                                                                                        + + +

                                                                                                                                                                                                        Serialize this object to an array

                                                                                                                                                                                                        + + + public + jsonSerialize() : array<string|int, mixed> + + + + + +
                                                                                                                                                                                                        Return values
                                                                                                                                                                                                        + array<string|int, mixed> + — + + +
                                                                                                                                                                                                        +
                                                                                                                                                                                                        +

                                                                                                                                                                                                        + login() + +

                                                                                                                                                                                                        + + +

                                                                                                                                                                                                        Test customer credentials

                                                                                                                                                                                                        + + + public + static login(string $email, string $password) : bool + + +
                                                                                                                                                                                                        Parameters
                                                                                                                                                                                                        +
                                                                                                                                                                                                        +
                                                                                                                                                                                                        + $email + : string +
                                                                                                                                                                                                        +
                                                                                                                                                                                                        + +
                                                                                                                                                                                                        +
                                                                                                                                                                                                        + $password + : string +
                                                                                                                                                                                                        +
                                                                                                                                                                                                        + +
                                                                                                                                                                                                        +
                                                                                                                                                                                                        + + +
                                                                                                                                                                                                        + Tags + +
                                                                                                                                                                                                        +
                                                                                                                                                                                                        +
                                                                                                                                                                                                        + throws +
                                                                                                                                                                                                        +
                                                                                                                                                                                                        + ValidationException + +

                                                                                                                                                                                                        If a customer's email could not be validated.

                                                                                                                                                                                                        +
                                                                                                                                                                                                        + +
                                                                                                                                                                                                        +
                                                                                                                                                                                                        + throws +
                                                                                                                                                                                                        +
                                                                                                                                                                                                        + CrmException + +

                                                                                                                                                                                                        If an error occurs on server side or on getting response.

                                                                                                                                                                                                        +
                                                                                                                                                                                                        + +
                                                                                                                                                                                                        +
                                                                                                                                                                                                        + throws +
                                                                                                                                                                                                        +
                                                                                                                                                                                                        + ApiErrorException + +

                                                                                                                                                                                                        If any error or \LDC\LDCCRM\Enums\ApiError occurs. +Possibles are : - authFailed, If credentials are not valid. +- customerNotActivated, If the account is not activated.

                                                                                                                                                                                                        +
                                                                                                                                                                                                        + +
                                                                                                                                                                                                        +
                                                                                                                                                                                                        + phpcs:ignore +
                                                                                                                                                                                                        +
                                                                                                                                                                                                        + +

                                                                                                                                                                                                        Squiz.Commenting.FunctionCommentThrowTag.WrongNumber

                                                                                                                                                                                                        +
                                                                                                                                                                                                        + +
                                                                                                                                                                                                        +
                                                                                                                                                                                                        + +
                                                                                                                                                                                                        Return values
                                                                                                                                                                                                        + bool + — + + +
                                                                                                                                                                                                        +
                                                                                                                                                                                                        +

                                                                                                                                                                                                        + save() + +

                                                                                                                                                                                                        + + +

                                                                                                                                                                                                        Save the customer on CRM.

                                                                                                                                                                                                        + + + public + save() : bool + + + + +
                                                                                                                                                                                                        + Tags + +
                                                                                                                                                                                                        +
                                                                                                                                                                                                        +
                                                                                                                                                                                                        + throws +
                                                                                                                                                                                                        +
                                                                                                                                                                                                        + ValidationException + +

                                                                                                                                                                                                        If a field could not be validated.

                                                                                                                                                                                                        +
                                                                                                                                                                                                        + +
                                                                                                                                                                                                        +
                                                                                                                                                                                                        + throws +
                                                                                                                                                                                                        +
                                                                                                                                                                                                        + CrmException + +

                                                                                                                                                                                                        If an error occurs on server side or on getting response.

                                                                                                                                                                                                        +
                                                                                                                                                                                                        + +
                                                                                                                                                                                                        +
                                                                                                                                                                                                        + throws +
                                                                                                                                                                                                        +
                                                                                                                                                                                                        + ApiErrorException + +

                                                                                                                                                                                                        If any error or \LDC\LDCCRM\Enums\ApiError occurs. +Possibles are : - validationFailed, If provided data is wrong(CRM side). +- modelNotFound, If this customer hashcode could not be found (new customers only).

                                                                                                                                                                                                        +
                                                                                                                                                                                                        + +
                                                                                                                                                                                                        +
                                                                                                                                                                                                        + phpcs:ignore +
                                                                                                                                                                                                        +
                                                                                                                                                                                                        + +

                                                                                                                                                                                                        Squiz.Commenting.FunctionCommentThrowTag.WrongNumber

                                                                                                                                                                                                        +
                                                                                                                                                                                                        + +
                                                                                                                                                                                                        +
                                                                                                                                                                                                        + +
                                                                                                                                                                                                        Return values
                                                                                                                                                                                                        + bool + — +

                                                                                                                                                                                                        True if save was successfull.

                                                                                                                                                                                                        +
                                                                                                                                                                                                        + + +
                                                                                                                                                                                                        +
                                                                                                                                                                                                        +

                                                                                                                                                                                                        + toggleOptin() + +

                                                                                                                                                                                                        + + +

                                                                                                                                                                                                        Toggle the account optin value in the crm

                                                                                                                                                                                                        + + + public + toggleOptin() : bool + + + + +
                                                                                                                                                                                                        + Tags + +
                                                                                                                                                                                                        +
                                                                                                                                                                                                        +
                                                                                                                                                                                                        + throws +
                                                                                                                                                                                                        +
                                                                                                                                                                                                        + ValidationException + +

                                                                                                                                                                                                        If a field could not be validated.

                                                                                                                                                                                                        +
                                                                                                                                                                                                        + +
                                                                                                                                                                                                        +
                                                                                                                                                                                                        + throws +
                                                                                                                                                                                                        +
                                                                                                                                                                                                        + CrmException + +

                                                                                                                                                                                                        If an error occurs on server side or on getting response.

                                                                                                                                                                                                        +
                                                                                                                                                                                                        + +
                                                                                                                                                                                                        +
                                                                                                                                                                                                        + throws +
                                                                                                                                                                                                        +
                                                                                                                                                                                                        + ApiErrorException + +

                                                                                                                                                                                                        If any error or \LDC\LDCCRM\Enums\ApiError occurs. +Possibles are : - modelNotFound, If this customer hashcode could not be found.

                                                                                                                                                                                                        +
                                                                                                                                                                                                        + +
                                                                                                                                                                                                        +
                                                                                                                                                                                                        + phpcs:ignore +
                                                                                                                                                                                                        +
                                                                                                                                                                                                        + +

                                                                                                                                                                                                        Squiz.Commenting.FunctionCommentThrowTag.WrongNumber

                                                                                                                                                                                                        +
                                                                                                                                                                                                        + +
                                                                                                                                                                                                        +
                                                                                                                                                                                                        + +
                                                                                                                                                                                                        Return values
                                                                                                                                                                                                        + bool + — +

                                                                                                                                                                                                        true if succeeded

                                                                                                                                                                                                        +
                                                                                                                                                                                                        + + +
                                                                                                                                                                                                        +
                                                                                                                                                                                                        +

                                                                                                                                                                                                        + validateAllValues() + +

                                                                                                                                                                                                        + + +

                                                                                                                                                                                                        Validate all model properties

                                                                                                                                                                                                        + + + protected + validateAllValues([array<string|int, mixed> $ignore = [] ]) : array<string|int, mixed> + + +
                                                                                                                                                                                                        Parameters
                                                                                                                                                                                                        +
                                                                                                                                                                                                        +
                                                                                                                                                                                                        + $ignore + : array<string|int, mixed> + = []
                                                                                                                                                                                                        +
                                                                                                                                                                                                        + +
                                                                                                                                                                                                        +
                                                                                                                                                                                                        + + +
                                                                                                                                                                                                        + Tags + +
                                                                                                                                                                                                        +
                                                                                                                                                                                                        +
                                                                                                                                                                                                        + throws +
                                                                                                                                                                                                        +
                                                                                                                                                                                                        + ValidationException + +

                                                                                                                                                                                                        If a field could not be validated.

                                                                                                                                                                                                        +
                                                                                                                                                                                                        + +
                                                                                                                                                                                                        +
                                                                                                                                                                                                        + +
                                                                                                                                                                                                        Return values
                                                                                                                                                                                                        + array<string|int, mixed> + — +

                                                                                                                                                                                                        the validated values

                                                                                                                                                                                                        +
                                                                                                                                                                                                        + + +
                                                                                                                                                                                                        +
                                                                                                                                                                                                        +

                                                                                                                                                                                                        + store() + +

                                                                                                                                                                                                        + + +

                                                                                                                                                                                                        Calls api store customer method

                                                                                                                                                                                                        + + + private + store() : bool + + + + +
                                                                                                                                                                                                        + Tags + +
                                                                                                                                                                                                        +
                                                                                                                                                                                                        +
                                                                                                                                                                                                        + throws +
                                                                                                                                                                                                        +
                                                                                                                                                                                                        + ValidationException + +

                                                                                                                                                                                                        If a field could not be validated.

                                                                                                                                                                                                        +
                                                                                                                                                                                                        + +
                                                                                                                                                                                                        +
                                                                                                                                                                                                        + throws +
                                                                                                                                                                                                        +
                                                                                                                                                                                                        + CrmException + +

                                                                                                                                                                                                        If an error occurs on server side or on getting response.

                                                                                                                                                                                                        +
                                                                                                                                                                                                        + +
                                                                                                                                                                                                        +
                                                                                                                                                                                                        + throws +
                                                                                                                                                                                                        +
                                                                                                                                                                                                        + ApiErrorException + +

                                                                                                                                                                                                        If any error or \LDC\LDCCRM\Enums\ApiError occurs. +Possibles are : - validationFailed, If provided data is wrong(CRM side).

                                                                                                                                                                                                        +
                                                                                                                                                                                                        + +
                                                                                                                                                                                                        +
                                                                                                                                                                                                        + phpcs:ignore +
                                                                                                                                                                                                        +
                                                                                                                                                                                                        + +

                                                                                                                                                                                                        Squiz.Commenting.FunctionCommentThrowTag.WrongNumber

                                                                                                                                                                                                        +
                                                                                                                                                                                                        + +
                                                                                                                                                                                                        +
                                                                                                                                                                                                        + +
                                                                                                                                                                                                        Return values
                                                                                                                                                                                                        + bool + — +

                                                                                                                                                                                                        True if save was successfull.

                                                                                                                                                                                                        +
                                                                                                                                                                                                        + + +
                                                                                                                                                                                                        +
                                                                                                                                                                                                        +

                                                                                                                                                                                                        + update() + +

                                                                                                                                                                                                        + + +

                                                                                                                                                                                                        Calls api update customer method

                                                                                                                                                                                                        + + + private + update() : bool + + + + +
                                                                                                                                                                                                        + Tags + +
                                                                                                                                                                                                        +
                                                                                                                                                                                                        +
                                                                                                                                                                                                        + throws +
                                                                                                                                                                                                        +
                                                                                                                                                                                                        + ValidationException + +

                                                                                                                                                                                                        If a field could not be validated.

                                                                                                                                                                                                        +
                                                                                                                                                                                                        + +
                                                                                                                                                                                                        +
                                                                                                                                                                                                        + throws +
                                                                                                                                                                                                        +
                                                                                                                                                                                                        + CrmException + +

                                                                                                                                                                                                        If an error occurs on server side or on getting response.

                                                                                                                                                                                                        +
                                                                                                                                                                                                        + +
                                                                                                                                                                                                        +
                                                                                                                                                                                                        + throws +
                                                                                                                                                                                                        +
                                                                                                                                                                                                        + ApiErrorException + +

                                                                                                                                                                                                        If any error or \LDC\LDCCRM\Enums\ApiError occurs. +Possibles are : - validationFailed, If provided data is wrong(CRM side). +- modelNotFound, If this customer hashcode could not be found.

                                                                                                                                                                                                        +
                                                                                                                                                                                                        + +
                                                                                                                                                                                                        +
                                                                                                                                                                                                        + phpcs:ignore +
                                                                                                                                                                                                        +
                                                                                                                                                                                                        + +

                                                                                                                                                                                                        Squiz.Commenting.FunctionCommentThrowTag.WrongNumber

                                                                                                                                                                                                        +
                                                                                                                                                                                                        + +
                                                                                                                                                                                                        +
                                                                                                                                                                                                        + +
                                                                                                                                                                                                        Return values
                                                                                                                                                                                                        + bool + — +

                                                                                                                                                                                                        True if save was successfull.

                                                                                                                                                                                                        +
                                                                                                                                                                                                        + + +
                                                                                                                                                                                                        +
                                                                                                                                                                                                        + + + + +
                                                                                                                                                                                                        +
                                                                                                                                                                                                        +
                                                                                                                                                                                                        +
                                                                                                                                                                                                        +

                                                                                                                                                                                                        Search results

                                                                                                                                                                                                        + +
                                                                                                                                                                                                        +
                                                                                                                                                                                                        +
                                                                                                                                                                                                          +
                                                                                                                                                                                                          +
                                                                                                                                                                                                          +
                                                                                                                                                                                                          +
                                                                                                                                                                                                          +
                                                                                                                                                                                                          + + +
                                                                                                                                                                                                          + + + + + + + + diff --git a/app/Lib/vendor/crm-client-3.0.6/documentation/classes/LDC-LDCCRM-Models-Question.html b/app/Lib/vendor/crm-client-3.0.6/documentation/classes/LDC-LDCCRM-Models-Question.html new file mode 100644 index 0000000..1c86565 --- /dev/null +++ b/app/Lib/vendor/crm-client-3.0.6/documentation/classes/LDC-LDCCRM-Models-Question.html @@ -0,0 +1,1359 @@ + + + + + CRM V2 + + + + + + + + + + + + + + + + + + + +
                                                                                                                                                                                                          +

                                                                                                                                                                                                          CRM V2

                                                                                                                                                                                                          + + + + + +
                                                                                                                                                                                                          + +
                                                                                                                                                                                                          +
                                                                                                                                                                                                          + + + + +
                                                                                                                                                                                                          + + +
                                                                                                                                                                                                          +

                                                                                                                                                                                                          + Question + + + extends CrmClientModel + + +
                                                                                                                                                                                                          + in package + +
                                                                                                                                                                                                          + + +

                                                                                                                                                                                                          + + + +

                                                                                                                                                                                                          This class represents a question +It has some static methods to retrieve questions and answers

                                                                                                                                                                                                          + + + +
                                                                                                                                                                                                          + Tags + +
                                                                                                                                                                                                          +
                                                                                                                                                                                                          +
                                                                                                                                                                                                          + category +
                                                                                                                                                                                                          +
                                                                                                                                                                                                          + +

                                                                                                                                                                                                          Api Models

                                                                                                                                                                                                          +
                                                                                                                                                                                                          + +
                                                                                                                                                                                                          +
                                                                                                                                                                                                          + subpackage +
                                                                                                                                                                                                          +
                                                                                                                                                                                                          + +

                                                                                                                                                                                                          models

                                                                                                                                                                                                          +
                                                                                                                                                                                                          + +
                                                                                                                                                                                                          +
                                                                                                                                                                                                          + author +
                                                                                                                                                                                                          +
                                                                                                                                                                                                          + +

                                                                                                                                                                                                          Jérémy Munsch jeremy.munsch@ldc.fr

                                                                                                                                                                                                          +
                                                                                                                                                                                                          + +
                                                                                                                                                                                                          +
                                                                                                                                                                                                          + + + + + + +

                                                                                                                                                                                                          + Table of Contents + +

                                                                                                                                                                                                          + +
                                                                                                                                                                                                          +
                                                                                                                                                                                                          + $answers + +  : array<string|int, Answer> +
                                                                                                                                                                                                          +
                                                                                                                                                                                                          + +
                                                                                                                                                                                                          + $id + +  : string +
                                                                                                                                                                                                          +
                                                                                                                                                                                                          + +
                                                                                                                                                                                                          + $question + +  : string +
                                                                                                                                                                                                          +
                                                                                                                                                                                                          + +
                                                                                                                                                                                                          + $type + +  : QuestionType +
                                                                                                                                                                                                          +
                                                                                                                                                                                                          + +
                                                                                                                                                                                                          + $modelFields + +  : array<string|int, mixed> +
                                                                                                                                                                                                          +
                                                                                                                                                                                                          The crm customer fields
                                                                                                                                                                                                          + +
                                                                                                                                                                                                          + $validation + +  : array<string|int, mixed> +
                                                                                                                                                                                                          +
                                                                                                                                                                                                          Validation rules
                                                                                                                                                                                                          + +
                                                                                                                                                                                                          + $answers + +  : array<string|int, mixed> +
                                                                                                                                                                                                          +
                                                                                                                                                                                                          The question answers
                                                                                                                                                                                                          + +
                                                                                                                                                                                                          + $id + +  : int +
                                                                                                                                                                                                          +
                                                                                                                                                                                                          The question id
                                                                                                                                                                                                          + +
                                                                                                                                                                                                          + $question + +  : string +
                                                                                                                                                                                                          +
                                                                                                                                                                                                          The actual question as a string
                                                                                                                                                                                                          + +
                                                                                                                                                                                                          + $type + +  : QuestionType +
                                                                                                                                                                                                          +
                                                                                                                                                                                                          The question type
                                                                                                                                                                                                          + +
                                                                                                                                                                                                          + __construct() + +  : mixed +
                                                                                                                                                                                                          +
                                                                                                                                                                                                          Question
                                                                                                                                                                                                          + +
                                                                                                                                                                                                          + __get() + +  : mixed +
                                                                                                                                                                                                          +
                                                                                                                                                                                                          General accessor
                                                                                                                                                                                                          + +
                                                                                                                                                                                                          + __set() + +  : void +
                                                                                                                                                                                                          +
                                                                                                                                                                                                          Set prop on the model.
                                                                                                                                                                                                          + +
                                                                                                                                                                                                          + all() + +  : array<string|int, mixed> +
                                                                                                                                                                                                          +
                                                                                                                                                                                                          Get all questions only
                                                                                                                                                                                                          + +
                                                                                                                                                                                                          + allWithCustomerAnswers() + +  : array<string|int, mixed> +
                                                                                                                                                                                                          +
                                                                                                                                                                                                          Get all the questions with customer answers
                                                                                                                                                                                                          + +
                                                                                                                                                                                                          + fill() + +  : void +
                                                                                                                                                                                                          +
                                                                                                                                                                                                          Fill values into model using validation rules.
                                                                                                                                                                                                          + +
                                                                                                                                                                                                          + jsonSerialize() + +  : array<string|int, mixed> +
                                                                                                                                                                                                          +
                                                                                                                                                                                                          Serialize this object to an array
                                                                                                                                                                                                          + +
                                                                                                                                                                                                          + unansweredBy() + +  : array<string|int, mixed> +
                                                                                                                                                                                                          +
                                                                                                                                                                                                          Get unanswered question for a specific customer
                                                                                                                                                                                                          + +
                                                                                                                                                                                                          + validateAllValues() + +  : array<string|int, mixed> +
                                                                                                                                                                                                          +
                                                                                                                                                                                                          Validate all model properties
                                                                                                                                                                                                          + +
                                                                                                                                                                                                          + + + + + + +
                                                                                                                                                                                                          +

                                                                                                                                                                                                          + Properties + +

                                                                                                                                                                                                          +
                                                                                                                                                                                                          +

                                                                                                                                                                                                          + $answers + + + +

                                                                                                                                                                                                          + + + + + public + array<string|int, Answer> + $answers + + +

                                                                                                                                                                                                          An array with answers

                                                                                                                                                                                                          +
                                                                                                                                                                                                          + +
                                                                                                                                                                                                          + + + +
                                                                                                                                                                                                          +
                                                                                                                                                                                                          +

                                                                                                                                                                                                          + $id + + + +

                                                                                                                                                                                                          + + + + + public + string + $id + + +

                                                                                                                                                                                                          The question id

                                                                                                                                                                                                          +
                                                                                                                                                                                                          + +
                                                                                                                                                                                                          + + + +
                                                                                                                                                                                                          +
                                                                                                                                                                                                          +

                                                                                                                                                                                                          + $question + + + +

                                                                                                                                                                                                          + + + + + public + string + $question + + +

                                                                                                                                                                                                          The actual question as a string

                                                                                                                                                                                                          +
                                                                                                                                                                                                          + +
                                                                                                                                                                                                          + + + +
                                                                                                                                                                                                          +
                                                                                                                                                                                                          +

                                                                                                                                                                                                          + $type + + + +

                                                                                                                                                                                                          + + + + + public + QuestionType + $type + + +

                                                                                                                                                                                                          The question type to display, +it also hints wether it can accept one or multiple responses, +so only checkbox allows multiple responses

                                                                                                                                                                                                          +
                                                                                                                                                                                                          + +
                                                                                                                                                                                                          + + + +
                                                                                                                                                                                                          +
                                                                                                                                                                                                          +

                                                                                                                                                                                                          + $modelFields + + + +

                                                                                                                                                                                                          + + +

                                                                                                                                                                                                          The crm customer fields

                                                                                                                                                                                                          + + + protected + array<string|int, mixed> + $modelFields + = ['id', 'question', 'type', 'answers'] + + + + + +
                                                                                                                                                                                                          +
                                                                                                                                                                                                          +

                                                                                                                                                                                                          + $validation + + + +

                                                                                                                                                                                                          + + +

                                                                                                                                                                                                          Validation rules

                                                                                                                                                                                                          + + + protected + static array<string|int, mixed> + $validation + = ['id' => 'required|int', 'question' => 'required|string|max:255', 'type' => ['required'], 'answers' => 'required|array'] + + + + + +
                                                                                                                                                                                                          +
                                                                                                                                                                                                          +

                                                                                                                                                                                                          + $answers + + + +

                                                                                                                                                                                                          + + +

                                                                                                                                                                                                          The question answers

                                                                                                                                                                                                          + + + private + array<string|int, mixed> + $answers + = [] + +

                                                                                                                                                                                                          \LDC\LDCCRM\Models\Answer

                                                                                                                                                                                                          +
                                                                                                                                                                                                          + + + + +
                                                                                                                                                                                                          +
                                                                                                                                                                                                          +

                                                                                                                                                                                                          + $id + + + +

                                                                                                                                                                                                          + + +

                                                                                                                                                                                                          The question id

                                                                                                                                                                                                          + + + private + int + $id + + +

                                                                                                                                                                                                          Required +Field Type bigInt

                                                                                                                                                                                                          +
                                                                                                                                                                                                          + + + + +
                                                                                                                                                                                                          +
                                                                                                                                                                                                          +

                                                                                                                                                                                                          + $question + + + +

                                                                                                                                                                                                          + + +

                                                                                                                                                                                                          The actual question as a string

                                                                                                                                                                                                          + + + private + string + $question + = null + +

                                                                                                                                                                                                          Required +Max length 255 +Field Type varchar

                                                                                                                                                                                                          +
                                                                                                                                                                                                          + + + + +
                                                                                                                                                                                                          +
                                                                                                                                                                                                          +

                                                                                                                                                                                                          + $type + + + +

                                                                                                                                                                                                          + + +

                                                                                                                                                                                                          The question type

                                                                                                                                                                                                          + + + private + QuestionType + $type + = null + +

                                                                                                                                                                                                          Validate: in QuestionType::toValues()

                                                                                                                                                                                                          +

                                                                                                                                                                                                          Required +Field Type tinyInteger

                                                                                                                                                                                                          +
                                                                                                                                                                                                          + + + + +
                                                                                                                                                                                                          +
                                                                                                                                                                                                          + +
                                                                                                                                                                                                          +

                                                                                                                                                                                                          + Methods + +

                                                                                                                                                                                                          +
                                                                                                                                                                                                          +

                                                                                                                                                                                                          + __construct() + +

                                                                                                                                                                                                          + + +

                                                                                                                                                                                                          Question

                                                                                                                                                                                                          + + + public + __construct([array<string|int, mixed> $properties = [] ]) : mixed + + +
                                                                                                                                                                                                          Parameters
                                                                                                                                                                                                          +
                                                                                                                                                                                                          +
                                                                                                                                                                                                          + $properties + : array<string|int, mixed> + = []
                                                                                                                                                                                                          +
                                                                                                                                                                                                          + +
                                                                                                                                                                                                          +
                                                                                                                                                                                                          + + +
                                                                                                                                                                                                          + Tags + +
                                                                                                                                                                                                          +
                                                                                                                                                                                                          +
                                                                                                                                                                                                          + throws +
                                                                                                                                                                                                          +
                                                                                                                                                                                                          + ValidationException + +

                                                                                                                                                                                                          If a field could not be validated.

                                                                                                                                                                                                          +
                                                                                                                                                                                                          + +
                                                                                                                                                                                                          +
                                                                                                                                                                                                          + +
                                                                                                                                                                                                          Return values
                                                                                                                                                                                                          + mixed + — + + +
                                                                                                                                                                                                          +
                                                                                                                                                                                                          +

                                                                                                                                                                                                          + __get() + +

                                                                                                                                                                                                          + + +

                                                                                                                                                                                                          General accessor

                                                                                                                                                                                                          + + + public + __get(string $field) : mixed + + +
                                                                                                                                                                                                          Parameters
                                                                                                                                                                                                          +
                                                                                                                                                                                                          +
                                                                                                                                                                                                          + $field + : string +
                                                                                                                                                                                                          +
                                                                                                                                                                                                          + +
                                                                                                                                                                                                          +
                                                                                                                                                                                                          + + + +
                                                                                                                                                                                                          Return values
                                                                                                                                                                                                          + mixed + — + + +
                                                                                                                                                                                                          +
                                                                                                                                                                                                          +

                                                                                                                                                                                                          + __set() + +

                                                                                                                                                                                                          + + +

                                                                                                                                                                                                          Set prop on the model.

                                                                                                                                                                                                          + + + public + __set(string $field, mixed $value) : void + + +
                                                                                                                                                                                                          Parameters
                                                                                                                                                                                                          +
                                                                                                                                                                                                          +
                                                                                                                                                                                                          + $field + : string +
                                                                                                                                                                                                          +
                                                                                                                                                                                                          + +
                                                                                                                                                                                                          +
                                                                                                                                                                                                          + $value + : mixed +
                                                                                                                                                                                                          +
                                                                                                                                                                                                          + +
                                                                                                                                                                                                          +
                                                                                                                                                                                                          + + +
                                                                                                                                                                                                          + Tags + +
                                                                                                                                                                                                          +
                                                                                                                                                                                                          +
                                                                                                                                                                                                          + throws +
                                                                                                                                                                                                          +
                                                                                                                                                                                                          + ValidationException + +

                                                                                                                                                                                                          If a field could not be validated.

                                                                                                                                                                                                          +
                                                                                                                                                                                                          + +
                                                                                                                                                                                                          +
                                                                                                                                                                                                          + throws +
                                                                                                                                                                                                          +
                                                                                                                                                                                                          + AccessError + +

                                                                                                                                                                                                          If trying to set a value on a unknown property.

                                                                                                                                                                                                          +
                                                                                                                                                                                                          + +
                                                                                                                                                                                                          +
                                                                                                                                                                                                          + +
                                                                                                                                                                                                          Return values
                                                                                                                                                                                                          + void + — + + +
                                                                                                                                                                                                          +
                                                                                                                                                                                                          +

                                                                                                                                                                                                          + all() + +

                                                                                                                                                                                                          + + +

                                                                                                                                                                                                          Get all questions only

                                                                                                                                                                                                          + + + public + static all() : array<string|int, mixed> + + + + +
                                                                                                                                                                                                          + Tags + +
                                                                                                                                                                                                          +
                                                                                                                                                                                                          +
                                                                                                                                                                                                          + throws +
                                                                                                                                                                                                          +
                                                                                                                                                                                                          + CrmException + +

                                                                                                                                                                                                          If an error occurs on server side or on getting response.

                                                                                                                                                                                                          +
                                                                                                                                                                                                          + +
                                                                                                                                                                                                          +
                                                                                                                                                                                                          + throws +
                                                                                                                                                                                                          +
                                                                                                                                                                                                          + ApiErrorException + +

                                                                                                                                                                                                          If any error or \LDC\LDCCRM\Enums\ApiError occurs.

                                                                                                                                                                                                          +
                                                                                                                                                                                                          + +
                                                                                                                                                                                                          +
                                                                                                                                                                                                          + phpcs:ignore +
                                                                                                                                                                                                          +
                                                                                                                                                                                                          + +

                                                                                                                                                                                                          Squiz.Commenting.FunctionCommentThrowTag.WrongNumber

                                                                                                                                                                                                          +
                                                                                                                                                                                                          + +
                                                                                                                                                                                                          +
                                                                                                                                                                                                          + +
                                                                                                                                                                                                          Return values
                                                                                                                                                                                                          + array<string|int, mixed> + — +

                                                                                                                                                                                                          of \LDC\LDCCRM\Models\Question

                                                                                                                                                                                                          +
                                                                                                                                                                                                          + + +
                                                                                                                                                                                                          +
                                                                                                                                                                                                          +

                                                                                                                                                                                                          + allWithCustomerAnswers() + +

                                                                                                                                                                                                          + + +

                                                                                                                                                                                                          Get all the questions with customer answers

                                                                                                                                                                                                          + + + public + static allWithCustomerAnswers(Customer $customer) : array<string|int, mixed> + + +
                                                                                                                                                                                                          Parameters
                                                                                                                                                                                                          +
                                                                                                                                                                                                          +
                                                                                                                                                                                                          + $customer + : Customer +
                                                                                                                                                                                                          +
                                                                                                                                                                                                          + +
                                                                                                                                                                                                          +
                                                                                                                                                                                                          + + +
                                                                                                                                                                                                          + Tags + +
                                                                                                                                                                                                          +
                                                                                                                                                                                                          +
                                                                                                                                                                                                          + throws +
                                                                                                                                                                                                          +
                                                                                                                                                                                                          + ValidationException + +

                                                                                                                                                                                                          If a customer's hashcode could not be validated.

                                                                                                                                                                                                          +
                                                                                                                                                                                                          + +
                                                                                                                                                                                                          +
                                                                                                                                                                                                          + throws +
                                                                                                                                                                                                          +
                                                                                                                                                                                                          + CrmException + +

                                                                                                                                                                                                          If an error occurs on server side or on getting response.

                                                                                                                                                                                                          +
                                                                                                                                                                                                          + +
                                                                                                                                                                                                          +
                                                                                                                                                                                                          + throws +
                                                                                                                                                                                                          +
                                                                                                                                                                                                          + ApiErrorException + +

                                                                                                                                                                                                          If any error or \LDC\LDCCRM\Enums\ApiError occurs. +Possibles are : - modelNotFound, If the customer could not be found(CRM side).

                                                                                                                                                                                                          +
                                                                                                                                                                                                          + +
                                                                                                                                                                                                          +
                                                                                                                                                                                                          + phpcs:ignore +
                                                                                                                                                                                                          +
                                                                                                                                                                                                          + +

                                                                                                                                                                                                          Squiz.Commenting.FunctionCommentThrowTag.WrongNumber

                                                                                                                                                                                                          +
                                                                                                                                                                                                          + +
                                                                                                                                                                                                          +
                                                                                                                                                                                                          + +
                                                                                                                                                                                                          Return values
                                                                                                                                                                                                          + array<string|int, mixed> + — +

                                                                                                                                                                                                          [ +0 => [ +'question' => \LDC\LDCCRM\Models\Question, +'customerAnswers' => \LDC\LDCCRM\Models\Answer[] +] +]

                                                                                                                                                                                                          +

                                                                                                                                                                                                          with \LDC\LDCCRM\Models\Question[] +and the customer \LDC\LDCCRM\Models\Answer[]

                                                                                                                                                                                                          +
                                                                                                                                                                                                          + + +
                                                                                                                                                                                                          +
                                                                                                                                                                                                          +

                                                                                                                                                                                                          + fill() + +

                                                                                                                                                                                                          + + +

                                                                                                                                                                                                          Fill values into model using validation rules.

                                                                                                                                                                                                          + + + public + fill(array<string|int, mixed> $properties) : void + + +
                                                                                                                                                                                                          Parameters
                                                                                                                                                                                                          +
                                                                                                                                                                                                          +
                                                                                                                                                                                                          + $properties + : array<string|int, mixed> +
                                                                                                                                                                                                          +
                                                                                                                                                                                                          + +
                                                                                                                                                                                                          +
                                                                                                                                                                                                          + + +
                                                                                                                                                                                                          + Tags + +
                                                                                                                                                                                                          +
                                                                                                                                                                                                          +
                                                                                                                                                                                                          + throws +
                                                                                                                                                                                                          +
                                                                                                                                                                                                          + ValidationException + +

                                                                                                                                                                                                          If a field could not be validated.

                                                                                                                                                                                                          +
                                                                                                                                                                                                          + +
                                                                                                                                                                                                          +
                                                                                                                                                                                                          + +
                                                                                                                                                                                                          Return values
                                                                                                                                                                                                          + void + — + + +
                                                                                                                                                                                                          +
                                                                                                                                                                                                          +

                                                                                                                                                                                                          + jsonSerialize() + +

                                                                                                                                                                                                          + + +

                                                                                                                                                                                                          Serialize this object to an array

                                                                                                                                                                                                          + + + public + jsonSerialize() : array<string|int, mixed> + + + + + +
                                                                                                                                                                                                          Return values
                                                                                                                                                                                                          + array<string|int, mixed> + — + + +
                                                                                                                                                                                                          +
                                                                                                                                                                                                          +

                                                                                                                                                                                                          + unansweredBy() + +

                                                                                                                                                                                                          + + +

                                                                                                                                                                                                          Get unanswered question for a specific customer

                                                                                                                                                                                                          + + + public + static unansweredBy(Customer $customer) : array<string|int, mixed> + + +
                                                                                                                                                                                                          Parameters
                                                                                                                                                                                                          +
                                                                                                                                                                                                          +
                                                                                                                                                                                                          + $customer + : Customer +
                                                                                                                                                                                                          +
                                                                                                                                                                                                          + +
                                                                                                                                                                                                          +
                                                                                                                                                                                                          + + +
                                                                                                                                                                                                          + Tags + +
                                                                                                                                                                                                          +
                                                                                                                                                                                                          +
                                                                                                                                                                                                          + throws +
                                                                                                                                                                                                          +
                                                                                                                                                                                                          + ValidationException + +

                                                                                                                                                                                                          If a customer's hashcode could not be validated.

                                                                                                                                                                                                          +
                                                                                                                                                                                                          + +
                                                                                                                                                                                                          +
                                                                                                                                                                                                          + throws +
                                                                                                                                                                                                          +
                                                                                                                                                                                                          + CrmException + +

                                                                                                                                                                                                          If an error occurs on server side or on getting response.

                                                                                                                                                                                                          +
                                                                                                                                                                                                          + +
                                                                                                                                                                                                          +
                                                                                                                                                                                                          + throws +
                                                                                                                                                                                                          +
                                                                                                                                                                                                          + ApiErrorException + +

                                                                                                                                                                                                          If any error or \LDC\LDCCRM\Enums\ApiError occurs. +Possibles are : - modelNotFound, If the customer could not be found(CRM side).

                                                                                                                                                                                                          +
                                                                                                                                                                                                          + +
                                                                                                                                                                                                          +
                                                                                                                                                                                                          + phpcs:ignore +
                                                                                                                                                                                                          +
                                                                                                                                                                                                          + +

                                                                                                                                                                                                          Squiz.Commenting.FunctionCommentThrowTag.WrongNumber

                                                                                                                                                                                                          +
                                                                                                                                                                                                          + +
                                                                                                                                                                                                          +
                                                                                                                                                                                                          + +
                                                                                                                                                                                                          Return values
                                                                                                                                                                                                          + array<string|int, mixed> + — +

                                                                                                                                                                                                          of \LDC\LDCCRM\Models\Question

                                                                                                                                                                                                          +
                                                                                                                                                                                                          + + +
                                                                                                                                                                                                          +
                                                                                                                                                                                                          +

                                                                                                                                                                                                          + validateAllValues() + +

                                                                                                                                                                                                          + + +

                                                                                                                                                                                                          Validate all model properties

                                                                                                                                                                                                          + + + protected + validateAllValues([array<string|int, mixed> $ignore = [] ]) : array<string|int, mixed> + + +
                                                                                                                                                                                                          Parameters
                                                                                                                                                                                                          +
                                                                                                                                                                                                          +
                                                                                                                                                                                                          + $ignore + : array<string|int, mixed> + = []
                                                                                                                                                                                                          +
                                                                                                                                                                                                          + +
                                                                                                                                                                                                          +
                                                                                                                                                                                                          + + +
                                                                                                                                                                                                          + Tags + +
                                                                                                                                                                                                          +
                                                                                                                                                                                                          +
                                                                                                                                                                                                          + throws +
                                                                                                                                                                                                          +
                                                                                                                                                                                                          + ValidationException + +

                                                                                                                                                                                                          If a field could not be validated.

                                                                                                                                                                                                          +
                                                                                                                                                                                                          + +
                                                                                                                                                                                                          +
                                                                                                                                                                                                          + +
                                                                                                                                                                                                          Return values
                                                                                                                                                                                                          + array<string|int, mixed> + — +

                                                                                                                                                                                                          the validated values

                                                                                                                                                                                                          +
                                                                                                                                                                                                          + + +
                                                                                                                                                                                                          +
                                                                                                                                                                                                          + + + + +
                                                                                                                                                                                                          +
                                                                                                                                                                                                          +
                                                                                                                                                                                                          +
                                                                                                                                                                                                          +

                                                                                                                                                                                                          Search results

                                                                                                                                                                                                          + +
                                                                                                                                                                                                          +
                                                                                                                                                                                                          +
                                                                                                                                                                                                            +
                                                                                                                                                                                                            +
                                                                                                                                                                                                            +
                                                                                                                                                                                                            +
                                                                                                                                                                                                            +
                                                                                                                                                                                                            + + +
                                                                                                                                                                                                            + + + + + + + + diff --git a/app/Lib/vendor/crm-client-3.0.6/documentation/classes/LDC-LDCCRM-Models-SingleOptin.html b/app/Lib/vendor/crm-client-3.0.6/documentation/classes/LDC-LDCCRM-Models-SingleOptin.html new file mode 100644 index 0000000..892e7b7 --- /dev/null +++ b/app/Lib/vendor/crm-client-3.0.6/documentation/classes/LDC-LDCCRM-Models-SingleOptin.html @@ -0,0 +1,427 @@ + + + + + CRM V2 + + + + + + + + + + + + + + + + + + + +
                                                                                                                                                                                                            +

                                                                                                                                                                                                            CRM V2

                                                                                                                                                                                                            + + + + + +
                                                                                                                                                                                                            + +
                                                                                                                                                                                                            +
                                                                                                                                                                                                            + + + + +
                                                                                                                                                                                                            + + +
                                                                                                                                                                                                            +

                                                                                                                                                                                                            + SingleOptin + + + extends CrmClientModel + + +
                                                                                                                                                                                                            + in package + +
                                                                                                                                                                                                            + + +

                                                                                                                                                                                                            + + + +

                                                                                                                                                                                                            This class allows to handle single opt in

                                                                                                                                                                                                            + + + +
                                                                                                                                                                                                            + Tags + +
                                                                                                                                                                                                            +
                                                                                                                                                                                                            +
                                                                                                                                                                                                            + category +
                                                                                                                                                                                                            +
                                                                                                                                                                                                            + +

                                                                                                                                                                                                            Api Models

                                                                                                                                                                                                            +
                                                                                                                                                                                                            + +
                                                                                                                                                                                                            +
                                                                                                                                                                                                            + subpackage +
                                                                                                                                                                                                            +
                                                                                                                                                                                                            + +

                                                                                                                                                                                                            models

                                                                                                                                                                                                            +
                                                                                                                                                                                                            + +
                                                                                                                                                                                                            +
                                                                                                                                                                                                            + author +
                                                                                                                                                                                                            +
                                                                                                                                                                                                            + +

                                                                                                                                                                                                            Jérémy Munsch jeremy.munsch@ldc.fr

                                                                                                                                                                                                            +
                                                                                                                                                                                                            + +
                                                                                                                                                                                                            +
                                                                                                                                                                                                            + + + + + + +

                                                                                                                                                                                                            + Table of Contents + +

                                                                                                                                                                                                            + +
                                                                                                                                                                                                            +
                                                                                                                                                                                                            + $validation + +  : array<string|int, mixed> +
                                                                                                                                                                                                            +
                                                                                                                                                                                                            Validation rules
                                                                                                                                                                                                            + +
                                                                                                                                                                                                            + setStatus() + +  : bool +
                                                                                                                                                                                                            +
                                                                                                                                                                                                            Set the single opt in status for an email
                                                                                                                                                                                                            + +
                                                                                                                                                                                                            + + + + + + +
                                                                                                                                                                                                            +

                                                                                                                                                                                                            + Properties + +

                                                                                                                                                                                                            +
                                                                                                                                                                                                            +

                                                                                                                                                                                                            + $validation + + + +

                                                                                                                                                                                                            + + +

                                                                                                                                                                                                            Validation rules

                                                                                                                                                                                                            + + + protected + static array<string|int, mixed> + $validation + = ['email' => 'required|email', 'opt_in' => 'required|bool'] + + + + + +
                                                                                                                                                                                                            +
                                                                                                                                                                                                            + +
                                                                                                                                                                                                            +

                                                                                                                                                                                                            + Methods + +

                                                                                                                                                                                                            +
                                                                                                                                                                                                            +

                                                                                                                                                                                                            + setStatus() + +

                                                                                                                                                                                                            + + +

                                                                                                                                                                                                            Set the single opt in status for an email

                                                                                                                                                                                                            + + + public + static setStatus(string $email, bool $opt_in) : bool + + +
                                                                                                                                                                                                            Parameters
                                                                                                                                                                                                            +
                                                                                                                                                                                                            +
                                                                                                                                                                                                            + $email + : string +
                                                                                                                                                                                                            +
                                                                                                                                                                                                            + +
                                                                                                                                                                                                            +
                                                                                                                                                                                                            + $opt_in + : bool +
                                                                                                                                                                                                            +
                                                                                                                                                                                                            + +
                                                                                                                                                                                                            +
                                                                                                                                                                                                            + + +
                                                                                                                                                                                                            + Tags + +
                                                                                                                                                                                                            +
                                                                                                                                                                                                            +
                                                                                                                                                                                                            + throws +
                                                                                                                                                                                                            +
                                                                                                                                                                                                            + ValidationException + +

                                                                                                                                                                                                            If a field email could not be validated.

                                                                                                                                                                                                            +
                                                                                                                                                                                                            + +
                                                                                                                                                                                                            +
                                                                                                                                                                                                            + throws +
                                                                                                                                                                                                            +
                                                                                                                                                                                                            + CrmException + +

                                                                                                                                                                                                            If an error occurs on server side or on getting response.

                                                                                                                                                                                                            +
                                                                                                                                                                                                            + +
                                                                                                                                                                                                            +
                                                                                                                                                                                                            + throws +
                                                                                                                                                                                                            +
                                                                                                                                                                                                            + ApiErrorException + +

                                                                                                                                                                                                            If any error or \LDC\LDCCRM\Enums\ApiError occurs. +Possibles are : - singleOptinCustomerExists, If a customer exists with this email.

                                                                                                                                                                                                            +
                                                                                                                                                                                                            + +
                                                                                                                                                                                                            +
                                                                                                                                                                                                            + phpcs:ignore +
                                                                                                                                                                                                            +
                                                                                                                                                                                                            + +

                                                                                                                                                                                                            Squiz.Commenting.FunctionCommentThrowTag.WrongNumber

                                                                                                                                                                                                            +
                                                                                                                                                                                                            + +
                                                                                                                                                                                                            +
                                                                                                                                                                                                            + +
                                                                                                                                                                                                            Return values
                                                                                                                                                                                                            + bool + — +

                                                                                                                                                                                                            true if succeeded

                                                                                                                                                                                                            +
                                                                                                                                                                                                            + + +
                                                                                                                                                                                                            +
                                                                                                                                                                                                            + + + + +
                                                                                                                                                                                                            +
                                                                                                                                                                                                            +
                                                                                                                                                                                                            +
                                                                                                                                                                                                            +

                                                                                                                                                                                                            Search results

                                                                                                                                                                                                            + +
                                                                                                                                                                                                            +
                                                                                                                                                                                                            +
                                                                                                                                                                                                              +
                                                                                                                                                                                                              +
                                                                                                                                                                                                              +
                                                                                                                                                                                                              +
                                                                                                                                                                                                              +
                                                                                                                                                                                                              + + +
                                                                                                                                                                                                              + + + + + + + + diff --git a/app/Lib/vendor/crm-client-3.0.6/documentation/classes/LDC-LDCCRM-Models-Stats.html b/app/Lib/vendor/crm-client-3.0.6/documentation/classes/LDC-LDCCRM-Models-Stats.html new file mode 100644 index 0000000..53f0e3a --- /dev/null +++ b/app/Lib/vendor/crm-client-3.0.6/documentation/classes/LDC-LDCCRM-Models-Stats.html @@ -0,0 +1,599 @@ + + + + + CRM V2 + + + + + + + + + + + + + + + + + + + +
                                                                                                                                                                                                              +

                                                                                                                                                                                                              CRM V2

                                                                                                                                                                                                              + + + + + +
                                                                                                                                                                                                              + +
                                                                                                                                                                                                              +
                                                                                                                                                                                                              + + + + +
                                                                                                                                                                                                              + + +
                                                                                                                                                                                                              +

                                                                                                                                                                                                              + Stats + + + extends CrmClientModel + + +
                                                                                                                                                                                                              + in package + +
                                                                                                                                                                                                              + + +

                                                                                                                                                                                                              + + + +

                                                                                                                                                                                                              This class is used to get stats from CRM

                                                                                                                                                                                                              + + + +
                                                                                                                                                                                                              + Tags + +
                                                                                                                                                                                                              +
                                                                                                                                                                                                              +
                                                                                                                                                                                                              + throws +
                                                                                                                                                                                                              +
                                                                                                                                                                                                              + ApiErrorException + +

                                                                                                                                                                                                              If an error occurs

                                                                                                                                                                                                              +
                                                                                                                                                                                                              + +
                                                                                                                                                                                                              +
                                                                                                                                                                                                              + throws +
                                                                                                                                                                                                              +
                                                                                                                                                                                                              + CrmException + +

                                                                                                                                                                                                              If the CRM encounters an error

                                                                                                                                                                                                              +
                                                                                                                                                                                                              + +
                                                                                                                                                                                                              +
                                                                                                                                                                                                              + category +
                                                                                                                                                                                                              +
                                                                                                                                                                                                              + +

                                                                                                                                                                                                              Api Models

                                                                                                                                                                                                              +
                                                                                                                                                                                                              + +
                                                                                                                                                                                                              +
                                                                                                                                                                                                              + subpackage +
                                                                                                                                                                                                              +
                                                                                                                                                                                                              + +

                                                                                                                                                                                                              models

                                                                                                                                                                                                              +
                                                                                                                                                                                                              + +
                                                                                                                                                                                                              +
                                                                                                                                                                                                              + author +
                                                                                                                                                                                                              +
                                                                                                                                                                                                              + +

                                                                                                                                                                                                              Jérémy Munsch jeremy.munsch@ldc.fr

                                                                                                                                                                                                              +
                                                                                                                                                                                                              + +
                                                                                                                                                                                                              +
                                                                                                                                                                                                              + + + + + + +

                                                                                                                                                                                                              + Table of Contents + +

                                                                                                                                                                                                              + +
                                                                                                                                                                                                              +
                                                                                                                                                                                                              + $validation + +  : array<string|int, mixed> +
                                                                                                                                                                                                              +
                                                                                                                                                                                                              Validation rules
                                                                                                                                                                                                              + +
                                                                                                                                                                                                              + getBrandStats() + +  : array<string|int, mixed> +
                                                                                                                                                                                                              +
                                                                                                                                                                                                              Get brand stats ordered by ascendent days
                                                                                                                                                                                                              + +
                                                                                                                                                                                                              + getQuestionStats() + +  : array<string|int, mixed> +
                                                                                                                                                                                                              +
                                                                                                                                                                                                              Get brand stats ordered by ascendent days
                                                                                                                                                                                                              + +
                                                                                                                                                                                                              + + + + + + +
                                                                                                                                                                                                              +

                                                                                                                                                                                                              + Properties + +

                                                                                                                                                                                                              +
                                                                                                                                                                                                              +

                                                                                                                                                                                                              + $validation + + + +

                                                                                                                                                                                                              + + +

                                                                                                                                                                                                              Validation rules

                                                                                                                                                                                                              + + + protected + static array<string|int, mixed> + $validation + = ['question.id' => 'required|int|min:1', 'start' => 'required|date_format:Y-m-d', 'end' => 'required|date_format:Y-m-d'] + + + + + +
                                                                                                                                                                                                              +
                                                                                                                                                                                                              + +
                                                                                                                                                                                                              +

                                                                                                                                                                                                              + Methods + +

                                                                                                                                                                                                              +
                                                                                                                                                                                                              +

                                                                                                                                                                                                              + getBrandStats() + +

                                                                                                                                                                                                              + + +

                                                                                                                                                                                                              Get brand stats ordered by ascendent days

                                                                                                                                                                                                              + + + public + static getBrandStats(string $start, string $end) : array<string|int, mixed> + + +
                                                                                                                                                                                                              Parameters
                                                                                                                                                                                                              +
                                                                                                                                                                                                              +
                                                                                                                                                                                                              + $start + : string +
                                                                                                                                                                                                              +
                                                                                                                                                                                                              +

                                                                                                                                                                                                              Une date valide au format Y-m-d .

                                                                                                                                                                                                              +
                                                                                                                                                                                                              + +
                                                                                                                                                                                                              +
                                                                                                                                                                                                              + $end + : string +
                                                                                                                                                                                                              +
                                                                                                                                                                                                              +

                                                                                                                                                                                                              Une date valide au format Y-m-d .

                                                                                                                                                                                                              +
                                                                                                                                                                                                              + +
                                                                                                                                                                                                              +
                                                                                                                                                                                                              + + +
                                                                                                                                                                                                              + Tags + +
                                                                                                                                                                                                              +
                                                                                                                                                                                                              +
                                                                                                                                                                                                              + throws +
                                                                                                                                                                                                              +
                                                                                                                                                                                                              + ValidationException + +

                                                                                                                                                                                                              If a field start could not be validated.

                                                                                                                                                                                                              +
                                                                                                                                                                                                              + +
                                                                                                                                                                                                              +
                                                                                                                                                                                                              + throws +
                                                                                                                                                                                                              +
                                                                                                                                                                                                              + ValidationException + +

                                                                                                                                                                                                              If a field end could not be validated.

                                                                                                                                                                                                              +
                                                                                                                                                                                                              + +
                                                                                                                                                                                                              +
                                                                                                                                                                                                              + throws +
                                                                                                                                                                                                              +
                                                                                                                                                                                                              + CrmException + +

                                                                                                                                                                                                              If an error occurs on server side or on getting response.

                                                                                                                                                                                                              +
                                                                                                                                                                                                              + +
                                                                                                                                                                                                              +
                                                                                                                                                                                                              + throws +
                                                                                                                                                                                                              +
                                                                                                                                                                                                              + ApiErrorException + +

                                                                                                                                                                                                              If any error or \LDC\LDCCRM\Enums\ApiError occurs. +Possibles are : - validationFailed, If provided data is wrong(CRM side).

                                                                                                                                                                                                              +
                                                                                                                                                                                                              + +
                                                                                                                                                                                                              +
                                                                                                                                                                                                              + phpcs:ignore +
                                                                                                                                                                                                              +
                                                                                                                                                                                                              + +

                                                                                                                                                                                                              Squiz.Commenting.FunctionCommentThrowTag.WrongNumber

                                                                                                                                                                                                              +
                                                                                                                                                                                                              + +
                                                                                                                                                                                                              +
                                                                                                                                                                                                              + +
                                                                                                                                                                                                              Return values
                                                                                                                                                                                                              + array<string|int, mixed> + — +

                                                                                                                                                                                                              The stats array by day

                                                                                                                                                                                                              +
                                                                                                                                                                                                              + + +
                                                                                                                                                                                                              +
                                                                                                                                                                                                              +

                                                                                                                                                                                                              + getQuestionStats() + +

                                                                                                                                                                                                              + + +

                                                                                                                                                                                                              Get brand stats ordered by ascendent days

                                                                                                                                                                                                              + + + public + static getQuestionStats(Question $question, string $start, string $end) : array<string|int, mixed> + + +
                                                                                                                                                                                                              Parameters
                                                                                                                                                                                                              +
                                                                                                                                                                                                              +
                                                                                                                                                                                                              + $question + : Question +
                                                                                                                                                                                                              +
                                                                                                                                                                                                              +

                                                                                                                                                                                                              Une question CRM possèdant un id réel.

                                                                                                                                                                                                              +
                                                                                                                                                                                                              + +
                                                                                                                                                                                                              +
                                                                                                                                                                                                              + $start + : string +
                                                                                                                                                                                                              +
                                                                                                                                                                                                              +

                                                                                                                                                                                                              Une date valide au format Y-m-d .

                                                                                                                                                                                                              +
                                                                                                                                                                                                              + +
                                                                                                                                                                                                              +
                                                                                                                                                                                                              + $end + : string +
                                                                                                                                                                                                              +
                                                                                                                                                                                                              +

                                                                                                                                                                                                              Une date valide au format Y-m-d .

                                                                                                                                                                                                              +
                                                                                                                                                                                                              + +
                                                                                                                                                                                                              +
                                                                                                                                                                                                              + + +
                                                                                                                                                                                                              + Tags + +
                                                                                                                                                                                                              +
                                                                                                                                                                                                              +
                                                                                                                                                                                                              + throws +
                                                                                                                                                                                                              +
                                                                                                                                                                                                              + ValidationException + +

                                                                                                                                                                                                              If a question's id could not be validated.

                                                                                                                                                                                                              +
                                                                                                                                                                                                              + +
                                                                                                                                                                                                              +
                                                                                                                                                                                                              + throws +
                                                                                                                                                                                                              +
                                                                                                                                                                                                              + ValidationException + +

                                                                                                                                                                                                              If a field start could not be validated.

                                                                                                                                                                                                              +
                                                                                                                                                                                                              + +
                                                                                                                                                                                                              +
                                                                                                                                                                                                              + throws +
                                                                                                                                                                                                              +
                                                                                                                                                                                                              + ValidationException + +

                                                                                                                                                                                                              If a field end could not be validated.

                                                                                                                                                                                                              +
                                                                                                                                                                                                              + +
                                                                                                                                                                                                              +
                                                                                                                                                                                                              + throws +
                                                                                                                                                                                                              +
                                                                                                                                                                                                              + CrmException + +

                                                                                                                                                                                                              If an error occurs on server side or on getting response.

                                                                                                                                                                                                              +
                                                                                                                                                                                                              + +
                                                                                                                                                                                                              +
                                                                                                                                                                                                              + throws +
                                                                                                                                                                                                              +
                                                                                                                                                                                                              + ApiErrorException + +

                                                                                                                                                                                                              If any error or \LDC\LDCCRM\Enums\ApiError occurs. +Possibles are : - validationFailed, If provided data is wrong(CRM side).

                                                                                                                                                                                                              +
                                                                                                                                                                                                              + +
                                                                                                                                                                                                              +
                                                                                                                                                                                                              + phpcs:ignore +
                                                                                                                                                                                                              +
                                                                                                                                                                                                              + +

                                                                                                                                                                                                              Squiz.Commenting.FunctionCommentThrowTag.WrongNumber

                                                                                                                                                                                                              +
                                                                                                                                                                                                              + +
                                                                                                                                                                                                              +
                                                                                                                                                                                                              + +
                                                                                                                                                                                                              Return values
                                                                                                                                                                                                              + array<string|int, mixed> + — +

                                                                                                                                                                                                              The stats array by day

                                                                                                                                                                                                              +
                                                                                                                                                                                                              + + +
                                                                                                                                                                                                              +
                                                                                                                                                                                                              + + + + +
                                                                                                                                                                                                              +
                                                                                                                                                                                                              +
                                                                                                                                                                                                              +
                                                                                                                                                                                                              +

                                                                                                                                                                                                              Search results

                                                                                                                                                                                                              + +
                                                                                                                                                                                                              +
                                                                                                                                                                                                              +
                                                                                                                                                                                                                +
                                                                                                                                                                                                                +
                                                                                                                                                                                                                +
                                                                                                                                                                                                                +
                                                                                                                                                                                                                +
                                                                                                                                                                                                                + + +
                                                                                                                                                                                                                + + + + + + + + diff --git a/app/Lib/vendor/crm-client-3.0.6/documentation/classes/LDC-LDCCRM-Transport-Request.html b/app/Lib/vendor/crm-client-3.0.6/documentation/classes/LDC-LDCCRM-Transport-Request.html new file mode 100644 index 0000000..2bf4142 --- /dev/null +++ b/app/Lib/vendor/crm-client-3.0.6/documentation/classes/LDC-LDCCRM-Transport-Request.html @@ -0,0 +1,1063 @@ + + + + + CRM V2 + + + + + + + + + + + + + + + + + + + +
                                                                                                                                                                                                                +

                                                                                                                                                                                                                CRM V2

                                                                                                                                                                                                                + + + + + +
                                                                                                                                                                                                                + +
                                                                                                                                                                                                                +
                                                                                                                                                                                                                + + + + +
                                                                                                                                                                                                                + + +
                                                                                                                                                                                                                +

                                                                                                                                                                                                                + Request + + +
                                                                                                                                                                                                                + in package + +
                                                                                                                                                                                                                + + +

                                                                                                                                                                                                                + + + +

                                                                                                                                                                                                                The LDC CRM request +Contains the http method, the requested url and data to pass

                                                                                                                                                                                                                + + + +
                                                                                                                                                                                                                + Tags + +
                                                                                                                                                                                                                +
                                                                                                                                                                                                                +
                                                                                                                                                                                                                + subpackage +
                                                                                                                                                                                                                +
                                                                                                                                                                                                                + +

                                                                                                                                                                                                                transport

                                                                                                                                                                                                                +
                                                                                                                                                                                                                + +
                                                                                                                                                                                                                +
                                                                                                                                                                                                                + + + + + + +

                                                                                                                                                                                                                + Table of Contents + +

                                                                                                                                                                                                                + +
                                                                                                                                                                                                                +
                                                                                                                                                                                                                + $data + +  : array<string|int, mixed> +
                                                                                                                                                                                                                +
                                                                                                                                                                                                                + +
                                                                                                                                                                                                                + $headers + +  : array<string|int, mixed> +
                                                                                                                                                                                                                +
                                                                                                                                                                                                                + +
                                                                                                                                                                                                                + $method + +  : HttpMethods +
                                                                                                                                                                                                                +
                                                                                                                                                                                                                + +
                                                                                                                                                                                                                + $uri + +  : string +
                                                                                                                                                                                                                +
                                                                                                                                                                                                                + +
                                                                                                                                                                                                                + $data + +  : array<string|int, mixed> +
                                                                                                                                                                                                                +
                                                                                                                                                                                                                Data to pass to the http body
                                                                                                                                                                                                                + +
                                                                                                                                                                                                                + $headers + +  : array<string|int, mixed> +
                                                                                                                                                                                                                +
                                                                                                                                                                                                                Data to pass to the http headers
                                                                                                                                                                                                                + +
                                                                                                                                                                                                                + $method + +  : HttpMethods +
                                                                                                                                                                                                                +
                                                                                                                                                                                                                The http method
                                                                                                                                                                                                                + +
                                                                                                                                                                                                                + $uri + +  : string +
                                                                                                                                                                                                                +
                                                                                                                                                                                                                The http url
                                                                                                                                                                                                                + +
                                                                                                                                                                                                                + $client + +  : Client +
                                                                                                                                                                                                                +
                                                                                                                                                                                                                GuzzleHttp client
                                                                                                                                                                                                                + +
                                                                                                                                                                                                                + $endpoint + +  : string +
                                                                                                                                                                                                                +
                                                                                                                                                                                                                The Api endpoint
                                                                                                                                                                                                                + +
                                                                                                                                                                                                                + $request + +  : callable +
                                                                                                                                                                                                                +
                                                                                                                                                                                                                Guzzle request
                                                                                                                                                                                                                + +
                                                                                                                                                                                                                + __construct() + +  : mixed +
                                                                                                                                                                                                                +
                                                                                                                                                                                                                Request
                                                                                                                                                                                                                + +
                                                                                                                                                                                                                + __get() + +  : mixed|null +
                                                                                                                                                                                                                +
                                                                                                                                                                                                                Generic accessor
                                                                                                                                                                                                                + +
                                                                                                                                                                                                                + addData() + +  : void +
                                                                                                                                                                                                                +
                                                                                                                                                                                                                Add data to the request
                                                                                                                                                                                                                + +
                                                                                                                                                                                                                + addHeaders() + +  : void +
                                                                                                                                                                                                                +
                                                                                                                                                                                                                Add headers to the request
                                                                                                                                                                                                                + +
                                                                                                                                                                                                                + call() + +  : ResponseInterface +
                                                                                                                                                                                                                +
                                                                                                                                                                                                                Make the Http request
                                                                                                                                                                                                                + +
                                                                                                                                                                                                                + setEndpoint() + +  : void +
                                                                                                                                                                                                                +
                                                                                                                                                                                                                Set the api endpoint to the request
                                                                                                                                                                                                                + +
                                                                                                                                                                                                                + makeRequest() + +  : void +
                                                                                                                                                                                                                +
                                                                                                                                                                                                                make the guzzle request
                                                                                                                                                                                                                + +
                                                                                                                                                                                                                + + + + + + +
                                                                                                                                                                                                                +

                                                                                                                                                                                                                + Properties + +

                                                                                                                                                                                                                +
                                                                                                                                                                                                                +

                                                                                                                                                                                                                + $data + + + +

                                                                                                                                                                                                                + + + + + public + array<string|int, mixed> + $data + + +

                                                                                                                                                                                                                readonly data

                                                                                                                                                                                                                +
                                                                                                                                                                                                                + +
                                                                                                                                                                                                                + + + +
                                                                                                                                                                                                                +
                                                                                                                                                                                                                +

                                                                                                                                                                                                                + $headers + + + +

                                                                                                                                                                                                                + + + + + public + array<string|int, mixed> + $headers + + +

                                                                                                                                                                                                                headers

                                                                                                                                                                                                                +
                                                                                                                                                                                                                + +
                                                                                                                                                                                                                + + + +
                                                                                                                                                                                                                +
                                                                                                                                                                                                                +

                                                                                                                                                                                                                + $method + + + +

                                                                                                                                                                                                                + + + + + public + HttpMethods + $method + + +

                                                                                                                                                                                                                readonly method

                                                                                                                                                                                                                +
                                                                                                                                                                                                                + +
                                                                                                                                                                                                                + + + +
                                                                                                                                                                                                                +
                                                                                                                                                                                                                +

                                                                                                                                                                                                                + $uri + + + +

                                                                                                                                                                                                                + + + + + public + string + $uri + + +

                                                                                                                                                                                                                readonly uri

                                                                                                                                                                                                                +
                                                                                                                                                                                                                + +
                                                                                                                                                                                                                + + + +
                                                                                                                                                                                                                +
                                                                                                                                                                                                                +

                                                                                                                                                                                                                + $data + + + +

                                                                                                                                                                                                                + + +

                                                                                                                                                                                                                Data to pass to the http body

                                                                                                                                                                                                                + + + protected + array<string|int, mixed> + $data + = [] + + + + + +
                                                                                                                                                                                                                +
                                                                                                                                                                                                                +

                                                                                                                                                                                                                + $headers + + + +

                                                                                                                                                                                                                + + +

                                                                                                                                                                                                                Data to pass to the http headers

                                                                                                                                                                                                                + + + protected + array<string|int, mixed> + $headers + = [] + + + + + +
                                                                                                                                                                                                                +
                                                                                                                                                                                                                +

                                                                                                                                                                                                                + $method + + + +

                                                                                                                                                                                                                + + +

                                                                                                                                                                                                                The http method

                                                                                                                                                                                                                + + + protected + HttpMethods + $method + + + + + + +
                                                                                                                                                                                                                +
                                                                                                                                                                                                                +

                                                                                                                                                                                                                + $uri + + + +

                                                                                                                                                                                                                + + +

                                                                                                                                                                                                                The http url

                                                                                                                                                                                                                + + + protected + string + $uri + + + + + + +
                                                                                                                                                                                                                +
                                                                                                                                                                                                                +

                                                                                                                                                                                                                + $client + + + +

                                                                                                                                                                                                                + + +

                                                                                                                                                                                                                GuzzleHttp client

                                                                                                                                                                                                                + + + private + Client + $client + + + + + + +
                                                                                                                                                                                                                +
                                                                                                                                                                                                                +

                                                                                                                                                                                                                + $endpoint + + + +

                                                                                                                                                                                                                + + +

                                                                                                                                                                                                                The Api endpoint

                                                                                                                                                                                                                + + + private + string + $endpoint + + + + + + +
                                                                                                                                                                                                                +
                                                                                                                                                                                                                +

                                                                                                                                                                                                                + $request + + + +

                                                                                                                                                                                                                + + +

                                                                                                                                                                                                                Guzzle request

                                                                                                                                                                                                                + + + private + callable + $request + + + +

                                                                                                                                                                                                                the returns \GuzzleHttp\Psr7\Request

                                                                                                                                                                                                                +
                                                                                                                                                                                                                + + + +
                                                                                                                                                                                                                +
                                                                                                                                                                                                                + +
                                                                                                                                                                                                                +

                                                                                                                                                                                                                + Methods + +

                                                                                                                                                                                                                +
                                                                                                                                                                                                                +

                                                                                                                                                                                                                + __construct() + +

                                                                                                                                                                                                                + + +

                                                                                                                                                                                                                Request

                                                                                                                                                                                                                + + + public + __construct(HttpMethods $method, string $uri[, array<string|int, mixed> $headers = [] ][, array<string|int, mixed> $data = [] ]) : mixed + + +
                                                                                                                                                                                                                Parameters
                                                                                                                                                                                                                +
                                                                                                                                                                                                                +
                                                                                                                                                                                                                + $method + : HttpMethods +
                                                                                                                                                                                                                +
                                                                                                                                                                                                                + +
                                                                                                                                                                                                                +
                                                                                                                                                                                                                + $uri + : string +
                                                                                                                                                                                                                +
                                                                                                                                                                                                                + +
                                                                                                                                                                                                                +
                                                                                                                                                                                                                + $headers + : array<string|int, mixed> + = []
                                                                                                                                                                                                                +
                                                                                                                                                                                                                + +
                                                                                                                                                                                                                +
                                                                                                                                                                                                                + $data + : array<string|int, mixed> + = []
                                                                                                                                                                                                                +
                                                                                                                                                                                                                + +
                                                                                                                                                                                                                +
                                                                                                                                                                                                                + + + +
                                                                                                                                                                                                                Return values
                                                                                                                                                                                                                + mixed + — + + +
                                                                                                                                                                                                                +
                                                                                                                                                                                                                +

                                                                                                                                                                                                                + __get() + +

                                                                                                                                                                                                                + + +

                                                                                                                                                                                                                Generic accessor

                                                                                                                                                                                                                + + + public + __get(string $field) : mixed|null + + +
                                                                                                                                                                                                                Parameters
                                                                                                                                                                                                                +
                                                                                                                                                                                                                +
                                                                                                                                                                                                                + $field + : string +
                                                                                                                                                                                                                +
                                                                                                                                                                                                                + +
                                                                                                                                                                                                                +
                                                                                                                                                                                                                + + + +
                                                                                                                                                                                                                Return values
                                                                                                                                                                                                                + mixed|null + — + + +
                                                                                                                                                                                                                +
                                                                                                                                                                                                                +

                                                                                                                                                                                                                + addData() + +

                                                                                                                                                                                                                + + +

                                                                                                                                                                                                                Add data to the request

                                                                                                                                                                                                                + + + public + addData(array<string|int, mixed> $data) : void + + +
                                                                                                                                                                                                                Parameters
                                                                                                                                                                                                                +
                                                                                                                                                                                                                +
                                                                                                                                                                                                                + $data + : array<string|int, mixed> +
                                                                                                                                                                                                                +
                                                                                                                                                                                                                + +
                                                                                                                                                                                                                +
                                                                                                                                                                                                                + + + +
                                                                                                                                                                                                                Return values
                                                                                                                                                                                                                + void + — + + +
                                                                                                                                                                                                                +
                                                                                                                                                                                                                +

                                                                                                                                                                                                                + addHeaders() + +

                                                                                                                                                                                                                + + +

                                                                                                                                                                                                                Add headers to the request

                                                                                                                                                                                                                + + + public + addHeaders(array<string|int, mixed> $headers) : void + + +
                                                                                                                                                                                                                Parameters
                                                                                                                                                                                                                +
                                                                                                                                                                                                                +
                                                                                                                                                                                                                + $headers + : array<string|int, mixed> +
                                                                                                                                                                                                                +
                                                                                                                                                                                                                + +
                                                                                                                                                                                                                +
                                                                                                                                                                                                                + + + +
                                                                                                                                                                                                                Return values
                                                                                                                                                                                                                + void + — + + +
                                                                                                                                                                                                                +
                                                                                                                                                                                                                +

                                                                                                                                                                                                                + call() + +

                                                                                                                                                                                                                + + +

                                                                                                                                                                                                                Make the Http request

                                                                                                                                                                                                                + + + public + call() : ResponseInterface + + + + + +
                                                                                                                                                                                                                Return values
                                                                                                                                                                                                                + ResponseInterface + — + + +
                                                                                                                                                                                                                +
                                                                                                                                                                                                                +

                                                                                                                                                                                                                + setEndpoint() + +

                                                                                                                                                                                                                + + +

                                                                                                                                                                                                                Set the api endpoint to the request

                                                                                                                                                                                                                + + + public + setEndpoint(string $endpoint) : void + + +
                                                                                                                                                                                                                Parameters
                                                                                                                                                                                                                +
                                                                                                                                                                                                                +
                                                                                                                                                                                                                + $endpoint + : string +
                                                                                                                                                                                                                +
                                                                                                                                                                                                                + +
                                                                                                                                                                                                                +
                                                                                                                                                                                                                + + + +
                                                                                                                                                                                                                Return values
                                                                                                                                                                                                                + void + — + + +
                                                                                                                                                                                                                +
                                                                                                                                                                                                                +

                                                                                                                                                                                                                + makeRequest() + +

                                                                                                                                                                                                                + + +

                                                                                                                                                                                                                make the guzzle request

                                                                                                                                                                                                                + + + private + makeRequest() : void + + + + + +
                                                                                                                                                                                                                Return values
                                                                                                                                                                                                                + void + — + + +
                                                                                                                                                                                                                +
                                                                                                                                                                                                                + + + + +
                                                                                                                                                                                                                +
                                                                                                                                                                                                                +
                                                                                                                                                                                                                +
                                                                                                                                                                                                                +

                                                                                                                                                                                                                Search results

                                                                                                                                                                                                                + +
                                                                                                                                                                                                                +
                                                                                                                                                                                                                +
                                                                                                                                                                                                                  +
                                                                                                                                                                                                                  +
                                                                                                                                                                                                                  +
                                                                                                                                                                                                                  +
                                                                                                                                                                                                                  +
                                                                                                                                                                                                                  + + +
                                                                                                                                                                                                                  + + + + + + + + diff --git a/app/Lib/vendor/crm-client-3.0.6/documentation/classes/LDC-LDCCRM-Transport-Response.html b/app/Lib/vendor/crm-client-3.0.6/documentation/classes/LDC-LDCCRM-Transport-Response.html new file mode 100644 index 0000000..dbb2228 --- /dev/null +++ b/app/Lib/vendor/crm-client-3.0.6/documentation/classes/LDC-LDCCRM-Transport-Response.html @@ -0,0 +1,1083 @@ + + + + + CRM V2 + + + + + + + + + + + + + + + + + + + +
                                                                                                                                                                                                                  +

                                                                                                                                                                                                                  CRM V2

                                                                                                                                                                                                                  + + + + + +
                                                                                                                                                                                                                  + +
                                                                                                                                                                                                                  +
                                                                                                                                                                                                                  + + + + +
                                                                                                                                                                                                                  + + +
                                                                                                                                                                                                                  +

                                                                                                                                                                                                                  + Response + + +
                                                                                                                                                                                                                  + in package + +
                                                                                                                                                                                                                  + + +

                                                                                                                                                                                                                  + + + + + + +
                                                                                                                                                                                                                  + Tags + +
                                                                                                                                                                                                                  +
                                                                                                                                                                                                                  +
                                                                                                                                                                                                                  + subpackage +
                                                                                                                                                                                                                  +
                                                                                                                                                                                                                  + +

                                                                                                                                                                                                                  transport

                                                                                                                                                                                                                  +
                                                                                                                                                                                                                  + +
                                                                                                                                                                                                                  +
                                                                                                                                                                                                                  + + + + + + +

                                                                                                                                                                                                                  + Table of Contents + +

                                                                                                                                                                                                                  + +
                                                                                                                                                                                                                  +
                                                                                                                                                                                                                  + $apiError + +  : ApiError|int +
                                                                                                                                                                                                                  +
                                                                                                                                                                                                                  + +
                                                                                                                                                                                                                  + $body + +  : array<string|int, mixed> +
                                                                                                                                                                                                                  +
                                                                                                                                                                                                                  + +
                                                                                                                                                                                                                  + $data + +  : array<string|int, mixed>|null +
                                                                                                                                                                                                                  +
                                                                                                                                                                                                                  + +
                                                                                                                                                                                                                  + $headers + +  : array<string|int, mixed> +
                                                                                                                                                                                                                  +
                                                                                                                                                                                                                  + +
                                                                                                                                                                                                                  + $httpCode + +  : int +
                                                                                                                                                                                                                  +
                                                                                                                                                                                                                  + +
                                                                                                                                                                                                                  + $message + +  : string +
                                                                                                                                                                                                                  +
                                                                                                                                                                                                                  + +
                                                                                                                                                                                                                  + $status + +  : ApiStatus +
                                                                                                                                                                                                                  +
                                                                                                                                                                                                                  + +
                                                                                                                                                                                                                  + $apiError + +  : ApiError +
                                                                                                                                                                                                                  +
                                                                                                                                                                                                                  The api error
                                                                                                                                                                                                                  + +
                                                                                                                                                                                                                  + $body + +  : string +
                                                                                                                                                                                                                  +
                                                                                                                                                                                                                  The response body
                                                                                                                                                                                                                  + +
                                                                                                                                                                                                                  + $headers + +  : string +
                                                                                                                                                                                                                  +
                                                                                                                                                                                                                  The response headers
                                                                                                                                                                                                                  + +
                                                                                                                                                                                                                  + $httpCode + +  : int +
                                                                                                                                                                                                                  +
                                                                                                                                                                                                                  The response http code
                                                                                                                                                                                                                  + +
                                                                                                                                                                                                                  + $message + +  : string +
                                                                                                                                                                                                                  +
                                                                                                                                                                                                                  The interface message
                                                                                                                                                                                                                  + +
                                                                                                                                                                                                                  + $response + +  : ResponseInterface +
                                                                                                                                                                                                                  +
                                                                                                                                                                                                                  PSR response
                                                                                                                                                                                                                  + +
                                                                                                                                                                                                                  + $status + +  : ApiStatus +
                                                                                                                                                                                                                  +
                                                                                                                                                                                                                  The response status
                                                                                                                                                                                                                  + +
                                                                                                                                                                                                                  + __construct() + +  : mixed +
                                                                                                                                                                                                                  +
                                                                                                                                                                                                                  Response
                                                                                                                                                                                                                  + +
                                                                                                                                                                                                                  + __get() + +  : mixed|null +
                                                                                                                                                                                                                  +
                                                                                                                                                                                                                  Generic accessor
                                                                                                                                                                                                                  + +
                                                                                                                                                                                                                  + checkVersion() + +  : void +
                                                                                                                                                                                                                  +
                                                                                                                                                                                                                  This checks if the crm version is way far beyond the client version.
                                                                                                                                                                                                                  + +
                                                                                                                                                                                                                  + tryDecodeJson() + +  : array<string|int, mixed>|false +
                                                                                                                                                                                                                  +
                                                                                                                                                                                                                  Try to decode json and return false if it is +not a valid json
                                                                                                                                                                                                                  + +
                                                                                                                                                                                                                  + + + + + + +
                                                                                                                                                                                                                  +

                                                                                                                                                                                                                  + Properties + +

                                                                                                                                                                                                                  +
                                                                                                                                                                                                                  +

                                                                                                                                                                                                                  + $apiError + + + +

                                                                                                                                                                                                                  + + + + + public + ApiError|int + $apiError + + +

                                                                                                                                                                                                                  The api error status it there is any

                                                                                                                                                                                                                  +
                                                                                                                                                                                                                  + +
                                                                                                                                                                                                                  + + + +
                                                                                                                                                                                                                  +
                                                                                                                                                                                                                  +

                                                                                                                                                                                                                  + $body + + + +

                                                                                                                                                                                                                  + + + + + public + array<string|int, mixed> + $body + + +

                                                                                                                                                                                                                  The http response body, this is parsed json

                                                                                                                                                                                                                  +
                                                                                                                                                                                                                  + +
                                                                                                                                                                                                                  + + + +
                                                                                                                                                                                                                  +
                                                                                                                                                                                                                  +

                                                                                                                                                                                                                  + $data + + + +

                                                                                                                                                                                                                  + + + + + public + array<string|int, mixed>|null + $data + + +

                                                                                                                                                                                                                  The reponse data

                                                                                                                                                                                                                  +
                                                                                                                                                                                                                  + +
                                                                                                                                                                                                                  + + + +
                                                                                                                                                                                                                  +
                                                                                                                                                                                                                  +

                                                                                                                                                                                                                  + $headers + + + +

                                                                                                                                                                                                                  + + + + + public + array<string|int, mixed> + $headers + + +

                                                                                                                                                                                                                  The http reponse headers

                                                                                                                                                                                                                  +
                                                                                                                                                                                                                  + +
                                                                                                                                                                                                                  + + + +
                                                                                                                                                                                                                  +
                                                                                                                                                                                                                  +

                                                                                                                                                                                                                  + $httpCode + + + +

                                                                                                                                                                                                                  + + + + + public + int + $httpCode + + +

                                                                                                                                                                                                                  The http response code

                                                                                                                                                                                                                  +
                                                                                                                                                                                                                  + +
                                                                                                                                                                                                                  + + + +
                                                                                                                                                                                                                  +
                                                                                                                                                                                                                  +

                                                                                                                                                                                                                  + $message + + + +

                                                                                                                                                                                                                  + + + + + public + string + $message + + +

                                                                                                                                                                                                                  The api message

                                                                                                                                                                                                                  +
                                                                                                                                                                                                                  + +
                                                                                                                                                                                                                  + + + +
                                                                                                                                                                                                                  +
                                                                                                                                                                                                                  +

                                                                                                                                                                                                                  + $status + + + +

                                                                                                                                                                                                                  + + + + + public + ApiStatus + $status + + +

                                                                                                                                                                                                                  The response api status

                                                                                                                                                                                                                  +
                                                                                                                                                                                                                  + +
                                                                                                                                                                                                                  + + + +
                                                                                                                                                                                                                  +
                                                                                                                                                                                                                  +

                                                                                                                                                                                                                  + $apiError + + + +

                                                                                                                                                                                                                  + + +

                                                                                                                                                                                                                  The api error

                                                                                                                                                                                                                  + + + private + ApiError + $apiError + + + + + + +
                                                                                                                                                                                                                  +
                                                                                                                                                                                                                  +

                                                                                                                                                                                                                  + $body + + + +

                                                                                                                                                                                                                  + + +

                                                                                                                                                                                                                  The response body

                                                                                                                                                                                                                  + + + private + string + $body + + + + + + +
                                                                                                                                                                                                                  +
                                                                                                                                                                                                                  +

                                                                                                                                                                                                                  + $headers + + + +

                                                                                                                                                                                                                  + + +

                                                                                                                                                                                                                  The response headers

                                                                                                                                                                                                                  + + + private + string + $headers + + + + + + +
                                                                                                                                                                                                                  +
                                                                                                                                                                                                                  +

                                                                                                                                                                                                                  + $httpCode + + + +

                                                                                                                                                                                                                  + + +

                                                                                                                                                                                                                  The response http code

                                                                                                                                                                                                                  + + + private + int + $httpCode + = 0 + + + + + +
                                                                                                                                                                                                                  +
                                                                                                                                                                                                                  +

                                                                                                                                                                                                                  + $message + + + +

                                                                                                                                                                                                                  + + +

                                                                                                                                                                                                                  The interface message

                                                                                                                                                                                                                  + + + private + string + $message + + + + + + +
                                                                                                                                                                                                                  +
                                                                                                                                                                                                                  +

                                                                                                                                                                                                                  + $response + + + +

                                                                                                                                                                                                                  + + +

                                                                                                                                                                                                                  PSR response

                                                                                                                                                                                                                  + + + private + ResponseInterface + $response + + + + + + +
                                                                                                                                                                                                                  +
                                                                                                                                                                                                                  +

                                                                                                                                                                                                                  + $status + + + +

                                                                                                                                                                                                                  + + +

                                                                                                                                                                                                                  The response status

                                                                                                                                                                                                                  + + + private + ApiStatus + $status + + + + + + +
                                                                                                                                                                                                                  +
                                                                                                                                                                                                                  + +
                                                                                                                                                                                                                  +

                                                                                                                                                                                                                  + Methods + +

                                                                                                                                                                                                                  +
                                                                                                                                                                                                                  +

                                                                                                                                                                                                                  + __construct() + +

                                                                                                                                                                                                                  + + +

                                                                                                                                                                                                                  Response

                                                                                                                                                                                                                  + + + public + __construct(ApiStatus $status, ResponseInterface $response) : mixed + + +
                                                                                                                                                                                                                  Parameters
                                                                                                                                                                                                                  +
                                                                                                                                                                                                                  +
                                                                                                                                                                                                                  + $status + : ApiStatus +
                                                                                                                                                                                                                  +
                                                                                                                                                                                                                  + +
                                                                                                                                                                                                                  +
                                                                                                                                                                                                                  + $response + : ResponseInterface +
                                                                                                                                                                                                                  +
                                                                                                                                                                                                                  + +
                                                                                                                                                                                                                  +
                                                                                                                                                                                                                  + + +
                                                                                                                                                                                                                  + Tags + +
                                                                                                                                                                                                                  +
                                                                                                                                                                                                                  +
                                                                                                                                                                                                                  + throws +
                                                                                                                                                                                                                  +
                                                                                                                                                                                                                  + CrmException + +

                                                                                                                                                                                                                  If HTTP response body in not JSON.

                                                                                                                                                                                                                  +
                                                                                                                                                                                                                  + +
                                                                                                                                                                                                                  +
                                                                                                                                                                                                                  + +
                                                                                                                                                                                                                  Return values
                                                                                                                                                                                                                  + mixed + — + + +
                                                                                                                                                                                                                  +
                                                                                                                                                                                                                  +

                                                                                                                                                                                                                  + __get() + +

                                                                                                                                                                                                                  + + +

                                                                                                                                                                                                                  Generic accessor

                                                                                                                                                                                                                  + + + public + __get(string $field) : mixed|null + + +
                                                                                                                                                                                                                  Parameters
                                                                                                                                                                                                                  +
                                                                                                                                                                                                                  +
                                                                                                                                                                                                                  + $field + : string +
                                                                                                                                                                                                                  +
                                                                                                                                                                                                                  + +
                                                                                                                                                                                                                  +
                                                                                                                                                                                                                  + + + +
                                                                                                                                                                                                                  Return values
                                                                                                                                                                                                                  + mixed|null + — + + +
                                                                                                                                                                                                                  +
                                                                                                                                                                                                                  +

                                                                                                                                                                                                                  + checkVersion() + +

                                                                                                                                                                                                                  + + +

                                                                                                                                                                                                                  This checks if the crm version is way far beyond the client version.

                                                                                                                                                                                                                  + + + private + checkVersion(string $version) : void + +

                                                                                                                                                                                                                  If a minor version mismatch is detected we will log this as a warning. +If a major version mismatch is detected we will throw a CrmException as +there shall be an incompatibility with the response.

                                                                                                                                                                                                                  +

                                                                                                                                                                                                                  The goal here is to force clients to be up to date. +A major version change means breaking change.

                                                                                                                                                                                                                  +
                                                                                                                                                                                                                  + +
                                                                                                                                                                                                                  Parameters
                                                                                                                                                                                                                  +
                                                                                                                                                                                                                  +
                                                                                                                                                                                                                  + $version + : string +
                                                                                                                                                                                                                  +
                                                                                                                                                                                                                  + +
                                                                                                                                                                                                                  +
                                                                                                                                                                                                                  + + +
                                                                                                                                                                                                                  + Tags + +
                                                                                                                                                                                                                  +
                                                                                                                                                                                                                  +
                                                                                                                                                                                                                  + throws +
                                                                                                                                                                                                                  +
                                                                                                                                                                                                                  + CrmException + +

                                                                                                                                                                                                                  If a major version mismatch is detected.

                                                                                                                                                                                                                  +
                                                                                                                                                                                                                  + +
                                                                                                                                                                                                                  +
                                                                                                                                                                                                                  + +
                                                                                                                                                                                                                  Return values
                                                                                                                                                                                                                  + void + — + + +
                                                                                                                                                                                                                  +
                                                                                                                                                                                                                  +

                                                                                                                                                                                                                  + tryDecodeJson() + +

                                                                                                                                                                                                                  + + +

                                                                                                                                                                                                                  Try to decode json and return false if it is +not a valid json

                                                                                                                                                                                                                  + + + private + tryDecodeJson(string $string) : array<string|int, mixed>|false + + +
                                                                                                                                                                                                                  Parameters
                                                                                                                                                                                                                  +
                                                                                                                                                                                                                  +
                                                                                                                                                                                                                  + $string + : string +
                                                                                                                                                                                                                  +
                                                                                                                                                                                                                  + +
                                                                                                                                                                                                                  +
                                                                                                                                                                                                                  + + + +
                                                                                                                                                                                                                  Return values
                                                                                                                                                                                                                  + array<string|int, mixed>|false + — +

                                                                                                                                                                                                                  Returns an associative data array or false if failed to parse.

                                                                                                                                                                                                                  +
                                                                                                                                                                                                                  + + +
                                                                                                                                                                                                                  +
                                                                                                                                                                                                                  + + + + +
                                                                                                                                                                                                                  +
                                                                                                                                                                                                                  +
                                                                                                                                                                                                                  +
                                                                                                                                                                                                                  +

                                                                                                                                                                                                                  Search results

                                                                                                                                                                                                                  + +
                                                                                                                                                                                                                  +
                                                                                                                                                                                                                  +
                                                                                                                                                                                                                    +
                                                                                                                                                                                                                    +
                                                                                                                                                                                                                    +
                                                                                                                                                                                                                    +
                                                                                                                                                                                                                    +
                                                                                                                                                                                                                    + + +
                                                                                                                                                                                                                    + + + + + + + + diff --git a/app/Lib/vendor/crm-client-3.0.6/documentation/classes/LDC-LDCCRM-Utils.html b/app/Lib/vendor/crm-client-3.0.6/documentation/classes/LDC-LDCCRM-Utils.html new file mode 100644 index 0000000..c710c60 --- /dev/null +++ b/app/Lib/vendor/crm-client-3.0.6/documentation/classes/LDC-LDCCRM-Utils.html @@ -0,0 +1,1983 @@ + + + + + CRM V2 + + + + + + + + + + + + + + + + + + + +
                                                                                                                                                                                                                    +

                                                                                                                                                                                                                    CRM V2

                                                                                                                                                                                                                    + + + + + +
                                                                                                                                                                                                                    + +
                                                                                                                                                                                                                    +
                                                                                                                                                                                                                    + + + + +
                                                                                                                                                                                                                    + + +
                                                                                                                                                                                                                    +

                                                                                                                                                                                                                    + Utils + + +
                                                                                                                                                                                                                    + in package + +
                                                                                                                                                                                                                    + + +

                                                                                                                                                                                                                    + + + +

                                                                                                                                                                                                                    This is the LDCCRM utility class

                                                                                                                                                                                                                    + + + +
                                                                                                                                                                                                                    + Tags + +
                                                                                                                                                                                                                    +
                                                                                                                                                                                                                    +
                                                                                                                                                                                                                    + category +
                                                                                                                                                                                                                    +
                                                                                                                                                                                                                    + +

                                                                                                                                                                                                                    Utility

                                                                                                                                                                                                                    +
                                                                                                                                                                                                                    + +
                                                                                                                                                                                                                    +
                                                                                                                                                                                                                    + uses +
                                                                                                                                                                                                                    +
                                                                                                                                                                                                                    + HttpMethods + + +
                                                                                                                                                                                                                    +
                                                                                                                                                                                                                    + uses +
                                                                                                                                                                                                                    +
                                                                                                                                                                                                                    + Request + + +
                                                                                                                                                                                                                    +
                                                                                                                                                                                                                    + subpackage +
                                                                                                                                                                                                                    +
                                                                                                                                                                                                                    + +

                                                                                                                                                                                                                    utilities

                                                                                                                                                                                                                    +
                                                                                                                                                                                                                    + +
                                                                                                                                                                                                                    +
                                                                                                                                                                                                                    + + + + + + +

                                                                                                                                                                                                                    + Table of Contents + +

                                                                                                                                                                                                                    + +
                                                                                                                                                                                                                    +
                                                                                                                                                                                                                    + $packageInfos + +  : array<string|int, mixed> +
                                                                                                                                                                                                                    +
                                                                                                                                                                                                                    Package infos
                                                                                                                                                                                                                    + +
                                                                                                                                                                                                                    + $translations + +  : array<string|int, mixed> +
                                                                                                                                                                                                                    +
                                                                                                                                                                                                                    Loaded translations
                                                                                                                                                                                                                    + +
                                                                                                                                                                                                                    + getConfig() + +  : string|null +
                                                                                                                                                                                                                    +
                                                                                                                                                                                                                    This is only used for unit tests.
                                                                                                                                                                                                                    + +
                                                                                                                                                                                                                    + getPackageInfo() + +  : array<string|int, mixed> +
                                                                                                                                                                                                                    +
                                                                                                                                                                                                                    Get composer.json infos
                                                                                                                                                                                                                    + +
                                                                                                                                                                                                                    + getRawProperty() + +  : mixed|null +
                                                                                                                                                                                                                    +
                                                                                                                                                                                                                    Get a property of an object.
                                                                                                                                                                                                                    + +
                                                                                                                                                                                                                    + getResquest() + +  : Request +
                                                                                                                                                                                                                    +
                                                                                                                                                                                                                    Generate a Request from the route name
                                                                                                                                                                                                                    + +
                                                                                                                                                                                                                    + log() + +  : void +
                                                                                                                                                                                                                    +
                                                                                                                                                                                                                    Write log using syslog +It also write log using \Illuminate\Support\Facades\Log +if it is present
                                                                                                                                                                                                                    + +
                                                                                                                                                                                                                    + makeValidator() + +  : closure +
                                                                                                                                                                                                                    +
                                                                                                                                                                                                                    Create a new Validator instance.
                                                                                                                                                                                                                    + +
                                                                                                                                                                                                                    + setRawProperty() + +  : void +
                                                                                                                                                                                                                    +
                                                                                                                                                                                                                    Set a property without any validation.
                                                                                                                                                                                                                    + +
                                                                                                                                                                                                                    + translate() + +  : string +
                                                                                                                                                                                                                    +
                                                                                                                                                                                                                    Translation a string using php file lang
                                                                                                                                                                                                                    + +
                                                                                                                                                                                                                    + makeValidatorFromRule() + +  : array<string|int, mixed> +
                                                                                                                                                                                                                    +
                                                                                                                                                                                                                    Generate a validator
                                                                                                                                                                                                                    + +
                                                                                                                                                                                                                    + validationArray() + +  : array<string|int, mixed> +
                                                                                                                                                                                                                    +
                                                                                                                                                                                                                    Make Array validator
                                                                                                                                                                                                                    + +
                                                                                                                                                                                                                    + validationBool() + +  : array<string|int, mixed> +
                                                                                                                                                                                                                    +
                                                                                                                                                                                                                    Make Bool validator
                                                                                                                                                                                                                    + +
                                                                                                                                                                                                                    + validationClosure() + +  : array<string|int, mixed> +
                                                                                                                                                                                                                    +
                                                                                                                                                                                                                    Make Closure validator
                                                                                                                                                                                                                    + +
                                                                                                                                                                                                                    + validationContainDigit() + +  : array<string|int, mixed> +
                                                                                                                                                                                                                    +
                                                                                                                                                                                                                    Make ContainDigit validator
                                                                                                                                                                                                                    + +
                                                                                                                                                                                                                    + validationContainSymbol() + +  : array<string|int, mixed> +
                                                                                                                                                                                                                    +
                                                                                                                                                                                                                    Make ContainSymbol validator
                                                                                                                                                                                                                    + +
                                                                                                                                                                                                                    + validationDate() + +  : array<string|int, mixed> +
                                                                                                                                                                                                                    +
                                                                                                                                                                                                                    Make Date validator
                                                                                                                                                                                                                    + +
                                                                                                                                                                                                                    + validationDateFormat() + +  : array<string|int, mixed> +
                                                                                                                                                                                                                    +
                                                                                                                                                                                                                    Make DateFormat validator
                                                                                                                                                                                                                    + +
                                                                                                                                                                                                                    + validationEmail() + +  : array<string|int, mixed> +
                                                                                                                                                                                                                    +
                                                                                                                                                                                                                    Make Email validator
                                                                                                                                                                                                                    + +
                                                                                                                                                                                                                    + validationInt() + +  : array<string|int, mixed> +
                                                                                                                                                                                                                    +
                                                                                                                                                                                                                    Make Int validator
                                                                                                                                                                                                                    + +
                                                                                                                                                                                                                    + validationMax() + +  : array<string|int, mixed> +
                                                                                                                                                                                                                    +
                                                                                                                                                                                                                    Make Max validator
                                                                                                                                                                                                                    + +
                                                                                                                                                                                                                    + validationMin() + +  : array<string|int, mixed> +
                                                                                                                                                                                                                    +
                                                                                                                                                                                                                    Make Min validator
                                                                                                                                                                                                                    + +
                                                                                                                                                                                                                    + validationMixedCase() + +  : array<string|int, mixed> +
                                                                                                                                                                                                                    +
                                                                                                                                                                                                                    Make MixedCase validator
                                                                                                                                                                                                                    + +
                                                                                                                                                                                                                    + validationNullable() + +  : array<string|int, mixed> +
                                                                                                                                                                                                                    +
                                                                                                                                                                                                                    Make Nullable validator
                                                                                                                                                                                                                    + +
                                                                                                                                                                                                                    + validationRequired() + +  : array<string|int, mixed> +
                                                                                                                                                                                                                    +
                                                                                                                                                                                                                    Make Required validator
                                                                                                                                                                                                                    + +
                                                                                                                                                                                                                    + validationSometimes() + +  : array<string|int, mixed> +
                                                                                                                                                                                                                    +
                                                                                                                                                                                                                    Make Sometimes validator
                                                                                                                                                                                                                    + +
                                                                                                                                                                                                                    + validationString() + +  : array<string|int, mixed> +
                                                                                                                                                                                                                    +
                                                                                                                                                                                                                    Make String validator
                                                                                                                                                                                                                    + +
                                                                                                                                                                                                                    + validationUuid() + +  : array<string|int, mixed> +
                                                                                                                                                                                                                    +
                                                                                                                                                                                                                    Make Uuid validator
                                                                                                                                                                                                                    + +
                                                                                                                                                                                                                    + + + + + + +
                                                                                                                                                                                                                    +

                                                                                                                                                                                                                    + Properties + +

                                                                                                                                                                                                                    +
                                                                                                                                                                                                                    +

                                                                                                                                                                                                                    + $packageInfos + + + +

                                                                                                                                                                                                                    + + +

                                                                                                                                                                                                                    Package infos

                                                                                                                                                                                                                    + + + private + static array<string|int, mixed> + $packageInfos + + + + + + +
                                                                                                                                                                                                                    +
                                                                                                                                                                                                                    +

                                                                                                                                                                                                                    + $translations + + + +

                                                                                                                                                                                                                    + + +

                                                                                                                                                                                                                    Loaded translations

                                                                                                                                                                                                                    + + + private + static array<string|int, mixed> + $translations + = [] + + + + + +
                                                                                                                                                                                                                    +
                                                                                                                                                                                                                    + +
                                                                                                                                                                                                                    +

                                                                                                                                                                                                                    + Methods + +

                                                                                                                                                                                                                    +
                                                                                                                                                                                                                    +

                                                                                                                                                                                                                    + getConfig() + +

                                                                                                                                                                                                                    + + +

                                                                                                                                                                                                                    This is only used for unit tests.

                                                                                                                                                                                                                    + + + public + static getConfig(string $key[, string $default = null ]) : string|null + +

                                                                                                                                                                                                                    Get config

                                                                                                                                                                                                                    +
                                                                                                                                                                                                                    + +
                                                                                                                                                                                                                    Parameters
                                                                                                                                                                                                                    +
                                                                                                                                                                                                                    +
                                                                                                                                                                                                                    + $key + : string +
                                                                                                                                                                                                                    +
                                                                                                                                                                                                                    + +
                                                                                                                                                                                                                    +
                                                                                                                                                                                                                    + $default + : string + = null
                                                                                                                                                                                                                    +
                                                                                                                                                                                                                    + +
                                                                                                                                                                                                                    +
                                                                                                                                                                                                                    + + + +
                                                                                                                                                                                                                    Return values
                                                                                                                                                                                                                    + string|null + — + + +
                                                                                                                                                                                                                    +
                                                                                                                                                                                                                    +

                                                                                                                                                                                                                    + getPackageInfo() + +

                                                                                                                                                                                                                    + + +

                                                                                                                                                                                                                    Get composer.json infos

                                                                                                                                                                                                                    + + + public + static getPackageInfo() : array<string|int, mixed> + + + + + +
                                                                                                                                                                                                                    Return values
                                                                                                                                                                                                                    + array<string|int, mixed> + — + + +
                                                                                                                                                                                                                    +
                                                                                                                                                                                                                    +

                                                                                                                                                                                                                    + getRawProperty() + +

                                                                                                                                                                                                                    + + +

                                                                                                                                                                                                                    Get a property of an object.

                                                                                                                                                                                                                    + + + public + static getRawProperty(object $object, string $property) : mixed|null + +

                                                                                                                                                                                                                    ! Warning : this will return any property of the object, use with caution.

                                                                                                                                                                                                                    +
                                                                                                                                                                                                                    + +
                                                                                                                                                                                                                    Parameters
                                                                                                                                                                                                                    +
                                                                                                                                                                                                                    +
                                                                                                                                                                                                                    + $object + : object +
                                                                                                                                                                                                                    +
                                                                                                                                                                                                                    +

                                                                                                                                                                                                                    The object to inspect.

                                                                                                                                                                                                                    +
                                                                                                                                                                                                                    + +
                                                                                                                                                                                                                    +
                                                                                                                                                                                                                    + $property + : string +
                                                                                                                                                                                                                    +
                                                                                                                                                                                                                    +

                                                                                                                                                                                                                    The object property to inspect.

                                                                                                                                                                                                                    +
                                                                                                                                                                                                                    + +
                                                                                                                                                                                                                    +
                                                                                                                                                                                                                    + + + +
                                                                                                                                                                                                                    Return values
                                                                                                                                                                                                                    + mixed|null + — +

                                                                                                                                                                                                                    Returns null if the property was not found any way.

                                                                                                                                                                                                                    +
                                                                                                                                                                                                                    + + +
                                                                                                                                                                                                                    +
                                                                                                                                                                                                                    +

                                                                                                                                                                                                                    + getResquest() + +

                                                                                                                                                                                                                    + + +

                                                                                                                                                                                                                    Generate a Request from the route name

                                                                                                                                                                                                                    + + + public + static getResquest(string $routeName[, array<string|int, mixed> $query = [] ][, array<string|int, mixed> $data = [] ]) : Request + + +
                                                                                                                                                                                                                    Parameters
                                                                                                                                                                                                                    +
                                                                                                                                                                                                                    +
                                                                                                                                                                                                                    + $routeName + : string +
                                                                                                                                                                                                                    +
                                                                                                                                                                                                                    + +
                                                                                                                                                                                                                    +
                                                                                                                                                                                                                    + $query + : array<string|int, mixed> + = []
                                                                                                                                                                                                                    +
                                                                                                                                                                                                                    +

                                                                                                                                                                                                                    Params to pass on to the route.

                                                                                                                                                                                                                    +
                                                                                                                                                                                                                    + +
                                                                                                                                                                                                                    +
                                                                                                                                                                                                                    + $data + : array<string|int, mixed> + = []
                                                                                                                                                                                                                    +
                                                                                                                                                                                                                    +

                                                                                                                                                                                                                    Http body params.

                                                                                                                                                                                                                    +
                                                                                                                                                                                                                    + +
                                                                                                                                                                                                                    +
                                                                                                                                                                                                                    + + +
                                                                                                                                                                                                                    + Tags + +
                                                                                                                                                                                                                    +
                                                                                                                                                                                                                    +
                                                                                                                                                                                                                    + throws +
                                                                                                                                                                                                                    +
                                                                                                                                                                                                                    + ErrorException + +

                                                                                                                                                                                                                    If the requested route is unknown.

                                                                                                                                                                                                                    +
                                                                                                                                                                                                                    + +
                                                                                                                                                                                                                    +
                                                                                                                                                                                                                    + throws +
                                                                                                                                                                                                                    +
                                                                                                                                                                                                                    + ErrorException + +

                                                                                                                                                                                                                    If a required parameter is missing.

                                                                                                                                                                                                                    +
                                                                                                                                                                                                                    + +
                                                                                                                                                                                                                    +
                                                                                                                                                                                                                    + +
                                                                                                                                                                                                                    Return values
                                                                                                                                                                                                                    + Request + — + + +
                                                                                                                                                                                                                    +
                                                                                                                                                                                                                    +

                                                                                                                                                                                                                    + log() + +

                                                                                                                                                                                                                    + + +

                                                                                                                                                                                                                    Write log using syslog +It also write log using \Illuminate\Support\Facades\Log +if it is present

                                                                                                                                                                                                                    + + + public + static log(string $message, LogLevel $level) : void + + +
                                                                                                                                                                                                                    Parameters
                                                                                                                                                                                                                    +
                                                                                                                                                                                                                    +
                                                                                                                                                                                                                    + $message + : string +
                                                                                                                                                                                                                    +
                                                                                                                                                                                                                    +

                                                                                                                                                                                                                    The message is prefixed with "LDC CRM:" .

                                                                                                                                                                                                                    +
                                                                                                                                                                                                                    + +
                                                                                                                                                                                                                    +
                                                                                                                                                                                                                    + $level + : LogLevel +
                                                                                                                                                                                                                    +
                                                                                                                                                                                                                    +

                                                                                                                                                                                                                    The log level to apply.

                                                                                                                                                                                                                    +
                                                                                                                                                                                                                    + +
                                                                                                                                                                                                                    +
                                                                                                                                                                                                                    + + + +
                                                                                                                                                                                                                    Return values
                                                                                                                                                                                                                    + void + — + + +
                                                                                                                                                                                                                    +
                                                                                                                                                                                                                    +

                                                                                                                                                                                                                    + makeValidator() + +

                                                                                                                                                                                                                    + + +

                                                                                                                                                                                                                    Create a new Validator instance.

                                                                                                                                                                                                                    + + + public + static makeValidator(array<string|int, mixed> $data, array<string|int, mixed> $rules) : closure + + +
                                                                                                                                                                                                                    Parameters
                                                                                                                                                                                                                    +
                                                                                                                                                                                                                    +
                                                                                                                                                                                                                    + $data + : array<string|int, mixed> +
                                                                                                                                                                                                                    +
                                                                                                                                                                                                                    + +
                                                                                                                                                                                                                    +
                                                                                                                                                                                                                    + $rules + : array<string|int, mixed> +
                                                                                                                                                                                                                    +
                                                                                                                                                                                                                    + +
                                                                                                                                                                                                                    +
                                                                                                                                                                                                                    + + +
                                                                                                                                                                                                                    + Tags + +
                                                                                                                                                                                                                    +
                                                                                                                                                                                                                    +
                                                                                                                                                                                                                    + throws +
                                                                                                                                                                                                                    +
                                                                                                                                                                                                                    + ErrorException + +

                                                                                                                                                                                                                    If an unknown validation rule is used.

                                                                                                                                                                                                                    +
                                                                                                                                                                                                                    + +
                                                                                                                                                                                                                    +
                                                                                                                                                                                                                    + +
                                                                                                                                                                                                                    Return values
                                                                                                                                                                                                                    + closure + — + + +
                                                                                                                                                                                                                    +
                                                                                                                                                                                                                    +

                                                                                                                                                                                                                    + setRawProperty() + +

                                                                                                                                                                                                                    + + +

                                                                                                                                                                                                                    Set a property without any validation.

                                                                                                                                                                                                                    + + + public + static setRawProperty(object $object, string $property, mixed $value) : void + +

                                                                                                                                                                                                                    ! Warning : this can change any property of the object, use with caution.

                                                                                                                                                                                                                    +
                                                                                                                                                                                                                    + +
                                                                                                                                                                                                                    Parameters
                                                                                                                                                                                                                    +
                                                                                                                                                                                                                    +
                                                                                                                                                                                                                    + $object + : object +
                                                                                                                                                                                                                    +
                                                                                                                                                                                                                    +

                                                                                                                                                                                                                    The object to inspect.

                                                                                                                                                                                                                    +
                                                                                                                                                                                                                    + +
                                                                                                                                                                                                                    +
                                                                                                                                                                                                                    + $property + : string +
                                                                                                                                                                                                                    +
                                                                                                                                                                                                                    +

                                                                                                                                                                                                                    The object property to assign to.

                                                                                                                                                                                                                    +
                                                                                                                                                                                                                    + +
                                                                                                                                                                                                                    +
                                                                                                                                                                                                                    + $value + : mixed +
                                                                                                                                                                                                                    +
                                                                                                                                                                                                                    +

                                                                                                                                                                                                                    The value to insert.

                                                                                                                                                                                                                    +
                                                                                                                                                                                                                    + +
                                                                                                                                                                                                                    +
                                                                                                                                                                                                                    + + +
                                                                                                                                                                                                                    + Tags + +
                                                                                                                                                                                                                    +
                                                                                                                                                                                                                    +
                                                                                                                                                                                                                    + throws +
                                                                                                                                                                                                                    +
                                                                                                                                                                                                                    + AccessError + +

                                                                                                                                                                                                                    If trying to set a value on a unknown property.

                                                                                                                                                                                                                    +
                                                                                                                                                                                                                    + +
                                                                                                                                                                                                                    +
                                                                                                                                                                                                                    + +
                                                                                                                                                                                                                    Return values
                                                                                                                                                                                                                    + void + — + + +
                                                                                                                                                                                                                    +
                                                                                                                                                                                                                    +

                                                                                                                                                                                                                    + translate() + +

                                                                                                                                                                                                                    + + +

                                                                                                                                                                                                                    Translation a string using php file lang

                                                                                                                                                                                                                    + + + public + static translate(string $key[, string $lang = 'fr' ]) : string + + +
                                                                                                                                                                                                                    Parameters
                                                                                                                                                                                                                    +
                                                                                                                                                                                                                    +
                                                                                                                                                                                                                    + $key + : string +
                                                                                                                                                                                                                    +
                                                                                                                                                                                                                    + +
                                                                                                                                                                                                                    +
                                                                                                                                                                                                                    + $lang + : string + = 'fr'
                                                                                                                                                                                                                    +
                                                                                                                                                                                                                    + +
                                                                                                                                                                                                                    +
                                                                                                                                                                                                                    + + + +
                                                                                                                                                                                                                    Return values
                                                                                                                                                                                                                    + string + — + + +
                                                                                                                                                                                                                    +
                                                                                                                                                                                                                    +

                                                                                                                                                                                                                    + makeValidatorFromRule() + +

                                                                                                                                                                                                                    + + +

                                                                                                                                                                                                                    Generate a validator

                                                                                                                                                                                                                    + + + private + static makeValidatorFromRule(mixed $rule, array<string|int, mixed> $data, string $attribute) : array<string|int, mixed> + + +
                                                                                                                                                                                                                    Parameters
                                                                                                                                                                                                                    +
                                                                                                                                                                                                                    +
                                                                                                                                                                                                                    + $rule + : mixed +
                                                                                                                                                                                                                    +
                                                                                                                                                                                                                    + +
                                                                                                                                                                                                                    +
                                                                                                                                                                                                                    + $data + : array<string|int, mixed> +
                                                                                                                                                                                                                    +
                                                                                                                                                                                                                    + +
                                                                                                                                                                                                                    +
                                                                                                                                                                                                                    + $attribute + : string +
                                                                                                                                                                                                                    +
                                                                                                                                                                                                                    + +
                                                                                                                                                                                                                    +
                                                                                                                                                                                                                    + + +
                                                                                                                                                                                                                    + Tags + +
                                                                                                                                                                                                                    +
                                                                                                                                                                                                                    +
                                                                                                                                                                                                                    + throws +
                                                                                                                                                                                                                    +
                                                                                                                                                                                                                    + ErrorException + +

                                                                                                                                                                                                                    If a rule is unknown.

                                                                                                                                                                                                                    +
                                                                                                                                                                                                                    + +
                                                                                                                                                                                                                    +
                                                                                                                                                                                                                    + +
                                                                                                                                                                                                                    Return values
                                                                                                                                                                                                                    + array<string|int, mixed> + — + + +
                                                                                                                                                                                                                    +
                                                                                                                                                                                                                    +

                                                                                                                                                                                                                    + validationArray() + +

                                                                                                                                                                                                                    + + +

                                                                                                                                                                                                                    Make Array validator

                                                                                                                                                                                                                    + + + private + static validationArray(string $attribute, mixed $value) : array<string|int, mixed> + + +
                                                                                                                                                                                                                    Parameters
                                                                                                                                                                                                                    +
                                                                                                                                                                                                                    +
                                                                                                                                                                                                                    + $attribute + : string +
                                                                                                                                                                                                                    +
                                                                                                                                                                                                                    + +
                                                                                                                                                                                                                    +
                                                                                                                                                                                                                    + $value + : mixed +
                                                                                                                                                                                                                    +
                                                                                                                                                                                                                    + +
                                                                                                                                                                                                                    +
                                                                                                                                                                                                                    + + + +
                                                                                                                                                                                                                    Return values
                                                                                                                                                                                                                    + array<string|int, mixed> + — + + +
                                                                                                                                                                                                                    +
                                                                                                                                                                                                                    +

                                                                                                                                                                                                                    + validationBool() + +

                                                                                                                                                                                                                    + + +

                                                                                                                                                                                                                    Make Bool validator

                                                                                                                                                                                                                    + + + private + static validationBool(string $attribute, mixed $value) : array<string|int, mixed> + + +
                                                                                                                                                                                                                    Parameters
                                                                                                                                                                                                                    +
                                                                                                                                                                                                                    +
                                                                                                                                                                                                                    + $attribute + : string +
                                                                                                                                                                                                                    +
                                                                                                                                                                                                                    + +
                                                                                                                                                                                                                    +
                                                                                                                                                                                                                    + $value + : mixed +
                                                                                                                                                                                                                    +
                                                                                                                                                                                                                    + +
                                                                                                                                                                                                                    +
                                                                                                                                                                                                                    + + + +
                                                                                                                                                                                                                    Return values
                                                                                                                                                                                                                    + array<string|int, mixed> + — + + +
                                                                                                                                                                                                                    +
                                                                                                                                                                                                                    +

                                                                                                                                                                                                                    + validationClosure() + +

                                                                                                                                                                                                                    + + +

                                                                                                                                                                                                                    Make Closure validator

                                                                                                                                                                                                                    + + + private + static validationClosure(string $attribute, mixed $value, Closure $closure) : array<string|int, mixed> + + +
                                                                                                                                                                                                                    Parameters
                                                                                                                                                                                                                    +
                                                                                                                                                                                                                    +
                                                                                                                                                                                                                    + $attribute + : string +
                                                                                                                                                                                                                    +
                                                                                                                                                                                                                    + +
                                                                                                                                                                                                                    +
                                                                                                                                                                                                                    + $value + : mixed +
                                                                                                                                                                                                                    +
                                                                                                                                                                                                                    + +
                                                                                                                                                                                                                    +
                                                                                                                                                                                                                    + $closure + : Closure +
                                                                                                                                                                                                                    +
                                                                                                                                                                                                                    + +
                                                                                                                                                                                                                    +
                                                                                                                                                                                                                    + + + +
                                                                                                                                                                                                                    Return values
                                                                                                                                                                                                                    + array<string|int, mixed> + — + + +
                                                                                                                                                                                                                    +
                                                                                                                                                                                                                    +

                                                                                                                                                                                                                    + validationContainDigit() + +

                                                                                                                                                                                                                    + + +

                                                                                                                                                                                                                    Make ContainDigit validator

                                                                                                                                                                                                                    + + + private + static validationContainDigit(string $attribute, mixed $value) : array<string|int, mixed> + + +
                                                                                                                                                                                                                    Parameters
                                                                                                                                                                                                                    +
                                                                                                                                                                                                                    +
                                                                                                                                                                                                                    + $attribute + : string +
                                                                                                                                                                                                                    +
                                                                                                                                                                                                                    + +
                                                                                                                                                                                                                    +
                                                                                                                                                                                                                    + $value + : mixed +
                                                                                                                                                                                                                    +
                                                                                                                                                                                                                    + +
                                                                                                                                                                                                                    +
                                                                                                                                                                                                                    + + + +
                                                                                                                                                                                                                    Return values
                                                                                                                                                                                                                    + array<string|int, mixed> + — + + +
                                                                                                                                                                                                                    +
                                                                                                                                                                                                                    +

                                                                                                                                                                                                                    + validationContainSymbol() + +

                                                                                                                                                                                                                    + + +

                                                                                                                                                                                                                    Make ContainSymbol validator

                                                                                                                                                                                                                    + + + private + static validationContainSymbol(string $attribute, mixed $value) : array<string|int, mixed> + + +
                                                                                                                                                                                                                    Parameters
                                                                                                                                                                                                                    +
                                                                                                                                                                                                                    +
                                                                                                                                                                                                                    + $attribute + : string +
                                                                                                                                                                                                                    +
                                                                                                                                                                                                                    + +
                                                                                                                                                                                                                    +
                                                                                                                                                                                                                    + $value + : mixed +
                                                                                                                                                                                                                    +
                                                                                                                                                                                                                    + +
                                                                                                                                                                                                                    +
                                                                                                                                                                                                                    + + + +
                                                                                                                                                                                                                    Return values
                                                                                                                                                                                                                    + array<string|int, mixed> + — + + +
                                                                                                                                                                                                                    +
                                                                                                                                                                                                                    +

                                                                                                                                                                                                                    + validationDate() + +

                                                                                                                                                                                                                    + + +

                                                                                                                                                                                                                    Make Date validator

                                                                                                                                                                                                                    + + + private + static validationDate(string $attribute, mixed $value) : array<string|int, mixed> + + +
                                                                                                                                                                                                                    Parameters
                                                                                                                                                                                                                    +
                                                                                                                                                                                                                    +
                                                                                                                                                                                                                    + $attribute + : string +
                                                                                                                                                                                                                    +
                                                                                                                                                                                                                    + +
                                                                                                                                                                                                                    +
                                                                                                                                                                                                                    + $value + : mixed +
                                                                                                                                                                                                                    +
                                                                                                                                                                                                                    + +
                                                                                                                                                                                                                    +
                                                                                                                                                                                                                    + + + +
                                                                                                                                                                                                                    Return values
                                                                                                                                                                                                                    + array<string|int, mixed> + — + + +
                                                                                                                                                                                                                    +
                                                                                                                                                                                                                    +

                                                                                                                                                                                                                    + validationDateFormat() + +

                                                                                                                                                                                                                    + + +

                                                                                                                                                                                                                    Make DateFormat validator

                                                                                                                                                                                                                    + + + private + static validationDateFormat(string $attribute, mixed $value, array<string|int, mixed> $params) : array<string|int, mixed> + + +
                                                                                                                                                                                                                    Parameters
                                                                                                                                                                                                                    +
                                                                                                                                                                                                                    +
                                                                                                                                                                                                                    + $attribute + : string +
                                                                                                                                                                                                                    +
                                                                                                                                                                                                                    + +
                                                                                                                                                                                                                    +
                                                                                                                                                                                                                    + $value + : mixed +
                                                                                                                                                                                                                    +
                                                                                                                                                                                                                    + +
                                                                                                                                                                                                                    +
                                                                                                                                                                                                                    + $params + : array<string|int, mixed> +
                                                                                                                                                                                                                    +
                                                                                                                                                                                                                    + +
                                                                                                                                                                                                                    +
                                                                                                                                                                                                                    + + + +
                                                                                                                                                                                                                    Return values
                                                                                                                                                                                                                    + array<string|int, mixed> + — + + +
                                                                                                                                                                                                                    +
                                                                                                                                                                                                                    +

                                                                                                                                                                                                                    + validationEmail() + +

                                                                                                                                                                                                                    + + +

                                                                                                                                                                                                                    Make Email validator

                                                                                                                                                                                                                    + + + private + static validationEmail(string $attribute, mixed $value) : array<string|int, mixed> + + +
                                                                                                                                                                                                                    Parameters
                                                                                                                                                                                                                    +
                                                                                                                                                                                                                    +
                                                                                                                                                                                                                    + $attribute + : string +
                                                                                                                                                                                                                    +
                                                                                                                                                                                                                    + +
                                                                                                                                                                                                                    +
                                                                                                                                                                                                                    + $value + : mixed +
                                                                                                                                                                                                                    +
                                                                                                                                                                                                                    + +
                                                                                                                                                                                                                    +
                                                                                                                                                                                                                    + + + +
                                                                                                                                                                                                                    Return values
                                                                                                                                                                                                                    + array<string|int, mixed> + — + + +
                                                                                                                                                                                                                    +
                                                                                                                                                                                                                    +

                                                                                                                                                                                                                    + validationInt() + +

                                                                                                                                                                                                                    + + +

                                                                                                                                                                                                                    Make Int validator

                                                                                                                                                                                                                    + + + private + static validationInt(string $attribute, mixed $value) : array<string|int, mixed> + + +
                                                                                                                                                                                                                    Parameters
                                                                                                                                                                                                                    +
                                                                                                                                                                                                                    +
                                                                                                                                                                                                                    + $attribute + : string +
                                                                                                                                                                                                                    +
                                                                                                                                                                                                                    + +
                                                                                                                                                                                                                    +
                                                                                                                                                                                                                    + $value + : mixed +
                                                                                                                                                                                                                    +
                                                                                                                                                                                                                    + +
                                                                                                                                                                                                                    +
                                                                                                                                                                                                                    + + + +
                                                                                                                                                                                                                    Return values
                                                                                                                                                                                                                    + array<string|int, mixed> + — + + +
                                                                                                                                                                                                                    +
                                                                                                                                                                                                                    +

                                                                                                                                                                                                                    + validationMax() + +

                                                                                                                                                                                                                    + + +

                                                                                                                                                                                                                    Make Max validator

                                                                                                                                                                                                                    + + + private + static validationMax(string $attribute, mixed $value, array<string|int, mixed> $params) : array<string|int, mixed> + + +
                                                                                                                                                                                                                    Parameters
                                                                                                                                                                                                                    +
                                                                                                                                                                                                                    +
                                                                                                                                                                                                                    + $attribute + : string +
                                                                                                                                                                                                                    +
                                                                                                                                                                                                                    + +
                                                                                                                                                                                                                    +
                                                                                                                                                                                                                    + $value + : mixed +
                                                                                                                                                                                                                    +
                                                                                                                                                                                                                    + +
                                                                                                                                                                                                                    +
                                                                                                                                                                                                                    + $params + : array<string|int, mixed> +
                                                                                                                                                                                                                    +
                                                                                                                                                                                                                    + +
                                                                                                                                                                                                                    +
                                                                                                                                                                                                                    + + + +
                                                                                                                                                                                                                    Return values
                                                                                                                                                                                                                    + array<string|int, mixed> + — + + +
                                                                                                                                                                                                                    +
                                                                                                                                                                                                                    +

                                                                                                                                                                                                                    + validationMin() + +

                                                                                                                                                                                                                    + + +

                                                                                                                                                                                                                    Make Min validator

                                                                                                                                                                                                                    + + + private + static validationMin(string $attribute, mixed $value, array<string|int, mixed> $params) : array<string|int, mixed> + + +
                                                                                                                                                                                                                    Parameters
                                                                                                                                                                                                                    +
                                                                                                                                                                                                                    +
                                                                                                                                                                                                                    + $attribute + : string +
                                                                                                                                                                                                                    +
                                                                                                                                                                                                                    + +
                                                                                                                                                                                                                    +
                                                                                                                                                                                                                    + $value + : mixed +
                                                                                                                                                                                                                    +
                                                                                                                                                                                                                    + +
                                                                                                                                                                                                                    +
                                                                                                                                                                                                                    + $params + : array<string|int, mixed> +
                                                                                                                                                                                                                    +
                                                                                                                                                                                                                    + +
                                                                                                                                                                                                                    +
                                                                                                                                                                                                                    + + + +
                                                                                                                                                                                                                    Return values
                                                                                                                                                                                                                    + array<string|int, mixed> + — + + +
                                                                                                                                                                                                                    +
                                                                                                                                                                                                                    +

                                                                                                                                                                                                                    + validationMixedCase() + +

                                                                                                                                                                                                                    + + +

                                                                                                                                                                                                                    Make MixedCase validator

                                                                                                                                                                                                                    + + + private + static validationMixedCase(string $attribute, mixed $value) : array<string|int, mixed> + + +
                                                                                                                                                                                                                    Parameters
                                                                                                                                                                                                                    +
                                                                                                                                                                                                                    +
                                                                                                                                                                                                                    + $attribute + : string +
                                                                                                                                                                                                                    +
                                                                                                                                                                                                                    + +
                                                                                                                                                                                                                    +
                                                                                                                                                                                                                    + $value + : mixed +
                                                                                                                                                                                                                    +
                                                                                                                                                                                                                    + +
                                                                                                                                                                                                                    +
                                                                                                                                                                                                                    + + + +
                                                                                                                                                                                                                    Return values
                                                                                                                                                                                                                    + array<string|int, mixed> + — + + +
                                                                                                                                                                                                                    +
                                                                                                                                                                                                                    +

                                                                                                                                                                                                                    + validationNullable() + +

                                                                                                                                                                                                                    + + +

                                                                                                                                                                                                                    Make Nullable validator

                                                                                                                                                                                                                    + + + private + static validationNullable(string $attribute, mixed $value) : array<string|int, mixed> + + +
                                                                                                                                                                                                                    Parameters
                                                                                                                                                                                                                    +
                                                                                                                                                                                                                    +
                                                                                                                                                                                                                    + $attribute + : string +
                                                                                                                                                                                                                    +
                                                                                                                                                                                                                    + +
                                                                                                                                                                                                                    +
                                                                                                                                                                                                                    + $value + : mixed +
                                                                                                                                                                                                                    +
                                                                                                                                                                                                                    + +
                                                                                                                                                                                                                    +
                                                                                                                                                                                                                    + + + +
                                                                                                                                                                                                                    Return values
                                                                                                                                                                                                                    + array<string|int, mixed> + — + + +
                                                                                                                                                                                                                    +
                                                                                                                                                                                                                    +

                                                                                                                                                                                                                    + validationRequired() + +

                                                                                                                                                                                                                    + + +

                                                                                                                                                                                                                    Make Required validator

                                                                                                                                                                                                                    + + + private + static validationRequired(string $attribute, array<string|int, mixed> $data) : array<string|int, mixed> + + +
                                                                                                                                                                                                                    Parameters
                                                                                                                                                                                                                    +
                                                                                                                                                                                                                    +
                                                                                                                                                                                                                    + $attribute + : string +
                                                                                                                                                                                                                    +
                                                                                                                                                                                                                    + +
                                                                                                                                                                                                                    +
                                                                                                                                                                                                                    + $data + : array<string|int, mixed> +
                                                                                                                                                                                                                    +
                                                                                                                                                                                                                    + +
                                                                                                                                                                                                                    +
                                                                                                                                                                                                                    + + + +
                                                                                                                                                                                                                    Return values
                                                                                                                                                                                                                    + array<string|int, mixed> + — + + +
                                                                                                                                                                                                                    +
                                                                                                                                                                                                                    +

                                                                                                                                                                                                                    + validationSometimes() + +

                                                                                                                                                                                                                    + + +

                                                                                                                                                                                                                    Make Sometimes validator

                                                                                                                                                                                                                    + + + private + static validationSometimes(string $attribute, mixed $data) : array<string|int, mixed> + + +
                                                                                                                                                                                                                    Parameters
                                                                                                                                                                                                                    +
                                                                                                                                                                                                                    +
                                                                                                                                                                                                                    + $attribute + : string +
                                                                                                                                                                                                                    +
                                                                                                                                                                                                                    + +
                                                                                                                                                                                                                    +
                                                                                                                                                                                                                    + $data + : mixed +
                                                                                                                                                                                                                    +
                                                                                                                                                                                                                    + +
                                                                                                                                                                                                                    +
                                                                                                                                                                                                                    + + + +
                                                                                                                                                                                                                    Return values
                                                                                                                                                                                                                    + array<string|int, mixed> + — + + +
                                                                                                                                                                                                                    +
                                                                                                                                                                                                                    +

                                                                                                                                                                                                                    + validationString() + +

                                                                                                                                                                                                                    + + +

                                                                                                                                                                                                                    Make String validator

                                                                                                                                                                                                                    + + + private + static validationString(string $attribute, mixed $value) : array<string|int, mixed> + + +
                                                                                                                                                                                                                    Parameters
                                                                                                                                                                                                                    +
                                                                                                                                                                                                                    +
                                                                                                                                                                                                                    + $attribute + : string +
                                                                                                                                                                                                                    +
                                                                                                                                                                                                                    + +
                                                                                                                                                                                                                    +
                                                                                                                                                                                                                    + $value + : mixed +
                                                                                                                                                                                                                    +
                                                                                                                                                                                                                    + +
                                                                                                                                                                                                                    +
                                                                                                                                                                                                                    + + + +
                                                                                                                                                                                                                    Return values
                                                                                                                                                                                                                    + array<string|int, mixed> + — + + +
                                                                                                                                                                                                                    +
                                                                                                                                                                                                                    +

                                                                                                                                                                                                                    + validationUuid() + +

                                                                                                                                                                                                                    + + +

                                                                                                                                                                                                                    Make Uuid validator

                                                                                                                                                                                                                    + + + private + static validationUuid(string $attribute, mixed $value) : array<string|int, mixed> + + +
                                                                                                                                                                                                                    Parameters
                                                                                                                                                                                                                    +
                                                                                                                                                                                                                    +
                                                                                                                                                                                                                    + $attribute + : string +
                                                                                                                                                                                                                    +
                                                                                                                                                                                                                    + +
                                                                                                                                                                                                                    +
                                                                                                                                                                                                                    + $value + : mixed +
                                                                                                                                                                                                                    +
                                                                                                                                                                                                                    + +
                                                                                                                                                                                                                    +
                                                                                                                                                                                                                    + + + +
                                                                                                                                                                                                                    Return values
                                                                                                                                                                                                                    + array<string|int, mixed> + — + + +
                                                                                                                                                                                                                    +
                                                                                                                                                                                                                    + + + + +
                                                                                                                                                                                                                    +
                                                                                                                                                                                                                    +
                                                                                                                                                                                                                    +
                                                                                                                                                                                                                    +

                                                                                                                                                                                                                    Search results

                                                                                                                                                                                                                    + +
                                                                                                                                                                                                                    +
                                                                                                                                                                                                                    +
                                                                                                                                                                                                                      +
                                                                                                                                                                                                                      +
                                                                                                                                                                                                                      +
                                                                                                                                                                                                                      +
                                                                                                                                                                                                                      +
                                                                                                                                                                                                                      + + +
                                                                                                                                                                                                                      + + + + + + + + diff --git a/app/Lib/vendor/crm-client-3.0.6/documentation/classes/LDC-LDCCRM-WordPress-WPCrm.html b/app/Lib/vendor/crm-client-3.0.6/documentation/classes/LDC-LDCCRM-WordPress-WPCrm.html new file mode 100644 index 0000000..e404518 --- /dev/null +++ b/app/Lib/vendor/crm-client-3.0.6/documentation/classes/LDC-LDCCRM-WordPress-WPCrm.html @@ -0,0 +1,2033 @@ + + + + + CRM V2 + + + + + + + + + + + + + + + + + + + +
                                                                                                                                                                                                                      +

                                                                                                                                                                                                                      CRM V2

                                                                                                                                                                                                                      + + + + + +
                                                                                                                                                                                                                      + +
                                                                                                                                                                                                                      +
                                                                                                                                                                                                                      + + + + +
                                                                                                                                                                                                                      + + +
                                                                                                                                                                                                                      +

                                                                                                                                                                                                                      + WPCrm + + +
                                                                                                                                                                                                                      + in package + +
                                                                                                                                                                                                                      + + +

                                                                                                                                                                                                                      + + + +

                                                                                                                                                                                                                      Class de gestion des users en session avec Wordpress

                                                                                                                                                                                                                      + + + +
                                                                                                                                                                                                                      + Tags + +
                                                                                                                                                                                                                      +
                                                                                                                                                                                                                      +
                                                                                                                                                                                                                      + category +
                                                                                                                                                                                                                      +
                                                                                                                                                                                                                      + +

                                                                                                                                                                                                                      API

                                                                                                                                                                                                                      +
                                                                                                                                                                                                                      + +
                                                                                                                                                                                                                      +
                                                                                                                                                                                                                      + subpackage +
                                                                                                                                                                                                                      +
                                                                                                                                                                                                                      + +

                                                                                                                                                                                                                      Wordpress

                                                                                                                                                                                                                      +
                                                                                                                                                                                                                      + +
                                                                                                                                                                                                                      +
                                                                                                                                                                                                                      + author +
                                                                                                                                                                                                                      +
                                                                                                                                                                                                                      + +

                                                                                                                                                                                                                      Jérémy Munsch jeremy.munsch@ldc.fr

                                                                                                                                                                                                                      +
                                                                                                                                                                                                                      + +
                                                                                                                                                                                                                      +
                                                                                                                                                                                                                      + license +
                                                                                                                                                                                                                      +
                                                                                                                                                                                                                      + +

                                                                                                                                                                                                                      MIT https://opensource.org/licenses/MIT

                                                                                                                                                                                                                      +
                                                                                                                                                                                                                      + +
                                                                                                                                                                                                                      +
                                                                                                                                                                                                                      + link +
                                                                                                                                                                                                                      +
                                                                                                                                                                                                                      + / + +
                                                                                                                                                                                                                      +
                                                                                                                                                                                                                      + + + + + + +

                                                                                                                                                                                                                      + Table of Contents + +

                                                                                                                                                                                                                      + +
                                                                                                                                                                                                                      +
                                                                                                                                                                                                                      + $api + +  : CrmApiV2 +
                                                                                                                                                                                                                      +
                                                                                                                                                                                                                      The user object
                                                                                                                                                                                                                      + +
                                                                                                                                                                                                                      + $user + +  : WPCrmUser +
                                                                                                                                                                                                                      +
                                                                                                                                                                                                                      The user object
                                                                                                                                                                                                                      + +
                                                                                                                                                                                                                      + $sessionDestroyed + +  : bool +
                                                                                                                                                                                                                      +
                                                                                                                                                                                                                      The session live status
                                                                                                                                                                                                                      + +
                                                                                                                                                                                                                      + $sessionKey + +  : string +
                                                                                                                                                                                                                      +
                                                                                                                                                                                                                      The session key name
                                                                                                                                                                                                                      + +
                                                                                                                                                                                                                      + activateUser() + +  : bool +
                                                                                                                                                                                                                      +
                                                                                                                                                                                                                      Toggle the current user optin value +on the current user and the crm
                                                                                                                                                                                                                      + +
                                                                                                                                                                                                                      + check() + +  : bool +
                                                                                                                                                                                                                      +
                                                                                                                                                                                                                      Check if the user is logged in.
                                                                                                                                                                                                                      + +
                                                                                                                                                                                                                      + deleteUser() + +  : bool +
                                                                                                                                                                                                                      +
                                                                                                                                                                                                                      Delete current customer from +the local database and the crm
                                                                                                                                                                                                                      + +
                                                                                                                                                                                                                      + forceLogin() + +  : WPCrmUser|null +
                                                                                                                                                                                                                      +
                                                                                                                                                                                                                      Manually login a user +If self::$user is already set.
                                                                                                                                                                                                                      + +
                                                                                                                                                                                                                      + getNewUser() + +  : WPCrmUser +
                                                                                                                                                                                                                      +
                                                                                                                                                                                                                      Generate a new user
                                                                                                                                                                                                                      + +
                                                                                                                                                                                                                      + getUser() + +  : WPCrmUser|null +
                                                                                                                                                                                                                      +
                                                                                                                                                                                                                      Get the current user +return null if the user is not logged in
                                                                                                                                                                                                                      + +
                                                                                                                                                                                                                      + getUserFromApi() + +  : WPCrmUser|false +
                                                                                                                                                                                                                      +
                                                                                                                                                                                                                      Get the current user +return api response code if an error occurs
                                                                                                                                                                                                                      + +
                                                                                                                                                                                                                      + getUserFromTable() + +  : array<string|int, mixed>|null +
                                                                                                                                                                                                                      +
                                                                                                                                                                                                                      Get a customer from table
                                                                                                                                                                                                                      + +
                                                                                                                                                                                                                      + getUserFromTableByEmail() + +  : array<string|int, mixed>|null +
                                                                                                                                                                                                                      +
                                                                                                                                                                                                                      Get a customer from table by an email
                                                                                                                                                                                                                      + +
                                                                                                                                                                                                                      + getUserFromTableByUuid() + +  : array<string|int, mixed>|null +
                                                                                                                                                                                                                      +
                                                                                                                                                                                                                      Get a customer from table by an email
                                                                                                                                                                                                                      + +
                                                                                                                                                                                                                      + login() + +  : bool +
                                                                                                                                                                                                                      +
                                                                                                                                                                                                                      Try to login with CRM API +A session will be started if credentials are valid.
                                                                                                                                                                                                                      + +
                                                                                                                                                                                                                      + logout() + +  : void +
                                                                                                                                                                                                                      +
                                                                                                                                                                                                                      Destroy the customer from session +and therefore logout
                                                                                                                                                                                                                      + +
                                                                                                                                                                                                                      + saveUser() + +  : bool +
                                                                                                                                                                                                                      +
                                                                                                                                                                                                                      Save current customer to +the local database and on crm
                                                                                                                                                                                                                      + +
                                                                                                                                                                                                                      + setSingleOptin() + +  : bool +
                                                                                                                                                                                                                      +
                                                                                                                                                                                                                      Set the single optin status for an email +on the crm
                                                                                                                                                                                                                      + +
                                                                                                                                                                                                                      + toggleUserOptin() + +  : bool +
                                                                                                                                                                                                                      +
                                                                                                                                                                                                                      Toggle the current user optin value +on the current user and the crm
                                                                                                                                                                                                                      + +
                                                                                                                                                                                                                      + unsetActiveUser() + +  : void +
                                                                                                                                                                                                                      +
                                                                                                                                                                                                                      Remove active user +to prevent WPCrm::check to return true
                                                                                                                                                                                                                      + +
                                                                                                                                                                                                                      + bootSessionIfNeeded() + +  : void +
                                                                                                                                                                                                                      +
                                                                                                                                                                                                                      Boot the php session if needed
                                                                                                                                                                                                                      + +
                                                                                                                                                                                                                      + deleteUserFromTable() + +  : int +
                                                                                                                                                                                                                      +
                                                                                                                                                                                                                      Save or update the user to the table
                                                                                                                                                                                                                      + +
                                                                                                                                                                                                                      + getCustomer() + +  : Customer|null +
                                                                                                                                                                                                                      +
                                                                                                                                                                                                                      Get all customer infos
                                                                                                                                                                                                                      + +
                                                                                                                                                                                                                      + getWpDb() + +  : object +
                                                                                                                                                                                                                      +
                                                                                                                                                                                                                      Get WP 'pdo instance'
                                                                                                                                                                                                                      + +
                                                                                                                                                                                                                      + initLdcApi() + +  : CrmApiV2 +
                                                                                                                                                                                                                      +
                                                                                                                                                                                                                      Get the initialized API object
                                                                                                                                                                                                                      + +
                                                                                                                                                                                                                      + loginUserWithApi() + +  : bool +
                                                                                                                                                                                                                      +
                                                                                                                                                                                                                      Check customer credentials using the CRM.
                                                                                                                                                                                                                      + +
                                                                                                                                                                                                                      + makeApiV2Call() + +  : mixed|false +
                                                                                                                                                                                                                      +
                                                                                                                                                                                                                      Make a call using apiV2
                                                                                                                                                                                                                      + +
                                                                                                                                                                                                                      + query() + +  : int|bool +
                                                                                                                                                                                                                      +
                                                                                                                                                                                                                      Query in DB
                                                                                                                                                                                                                      + +
                                                                                                                                                                                                                      + saveOrUpdateUserToTable() + +  : int +
                                                                                                                                                                                                                      +
                                                                                                                                                                                                                      Save or update the user to the table
                                                                                                                                                                                                                      + +
                                                                                                                                                                                                                      + setUser() + +  : void +
                                                                                                                                                                                                                      +
                                                                                                                                                                                                                      Create a user +stores it to the session +and finally saves it to the database if it does not exists
                                                                                                                                                                                                                      + +
                                                                                                                                                                                                                      + + + + + + +
                                                                                                                                                                                                                      +

                                                                                                                                                                                                                      + Properties + +

                                                                                                                                                                                                                      +
                                                                                                                                                                                                                      +

                                                                                                                                                                                                                      + $api + + + +

                                                                                                                                                                                                                      + + +

                                                                                                                                                                                                                      The user object

                                                                                                                                                                                                                      + + + protected + static CrmApiV2 + $api + = null + + + + + +
                                                                                                                                                                                                                      +
                                                                                                                                                                                                                      +

                                                                                                                                                                                                                      + $user + + + +

                                                                                                                                                                                                                      + + +

                                                                                                                                                                                                                      The user object

                                                                                                                                                                                                                      + + + protected + static WPCrmUser + $user + = null + + + + + +
                                                                                                                                                                                                                      +
                                                                                                                                                                                                                      +

                                                                                                                                                                                                                      + $sessionDestroyed + + + +

                                                                                                                                                                                                                      + + +

                                                                                                                                                                                                                      The session live status

                                                                                                                                                                                                                      + + + private + static bool + $sessionDestroyed + = false + + + + + +
                                                                                                                                                                                                                      +
                                                                                                                                                                                                                      +

                                                                                                                                                                                                                      + $sessionKey + + + +

                                                                                                                                                                                                                      + + +

                                                                                                                                                                                                                      The session key name

                                                                                                                                                                                                                      + + + private + static string + $sessionKey + = null + + + + + +
                                                                                                                                                                                                                      +
                                                                                                                                                                                                                      + +
                                                                                                                                                                                                                      +

                                                                                                                                                                                                                      + Methods + +

                                                                                                                                                                                                                      +
                                                                                                                                                                                                                      +

                                                                                                                                                                                                                      + activateUser() + +

                                                                                                                                                                                                                      + + +

                                                                                                                                                                                                                      Toggle the current user optin value +on the current user and the crm

                                                                                                                                                                                                                      + + + public + static activateUser() : bool + + + + +
                                                                                                                                                                                                                      + Tags + +
                                                                                                                                                                                                                      +
                                                                                                                                                                                                                      +
                                                                                                                                                                                                                      + throws +
                                                                                                                                                                                                                      +
                                                                                                                                                                                                                      + ValidationException + +

                                                                                                                                                                                                                      If a customer's hashcode could not be validated.

                                                                                                                                                                                                                      +
                                                                                                                                                                                                                      + +
                                                                                                                                                                                                                      +
                                                                                                                                                                                                                      + throws +
                                                                                                                                                                                                                      +
                                                                                                                                                                                                                      + CrmException + +

                                                                                                                                                                                                                      If an error occurs on server side or on getting response.

                                                                                                                                                                                                                      +
                                                                                                                                                                                                                      + +
                                                                                                                                                                                                                      +
                                                                                                                                                                                                                      + throws +
                                                                                                                                                                                                                      +
                                                                                                                                                                                                                      + ApiErrorException + +

                                                                                                                                                                                                                      If any error or \LDC\LDCCRM\Enums\ApiError occurs. +Possibles are : - modelNotFound, If this customer hashcode could not be found. +- customerAlreadyActive, It the customer is already activated.

                                                                                                                                                                                                                      +
                                                                                                                                                                                                                      + +
                                                                                                                                                                                                                      +
                                                                                                                                                                                                                      + +
                                                                                                                                                                                                                      Return values
                                                                                                                                                                                                                      + bool + — +

                                                                                                                                                                                                                      True if the operation succeeded.

                                                                                                                                                                                                                      +
                                                                                                                                                                                                                      + + +
                                                                                                                                                                                                                      +
                                                                                                                                                                                                                      +

                                                                                                                                                                                                                      + check() + +

                                                                                                                                                                                                                      + + +

                                                                                                                                                                                                                      Check if the user is logged in.

                                                                                                                                                                                                                      + + + public + static check() : bool + +

                                                                                                                                                                                                                      This means he has an active valid session.

                                                                                                                                                                                                                      +
                                                                                                                                                                                                                      + + + + +
                                                                                                                                                                                                                      Return values
                                                                                                                                                                                                                      + bool + — + + +
                                                                                                                                                                                                                      +
                                                                                                                                                                                                                      +

                                                                                                                                                                                                                      + deleteUser() + +

                                                                                                                                                                                                                      + + +

                                                                                                                                                                                                                      Delete current customer from +the local database and the crm

                                                                                                                                                                                                                      + + + public + static deleteUser() : bool + + + + +
                                                                                                                                                                                                                      + Tags + +
                                                                                                                                                                                                                      +
                                                                                                                                                                                                                      +
                                                                                                                                                                                                                      + throws +
                                                                                                                                                                                                                      +
                                                                                                                                                                                                                      + CrmException + +

                                                                                                                                                                                                                      If a critical error occured.

                                                                                                                                                                                                                      +
                                                                                                                                                                                                                      + +
                                                                                                                                                                                                                      +
                                                                                                                                                                                                                      + throws +
                                                                                                                                                                                                                      +
                                                                                                                                                                                                                      + ApiErrorException + +

                                                                                                                                                                                                                      If any error or \LDC\LDCCRM\Enums\ApiError occurs. +Possibles are : - modelNotFound, If this customer hashcode could not be found.

                                                                                                                                                                                                                      +
                                                                                                                                                                                                                      + +
                                                                                                                                                                                                                      +
                                                                                                                                                                                                                      + phpcs:ignore +
                                                                                                                                                                                                                      +
                                                                                                                                                                                                                      + +

                                                                                                                                                                                                                      Squiz.Commenting.FunctionCommentThrowTag.WrongNumber

                                                                                                                                                                                                                      +
                                                                                                                                                                                                                      + +
                                                                                                                                                                                                                      +
                                                                                                                                                                                                                      + +
                                                                                                                                                                                                                      Return values
                                                                                                                                                                                                                      + bool + — +

                                                                                                                                                                                                                      true if the operation succeeded

                                                                                                                                                                                                                      +
                                                                                                                                                                                                                      + + +
                                                                                                                                                                                                                      +
                                                                                                                                                                                                                      +

                                                                                                                                                                                                                      + forceLogin() + +

                                                                                                                                                                                                                      + + +

                                                                                                                                                                                                                      Manually login a user +If self::$user is already set.

                                                                                                                                                                                                                      + + + public + static forceLogin() : WPCrmUser|null + + + + + +
                                                                                                                                                                                                                      Return values
                                                                                                                                                                                                                      + WPCrmUser|null + — + + +
                                                                                                                                                                                                                      +
                                                                                                                                                                                                                      +

                                                                                                                                                                                                                      + getNewUser() + +

                                                                                                                                                                                                                      + + +

                                                                                                                                                                                                                      Generate a new user

                                                                                                                                                                                                                      + + + public + static getNewUser() : WPCrmUser + + + + + +
                                                                                                                                                                                                                      Return values
                                                                                                                                                                                                                      + WPCrmUser + — + + +
                                                                                                                                                                                                                      +
                                                                                                                                                                                                                      +

                                                                                                                                                                                                                      + getUser() + +

                                                                                                                                                                                                                      + + +

                                                                                                                                                                                                                      Get the current user +return null if the user is not logged in

                                                                                                                                                                                                                      + + + public + static getUser() : WPCrmUser|null + + + + + +
                                                                                                                                                                                                                      Return values
                                                                                                                                                                                                                      + WPCrmUser|null + — + + +
                                                                                                                                                                                                                      +
                                                                                                                                                                                                                      +

                                                                                                                                                                                                                      + getUserFromApi() + +

                                                                                                                                                                                                                      + + +

                                                                                                                                                                                                                      Get the current user +return api response code if an error occurs

                                                                                                                                                                                                                      + + + public + static getUserFromApi(string $identification) : WPCrmUser|false + + +
                                                                                                                                                                                                                      Parameters
                                                                                                                                                                                                                      +
                                                                                                                                                                                                                      +
                                                                                                                                                                                                                      + $identification + : string +
                                                                                                                                                                                                                      +
                                                                                                                                                                                                                      +

                                                                                                                                                                                                                      The customer hashcode or email.

                                                                                                                                                                                                                      +
                                                                                                                                                                                                                      + +
                                                                                                                                                                                                                      +
                                                                                                                                                                                                                      + + +
                                                                                                                                                                                                                      + Tags + +
                                                                                                                                                                                                                      +
                                                                                                                                                                                                                      +
                                                                                                                                                                                                                      + throws +
                                                                                                                                                                                                                      +
                                                                                                                                                                                                                      + CrmException + +

                                                                                                                                                                                                                      If an error occurs on server side or on getting response.

                                                                                                                                                                                                                      +
                                                                                                                                                                                                                      + +
                                                                                                                                                                                                                      +
                                                                                                                                                                                                                      + throws +
                                                                                                                                                                                                                      +
                                                                                                                                                                                                                      + ApiErrorException + +

                                                                                                                                                                                                                      If any error or \LDC\LDCCRM\Enums\ApiError occurs.

                                                                                                                                                                                                                      +
                                                                                                                                                                                                                      + +
                                                                                                                                                                                                                      +
                                                                                                                                                                                                                      + phpcs:ignore +
                                                                                                                                                                                                                      +
                                                                                                                                                                                                                      + +

                                                                                                                                                                                                                      Squiz.Commenting.FunctionCommentThrowTag.WrongNumber

                                                                                                                                                                                                                      +
                                                                                                                                                                                                                      + +
                                                                                                                                                                                                                      +
                                                                                                                                                                                                                      + +
                                                                                                                                                                                                                      Return values
                                                                                                                                                                                                                      + WPCrmUser|false + — + + +
                                                                                                                                                                                                                      +
                                                                                                                                                                                                                      +

                                                                                                                                                                                                                      + getUserFromTable() + +

                                                                                                                                                                                                                      + + +

                                                                                                                                                                                                                      Get a customer from table

                                                                                                                                                                                                                      + + + public + static getUserFromTable(string $hashcode) : array<string|int, mixed>|null + + +
                                                                                                                                                                                                                      Parameters
                                                                                                                                                                                                                      +
                                                                                                                                                                                                                      +
                                                                                                                                                                                                                      + $hashcode + : string +
                                                                                                                                                                                                                      +
                                                                                                                                                                                                                      +

                                                                                                                                                                                                                      The customer hashcode.

                                                                                                                                                                                                                      +
                                                                                                                                                                                                                      + +
                                                                                                                                                                                                                      +
                                                                                                                                                                                                                      + + + +
                                                                                                                                                                                                                      Return values
                                                                                                                                                                                                                      + array<string|int, mixed>|null + — +

                                                                                                                                                                                                                      Database query result in format specified by $output or null on failure.

                                                                                                                                                                                                                      +
                                                                                                                                                                                                                      + + +
                                                                                                                                                                                                                      +
                                                                                                                                                                                                                      +

                                                                                                                                                                                                                      + getUserFromTableByEmail() + +

                                                                                                                                                                                                                      + + +

                                                                                                                                                                                                                      Get a customer from table by an email

                                                                                                                                                                                                                      + + + public + static getUserFromTableByEmail(string $email) : array<string|int, mixed>|null + + +
                                                                                                                                                                                                                      Parameters
                                                                                                                                                                                                                      +
                                                                                                                                                                                                                      +
                                                                                                                                                                                                                      + $email + : string +
                                                                                                                                                                                                                      +
                                                                                                                                                                                                                      +

                                                                                                                                                                                                                      The customer email.

                                                                                                                                                                                                                      +
                                                                                                                                                                                                                      + +
                                                                                                                                                                                                                      +
                                                                                                                                                                                                                      + + + +
                                                                                                                                                                                                                      Return values
                                                                                                                                                                                                                      + array<string|int, mixed>|null + — +

                                                                                                                                                                                                                      Database query result in format specified by $output or null on failure.

                                                                                                                                                                                                                      +
                                                                                                                                                                                                                      + + +
                                                                                                                                                                                                                      +
                                                                                                                                                                                                                      +

                                                                                                                                                                                                                      + getUserFromTableByUuid() + +

                                                                                                                                                                                                                      + + +

                                                                                                                                                                                                                      Get a customer from table by an email

                                                                                                                                                                                                                      + + + public + static getUserFromTableByUuid(string $uuid) : array<string|int, mixed>|null + + +
                                                                                                                                                                                                                      Parameters
                                                                                                                                                                                                                      +
                                                                                                                                                                                                                      +
                                                                                                                                                                                                                      + $uuid + : string +
                                                                                                                                                                                                                      +
                                                                                                                                                                                                                      +

                                                                                                                                                                                                                      The customer transaction uuid.

                                                                                                                                                                                                                      +
                                                                                                                                                                                                                      + +
                                                                                                                                                                                                                      +
                                                                                                                                                                                                                      + + + +
                                                                                                                                                                                                                      Return values
                                                                                                                                                                                                                      + array<string|int, mixed>|null + — +

                                                                                                                                                                                                                      Database query result in format specified by $output or null on failure.

                                                                                                                                                                                                                      +
                                                                                                                                                                                                                      + + +
                                                                                                                                                                                                                      +
                                                                                                                                                                                                                      +

                                                                                                                                                                                                                      + login() + +

                                                                                                                                                                                                                      + + +

                                                                                                                                                                                                                      Try to login with CRM API +A session will be started if credentials are valid.

                                                                                                                                                                                                                      + + + public + static login(string $email, string $password) : bool + + +
                                                                                                                                                                                                                      Parameters
                                                                                                                                                                                                                      +
                                                                                                                                                                                                                      +
                                                                                                                                                                                                                      + $email + : string +
                                                                                                                                                                                                                      +
                                                                                                                                                                                                                      +

                                                                                                                                                                                                                      The customer email.

                                                                                                                                                                                                                      +
                                                                                                                                                                                                                      + +
                                                                                                                                                                                                                      +
                                                                                                                                                                                                                      + $password + : string +
                                                                                                                                                                                                                      +
                                                                                                                                                                                                                      +

                                                                                                                                                                                                                      The customer password.

                                                                                                                                                                                                                      +
                                                                                                                                                                                                                      + +
                                                                                                                                                                                                                      +
                                                                                                                                                                                                                      + + +
                                                                                                                                                                                                                      + Tags + +
                                                                                                                                                                                                                      +
                                                                                                                                                                                                                      +
                                                                                                                                                                                                                      + throws +
                                                                                                                                                                                                                      +
                                                                                                                                                                                                                      + CrmException + +

                                                                                                                                                                                                                      If an error occurs on server side or on getting response.

                                                                                                                                                                                                                      +
                                                                                                                                                                                                                      + +
                                                                                                                                                                                                                      +
                                                                                                                                                                                                                      + throws +
                                                                                                                                                                                                                      +
                                                                                                                                                                                                                      + ApiErrorException + +

                                                                                                                                                                                                                      If any error or \LDC\LDCCRM\Enums\ApiError occurs. +Possibles are : - authFailed, If credentials are not valid. +- customerNotActivated, If the account is not activated.

                                                                                                                                                                                                                      +
                                                                                                                                                                                                                      + +
                                                                                                                                                                                                                      +
                                                                                                                                                                                                                      + +
                                                                                                                                                                                                                      Return values
                                                                                                                                                                                                                      + bool + — + + +
                                                                                                                                                                                                                      +
                                                                                                                                                                                                                      +

                                                                                                                                                                                                                      + logout() + +

                                                                                                                                                                                                                      + + +

                                                                                                                                                                                                                      Destroy the customer from session +and therefore logout

                                                                                                                                                                                                                      + + + public + static logout() : void + + + + + +
                                                                                                                                                                                                                      Return values
                                                                                                                                                                                                                      + void + — + + +
                                                                                                                                                                                                                      +
                                                                                                                                                                                                                      +

                                                                                                                                                                                                                      + saveUser() + +

                                                                                                                                                                                                                      + + +

                                                                                                                                                                                                                      Save current customer to +the local database and on crm

                                                                                                                                                                                                                      + + + public + static saveUser() : bool + + + + +
                                                                                                                                                                                                                      + Tags + +
                                                                                                                                                                                                                      +
                                                                                                                                                                                                                      +
                                                                                                                                                                                                                      + throws +
                                                                                                                                                                                                                      +
                                                                                                                                                                                                                      + CrmException + +

                                                                                                                                                                                                                      If a critical error occured.

                                                                                                                                                                                                                      +
                                                                                                                                                                                                                      + +
                                                                                                                                                                                                                      +
                                                                                                                                                                                                                      + throws +
                                                                                                                                                                                                                      +
                                                                                                                                                                                                                      + ApiErrorException + +

                                                                                                                                                                                                                      If any error or \LDC\LDCCRM\Enums\ApiError occurs. +Possibles are : - validationFailed, If provided data is wrong(CRM side). +- modelNotFound, If this customer hashcode could not be found.

                                                                                                                                                                                                                      +
                                                                                                                                                                                                                      + +
                                                                                                                                                                                                                      +
                                                                                                                                                                                                                      + phpcs:ignore +
                                                                                                                                                                                                                      +
                                                                                                                                                                                                                      + +

                                                                                                                                                                                                                      Squiz.Commenting.FunctionCommentThrowTag.WrongNumber

                                                                                                                                                                                                                      +
                                                                                                                                                                                                                      + +
                                                                                                                                                                                                                      +
                                                                                                                                                                                                                      + +
                                                                                                                                                                                                                      Return values
                                                                                                                                                                                                                      + bool + — +

                                                                                                                                                                                                                      true if the operation succeeded false otherwise

                                                                                                                                                                                                                      +
                                                                                                                                                                                                                      + + +
                                                                                                                                                                                                                      +
                                                                                                                                                                                                                      +

                                                                                                                                                                                                                      + setSingleOptin() + +

                                                                                                                                                                                                                      + + +

                                                                                                                                                                                                                      Set the single optin status for an email +on the crm

                                                                                                                                                                                                                      + + + public + static setSingleOptin(string $email, bool $opt_in) : bool + + +
                                                                                                                                                                                                                      Parameters
                                                                                                                                                                                                                      +
                                                                                                                                                                                                                      +
                                                                                                                                                                                                                      + $email + : string +
                                                                                                                                                                                                                      +
                                                                                                                                                                                                                      + +
                                                                                                                                                                                                                      +
                                                                                                                                                                                                                      + $opt_in + : bool +
                                                                                                                                                                                                                      +
                                                                                                                                                                                                                      + +
                                                                                                                                                                                                                      +
                                                                                                                                                                                                                      + + +
                                                                                                                                                                                                                      + Tags + +
                                                                                                                                                                                                                      +
                                                                                                                                                                                                                      +
                                                                                                                                                                                                                      + throws +
                                                                                                                                                                                                                      +
                                                                                                                                                                                                                      + ValidationException + +

                                                                                                                                                                                                                      If a field email could not be validated.

                                                                                                                                                                                                                      +
                                                                                                                                                                                                                      + +
                                                                                                                                                                                                                      +
                                                                                                                                                                                                                      + throws +
                                                                                                                                                                                                                      +
                                                                                                                                                                                                                      + CrmException + +

                                                                                                                                                                                                                      If an error occurs on server side or on getting response.

                                                                                                                                                                                                                      +
                                                                                                                                                                                                                      + +
                                                                                                                                                                                                                      +
                                                                                                                                                                                                                      + throws +
                                                                                                                                                                                                                      +
                                                                                                                                                                                                                      + ApiErrorException + +

                                                                                                                                                                                                                      If any error or \LDC\LDCCRM\Enums\ApiError occurs. +Possibles are : - singleOptinCustomerExists, If a customer exists with this email.

                                                                                                                                                                                                                      +
                                                                                                                                                                                                                      + +
                                                                                                                                                                                                                      +
                                                                                                                                                                                                                      + +
                                                                                                                                                                                                                      Return values
                                                                                                                                                                                                                      + bool + — +

                                                                                                                                                                                                                      true if the operation succeeded false otherwise

                                                                                                                                                                                                                      +
                                                                                                                                                                                                                      + + +
                                                                                                                                                                                                                      +
                                                                                                                                                                                                                      +

                                                                                                                                                                                                                      + toggleUserOptin() + +

                                                                                                                                                                                                                      + + +

                                                                                                                                                                                                                      Toggle the current user optin value +on the current user and the crm

                                                                                                                                                                                                                      + + + public + static toggleUserOptin() : bool + + + + +
                                                                                                                                                                                                                      + Tags + +
                                                                                                                                                                                                                      +
                                                                                                                                                                                                                      +
                                                                                                                                                                                                                      + throws +
                                                                                                                                                                                                                      +
                                                                                                                                                                                                                      + CrmException + +

                                                                                                                                                                                                                      If a critical error occured.

                                                                                                                                                                                                                      +
                                                                                                                                                                                                                      + +
                                                                                                                                                                                                                      +
                                                                                                                                                                                                                      + throws +
                                                                                                                                                                                                                      +
                                                                                                                                                                                                                      + ApiErrorException + +

                                                                                                                                                                                                                      If any error or \LDC\LDCCRM\Enums\ApiError occurs. +Possibles are : - modelNotFound, If this customer hashcode could not be found.

                                                                                                                                                                                                                      +
                                                                                                                                                                                                                      + +
                                                                                                                                                                                                                      +
                                                                                                                                                                                                                      + phpcs:ignore +
                                                                                                                                                                                                                      +
                                                                                                                                                                                                                      + +

                                                                                                                                                                                                                      Squiz.Commenting.FunctionCommentThrowTag.WrongNumber

                                                                                                                                                                                                                      +
                                                                                                                                                                                                                      + +
                                                                                                                                                                                                                      +
                                                                                                                                                                                                                      + +
                                                                                                                                                                                                                      Return values
                                                                                                                                                                                                                      + bool + — +

                                                                                                                                                                                                                      true if the operation succeeded

                                                                                                                                                                                                                      +
                                                                                                                                                                                                                      + + +
                                                                                                                                                                                                                      +
                                                                                                                                                                                                                      +

                                                                                                                                                                                                                      + unsetActiveUser() + +

                                                                                                                                                                                                                      + + +

                                                                                                                                                                                                                      Remove active user +to prevent WPCrm::check to return true

                                                                                                                                                                                                                      + + + public + static unsetActiveUser() : void + + + + + +
                                                                                                                                                                                                                      Return values
                                                                                                                                                                                                                      + void + — + + +
                                                                                                                                                                                                                      +
                                                                                                                                                                                                                      +

                                                                                                                                                                                                                      + bootSessionIfNeeded() + +

                                                                                                                                                                                                                      + + +

                                                                                                                                                                                                                      Boot the php session if needed

                                                                                                                                                                                                                      + + + private + static bootSessionIfNeeded() : void + + + + + +
                                                                                                                                                                                                                      Return values
                                                                                                                                                                                                                      + void + — + + +
                                                                                                                                                                                                                      +
                                                                                                                                                                                                                      +

                                                                                                                                                                                                                      + deleteUserFromTable() + +

                                                                                                                                                                                                                      + + +

                                                                                                                                                                                                                      Save or update the user to the table

                                                                                                                                                                                                                      + + + private + static deleteUserFromTable() : int + + + + + +
                                                                                                                                                                                                                      Return values
                                                                                                                                                                                                                      + int + — +

                                                                                                                                                                                                                      The number of row removed from the table.

                                                                                                                                                                                                                      +
                                                                                                                                                                                                                      + + +
                                                                                                                                                                                                                      +
                                                                                                                                                                                                                      +

                                                                                                                                                                                                                      + getCustomer() + +

                                                                                                                                                                                                                      + + +

                                                                                                                                                                                                                      Get all customer infos

                                                                                                                                                                                                                      + + + private + static getCustomer() : Customer|null + + + + + +
                                                                                                                                                                                                                      Return values
                                                                                                                                                                                                                      + Customer|null + — + + +
                                                                                                                                                                                                                      +
                                                                                                                                                                                                                      +

                                                                                                                                                                                                                      + getWpDb() + +

                                                                                                                                                                                                                      + + +

                                                                                                                                                                                                                      Get WP 'pdo instance'

                                                                                                                                                                                                                      + + + private + static getWpDb() : object + + + + + +
                                                                                                                                                                                                                      Return values
                                                                                                                                                                                                                      + object + — +

                                                                                                                                                                                                                      The $wpdb variable

                                                                                                                                                                                                                      +
                                                                                                                                                                                                                      + + +
                                                                                                                                                                                                                      +
                                                                                                                                                                                                                      +

                                                                                                                                                                                                                      + initLdcApi() + +

                                                                                                                                                                                                                      + + +

                                                                                                                                                                                                                      Get the initialized API object

                                                                                                                                                                                                                      + + + private + static initLdcApi() : CrmApiV2 + + + + +
                                                                                                                                                                                                                      + Tags + +
                                                                                                                                                                                                                      +
                                                                                                                                                                                                                      +
                                                                                                                                                                                                                      + throws +
                                                                                                                                                                                                                      +
                                                                                                                                                                                                                      + ErrorException + +

                                                                                                                                                                                                                      If php does not have extension curl.

                                                                                                                                                                                                                      +
                                                                                                                                                                                                                      + +
                                                                                                                                                                                                                      +
                                                                                                                                                                                                                      + +
                                                                                                                                                                                                                      Return values
                                                                                                                                                                                                                      + CrmApiV2 + — + + +
                                                                                                                                                                                                                      +
                                                                                                                                                                                                                      +

                                                                                                                                                                                                                      + loginUserWithApi() + +

                                                                                                                                                                                                                      + + +

                                                                                                                                                                                                                      Check customer credentials using the CRM.

                                                                                                                                                                                                                      + + + private + static loginUserWithApi(string $email, string $password) : bool + + +
                                                                                                                                                                                                                      Parameters
                                                                                                                                                                                                                      +
                                                                                                                                                                                                                      +
                                                                                                                                                                                                                      + $email + : string +
                                                                                                                                                                                                                      +
                                                                                                                                                                                                                      +

                                                                                                                                                                                                                      The customer email.

                                                                                                                                                                                                                      +
                                                                                                                                                                                                                      + +
                                                                                                                                                                                                                      +
                                                                                                                                                                                                                      + $password + : string +
                                                                                                                                                                                                                      +
                                                                                                                                                                                                                      +

                                                                                                                                                                                                                      The customer password.

                                                                                                                                                                                                                      +
                                                                                                                                                                                                                      + +
                                                                                                                                                                                                                      +
                                                                                                                                                                                                                      + + +
                                                                                                                                                                                                                      + Tags + +
                                                                                                                                                                                                                      +
                                                                                                                                                                                                                      +
                                                                                                                                                                                                                      + throws +
                                                                                                                                                                                                                      +
                                                                                                                                                                                                                      + CrmException + +

                                                                                                                                                                                                                      If an error occurs on server side or on getting response.

                                                                                                                                                                                                                      +
                                                                                                                                                                                                                      + +
                                                                                                                                                                                                                      +
                                                                                                                                                                                                                      + throws +
                                                                                                                                                                                                                      +
                                                                                                                                                                                                                      + ApiErrorException + +

                                                                                                                                                                                                                      If any error or \LDC\LDCCRM\Enums\ApiError occurs. +Possibles are : - authFailed, If credentials are not valid. +- customerNotActivated, If the account is not activated.

                                                                                                                                                                                                                      +
                                                                                                                                                                                                                      + +
                                                                                                                                                                                                                      +
                                                                                                                                                                                                                      + +
                                                                                                                                                                                                                      Return values
                                                                                                                                                                                                                      + bool + — + + +
                                                                                                                                                                                                                      +
                                                                                                                                                                                                                      +

                                                                                                                                                                                                                      + makeApiV2Call() + +

                                                                                                                                                                                                                      + + +

                                                                                                                                                                                                                      Make a call using apiV2

                                                                                                                                                                                                                      + + + private + static makeApiV2Call(object|string $obj, string $method[, array<string|int, mixed> $arguments = [] ]) : mixed|false + + +
                                                                                                                                                                                                                      Parameters
                                                                                                                                                                                                                      +
                                                                                                                                                                                                                      +
                                                                                                                                                                                                                      + $obj + : object|string +
                                                                                                                                                                                                                      +
                                                                                                                                                                                                                      +

                                                                                                                                                                                                                      An object or a class name.

                                                                                                                                                                                                                      +
                                                                                                                                                                                                                      + +
                                                                                                                                                                                                                      +
                                                                                                                                                                                                                      + $method + : string +
                                                                                                                                                                                                                      +
                                                                                                                                                                                                                      +

                                                                                                                                                                                                                      The method to call.

                                                                                                                                                                                                                      +
                                                                                                                                                                                                                      + +
                                                                                                                                                                                                                      +
                                                                                                                                                                                                                      + $arguments + : array<string|int, mixed> + = []
                                                                                                                                                                                                                      +
                                                                                                                                                                                                                      +

                                                                                                                                                                                                                      Arguments to pass.

                                                                                                                                                                                                                      +
                                                                                                                                                                                                                      + +
                                                                                                                                                                                                                      +
                                                                                                                                                                                                                      + + +
                                                                                                                                                                                                                      + Tags + +
                                                                                                                                                                                                                      +
                                                                                                                                                                                                                      +
                                                                                                                                                                                                                      + throws +
                                                                                                                                                                                                                      +
                                                                                                                                                                                                                      + ApiErrorException + +

                                                                                                                                                                                                                      If any of this exception is thrown.

                                                                                                                                                                                                                      +
                                                                                                                                                                                                                      + +
                                                                                                                                                                                                                      +
                                                                                                                                                                                                                      + throws +
                                                                                                                                                                                                                      +
                                                                                                                                                                                                                      + CrmException + +

                                                                                                                                                                                                                      If a critical error occured.

                                                                                                                                                                                                                      +
                                                                                                                                                                                                                      + +
                                                                                                                                                                                                                      +
                                                                                                                                                                                                                      + +
                                                                                                                                                                                                                      Return values
                                                                                                                                                                                                                      + mixed|false + — + + +
                                                                                                                                                                                                                      +
                                                                                                                                                                                                                      +

                                                                                                                                                                                                                      + query() + +

                                                                                                                                                                                                                      + + +

                                                                                                                                                                                                                      Query in DB

                                                                                                                                                                                                                      + + + private + static query(string $query[, array<string|int, mixed> $params = [] ]) : int|bool + + +
                                                                                                                                                                                                                      Parameters
                                                                                                                                                                                                                      +
                                                                                                                                                                                                                      +
                                                                                                                                                                                                                      + $query + : string +
                                                                                                                                                                                                                      +
                                                                                                                                                                                                                      +

                                                                                                                                                                                                                      La request avec les variables en points d'interrogation.

                                                                                                                                                                                                                      +
                                                                                                                                                                                                                      + +
                                                                                                                                                                                                                      +
                                                                                                                                                                                                                      + $params + : array<string|int, mixed> + = []
                                                                                                                                                                                                                      +
                                                                                                                                                                                                                      +

                                                                                                                                                                                                                      Les paramètres des la requète.

                                                                                                                                                                                                                      +
                                                                                                                                                                                                                      + +
                                                                                                                                                                                                                      +
                                                                                                                                                                                                                      + + + +
                                                                                                                                                                                                                      Return values
                                                                                                                                                                                                                      + int|bool + — +

                                                                                                                                                                                                                      Boolean true for CREATE, ALTER, TRUNCATE and DROP queries. +Number of rows affected/selected for all other queries. Boolean false on error.

                                                                                                                                                                                                                      +
                                                                                                                                                                                                                      + + +
                                                                                                                                                                                                                      +
                                                                                                                                                                                                                      +

                                                                                                                                                                                                                      + saveOrUpdateUserToTable() + +

                                                                                                                                                                                                                      + + +

                                                                                                                                                                                                                      Save or update the user to the table

                                                                                                                                                                                                                      + + + private + static saveOrUpdateUserToTable() : int + + + + + +
                                                                                                                                                                                                                      Return values
                                                                                                                                                                                                                      + int + — +

                                                                                                                                                                                                                      The number of row affected on the table.

                                                                                                                                                                                                                      +
                                                                                                                                                                                                                      + + +
                                                                                                                                                                                                                      +
                                                                                                                                                                                                                      +

                                                                                                                                                                                                                      + setUser() + +

                                                                                                                                                                                                                      + + +

                                                                                                                                                                                                                      Create a user +stores it to the session +and finally saves it to the database if it does not exists

                                                                                                                                                                                                                      + + + private + static setUser(Customer $customer) : void + + +
                                                                                                                                                                                                                      Parameters
                                                                                                                                                                                                                      +
                                                                                                                                                                                                                      +
                                                                                                                                                                                                                      + $customer + : Customer +
                                                                                                                                                                                                                      +
                                                                                                                                                                                                                      + +
                                                                                                                                                                                                                      +
                                                                                                                                                                                                                      + + + +
                                                                                                                                                                                                                      Return values
                                                                                                                                                                                                                      + void + — + + +
                                                                                                                                                                                                                      +
                                                                                                                                                                                                                      + + + + +
                                                                                                                                                                                                                      +
                                                                                                                                                                                                                      +
                                                                                                                                                                                                                      +
                                                                                                                                                                                                                      +

                                                                                                                                                                                                                      Search results

                                                                                                                                                                                                                      + +
                                                                                                                                                                                                                      +
                                                                                                                                                                                                                      +
                                                                                                                                                                                                                        +
                                                                                                                                                                                                                        +
                                                                                                                                                                                                                        +
                                                                                                                                                                                                                        +
                                                                                                                                                                                                                        +
                                                                                                                                                                                                                        + + +
                                                                                                                                                                                                                        + + + + + + + + diff --git a/app/Lib/vendor/crm-client-3.0.6/documentation/classes/LDC-LDCCRM-WordPress-WPCrmAnswer.html b/app/Lib/vendor/crm-client-3.0.6/documentation/classes/LDC-LDCCRM-WordPress-WPCrmAnswer.html new file mode 100644 index 0000000..5018054 --- /dev/null +++ b/app/Lib/vendor/crm-client-3.0.6/documentation/classes/LDC-LDCCRM-WordPress-WPCrmAnswer.html @@ -0,0 +1,415 @@ + + + + + CRM V2 + + + + + + + + + + + + + + + + + + + +
                                                                                                                                                                                                                        +

                                                                                                                                                                                                                        CRM V2

                                                                                                                                                                                                                        + + + + + +
                                                                                                                                                                                                                        + +
                                                                                                                                                                                                                        +
                                                                                                                                                                                                                        + + + + +
                                                                                                                                                                                                                        + + +
                                                                                                                                                                                                                        +

                                                                                                                                                                                                                        + WPCrmAnswer + + +
                                                                                                                                                                                                                        + in package + +
                                                                                                                                                                                                                        + + +

                                                                                                                                                                                                                        + + + +

                                                                                                                                                                                                                        Class de gestion de la segmentation question avec Wordpress

                                                                                                                                                                                                                        + + + +
                                                                                                                                                                                                                        + Tags + +
                                                                                                                                                                                                                        +
                                                                                                                                                                                                                        +
                                                                                                                                                                                                                        + category +
                                                                                                                                                                                                                        +
                                                                                                                                                                                                                        + +

                                                                                                                                                                                                                        API

                                                                                                                                                                                                                        +
                                                                                                                                                                                                                        + +
                                                                                                                                                                                                                        +
                                                                                                                                                                                                                        + subpackage +
                                                                                                                                                                                                                        +
                                                                                                                                                                                                                        + +

                                                                                                                                                                                                                        Wordpress

                                                                                                                                                                                                                        +
                                                                                                                                                                                                                        + +
                                                                                                                                                                                                                        +
                                                                                                                                                                                                                        + author +
                                                                                                                                                                                                                        +
                                                                                                                                                                                                                        + +

                                                                                                                                                                                                                        Jérémy Munsch jeremy.munsch@ldc.fr

                                                                                                                                                                                                                        +
                                                                                                                                                                                                                        + +
                                                                                                                                                                                                                        +
                                                                                                                                                                                                                        + license +
                                                                                                                                                                                                                        +
                                                                                                                                                                                                                        + +

                                                                                                                                                                                                                        MIT https://opensource.org/licenses/MIT

                                                                                                                                                                                                                        +
                                                                                                                                                                                                                        + +
                                                                                                                                                                                                                        +
                                                                                                                                                                                                                        + link +
                                                                                                                                                                                                                        +
                                                                                                                                                                                                                        + / + +
                                                                                                                                                                                                                        +
                                                                                                                                                                                                                        + + + + + + +

                                                                                                                                                                                                                        + Table of Contents + +

                                                                                                                                                                                                                        + +
                                                                                                                                                                                                                        +
                                                                                                                                                                                                                        + setQuestionAnswers() + +  : bool +
                                                                                                                                                                                                                        +
                                                                                                                                                                                                                        Set answers to a question for a specific user
                                                                                                                                                                                                                        + +
                                                                                                                                                                                                                        + + + + + + + +
                                                                                                                                                                                                                        +

                                                                                                                                                                                                                        + Methods + +

                                                                                                                                                                                                                        +
                                                                                                                                                                                                                        +

                                                                                                                                                                                                                        + setQuestionAnswers() + +

                                                                                                                                                                                                                        + + +

                                                                                                                                                                                                                        Set answers to a question for a specific user

                                                                                                                                                                                                                        + + + public + setQuestionAnswers(WPCrmUser $user, int $questionId, array<string|int, mixed> $answersId) : bool + + +
                                                                                                                                                                                                                        Parameters
                                                                                                                                                                                                                        +
                                                                                                                                                                                                                        +
                                                                                                                                                                                                                        + $user + : WPCrmUser +
                                                                                                                                                                                                                        +
                                                                                                                                                                                                                        + +
                                                                                                                                                                                                                        +
                                                                                                                                                                                                                        + $questionId + : int +
                                                                                                                                                                                                                        +
                                                                                                                                                                                                                        +

                                                                                                                                                                                                                        The question id .

                                                                                                                                                                                                                        +
                                                                                                                                                                                                                        + +
                                                                                                                                                                                                                        +
                                                                                                                                                                                                                        + $answersId + : array<string|int, mixed> +
                                                                                                                                                                                                                        +
                                                                                                                                                                                                                        +

                                                                                                                                                                                                                        An array with answers id .

                                                                                                                                                                                                                        +
                                                                                                                                                                                                                        + +
                                                                                                                                                                                                                        +
                                                                                                                                                                                                                        + + +
                                                                                                                                                                                                                        + Tags + +
                                                                                                                                                                                                                        +
                                                                                                                                                                                                                        +
                                                                                                                                                                                                                        + throws +
                                                                                                                                                                                                                        +
                                                                                                                                                                                                                        + CrmException + +

                                                                                                                                                                                                                        If an error occurs on server side or on getting response.

                                                                                                                                                                                                                        +
                                                                                                                                                                                                                        + +
                                                                                                                                                                                                                        +
                                                                                                                                                                                                                        + throws +
                                                                                                                                                                                                                        +
                                                                                                                                                                                                                        + ValidationException + +

                                                                                                                                                                                                                        If $user hashcode is not a valid UUID.

                                                                                                                                                                                                                        +
                                                                                                                                                                                                                        + +
                                                                                                                                                                                                                        +
                                                                                                                                                                                                                        + throws +
                                                                                                                                                                                                                        +
                                                                                                                                                                                                                        + ValidationException + +

                                                                                                                                                                                                                        If any of the provided ids are invalid.

                                                                                                                                                                                                                        +
                                                                                                                                                                                                                        + +
                                                                                                                                                                                                                        +
                                                                                                                                                                                                                        + throws +
                                                                                                                                                                                                                        +
                                                                                                                                                                                                                        + ApiErrorException + +

                                                                                                                                                                                                                        If any error \LDC\LDCCRM\Enums\ApiError occurs. +Possibles are : - validationFailed, If given ids are wrong(CRM side).

                                                                                                                                                                                                                        +
                                                                                                                                                                                                                        + +
                                                                                                                                                                                                                        +
                                                                                                                                                                                                                        + phpcs:ignore +
                                                                                                                                                                                                                        +
                                                                                                                                                                                                                        + +

                                                                                                                                                                                                                        Squiz.Commenting.FunctionCommentThrowTag.WrongNumber

                                                                                                                                                                                                                        +
                                                                                                                                                                                                                        + +
                                                                                                                                                                                                                        +
                                                                                                                                                                                                                        + +
                                                                                                                                                                                                                        Return values
                                                                                                                                                                                                                        + bool + — +

                                                                                                                                                                                                                        true if succeeded

                                                                                                                                                                                                                        +
                                                                                                                                                                                                                        + + +
                                                                                                                                                                                                                        +
                                                                                                                                                                                                                        + + + + +
                                                                                                                                                                                                                        +
                                                                                                                                                                                                                        +
                                                                                                                                                                                                                        +
                                                                                                                                                                                                                        +

                                                                                                                                                                                                                        Search results

                                                                                                                                                                                                                        + +
                                                                                                                                                                                                                        +
                                                                                                                                                                                                                        +
                                                                                                                                                                                                                          +
                                                                                                                                                                                                                          +
                                                                                                                                                                                                                          +
                                                                                                                                                                                                                          +
                                                                                                                                                                                                                          +
                                                                                                                                                                                                                          + + +
                                                                                                                                                                                                                          + + + + + + + + diff --git a/app/Lib/vendor/crm-client-3.0.6/documentation/classes/LDC-LDCCRM-WordPress-WPCrmQuestion.html b/app/Lib/vendor/crm-client-3.0.6/documentation/classes/LDC-LDCCRM-WordPress-WPCrmQuestion.html new file mode 100644 index 0000000..a2f6704 --- /dev/null +++ b/app/Lib/vendor/crm-client-3.0.6/documentation/classes/LDC-LDCCRM-WordPress-WPCrmQuestion.html @@ -0,0 +1,570 @@ + + + + + CRM V2 + + + + + + + + + + + + + + + + + + + +
                                                                                                                                                                                                                          +

                                                                                                                                                                                                                          CRM V2

                                                                                                                                                                                                                          + + + + + +
                                                                                                                                                                                                                          + +
                                                                                                                                                                                                                          +
                                                                                                                                                                                                                          + + + + +
                                                                                                                                                                                                                          + + +
                                                                                                                                                                                                                          +

                                                                                                                                                                                                                          + WPCrmQuestion + + +
                                                                                                                                                                                                                          + in package + +
                                                                                                                                                                                                                          + + +

                                                                                                                                                                                                                          + + + +

                                                                                                                                                                                                                          Class de gestion de la segmentation question avec Wordpress

                                                                                                                                                                                                                          + + + +
                                                                                                                                                                                                                          + Tags + +
                                                                                                                                                                                                                          +
                                                                                                                                                                                                                          +
                                                                                                                                                                                                                          + category +
                                                                                                                                                                                                                          +
                                                                                                                                                                                                                          + +

                                                                                                                                                                                                                          API

                                                                                                                                                                                                                          +
                                                                                                                                                                                                                          + +
                                                                                                                                                                                                                          +
                                                                                                                                                                                                                          + subpackage +
                                                                                                                                                                                                                          +
                                                                                                                                                                                                                          + +

                                                                                                                                                                                                                          Wordpress

                                                                                                                                                                                                                          +
                                                                                                                                                                                                                          + +
                                                                                                                                                                                                                          +
                                                                                                                                                                                                                          + author +
                                                                                                                                                                                                                          +
                                                                                                                                                                                                                          + +

                                                                                                                                                                                                                          Jérémy Munsch jeremy.munsch@ldc.fr

                                                                                                                                                                                                                          +
                                                                                                                                                                                                                          + +
                                                                                                                                                                                                                          +
                                                                                                                                                                                                                          + license +
                                                                                                                                                                                                                          +
                                                                                                                                                                                                                          + +

                                                                                                                                                                                                                          MIT https://opensource.org/licenses/MIT

                                                                                                                                                                                                                          +
                                                                                                                                                                                                                          + +
                                                                                                                                                                                                                          +
                                                                                                                                                                                                                          + link +
                                                                                                                                                                                                                          +
                                                                                                                                                                                                                          + / + +
                                                                                                                                                                                                                          +
                                                                                                                                                                                                                          + + + + + + +

                                                                                                                                                                                                                          + Table of Contents + +

                                                                                                                                                                                                                          + +
                                                                                                                                                                                                                          +
                                                                                                                                                                                                                          + allWithCustomerAnswers() + +  : array<string|int, mixed> +
                                                                                                                                                                                                                          +
                                                                                                                                                                                                                          Get all the questions with user answers
                                                                                                                                                                                                                          + +
                                                                                                                                                                                                                          + getAll() + +  : array<string|int, mixed> +
                                                                                                                                                                                                                          +
                                                                                                                                                                                                                          Get all questions only
                                                                                                                                                                                                                          + +
                                                                                                                                                                                                                          + unansweredBy() + +  : array<string|int, Question> +
                                                                                                                                                                                                                          +
                                                                                                                                                                                                                          Get unanswered question for a specific customer
                                                                                                                                                                                                                          + +
                                                                                                                                                                                                                          + + + + + + + +
                                                                                                                                                                                                                          +

                                                                                                                                                                                                                          + Methods + +

                                                                                                                                                                                                                          +
                                                                                                                                                                                                                          +

                                                                                                                                                                                                                          + allWithCustomerAnswers() + +

                                                                                                                                                                                                                          + + +

                                                                                                                                                                                                                          Get all the questions with user answers

                                                                                                                                                                                                                          + + + public + static allWithCustomerAnswers(WPCrmUser $user) : array<string|int, mixed> + + +
                                                                                                                                                                                                                          Parameters
                                                                                                                                                                                                                          +
                                                                                                                                                                                                                          +
                                                                                                                                                                                                                          + $user + : WPCrmUser +
                                                                                                                                                                                                                          +
                                                                                                                                                                                                                          + +
                                                                                                                                                                                                                          +
                                                                                                                                                                                                                          + + +
                                                                                                                                                                                                                          + Tags + +
                                                                                                                                                                                                                          +
                                                                                                                                                                                                                          +
                                                                                                                                                                                                                          + throws +
                                                                                                                                                                                                                          +
                                                                                                                                                                                                                          + CrmException + +

                                                                                                                                                                                                                          If an error occurs on server side or on getting response.

                                                                                                                                                                                                                          +
                                                                                                                                                                                                                          + +
                                                                                                                                                                                                                          +
                                                                                                                                                                                                                          + throws +
                                                                                                                                                                                                                          +
                                                                                                                                                                                                                          + ValidationException + +

                                                                                                                                                                                                                          If a hashcode is not a valid UUID.

                                                                                                                                                                                                                          +
                                                                                                                                                                                                                          + +
                                                                                                                                                                                                                          +
                                                                                                                                                                                                                          + throws +
                                                                                                                                                                                                                          +
                                                                                                                                                                                                                          + ValidationException + +

                                                                                                                                                                                                                          If any of the provided ids are invalid.

                                                                                                                                                                                                                          +
                                                                                                                                                                                                                          + +
                                                                                                                                                                                                                          +
                                                                                                                                                                                                                          + throws +
                                                                                                                                                                                                                          +
                                                                                                                                                                                                                          + ApiErrorException + +

                                                                                                                                                                                                                          If any error or \LDC\LDCCRM\Enums\ApiError occurs. +Possibles are : - modelNotFound, If the customer could not be found(CRM side).

                                                                                                                                                                                                                          +
                                                                                                                                                                                                                          + +
                                                                                                                                                                                                                          +
                                                                                                                                                                                                                          + phpcs:ignore +
                                                                                                                                                                                                                          +
                                                                                                                                                                                                                          + +

                                                                                                                                                                                                                          Squiz.Commenting.FunctionCommentThrowTag.WrongNumber

                                                                                                                                                                                                                          +
                                                                                                                                                                                                                          + +
                                                                                                                                                                                                                          +
                                                                                                                                                                                                                          + +
                                                                                                                                                                                                                          Return values
                                                                                                                                                                                                                          + array<string|int, mixed> + — +

                                                                                                                                                                                                                          Of \LDC\LDCCRM\Models\Question and their \LDC\LDCCRM\Models\Answer.

                                                                                                                                                                                                                          +
                                                                                                                                                                                                                          + + +
                                                                                                                                                                                                                          +
                                                                                                                                                                                                                          +

                                                                                                                                                                                                                          + getAll() + +

                                                                                                                                                                                                                          + + +

                                                                                                                                                                                                                          Get all questions only

                                                                                                                                                                                                                          + + + public + static getAll() : array<string|int, mixed> + + + + +
                                                                                                                                                                                                                          + Tags + +
                                                                                                                                                                                                                          +
                                                                                                                                                                                                                          +
                                                                                                                                                                                                                          + throws +
                                                                                                                                                                                                                          +
                                                                                                                                                                                                                          + CrmException + +

                                                                                                                                                                                                                          If an error occurs on server side or on getting response.

                                                                                                                                                                                                                          +
                                                                                                                                                                                                                          + +
                                                                                                                                                                                                                          +
                                                                                                                                                                                                                          + throws +
                                                                                                                                                                                                                          +
                                                                                                                                                                                                                          + ApiErrorException + +

                                                                                                                                                                                                                          If any error or \LDC\LDCCRM\Enums\ApiError occurs.

                                                                                                                                                                                                                          +
                                                                                                                                                                                                                          + +
                                                                                                                                                                                                                          +
                                                                                                                                                                                                                          + phpcs:ignore +
                                                                                                                                                                                                                          +
                                                                                                                                                                                                                          + +

                                                                                                                                                                                                                          Squiz.Commenting.FunctionCommentThrowTag.WrongNumber

                                                                                                                                                                                                                          +
                                                                                                                                                                                                                          + +
                                                                                                                                                                                                                          +
                                                                                                                                                                                                                          + +
                                                                                                                                                                                                                          Return values
                                                                                                                                                                                                                          + array<string|int, mixed> + — +

                                                                                                                                                                                                                          Of \LDC\LDCCRM\Models\Question

                                                                                                                                                                                                                          +
                                                                                                                                                                                                                          + + +
                                                                                                                                                                                                                          +
                                                                                                                                                                                                                          +

                                                                                                                                                                                                                          + unansweredBy() + +

                                                                                                                                                                                                                          + + +

                                                                                                                                                                                                                          Get unanswered question for a specific customer

                                                                                                                                                                                                                          + + + public + static unansweredBy(WPCrmUser $user) : array<string|int, Question> + + +
                                                                                                                                                                                                                          Parameters
                                                                                                                                                                                                                          +
                                                                                                                                                                                                                          +
                                                                                                                                                                                                                          + $user + : WPCrmUser +
                                                                                                                                                                                                                          +
                                                                                                                                                                                                                          + +
                                                                                                                                                                                                                          +
                                                                                                                                                                                                                          + + +
                                                                                                                                                                                                                          + Tags + +
                                                                                                                                                                                                                          +
                                                                                                                                                                                                                          +
                                                                                                                                                                                                                          + throws +
                                                                                                                                                                                                                          +
                                                                                                                                                                                                                          + CrmException + +

                                                                                                                                                                                                                          If an error occurs on server side or on getting response.

                                                                                                                                                                                                                          +
                                                                                                                                                                                                                          + +
                                                                                                                                                                                                                          +
                                                                                                                                                                                                                          + throws +
                                                                                                                                                                                                                          +
                                                                                                                                                                                                                          + ValidationException + +

                                                                                                                                                                                                                          If $user hashcode is not a valid UUID.

                                                                                                                                                                                                                          +
                                                                                                                                                                                                                          + +
                                                                                                                                                                                                                          +
                                                                                                                                                                                                                          + throws +
                                                                                                                                                                                                                          +
                                                                                                                                                                                                                          + ApiErrorException + +

                                                                                                                                                                                                                          If any error or \LDC\LDCCRM\Enums\ApiError occurs. +Possibles are : - modelNotFound, If the customer could not be found(CRM side).

                                                                                                                                                                                                                          +
                                                                                                                                                                                                                          + +
                                                                                                                                                                                                                          +
                                                                                                                                                                                                                          + phpcs:ignore +
                                                                                                                                                                                                                          +
                                                                                                                                                                                                                          + +

                                                                                                                                                                                                                          Squiz.Commenting.FunctionCommentThrowTag.WrongNumber

                                                                                                                                                                                                                          +
                                                                                                                                                                                                                          + +
                                                                                                                                                                                                                          +
                                                                                                                                                                                                                          + +
                                                                                                                                                                                                                          Return values
                                                                                                                                                                                                                          + array<string|int, Question> + — + + +
                                                                                                                                                                                                                          +
                                                                                                                                                                                                                          + + + + +
                                                                                                                                                                                                                          +
                                                                                                                                                                                                                          +
                                                                                                                                                                                                                          +
                                                                                                                                                                                                                          +

                                                                                                                                                                                                                          Search results

                                                                                                                                                                                                                          + +
                                                                                                                                                                                                                          +
                                                                                                                                                                                                                          +
                                                                                                                                                                                                                            +
                                                                                                                                                                                                                            +
                                                                                                                                                                                                                            +
                                                                                                                                                                                                                            +
                                                                                                                                                                                                                            +
                                                                                                                                                                                                                            + + +
                                                                                                                                                                                                                            + + + + + + + + diff --git a/app/Lib/vendor/crm-client-3.0.6/documentation/classes/LDC-LDCCRM-WordPress-WPCrmUser.html b/app/Lib/vendor/crm-client-3.0.6/documentation/classes/LDC-LDCCRM-WordPress-WPCrmUser.html new file mode 100644 index 0000000..64cb4fb --- /dev/null +++ b/app/Lib/vendor/crm-client-3.0.6/documentation/classes/LDC-LDCCRM-WordPress-WPCrmUser.html @@ -0,0 +1,1779 @@ + + + + + CRM V2 + + + + + + + + + + + + + + + + + + + +
                                                                                                                                                                                                                            +

                                                                                                                                                                                                                            CRM V2

                                                                                                                                                                                                                            + + + + + +
                                                                                                                                                                                                                            + +
                                                                                                                                                                                                                            +
                                                                                                                                                                                                                            + + + + +
                                                                                                                                                                                                                            + + +
                                                                                                                                                                                                                            +

                                                                                                                                                                                                                            + WPCrmUser + + +
                                                                                                                                                                                                                            + in package + +
                                                                                                                                                                                                                            + + + implements + JsonSerializable + +

                                                                                                                                                                                                                            + + + +

                                                                                                                                                                                                                            Class de gestion des users en session avec Wordpress

                                                                                                                                                                                                                            + + + +
                                                                                                                                                                                                                            + Tags + +
                                                                                                                                                                                                                            +
                                                                                                                                                                                                                            +
                                                                                                                                                                                                                            + category +
                                                                                                                                                                                                                            +
                                                                                                                                                                                                                            + +

                                                                                                                                                                                                                            API

                                                                                                                                                                                                                            +
                                                                                                                                                                                                                            + +
                                                                                                                                                                                                                            +
                                                                                                                                                                                                                            + subpackage +
                                                                                                                                                                                                                            +
                                                                                                                                                                                                                            + +

                                                                                                                                                                                                                            Wordpress

                                                                                                                                                                                                                            +
                                                                                                                                                                                                                            + +
                                                                                                                                                                                                                            +
                                                                                                                                                                                                                            + author +
                                                                                                                                                                                                                            +
                                                                                                                                                                                                                            + +

                                                                                                                                                                                                                            Jérémy Munsch jeremy.munsch@ldc.fr

                                                                                                                                                                                                                            +
                                                                                                                                                                                                                            + +
                                                                                                                                                                                                                            +
                                                                                                                                                                                                                            + license +
                                                                                                                                                                                                                            +
                                                                                                                                                                                                                            + +

                                                                                                                                                                                                                            MIT https://opensource.org/licenses/MIT

                                                                                                                                                                                                                            +
                                                                                                                                                                                                                            + +
                                                                                                                                                                                                                            +
                                                                                                                                                                                                                            + link +
                                                                                                                                                                                                                            +
                                                                                                                                                                                                                            + / + +
                                                                                                                                                                                                                            +
                                                                                                                                                                                                                            + + + + +

                                                                                                                                                                                                                            + Interfaces, Classes and Traits + +

                                                                                                                                                                                                                            + +
                                                                                                                                                                                                                            +
                                                                                                                                                                                                                            JsonSerializable
                                                                                                                                                                                                                            +
                                                                                                                                                                                                                            + + +
                                                                                                                                                                                                                            + + +

                                                                                                                                                                                                                            + Table of Contents + +

                                                                                                                                                                                                                            + +
                                                                                                                                                                                                                            +
                                                                                                                                                                                                                            + $address + +  : string +
                                                                                                                                                                                                                            +
                                                                                                                                                                                                                            + +
                                                                                                                                                                                                                            + $address2 + +  : string +
                                                                                                                                                                                                                            +
                                                                                                                                                                                                                            + +
                                                                                                                                                                                                                            + $birth_date + +  : string +
                                                                                                                                                                                                                            +
                                                                                                                                                                                                                            + +
                                                                                                                                                                                                                            + $city + +  : string +
                                                                                                                                                                                                                            +
                                                                                                                                                                                                                            + +
                                                                                                                                                                                                                            + $country + +  : Country +
                                                                                                                                                                                                                            +
                                                                                                                                                                                                                            + +
                                                                                                                                                                                                                            + $email + +  : string +
                                                                                                                                                                                                                            +
                                                                                                                                                                                                                            + +
                                                                                                                                                                                                                            + $firstname + +  : string +
                                                                                                                                                                                                                            +
                                                                                                                                                                                                                            + +
                                                                                                                                                                                                                            + $hashcode + +  : string +
                                                                                                                                                                                                                            +
                                                                                                                                                                                                                            + +
                                                                                                                                                                                                                            + $last_connection + +  : string +
                                                                                                                                                                                                                            +
                                                                                                                                                                                                                            + +
                                                                                                                                                                                                                            + $lastname + +  : string +
                                                                                                                                                                                                                            +
                                                                                                                                                                                                                            + +
                                                                                                                                                                                                                            + $opt_in + +  : bool +
                                                                                                                                                                                                                            +
                                                                                                                                                                                                                            + +
                                                                                                                                                                                                                            + $password + +  : string +
                                                                                                                                                                                                                            +
                                                                                                                                                                                                                            + +
                                                                                                                                                                                                                            + $phone + +  : string +
                                                                                                                                                                                                                            +
                                                                                                                                                                                                                            + +
                                                                                                                                                                                                                            + $postcode + +  : string +
                                                                                                                                                                                                                            +
                                                                                                                                                                                                                            + +
                                                                                                                                                                                                                            + $status + +  : bool +
                                                                                                                                                                                                                            +
                                                                                                                                                                                                                            + +
                                                                                                                                                                                                                            + $uuidToken + +  : string +
                                                                                                                                                                                                                            +
                                                                                                                                                                                                                            + +
                                                                                                                                                                                                                            + $info + +  : Customer +
                                                                                                                                                                                                                            +
                                                                                                                                                                                                                            The CRM customer info (the api response)
                                                                                                                                                                                                                            + +
                                                                                                                                                                                                                            + $pemail + +  : string +
                                                                                                                                                                                                                            +
                                                                                                                                                                                                                            The CRM customer email
                                                                                                                                                                                                                            + +
                                                                                                                                                                                                                            + $phashcode + +  : string +
                                                                                                                                                                                                                            +
                                                                                                                                                                                                                            The CRM hashcode (UUID)
                                                                                                                                                                                                                            + +
                                                                                                                                                                                                                            + $uuidToken + +  : string +
                                                                                                                                                                                                                            +
                                                                                                                                                                                                                            The CRM customer temp uuidToken to validate transactions
                                                                                                                                                                                                                            + +
                                                                                                                                                                                                                            + __construct() + +  : mixed +
                                                                                                                                                                                                                            +
                                                                                                                                                                                                                            WPCrmUser construct
                                                                                                                                                                                                                            + +
                                                                                                                                                                                                                            + __get() + +  : bool|string|Country|null +
                                                                                                                                                                                                                            +
                                                                                                                                                                                                                            Generic accessor
                                                                                                                                                                                                                            + +
                                                                                                                                                                                                                            + __set() + +  : void +
                                                                                                                                                                                                                            +
                                                                                                                                                                                                                            Generic mutator
                                                                                                                                                                                                                            + +
                                                                                                                                                                                                                            + activate() + +  : bool +
                                                                                                                                                                                                                            +
                                                                                                                                                                                                                            Activate the account in the crm
                                                                                                                                                                                                                            + +
                                                                                                                                                                                                                            + delete() + +  : bool +
                                                                                                                                                                                                                            +
                                                                                                                                                                                                                            Delete current customer to +the local database and on crm
                                                                                                                                                                                                                            + +
                                                                                                                                                                                                                            + jsonSerialize() + +  : array<string|int, mixed> +
                                                                                                                                                                                                                            +
                                                                                                                                                                                                                            Serialize this object to an array
                                                                                                                                                                                                                            + +
                                                                                                                                                                                                                            + parseFromJson() + +  : WPCrmUser +
                                                                                                                                                                                                                            +
                                                                                                                                                                                                                            Generate a user from session data
                                                                                                                                                                                                                            + +
                                                                                                                                                                                                                            + save() + +  : bool +
                                                                                                                                                                                                                            +
                                                                                                                                                                                                                            Save current customer to +the local database and on crm
                                                                                                                                                                                                                            + +
                                                                                                                                                                                                                            + setInfo() + +  : void +
                                                                                                                                                                                                                            +
                                                                                                                                                                                                                            Set the customer info +with api response
                                                                                                                                                                                                                            + +
                                                                                                                                                                                                                            + toggleOptin() + +  : bool +
                                                                                                                                                                                                                            +
                                                                                                                                                                                                                            Toggle the current user optin value +on the current user and the crm
                                                                                                                                                                                                                            + +
                                                                                                                                                                                                                            + + + + + + +
                                                                                                                                                                                                                            +

                                                                                                                                                                                                                            + Properties + +

                                                                                                                                                                                                                            +
                                                                                                                                                                                                                            +

                                                                                                                                                                                                                            + $address + + + +

                                                                                                                                                                                                                            + + + + + public + string + $address + + +

                                                                                                                                                                                                                            The account address (street number, name, build, flat number)

                                                                                                                                                                                                                            +
                                                                                                                                                                                                                            + +
                                                                                                                                                                                                                            + + + +
                                                                                                                                                                                                                            +
                                                                                                                                                                                                                            +

                                                                                                                                                                                                                            + $address2 + + + +

                                                                                                                                                                                                                            + + + + + public + string + $address2 + + +

                                                                                                                                                                                                                            — The account phone (address complement)

                                                                                                                                                                                                                            +
                                                                                                                                                                                                                            + +
                                                                                                                                                                                                                            + + + +
                                                                                                                                                                                                                            +
                                                                                                                                                                                                                            +

                                                                                                                                                                                                                            + $birth_date + + + +

                                                                                                                                                                                                                            + + + + + public + string + $birth_date + + +

                                                                                                                                                                                                                            — The account birth date 'yyyy-mm-dd'

                                                                                                                                                                                                                            +
                                                                                                                                                                                                                            + +
                                                                                                                                                                                                                            + + + +
                                                                                                                                                                                                                            +
                                                                                                                                                                                                                            +

                                                                                                                                                                                                                            + $city + + + +

                                                                                                                                                                                                                            + + + + + public + string + $city + + +

                                                                                                                                                                                                                            — The account city name

                                                                                                                                                                                                                            +
                                                                                                                                                                                                                            + +
                                                                                                                                                                                                                            + + + +
                                                                                                                                                                                                                            +
                                                                                                                                                                                                                            +

                                                                                                                                                                                                                            + $country + + + +

                                                                                                                                                                                                                            + + + + + public + Country + $country + + +

                                                                                                                                                                                                                            — The account country residence

                                                                                                                                                                                                                            +
                                                                                                                                                                                                                            + +
                                                                                                                                                                                                                            + + + +
                                                                                                                                                                                                                            +
                                                                                                                                                                                                                            +

                                                                                                                                                                                                                            + $email + + + +

                                                                                                                                                                                                                            + + + + + public + string + $email + + +

                                                                                                                                                                                                                            — Must be a rfc valid email on a valid domain name

                                                                                                                                                                                                                            +
                                                                                                                                                                                                                            + +
                                                                                                                                                                                                                            + + + +
                                                                                                                                                                                                                            +
                                                                                                                                                                                                                            +

                                                                                                                                                                                                                            + $firstname + + + +

                                                                                                                                                                                                                            + + + + + public + string + $firstname + + +

                                                                                                                                                                                                                            — The account first name

                                                                                                                                                                                                                            +
                                                                                                                                                                                                                            + +
                                                                                                                                                                                                                            + + + +
                                                                                                                                                                                                                            +
                                                                                                                                                                                                                            +

                                                                                                                                                                                                                            + $hashcode + + + +

                                                                                                                                                                                                                            + + + + + public + string + $hashcode + + +

                                                                                                                                                                                                                            — The crm hashcode this is a readonly field

                                                                                                                                                                                                                            +
                                                                                                                                                                                                                            + +
                                                                                                                                                                                                                            + + + +
                                                                                                                                                                                                                            +
                                                                                                                                                                                                                            +

                                                                                                                                                                                                                            + $last_connection + + + +

                                                                                                                                                                                                                            + + + + + public + string + $last_connection + + +

                                                                                                                                                                                                                            the last time user was connected 'yyyy-mm-dd HH:ii:ss'

                                                                                                                                                                                                                            +
                                                                                                                                                                                                                            + +
                                                                                                                                                                                                                            + + + +
                                                                                                                                                                                                                            +
                                                                                                                                                                                                                            +

                                                                                                                                                                                                                            + $lastname + + + +

                                                                                                                                                                                                                            + + + + + public + string + $lastname + + +

                                                                                                                                                                                                                            — The account last name

                                                                                                                                                                                                                            +
                                                                                                                                                                                                                            + +
                                                                                                                                                                                                                            + + + +
                                                                                                                                                                                                                            +
                                                                                                                                                                                                                            +

                                                                                                                                                                                                                            + $opt_in + + + +

                                                                                                                                                                                                                            + + + + + public + bool + $opt_in + + +

                                                                                                                                                                                                                            — true if the account is opt in

                                                                                                                                                                                                                            +
                                                                                                                                                                                                                            + +
                                                                                                                                                                                                                            + + + +
                                                                                                                                                                                                                            +
                                                                                                                                                                                                                            +

                                                                                                                                                                                                                            + $password + + + +

                                                                                                                                                                                                                            + + + + + public + string + $password + + +

                                                                                                                                                                                                                            Required only on create, +must have upper and lowers chars, +at least 1 number, +at leat 1 upper char, +at least 1 lower char and +at leat 1 special char

                                                                                                                                                                                                                            +
                                                                                                                                                                                                                            + +
                                                                                                                                                                                                                            + + + +
                                                                                                                                                                                                                            +
                                                                                                                                                                                                                            +

                                                                                                                                                                                                                            + $phone + + + +

                                                                                                                                                                                                                            + + + + + public + string + $phone + + +

                                                                                                                                                                                                                            — The account phone

                                                                                                                                                                                                                            +
                                                                                                                                                                                                                            + +
                                                                                                                                                                                                                            + + + +
                                                                                                                                                                                                                            +
                                                                                                                                                                                                                            +

                                                                                                                                                                                                                            + $postcode + + + +

                                                                                                                                                                                                                            + + + + + public + string + $postcode + + +

                                                                                                                                                                                                                            — The account city postcode

                                                                                                                                                                                                                            +
                                                                                                                                                                                                                            + +
                                                                                                                                                                                                                            + + + +
                                                                                                                                                                                                                            +
                                                                                                                                                                                                                            +

                                                                                                                                                                                                                            + $status + + + +

                                                                                                                                                                                                                            + + + + + public + bool + $status + + +

                                                                                                                                                                                                                            — true if the account is activated

                                                                                                                                                                                                                            +
                                                                                                                                                                                                                            + +
                                                                                                                                                                                                                            + + + +
                                                                                                                                                                                                                            +
                                                                                                                                                                                                                            +

                                                                                                                                                                                                                            + $uuidToken + + + +

                                                                                                                                                                                                                            + + + + + public + string + $uuidToken + + +

                                                                                                                                                                                                                            — A local transaction token for this user

                                                                                                                                                                                                                            +
                                                                                                                                                                                                                            + +
                                                                                                                                                                                                                            + + + +
                                                                                                                                                                                                                            +
                                                                                                                                                                                                                            +

                                                                                                                                                                                                                            + $info + + + +

                                                                                                                                                                                                                            + + +

                                                                                                                                                                                                                            The CRM customer info (the api response)

                                                                                                                                                                                                                            + + + protected + Customer + $info + = null + + + + + +
                                                                                                                                                                                                                            +
                                                                                                                                                                                                                            +

                                                                                                                                                                                                                            + $pemail + + + +

                                                                                                                                                                                                                            + + +

                                                                                                                                                                                                                            The CRM customer email

                                                                                                                                                                                                                            + + + protected + string + $pemail + = null + + + + + +
                                                                                                                                                                                                                            +
                                                                                                                                                                                                                            +

                                                                                                                                                                                                                            + $phashcode + + + +

                                                                                                                                                                                                                            + + +

                                                                                                                                                                                                                            The CRM hashcode (UUID)

                                                                                                                                                                                                                            + + + protected + string + $phashcode + = null + + + + + +
                                                                                                                                                                                                                            +
                                                                                                                                                                                                                            +

                                                                                                                                                                                                                            + $uuidToken + + + +

                                                                                                                                                                                                                            + + +

                                                                                                                                                                                                                            The CRM customer temp uuidToken to validate transactions

                                                                                                                                                                                                                            + + + protected + string + $uuidToken + = null + + +

                                                                                                                                                                                                                            UUID

                                                                                                                                                                                                                            +
                                                                                                                                                                                                                            + + + +
                                                                                                                                                                                                                            +
                                                                                                                                                                                                                            + +
                                                                                                                                                                                                                            +

                                                                                                                                                                                                                            + Methods + +

                                                                                                                                                                                                                            +
                                                                                                                                                                                                                            +

                                                                                                                                                                                                                            + __construct() + +

                                                                                                                                                                                                                            + + +

                                                                                                                                                                                                                            WPCrmUser construct

                                                                                                                                                                                                                            + + + public + __construct([string $hashcode = null ][, string $email = null ]) : mixed + + +
                                                                                                                                                                                                                            Parameters
                                                                                                                                                                                                                            +
                                                                                                                                                                                                                            +
                                                                                                                                                                                                                            + $hashcode + : string + = null
                                                                                                                                                                                                                            +
                                                                                                                                                                                                                            +

                                                                                                                                                                                                                            The customer hashcode (UUID).

                                                                                                                                                                                                                            +
                                                                                                                                                                                                                            + +
                                                                                                                                                                                                                            +
                                                                                                                                                                                                                            + $email + : string + = null
                                                                                                                                                                                                                            +
                                                                                                                                                                                                                            +

                                                                                                                                                                                                                            The customer email.

                                                                                                                                                                                                                            +
                                                                                                                                                                                                                            + +
                                                                                                                                                                                                                            +
                                                                                                                                                                                                                            + + + +
                                                                                                                                                                                                                            Return values
                                                                                                                                                                                                                            + mixed + — + + +
                                                                                                                                                                                                                            +
                                                                                                                                                                                                                            +

                                                                                                                                                                                                                            + __get() + +

                                                                                                                                                                                                                            + + +

                                                                                                                                                                                                                            Generic accessor

                                                                                                                                                                                                                            + + + public + __get(string $prop) : bool|string|Country|null + + +
                                                                                                                                                                                                                            Parameters
                                                                                                                                                                                                                            +
                                                                                                                                                                                                                            +
                                                                                                                                                                                                                            + $prop + : string +
                                                                                                                                                                                                                            +
                                                                                                                                                                                                                            +

                                                                                                                                                                                                                            The prop to get.

                                                                                                                                                                                                                            +
                                                                                                                                                                                                                            + +
                                                                                                                                                                                                                            +
                                                                                                                                                                                                                            + + + +
                                                                                                                                                                                                                            Return values
                                                                                                                                                                                                                            + bool|string|Country|null + — + + +
                                                                                                                                                                                                                            +
                                                                                                                                                                                                                            +

                                                                                                                                                                                                                            + __set() + +

                                                                                                                                                                                                                            + + +

                                                                                                                                                                                                                            Generic mutator

                                                                                                                                                                                                                            + + + public + __set(string $prop, mixed $value) : void + + +
                                                                                                                                                                                                                            Parameters
                                                                                                                                                                                                                            +
                                                                                                                                                                                                                            +
                                                                                                                                                                                                                            + $prop + : string +
                                                                                                                                                                                                                            +
                                                                                                                                                                                                                            +

                                                                                                                                                                                                                            The property to assign.

                                                                                                                                                                                                                            +
                                                                                                                                                                                                                            + +
                                                                                                                                                                                                                            +
                                                                                                                                                                                                                            + $value + : mixed +
                                                                                                                                                                                                                            +
                                                                                                                                                                                                                            +

                                                                                                                                                                                                                            The value to set.

                                                                                                                                                                                                                            +
                                                                                                                                                                                                                            + +
                                                                                                                                                                                                                            +
                                                                                                                                                                                                                            + + + +
                                                                                                                                                                                                                            Return values
                                                                                                                                                                                                                            + void + — + + +
                                                                                                                                                                                                                            +
                                                                                                                                                                                                                            +

                                                                                                                                                                                                                            + activate() + +

                                                                                                                                                                                                                            + + +

                                                                                                                                                                                                                            Activate the account in the crm

                                                                                                                                                                                                                            + + + public + activate() : bool + + + + +
                                                                                                                                                                                                                            + Tags + +
                                                                                                                                                                                                                            +
                                                                                                                                                                                                                            +
                                                                                                                                                                                                                            + throws +
                                                                                                                                                                                                                            +
                                                                                                                                                                                                                            + ValidationException + +

                                                                                                                                                                                                                            If a customer's hashcode could not be validated.

                                                                                                                                                                                                                            +
                                                                                                                                                                                                                            + +
                                                                                                                                                                                                                            +
                                                                                                                                                                                                                            + throws +
                                                                                                                                                                                                                            +
                                                                                                                                                                                                                            + CrmException + +

                                                                                                                                                                                                                            If an error occurs on server side or on getting response.

                                                                                                                                                                                                                            +
                                                                                                                                                                                                                            + +
                                                                                                                                                                                                                            +
                                                                                                                                                                                                                            + throws +
                                                                                                                                                                                                                            +
                                                                                                                                                                                                                            + ApiErrorException + +

                                                                                                                                                                                                                            If any error or \LDC\LDCCRM\Enums\ApiError occurs. +Possibles are : - modelNotFound, If this customer hashcode could not be found. +- customerAlreadyActive, It the customer is already activated.

                                                                                                                                                                                                                            +
                                                                                                                                                                                                                            + +
                                                                                                                                                                                                                            +
                                                                                                                                                                                                                            + +
                                                                                                                                                                                                                            Return values
                                                                                                                                                                                                                            + bool + — +

                                                                                                                                                                                                                            true if succeeded

                                                                                                                                                                                                                            +
                                                                                                                                                                                                                            + + +
                                                                                                                                                                                                                            +
                                                                                                                                                                                                                            +

                                                                                                                                                                                                                            + delete() + +

                                                                                                                                                                                                                            + + +

                                                                                                                                                                                                                            Delete current customer to +the local database and on crm

                                                                                                                                                                                                                            + + + public + delete() : bool + + + + +
                                                                                                                                                                                                                            + Tags + +
                                                                                                                                                                                                                            +
                                                                                                                                                                                                                            +
                                                                                                                                                                                                                            + throws +
                                                                                                                                                                                                                            +
                                                                                                                                                                                                                            + CrmException + +

                                                                                                                                                                                                                            If a critical error occured.

                                                                                                                                                                                                                            +
                                                                                                                                                                                                                            + +
                                                                                                                                                                                                                            +
                                                                                                                                                                                                                            + throws +
                                                                                                                                                                                                                            +
                                                                                                                                                                                                                            + ApiErrorException + +

                                                                                                                                                                                                                            If any error or \LDC\LDCCRM\Enums\ApiError occurs. +Possibles are : - modelNotFound, If this customer hashcode could not be found.

                                                                                                                                                                                                                            +
                                                                                                                                                                                                                            + +
                                                                                                                                                                                                                            +
                                                                                                                                                                                                                            + +
                                                                                                                                                                                                                            Return values
                                                                                                                                                                                                                            + bool + — +

                                                                                                                                                                                                                            true if the operation succeeded false otherwise

                                                                                                                                                                                                                            +
                                                                                                                                                                                                                            + + +
                                                                                                                                                                                                                            +
                                                                                                                                                                                                                            +

                                                                                                                                                                                                                            + jsonSerialize() + +

                                                                                                                                                                                                                            + + +

                                                                                                                                                                                                                            Serialize this object to an array

                                                                                                                                                                                                                            + + + public + jsonSerialize() : array<string|int, mixed> + + + + + +
                                                                                                                                                                                                                            Return values
                                                                                                                                                                                                                            + array<string|int, mixed> + — + + +
                                                                                                                                                                                                                            +
                                                                                                                                                                                                                            +

                                                                                                                                                                                                                            + parseFromJson() + +

                                                                                                                                                                                                                            + + +

                                                                                                                                                                                                                            Generate a user from session data

                                                                                                                                                                                                                            + + + public + static parseFromJson(string $string) : WPCrmUser + + +
                                                                                                                                                                                                                            Parameters
                                                                                                                                                                                                                            +
                                                                                                                                                                                                                            +
                                                                                                                                                                                                                            + $string + : string +
                                                                                                                                                                                                                            +
                                                                                                                                                                                                                            +

                                                                                                                                                                                                                            The json data stored in session.

                                                                                                                                                                                                                            +
                                                                                                                                                                                                                            + +
                                                                                                                                                                                                                            +
                                                                                                                                                                                                                            + + +
                                                                                                                                                                                                                            + Tags + +
                                                                                                                                                                                                                            +
                                                                                                                                                                                                                            +
                                                                                                                                                                                                                            + throws +
                                                                                                                                                                                                                            +
                                                                                                                                                                                                                            + WpCrmInvalidJsonUserInfo + +

                                                                                                                                                                                                                            If the json string does no +contain the needed information.

                                                                                                                                                                                                                            +
                                                                                                                                                                                                                            + +
                                                                                                                                                                                                                            +
                                                                                                                                                                                                                            + +
                                                                                                                                                                                                                            Return values
                                                                                                                                                                                                                            + WPCrmUser + — + + +
                                                                                                                                                                                                                            +
                                                                                                                                                                                                                            +

                                                                                                                                                                                                                            + save() + +

                                                                                                                                                                                                                            + + +

                                                                                                                                                                                                                            Save current customer to +the local database and on crm

                                                                                                                                                                                                                            + + + public + save() : bool + + + + +
                                                                                                                                                                                                                            + Tags + +
                                                                                                                                                                                                                            +
                                                                                                                                                                                                                            +
                                                                                                                                                                                                                            + throws +
                                                                                                                                                                                                                            +
                                                                                                                                                                                                                            + CrmException + +

                                                                                                                                                                                                                            If a critical error occured.

                                                                                                                                                                                                                            +
                                                                                                                                                                                                                            + +
                                                                                                                                                                                                                            +
                                                                                                                                                                                                                            + throws +
                                                                                                                                                                                                                            +
                                                                                                                                                                                                                            + ApiErrorException + +

                                                                                                                                                                                                                            If any error or \LDC\LDCCRM\Enums\ApiError occurs. +Possibles are : - validationFailed, If provided data is wrong(CRM side). +- modelNotFound, If this customer hashcode could not be found.

                                                                                                                                                                                                                            +
                                                                                                                                                                                                                            + +
                                                                                                                                                                                                                            +
                                                                                                                                                                                                                            + +
                                                                                                                                                                                                                            Return values
                                                                                                                                                                                                                            + bool + — +

                                                                                                                                                                                                                            true if the operation succeeded false otherwise

                                                                                                                                                                                                                            +
                                                                                                                                                                                                                            + + +
                                                                                                                                                                                                                            +
                                                                                                                                                                                                                            +

                                                                                                                                                                                                                            + setInfo() + +

                                                                                                                                                                                                                            + + +

                                                                                                                                                                                                                            Set the customer info +with api response

                                                                                                                                                                                                                            + + + public + setInfo(Customer $customer) : void + + +
                                                                                                                                                                                                                            Parameters
                                                                                                                                                                                                                            +
                                                                                                                                                                                                                            +
                                                                                                                                                                                                                            + $customer + : Customer +
                                                                                                                                                                                                                            +
                                                                                                                                                                                                                            +

                                                                                                                                                                                                                            The Api object reponse (user).

                                                                                                                                                                                                                            +
                                                                                                                                                                                                                            + +
                                                                                                                                                                                                                            +
                                                                                                                                                                                                                            + + + +
                                                                                                                                                                                                                            Return values
                                                                                                                                                                                                                            + void + — + + +
                                                                                                                                                                                                                            +
                                                                                                                                                                                                                            +

                                                                                                                                                                                                                            + toggleOptin() + +

                                                                                                                                                                                                                            + + +

                                                                                                                                                                                                                            Toggle the current user optin value +on the current user and the crm

                                                                                                                                                                                                                            + + + public + toggleOptin() : bool + + + + +
                                                                                                                                                                                                                            + Tags + +
                                                                                                                                                                                                                            +
                                                                                                                                                                                                                            +
                                                                                                                                                                                                                            + throws +
                                                                                                                                                                                                                            +
                                                                                                                                                                                                                            + CrmException + +

                                                                                                                                                                                                                            If a critical error occured.

                                                                                                                                                                                                                            +
                                                                                                                                                                                                                            + +
                                                                                                                                                                                                                            +
                                                                                                                                                                                                                            + throws +
                                                                                                                                                                                                                            +
                                                                                                                                                                                                                            + ApiErrorException + +

                                                                                                                                                                                                                            If any error or \LDC\LDCCRM\Enums\ApiError occurs. +Possibles are : - modelNotFound, If this customer hashcode could not be found.

                                                                                                                                                                                                                            +
                                                                                                                                                                                                                            + +
                                                                                                                                                                                                                            +
                                                                                                                                                                                                                            + +
                                                                                                                                                                                                                            Return values
                                                                                                                                                                                                                            + bool + — +

                                                                                                                                                                                                                            true if the operation succeeded

                                                                                                                                                                                                                            +
                                                                                                                                                                                                                            + + +
                                                                                                                                                                                                                            +
                                                                                                                                                                                                                            + + + + +
                                                                                                                                                                                                                            +
                                                                                                                                                                                                                            +
                                                                                                                                                                                                                            +
                                                                                                                                                                                                                            +

                                                                                                                                                                                                                            Search results

                                                                                                                                                                                                                            + +
                                                                                                                                                                                                                            +
                                                                                                                                                                                                                            +
                                                                                                                                                                                                                              +
                                                                                                                                                                                                                              +
                                                                                                                                                                                                                              +
                                                                                                                                                                                                                              +
                                                                                                                                                                                                                              +
                                                                                                                                                                                                                              + + +
                                                                                                                                                                                                                              + + + + + + + + diff --git a/app/Lib/vendor/crm-client-3.0.6/documentation/css/base.css b/app/Lib/vendor/crm-client-3.0.6/documentation/css/base.css new file mode 100644 index 0000000..db4e807 --- /dev/null +++ b/app/Lib/vendor/crm-client-3.0.6/documentation/css/base.css @@ -0,0 +1,1087 @@ + +:root { + /* Typography */ + --font-primary: 'Source Sans Pro', Helvetica, Arial, sans-serif; + --font-secondary: 'Source Sans Pro', Helvetica, Arial, sans-serif; + --font-monospace: 'Source Code Pro', monospace; + --line-height--primary: 1.6; + --letter-spacing--primary: .05rem; + --text-base-size: 1em; + --text-scale-ratio: 1.2; + + --text-xxs: calc(var(--text-base-size) / var(--text-scale-ratio) / var(--text-scale-ratio) / var(--text-scale-ratio)); + --text-xs: calc(var(--text-base-size) / var(--text-scale-ratio) / var(--text-scale-ratio)); + --text-sm: calc(var(--text-base-size) / var(--text-scale-ratio)); + --text-md: var(--text-base-size); + --text-lg: calc(var(--text-base-size) * var(--text-scale-ratio)); + --text-xl: calc(var(--text-base-size) * var(--text-scale-ratio) * var(--text-scale-ratio)); + --text-xxl: calc(var(--text-base-size) * var(--text-scale-ratio) * var(--text-scale-ratio) * var(--text-scale-ratio)); + --text-xxxl: calc(var(--text-base-size) * var(--text-scale-ratio) * var(--text-scale-ratio) * var(--text-scale-ratio) * var(--text-scale-ratio)); + --text-xxxxl: calc(var(--text-base-size) * var(--text-scale-ratio) * var(--text-scale-ratio) * var(--text-scale-ratio) * var(--text-scale-ratio) * var(--text-scale-ratio)); + --text-xxxxxl: calc(var(--text-base-size) * var(--text-scale-ratio) * var(--text-scale-ratio) * var(--text-scale-ratio) * var(--text-scale-ratio) * var(--text-scale-ratio) * var(--text-scale-ratio)); + + /* Colors */ + --primary-color: hsl(96, 57%, 60%); + --primary-color-darken: hsl(96, 57%, 40%); + --primary-color-darker: hsl(96, 57%, 20%); + --primary-color-darkest: hsl(96, 57%, 10%); + --primary-color-lighten: hsl(96, 57%, 80%); + --primary-color-lighter: hsl(96, 57%, 99%); + --dark-gray: #d1d1d1; + --light-gray: #f0f0f0; + + --text-color: var(--primary-color-darkest); + + --header-height: var(--spacing-xxxxl); + --header-bg-color: var(--primary-color); + --code-background-color: #f7faf5; + --code-border-color: #d6e7cb; + --button-border-color: var(--primary-color-darken); + --button-color: transparent; + --button-color-primary: var(--primary-color); + --button-text-color: #555; + --button-text-color-primary: white; + --popover-background-color: rgba(255, 255, 255, 0.75); + --link-color-primary: var(--primary-color-darken); + --link-hover-color-primary: var(--primary-color-darker); + --form-field-border-color: var(--dark-gray); + --form-field-color: #fff; + --admonition-success-color: var(--primary-color); + --admonition-border-color: silver; + --table-separator-color: var(--primary-color-lighten); + --title-text-color: var(--primary-color); + + --sidebar-border-color: var(--primary-color-lighten); + + /* Grid */ + --container-width: 1400px; + + /* Spacing */ + --spacing-base-size: 1rem; + --spacing-scale-ratio: 1.5; + + --spacing-xxxs: calc(var(--spacing-base-size) / var(--spacing-scale-ratio) / var(--spacing-scale-ratio) / var(--spacing-scale-ratio) / var(--spacing-scale-ratio)); + --spacing-xxs: calc(var(--spacing-base-size) / var(--spacing-scale-ratio) / var(--spacing-scale-ratio) / var(--spacing-scale-ratio)); + --spacing-xs: calc(var(--spacing-base-size) / var(--spacing-scale-ratio) / var(--spacing-scale-ratio)); + --spacing-sm: calc(var(--spacing-base-size) / var(--spacing-scale-ratio)); + --spacing-md: var(--spacing-base-size); + --spacing-lg: calc(var(--spacing-base-size) * var(--spacing-scale-ratio)); + --spacing-xl: calc(var(--spacing-base-size) * var(--spacing-scale-ratio) * var(--spacing-scale-ratio)); + --spacing-xxl: calc(var(--spacing-base-size) * var(--spacing-scale-ratio) * var(--spacing-scale-ratio) * var(--spacing-scale-ratio)); + --spacing-xxxl: calc(var(--spacing-base-size) * var(--spacing-scale-ratio) * var(--spacing-scale-ratio) * var(--spacing-scale-ratio) * var(--spacing-scale-ratio)); + --spacing-xxxxl: calc(var(--spacing-base-size) * var(--spacing-scale-ratio) * var(--spacing-scale-ratio) * var(--spacing-scale-ratio) * var(--spacing-scale-ratio) * var(--spacing-scale-ratio)); + + --border-radius-base-size: 3px; +} + +/* Base Styles +-------------------------------------------------- */ +body { + color: var(--text-color); + font-family: var(--font-primary); + font-size: var(--text-md); + letter-spacing: var(--letter-spacing--primary); + line-height: var(--line-height--primary); +} + +.phpdocumentor h1, +.phpdocumentor h2, +.phpdocumentor h3, +.phpdocumentor h4, +.phpdocumentor h5, +.phpdocumentor h6 { + margin-bottom: var(--spacing-lg); + margin-top: var(--spacing-lg); + font-weight: 600; +} + +.phpdocumentor h1 { + font-size: var(--text-xxxxl); + letter-spacing: var(--letter-spacing--primary); + line-height: 1.2; + margin-top: 0; +} + +.phpdocumentor h2 { + font-size: var(--text-xxxl); + letter-spacing: var(--letter-spacing--primary); + line-height: 1.25; +} + +.phpdocumentor h3 { + font-size: var(--text-xxl); + letter-spacing: var(--letter-spacing--primary); + line-height: 1.3; +} + +.phpdocumentor h4 { + font-size: var(--text-xl); + letter-spacing: calc(var(--letter-spacing--primary) / 2); + line-height: 1.35; + margin-bottom: var(--spacing-md); +} + +.phpdocumentor h5 { + font-size: var(--text-lg); + letter-spacing: calc(var(--letter-spacing--primary) / 4); + line-height: 1.5; + margin-bottom: var(--spacing-md); + margin-top: var(--spacing-md); +} + +.phpdocumentor h6 { + font-size: var(--text-md); + letter-spacing: 0; + line-height: var(--line-height--primary); + margin-bottom: var(--spacing-md); + margin-top: var(--spacing-md); +} + +.phpdocumentor h1 .headerlink, +.phpdocumentor h2 .headerlink, +.phpdocumentor h3 .headerlink, +.phpdocumentor h4 .headerlink, +.phpdocumentor h5 .headerlink, +.phpdocumentor h6 .headerlink +{ + transition: all .3s ease-in-out; + opacity: 0; + text-decoration: none; + color: silver; + font-size: 80%; +} + +.phpdocumentor h1:hover .headerlink, +.phpdocumentor h2:hover .headerlink, +.phpdocumentor h3:hover .headerlink, +.phpdocumentor h4:hover .headerlink, +.phpdocumentor h5:hover .headerlink, +.phpdocumentor h6:hover .headerlink +{ + opacity: 1; +} +.phpdocumentor p { + margin-top: 0; + margin-bottom: var(--spacing-md); +} +.phpdocumentor figure { + margin-bottom: var(--spacing-md); +} + +.phpdocumentor figcaption { + text-align: center; + font-style: italic; + font-size: 80%; +} +.phpdocumentor-line { + border-top: 1px solid #E1E1E1; + border-width: 0; + margin-bottom: var(--spacing-xxl); + margin-top: var(--spacing-xxl); +} +.phpdocumentor-section { + box-sizing: border-box; + margin: 0 auto; + max-width: var(--container-width); + padding: 0 var(--spacing-lg); + position: relative; + width: 100%; +} + +@media (min-width: 1200px) { + .phpdocumentor-section { + padding: 0; + width: 95%; + } +} +.phpdocumentor-column { + box-sizing: border-box; + float: left; + width: 100%; +} + +@media (min-width: 550px) { + .phpdocumentor-column { + margin-left: 4%; + } + + .phpdocumentor-column:first-child { + margin-left: 0; + } + + .-one.phpdocumentor-column { + width: 4.66666666667%; + } + + .-two.phpdocumentor-column { + width: 13.3333333333%; + } + + .-three.phpdocumentor-column { + width: 22%; + } + + .-four.phpdocumentor-column { + width: 30.6666666667%; + } + + .-five.phpdocumentor-column { + width: 39.3333333333%; + } + + .-six.phpdocumentor-column { + width: 48%; + } + + .-seven.phpdocumentor-column { + width: 56.6666666667%; + } + + .-eight.phpdocumentor-column { + width: 65.3333333333%; + } + + .-nine.phpdocumentor-column { + width: 74.0%; + } + + .-ten.phpdocumentor-column { + width: 82.6666666667%; + } + + .-eleven.phpdocumentor-column { + width: 91.3333333333%; + } + + .-twelve.phpdocumentor-column { + margin-left: 0; + width: 100%; + } + + .-one-third.phpdocumentor-column { + width: 30.6666666667%; + } + + .-two-thirds.phpdocumentor-column { + width: 65.3333333333%; + } + + .-one-half.phpdocumentor-column { + width: 48%; + } + + /* Offsets */ + .-offset-by-one.phpdocumentor-column { + margin-left: 8.66666666667%; + } + + .-offset-by-two.phpdocumentor-column { + margin-left: 17.3333333333%; + } + + .-offset-by-three.phpdocumentor-column { + margin-left: 26%; + } + + .-offset-by-four.phpdocumentor-column { + margin-left: 34.6666666667%; + } + + .-offset-by-five.phpdocumentor-column { + margin-left: 43.3333333333%; + } + + .-offset-by-six.phpdocumentor-column { + margin-left: 52%; + } + + .-offset-by-seven.phpdocumentor-column { + margin-left: 60.6666666667%; + } + + .-offset-by-eight.phpdocumentor-column { + margin-left: 69.3333333333%; + } + + .-offset-by-nine.phpdocumentor-column { + margin-left: 78.0%; + } + + .-offset-by-ten.phpdocumentor-column { + margin-left: 86.6666666667%; + } + + .-offset-by-eleven.phpdocumentor-column { + margin-left: 95.3333333333%; + } + + .-offset-by-one-third.phpdocumentor-column { + margin-left: 34.6666666667%; + } + + .-offset-by-two-thirds.phpdocumentor-column { + margin-left: 69.3333333333%; + } + + .-offset-by-one-half.phpdocumentor-column { + margin-left: 52%; + } +} +.phpdocumentor a { + color: var(--link-color-primary); +} + +.phpdocumentor a:hover { + color: var(--link-hover-color-primary); +} +.phpdocumentor-button { + background-color: var(--button-color); + border: 1px solid var(--button-border-color); + border-radius: var(--border-radius-base-size); + box-sizing: border-box; + color: var(--button-text-color); + cursor: pointer; + display: inline-block; + font-size: var(--text-sm); + font-weight: 600; + height: 38px; + letter-spacing: .1rem; + line-height: 38px; + padding: 0 var(--spacing-xxl); + text-align: center; + text-decoration: none; + text-transform: uppercase; + white-space: nowrap; + margin-bottom: var(--spacing-md); +} + +.phpdocumentor-button .-wide { + width: 100%; +} + +.phpdocumentor-button:hover, +.phpdocumentor-button:focus { + border-color: #888; + color: #333; + outline: 0; +} + +.phpdocumentor-button.-primary { + background-color: var(--button-color-primary); + border-color: var(--button-color-primary); + color: var(--button-text-color-primary); +} + +.phpdocumentor-button.-primary:hover, +.phpdocumentor-button.-primary:focus { + background-color: var(--link-color-primary); + border-color: var(--link-color-primary); + color: var(--button-text-color-primary); +} +.phpdocumentor form { + margin-bottom: var(--spacing-md); +} + +.phpdocumentor-field { + background-color: var(--form-field-color); + border: 1px solid var(--form-field-border-color); + border-radius: var(--border-radius-base-size); + box-shadow: none; + box-sizing: border-box; + height: 38px; + padding: var(--spacing-xxxs) var(--spacing-xxs); /* The 6px vertically centers text on FF, ignored by Webkit */ + margin-bottom: var(--spacing-md); +} + +/* Removes awkward default styles on some inputs for iOS */ +input[type="email"], +input[type="number"], +input[type="search"], +input[type="text"], +input[type="tel"], +input[type="url"], +input[type="password"], +textarea { + -moz-appearance: none; + -webkit-appearance: none; + appearance: none; +} + +.phpdocumentor-textarea { + min-height: 65px; + padding-bottom: var(--spacing-xxxs); + padding-top: var(--spacing-xxxs); +} + +.phpdocumentor-field:focus { + border: 1px solid var(--button-color-primary); + outline: 0; +} + +.phpdocumentor-label { + display: block; + margin-bottom: var(--spacing-xs); +} + +.phpdocumentor-fieldset { + border-width: 0; + padding: 0; +} + +input[type="checkbox"].phpdocumentor-field, +input[type="radio"].phpdocumentor-field { + display: inline; +} +div.phpdocumentor-list > ul, +ul.phpdocumentor-list { + list-style: circle inside; +} + +ol.phpdocumentor-list { + list-style: decimal inside; +} + +div.phpdocumentor-list > ul, +ol.phpdocumentor-list, +ul.phpdocumentor-list { + margin-top: 0; + padding-left: 0; + margin-bottom: var(--spacing-md); +} + +dl { + margin-bottom: var(--spacing-md); +} + +div.phpdocumentor-list > ul ul, +ul.phpdocumentor-list ul.phpdocumentor-list, +ul.phpdocumentor-list ol.phpdocumentor-list, +ol.phpdocumentor-list ol.phpdocumentor-list, +ol.phpdocumentor-list ul.phpdocumentor-list { + font-size: var(--text-sm); + margin: var(--spacing-xs) 0 var(--spacing-xs) calc(var(--spacing-xs) * 2); +} + +li.phpdocumentor-list { + margin-bottom: var(--spacing-md); +} + +.phpdocumentor dl dt { + margin-bottom: var(--spacing-xs); +} + +.phpdocumentor dl dd { + margin-bottom: var(--spacing-md); +} +.phpdocumentor pre { + margin-bottom: var(--spacing-md); +} + +.phpdocumentor-code { + font-family: var(--font-monospace); + background: var(--code-background-color); + border: 1px solid var(--code-border-color); + border-radius: var(--border-radius-base-size); + font-size: var(--text-sm); + padding: var(--spacing-sm) var(--spacing-md); + width: 100%; + box-sizing: border-box; +} + +.phpdocumentor-code.-dark { + background: var(--primary-color-darkest); + color: var(--light-gray); + box-shadow: 0 2px 3px var(--dark-gray); +} + +pre > .phpdocumentor-code { + display: block; + white-space: pre; +} +.phpdocumentor blockquote { + border-left: 4px solid var(--primary-color-darken); + margin: var(--spacing-md) 0; + padding: var(--spacing-xs) var(--spacing-sm); + color: var(--primary-color-darker); + font-style: italic; +} + +.phpdocumentor blockquote p:last-of-type { + margin-bottom: 0; +} +.phpdocumentor table { + margin-bottom: var(--spacing-md); +} + +th.phpdocumentor-heading, +td.phpdocumentor-cell { + border-bottom: 1px solid var(--table-separator-color); + padding: var(--spacing-sm) var(--spacing-md); + text-align: left; +} + +th.phpdocumentor-heading:first-child, +td.phpdocumentor-cell:first-child { + padding-left: 0; +} + +th.phpdocumentor-heading:last-child, +td.phpdocumentor-cell:last-child { + padding-right: 0; +} + +.phpdocumentor-header { + display: flex; + flex-direction: row; + align-items: stretch; + flex-wrap: wrap; + justify-content: space-between; + height: auto; + padding: var(--spacing-md) var(--spacing-md); +} + +.phpdocumentor-header__menu-button { + position: absolute; + top: -100%; + left: -100%; +} + +.phpdocumentor-header__menu-icon { + font-size: 2rem; + color: var(--primary-color); +} + +.phpdocumentor-header__menu-button:checked ~ .phpdocumentor-topnav { + max-height: 250px; + padding-top: var(--spacing-md); +} + +@media (min-width: 1000px) { + .phpdocumentor-header { + flex-direction: row; + padding: var(--spacing-lg) var(--spacing-lg); + min-height: var(--header-height); + } + + .phpdocumentor-header__menu-icon { + display: none; + } +} + +@media (min-width: 1000px) { + .phpdocumentor-header { + padding-top: 0; + padding-bottom: 0; + } +} +@media (min-width: 1200px) { + .phpdocumentor-header { + padding: 0; + } +} +.phpdocumentor-title { + box-sizing: border-box; + color: var(--title-text-color); + font-size: var(--text-xxl); + letter-spacing: .05rem; + font-weight: normal; + width: auto; + margin: 0; + display: flex; + align-items: center; +} + +.phpdocumentor-title.-without-divider { + border: none; +} + +.phpdocumentor-title__link { + transition: all .3s ease-out; + display: flex; + color: var(--title-text-color); + text-decoration: none; + font-weight: normal; + white-space: nowrap; + transform: scale(.75); + transform-origin: left; +} + +.phpdocumentor-title__link:hover { + transform: perspective(15rem) translateX(.5rem); + font-weight: 600; +} + +@media (min-width: 1000px) { + .phpdocumentor-title { + width: 30.6666666667%; + border-right: var(--sidebar-border-color) solid 1px; + } + + .phpdocumentor-title__link { + transform-origin: left; + } +} + +@media (min-width: 1000px) { + .phpdocumentor-title__link { + transform: scale(.85); + } +} + +@media (min-width: 1200px) { + .phpdocumentor-title__link { + transform: scale(1); + } +} +.phpdocumentor-topnav { + display: flex; + align-items: center; + margin: 0; + max-height: 0; + overflow: hidden; + transition: max-height 0.2s ease-out; + flex-basis: 100%; +} + +.phpdocumentor-topnav__menu { + text-align: right; + list-style: none; + margin: 0; + padding: 0; + flex: 1; + display: flex; + flex-flow: row wrap; + justify-content: center; +} + +.phpdocumentor-topnav__menu-item { + margin: 0; + width: 100%; + display: inline-block; + text-align: center; + padding: var(--spacing-sm) 0 +} + +.phpdocumentor-topnav__menu-item.-social { + width: auto; + padding: var(--spacing-sm) +} + +.phpdocumentor-topnav__menu-item a { + display: inline-block; + color: var(--text-color); + text-decoration: none; + font-size: var(--text-lg); + transition: all .3s ease-out; + border-bottom: 1px dotted transparent; + line-height: 1; +} + +.phpdocumentor-topnav__menu-item a:hover { + transform: perspective(15rem) translateY(.1rem); + border-bottom: 1px dotted var(--text-color); +} + +@media (min-width: 1000px) { + .phpdocumentor-topnav { + max-height: none; + overflow: visible; + flex-basis: auto; + } + + .phpdocumentor-topnav__menu { + display: flex; + flex-flow: row wrap; + justify-content: flex-end; + } + + .phpdocumentor-topnav__menu-item, + .phpdocumentor-topnav__menu-item.-social { + width: auto; + display: inline; + text-align: right; + padding: 0 0 0 var(--spacing-md) + } +} +.phpdocumentor-sidebar { + margin: 0; + overflow: hidden; + max-height: 0; +} + +.phpdocumentor .phpdocumentor-sidebar .phpdocumentor-list { + padding: var(--spacing-xs) var(--spacing-md); + list-style: none; + margin: 0; +} + +.phpdocumentor .phpdocumentor-sidebar li { + white-space: nowrap; + text-overflow: ellipsis; + overflow: hidden; + padding: 0 0 var(--spacing-xxxs) var(--spacing-md); +} + +.phpdocumentor .phpdocumentor-sidebar abbr, +.phpdocumentor .phpdocumentor-sidebar a { + text-decoration: none; + border-bottom: none; + color: var(--text-color); + font-size: var(--text-md); + padding-left: 0; + transition: padding-left .4s ease-out; +} + +.phpdocumentor .phpdocumentor-sidebar a:hover { + padding-left: 5px; + font-weight: 600; +} + +.phpdocumentor .phpdocumentor-sidebar__category > * { + border-left: 1px solid var(--primary-color-lighten); +} + +.phpdocumentor .phpdocumentor-sidebar__category { + margin-bottom: var(--spacing-lg); +} + +.phpdocumentor .phpdocumentor-sidebar__category-header { + font-size: var(--text-md); + margin-bottom: var(--spacing-xs); + color: var(--link-color-primary); + font-weight: 600; + border-left: 0; +} + +.phpdocumentor .phpdocumentor-sidebar__root-package, +.phpdocumentor .phpdocumentor-sidebar__root-namespace { + font-size: var(--text-md); + margin: 0; + padding-top: var(--spacing-xs); + padding-left: var(--spacing-md); + color: var(--text-color); + font-weight: normal; +} + +@media (min-width: 550px) { + .phpdocumentor-sidebar { + border-right: var(--sidebar-border-color) solid 1px; + } +} + +.phpdocumentor-sidebar__menu-button { + position: absolute; + top: -100%; + left: -100%; +} + +.phpdocumentor-sidebar__menu-icon { + font-size: var(--text-md); + font-weight: 600; + background: var(--primary-color); + color: white; + margin: 0 0 var(--spacing-lg); + display: block; + padding: var(--spacing-sm); + text-align: center; + border-radius: 3px; + text-transform: uppercase; + letter-spacing: .15rem; +} + +.phpdocumentor-sidebar__menu-button:checked ~ .phpdocumentor-sidebar { + max-height: 100%; + padding-top: var(--spacing-md); +} + +@media (min-width: 550px) { + .phpdocumentor-sidebar { + overflow: visible; + max-height: 100%; + } + + .phpdocumentor-sidebar__menu-icon { + display: none; + } +} +.phpdocumentor-admonition { + border: 1px solid var(--admonition-border-color); + border-radius: var(--border-radius-base-size); + border-color: var(--primary-color-lighten); + background-color: var(--primary-color-lighter); + padding: var(--spacing-lg); + margin: var(--spacing-lg) 0; + display: flex; + flex-direction: row; + align-items: flex-start; +} + +.phpdocumentor-admonition p:last-of-type { + margin-bottom: 0; +} + +.phpdocumentor-admonition--success, +.phpdocumentor-admonition.-success { + border-color: var(--admonition-success-color); +} + +.phpdocumentor-admonition__icon { + margin-right: var(--spacing-md); + color: var(--primary-color); + max-width: 3rem; +} +.phpdocumentor ul.phpdocumentor-breadcrumbs { + font-size: var(--text-md); + list-style: none; + margin: 0; + padding: 0; +} + +.phpdocumentor ul.phpdocumentor-breadcrumbs a { + color: var(--text-color); + text-decoration: none; +} + +.phpdocumentor ul.phpdocumentor-breadcrumbs > li { + display: inline-block; + margin: 0; +} + +.phpdocumentor ul.phpdocumentor-breadcrumbs > li + li:before { + color: var(--dark-gray); + content: "\\\A0"; + padding: 0; +} +.phpdocumentor .phpdocumentor-back-to-top { + position: fixed; + bottom: 2rem; + font-size: 2.5rem; + opacity: .25; + transition: all .3s ease-in-out; + right: 2rem; +} + +.phpdocumentor .phpdocumentor-back-to-top:hover { + color: var(--link-color-primary); + opacity: 1; +} +.phpdocumentor-search { + position: relative; + display: none; /** disable by default for non-js flow */ + opacity: .3; /** white-out default for loading indication */ + transition: opacity .3s, background .3s; + margin: var(--spacing-sm) 0; + flex: 1; + min-width: 100%; +} + +.phpdocumentor-search label { + display: flex; + align-items: center; + flex: 1; +} + +.phpdocumentor-search__icon { + color: var(--primary-color); + margin-right: var(--spacing-sm); + width: 1rem; + height: 1rem; +} + +.phpdocumentor-search--enabled { + display: flex; +} + +.phpdocumentor-search--active { + opacity: 1; +} + +.phpdocumentor-search input:disabled { + background-color: lightgray; +} + +.phpdocumentor-search__field:focus, +.phpdocumentor-search__field { + margin-bottom: 0; + border: 0; + border-bottom: 2px solid var(--primary-color); + padding: 0; + border-radius: 0; + flex: 1; +} + +@media (min-width: 1000px) { + .phpdocumentor-search { + min-width: auto; + max-width: 20rem; + margin: 0 0 0 auto; + } +} +.phpdocumentor-content { + position: relative; +} + +.phpdocumentor-search-results { + backdrop-filter: blur(5px); + background: var(--popover-background-color); + position: fixed; + top: 0; + left: 0; + right: 0; + bottom: 0; + padding: 0; + opacity: 1; + pointer-events: all; + + transition: opacity .3s, background .3s; +} + +.phpdocumentor-search-results--hidden { + background: transparent; + backdrop-filter: blur(0); + opacity: 0; + pointer-events: none; +} + +.phpdocumentor-search-results__dialog { + width: 100%; + background: white; + max-height: 100%; + display: flex; + flex-direction: column; +} + +.phpdocumentor-search-results__body { + overflow: auto; +} + +.phpdocumentor-search-results__header { + padding: var(--spacing-lg); + display: flex; + justify-content: space-between; + background: var(--primary-color-darken); + color: white; + align-items: center; +} + +.phpdocumentor-search-results__close { + font-size: var(--text-xl); + background: none; + border: none; + padding: 0; + margin: 0; +} + +.phpdocumentor .phpdocumentor-search-results__title { + font-size: var(--text-xl); + margin-bottom: 0; +} + +.phpdocumentor-search-results__entries { + list-style: none; + padding: 0 var(--spacing-lg); + margin: 0; +} + +.phpdocumentor-search-results__entry { + border-bottom: 1px solid var(--table-separator-color); + padding: var(--spacing-sm) 0; + text-align: left; +} + +.phpdocumentor-search-results__entry a { + display: block; +} + +.phpdocumentor-search-results__entry small { + margin-top: var(--spacing-xs); + margin-bottom: var(--spacing-md); + color: var(--primary-color-darker); + display: block; + word-break: break-word; +} + +.phpdocumentor-search-results__entry h3 { + font-size: var(--text-lg); + margin: 0; +} + +@media (min-width: 550px) { + .phpdocumentor-search-results { + padding: 0 var(--spacing-lg); + } + + .phpdocumentor-search-results__entry h3 { + font-size: var(--text-xxl); + } + + .phpdocumentor-search-results__dialog { + margin: var(--spacing-xl) auto; + max-width: 40rem; + background: white; + border: 1px solid silver; + box-shadow: 0 2px 5px silver; + max-height: 40rem; + border-radius: 3px; + } +} +.phpdocumentor-modal { + position: fixed; + width: 100vw; + height: 100vh; + opacity: 0; + visibility: hidden; + transition: all 0.3s ease; + top: 0; + left: 0; + display: flex; + align-items: center; + justify-content: center; +} + +.phpdocumentor-modal__open { + visibility: visible; + opacity: 1; + transition-delay: 0s; +} + +.phpdocumentor-modal-bg { + position: absolute; + background: gray; + opacity: 50%; + width: 100%; + height: 100%; +} + +.phpdocumentor-modal-container { + border-radius: 1em; + background: #fff; + position: relative; + padding: 2em; +} + +.phpdocumentor-modal__close { + position: absolute; + right: 0.75em; + top: 0.75em; + outline: none; + appearance: none; + color: var(--primary-color); + background: none; + border: 0px; + font-weight: bold; + cursor: pointer; +} + +/* Used for screen readers and such */ +.visually-hidden { + display: none; +} + +.float-right { + float: right; +} + +.float-left { + float: left; +} diff --git a/app/Lib/vendor/crm-client-3.0.6/documentation/css/normalize.css b/app/Lib/vendor/crm-client-3.0.6/documentation/css/normalize.css new file mode 100644 index 0000000..579152b --- /dev/null +++ b/app/Lib/vendor/crm-client-3.0.6/documentation/css/normalize.css @@ -0,0 +1,427 @@ +/*! normalize.css v3.0.2 | MIT License | git.io/normalize */ + +/** + * 1. Set default font family to sans-serif. + * 2. Prevent iOS text size adjust after orientation change, without disabling + * user zoom. + */ + +html { + font-family: sans-serif; /* 1 */ + -ms-text-size-adjust: 100%; /* 2 */ + -webkit-text-size-adjust: 100%; /* 2 */ +} + +/** + * Remove default margin. + */ + +body { + margin: 0; +} + +/* HTML5 display definitions + ========================================================================== */ + +/** + * Correct `block` display not defined for any HTML5 element in IE 8/9. + * Correct `block` display not defined for `details` or `summary` in IE 10/11 + * and Firefox. + * Correct `block` display not defined for `main` in IE 11. + */ + +article, +aside, +details, +figcaption, +figure, +footer, +header, +hgroup, +main, +menu, +nav, +section, +summary { + display: block; +} + +/** + * 1. Correct `inline-block` display not defined in IE 8/9. + * 2. Normalize vertical alignment of `progress` in Chrome, Firefox, and Opera. + */ + +audio, +canvas, +progress, +video { + display: inline-block; /* 1 */ + vertical-align: baseline; /* 2 */ +} + +/** + * Prevent modern browsers from displaying `audio` without controls. + * Remove excess height in iOS 5 devices. + */ + +audio:not([controls]) { + display: none; + height: 0; +} + +/** + * Address `[hidden]` styling not present in IE 8/9/10. + * Hide the `template` element in IE 8/9/11, Safari, and Firefox < 22. + */ + +[hidden], +template { + display: none; +} + +/* Links + ========================================================================== */ + +/** + * Remove the gray background color from active links in IE 10. + */ + +a { + background-color: transparent; +} + +/** + * Improve readability when focused and also mouse hovered in all browsers. + */ + +a:active, +a:hover { + outline: 0; +} + +/* Text-level semantics + ========================================================================== */ + +/** + * Address styling not present in IE 8/9/10/11, Safari, and Chrome. + */ + +abbr[title] { + border-bottom: 1px dotted; +} + +/** + * Address style set to `bolder` in Firefox 4+, Safari, and Chrome. + */ + +b, +strong { + font-weight: bold; +} + +/** + * Address styling not present in Safari and Chrome. + */ + +dfn { + font-style: italic; +} + +/** + * Address variable `h1` font-size and margin within `section` and `article` + * contexts in Firefox 4+, Safari, and Chrome. + */ + +h1 { + font-size: 2em; + margin: 0.67em 0; +} + +/** + * Address styling not present in IE 8/9. + */ + +mark { + background: #ff0; + color: #000; +} + +/** + * Address inconsistent and variable font size in all browsers. + */ + +small { + font-size: 80%; +} + +/** + * Prevent `sub` and `sup` affecting `line-height` in all browsers. + */ + +sub, +sup { + font-size: 75%; + line-height: 0; + position: relative; + vertical-align: baseline; +} + +sup { + top: -0.5em; +} + +sub { + bottom: -0.25em; +} + +/* Embedded content + ========================================================================== */ + +/** + * Remove border when inside `a` element in IE 8/9/10. + */ + +img { + border: 0; +} + +/** + * Correct overflow not hidden in IE 9/10/11. + */ + +svg:not(:root) { + overflow: hidden; +} + +/* Grouping content + ========================================================================== */ + +/** + * Address margin not present in IE 8/9 and Safari. + */ + +figure { + margin: 1em 40px; +} + +/** + * Address differences between Firefox and other browsers. + */ + +hr { + -moz-box-sizing: content-box; + box-sizing: content-box; + height: 0; +} + +/** + * Contain overflow in all browsers. + */ + +pre { + overflow: auto; +} + +/** + * Address odd `em`-unit font size rendering in all browsers. + */ + +code, +kbd, +pre, +samp { + font-family: var(--font-monospace); + font-size: 1em; +} + +/* Forms + ========================================================================== */ + +/** + * Known limitation: by default, Chrome and Safari on OS X allow very limited + * styling of `select`, unless a `border` property is set. + */ + +/** + * 1. Correct color not being inherited. + * Known issue: affects color of disabled elements. + * 2. Correct font properties not being inherited. + * 3. Address margins set differently in Firefox 4+, Safari, and Chrome. + */ + +button, +input, +optgroup, +select, +textarea { + color: inherit; /* 1 */ + font: inherit; /* 2 */ + margin: 0; /* 3 */ +} + +/** + * Address `overflow` set to `hidden` in IE 8/9/10/11. + */ + +button { + overflow: visible; +} + +/** + * Address inconsistent `text-transform` inheritance for `button` and `select`. + * All other form control elements do not inherit `text-transform` values. + * Correct `button` style inheritance in Firefox, IE 8/9/10/11, and Opera. + * Correct `select` style inheritance in Firefox. + */ + +button, +select { + text-transform: none; +} + +/** + * 1. Avoid the WebKit bug in Android 4.0.* where (2) destroys native `audio` + * and `video` controls. + * 2. Correct inability to style clickable `input` types in iOS. + * 3. Improve usability and consistency of cursor style between image-type + * `input` and others. + */ + +button, +html input[type="button"], /* 1 */ +input[type="reset"], +input[type="submit"] { + -webkit-appearance: button; /* 2 */ + cursor: pointer; /* 3 */ +} + +/** + * Re-set default cursor for disabled elements. + */ + +button[disabled], +html input[disabled] { + cursor: default; +} + +/** + * Remove inner padding and border in Firefox 4+. + */ + +button::-moz-focus-inner, +input::-moz-focus-inner { + border: 0; + padding: 0; +} + +/** + * Address Firefox 4+ setting `line-height` on `input` using `!important` in + * the UA stylesheet. + */ + +input { + line-height: normal; +} + +/** + * It's recommended that you don't attempt to style these elements. + * Firefox's implementation doesn't respect box-sizing, padding, or width. + * + * 1. Address box sizing set to `content-box` in IE 8/9/10. + * 2. Remove excess padding in IE 8/9/10. + */ + +input[type="checkbox"], +input[type="radio"] { + box-sizing: border-box; /* 1 */ + padding: 0; /* 2 */ +} + +/** + * Fix the cursor style for Chrome's increment/decrement buttons. For certain + * `font-size` values of the `input`, it causes the cursor style of the + * decrement button to change from `default` to `text`. + */ + +input[type="number"]::-webkit-inner-spin-button, +input[type="number"]::-webkit-outer-spin-button { + height: auto; +} + +/** + * 1. Address `appearance` set to `searchfield` in Safari and Chrome. + * 2. Address `box-sizing` set to `border-box` in Safari and Chrome + * (include `-moz` to future-proof). + */ + +input[type="search"] { + -webkit-appearance: textfield; /* 1 */ + -moz-box-sizing: content-box; + -webkit-box-sizing: content-box; /* 2 */ + box-sizing: content-box; +} + +/** + * Remove inner padding and search cancel button in Safari and Chrome on OS X. + * Safari (but not Chrome) clips the cancel button when the search input has + * padding (and `textfield` appearance). + */ + +input[type="search"]::-webkit-search-cancel-button, +input[type="search"]::-webkit-search-decoration { + -webkit-appearance: none; +} + +/** + * Define consistent border, margin, and padding. + */ + +fieldset { + border: 1px solid #c0c0c0; + margin: 0 2px; + padding: 0.35em 0.625em 0.75em; +} + +/** + * 1. Correct `color` not being inherited in IE 8/9/10/11. + * 2. Remove padding so people aren't caught out if they zero out fieldsets. + */ + +legend { + border: 0; /* 1 */ + padding: 0; /* 2 */ +} + +/** + * Remove default vertical scrollbar in IE 8/9/10/11. + */ + +textarea { + overflow: auto; +} + +/** + * Don't inherit the `font-weight` (applied by a rule above). + * NOTE: the default cannot safely be changed in Chrome and Safari on OS X. + */ + +optgroup { + font-weight: bold; +} + +/* Tables + ========================================================================== */ + +/** + * Remove most spacing between table cells. + */ + +table { + border-collapse: collapse; + border-spacing: 0; +} + +td, +th { + padding: 0; +} diff --git a/app/Lib/vendor/crm-client-3.0.6/documentation/css/template.css b/app/Lib/vendor/crm-client-3.0.6/documentation/css/template.css new file mode 100644 index 0000000..31f00e3 --- /dev/null +++ b/app/Lib/vendor/crm-client-3.0.6/documentation/css/template.css @@ -0,0 +1,188 @@ +.phpdocumentor-summary { + font-style: italic; +} +.phpdocumentor-description { + margin-bottom: var(--spacing-md); +} +.phpdocumentor-element { + position: relative; +} + +.phpdocumentor .phpdocumentor-element__name { + line-height: 1; +} + +.phpdocumentor-element__package, +.phpdocumentor-element__extends, +.phpdocumentor-element__implements { + display: block; + font-size: var(--text-xxs); + font-weight: normal; + opacity: .7; +} + +.phpdocumentor-element__package .phpdocumentor-breadcrumbs { + display: inline; +} + +.phpdocumentor-element:not(:last-child) { + border-bottom: 1px solid var(--primary-color-lighten); + padding-bottom: var(--spacing-lg); +} + +.phpdocumentor-element.-deprecated .phpdocumentor-element__name { + text-decoration: line-through; +} + +.phpdocumentor-element__modifier { + font-size: var(--text-xxs); + padding: calc(var(--spacing-base-size) / 4) calc(var(--spacing-base-size) / 2); + color: var(--text-color); + background-color: var(--light-gray); + border-radius: 3px; + text-transform: uppercase; +} +.phpdocumentor-signature { + display: inline-block; + font-size: var(--text-sm); + margin-bottom: var(--spacing-md); +} + +.phpdocumentor-signature.-deprecated .phpdocumentor-signature__name { + text-decoration: line-through; +} +.phpdocumentor-table-of-contents { +} + +.phpdocumentor-table-of-contents .phpdocumentor-table-of-contents__entry { + padding-top: var(--spacing-xs); + margin-left: 2rem; + display: flex; +} + +.phpdocumentor-table-of-contents .phpdocumentor-table-of-contents__entry > a { + flex: 0 1 auto; +} + +.phpdocumentor-table-of-contents .phpdocumentor-table-of-contents__entry > span { + flex: 1; + white-space: nowrap; + text-overflow: ellipsis; + overflow: hidden; +} + +.phpdocumentor-table-of-contents .phpdocumentor-table-of-contents__entry:after { + content: ''; + height: 12px; + width: 12px; + left: 16px; + position: absolute; +} +.phpdocumentor-table-of-contents .phpdocumentor-table-of-contents__entry.-private:after { + background: url('data:image/svg+xml;utf8,') no-repeat; +} +.phpdocumentor-table-of-contents .phpdocumentor-table-of-contents__entry.-protected:after { + left: 13px; + background: url('data:image/svg+xml;utf8,') no-repeat; +} + +.phpdocumentor-table-of-contents .phpdocumentor-table-of-contents__entry:before { + width: 1.25rem; + height: 1.25rem; + line-height: 1.25rem; + background: transparent url('data:image/svg+xml;utf8,') no-repeat center center; + content: ''; + position: absolute; + left: 0; + border-radius: 50%; + font-weight: 600; + color: white; + text-align: center; + font-size: .75rem; + margin-top: .2rem; +} + +.phpdocumentor-table-of-contents .phpdocumentor-table-of-contents__entry.-method:before { + content: 'M'; + background-image: url('data:image/svg+xml;utf8,'); +} + +.phpdocumentor-table-of-contents .phpdocumentor-table-of-contents__entry.-function:before { + content: 'M'; + background-image: url('data:image/svg+xml;utf8,'); +} + +.phpdocumentor-table-of-contents .phpdocumentor-table-of-contents__entry.-property:before { + content: 'P' +} + +.phpdocumentor-table-of-contents .phpdocumentor-table-of-contents__entry.-constant:before { + content: 'C'; + background-color: transparent; + background-image: url('data:image/svg+xml;utf8,'); +} + +.phpdocumentor-table-of-contents .phpdocumentor-table-of-contents__entry.-class:before { + content: 'C' +} + +.phpdocumentor-table-of-contents .phpdocumentor-table-of-contents__entry.-interface:before { + content: 'I' +} + +.phpdocumentor-table-of-contents .phpdocumentor-table-of-contents__entry.-trait:before { + content: 'T' +} + +.phpdocumentor-table-of-contents .phpdocumentor-table-of-contents__entry.-namespace:before { + content: 'N' +} + +.phpdocumentor-table-of-contents .phpdocumentor-table-of-contents__entry.-package:before { + content: 'P' +} + +.phpdocumentor-table-of-contents dd { + font-style: italic; + margin-left: 2rem; +} +.phpdocumentor-element-found-in { + position: absolute; + top: 0; + right: 0; + font-size: var(--text-sm); + color: gray; +} + +.phpdocumentor-element-found-in .phpdocumentor-element-found-in__source { + flex: 0 1 auto; + display: inline-flex; +} + +.phpdocumentor-element-found-in .phpdocumentor-element-found-in__source:after { + width: 1.25rem; + height: 1.25rem; + line-height: 1.25rem; + background: transparent url('data:image/svg+xml;utf8,') no-repeat center center; + content: ''; + left: 0; + border-radius: 50%; + font-weight: 600; + text-align: center; + font-size: .75rem; + margin-top: .2rem; +} +.phpdocumentor-class-graph { + width: 100%; height: 600px; border:1px solid black; overflow: hidden +} + +.phpdocumentor-class-graph__graph { + width: 100%; +} +.phpdocumentor-tag-list__definition { + display: flex; +} + +.phpdocumentor-tag-link { + margin-right: var(--spacing-sm); +} diff --git a/app/Lib/vendor/crm-client-3.0.6/documentation/files/examples-customerexample.html b/app/Lib/vendor/crm-client-3.0.6/documentation/files/examples-customerexample.html new file mode 100644 index 0000000..7bb0da2 --- /dev/null +++ b/app/Lib/vendor/crm-client-3.0.6/documentation/files/examples-customerexample.html @@ -0,0 +1,140 @@ + + + + + CRM V2 + + + + + + + + + + + + + + + + + + + +
                                                                                                                                                                                                                              +

                                                                                                                                                                                                                              CRM V2

                                                                                                                                                                                                                              + + + + + +
                                                                                                                                                                                                                              + +
                                                                                                                                                                                                                              +
                                                                                                                                                                                                                              + + + + +
                                                                                                                                                                                                                              +
                                                                                                                                                                                                                                +
                                                                                                                                                                                                                              + +
                                                                                                                                                                                                                              +

                                                                                                                                                                                                                              CustomerExample.php

                                                                                                                                                                                                                              + + +
                                                                                                                                                                                                                              + + + + + + + + + + + + + + +
                                                                                                                                                                                                                              +
                                                                                                                                                                                                                              +
                                                                                                                                                                                                                              +
                                                                                                                                                                                                                              +

                                                                                                                                                                                                                              Search results

                                                                                                                                                                                                                              + +
                                                                                                                                                                                                                              +
                                                                                                                                                                                                                              +
                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                + + +
                                                                                                                                                                                                                                + + + + + + + + diff --git a/app/Lib/vendor/crm-client-3.0.6/documentation/files/src-crmapiv2.html b/app/Lib/vendor/crm-client-3.0.6/documentation/files/src-crmapiv2.html new file mode 100644 index 0000000..9e3241b --- /dev/null +++ b/app/Lib/vendor/crm-client-3.0.6/documentation/files/src-crmapiv2.html @@ -0,0 +1,151 @@ + + + + + CRM V2 + + + + + + + + + + + + + + + + + + + +
                                                                                                                                                                                                                                +

                                                                                                                                                                                                                                CRM V2

                                                                                                                                                                                                                                + + + + + +
                                                                                                                                                                                                                                + +
                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                + + + + +
                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                  +
                                                                                                                                                                                                                                + +
                                                                                                                                                                                                                                +

                                                                                                                                                                                                                                CrmApiV2.php

                                                                                                                                                                                                                                + + +
                                                                                                                                                                                                                                + + + + + + +

                                                                                                                                                                                                                                + Interfaces, Classes and Traits + +

                                                                                                                                                                                                                                + +
                                                                                                                                                                                                                                + +
                                                                                                                                                                                                                                CrmApiV2
                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                This is the main class to interact with the CRM
                                                                                                                                                                                                                                + +
                                                                                                                                                                                                                                + + + + + + + + +
                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                +

                                                                                                                                                                                                                                Search results

                                                                                                                                                                                                                                + +
                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                  +
                                                                                                                                                                                                                                  +
                                                                                                                                                                                                                                  +
                                                                                                                                                                                                                                  +
                                                                                                                                                                                                                                  +
                                                                                                                                                                                                                                  + + +
                                                                                                                                                                                                                                  + + + + + + + + diff --git a/app/Lib/vendor/crm-client-3.0.6/documentation/files/src-enums-apierror.html b/app/Lib/vendor/crm-client-3.0.6/documentation/files/src-enums-apierror.html new file mode 100644 index 0000000..2ac8a83 --- /dev/null +++ b/app/Lib/vendor/crm-client-3.0.6/documentation/files/src-enums-apierror.html @@ -0,0 +1,151 @@ + + + + + CRM V2 + + + + + + + + + + + + + + + + + + + +
                                                                                                                                                                                                                                  +

                                                                                                                                                                                                                                  CRM V2

                                                                                                                                                                                                                                  + + + + + +
                                                                                                                                                                                                                                  + +
                                                                                                                                                                                                                                  +
                                                                                                                                                                                                                                  + + + + +
                                                                                                                                                                                                                                  +
                                                                                                                                                                                                                                    +
                                                                                                                                                                                                                                  + +
                                                                                                                                                                                                                                  +

                                                                                                                                                                                                                                  ApiError.php

                                                                                                                                                                                                                                  + + +
                                                                                                                                                                                                                                  + + + + + + +

                                                                                                                                                                                                                                  + Interfaces, Classes and Traits + +

                                                                                                                                                                                                                                  + +
                                                                                                                                                                                                                                  + +
                                                                                                                                                                                                                                  ApiError
                                                                                                                                                                                                                                  +
                                                                                                                                                                                                                                  This describes an API error.
                                                                                                                                                                                                                                  + +
                                                                                                                                                                                                                                  + + + + + + + + +
                                                                                                                                                                                                                                  +
                                                                                                                                                                                                                                  +
                                                                                                                                                                                                                                  +
                                                                                                                                                                                                                                  +

                                                                                                                                                                                                                                  Search results

                                                                                                                                                                                                                                  + +
                                                                                                                                                                                                                                  +
                                                                                                                                                                                                                                  +
                                                                                                                                                                                                                                    +
                                                                                                                                                                                                                                    +
                                                                                                                                                                                                                                    +
                                                                                                                                                                                                                                    +
                                                                                                                                                                                                                                    +
                                                                                                                                                                                                                                    + + +
                                                                                                                                                                                                                                    + + + + + + + + diff --git a/app/Lib/vendor/crm-client-3.0.6/documentation/files/src-enums-apistatus.html b/app/Lib/vendor/crm-client-3.0.6/documentation/files/src-enums-apistatus.html new file mode 100644 index 0000000..bcd330c --- /dev/null +++ b/app/Lib/vendor/crm-client-3.0.6/documentation/files/src-enums-apistatus.html @@ -0,0 +1,151 @@ + + + + + CRM V2 + + + + + + + + + + + + + + + + + + + +
                                                                                                                                                                                                                                    +

                                                                                                                                                                                                                                    CRM V2

                                                                                                                                                                                                                                    + + + + + +
                                                                                                                                                                                                                                    + +
                                                                                                                                                                                                                                    +
                                                                                                                                                                                                                                    + + + + +
                                                                                                                                                                                                                                    +
                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                    + +
                                                                                                                                                                                                                                    +

                                                                                                                                                                                                                                    ApiStatus.php

                                                                                                                                                                                                                                    + + +
                                                                                                                                                                                                                                    + + + + + + +

                                                                                                                                                                                                                                    + Interfaces, Classes and Traits + +

                                                                                                                                                                                                                                    + +
                                                                                                                                                                                                                                    + +
                                                                                                                                                                                                                                    ApiStatus
                                                                                                                                                                                                                                    +
                                                                                                                                                                                                                                    + +
                                                                                                                                                                                                                                    + + + + + + + + +
                                                                                                                                                                                                                                    +
                                                                                                                                                                                                                                    +
                                                                                                                                                                                                                                    +
                                                                                                                                                                                                                                    +

                                                                                                                                                                                                                                    Search results

                                                                                                                                                                                                                                    + +
                                                                                                                                                                                                                                    +
                                                                                                                                                                                                                                    +
                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                      + + +
                                                                                                                                                                                                                                      + + + + + + + + diff --git a/app/Lib/vendor/crm-client-3.0.6/documentation/files/src-enums-arcadiamailtype.html b/app/Lib/vendor/crm-client-3.0.6/documentation/files/src-enums-arcadiamailtype.html new file mode 100644 index 0000000..62f8966 --- /dev/null +++ b/app/Lib/vendor/crm-client-3.0.6/documentation/files/src-enums-arcadiamailtype.html @@ -0,0 +1,151 @@ + + + + + CRM V2 + + + + + + + + + + + + + + + + + + + +
                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                      CRM V2

                                                                                                                                                                                                                                      + + + + + +
                                                                                                                                                                                                                                      + +
                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                      + + + + +
                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                        +
                                                                                                                                                                                                                                      + +
                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                      ArcadiaMailType.php

                                                                                                                                                                                                                                      + + +
                                                                                                                                                                                                                                      + + + + + + +

                                                                                                                                                                                                                                      + Interfaces, Classes and Traits + +

                                                                                                                                                                                                                                      + +
                                                                                                                                                                                                                                      + +
                                                                                                                                                                                                                                      ArcadiaMailType
                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                      + +
                                                                                                                                                                                                                                      + + + + + + + + +
                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                      Search results

                                                                                                                                                                                                                                      + +
                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                        +
                                                                                                                                                                                                                                        +
                                                                                                                                                                                                                                        +
                                                                                                                                                                                                                                        +
                                                                                                                                                                                                                                        +
                                                                                                                                                                                                                                        + + +
                                                                                                                                                                                                                                        + + + + + + + + diff --git a/app/Lib/vendor/crm-client-3.0.6/documentation/files/src-enums-arcadiaordertype.html b/app/Lib/vendor/crm-client-3.0.6/documentation/files/src-enums-arcadiaordertype.html new file mode 100644 index 0000000..62c8d5b --- /dev/null +++ b/app/Lib/vendor/crm-client-3.0.6/documentation/files/src-enums-arcadiaordertype.html @@ -0,0 +1,151 @@ + + + + + CRM V2 + + + + + + + + + + + + + + + + + + + +
                                                                                                                                                                                                                                        +

                                                                                                                                                                                                                                        CRM V2

                                                                                                                                                                                                                                        + + + + + +
                                                                                                                                                                                                                                        + +
                                                                                                                                                                                                                                        +
                                                                                                                                                                                                                                        + + + + +
                                                                                                                                                                                                                                        +
                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                        + +
                                                                                                                                                                                                                                        +

                                                                                                                                                                                                                                        ArcadiaOrderType.php

                                                                                                                                                                                                                                        + + +
                                                                                                                                                                                                                                        + + + + + + +

                                                                                                                                                                                                                                        + Interfaces, Classes and Traits + +

                                                                                                                                                                                                                                        + +
                                                                                                                                                                                                                                        + +
                                                                                                                                                                                                                                        ArcadiaOrderType
                                                                                                                                                                                                                                        +
                                                                                                                                                                                                                                        + +
                                                                                                                                                                                                                                        + + + + + + + + +
                                                                                                                                                                                                                                        +
                                                                                                                                                                                                                                        +
                                                                                                                                                                                                                                        +
                                                                                                                                                                                                                                        +

                                                                                                                                                                                                                                        Search results

                                                                                                                                                                                                                                        + +
                                                                                                                                                                                                                                        +
                                                                                                                                                                                                                                        +
                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                          + + +
                                                                                                                                                                                                                                          + + + + + + + + diff --git a/app/Lib/vendor/crm-client-3.0.6/documentation/files/src-enums-country.html b/app/Lib/vendor/crm-client-3.0.6/documentation/files/src-enums-country.html new file mode 100644 index 0000000..d2050f9 --- /dev/null +++ b/app/Lib/vendor/crm-client-3.0.6/documentation/files/src-enums-country.html @@ -0,0 +1,151 @@ + + + + + CRM V2 + + + + + + + + + + + + + + + + + + + +
                                                                                                                                                                                                                                          +

                                                                                                                                                                                                                                          CRM V2

                                                                                                                                                                                                                                          + + + + + +
                                                                                                                                                                                                                                          + +
                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                          + + + + +
                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                          + +
                                                                                                                                                                                                                                          +

                                                                                                                                                                                                                                          Country.php

                                                                                                                                                                                                                                          + + +
                                                                                                                                                                                                                                          + + + + + + +

                                                                                                                                                                                                                                          + Interfaces, Classes and Traits + +

                                                                                                                                                                                                                                          + +
                                                                                                                                                                                                                                          + +
                                                                                                                                                                                                                                          Country
                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                          Liste de Pays
                                                                                                                                                                                                                                          + +
                                                                                                                                                                                                                                          + + + + + + + + +
                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                          +

                                                                                                                                                                                                                                          Search results

                                                                                                                                                                                                                                          + +
                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                            + + +
                                                                                                                                                                                                                                            + + + + + + + + diff --git a/app/Lib/vendor/crm-client-3.0.6/documentation/files/src-enums-httpmethods.html b/app/Lib/vendor/crm-client-3.0.6/documentation/files/src-enums-httpmethods.html new file mode 100644 index 0000000..92d2516 --- /dev/null +++ b/app/Lib/vendor/crm-client-3.0.6/documentation/files/src-enums-httpmethods.html @@ -0,0 +1,140 @@ + + + + + CRM V2 + + + + + + + + + + + + + + + + + + + +
                                                                                                                                                                                                                                            +

                                                                                                                                                                                                                                            CRM V2

                                                                                                                                                                                                                                            + + + + + +
                                                                                                                                                                                                                                            + +
                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                            + + + + +
                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                              +
                                                                                                                                                                                                                                            + +
                                                                                                                                                                                                                                            +

                                                                                                                                                                                                                                            HttpMethods.php

                                                                                                                                                                                                                                            + + +
                                                                                                                                                                                                                                            + + + + + + + + + + + + + + +
                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                            +

                                                                                                                                                                                                                                            Search results

                                                                                                                                                                                                                                            + +
                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                              +
                                                                                                                                                                                                                                              +
                                                                                                                                                                                                                                              +
                                                                                                                                                                                                                                              +
                                                                                                                                                                                                                                              +
                                                                                                                                                                                                                                              + + +
                                                                                                                                                                                                                                              + + + + + + + + diff --git a/app/Lib/vendor/crm-client-3.0.6/documentation/files/src-enums-loglevel.html b/app/Lib/vendor/crm-client-3.0.6/documentation/files/src-enums-loglevel.html new file mode 100644 index 0000000..8834ad0 --- /dev/null +++ b/app/Lib/vendor/crm-client-3.0.6/documentation/files/src-enums-loglevel.html @@ -0,0 +1,151 @@ + + + + + CRM V2 + + + + + + + + + + + + + + + + + + + +
                                                                                                                                                                                                                                              +

                                                                                                                                                                                                                                              CRM V2

                                                                                                                                                                                                                                              + + + + + +
                                                                                                                                                                                                                                              + +
                                                                                                                                                                                                                                              +
                                                                                                                                                                                                                                              + + + + +
                                                                                                                                                                                                                                              +
                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                              + +
                                                                                                                                                                                                                                              +

                                                                                                                                                                                                                                              LogLevel.php

                                                                                                                                                                                                                                              + + +
                                                                                                                                                                                                                                              + + + + + + +

                                                                                                                                                                                                                                              + Interfaces, Classes and Traits + +

                                                                                                                                                                                                                                              + +
                                                                                                                                                                                                                                              + +
                                                                                                                                                                                                                                              LogLevel
                                                                                                                                                                                                                                              +
                                                                                                                                                                                                                                              + +
                                                                                                                                                                                                                                              + + + + + + + + +
                                                                                                                                                                                                                                              +
                                                                                                                                                                                                                                              +
                                                                                                                                                                                                                                              +
                                                                                                                                                                                                                                              +

                                                                                                                                                                                                                                              Search results

                                                                                                                                                                                                                                              + +
                                                                                                                                                                                                                                              +
                                                                                                                                                                                                                                              +
                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                + + +
                                                                                                                                                                                                                                                + + + + + + + + diff --git a/app/Lib/vendor/crm-client-3.0.6/documentation/files/src-enums-questiontype.html b/app/Lib/vendor/crm-client-3.0.6/documentation/files/src-enums-questiontype.html new file mode 100644 index 0000000..0a94cc6 --- /dev/null +++ b/app/Lib/vendor/crm-client-3.0.6/documentation/files/src-enums-questiontype.html @@ -0,0 +1,151 @@ + + + + + CRM V2 + + + + + + + + + + + + + + + + + + + +
                                                                                                                                                                                                                                                +

                                                                                                                                                                                                                                                CRM V2

                                                                                                                                                                                                                                                + + + + + +
                                                                                                                                                                                                                                                + +
                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                + + + + +
                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                  +
                                                                                                                                                                                                                                                + +
                                                                                                                                                                                                                                                +

                                                                                                                                                                                                                                                QuestionType.php

                                                                                                                                                                                                                                                + + +
                                                                                                                                                                                                                                                + + + + + + +

                                                                                                                                                                                                                                                + Interfaces, Classes and Traits + +

                                                                                                                                                                                                                                                + +
                                                                                                                                                                                                                                                + +
                                                                                                                                                                                                                                                QuestionType
                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                + +
                                                                                                                                                                                                                                                + + + + + + + + +
                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                +

                                                                                                                                                                                                                                                Search results

                                                                                                                                                                                                                                                + +
                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                  +
                                                                                                                                                                                                                                                  +
                                                                                                                                                                                                                                                  +
                                                                                                                                                                                                                                                  +
                                                                                                                                                                                                                                                  +
                                                                                                                                                                                                                                                  + + +
                                                                                                                                                                                                                                                  + + + + + + + + diff --git a/app/Lib/vendor/crm-client-3.0.6/documentation/files/src-exceptions-accesserror.html b/app/Lib/vendor/crm-client-3.0.6/documentation/files/src-exceptions-accesserror.html new file mode 100644 index 0000000..b2a7afa --- /dev/null +++ b/app/Lib/vendor/crm-client-3.0.6/documentation/files/src-exceptions-accesserror.html @@ -0,0 +1,151 @@ + + + + + CRM V2 + + + + + + + + + + + + + + + + + + + +
                                                                                                                                                                                                                                                  +

                                                                                                                                                                                                                                                  CRM V2

                                                                                                                                                                                                                                                  + + + + + +
                                                                                                                                                                                                                                                  + +
                                                                                                                                                                                                                                                  +
                                                                                                                                                                                                                                                  + + + + +
                                                                                                                                                                                                                                                  +
                                                                                                                                                                                                                                                    +
                                                                                                                                                                                                                                                  + +
                                                                                                                                                                                                                                                  +

                                                                                                                                                                                                                                                  AccessError.php

                                                                                                                                                                                                                                                  + + +
                                                                                                                                                                                                                                                  + + + + + + +

                                                                                                                                                                                                                                                  + Interfaces, Classes and Traits + +

                                                                                                                                                                                                                                                  + +
                                                                                                                                                                                                                                                  + +
                                                                                                                                                                                                                                                  AccessError
                                                                                                                                                                                                                                                  +
                                                                                                                                                                                                                                                  This is thrown when trying to set a value on an object property that does not exist.
                                                                                                                                                                                                                                                  + +
                                                                                                                                                                                                                                                  + + + + + + + + +
                                                                                                                                                                                                                                                  +
                                                                                                                                                                                                                                                  +
                                                                                                                                                                                                                                                  +
                                                                                                                                                                                                                                                  +

                                                                                                                                                                                                                                                  Search results

                                                                                                                                                                                                                                                  + +
                                                                                                                                                                                                                                                  +
                                                                                                                                                                                                                                                  +
                                                                                                                                                                                                                                                    +
                                                                                                                                                                                                                                                    +
                                                                                                                                                                                                                                                    +
                                                                                                                                                                                                                                                    +
                                                                                                                                                                                                                                                    +
                                                                                                                                                                                                                                                    + + +
                                                                                                                                                                                                                                                    + + + + + + + + diff --git a/app/Lib/vendor/crm-client-3.0.6/documentation/files/src-exceptions-apierrorexception.html b/app/Lib/vendor/crm-client-3.0.6/documentation/files/src-exceptions-apierrorexception.html new file mode 100644 index 0000000..549805d --- /dev/null +++ b/app/Lib/vendor/crm-client-3.0.6/documentation/files/src-exceptions-apierrorexception.html @@ -0,0 +1,153 @@ + + + + + CRM V2 + + + + + + + + + + + + + + + + + + + +
                                                                                                                                                                                                                                                    +

                                                                                                                                                                                                                                                    CRM V2

                                                                                                                                                                                                                                                    + + + + + +
                                                                                                                                                                                                                                                    + +
                                                                                                                                                                                                                                                    +
                                                                                                                                                                                                                                                    + + + + +
                                                                                                                                                                                                                                                    +
                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                    + +
                                                                                                                                                                                                                                                    +

                                                                                                                                                                                                                                                    ApiErrorException.php

                                                                                                                                                                                                                                                    + + +
                                                                                                                                                                                                                                                    + + + + + + +

                                                                                                                                                                                                                                                    + Interfaces, Classes and Traits + +

                                                                                                                                                                                                                                                    + +
                                                                                                                                                                                                                                                    + +
                                                                                                                                                                                                                                                    ApiErrorException
                                                                                                                                                                                                                                                    +
                                                                                                                                                                                                                                                    This would be thrown if any of the case +referenced in \LDC\LDCCRM\Enums\ApiError would +occur within the crm
                                                                                                                                                                                                                                                    + +
                                                                                                                                                                                                                                                    + + + + + + + + +
                                                                                                                                                                                                                                                    +
                                                                                                                                                                                                                                                    +
                                                                                                                                                                                                                                                    +
                                                                                                                                                                                                                                                    +

                                                                                                                                                                                                                                                    Search results

                                                                                                                                                                                                                                                    + +
                                                                                                                                                                                                                                                    +
                                                                                                                                                                                                                                                    +
                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                      + + +
                                                                                                                                                                                                                                                      + + + + + + + + diff --git a/app/Lib/vendor/crm-client-3.0.6/documentation/files/src-exceptions-crmexception.html b/app/Lib/vendor/crm-client-3.0.6/documentation/files/src-exceptions-crmexception.html new file mode 100644 index 0000000..d83c57f --- /dev/null +++ b/app/Lib/vendor/crm-client-3.0.6/documentation/files/src-exceptions-crmexception.html @@ -0,0 +1,151 @@ + + + + + CRM V2 + + + + + + + + + + + + + + + + + + + +
                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                      CRM V2

                                                                                                                                                                                                                                                      + + + + + +
                                                                                                                                                                                                                                                      + +
                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                      + + + + +
                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                        +
                                                                                                                                                                                                                                                      + +
                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                      CrmException.php

                                                                                                                                                                                                                                                      + + +
                                                                                                                                                                                                                                                      + + + + + + +

                                                                                                                                                                                                                                                      + Interfaces, Classes and Traits + +

                                                                                                                                                                                                                                                      + +
                                                                                                                                                                                                                                                      + +
                                                                                                                                                                                                                                                      CrmException
                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                      This is a critical error.
                                                                                                                                                                                                                                                      + +
                                                                                                                                                                                                                                                      + + + + + + + + +
                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                      Search results

                                                                                                                                                                                                                                                      + +
                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                        +
                                                                                                                                                                                                                                                        +
                                                                                                                                                                                                                                                        +
                                                                                                                                                                                                                                                        +
                                                                                                                                                                                                                                                        +
                                                                                                                                                                                                                                                        + + +
                                                                                                                                                                                                                                                        + + + + + + + + diff --git a/app/Lib/vendor/crm-client-3.0.6/documentation/files/src-exceptions-skipvalidationexception.html b/app/Lib/vendor/crm-client-3.0.6/documentation/files/src-exceptions-skipvalidationexception.html new file mode 100644 index 0000000..e8418f4 --- /dev/null +++ b/app/Lib/vendor/crm-client-3.0.6/documentation/files/src-exceptions-skipvalidationexception.html @@ -0,0 +1,151 @@ + + + + + CRM V2 + + + + + + + + + + + + + + + + + + + +
                                                                                                                                                                                                                                                        +

                                                                                                                                                                                                                                                        CRM V2

                                                                                                                                                                                                                                                        + + + + + +
                                                                                                                                                                                                                                                        + +
                                                                                                                                                                                                                                                        +
                                                                                                                                                                                                                                                        + + + + +
                                                                                                                                                                                                                                                        +
                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                        + +
                                                                                                                                                                                                                                                        +

                                                                                                                                                                                                                                                        SkipValidationException.php

                                                                                                                                                                                                                                                        + + +
                                                                                                                                                                                                                                                        + + + + + + +

                                                                                                                                                                                                                                                        + Interfaces, Classes and Traits + +

                                                                                                                                                                                                                                                        + +
                                                                                                                                                                                                                                                        + +
                                                                                                                                                                                                                                                        SkipValidationException
                                                                                                                                                                                                                                                        +
                                                                                                                                                                                                                                                        Used only for internal validator
                                                                                                                                                                                                                                                        + +
                                                                                                                                                                                                                                                        + + + + + + + + +
                                                                                                                                                                                                                                                        +
                                                                                                                                                                                                                                                        +
                                                                                                                                                                                                                                                        +
                                                                                                                                                                                                                                                        +

                                                                                                                                                                                                                                                        Search results

                                                                                                                                                                                                                                                        + +
                                                                                                                                                                                                                                                        +
                                                                                                                                                                                                                                                        +
                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                          + + +
                                                                                                                                                                                                                                                          + + + + + + + + diff --git a/app/Lib/vendor/crm-client-3.0.6/documentation/files/src-exceptions-validationexception.html b/app/Lib/vendor/crm-client-3.0.6/documentation/files/src-exceptions-validationexception.html new file mode 100644 index 0000000..3b7a967 --- /dev/null +++ b/app/Lib/vendor/crm-client-3.0.6/documentation/files/src-exceptions-validationexception.html @@ -0,0 +1,152 @@ + + + + + CRM V2 + + + + + + + + + + + + + + + + + + + +
                                                                                                                                                                                                                                                          +

                                                                                                                                                                                                                                                          CRM V2

                                                                                                                                                                                                                                                          + + + + + +
                                                                                                                                                                                                                                                          + +
                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                          + + + + +
                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                          + +
                                                                                                                                                                                                                                                          +

                                                                                                                                                                                                                                                          ValidationException.php

                                                                                                                                                                                                                                                          + + +
                                                                                                                                                                                                                                                          + + + + + + +

                                                                                                                                                                                                                                                          + Interfaces, Classes and Traits + +

                                                                                                                                                                                                                                                          + +
                                                                                                                                                                                                                                                          + +
                                                                                                                                                                                                                                                          ValidationException
                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                          This would be thrown if a data could not be validated +on any models
                                                                                                                                                                                                                                                          + +
                                                                                                                                                                                                                                                          + + + + + + + + +
                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                          +

                                                                                                                                                                                                                                                          Search results

                                                                                                                                                                                                                                                          + +
                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                            + + +
                                                                                                                                                                                                                                                            + + + + + + + + diff --git a/app/Lib/vendor/crm-client-3.0.6/documentation/files/src-exceptions-wpcrminvalidjsonuserinfo.html b/app/Lib/vendor/crm-client-3.0.6/documentation/files/src-exceptions-wpcrminvalidjsonuserinfo.html new file mode 100644 index 0000000..b8ff99e --- /dev/null +++ b/app/Lib/vendor/crm-client-3.0.6/documentation/files/src-exceptions-wpcrminvalidjsonuserinfo.html @@ -0,0 +1,151 @@ + + + + + CRM V2 + + + + + + + + + + + + + + + + + + + +
                                                                                                                                                                                                                                                            +

                                                                                                                                                                                                                                                            CRM V2

                                                                                                                                                                                                                                                            + + + + + +
                                                                                                                                                                                                                                                            + +
                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                            + + + + +
                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                              +
                                                                                                                                                                                                                                                            + +
                                                                                                                                                                                                                                                            +

                                                                                                                                                                                                                                                            WpCrmInvalidJsonUserInfo.php

                                                                                                                                                                                                                                                            + + +
                                                                                                                                                                                                                                                            + + + + + + +

                                                                                                                                                                                                                                                            + Interfaces, Classes and Traits + +

                                                                                                                                                                                                                                                            + +
                                                                                                                                                                                                                                                            + +
                                                                                                                                                                                                                                                            WpCrmInvalidJsonUserInfo
                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                            This is thrown when trying to read WP customer from DB json data.
                                                                                                                                                                                                                                                            + +
                                                                                                                                                                                                                                                            + + + + + + + + +
                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                            +

                                                                                                                                                                                                                                                            Search results

                                                                                                                                                                                                                                                            + +
                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                              +
                                                                                                                                                                                                                                                              +
                                                                                                                                                                                                                                                              +
                                                                                                                                                                                                                                                              +
                                                                                                                                                                                                                                                              +
                                                                                                                                                                                                                                                              + + +
                                                                                                                                                                                                                                                              + + + + + + + + diff --git a/app/Lib/vendor/crm-client-3.0.6/documentation/files/src-models-answer.html b/app/Lib/vendor/crm-client-3.0.6/documentation/files/src-models-answer.html new file mode 100644 index 0000000..3ef11b1 --- /dev/null +++ b/app/Lib/vendor/crm-client-3.0.6/documentation/files/src-models-answer.html @@ -0,0 +1,152 @@ + + + + + CRM V2 + + + + + + + + + + + + + + + + + + + +
                                                                                                                                                                                                                                                              +

                                                                                                                                                                                                                                                              CRM V2

                                                                                                                                                                                                                                                              + + + + + +
                                                                                                                                                                                                                                                              + +
                                                                                                                                                                                                                                                              +
                                                                                                                                                                                                                                                              + + + + +
                                                                                                                                                                                                                                                              +
                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                              + +
                                                                                                                                                                                                                                                              +

                                                                                                                                                                                                                                                              Answer.php

                                                                                                                                                                                                                                                              + + +
                                                                                                                                                                                                                                                              + + + + + + +

                                                                                                                                                                                                                                                              + Interfaces, Classes and Traits + +

                                                                                                                                                                                                                                                              + +
                                                                                                                                                                                                                                                              + +
                                                                                                                                                                                                                                                              Answer
                                                                                                                                                                                                                                                              +
                                                                                                                                                                                                                                                              This class represents an answer +It has a method to submit answers
                                                                                                                                                                                                                                                              + +
                                                                                                                                                                                                                                                              + + + + + + + + +
                                                                                                                                                                                                                                                              +
                                                                                                                                                                                                                                                              +
                                                                                                                                                                                                                                                              +
                                                                                                                                                                                                                                                              +

                                                                                                                                                                                                                                                              Search results

                                                                                                                                                                                                                                                              + +
                                                                                                                                                                                                                                                              +
                                                                                                                                                                                                                                                              +
                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                + + +
                                                                                                                                                                                                                                                                + + + + + + + + diff --git a/app/Lib/vendor/crm-client-3.0.6/documentation/files/src-models-arcadiamaildefault.html b/app/Lib/vendor/crm-client-3.0.6/documentation/files/src-models-arcadiamaildefault.html new file mode 100644 index 0000000..da2f75e --- /dev/null +++ b/app/Lib/vendor/crm-client-3.0.6/documentation/files/src-models-arcadiamaildefault.html @@ -0,0 +1,152 @@ + + + + + CRM V2 + + + + + + + + + + + + + + + + + + + +
                                                                                                                                                                                                                                                                +

                                                                                                                                                                                                                                                                CRM V2

                                                                                                                                                                                                                                                                + + + + + +
                                                                                                                                                                                                                                                                + +
                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                + + + + +
                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                  +
                                                                                                                                                                                                                                                                + +
                                                                                                                                                                                                                                                                +

                                                                                                                                                                                                                                                                ArcadiaMailDefault.php

                                                                                                                                                                                                                                                                + + +
                                                                                                                                                                                                                                                                + + + + + + +

                                                                                                                                                                                                                                                                + Interfaces, Classes and Traits + +

                                                                                                                                                                                                                                                                + +
                                                                                                                                                                                                                                                                + +
                                                                                                                                                                                                                                                                ArcadiaMailDefault
                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                This class represents the customer info with +the account validation status
                                                                                                                                                                                                                                                                + +
                                                                                                                                                                                                                                                                + + + + + + + + +
                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                +

                                                                                                                                                                                                                                                                Search results

                                                                                                                                                                                                                                                                + +
                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                  +
                                                                                                                                                                                                                                                                  +
                                                                                                                                                                                                                                                                  +
                                                                                                                                                                                                                                                                  +
                                                                                                                                                                                                                                                                  +
                                                                                                                                                                                                                                                                  + + +
                                                                                                                                                                                                                                                                  + + + + + + + + diff --git a/app/Lib/vendor/crm-client-3.0.6/documentation/files/src-models-arcadiamailgame.html b/app/Lib/vendor/crm-client-3.0.6/documentation/files/src-models-arcadiamailgame.html new file mode 100644 index 0000000..1a1c378 --- /dev/null +++ b/app/Lib/vendor/crm-client-3.0.6/documentation/files/src-models-arcadiamailgame.html @@ -0,0 +1,152 @@ + + + + + CRM V2 + + + + + + + + + + + + + + + + + + + +
                                                                                                                                                                                                                                                                  +

                                                                                                                                                                                                                                                                  CRM V2

                                                                                                                                                                                                                                                                  + + + + + +
                                                                                                                                                                                                                                                                  + +
                                                                                                                                                                                                                                                                  +
                                                                                                                                                                                                                                                                  + + + + +
                                                                                                                                                                                                                                                                  +
                                                                                                                                                                                                                                                                    +
                                                                                                                                                                                                                                                                  + +
                                                                                                                                                                                                                                                                  +

                                                                                                                                                                                                                                                                  ArcadiaMailGame.php

                                                                                                                                                                                                                                                                  + + +
                                                                                                                                                                                                                                                                  + + + + + + +

                                                                                                                                                                                                                                                                  + Interfaces, Classes and Traits + +

                                                                                                                                                                                                                                                                  + +
                                                                                                                                                                                                                                                                  + +
                                                                                                                                                                                                                                                                  ArcadiaMailGame
                                                                                                                                                                                                                                                                  +
                                                                                                                                                                                                                                                                  This class represents the customer info with +the account validation status
                                                                                                                                                                                                                                                                  + +
                                                                                                                                                                                                                                                                  + + + + + + + + +
                                                                                                                                                                                                                                                                  +
                                                                                                                                                                                                                                                                  +
                                                                                                                                                                                                                                                                  +
                                                                                                                                                                                                                                                                  +

                                                                                                                                                                                                                                                                  Search results

                                                                                                                                                                                                                                                                  + +
                                                                                                                                                                                                                                                                  +
                                                                                                                                                                                                                                                                  +
                                                                                                                                                                                                                                                                    +
                                                                                                                                                                                                                                                                    +
                                                                                                                                                                                                                                                                    +
                                                                                                                                                                                                                                                                    +
                                                                                                                                                                                                                                                                    +
                                                                                                                                                                                                                                                                    + + +
                                                                                                                                                                                                                                                                    + + + + + + + + diff --git a/app/Lib/vendor/crm-client-3.0.6/documentation/files/src-models-crmclientmodel.html b/app/Lib/vendor/crm-client-3.0.6/documentation/files/src-models-crmclientmodel.html new file mode 100644 index 0000000..612a8b5 --- /dev/null +++ b/app/Lib/vendor/crm-client-3.0.6/documentation/files/src-models-crmclientmodel.html @@ -0,0 +1,140 @@ + + + + + CRM V2 + + + + + + + + + + + + + + + + + + + +
                                                                                                                                                                                                                                                                    +

                                                                                                                                                                                                                                                                    CRM V2

                                                                                                                                                                                                                                                                    + + + + + +
                                                                                                                                                                                                                                                                    + +
                                                                                                                                                                                                                                                                    +
                                                                                                                                                                                                                                                                    + + + + +
                                                                                                                                                                                                                                                                    +
                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                    + +
                                                                                                                                                                                                                                                                    +

                                                                                                                                                                                                                                                                    CrmClientModel.php

                                                                                                                                                                                                                                                                    + + +
                                                                                                                                                                                                                                                                    + + + + + + + + + + + + + + +
                                                                                                                                                                                                                                                                    +
                                                                                                                                                                                                                                                                    +
                                                                                                                                                                                                                                                                    +
                                                                                                                                                                                                                                                                    +

                                                                                                                                                                                                                                                                    Search results

                                                                                                                                                                                                                                                                    + +
                                                                                                                                                                                                                                                                    +
                                                                                                                                                                                                                                                                    +
                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                      + + +
                                                                                                                                                                                                                                                                      + + + + + + + + diff --git a/app/Lib/vendor/crm-client-3.0.6/documentation/files/src-models-customer.html b/app/Lib/vendor/crm-client-3.0.6/documentation/files/src-models-customer.html new file mode 100644 index 0000000..12a8e23 --- /dev/null +++ b/app/Lib/vendor/crm-client-3.0.6/documentation/files/src-models-customer.html @@ -0,0 +1,153 @@ + + + + + CRM V2 + + + + + + + + + + + + + + + + + + + +
                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                      CRM V2

                                                                                                                                                                                                                                                                      + + + + + +
                                                                                                                                                                                                                                                                      + +
                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                      + + + + +
                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                        +
                                                                                                                                                                                                                                                                      + +
                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                      Customer.php

                                                                                                                                                                                                                                                                      + + +
                                                                                                                                                                                                                                                                      + + + + + + +

                                                                                                                                                                                                                                                                      + Interfaces, Classes and Traits + +

                                                                                                                                                                                                                                                                      + +
                                                                                                                                                                                                                                                                      + +
                                                                                                                                                                                                                                                                      Customer
                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                      This class represents the customer info with +the account validation status. You can use it as +a standalone class but beware of catching exceptions
                                                                                                                                                                                                                                                                      + +
                                                                                                                                                                                                                                                                      + + + + + + + + +
                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                      Search results

                                                                                                                                                                                                                                                                      + +
                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                        +
                                                                                                                                                                                                                                                                        +
                                                                                                                                                                                                                                                                        +
                                                                                                                                                                                                                                                                        +
                                                                                                                                                                                                                                                                        +
                                                                                                                                                                                                                                                                        + + +
                                                                                                                                                                                                                                                                        + + + + + + + + diff --git a/app/Lib/vendor/crm-client-3.0.6/documentation/files/src-models-question.html b/app/Lib/vendor/crm-client-3.0.6/documentation/files/src-models-question.html new file mode 100644 index 0000000..1fa880c --- /dev/null +++ b/app/Lib/vendor/crm-client-3.0.6/documentation/files/src-models-question.html @@ -0,0 +1,152 @@ + + + + + CRM V2 + + + + + + + + + + + + + + + + + + + +
                                                                                                                                                                                                                                                                        +

                                                                                                                                                                                                                                                                        CRM V2

                                                                                                                                                                                                                                                                        + + + + + +
                                                                                                                                                                                                                                                                        + +
                                                                                                                                                                                                                                                                        +
                                                                                                                                                                                                                                                                        + + + + +
                                                                                                                                                                                                                                                                        +
                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                        + +
                                                                                                                                                                                                                                                                        +

                                                                                                                                                                                                                                                                        Question.php

                                                                                                                                                                                                                                                                        + + +
                                                                                                                                                                                                                                                                        + + + + + + +

                                                                                                                                                                                                                                                                        + Interfaces, Classes and Traits + +

                                                                                                                                                                                                                                                                        + +
                                                                                                                                                                                                                                                                        + +
                                                                                                                                                                                                                                                                        Question
                                                                                                                                                                                                                                                                        +
                                                                                                                                                                                                                                                                        This class represents a question +It has some static methods to retrieve questions and answers
                                                                                                                                                                                                                                                                        + +
                                                                                                                                                                                                                                                                        + + + + + + + + +
                                                                                                                                                                                                                                                                        +
                                                                                                                                                                                                                                                                        +
                                                                                                                                                                                                                                                                        +
                                                                                                                                                                                                                                                                        +

                                                                                                                                                                                                                                                                        Search results

                                                                                                                                                                                                                                                                        + +
                                                                                                                                                                                                                                                                        +
                                                                                                                                                                                                                                                                        +
                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                          + + +
                                                                                                                                                                                                                                                                          + + + + + + + + diff --git a/app/Lib/vendor/crm-client-3.0.6/documentation/files/src-models-singleoptin.html b/app/Lib/vendor/crm-client-3.0.6/documentation/files/src-models-singleoptin.html new file mode 100644 index 0000000..47579b5 --- /dev/null +++ b/app/Lib/vendor/crm-client-3.0.6/documentation/files/src-models-singleoptin.html @@ -0,0 +1,151 @@ + + + + + CRM V2 + + + + + + + + + + + + + + + + + + + +
                                                                                                                                                                                                                                                                          +

                                                                                                                                                                                                                                                                          CRM V2

                                                                                                                                                                                                                                                                          + + + + + +
                                                                                                                                                                                                                                                                          + +
                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                          + + + + +
                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                          + +
                                                                                                                                                                                                                                                                          +

                                                                                                                                                                                                                                                                          SingleOptin.php

                                                                                                                                                                                                                                                                          + + +
                                                                                                                                                                                                                                                                          + + + + + + +

                                                                                                                                                                                                                                                                          + Interfaces, Classes and Traits + +

                                                                                                                                                                                                                                                                          + +
                                                                                                                                                                                                                                                                          + +
                                                                                                                                                                                                                                                                          SingleOptin
                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                          This class allows to handle single opt in
                                                                                                                                                                                                                                                                          + +
                                                                                                                                                                                                                                                                          + + + + + + + + +
                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                          +

                                                                                                                                                                                                                                                                          Search results

                                                                                                                                                                                                                                                                          + +
                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                            + + +
                                                                                                                                                                                                                                                                            + + + + + + + + diff --git a/app/Lib/vendor/crm-client-3.0.6/documentation/files/src-models-stats.html b/app/Lib/vendor/crm-client-3.0.6/documentation/files/src-models-stats.html new file mode 100644 index 0000000..9858cca --- /dev/null +++ b/app/Lib/vendor/crm-client-3.0.6/documentation/files/src-models-stats.html @@ -0,0 +1,151 @@ + + + + + CRM V2 + + + + + + + + + + + + + + + + + + + +
                                                                                                                                                                                                                                                                            +

                                                                                                                                                                                                                                                                            CRM V2

                                                                                                                                                                                                                                                                            + + + + + +
                                                                                                                                                                                                                                                                            + +
                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                            + + + + +
                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                              +
                                                                                                                                                                                                                                                                            + +
                                                                                                                                                                                                                                                                            +

                                                                                                                                                                                                                                                                            Stats.php

                                                                                                                                                                                                                                                                            + + +
                                                                                                                                                                                                                                                                            + + + + + + +

                                                                                                                                                                                                                                                                            + Interfaces, Classes and Traits + +

                                                                                                                                                                                                                                                                            + +
                                                                                                                                                                                                                                                                            + +
                                                                                                                                                                                                                                                                            Stats
                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                            This class is used to get stats from CRM
                                                                                                                                                                                                                                                                            + +
                                                                                                                                                                                                                                                                            + + + + + + + + +
                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                            +

                                                                                                                                                                                                                                                                            Search results

                                                                                                                                                                                                                                                                            + +
                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                              +
                                                                                                                                                                                                                                                                              +
                                                                                                                                                                                                                                                                              +
                                                                                                                                                                                                                                                                              +
                                                                                                                                                                                                                                                                              +
                                                                                                                                                                                                                                                                              + + +
                                                                                                                                                                                                                                                                              + + + + + + + + diff --git a/app/Lib/vendor/crm-client-3.0.6/documentation/files/src-transport-apiinterface.html b/app/Lib/vendor/crm-client-3.0.6/documentation/files/src-transport-apiinterface.html new file mode 100644 index 0000000..3dff3ea --- /dev/null +++ b/app/Lib/vendor/crm-client-3.0.6/documentation/files/src-transport-apiinterface.html @@ -0,0 +1,140 @@ + + + + + CRM V2 + + + + + + + + + + + + + + + + + + + +
                                                                                                                                                                                                                                                                              +

                                                                                                                                                                                                                                                                              CRM V2

                                                                                                                                                                                                                                                                              + + + + + +
                                                                                                                                                                                                                                                                              + +
                                                                                                                                                                                                                                                                              +
                                                                                                                                                                                                                                                                              + + + + +
                                                                                                                                                                                                                                                                              +
                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                              + +
                                                                                                                                                                                                                                                                              +

                                                                                                                                                                                                                                                                              ApiInterface.php

                                                                                                                                                                                                                                                                              + + +
                                                                                                                                                                                                                                                                              + + + + + + + + + + + + + + +
                                                                                                                                                                                                                                                                              +
                                                                                                                                                                                                                                                                              +
                                                                                                                                                                                                                                                                              +
                                                                                                                                                                                                                                                                              +

                                                                                                                                                                                                                                                                              Search results

                                                                                                                                                                                                                                                                              + +
                                                                                                                                                                                                                                                                              +
                                                                                                                                                                                                                                                                              +
                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                + + +
                                                                                                                                                                                                                                                                                + + + + + + + + diff --git a/app/Lib/vendor/crm-client-3.0.6/documentation/files/src-transport-request.html b/app/Lib/vendor/crm-client-3.0.6/documentation/files/src-transport-request.html new file mode 100644 index 0000000..013412c --- /dev/null +++ b/app/Lib/vendor/crm-client-3.0.6/documentation/files/src-transport-request.html @@ -0,0 +1,152 @@ + + + + + CRM V2 + + + + + + + + + + + + + + + + + + + +
                                                                                                                                                                                                                                                                                +

                                                                                                                                                                                                                                                                                CRM V2

                                                                                                                                                                                                                                                                                + + + + + +
                                                                                                                                                                                                                                                                                + +
                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                + + + + +
                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                  +
                                                                                                                                                                                                                                                                                + +
                                                                                                                                                                                                                                                                                +

                                                                                                                                                                                                                                                                                Request.php

                                                                                                                                                                                                                                                                                + + +
                                                                                                                                                                                                                                                                                + + + + + + +

                                                                                                                                                                                                                                                                                + Interfaces, Classes and Traits + +

                                                                                                                                                                                                                                                                                + +
                                                                                                                                                                                                                                                                                + +
                                                                                                                                                                                                                                                                                Request
                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                The LDC CRM request +Contains the http method, the requested url and data to pass
                                                                                                                                                                                                                                                                                + +
                                                                                                                                                                                                                                                                                + + + + + + + + +
                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                +

                                                                                                                                                                                                                                                                                Search results

                                                                                                                                                                                                                                                                                + +
                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                  +
                                                                                                                                                                                                                                                                                  +
                                                                                                                                                                                                                                                                                  +
                                                                                                                                                                                                                                                                                  +
                                                                                                                                                                                                                                                                                  +
                                                                                                                                                                                                                                                                                  + + +
                                                                                                                                                                                                                                                                                  + + + + + + + + diff --git a/app/Lib/vendor/crm-client-3.0.6/documentation/files/src-transport-response.html b/app/Lib/vendor/crm-client-3.0.6/documentation/files/src-transport-response.html new file mode 100644 index 0000000..f261368 --- /dev/null +++ b/app/Lib/vendor/crm-client-3.0.6/documentation/files/src-transport-response.html @@ -0,0 +1,151 @@ + + + + + CRM V2 + + + + + + + + + + + + + + + + + + + +
                                                                                                                                                                                                                                                                                  +

                                                                                                                                                                                                                                                                                  CRM V2

                                                                                                                                                                                                                                                                                  + + + + + +
                                                                                                                                                                                                                                                                                  + +
                                                                                                                                                                                                                                                                                  +
                                                                                                                                                                                                                                                                                  + + + + +
                                                                                                                                                                                                                                                                                  +
                                                                                                                                                                                                                                                                                    +
                                                                                                                                                                                                                                                                                  + +
                                                                                                                                                                                                                                                                                  +

                                                                                                                                                                                                                                                                                  Response.php

                                                                                                                                                                                                                                                                                  + + +
                                                                                                                                                                                                                                                                                  + + + + + + +

                                                                                                                                                                                                                                                                                  + Interfaces, Classes and Traits + +

                                                                                                                                                                                                                                                                                  + +
                                                                                                                                                                                                                                                                                  + +
                                                                                                                                                                                                                                                                                  Response
                                                                                                                                                                                                                                                                                  +
                                                                                                                                                                                                                                                                                  + +
                                                                                                                                                                                                                                                                                  + + + + + + + + +
                                                                                                                                                                                                                                                                                  +
                                                                                                                                                                                                                                                                                  +
                                                                                                                                                                                                                                                                                  +
                                                                                                                                                                                                                                                                                  +

                                                                                                                                                                                                                                                                                  Search results

                                                                                                                                                                                                                                                                                  + +
                                                                                                                                                                                                                                                                                  +
                                                                                                                                                                                                                                                                                  +
                                                                                                                                                                                                                                                                                    +
                                                                                                                                                                                                                                                                                    +
                                                                                                                                                                                                                                                                                    +
                                                                                                                                                                                                                                                                                    +
                                                                                                                                                                                                                                                                                    +
                                                                                                                                                                                                                                                                                    + + +
                                                                                                                                                                                                                                                                                    + + + + + + + + diff --git a/app/Lib/vendor/crm-client-3.0.6/documentation/files/src-utils.html b/app/Lib/vendor/crm-client-3.0.6/documentation/files/src-utils.html new file mode 100644 index 0000000..4d0ea3b --- /dev/null +++ b/app/Lib/vendor/crm-client-3.0.6/documentation/files/src-utils.html @@ -0,0 +1,151 @@ + + + + + CRM V2 + + + + + + + + + + + + + + + + + + + +
                                                                                                                                                                                                                                                                                    +

                                                                                                                                                                                                                                                                                    CRM V2

                                                                                                                                                                                                                                                                                    + + + + + +
                                                                                                                                                                                                                                                                                    + +
                                                                                                                                                                                                                                                                                    +
                                                                                                                                                                                                                                                                                    + + + + +
                                                                                                                                                                                                                                                                                    +
                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                    + +
                                                                                                                                                                                                                                                                                    +

                                                                                                                                                                                                                                                                                    Utils.php

                                                                                                                                                                                                                                                                                    + + +
                                                                                                                                                                                                                                                                                    + + + + + + +

                                                                                                                                                                                                                                                                                    + Interfaces, Classes and Traits + +

                                                                                                                                                                                                                                                                                    + +
                                                                                                                                                                                                                                                                                    + +
                                                                                                                                                                                                                                                                                    Utils
                                                                                                                                                                                                                                                                                    +
                                                                                                                                                                                                                                                                                    This is the LDCCRM utility class
                                                                                                                                                                                                                                                                                    + +
                                                                                                                                                                                                                                                                                    + + + + + + + + +
                                                                                                                                                                                                                                                                                    +
                                                                                                                                                                                                                                                                                    +
                                                                                                                                                                                                                                                                                    +
                                                                                                                                                                                                                                                                                    +

                                                                                                                                                                                                                                                                                    Search results

                                                                                                                                                                                                                                                                                    + +
                                                                                                                                                                                                                                                                                    +
                                                                                                                                                                                                                                                                                    +
                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                      + + +
                                                                                                                                                                                                                                                                                      + + + + + + + + diff --git a/app/Lib/vendor/crm-client-3.0.6/documentation/files/src-wordpress-wpcrm.html b/app/Lib/vendor/crm-client-3.0.6/documentation/files/src-wordpress-wpcrm.html new file mode 100644 index 0000000..4172488 --- /dev/null +++ b/app/Lib/vendor/crm-client-3.0.6/documentation/files/src-wordpress-wpcrm.html @@ -0,0 +1,191 @@ + + + + + CRM V2 + + + + + + + + + + + + + + + + + + + +
                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                      CRM V2

                                                                                                                                                                                                                                                                                      + + + + + +
                                                                                                                                                                                                                                                                                      + +
                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                      + + + + +
                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                        +
                                                                                                                                                                                                                                                                                      + +
                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                      WPCrm.php

                                                                                                                                                                                                                                                                                      + +

                                                                                                                                                                                                                                                                                      LDCCRM For Wordpress usage

                                                                                                                                                                                                                                                                                      + + + +
                                                                                                                                                                                                                                                                                      + Tags + +
                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                      + category +
                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                      + +

                                                                                                                                                                                                                                                                                      API

                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                      + +
                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                      + author +
                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                      + +

                                                                                                                                                                                                                                                                                      Jérémy Munsch jeremy.munsch@ldc.fr

                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                      + +
                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                      + license +
                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                      + +

                                                                                                                                                                                                                                                                                      MIT https://opensource.org/licenses/MIT

                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                      + +
                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                      + link +
                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                      + / + +
                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                      + + + + +

                                                                                                                                                                                                                                                                                      + Interfaces, Classes and Traits + +

                                                                                                                                                                                                                                                                                      + +
                                                                                                                                                                                                                                                                                      + +
                                                                                                                                                                                                                                                                                      WPCrm
                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                      Class de gestion des users en session avec Wordpress
                                                                                                                                                                                                                                                                                      + +
                                                                                                                                                                                                                                                                                      + + + + + + + + +
                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                      Search results

                                                                                                                                                                                                                                                                                      + +
                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                        +
                                                                                                                                                                                                                                                                                        +
                                                                                                                                                                                                                                                                                        +
                                                                                                                                                                                                                                                                                        +
                                                                                                                                                                                                                                                                                        +
                                                                                                                                                                                                                                                                                        + + +
                                                                                                                                                                                                                                                                                        + + + + + + + + diff --git a/app/Lib/vendor/crm-client-3.0.6/documentation/files/src-wordpress-wpcrmanswer.html b/app/Lib/vendor/crm-client-3.0.6/documentation/files/src-wordpress-wpcrmanswer.html new file mode 100644 index 0000000..8e24725 --- /dev/null +++ b/app/Lib/vendor/crm-client-3.0.6/documentation/files/src-wordpress-wpcrmanswer.html @@ -0,0 +1,191 @@ + + + + + CRM V2 + + + + + + + + + + + + + + + + + + + +
                                                                                                                                                                                                                                                                                        +

                                                                                                                                                                                                                                                                                        CRM V2

                                                                                                                                                                                                                                                                                        + + + + + +
                                                                                                                                                                                                                                                                                        + +
                                                                                                                                                                                                                                                                                        +
                                                                                                                                                                                                                                                                                        + + + + +
                                                                                                                                                                                                                                                                                        +
                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                        + +
                                                                                                                                                                                                                                                                                        +

                                                                                                                                                                                                                                                                                        WPCrmAnswer.php

                                                                                                                                                                                                                                                                                        + +

                                                                                                                                                                                                                                                                                        LDCCRM For Wordpress usage

                                                                                                                                                                                                                                                                                        + + + +
                                                                                                                                                                                                                                                                                        + Tags + +
                                                                                                                                                                                                                                                                                        +
                                                                                                                                                                                                                                                                                        +
                                                                                                                                                                                                                                                                                        + category +
                                                                                                                                                                                                                                                                                        +
                                                                                                                                                                                                                                                                                        + +

                                                                                                                                                                                                                                                                                        API

                                                                                                                                                                                                                                                                                        +
                                                                                                                                                                                                                                                                                        + +
                                                                                                                                                                                                                                                                                        +
                                                                                                                                                                                                                                                                                        + author +
                                                                                                                                                                                                                                                                                        +
                                                                                                                                                                                                                                                                                        + +

                                                                                                                                                                                                                                                                                        Jérémy Munsch jeremy.munsch@ldc.fr

                                                                                                                                                                                                                                                                                        +
                                                                                                                                                                                                                                                                                        + +
                                                                                                                                                                                                                                                                                        +
                                                                                                                                                                                                                                                                                        + license +
                                                                                                                                                                                                                                                                                        +
                                                                                                                                                                                                                                                                                        + +

                                                                                                                                                                                                                                                                                        MIT https://opensource.org/licenses/MIT

                                                                                                                                                                                                                                                                                        +
                                                                                                                                                                                                                                                                                        + +
                                                                                                                                                                                                                                                                                        +
                                                                                                                                                                                                                                                                                        + link +
                                                                                                                                                                                                                                                                                        +
                                                                                                                                                                                                                                                                                        + / + +
                                                                                                                                                                                                                                                                                        +
                                                                                                                                                                                                                                                                                        + + + + +

                                                                                                                                                                                                                                                                                        + Interfaces, Classes and Traits + +

                                                                                                                                                                                                                                                                                        + +
                                                                                                                                                                                                                                                                                        + +
                                                                                                                                                                                                                                                                                        WPCrmAnswer
                                                                                                                                                                                                                                                                                        +
                                                                                                                                                                                                                                                                                        Class de gestion de la segmentation question avec Wordpress
                                                                                                                                                                                                                                                                                        + +
                                                                                                                                                                                                                                                                                        + + + + + + + + +
                                                                                                                                                                                                                                                                                        +
                                                                                                                                                                                                                                                                                        +
                                                                                                                                                                                                                                                                                        +
                                                                                                                                                                                                                                                                                        +

                                                                                                                                                                                                                                                                                        Search results

                                                                                                                                                                                                                                                                                        + +
                                                                                                                                                                                                                                                                                        +
                                                                                                                                                                                                                                                                                        +
                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                          + + +
                                                                                                                                                                                                                                                                                          + + + + + + + + diff --git a/app/Lib/vendor/crm-client-3.0.6/documentation/files/src-wordpress-wpcrmquestion.html b/app/Lib/vendor/crm-client-3.0.6/documentation/files/src-wordpress-wpcrmquestion.html new file mode 100644 index 0000000..3563dde --- /dev/null +++ b/app/Lib/vendor/crm-client-3.0.6/documentation/files/src-wordpress-wpcrmquestion.html @@ -0,0 +1,191 @@ + + + + + CRM V2 + + + + + + + + + + + + + + + + + + + +
                                                                                                                                                                                                                                                                                          +

                                                                                                                                                                                                                                                                                          CRM V2

                                                                                                                                                                                                                                                                                          + + + + + +
                                                                                                                                                                                                                                                                                          + +
                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                          + + + + +
                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                                          + +
                                                                                                                                                                                                                                                                                          +

                                                                                                                                                                                                                                                                                          WPCrmQuestion.php

                                                                                                                                                                                                                                                                                          + +

                                                                                                                                                                                                                                                                                          LDCCRM For Wordpress usage

                                                                                                                                                                                                                                                                                          + + + +
                                                                                                                                                                                                                                                                                          + Tags + +
                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                          + category +
                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                          + +

                                                                                                                                                                                                                                                                                          API

                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                          + +
                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                          + author +
                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                          + +

                                                                                                                                                                                                                                                                                          Jérémy Munsch jeremy.munsch@ldc.fr

                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                          + +
                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                          + license +
                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                          + +

                                                                                                                                                                                                                                                                                          MIT https://opensource.org/licenses/MIT

                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                          + +
                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                          + link +
                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                          + / + +
                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                          + + + + +

                                                                                                                                                                                                                                                                                          + Interfaces, Classes and Traits + +

                                                                                                                                                                                                                                                                                          + +
                                                                                                                                                                                                                                                                                          + +
                                                                                                                                                                                                                                                                                          WPCrmQuestion
                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                          Class de gestion de la segmentation question avec Wordpress
                                                                                                                                                                                                                                                                                          + +
                                                                                                                                                                                                                                                                                          + + + + + + + + +
                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                          +

                                                                                                                                                                                                                                                                                          Search results

                                                                                                                                                                                                                                                                                          + +
                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                                            + + +
                                                                                                                                                                                                                                                                                            + + + + + + + + diff --git a/app/Lib/vendor/crm-client-3.0.6/documentation/files/src-wordpress-wpcrmuser.html b/app/Lib/vendor/crm-client-3.0.6/documentation/files/src-wordpress-wpcrmuser.html new file mode 100644 index 0000000..07b7454 --- /dev/null +++ b/app/Lib/vendor/crm-client-3.0.6/documentation/files/src-wordpress-wpcrmuser.html @@ -0,0 +1,191 @@ + + + + + CRM V2 + + + + + + + + + + + + + + + + + + + +
                                                                                                                                                                                                                                                                                            +

                                                                                                                                                                                                                                                                                            CRM V2

                                                                                                                                                                                                                                                                                            + + + + + +
                                                                                                                                                                                                                                                                                            + +
                                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                                            + + + + +
                                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                                              +
                                                                                                                                                                                                                                                                                            + +
                                                                                                                                                                                                                                                                                            +

                                                                                                                                                                                                                                                                                            WPCrmUser.php

                                                                                                                                                                                                                                                                                            + +

                                                                                                                                                                                                                                                                                            LDCCRM For Wordpress usage

                                                                                                                                                                                                                                                                                            + + + +
                                                                                                                                                                                                                                                                                            + Tags + +
                                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                                            + category +
                                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                                            + +

                                                                                                                                                                                                                                                                                            API

                                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                                            + +
                                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                                            + author +
                                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                                            + +

                                                                                                                                                                                                                                                                                            Jérémy Munsch jeremy.munsch@ldc.fr

                                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                                            + +
                                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                                            + license +
                                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                                            + +

                                                                                                                                                                                                                                                                                            MIT https://opensource.org/licenses/MIT

                                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                                            + +
                                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                                            + link +
                                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                                            + / + +
                                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                                            + + + + +

                                                                                                                                                                                                                                                                                            + Interfaces, Classes and Traits + +

                                                                                                                                                                                                                                                                                            + +
                                                                                                                                                                                                                                                                                            + +
                                                                                                                                                                                                                                                                                            WPCrmUser
                                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                                            Class de gestion des users en session avec Wordpress
                                                                                                                                                                                                                                                                                            + +
                                                                                                                                                                                                                                                                                            + + + + + + + + +
                                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                                            +

                                                                                                                                                                                                                                                                                            Search results

                                                                                                                                                                                                                                                                                            + +
                                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                                              +
                                                                                                                                                                                                                                                                                              +
                                                                                                                                                                                                                                                                                              +
                                                                                                                                                                                                                                                                                              +
                                                                                                                                                                                                                                                                                              +
                                                                                                                                                                                                                                                                                              + + +
                                                                                                                                                                                                                                                                                              + + + + + + + + diff --git a/app/Lib/vendor/crm-client-3.0.6/documentation/graphs/classes.html b/app/Lib/vendor/crm-client-3.0.6/documentation/graphs/classes.html new file mode 100644 index 0000000..9d638db --- /dev/null +++ b/app/Lib/vendor/crm-client-3.0.6/documentation/graphs/classes.html @@ -0,0 +1,117 @@ + + + + + CRM V2 + + + + + + + + +
                                                                                                                                                                                                                                                                                              +

                                                                                                                                                                                                                                                                                              CRM V2

                                                                                                                                                                                                                                                                                              + + + + + +
                                                                                                                                                                                                                                                                                              + +
                                                                                                                                                                                                                                                                                              +
                                                                                                                                                                                                                                                                                              + + + + +
                                                                                                                                                                                                                                                                                              +
                                                                                                                                                                                                                                                                                              + +
                                                                                                                                                                                                                                                                                              + +
                                                                                                                                                                                                                                                                                              +
                                                                                                                                                                                                                                                                                              +
                                                                                                                                                                                                                                                                                              +

                                                                                                                                                                                                                                                                                              Search results

                                                                                                                                                                                                                                                                                              + +
                                                                                                                                                                                                                                                                                              +
                                                                                                                                                                                                                                                                                              +
                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                + + +
                                                                                                                                                                                                                                                                                                + + + + + + + + diff --git a/app/Lib/vendor/crm-client-3.0.6/documentation/index.html b/app/Lib/vendor/crm-client-3.0.6/documentation/index.html new file mode 100644 index 0000000..c2a146c --- /dev/null +++ b/app/Lib/vendor/crm-client-3.0.6/documentation/index.html @@ -0,0 +1,145 @@ + + + + + CRM V2 + + + + + + + + + + + + + + + + + + + +
                                                                                                                                                                                                                                                                                                +

                                                                                                                                                                                                                                                                                                CRM V2

                                                                                                                                                                                                                                                                                                + + + + + +
                                                                                                                                                                                                                                                                                                + +
                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                + + + + +
                                                                                                                                                                                                                                                                                                +

                                                                                                                                                                                                                                                                                                Documentation

                                                                                                                                                                                                                                                                                                + + +

                                                                                                                                                                                                                                                                                                + Packages + +

                                                                                                                                                                                                                                                                                                + +
                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                LDCCrmClient
                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                None
                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                + +

                                                                                                                                                                                                                                                                                                + Namespaces + +

                                                                                                                                                                                                                                                                                                + +
                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                LDC
                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                + + + + + + + +
                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                +

                                                                                                                                                                                                                                                                                                Search results

                                                                                                                                                                                                                                                                                                + +
                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                  +
                                                                                                                                                                                                                                                                                                  +
                                                                                                                                                                                                                                                                                                  +
                                                                                                                                                                                                                                                                                                  +
                                                                                                                                                                                                                                                                                                  +
                                                                                                                                                                                                                                                                                                  + + +
                                                                                                                                                                                                                                                                                                  + + + + + + + + diff --git a/app/Lib/vendor/crm-client-3.0.6/documentation/indices/files.html b/app/Lib/vendor/crm-client-3.0.6/documentation/indices/files.html new file mode 100644 index 0000000..e7538c2 --- /dev/null +++ b/app/Lib/vendor/crm-client-3.0.6/documentation/indices/files.html @@ -0,0 +1,181 @@ + + + + + CRM V2 + + + + + + + + + + + + + + + + + + + +
                                                                                                                                                                                                                                                                                                  +

                                                                                                                                                                                                                                                                                                  CRM V2

                                                                                                                                                                                                                                                                                                  + + + + + +
                                                                                                                                                                                                                                                                                                  + +
                                                                                                                                                                                                                                                                                                  + + + +
                                                                                                                                                                                                                                                                                                  + + + + + + + + diff --git a/app/Lib/vendor/crm-client-3.0.6/documentation/js/search.js b/app/Lib/vendor/crm-client-3.0.6/documentation/js/search.js new file mode 100644 index 0000000..093d6d0 --- /dev/null +++ b/app/Lib/vendor/crm-client-3.0.6/documentation/js/search.js @@ -0,0 +1,173 @@ +// Search module for phpDocumentor +// +// This module is a wrapper around fuse.js that will use a given index and attach itself to a +// search form and to a search results pane identified by the following data attributes: +// +// 1. data-search-form +// 2. data-search-results +// +// The data-search-form is expected to have a single input element of type 'search' that will trigger searching for +// a series of results, were the data-search-results pane is expected to have a direct UL child that will be populated +// with rendered results. +// +// The search has various stages, upon loading this stage the data-search-form receives the CSS class +// 'phpdocumentor-search--enabled'; this indicates that JS is allowed and indices are being loaded. It is recommended +// to hide the form by default and show it when it receives this class to achieve progressive enhancement for this +// feature. +// +// After loading this module, it is expected to load a search index asynchronously, for example: +// +// +// +// In this script the generated index should attach itself to the search module using the `appendIndex` function. By +// doing it like this the page will continue loading, unhindered by the loading of the search. +// +// After the page has fully loaded, and all these deferred indexes loaded, the initialization of the search module will +// be called and the form will receive the class 'phpdocumentor-search--active', indicating search is ready. At this +// point, the input field will also have it's 'disabled' attribute removed. +var Search = (function () { + var fuse; + var index = []; + var options = { + shouldSort: true, + threshold: 0.6, + location: 0, + distance: 100, + maxPatternLength: 32, + minMatchCharLength: 1, + keys: [ + "fqsen", + "name", + "summary", + "url" + ] + }; + + // Credit David Walsh (https://davidwalsh.name/javascript-debounce-function) + // Returns a function, that, as long as it continues to be invoked, will not + // be triggered. The function will be called after it stops being called for + // N milliseconds. If `immediate` is passed, trigger the function on the + // leading edge, instead of the trailing. + function debounce(func, wait, immediate) { + var timeout; + + return function executedFunction() { + var context = this; + var args = arguments; + + var later = function () { + timeout = null; + if (!immediate) func.apply(context, args); + }; + + var callNow = immediate && !timeout; + clearTimeout(timeout); + timeout = setTimeout(later, wait); + if (callNow) func.apply(context, args); + }; + } + + function close() { + // Start scroll prevention: https://css-tricks.com/prevent-page-scrolling-when-a-modal-is-open/ + const scrollY = document.body.style.top; + document.body.style.position = ''; + document.body.style.top = ''; + window.scrollTo(0, parseInt(scrollY || '0') * -1); + // End scroll prevention + + var form = document.querySelector('[data-search-form]'); + var searchResults = document.querySelector('[data-search-results]'); + + form.classList.toggle('phpdocumentor-search--has-results', false); + searchResults.classList.add('phpdocumentor-search-results--hidden'); + var searchField = document.querySelector('[data-search-form] input[type="search"]'); + searchField.blur(); + } + + function search(event) { + // Start scroll prevention: https://css-tricks.com/prevent-page-scrolling-when-a-modal-is-open/ + document.body.style.position = 'fixed'; + document.body.style.top = `-${window.scrollY}px`; + // End scroll prevention + + // prevent enter's from autosubmitting + event.stopPropagation(); + + var form = document.querySelector('[data-search-form]'); + var searchResults = document.querySelector('[data-search-results]'); + var searchResultEntries = document.querySelector('[data-search-results] .phpdocumentor-search-results__entries'); + + searchResultEntries.innerHTML = ''; + + if (!event.target.value) { + close(); + return; + } + + form.classList.toggle('phpdocumentor-search--has-results', true); + searchResults.classList.remove('phpdocumentor-search-results--hidden'); + var results = fuse.search(event.target.value, {limit: 25}); + + results.forEach(function (result) { + var entry = document.createElement("li"); + entry.classList.add("phpdocumentor-search-results__entry"); + entry.innerHTML += '

                                                                                                                                                                                                                                                                                                  ' + result.name + "

                                                                                                                                                                                                                                                                                                  \n"; + entry.innerHTML += '' + result.fqsen + "\n"; + entry.innerHTML += '
                                                                                                                                                                                                                                                                                                  ' + result.summary + '
                                                                                                                                                                                                                                                                                                  '; + searchResultEntries.appendChild(entry) + }); + } + + function appendIndex(added) { + index = index.concat(added); + + // re-initialize search engine when appending an index after initialisation + if (typeof fuse !== 'undefined') { + fuse = new Fuse(index, options); + } + } + + function init() { + fuse = new Fuse(index, options); + + var form = document.querySelector('[data-search-form]'); + var searchField = document.querySelector('[data-search-form] input[type="search"]'); + + var closeButton = document.querySelector('.phpdocumentor-search-results__close'); + closeButton.addEventListener('click', function() { close() }.bind(this)); + + var searchResults = document.querySelector('[data-search-results]'); + searchResults.addEventListener('click', function() { close() }.bind(this)); + + form.classList.add('phpdocumentor-search--active'); + + searchField.setAttribute('placeholder', 'Search (Press "/" to focus)'); + searchField.removeAttribute('disabled'); + searchField.addEventListener('keyup', debounce(search, 300)); + + window.addEventListener('keyup', function (event) { + if (event.key === '/') { + searchField.focus(); + } + if (event.code === 'Escape') { + close(); + } + }.bind(this)); + } + + return { + appendIndex, + init + } +})(); + +window.addEventListener('DOMContentLoaded', function () { + var form = document.querySelector('[data-search-form]'); + + // When JS is supported; show search box. Must be before including the search for it to take effect immediately + form.classList.add('phpdocumentor-search--enabled'); +}); + +window.addEventListener('load', function () { + Search.init(); +}); diff --git a/app/Lib/vendor/crm-client-3.0.6/documentation/js/searchIndex.js b/app/Lib/vendor/crm-client-3.0.6/documentation/js/searchIndex.js new file mode 100644 index 0000000..c19257f --- /dev/null +++ b/app/Lib/vendor/crm-client-3.0.6/documentation/js/searchIndex.js @@ -0,0 +1,1344 @@ +Search.appendIndex( + [ + { + "fqsen": "\\LDC\\LDCCRM\\CrmApiV2", + "name": "CrmApiV2", + "summary": "This\u0020is\u0020the\u0020main\u0020class\u0020to\u0020interact\u0020with\u0020the\u0020CRM", + "url": "classes/LDC-LDCCRM-CrmApiV2.html" + }, { + "fqsen": "\\LDC\\LDCCRM\\CrmApiV2\u003A\u003A__construct\u0028\u0029", + "name": "__construct", + "summary": "CrmApiV2", + "url": "classes/LDC-LDCCRM-CrmApiV2.html#method___construct" + }, { + "fqsen": "\\LDC\\LDCCRM\\CrmApiV2\u003A\u003Aping\u0028\u0029", + "name": "ping", + "summary": "Use\u0020this\u0020the\u0020ping\u0020the\u0020crm\u0020and\u0020know\u0020its\u0020current\u0020status", + "url": "classes/LDC-LDCCRM-CrmApiV2.html#method_ping" + }, { + "fqsen": "\\LDC\\LDCCRM\\CrmApiV2\u003A\u003AgetCustomerOrNew\u0028\u0029", + "name": "getCustomerOrNew", + "summary": "Get\u0020a\u0020customer\u0020from\u0020its\u0020hashcode\u0020or\u0020email\nIf\u0020it\u0020does\u0020not\u0020exists\u0020a\u0020new\u0020instance\nwill\u0020be\u0020returned.\u0020You\u0020would\u0020have\nto\u0020call\u0020its\u0020save\u0020method\u0020later\u0020on.", + "url": "classes/LDC-LDCCRM-CrmApiV2.html#method_getCustomerOrNew" + }, { + "fqsen": "\\LDC\\LDCCRM\\CrmApiV2\u003A\u003AgetCustomer\u0028\u0029", + "name": "getCustomer", + "summary": "Get\u0020a\u0020customer\u0020from\u0020its\u0020hashcode\u0020or\u0020email\nIf\u0020it\u0020does\u0020not\u0020exists\u0020a\u0020new\u0020instance\nwill\u0020be\u0020returned.\u0020You\u0020would\u0020have\nto\u0020call\u0020its\u0020save\u0020method\u0020later\u0020on.", + "url": "classes/LDC-LDCCRM-CrmApiV2.html#method_getCustomer" + }, { + "fqsen": "\\LDC\\LDCCRM\\CrmApiV2\u003A\u003AsetStatus\u0028\u0029", + "name": "setStatus", + "summary": "Set\u0020the\u0020single\u0020optin\u0020status\u0020for\u0020an\u0020email", + "url": "classes/LDC-LDCCRM-CrmApiV2.html#method_setStatus" + }, { + "fqsen": "\\LDC\\LDCCRM\\CrmApiV2\u003A\u003Alogin\u0028\u0029", + "name": "login", + "summary": "Test\u0020a\u0020customer\u0020credentials\u0020to\u0020see\u0020if\u0020it\u0020can\u0020login", + "url": "classes/LDC-LDCCRM-CrmApiV2.html#method_login" + }, { + "fqsen": "\\LDC\\LDCCRM\\CrmApiV2\u003A\u003A\u0024apiInterface", + "name": "apiInterface", + "summary": "The\u0020Api\u0020object\u0020that\u0020will\u0020handle\u0020requests\u0020and\u0020responses", + "url": "classes/LDC-LDCCRM-CrmApiV2.html#property_apiInterface" + }, { + "fqsen": "\\LDC\\LDCCRM\\Enums\\ApiError", + "name": "ApiError", + "summary": "This\u0020describes\u0020an\u0020API\u0020error.", + "url": "classes/LDC-LDCCRM-Enums-ApiError.html" + }, { + "fqsen": "\\LDC\\LDCCRM\\Enums\\ApiError\u003A\u003Avalues\u0028\u0029", + "name": "values", + "summary": "Valeurs\u0020des\u0020possibilit\u00E9s\u0020de\u0020cet\u0020\u00E9num\u00E9ration\u0020\u0028value\u0029", + "url": "classes/LDC-LDCCRM-Enums-ApiError.html#method_values" + }, { + "fqsen": "\\LDC\\LDCCRM\\Enums\\ApiError\u003A\u003Alabels\u0028\u0029", + "name": "labels", + "summary": "Libell\u00E9s\u0020des\u0020possibilit\u00E9s\u0020de\u0020cet\u0020\u00E9num\u00E9ration\u0020\u0028label\u0029", + "url": "classes/LDC-LDCCRM-Enums-ApiError.html#method_labels" + }, { + "fqsen": "\\LDC\\LDCCRM\\Enums\\ApiStatus", + "name": "ApiStatus", + "summary": "", + "url": "classes/LDC-LDCCRM-Enums-ApiStatus.html" + }, { + "fqsen": "\\LDC\\LDCCRM\\Enums\\ArcadiaMailType", + "name": "ArcadiaMailType", + "summary": "", + "url": "classes/LDC-LDCCRM-Enums-ArcadiaMailType.html" + }, { + "fqsen": "\\LDC\\LDCCRM\\Enums\\ArcadiaMailType\u003A\u003Avalues\u0028\u0029", + "name": "values", + "summary": "Valeurs\u0020des\u0020possibilit\u00E9s\u0020de\u0020cet\u0020\u00E9num\u00E9ration\u0020\u0028value\u0029", + "url": "classes/LDC-LDCCRM-Enums-ArcadiaMailType.html#method_values" + }, { + "fqsen": "\\LDC\\LDCCRM\\Enums\\ArcadiaOrderType", + "name": "ArcadiaOrderType", + "summary": "", + "url": "classes/LDC-LDCCRM-Enums-ArcadiaOrderType.html" + }, { + "fqsen": "\\LDC\\LDCCRM\\Enums\\ArcadiaOrderType\u003A\u003Avalues\u0028\u0029", + "name": "values", + "summary": "Valeurs\u0020des\u0020possibilit\u00E9s\u0020de\u0020cet\u0020\u00E9num\u00E9ration\u0020\u0028value\u0029", + "url": "classes/LDC-LDCCRM-Enums-ArcadiaOrderType.html#method_values" + }, { + "fqsen": "\\LDC\\LDCCRM\\Enums\\Country", + "name": "Country", + "summary": "Liste\u0020de\u0020Pays", + "url": "classes/LDC-LDCCRM-Enums-Country.html" + }, { + "fqsen": "\\LDC\\LDCCRM\\Enums\\Country\u003A\u003Avalues\u0028\u0029", + "name": "values", + "summary": "Valeurs\u0020des\u0020possibilit\u00E9s\u0020de\u0020cet\u0020\u00E9num\u00E9ration\u0020\u0028value\u0029", + "url": "classes/LDC-LDCCRM-Enums-Country.html#method_values" + }, { + "fqsen": "\\LDC\\LDCCRM\\Enums\\Country\u003A\u003Alabels\u0028\u0029", + "name": "labels", + "summary": "Libell\u00E9s\u0020des\u0020possibilit\u00E9s\u0020de\u0020cet\u0020\u00E9num\u00E9ration\u0020\u0028label\u0029", + "url": "classes/LDC-LDCCRM-Enums-Country.html#method_labels" + }, { + "fqsen": "\\LDC\\LDCCRM\\Enums\\LogLevel", + "name": "LogLevel", + "summary": "", + "url": "classes/LDC-LDCCRM-Enums-LogLevel.html" + }, { + "fqsen": "\\LDC\\LDCCRM\\Enums\\LogLevel\u003A\u003Avalues\u0028\u0029", + "name": "values", + "summary": "Valeurs\u0020des\u0020possibilit\u00E9s\u0020de\u0020cet\u0020\u00E9num\u00E9ration\u0020\u0028value\u0029", + "url": "classes/LDC-LDCCRM-Enums-LogLevel.html#method_values" + }, { + "fqsen": "\\LDC\\LDCCRM\\Enums\\QuestionType", + "name": "QuestionType", + "summary": "", + "url": "classes/LDC-LDCCRM-Enums-QuestionType.html" + }, { + "fqsen": "\\LDC\\LDCCRM\\Enums\\QuestionType\u003A\u003Avalues\u0028\u0029", + "name": "values", + "summary": "Valeurs\u0020des\u0020possibilit\u00E9s\u0020de\u0020cet\u0020\u00E9num\u00E9ration\u0020\u0028value\u0029", + "url": "classes/LDC-LDCCRM-Enums-QuestionType.html#method_values" + }, { + "fqsen": "\\LDC\\LDCCRM\\Exceptions\\ApiErrorException", + "name": "ApiErrorException", + "summary": "This\u0020would\u0020be\u0020thrown\u0020if\u0020any\u0020of\u0020the\u0020case\nreferenced\u0020in\u0020\\LDC\\LDCCRM\\Enums\\ApiError\u0020would\noccur\u0020within\u0020the\u0020crm", + "url": "classes/LDC-LDCCRM-Exceptions-ApiErrorException.html" + }, { + "fqsen": "\\LDC\\LDCCRM\\Exceptions\\ApiErrorException\u003A\u003A__construct\u0028\u0029", + "name": "__construct", + "summary": "Create\u0020a\u0020new\u0020exception\u0020base\u0020on\u0020ApiError\u0020enum.", + "url": "classes/LDC-LDCCRM-Exceptions-ApiErrorException.html#method___construct" + }, { + "fqsen": "\\LDC\\LDCCRM\\Exceptions\\ApiErrorException\u003A\u003AgetApiError\u0028\u0029", + "name": "getApiError", + "summary": "Get\u0020the\u0020Api\u0020Error", + "url": "classes/LDC-LDCCRM-Exceptions-ApiErrorException.html#method_getApiError" + }, { + "fqsen": "\\LDC\\LDCCRM\\Exceptions\\ApiErrorException\u003A\u003AgetStatusCode\u0028\u0029", + "name": "getStatusCode", + "summary": "Get\u0020the\u0020http\u0020code", + "url": "classes/LDC-LDCCRM-Exceptions-ApiErrorException.html#method_getStatusCode" + }, { + "fqsen": "\\LDC\\LDCCRM\\Exceptions\\ApiErrorException\u003A\u003Areport\u0028\u0029", + "name": "report", + "summary": "This\u0020is\u0020used\u0020by\u0020laravel\u0020only.", + "url": "classes/LDC-LDCCRM-Exceptions-ApiErrorException.html#method_report" + }, { + "fqsen": "\\LDC\\LDCCRM\\Exceptions\\ApiErrorException\u003A\u003A\u0024error", + "name": "error", + "summary": "Api\u0020Error\nThis\u0020value\u0020makes\u0020the\u0020error\u0020more\u0020explicit.", + "url": "classes/LDC-LDCCRM-Exceptions-ApiErrorException.html#property_error" + }, { + "fqsen": "\\LDC\\LDCCRM\\Exceptions\\ApiErrorException\u003A\u003A\u0024message", + "name": "message", + "summary": "This\u0020is\u0020an\u0020explicit\u0020error\u0020message,\nou\u0020may\u0020print\u0020this\u0020to\u0020the\u0020front\u0020or\u0020not\u0020depending\non\u0020\u0024error\u0020value", + "url": "classes/LDC-LDCCRM-Exceptions-ApiErrorException.html#property_message" + }, { + "fqsen": "\\LDC\\LDCCRM\\Exceptions\\ApiErrorException\u003A\u003A\u0024httpCode", + "name": "httpCode", + "summary": "This\u0020is\u0020the\u0020http\u0020code\u0020returned\u0020by\u0020the\u0020crm.", + "url": "classes/LDC-LDCCRM-Exceptions-ApiErrorException.html#property_httpCode" + }, { + "fqsen": "\\LDC\\LDCCRM\\Exceptions\\CrmException", + "name": "CrmException", + "summary": "This\u0020is\u0020a\u0020critical\u0020error.", + "url": "classes/LDC-LDCCRM-Exceptions-CrmException.html" + }, { + "fqsen": "\\LDC\\LDCCRM\\Exceptions\\CrmException\u003A\u003Areport\u0028\u0029", + "name": "report", + "summary": "This\u0020is\u0020used\u0020by\u0020laravel\u0020only.", + "url": "classes/LDC-LDCCRM-Exceptions-CrmException.html#method_report" + }, { + "fqsen": "\\LDC\\LDCCRM\\Exceptions\\ValidationException", + "name": "ValidationException", + "summary": "This\u0020would\u0020be\u0020thrown\u0020if\u0020a\u0020data\u0020could\u0020not\u0020be\u0020validated\non\u0020any\u0020models", + "url": "classes/LDC-LDCCRM-Exceptions-ValidationException.html" + }, { + "fqsen": "\\LDC\\LDCCRM\\Exceptions\\ValidationException\u003A\u003Areport\u0028\u0029", + "name": "report", + "summary": "This\u0020is\u0020used\u0020by\u0020laravel\u0020only.", + "url": "classes/LDC-LDCCRM-Exceptions-ValidationException.html#method_report" + }, { + "fqsen": "\\LDC\\LDCCRM\\Models\\Answer", + "name": "Answer", + "summary": "This\u0020class\u0020represents\u0020an\u0020answer\nIt\u0020has\u0020a\u0020method\u0020to\u0020submit\u0020answers", + "url": "classes/LDC-LDCCRM-Models-Answer.html" + }, { + "fqsen": "\\LDC\\LDCCRM\\Models\\Answer\u003A\u003A__construct\u0028\u0029", + "name": "__construct", + "summary": "Answer", + "url": "classes/LDC-LDCCRM-Models-Answer.html#method___construct" + }, { + "fqsen": "\\LDC\\LDCCRM\\Models\\Answer\u003A\u003AsetQuestionAnswers\u0028\u0029", + "name": "setQuestionAnswers", + "summary": "Set\u0020unanswered\u0020question\u0020for\u0020a\u0020specific\u0020customer", + "url": "classes/LDC-LDCCRM-Models-Answer.html#method_setQuestionAnswers" + }, { + "fqsen": "\\LDC\\LDCCRM\\Models\\Answer\u003A\u003AjsonSerialize\u0028\u0029", + "name": "jsonSerialize", + "summary": "Serialize\u0020this\u0020object\u0020to\u0020an\u0020array", + "url": "classes/LDC-LDCCRM-Models-Answer.html#method_jsonSerialize" + }, { + "fqsen": "\\LDC\\LDCCRM\\Models\\Answer\u003A\u003A\u0024id", + "name": "id", + "summary": "The\u0020question\u0020id", + "url": "classes/LDC-LDCCRM-Models-Answer.html#property_id" + }, { + "fqsen": "\\LDC\\LDCCRM\\Models\\Answer\u003A\u003A\u0024answer", + "name": "answer", + "summary": "The\u0020actual\u0020answer\u0020as\u0020a\u0020string", + "url": "classes/LDC-LDCCRM-Models-Answer.html#property_answer" + }, { + "fqsen": "\\LDC\\LDCCRM\\Models\\Answer\u003A\u003A\u0024modelFields", + "name": "modelFields", + "summary": "The\u0020crm\u0020customer\u0020fields", + "url": "classes/LDC-LDCCRM-Models-Answer.html#property_modelFields" + }, { + "fqsen": "\\LDC\\LDCCRM\\Models\\Answer\u003A\u003A\u0024validation", + "name": "validation", + "summary": "Validation\u0020rules", + "url": "classes/LDC-LDCCRM-Models-Answer.html#property_validation" + }, { + "fqsen": "\\LDC\\LDCCRM\\Models\\ArcadiaMailDefault", + "name": "ArcadiaMailDefault", + "summary": "This\u0020class\u0020represents\u0020the\u0020customer\u0020info\u0020with\nthe\u0020account\u0020validation\u0020status", + "url": "classes/LDC-LDCCRM-Models-ArcadiaMailDefault.html" + }, { + "fqsen": "\\LDC\\LDCCRM\\Models\\ArcadiaMailDefault\u003A\u003A__construct\u0028\u0029", + "name": "__construct", + "summary": "ArcadiaMailDefault", + "url": "classes/LDC-LDCCRM-Models-ArcadiaMailDefault.html#method___construct" + }, { + "fqsen": "\\LDC\\LDCCRM\\Models\\ArcadiaMailDefault\u003A\u003A__get\u0028\u0029", + "name": "__get", + "summary": "Generic\u0020accessor", + "url": "classes/LDC-LDCCRM-Models-ArcadiaMailDefault.html#method___get" + }, { + "fqsen": "\\LDC\\LDCCRM\\Models\\ArcadiaMailDefault\u003A\u003A__set\u0028\u0029", + "name": "__set", + "summary": "Set\u0020prop", + "url": "classes/LDC-LDCCRM-Models-ArcadiaMailDefault.html#method___set" + }, { + "fqsen": "\\LDC\\LDCCRM\\Models\\ArcadiaMailDefault\u003A\u003Afill\u0028\u0029", + "name": "fill", + "summary": "Fill\u0020data\u0020into\u0020this\u0020model\nusing\u0020validation\u0020rules", + "url": "classes/LDC-LDCCRM-Models-ArcadiaMailDefault.html#method_fill" + }, { + "fqsen": "\\LDC\\LDCCRM\\Models\\ArcadiaMailDefault\u003A\u003AvalidateAllValues\u0028\u0029", + "name": "validateAllValues", + "summary": "Validate\u0020all\u0020model\u0020properties", + "url": "classes/LDC-LDCCRM-Models-ArcadiaMailDefault.html#method_validateAllValues" + }, { + "fqsen": "\\LDC\\LDCCRM\\Models\\ArcadiaMailDefault\u003A\u003Asend\u0028\u0029", + "name": "send", + "summary": "Send\u0020The\u0020actual\u0020mail", + "url": "classes/LDC-LDCCRM-Models-ArcadiaMailDefault.html#method_send" + }, { + "fqsen": "\\LDC\\LDCCRM\\Models\\ArcadiaMailDefault\u003A\u003AjsonSerialize\u0028\u0029", + "name": "jsonSerialize", + "summary": "Serialize\u0020this\u0020object\u0020to\u0020an\u0020array", + "url": "classes/LDC-LDCCRM-Models-ArcadiaMailDefault.html#method_jsonSerialize" + }, { + "fqsen": "\\LDC\\LDCCRM\\Models\\ArcadiaMailDefault\u003A\u003A\u0024email", + "name": "email", + "summary": "An\u0020RFC\u0020Valid\u0020Email", + "url": "classes/LDC-LDCCRM-Models-ArcadiaMailDefault.html#property_email" + }, { + "fqsen": "\\LDC\\LDCCRM\\Models\\ArcadiaMailDefault\u003A\u003A\u0024firstname", + "name": "firstname", + "summary": "First\u0020name", + "url": "classes/LDC-LDCCRM-Models-ArcadiaMailDefault.html#property_firstname" + }, { + "fqsen": "\\LDC\\LDCCRM\\Models\\ArcadiaMailDefault\u003A\u003A\u0024lastname", + "name": "lastname", + "summary": "Last\u0020name", + "url": "classes/LDC-LDCCRM-Models-ArcadiaMailDefault.html#property_lastname" + }, { + "fqsen": "\\LDC\\LDCCRM\\Models\\ArcadiaMailDefault\u003A\u003A\u0024phone", + "name": "phone", + "summary": "The\u0020user\u0020phone", + "url": "classes/LDC-LDCCRM-Models-ArcadiaMailDefault.html#property_phone" + }, { + "fqsen": "\\LDC\\LDCCRM\\Models\\ArcadiaMailDefault\u003A\u003A\u0024address", + "name": "address", + "summary": "The\u0020user\u0020address\u0020\u0028street\u0020number,\u0020name,\u0020etc\u0029", + "url": "classes/LDC-LDCCRM-Models-ArcadiaMailDefault.html#property_address" + }, { + "fqsen": "\\LDC\\LDCCRM\\Models\\ArcadiaMailDefault\u003A\u003A\u0024address2", + "name": "address2", + "summary": "The\u0020user\u0020address\u00202nd\u0020part\u0020\u0028street\u0020number,\u0020name,\u0020more,\u0020etc\u0029", + "url": "classes/LDC-LDCCRM-Models-ArcadiaMailDefault.html#property_address2" + }, { + "fqsen": "\\LDC\\LDCCRM\\Models\\ArcadiaMailDefault\u003A\u003A\u0024city", + "name": "city", + "summary": "The\u0020user\u0020address\u0020city", + "url": "classes/LDC-LDCCRM-Models-ArcadiaMailDefault.html#property_city" + }, { + "fqsen": "\\LDC\\LDCCRM\\Models\\ArcadiaMailDefault\u003A\u003A\u0024postcode", + "name": "postcode", + "summary": "The\u0020user\u0020address\u0020postcode", + "url": "classes/LDC-LDCCRM-Models-ArcadiaMailDefault.html#property_postcode" + }, { + "fqsen": "\\LDC\\LDCCRM\\Models\\ArcadiaMailDefault\u003A\u003A\u0024operation", + "name": "operation", + "summary": "The\u0020arcadia\u0020operation\u0020code", + "url": "classes/LDC-LDCCRM-Models-ArcadiaMailDefault.html#property_operation" + }, { + "fqsen": "\\LDC\\LDCCRM\\Models\\ArcadiaMailDefault\u003A\u003A\u0024support_code", + "name": "support_code", + "summary": "The\u0020arcadia\u0020support\u0020code", + "url": "classes/LDC-LDCCRM-Models-ArcadiaMailDefault.html#property_support_code" + }, { + "fqsen": "\\LDC\\LDCCRM\\Models\\ArcadiaMailDefault\u003A\u003A\u0024label_type_support", + "name": "label_type_support", + "summary": "The\u0020arcadia\u0020type\u0020support\u0020label", + "url": "classes/LDC-LDCCRM-Models-ArcadiaMailDefault.html#property_label_type_support" + }, { + "fqsen": "\\LDC\\LDCCRM\\Models\\ArcadiaMailDefault\u003A\u003A\u0024order_date", + "name": "order_date", + "summary": "The\u0020arcadia\u0020order\u0020date", + "url": "classes/LDC-LDCCRM-Models-ArcadiaMailDefault.html#property_order_date" + }, { + "fqsen": "\\LDC\\LDCCRM\\Models\\ArcadiaMailDefault\u003A\u003A\u0024order_num", + "name": "order_num", + "summary": "The\u0020arcadia\u0020order\u0020number", + "url": "classes/LDC-LDCCRM-Models-ArcadiaMailDefault.html#property_order_num" + }, { + "fqsen": "\\LDC\\LDCCRM\\Models\\ArcadiaMailDefault\u003A\u003A\u0024state_order", + "name": "state_order", + "summary": "The\u0020arcadia\u0020state\u0020order", + "url": "classes/LDC-LDCCRM-Models-ArcadiaMailDefault.html#property_state_order" + }, { + "fqsen": "\\LDC\\LDCCRM\\Models\\ArcadiaMailDefault\u003A\u003A\u0024package_unit_weight", + "name": "package_unit_weight", + "summary": "The\u0020arcadia\u0020package\u0020unit\u0020weight", + "url": "classes/LDC-LDCCRM-Models-ArcadiaMailDefault.html#property_package_unit_weight" + }, { + "fqsen": "\\LDC\\LDCCRM\\Models\\ArcadiaMailDefault\u003A\u003A\u0024modelFields", + "name": "modelFields", + "summary": "The\u0020crm\u0020customer\u0020fields", + "url": "classes/LDC-LDCCRM-Models-ArcadiaMailDefault.html#property_modelFields" + }, { + "fqsen": "\\LDC\\LDCCRM\\Models\\ArcadiaMailDefault\u003A\u003A\u0024validation", + "name": "validation", + "summary": "Validation\u0020rules", + "url": "classes/LDC-LDCCRM-Models-ArcadiaMailDefault.html#property_validation" + }, { + "fqsen": "\\LDC\\LDCCRM\\Models\\ArcadiaMailGame", + "name": "ArcadiaMailGame", + "summary": "This\u0020class\u0020represents\u0020the\u0020customer\u0020info\u0020with\nthe\u0020account\u0020validation\u0020status", + "url": "classes/LDC-LDCCRM-Models-ArcadiaMailGame.html" + }, { + "fqsen": "\\LDC\\LDCCRM\\Models\\ArcadiaMailGame\u003A\u003A__construct\u0028\u0029", + "name": "__construct", + "summary": "ArcadiaMailGame", + "url": "classes/LDC-LDCCRM-Models-ArcadiaMailGame.html#method___construct" + }, { + "fqsen": "\\LDC\\LDCCRM\\Models\\ArcadiaMailGame\u003A\u003A__set\u0028\u0029", + "name": "__set", + "summary": "Set\u0020prop", + "url": "classes/LDC-LDCCRM-Models-ArcadiaMailGame.html#method___set" + }, { + "fqsen": "\\LDC\\LDCCRM\\Models\\ArcadiaMailGame\u003A\u003Afill\u0028\u0029", + "name": "fill", + "summary": "Fill\u0020data\u0020into\u0020this\u0020model\nusing\u0020validation\u0020rules", + "url": "classes/LDC-LDCCRM-Models-ArcadiaMailGame.html#method_fill" + }, { + "fqsen": "\\LDC\\LDCCRM\\Models\\ArcadiaMailGame\u003A\u003Asend\u0028\u0029", + "name": "send", + "summary": "Send\u0020The\u0020actual\u0020mail", + "url": "classes/LDC-LDCCRM-Models-ArcadiaMailGame.html#method_send" + }, { + "fqsen": "\\LDC\\LDCCRM\\Models\\ArcadiaMailGame\u003A\u003AjsonSerialize\u0028\u0029", + "name": "jsonSerialize", + "summary": "Serialize\u0020this\u0020object\u0020to\u0020an\u0020array", + "url": "classes/LDC-LDCCRM-Models-ArcadiaMailGame.html#method_jsonSerialize" + }, { + "fqsen": "\\LDC\\LDCCRM\\Models\\ArcadiaMailGame\u003A\u003A\u0024email", + "name": "email", + "summary": "An\u0020RFC\u0020Valid\u0020Email", + "url": "classes/LDC-LDCCRM-Models-ArcadiaMailGame.html#property_email" + }, { + "fqsen": "\\LDC\\LDCCRM\\Models\\ArcadiaMailGame\u003A\u003A\u0024firstname", + "name": "firstname", + "summary": "First\u0020name", + "url": "classes/LDC-LDCCRM-Models-ArcadiaMailGame.html#property_firstname" + }, { + "fqsen": "\\LDC\\LDCCRM\\Models\\ArcadiaMailGame\u003A\u003A\u0024lastname", + "name": "lastname", + "summary": "Last\u0020name", + "url": "classes/LDC-LDCCRM-Models-ArcadiaMailGame.html#property_lastname" + }, { + "fqsen": "\\LDC\\LDCCRM\\Models\\ArcadiaMailGame\u003A\u003A\u0024phone", + "name": "phone", + "summary": "The\u0020user\u0020phone", + "url": "classes/LDC-LDCCRM-Models-ArcadiaMailGame.html#property_phone" + }, { + "fqsen": "\\LDC\\LDCCRM\\Models\\ArcadiaMailGame\u003A\u003A\u0024address", + "name": "address", + "summary": "The\u0020user\u0020address\u0020\u0028street\u0020number,\u0020name,\u0020etc\u0029", + "url": "classes/LDC-LDCCRM-Models-ArcadiaMailGame.html#property_address" + }, { + "fqsen": "\\LDC\\LDCCRM\\Models\\ArcadiaMailGame\u003A\u003A\u0024address2", + "name": "address2", + "summary": "The\u0020user\u0020address\u00202nd\u0020part\u0020\u0028street\u0020number,\u0020name,\u0020more,\u0020etc\u0029", + "url": "classes/LDC-LDCCRM-Models-ArcadiaMailGame.html#property_address2" + }, { + "fqsen": "\\LDC\\LDCCRM\\Models\\ArcadiaMailGame\u003A\u003A\u0024city", + "name": "city", + "summary": "The\u0020user\u0020address\u0020city", + "url": "classes/LDC-LDCCRM-Models-ArcadiaMailGame.html#property_city" + }, { + "fqsen": "\\LDC\\LDCCRM\\Models\\ArcadiaMailGame\u003A\u003A\u0024postcode", + "name": "postcode", + "summary": "The\u0020user\u0020address\u0020postcode", + "url": "classes/LDC-LDCCRM-Models-ArcadiaMailGame.html#property_postcode" + }, { + "fqsen": "\\LDC\\LDCCRM\\Models\\ArcadiaMailGame\u003A\u003A\u0024operation", + "name": "operation", + "summary": "The\u0020arcadia\u0020operation\u0020code", + "url": "classes/LDC-LDCCRM-Models-ArcadiaMailGame.html#property_operation" + }, { + "fqsen": "\\LDC\\LDCCRM\\Models\\ArcadiaMailGame\u003A\u003A\u0024support_code", + "name": "support_code", + "summary": "The\u0020arcadia\u0020support\u0020code", + "url": "classes/LDC-LDCCRM-Models-ArcadiaMailGame.html#property_support_code" + }, { + "fqsen": "\\LDC\\LDCCRM\\Models\\ArcadiaMailGame\u003A\u003A\u0024label_type_support", + "name": "label_type_support", + "summary": "The\u0020arcadia\u0020type\u0020support\u0020label", + "url": "classes/LDC-LDCCRM-Models-ArcadiaMailGame.html#property_label_type_support" + }, { + "fqsen": "\\LDC\\LDCCRM\\Models\\ArcadiaMailGame\u003A\u003A\u0024order_date", + "name": "order_date", + "summary": "The\u0020arcadia\u0020order\u0020date", + "url": "classes/LDC-LDCCRM-Models-ArcadiaMailGame.html#property_order_date" + }, { + "fqsen": "\\LDC\\LDCCRM\\Models\\ArcadiaMailGame\u003A\u003A\u0024code_unique", + "name": "code_unique", + "summary": "The\u0020arcadia\u0020code\u0020unique", + "url": "classes/LDC-LDCCRM-Models-ArcadiaMailGame.html#property_code_unique" + }, { + "fqsen": "\\LDC\\LDCCRM\\Models\\ArcadiaMailGame\u003A\u003A\u0024code_on_pack", + "name": "code_on_pack", + "summary": "The\u0020arcadia\u0020code\u0020on\u0020pack", + "url": "classes/LDC-LDCCRM-Models-ArcadiaMailGame.html#property_code_on_pack" + }, { + "fqsen": "\\LDC\\LDCCRM\\Models\\ArcadiaMailGame\u003A\u003A\u0024modelFields", + "name": "modelFields", + "summary": "The\u0020crm\u0020customer\u0020fields", + "url": "classes/LDC-LDCCRM-Models-ArcadiaMailGame.html#property_modelFields" + }, { + "fqsen": "\\LDC\\LDCCRM\\Models\\ArcadiaMailGame\u003A\u003A\u0024validation", + "name": "validation", + "summary": "Validation\u0020rules", + "url": "classes/LDC-LDCCRM-Models-ArcadiaMailGame.html#property_validation" + }, { + "fqsen": "\\LDC\\LDCCRM\\Models\\Customer", + "name": "Customer", + "summary": "This\u0020class\u0020represents\u0020the\u0020customer\u0020info\u0020with\nthe\u0020account\u0020validation\u0020status.\u0020You\u0020can\u0020use\u0020it\u0020as\na\u0020standalone\u0020class\u0020but\u0020beware\u0020of\u0020catching\u0020exceptions", + "url": "classes/LDC-LDCCRM-Models-Customer.html" + }, { + "fqsen": "\\LDC\\LDCCRM\\Models\\Customer\u003A\u003A__construct\u0028\u0029", + "name": "__construct", + "summary": "Customer", + "url": "classes/LDC-LDCCRM-Models-Customer.html#method___construct" + }, { + "fqsen": "\\LDC\\LDCCRM\\Models\\Customer\u003A\u003A__get\u0028\u0029", + "name": "__get", + "summary": "Generic\u0020accessor", + "url": "classes/LDC-LDCCRM-Models-Customer.html#method___get" + }, { + "fqsen": "\\LDC\\LDCCRM\\Models\\Customer\u003A\u003A__set\u0028\u0029", + "name": "__set", + "summary": "Set\u0020prop\u0020on\u0020the\u0020model.", + "url": "classes/LDC-LDCCRM-Models-Customer.html#method___set" + }, { + "fqsen": "\\LDC\\LDCCRM\\Models\\Customer\u003A\u003Afill\u0028\u0029", + "name": "fill", + "summary": "Fill\u0020values\u0020into\u0020model\u0020using\u0020validation\u0020rules.", + "url": "classes/LDC-LDCCRM-Models-Customer.html#method_fill" + }, { + "fqsen": "\\LDC\\LDCCRM\\Models\\Customer\u003A\u003AvalidateAllValues\u0028\u0029", + "name": "validateAllValues", + "summary": "Validate\u0020all\u0020model\u0020properties", + "url": "classes/LDC-LDCCRM-Models-Customer.html#method_validateAllValues" + }, { + "fqsen": "\\LDC\\LDCCRM\\Models\\Customer\u003A\u003Afind\u0028\u0029", + "name": "find", + "summary": "Find\u0020a\u0020customer\u0020using\u0020its\u0020hashcode\u0020in\u0020the\u0020crm", + "url": "classes/LDC-LDCCRM-Models-Customer.html#method_find" + }, { + "fqsen": "\\LDC\\LDCCRM\\Models\\Customer\u003A\u003AfindWithEmail\u0028\u0029", + "name": "findWithEmail", + "summary": "Find\u0020a\u0020customer\u0020using\u0020its\u0020email\u0020in\u0020the\u0020crm\nThis\u0020is\u0020an\u0020alias\u0020of\u0020Customer\u003A\u003Afind\u0028\u0029", + "url": "classes/LDC-LDCCRM-Models-Customer.html#method_findWithEmail" + }, { + "fqsen": "\\LDC\\LDCCRM\\Models\\Customer\u003A\u003Asave\u0028\u0029", + "name": "save", + "summary": "Save\u0020the\u0020customer\u0020on\u0020CRM.", + "url": "classes/LDC-LDCCRM-Models-Customer.html#method_save" + }, { + "fqsen": "\\LDC\\LDCCRM\\Models\\Customer\u003A\u003Astore\u0028\u0029", + "name": "store", + "summary": "Calls\u0020api\u0020store\u0020customer\u0020method", + "url": "classes/LDC-LDCCRM-Models-Customer.html#method_store" + }, { + "fqsen": "\\LDC\\LDCCRM\\Models\\Customer\u003A\u003Aupdate\u0028\u0029", + "name": "update", + "summary": "Calls\u0020api\u0020update\u0020customer\u0020method", + "url": "classes/LDC-LDCCRM-Models-Customer.html#method_update" + }, { + "fqsen": "\\LDC\\LDCCRM\\Models\\Customer\u003A\u003Adelete\u0028\u0029", + "name": "delete", + "summary": "Removes\u0020the\u0020customer\u0020from\u0020CRM.", + "url": "classes/LDC-LDCCRM-Models-Customer.html#method_delete" + }, { + "fqsen": "\\LDC\\LDCCRM\\Models\\Customer\u003A\u003Aactivate\u0028\u0029", + "name": "activate", + "summary": "Active\u0020the\u0020customer\u0020on\u0020CRM.", + "url": "classes/LDC-LDCCRM-Models-Customer.html#method_activate" + }, { + "fqsen": "\\LDC\\LDCCRM\\Models\\Customer\u003A\u003AtoggleOptin\u0028\u0029", + "name": "toggleOptin", + "summary": "Toggle\u0020the\u0020account\u0020optin\u0020value\u0020in\u0020the\u0020crm", + "url": "classes/LDC-LDCCRM-Models-Customer.html#method_toggleOptin" + }, { + "fqsen": "\\LDC\\LDCCRM\\Models\\Customer\u003A\u003Alogin\u0028\u0029", + "name": "login", + "summary": "Test\u0020customer\u0020credentials", + "url": "classes/LDC-LDCCRM-Models-Customer.html#method_login" + }, { + "fqsen": "\\LDC\\LDCCRM\\Models\\Customer\u003A\u003AjsonSerialize\u0028\u0029", + "name": "jsonSerialize", + "summary": "Serialize\u0020this\u0020object\u0020to\u0020an\u0020array", + "url": "classes/LDC-LDCCRM-Models-Customer.html#method_jsonSerialize" + }, { + "fqsen": "\\LDC\\LDCCRM\\Models\\Customer\u003A\u003A\u0024hashcode", + "name": "hashcode", + "summary": "The\u0020user\u0020hashcode,\u0020this\u0020is\u0020link\u0020with\u0020the\u0020customer\u0020and\u0020the\u0020brand\u0020it\u0020is\u0020related\u0020to\nIt\u0020is\u0020used\u0020to\u0020identify\u0020the\u0020customer\u0020itself.", + "url": "classes/LDC-LDCCRM-Models-Customer.html#property_hashcode" + }, { + "fqsen": "\\LDC\\LDCCRM\\Models\\Customer\u003A\u003A\u0024email", + "name": "email", + "summary": "An\u0020RFC\u0020Valid\u0020Email", + "url": "classes/LDC-LDCCRM-Models-Customer.html#property_email" + }, { + "fqsen": "\\LDC\\LDCCRM\\Models\\Customer\u003A\u003A\u0024password", + "name": "password", + "summary": "The\u0020user\u0020password\nThis\u0020is\u0020set\u0020only\u0020when\u0020creating\u0020a\u0020user\nOtherwise\u0020it\u0020has\u0020to\u0020be\u0020set\u0020to\u0020null", + "url": "classes/LDC-LDCCRM-Models-Customer.html#property_password" + }, { + "fqsen": "\\LDC\\LDCCRM\\Models\\Customer\u003A\u003A\u0024firstname", + "name": "firstname", + "summary": "First\u0020name", + "url": "classes/LDC-LDCCRM-Models-Customer.html#property_firstname" + }, { + "fqsen": "\\LDC\\LDCCRM\\Models\\Customer\u003A\u003A\u0024lastname", + "name": "lastname", + "summary": "Last\u0020name", + "url": "classes/LDC-LDCCRM-Models-Customer.html#property_lastname" + }, { + "fqsen": "\\LDC\\LDCCRM\\Models\\Customer\u003A\u003A\u0024birth_date", + "name": "birth_date", + "summary": "Birth\u0020date", + "url": "classes/LDC-LDCCRM-Models-Customer.html#property_birth_date" + }, { + "fqsen": "\\LDC\\LDCCRM\\Models\\Customer\u003A\u003A\u0024phone", + "name": "phone", + "summary": "The\u0020user\u0020phone", + "url": "classes/LDC-LDCCRM-Models-Customer.html#property_phone" + }, { + "fqsen": "\\LDC\\LDCCRM\\Models\\Customer\u003A\u003A\u0024address", + "name": "address", + "summary": "The\u0020user\u0020address\u0020\u0028street\u0020number,\u0020name,\u0020etc\u0029", + "url": "classes/LDC-LDCCRM-Models-Customer.html#property_address" + }, { + "fqsen": "\\LDC\\LDCCRM\\Models\\Customer\u003A\u003A\u0024address2", + "name": "address2", + "summary": "The\u0020user\u0020address\u00202nd\u0020part\u0020\u0028street\u0020number,\u0020name,\u0020more,\u0020etc\u0029", + "url": "classes/LDC-LDCCRM-Models-Customer.html#property_address2" + }, { + "fqsen": "\\LDC\\LDCCRM\\Models\\Customer\u003A\u003A\u0024city", + "name": "city", + "summary": "The\u0020user\u0020address\u0020city", + "url": "classes/LDC-LDCCRM-Models-Customer.html#property_city" + }, { + "fqsen": "\\LDC\\LDCCRM\\Models\\Customer\u003A\u003A\u0024postcode", + "name": "postcode", + "summary": "The\u0020user\u0020address\u0020postcode", + "url": "classes/LDC-LDCCRM-Models-Customer.html#property_postcode" + }, { + "fqsen": "\\LDC\\LDCCRM\\Models\\Customer\u003A\u003A\u0024country", + "name": "country", + "summary": "The\u0020user\u0020address\u0020postcode", + "url": "classes/LDC-LDCCRM-Models-Customer.html#property_country" + }, { + "fqsen": "\\LDC\\LDCCRM\\Models\\Customer\u003A\u003A\u0024opt_in", + "name": "opt_in", + "summary": "The\u0020user\u0020optin\u0020choice", + "url": "classes/LDC-LDCCRM-Models-Customer.html#property_opt_in" + }, { + "fqsen": "\\LDC\\LDCCRM\\Models\\Customer\u003A\u003A\u0024status", + "name": "status", + "summary": "Is\u0020the\u0020account\u0020activated\u0020\u003F", + "url": "classes/LDC-LDCCRM-Models-Customer.html#property_status" + }, { + "fqsen": "\\LDC\\LDCCRM\\Models\\Customer\u003A\u003A\u0024last_connection", + "name": "last_connection", + "summary": "The\u0020last\u0020time\u0020the\u0020account\u0020was\u0020connected", + "url": "classes/LDC-LDCCRM-Models-Customer.html#property_last_connection" + }, { + "fqsen": "\\LDC\\LDCCRM\\Models\\Customer\u003A\u003A\u0024modelFields", + "name": "modelFields", + "summary": "The\u0020crm\u0020customer\u0020fields", + "url": "classes/LDC-LDCCRM-Models-Customer.html#property_modelFields" + }, { + "fqsen": "\\LDC\\LDCCRM\\Models\\Customer\u003A\u003A\u0024invisibleFields", + "name": "invisibleFields", + "summary": "The\u0020crm\u0020customer\u0020fields\nthe\u0020should\u0020not\u0020be\u0020visible", + "url": "classes/LDC-LDCCRM-Models-Customer.html#property_invisibleFields" + }, { + "fqsen": "\\LDC\\LDCCRM\\Models\\Customer\u003A\u003A\u0024validation", + "name": "validation", + "summary": "Validation\u0020rules", + "url": "classes/LDC-LDCCRM-Models-Customer.html#property_validation" + }, { + "fqsen": "\\LDC\\LDCCRM\\Models\\Question", + "name": "Question", + "summary": "This\u0020class\u0020represents\u0020a\u0020question\nIt\u0020has\u0020some\u0020static\u0020methods\u0020to\u0020retrieve\u0020questions\u0020and\u0020answers", + "url": "classes/LDC-LDCCRM-Models-Question.html" + }, { + "fqsen": "\\LDC\\LDCCRM\\Models\\Question\u003A\u003A__construct\u0028\u0029", + "name": "__construct", + "summary": "Question", + "url": "classes/LDC-LDCCRM-Models-Question.html#method___construct" + }, { + "fqsen": "\\LDC\\LDCCRM\\Models\\Question\u003A\u003A__get\u0028\u0029", + "name": "__get", + "summary": "General\u0020accessor", + "url": "classes/LDC-LDCCRM-Models-Question.html#method___get" + }, { + "fqsen": "\\LDC\\LDCCRM\\Models\\Question\u003A\u003A__set\u0028\u0029", + "name": "__set", + "summary": "Set\u0020prop\u0020on\u0020the\u0020model.", + "url": "classes/LDC-LDCCRM-Models-Question.html#method___set" + }, { + "fqsen": "\\LDC\\LDCCRM\\Models\\Question\u003A\u003Afill\u0028\u0029", + "name": "fill", + "summary": "Fill\u0020values\u0020into\u0020model\u0020using\u0020validation\u0020rules.", + "url": "classes/LDC-LDCCRM-Models-Question.html#method_fill" + }, { + "fqsen": "\\LDC\\LDCCRM\\Models\\Question\u003A\u003AvalidateAllValues\u0028\u0029", + "name": "validateAllValues", + "summary": "Validate\u0020all\u0020model\u0020properties", + "url": "classes/LDC-LDCCRM-Models-Question.html#method_validateAllValues" + }, { + "fqsen": "\\LDC\\LDCCRM\\Models\\Question\u003A\u003Aall\u0028\u0029", + "name": "all", + "summary": "Get\u0020all\u0020questions\u0020only", + "url": "classes/LDC-LDCCRM-Models-Question.html#method_all" + }, { + "fqsen": "\\LDC\\LDCCRM\\Models\\Question\u003A\u003AallWithCustomerAnswers\u0028\u0029", + "name": "allWithCustomerAnswers", + "summary": "Get\u0020all\u0020the\u0020questions\u0020with\u0020customer\u0020answers", + "url": "classes/LDC-LDCCRM-Models-Question.html#method_allWithCustomerAnswers" + }, { + "fqsen": "\\LDC\\LDCCRM\\Models\\Question\u003A\u003AunansweredBy\u0028\u0029", + "name": "unansweredBy", + "summary": "Get\u0020unanswered\u0020question\u0020for\u0020a\u0020specific\u0020customer", + "url": "classes/LDC-LDCCRM-Models-Question.html#method_unansweredBy" + }, { + "fqsen": "\\LDC\\LDCCRM\\Models\\Question\u003A\u003AjsonSerialize\u0028\u0029", + "name": "jsonSerialize", + "summary": "Serialize\u0020this\u0020object\u0020to\u0020an\u0020array", + "url": "classes/LDC-LDCCRM-Models-Question.html#method_jsonSerialize" + }, { + "fqsen": "\\LDC\\LDCCRM\\Models\\Question\u003A\u003A\u0024id", + "name": "id", + "summary": "The\u0020question\u0020id", + "url": "classes/LDC-LDCCRM-Models-Question.html#property_id" + }, { + "fqsen": "\\LDC\\LDCCRM\\Models\\Question\u003A\u003A\u0024question", + "name": "question", + "summary": "The\u0020actual\u0020question\u0020as\u0020a\u0020string", + "url": "classes/LDC-LDCCRM-Models-Question.html#property_question" + }, { + "fqsen": "\\LDC\\LDCCRM\\Models\\Question\u003A\u003A\u0024type", + "name": "type", + "summary": "The\u0020question\u0020type", + "url": "classes/LDC-LDCCRM-Models-Question.html#property_type" + }, { + "fqsen": "\\LDC\\LDCCRM\\Models\\Question\u003A\u003A\u0024answers", + "name": "answers", + "summary": "The\u0020question\u0020answers", + "url": "classes/LDC-LDCCRM-Models-Question.html#property_answers" + }, { + "fqsen": "\\LDC\\LDCCRM\\Models\\Question\u003A\u003A\u0024modelFields", + "name": "modelFields", + "summary": "The\u0020crm\u0020customer\u0020fields", + "url": "classes/LDC-LDCCRM-Models-Question.html#property_modelFields" + }, { + "fqsen": "\\LDC\\LDCCRM\\Models\\Question\u003A\u003A\u0024validation", + "name": "validation", + "summary": "Validation\u0020rules", + "url": "classes/LDC-LDCCRM-Models-Question.html#property_validation" + }, { + "fqsen": "\\LDC\\LDCCRM\\Models\\SingleOptin", + "name": "SingleOptin", + "summary": "This\u0020class\u0020allows\u0020to\u0020handle\u0020single\u0020opt\u0020in", + "url": "classes/LDC-LDCCRM-Models-SingleOptin.html" + }, { + "fqsen": "\\LDC\\LDCCRM\\Models\\SingleOptin\u003A\u003AsetStatus\u0028\u0029", + "name": "setStatus", + "summary": "Set\u0020the\u0020single\u0020opt\u0020in\u0020status\u0020for\u0020an\u0020email", + "url": "classes/LDC-LDCCRM-Models-SingleOptin.html#method_setStatus" + }, { + "fqsen": "\\LDC\\LDCCRM\\Models\\SingleOptin\u003A\u003A\u0024validation", + "name": "validation", + "summary": "Validation\u0020rules", + "url": "classes/LDC-LDCCRM-Models-SingleOptin.html#property_validation" + }, { + "fqsen": "\\LDC\\LDCCRM\\Transport\\Request", + "name": "Request", + "summary": "The\u0020LDC\u0020CRM\u0020request\nContains\u0020the\u0020http\u0020method,\u0020the\u0020requested\u0020url\u0020and\u0020data\u0020to\u0020pass", + "url": "classes/LDC-LDCCRM-Transport-Request.html" + }, { + "fqsen": "\\LDC\\LDCCRM\\Transport\\Request\u003A\u003A__construct\u0028\u0029", + "name": "__construct", + "summary": "Request", + "url": "classes/LDC-LDCCRM-Transport-Request.html#method___construct" + }, { + "fqsen": "\\LDC\\LDCCRM\\Transport\\Request\u003A\u003A__get\u0028\u0029", + "name": "__get", + "summary": "Generic\u0020accessor", + "url": "classes/LDC-LDCCRM-Transport-Request.html#method___get" + }, { + "fqsen": "\\LDC\\LDCCRM\\Transport\\Request\u003A\u003AmakeRequest\u0028\u0029", + "name": "makeRequest", + "summary": "make\u0020the\u0020guzzle\u0020request", + "url": "classes/LDC-LDCCRM-Transport-Request.html#method_makeRequest" + }, { + "fqsen": "\\LDC\\LDCCRM\\Transport\\Request\u003A\u003AsetEndpoint\u0028\u0029", + "name": "setEndpoint", + "summary": "Set\u0020the\u0020api\u0020endpoint\u0020to\u0020the\u0020request", + "url": "classes/LDC-LDCCRM-Transport-Request.html#method_setEndpoint" + }, { + "fqsen": "\\LDC\\LDCCRM\\Transport\\Request\u003A\u003Acall\u0028\u0029", + "name": "call", + "summary": "Make\u0020the\u0020Http\u0020request", + "url": "classes/LDC-LDCCRM-Transport-Request.html#method_call" + }, { + "fqsen": "\\LDC\\LDCCRM\\Transport\\Request\u003A\u003AaddHeaders\u0028\u0029", + "name": "addHeaders", + "summary": "Add\u0020headers\u0020to\u0020the\u0020request", + "url": "classes/LDC-LDCCRM-Transport-Request.html#method_addHeaders" + }, { + "fqsen": "\\LDC\\LDCCRM\\Transport\\Request\u003A\u003AaddData\u0028\u0029", + "name": "addData", + "summary": "Add\u0020data\u0020to\u0020the\u0020request", + "url": "classes/LDC-LDCCRM-Transport-Request.html#method_addData" + }, { + "fqsen": "\\LDC\\LDCCRM\\Transport\\Request\u003A\u003A\u0024client", + "name": "client", + "summary": "GuzzleHttp\u0020client", + "url": "classes/LDC-LDCCRM-Transport-Request.html#property_client" + }, { + "fqsen": "\\LDC\\LDCCRM\\Transport\\Request\u003A\u003A\u0024method", + "name": "method", + "summary": "The\u0020http\u0020method", + "url": "classes/LDC-LDCCRM-Transport-Request.html#property_method" + }, { + "fqsen": "\\LDC\\LDCCRM\\Transport\\Request\u003A\u003A\u0024uri", + "name": "uri", + "summary": "The\u0020http\u0020url", + "url": "classes/LDC-LDCCRM-Transport-Request.html#property_uri" + }, { + "fqsen": "\\LDC\\LDCCRM\\Transport\\Request\u003A\u003A\u0024headers", + "name": "headers", + "summary": "Data\u0020to\u0020pass\u0020to\u0020the\u0020http\u0020headers", + "url": "classes/LDC-LDCCRM-Transport-Request.html#property_headers" + }, { + "fqsen": "\\LDC\\LDCCRM\\Transport\\Request\u003A\u003A\u0024data", + "name": "data", + "summary": "Data\u0020to\u0020pass\u0020to\u0020the\u0020http\u0020body", + "url": "classes/LDC-LDCCRM-Transport-Request.html#property_data" + }, { + "fqsen": "\\LDC\\LDCCRM\\Transport\\Request\u003A\u003A\u0024request", + "name": "request", + "summary": "Guzzle\u0020request", + "url": "classes/LDC-LDCCRM-Transport-Request.html#property_request" + }, { + "fqsen": "\\LDC\\LDCCRM\\Transport\\Request\u003A\u003A\u0024endpoint", + "name": "endpoint", + "summary": "The\u0020Api\u0020endpoint", + "url": "classes/LDC-LDCCRM-Transport-Request.html#property_endpoint" + }, { + "fqsen": "\\LDC\\LDCCRM\\Transport\\Response", + "name": "Response", + "summary": "", + "url": "classes/LDC-LDCCRM-Transport-Response.html" + }, { + "fqsen": "\\LDC\\LDCCRM\\Transport\\Response\u003A\u003A__construct\u0028\u0029", + "name": "__construct", + "summary": "Response", + "url": "classes/LDC-LDCCRM-Transport-Response.html#method___construct" + }, { + "fqsen": "\\LDC\\LDCCRM\\Transport\\Response\u003A\u003A__get\u0028\u0029", + "name": "__get", + "summary": "Generic\u0020accessor", + "url": "classes/LDC-LDCCRM-Transport-Response.html#method___get" + }, { + "fqsen": "\\LDC\\LDCCRM\\Transport\\Response\u003A\u003AtryDecodeJson\u0028\u0029", + "name": "tryDecodeJson", + "summary": "Try\u0020to\u0020decode\u0020json\u0020and\u0020return\u0020false\u0020if\u0020it\u0020is\nnot\u0020a\u0020valid\u0020json", + "url": "classes/LDC-LDCCRM-Transport-Response.html#method_tryDecodeJson" + }, { + "fqsen": "\\LDC\\LDCCRM\\Transport\\Response\u003A\u003AcheckVersion\u0028\u0029", + "name": "checkVersion", + "summary": "This\u0020checks\u0020if\u0020the\u0020crm\u0020version\u0020is\u0020way\u0020far\u0020beyond\u0020the\u0020client\u0020version.", + "url": "classes/LDC-LDCCRM-Transport-Response.html#method_checkVersion" + }, { + "fqsen": "\\LDC\\LDCCRM\\Transport\\Response\u003A\u003A\u0024status", + "name": "status", + "summary": "The\u0020response\u0020status", + "url": "classes/LDC-LDCCRM-Transport-Response.html#property_status" + }, { + "fqsen": "\\LDC\\LDCCRM\\Transport\\Response\u003A\u003A\u0024apiError", + "name": "apiError", + "summary": "The\u0020api\u0020error", + "url": "classes/LDC-LDCCRM-Transport-Response.html#property_apiError" + }, { + "fqsen": "\\LDC\\LDCCRM\\Transport\\Response\u003A\u003A\u0024httpCode", + "name": "httpCode", + "summary": "The\u0020response\u0020http\u0020code", + "url": "classes/LDC-LDCCRM-Transport-Response.html#property_httpCode" + }, { + "fqsen": "\\LDC\\LDCCRM\\Transport\\Response\u003A\u003A\u0024headers", + "name": "headers", + "summary": "The\u0020response\u0020headers", + "url": "classes/LDC-LDCCRM-Transport-Response.html#property_headers" + }, { + "fqsen": "\\LDC\\LDCCRM\\Transport\\Response\u003A\u003A\u0024body", + "name": "body", + "summary": "The\u0020response\u0020body", + "url": "classes/LDC-LDCCRM-Transport-Response.html#property_body" + }, { + "fqsen": "\\LDC\\LDCCRM\\Transport\\Response\u003A\u003A\u0024message", + "name": "message", + "summary": "The\u0020interface\u0020message", + "url": "classes/LDC-LDCCRM-Transport-Response.html#property_message" + }, { + "fqsen": "\\LDC\\LDCCRM\\Transport\\Response\u003A\u003A\u0024response", + "name": "response", + "summary": "PSR\u0020response", + "url": "classes/LDC-LDCCRM-Transport-Response.html#property_response" + }, { + "fqsen": "\\LDC\\LDCCRM\\Utils", + "name": "Utils", + "summary": "This\u0020is\u0020the\u0020LDCCRM\u0020utility\u0020class", + "url": "classes/LDC-LDCCRM-Utils.html" + }, { + "fqsen": "\\LDC\\LDCCRM\\Utils\u003A\u003AmakeValidator\u0028\u0029", + "name": "makeValidator", + "summary": "Create\u0020a\u0020new\u0020Validator\u0020instance.", + "url": "classes/LDC-LDCCRM-Utils.html#method_makeValidator" + }, { + "fqsen": "\\LDC\\LDCCRM\\Utils\u003A\u003AmakeValidatorFromRule\u0028\u0029", + "name": "makeValidatorFromRule", + "summary": "Generate\u0020a\u0020validator", + "url": "classes/LDC-LDCCRM-Utils.html#method_makeValidatorFromRule" + }, { + "fqsen": "\\LDC\\LDCCRM\\Utils\u003A\u003AvalidationRequired\u0028\u0029", + "name": "validationRequired", + "summary": "Make\u0020Required\u0020validator", + "url": "classes/LDC-LDCCRM-Utils.html#method_validationRequired" + }, { + "fqsen": "\\LDC\\LDCCRM\\Utils\u003A\u003AvalidationNullable\u0028\u0029", + "name": "validationNullable", + "summary": "Make\u0020Nullable\u0020validator", + "url": "classes/LDC-LDCCRM-Utils.html#method_validationNullable" + }, { + "fqsen": "\\LDC\\LDCCRM\\Utils\u003A\u003AvalidationSometimes\u0028\u0029", + "name": "validationSometimes", + "summary": "Make\u0020Sometimes\u0020validator", + "url": "classes/LDC-LDCCRM-Utils.html#method_validationSometimes" + }, { + "fqsen": "\\LDC\\LDCCRM\\Utils\u003A\u003AvalidationInt\u0028\u0029", + "name": "validationInt", + "summary": "Make\u0020Int\u0020validator", + "url": "classes/LDC-LDCCRM-Utils.html#method_validationInt" + }, { + "fqsen": "\\LDC\\LDCCRM\\Utils\u003A\u003AvalidationString\u0028\u0029", + "name": "validationString", + "summary": "Make\u0020String\u0020validator", + "url": "classes/LDC-LDCCRM-Utils.html#method_validationString" + }, { + "fqsen": "\\LDC\\LDCCRM\\Utils\u003A\u003AvalidationBool\u0028\u0029", + "name": "validationBool", + "summary": "Make\u0020Bool\u0020validator", + "url": "classes/LDC-LDCCRM-Utils.html#method_validationBool" + }, { + "fqsen": "\\LDC\\LDCCRM\\Utils\u003A\u003AvalidationMin\u0028\u0029", + "name": "validationMin", + "summary": "Make\u0020Min\u0020validator", + "url": "classes/LDC-LDCCRM-Utils.html#method_validationMin" + }, { + "fqsen": "\\LDC\\LDCCRM\\Utils\u003A\u003AvalidationMax\u0028\u0029", + "name": "validationMax", + "summary": "Make\u0020Max\u0020validator", + "url": "classes/LDC-LDCCRM-Utils.html#method_validationMax" + }, { + "fqsen": "\\LDC\\LDCCRM\\Utils\u003A\u003AvalidationUuid\u0028\u0029", + "name": "validationUuid", + "summary": "Make\u0020Uuid\u0020validator", + "url": "classes/LDC-LDCCRM-Utils.html#method_validationUuid" + }, { + "fqsen": "\\LDC\\LDCCRM\\Utils\u003A\u003AvalidationMixedCase\u0028\u0029", + "name": "validationMixedCase", + "summary": "Make\u0020MixedCase\u0020validator", + "url": "classes/LDC-LDCCRM-Utils.html#method_validationMixedCase" + }, { + "fqsen": "\\LDC\\LDCCRM\\Utils\u003A\u003AvalidationContainDigit\u0028\u0029", + "name": "validationContainDigit", + "summary": "Make\u0020ContainDigit\u0020validator", + "url": "classes/LDC-LDCCRM-Utils.html#method_validationContainDigit" + }, { + "fqsen": "\\LDC\\LDCCRM\\Utils\u003A\u003AvalidationContainSymbol\u0028\u0029", + "name": "validationContainSymbol", + "summary": "Make\u0020ContainSymbol\u0020validator", + "url": "classes/LDC-LDCCRM-Utils.html#method_validationContainSymbol" + }, { + "fqsen": "\\LDC\\LDCCRM\\Utils\u003A\u003AvalidationDate\u0028\u0029", + "name": "validationDate", + "summary": "Make\u0020Date\u0020validator", + "url": "classes/LDC-LDCCRM-Utils.html#method_validationDate" + }, { + "fqsen": "\\LDC\\LDCCRM\\Utils\u003A\u003AvalidationDateFormat\u0028\u0029", + "name": "validationDateFormat", + "summary": "Make\u0020DateFormat\u0020validator", + "url": "classes/LDC-LDCCRM-Utils.html#method_validationDateFormat" + }, { + "fqsen": "\\LDC\\LDCCRM\\Utils\u003A\u003AvalidationEmail\u0028\u0029", + "name": "validationEmail", + "summary": "Make\u0020Email\u0020validator", + "url": "classes/LDC-LDCCRM-Utils.html#method_validationEmail" + }, { + "fqsen": "\\LDC\\LDCCRM\\Utils\u003A\u003AvalidationArray\u0028\u0029", + "name": "validationArray", + "summary": "Make\u0020Array\u0020validator", + "url": "classes/LDC-LDCCRM-Utils.html#method_validationArray" + }, { + "fqsen": "\\LDC\\LDCCRM\\Utils\u003A\u003AvalidationClosure\u0028\u0029", + "name": "validationClosure", + "summary": "Make\u0020Closure\u0020validator", + "url": "classes/LDC-LDCCRM-Utils.html#method_validationClosure" + }, { + "fqsen": "\\LDC\\LDCCRM\\Utils\u003A\u003AgetConfig\u0028\u0029", + "name": "getConfig", + "summary": "This\u0020is\u0020only\u0020used\u0020for\u0020unit\u0020tests.", + "url": "classes/LDC-LDCCRM-Utils.html#method_getConfig" + }, { + "fqsen": "\\LDC\\LDCCRM\\Utils\u003A\u003AgetResquest\u0028\u0029", + "name": "getResquest", + "summary": "Generate\u0020a\u0020Request\u0020from\u0020the\u0020route\u0020name", + "url": "classes/LDC-LDCCRM-Utils.html#method_getResquest" + }, { + "fqsen": "\\LDC\\LDCCRM\\Utils\u003A\u003AgetPackageInfo\u0028\u0029", + "name": "getPackageInfo", + "summary": "Get\u0020composer.json\u0020infos", + "url": "classes/LDC-LDCCRM-Utils.html#method_getPackageInfo" + }, { + "fqsen": "\\LDC\\LDCCRM\\Utils\u003A\u003Atranslate\u0028\u0029", + "name": "translate", + "summary": "Translation\u0020a\u0020string\u0020using\u0020php\u0020file\u0020lang", + "url": "classes/LDC-LDCCRM-Utils.html#method_translate" + }, { + "fqsen": "\\LDC\\LDCCRM\\Utils\u003A\u003Alog\u0028\u0029", + "name": "log", + "summary": "Write\u0020log\u0020using\u0020syslog\nIt\u0020also\u0020write\u0020log\u0020using\u0020\\Illuminate\\Support\\Facades\\Log\nif\u0020it\u0020is\u0020present", + "url": "classes/LDC-LDCCRM-Utils.html#method_log" + }, { + "fqsen": "\\LDC\\LDCCRM\\Utils\u003A\u003AsetRawProperty\u0028\u0029", + "name": "setRawProperty", + "summary": "Set\u0020a\u0020property\u0020without\u0020any\u0020validation.", + "url": "classes/LDC-LDCCRM-Utils.html#method_setRawProperty" + }, { + "fqsen": "\\LDC\\LDCCRM\\Utils\u003A\u003AgetRawProperty\u0028\u0029", + "name": "getRawProperty", + "summary": "Get\u0020a\u0020property\u0020of\u0020an\u0020object.", + "url": "classes/LDC-LDCCRM-Utils.html#method_getRawProperty" + }, { + "fqsen": "\\LDC\\LDCCRM\\Utils\u003A\u003A\u0024packageInfos", + "name": "packageInfos", + "summary": "Package\u0020infos", + "url": "classes/LDC-LDCCRM-Utils.html#property_packageInfos" + }, { + "fqsen": "\\LDC\\LDCCRM\\Utils\u003A\u003A\u0024translations", + "name": "translations", + "summary": "Loaded\u0020translations", + "url": "classes/LDC-LDCCRM-Utils.html#property_translations" + }, { + "fqsen": "\\LDC\\LDCCRM\\WordPress\\WPCrm", + "name": "WPCrm", + "summary": "Class\u0020de\u0020gestion\u0020des\u0020users\u0020en\u0020session\u0020avec\u0020Wordpress", + "url": "classes/LDC-LDCCRM-WordPress-WPCrm.html" + }, { + "fqsen": "\\LDC\\LDCCRM\\WordPress\\WPCrm\u003A\u003AgetUser\u0028\u0029", + "name": "getUser", + "summary": "Get\u0020the\u0020current\u0020user\nreturn\u0020null\u0020if\u0020the\u0020user\u0020is\u0020not\u0020logged\u0020in", + "url": "classes/LDC-LDCCRM-WordPress-WPCrm.html#method_getUser" + }, { + "fqsen": "\\LDC\\LDCCRM\\WordPress\\WPCrm\u003A\u003AforceLogin\u0028\u0029", + "name": "forceLogin", + "summary": "Manually\u0020login\u0020a\u0020user\nIf\u0020self\u003A\u003A\u0024user\u0020is\u0020already\u0020set.", + "url": "classes/LDC-LDCCRM-WordPress-WPCrm.html#method_forceLogin" + }, { + "fqsen": "\\LDC\\LDCCRM\\WordPress\\WPCrm\u003A\u003AgetUserFromApi\u0028\u0029", + "name": "getUserFromApi", + "summary": "Get\u0020the\u0020current\u0020user\nreturn\u0020api\u0020response\u0020code\u0020if\u0020an\u0020error\u0020occurs", + "url": "classes/LDC-LDCCRM-WordPress-WPCrm.html#method_getUserFromApi" + }, { + "fqsen": "\\LDC\\LDCCRM\\WordPress\\WPCrm\u003A\u003Alogin\u0028\u0029", + "name": "login", + "summary": "Try\u0020to\u0020login\u0020with\u0020CRM\u0020API\nA\u0020session\u0020will\u0020be\u0020started\u0020if\u0020credentials\u0020are\u0020valid.", + "url": "classes/LDC-LDCCRM-WordPress-WPCrm.html#method_login" + }, { + "fqsen": "\\LDC\\LDCCRM\\WordPress\\WPCrm\u003A\u003Alogout\u0028\u0029", + "name": "logout", + "summary": "Destroy\u0020the\u0020customer\u0020from\u0020session\nand\u0020therefore\u0020logout", + "url": "classes/LDC-LDCCRM-WordPress-WPCrm.html#method_logout" + }, { + "fqsen": "\\LDC\\LDCCRM\\WordPress\\WPCrm\u003A\u003Acheck\u0028\u0029", + "name": "check", + "summary": "Check\u0020if\u0020the\u0020user\u0020is\u0020logged\u0020in.", + "url": "classes/LDC-LDCCRM-WordPress-WPCrm.html#method_check" + }, { + "fqsen": "\\LDC\\LDCCRM\\WordPress\\WPCrm\u003A\u003AsaveUser\u0028\u0029", + "name": "saveUser", + "summary": "Save\u0020current\u0020customer\u0020to\nthe\u0020local\u0020database\u0020and\u0020on\u0020crm", + "url": "classes/LDC-LDCCRM-WordPress-WPCrm.html#method_saveUser" + }, { + "fqsen": "\\LDC\\LDCCRM\\WordPress\\WPCrm\u003A\u003AdeleteUser\u0028\u0029", + "name": "deleteUser", + "summary": "Delete\u0020current\u0020customer\u0020from\nthe\u0020local\u0020database\u0020and\u0020the\u0020crm", + "url": "classes/LDC-LDCCRM-WordPress-WPCrm.html#method_deleteUser" + }, { + "fqsen": "\\LDC\\LDCCRM\\WordPress\\WPCrm\u003A\u003AtoggleUserOptin\u0028\u0029", + "name": "toggleUserOptin", + "summary": "Toggle\u0020the\u0020current\u0020user\u0020optin\u0020value\non\u0020the\u0020current\u0020user\u0020and\u0020the\u0020crm", + "url": "classes/LDC-LDCCRM-WordPress-WPCrm.html#method_toggleUserOptin" + }, { + "fqsen": "\\LDC\\LDCCRM\\WordPress\\WPCrm\u003A\u003AsetSingleOptin\u0028\u0029", + "name": "setSingleOptin", + "summary": "Set\u0020the\u0020single\u0020optin\u0020status\u0020for\u0020an\u0020email\non\u0020the\u0020crm", + "url": "classes/LDC-LDCCRM-WordPress-WPCrm.html#method_setSingleOptin" + }, { + "fqsen": "\\LDC\\LDCCRM\\WordPress\\WPCrm\u003A\u003AactivateUser\u0028\u0029", + "name": "activateUser", + "summary": "Toggle\u0020the\u0020current\u0020user\u0020optin\u0020value\non\u0020the\u0020current\u0020user\u0020and\u0020the\u0020crm", + "url": "classes/LDC-LDCCRM-WordPress-WPCrm.html#method_activateUser" + }, { + "fqsen": "\\LDC\\LDCCRM\\WordPress\\WPCrm\u003A\u003AgetNewUser\u0028\u0029", + "name": "getNewUser", + "summary": "Generate\u0020a\u0020new\u0020user", + "url": "classes/LDC-LDCCRM-WordPress-WPCrm.html#method_getNewUser" + }, { + "fqsen": "\\LDC\\LDCCRM\\WordPress\\WPCrm\u003A\u003AunsetActiveUser\u0028\u0029", + "name": "unsetActiveUser", + "summary": "Remove\u0020active\u0020user\nto\u0020prevent\u0020WPCrm\u003A\u003Acheck\u0020to\u0020return\u0020true", + "url": "classes/LDC-LDCCRM-WordPress-WPCrm.html#method_unsetActiveUser" + }, { + "fqsen": "\\LDC\\LDCCRM\\WordPress\\WPCrm\u003A\u003AloginUserWithApi\u0028\u0029", + "name": "loginUserWithApi", + "summary": "Check\u0020customer\u0020credentials\u0020using\u0020the\u0020CRM.", + "url": "classes/LDC-LDCCRM-WordPress-WPCrm.html#method_loginUserWithApi" + }, { + "fqsen": "\\LDC\\LDCCRM\\WordPress\\WPCrm\u003A\u003AgetCustomer\u0028\u0029", + "name": "getCustomer", + "summary": "Get\u0020all\u0020customer\u0020infos", + "url": "classes/LDC-LDCCRM-WordPress-WPCrm.html#method_getCustomer" + }, { + "fqsen": "\\LDC\\LDCCRM\\WordPress\\WPCrm\u003A\u003AsetUser\u0028\u0029", + "name": "setUser", + "summary": "Create\u0020a\u0020user\nstores\u0020it\u0020to\u0020the\u0020session\nand\u0020finally\u0020saves\u0020it\u0020to\u0020the\u0020database\u0020if\u0020it\u0020does\u0020not\u0020exists", + "url": "classes/LDC-LDCCRM-WordPress-WPCrm.html#method_setUser" + }, { + "fqsen": "\\LDC\\LDCCRM\\WordPress\\WPCrm\u003A\u003AinitLdcApi\u0028\u0029", + "name": "initLdcApi", + "summary": "Get\u0020the\u0020initialized\u0020API\u0020object", + "url": "classes/LDC-LDCCRM-WordPress-WPCrm.html#method_initLdcApi" + }, { + "fqsen": "\\LDC\\LDCCRM\\WordPress\\WPCrm\u003A\u003AmakeApiV2Call\u0028\u0029", + "name": "makeApiV2Call", + "summary": "Make\u0020a\u0020call\u0020using\u0020apiV2", + "url": "classes/LDC-LDCCRM-WordPress-WPCrm.html#method_makeApiV2Call" + }, { + "fqsen": "\\LDC\\LDCCRM\\WordPress\\WPCrm\u003A\u003AbootSessionIfNeeded\u0028\u0029", + "name": "bootSessionIfNeeded", + "summary": "Boot\u0020the\u0020php\u0020session\u0020if\u0020needed", + "url": "classes/LDC-LDCCRM-WordPress-WPCrm.html#method_bootSessionIfNeeded" + }, { + "fqsen": "\\LDC\\LDCCRM\\WordPress\\WPCrm\u003A\u003AgetUserFromTable\u0028\u0029", + "name": "getUserFromTable", + "summary": "Get\u0020a\u0020customer\u0020from\u0020table", + "url": "classes/LDC-LDCCRM-WordPress-WPCrm.html#method_getUserFromTable" + }, { + "fqsen": "\\LDC\\LDCCRM\\WordPress\\WPCrm\u003A\u003AgetUserFromTableByEmail\u0028\u0029", + "name": "getUserFromTableByEmail", + "summary": "Get\u0020a\u0020customer\u0020from\u0020table\u0020by\u0020an\u0020email", + "url": "classes/LDC-LDCCRM-WordPress-WPCrm.html#method_getUserFromTableByEmail" + }, { + "fqsen": "\\LDC\\LDCCRM\\WordPress\\WPCrm\u003A\u003AgetUserFromTableByUuid\u0028\u0029", + "name": "getUserFromTableByUuid", + "summary": "Get\u0020a\u0020customer\u0020from\u0020table\u0020by\u0020an\u0020email", + "url": "classes/LDC-LDCCRM-WordPress-WPCrm.html#method_getUserFromTableByUuid" + }, { + "fqsen": "\\LDC\\LDCCRM\\WordPress\\WPCrm\u003A\u003AsaveOrUpdateUserToTable\u0028\u0029", + "name": "saveOrUpdateUserToTable", + "summary": "Save\u0020or\u0020update\u0020the\u0020user\u0020to\u0020the\u0020table", + "url": "classes/LDC-LDCCRM-WordPress-WPCrm.html#method_saveOrUpdateUserToTable" + }, { + "fqsen": "\\LDC\\LDCCRM\\WordPress\\WPCrm\u003A\u003AdeleteUserFromTable\u0028\u0029", + "name": "deleteUserFromTable", + "summary": "Save\u0020or\u0020update\u0020the\u0020user\u0020to\u0020the\u0020table", + "url": "classes/LDC-LDCCRM-WordPress-WPCrm.html#method_deleteUserFromTable" + }, { + "fqsen": "\\LDC\\LDCCRM\\WordPress\\WPCrm\u003A\u003Aquery\u0028\u0029", + "name": "query", + "summary": "Query\u0020in\u0020DB", + "url": "classes/LDC-LDCCRM-WordPress-WPCrm.html#method_query" + }, { + "fqsen": "\\LDC\\LDCCRM\\WordPress\\WPCrm\u003A\u003AgetWpDb\u0028\u0029", + "name": "getWpDb", + "summary": "Get\u0020WP\u0020\u0027pdo\u0020instance\u0027", + "url": "classes/LDC-LDCCRM-WordPress-WPCrm.html#method_getWpDb" + }, { + "fqsen": "\\LDC\\LDCCRM\\WordPress\\WPCrm\u003A\u003A\u0024sessionKey", + "name": "sessionKey", + "summary": "The\u0020session\u0020key\u0020name", + "url": "classes/LDC-LDCCRM-WordPress-WPCrm.html#property_sessionKey" + }, { + "fqsen": "\\LDC\\LDCCRM\\WordPress\\WPCrm\u003A\u003A\u0024sessionDestroyed", + "name": "sessionDestroyed", + "summary": "The\u0020session\u0020live\u0020status", + "url": "classes/LDC-LDCCRM-WordPress-WPCrm.html#property_sessionDestroyed" + }, { + "fqsen": "\\LDC\\LDCCRM\\WordPress\\WPCrm\u003A\u003A\u0024api", + "name": "api", + "summary": "The\u0020user\u0020object", + "url": "classes/LDC-LDCCRM-WordPress-WPCrm.html#property_api" + }, { + "fqsen": "\\LDC\\LDCCRM\\WordPress\\WPCrm\u003A\u003A\u0024user", + "name": "user", + "summary": "The\u0020user\u0020object", + "url": "classes/LDC-LDCCRM-WordPress-WPCrm.html#property_user" + }, { + "fqsen": "\\LDC\\LDCCRM\\WordPress\\WPCrmAnswer", + "name": "WPCrmAnswer", + "summary": "Class\u0020de\u0020gestion\u0020de\u0020la\u0020segmentation\u0020question\u0020avec\u0020Wordpress", + "url": "classes/LDC-LDCCRM-WordPress-WPCrmAnswer.html" + }, { + "fqsen": "\\LDC\\LDCCRM\\WordPress\\WPCrmAnswer\u003A\u003AsetQuestionAnswers\u0028\u0029", + "name": "setQuestionAnswers", + "summary": "Set\u0020answers\u0020to\u0020a\u0020question\u0020for\u0020a\u0020specific\u0020user", + "url": "classes/LDC-LDCCRM-WordPress-WPCrmAnswer.html#method_setQuestionAnswers" + }, { + "fqsen": "\\LDC\\LDCCRM\\WordPress\\WPCrmQuestion", + "name": "WPCrmQuestion", + "summary": "Class\u0020de\u0020gestion\u0020de\u0020la\u0020segmentation\u0020question\u0020avec\u0020Wordpress", + "url": "classes/LDC-LDCCRM-WordPress-WPCrmQuestion.html" + }, { + "fqsen": "\\LDC\\LDCCRM\\WordPress\\WPCrmQuestion\u003A\u003AgetAll\u0028\u0029", + "name": "getAll", + "summary": "Get\u0020all\u0020questions\u0020only", + "url": "classes/LDC-LDCCRM-WordPress-WPCrmQuestion.html#method_getAll" + }, { + "fqsen": "\\LDC\\LDCCRM\\WordPress\\WPCrmQuestion\u003A\u003AallWithCustomerAnswers\u0028\u0029", + "name": "allWithCustomerAnswers", + "summary": "Get\u0020all\u0020the\u0020questions\u0020with\u0020user\u0020answers", + "url": "classes/LDC-LDCCRM-WordPress-WPCrmQuestion.html#method_allWithCustomerAnswers" + }, { + "fqsen": "\\LDC\\LDCCRM\\WordPress\\WPCrmQuestion\u003A\u003AunansweredBy\u0028\u0029", + "name": "unansweredBy", + "summary": "Get\u0020unanswered\u0020question\u0020for\u0020a\u0020specific\u0020customer", + "url": "classes/LDC-LDCCRM-WordPress-WPCrmQuestion.html#method_unansweredBy" + }, { + "fqsen": "\\LDC\\LDCCRM\\WordPress\\WPCrmUser", + "name": "WPCrmUser", + "summary": "Class\u0020de\u0020gestion\u0020des\u0020users\u0020en\u0020session\u0020avec\u0020Wordpress", + "url": "classes/LDC-LDCCRM-WordPress-WPCrmUser.html" + }, { + "fqsen": "\\LDC\\LDCCRM\\WordPress\\WPCrmUser\u003A\u003A__construct\u0028\u0029", + "name": "__construct", + "summary": "WPCrmUser\u0020construct", + "url": "classes/LDC-LDCCRM-WordPress-WPCrmUser.html#method___construct" + }, { + "fqsen": "\\LDC\\LDCCRM\\WordPress\\WPCrmUser\u003A\u003A__get\u0028\u0029", + "name": "__get", + "summary": "Generic\u0020accessor", + "url": "classes/LDC-LDCCRM-WordPress-WPCrmUser.html#method___get" + }, { + "fqsen": "\\LDC\\LDCCRM\\WordPress\\WPCrmUser\u003A\u003A__set\u0028\u0029", + "name": "__set", + "summary": "Generic\u0020mutator", + "url": "classes/LDC-LDCCRM-WordPress-WPCrmUser.html#method___set" + }, { + "fqsen": "\\LDC\\LDCCRM\\WordPress\\WPCrmUser\u003A\u003AsetInfo\u0028\u0029", + "name": "setInfo", + "summary": "Set\u0020the\u0020customer\u0020info\nwith\u0020api\u0020response", + "url": "classes/LDC-LDCCRM-WordPress-WPCrmUser.html#method_setInfo" + }, { + "fqsen": "\\LDC\\LDCCRM\\WordPress\\WPCrmUser\u003A\u003AparseFromJson\u0028\u0029", + "name": "parseFromJson", + "summary": "Generate\u0020a\u0020user\u0020from\u0020session\u0020data", + "url": "classes/LDC-LDCCRM-WordPress-WPCrmUser.html#method_parseFromJson" + }, { + "fqsen": "\\LDC\\LDCCRM\\WordPress\\WPCrmUser\u003A\u003AjsonSerialize\u0028\u0029", + "name": "jsonSerialize", + "summary": "Serialize\u0020this\u0020object\u0020to\u0020an\u0020array", + "url": "classes/LDC-LDCCRM-WordPress-WPCrmUser.html#method_jsonSerialize" + }, { + "fqsen": "\\LDC\\LDCCRM\\WordPress\\WPCrmUser\u003A\u003Asave\u0028\u0029", + "name": "save", + "summary": "Save\u0020current\u0020customer\u0020to\nthe\u0020local\u0020database\u0020and\u0020on\u0020crm", + "url": "classes/LDC-LDCCRM-WordPress-WPCrmUser.html#method_save" + }, { + "fqsen": "\\LDC\\LDCCRM\\WordPress\\WPCrmUser\u003A\u003Adelete\u0028\u0029", + "name": "delete", + "summary": "Delete\u0020current\u0020customer\u0020to\nthe\u0020local\u0020database\u0020and\u0020on\u0020crm", + "url": "classes/LDC-LDCCRM-WordPress-WPCrmUser.html#method_delete" + }, { + "fqsen": "\\LDC\\LDCCRM\\WordPress\\WPCrmUser\u003A\u003AtoggleOptin\u0028\u0029", + "name": "toggleOptin", + "summary": "Toggle\u0020the\u0020current\u0020user\u0020optin\u0020value\non\u0020the\u0020current\u0020user\u0020and\u0020the\u0020crm", + "url": "classes/LDC-LDCCRM-WordPress-WPCrmUser.html#method_toggleOptin" + }, { + "fqsen": "\\LDC\\LDCCRM\\WordPress\\WPCrmUser\u003A\u003Aactivate\u0028\u0029", + "name": "activate", + "summary": "Activate\u0020the\u0020account\u0020in\u0020the\u0020crm", + "url": "classes/LDC-LDCCRM-WordPress-WPCrmUser.html#method_activate" + }, { + "fqsen": "\\LDC\\LDCCRM\\WordPress\\WPCrmUser\u003A\u003A\u0024phashcode", + "name": "phashcode", + "summary": "The\u0020CRM\u0020hashcode\u0020\u0028UUID\u0029", + "url": "classes/LDC-LDCCRM-WordPress-WPCrmUser.html#property_phashcode" + }, { + "fqsen": "\\LDC\\LDCCRM\\WordPress\\WPCrmUser\u003A\u003A\u0024pemail", + "name": "pemail", + "summary": "The\u0020CRM\u0020customer\u0020email", + "url": "classes/LDC-LDCCRM-WordPress-WPCrmUser.html#property_pemail" + }, { + "fqsen": "\\LDC\\LDCCRM\\WordPress\\WPCrmUser\u003A\u003A\u0024info", + "name": "info", + "summary": "The\u0020CRM\u0020customer\u0020info\u0020\u0028the\u0020api\u0020response\u0029", + "url": "classes/LDC-LDCCRM-WordPress-WPCrmUser.html#property_info" + }, { + "fqsen": "\\LDC\\LDCCRM\\WordPress\\WPCrmUser\u003A\u003A\u0024uuidToken", + "name": "uuidToken", + "summary": "The\u0020CRM\u0020customer\u0020temp\u0020uuidToken\u0020to\u0020validate\u0020transactions", + "url": "classes/LDC-LDCCRM-WordPress-WPCrmUser.html#property_uuidToken" + }, { + "fqsen": "\\LDC\\LDCCRM\\Exceptions\\AccessError", + "name": "AccessError", + "summary": "This\u0020is\u0020thrown\u0020when\u0020trying\u0020to\u0020set\u0020a\u0020value\u0020on\u0020an\u0020object\u0020property\u0020that\u0020does\u0020not\u0020exist.", + "url": "classes/LDC-LDCCRM-Exceptions-AccessError.html" + }, { + "fqsen": "\\LDC\\LDCCRM\\Exceptions\\AccessError\u003A\u003A__construct\u0028\u0029", + "name": "__construct", + "summary": "AccessError", + "url": "classes/LDC-LDCCRM-Exceptions-AccessError.html#method___construct" + }, { + "fqsen": "\\LDC\\LDCCRM\\Exceptions\\SkipValidationException", + "name": "SkipValidationException", + "summary": "Used\u0020only\u0020for\u0020internal\u0020validator", + "url": "classes/LDC-LDCCRM-Exceptions-SkipValidationException.html" + }, { + "fqsen": "\\LDC\\LDCCRM\\Exceptions\\WpCrmInvalidJsonUserInfo", + "name": "WpCrmInvalidJsonUserInfo", + "summary": "This\u0020is\u0020thrown\u0020when\u0020trying\u0020to\u0020read\u0020WP\u0020customer\u0020from\u0020DB\u0020json\u0020data.", + "url": "classes/LDC-LDCCRM-Exceptions-WpCrmInvalidJsonUserInfo.html" + }, { + "fqsen": "\\LDC\\LDCCRM\\Exceptions\\WpCrmInvalidJsonUserInfo\u003A\u003A__construct\u0028\u0029", + "name": "__construct", + "summary": "WpCrmInvalidJsonUserInfo", + "url": "classes/LDC-LDCCRM-Exceptions-WpCrmInvalidJsonUserInfo.html#method___construct" + }, { + "fqsen": "\\LDC\\LDCCRM\\Models\\Stats", + "name": "Stats", + "summary": "This\u0020class\u0020is\u0020used\u0020to\u0020get\u0020stats\u0020from\u0020CRM", + "url": "classes/LDC-LDCCRM-Models-Stats.html" + }, { + "fqsen": "\\LDC\\LDCCRM\\Models\\Stats\u003A\u003AgetBrandStats\u0028\u0029", + "name": "getBrandStats", + "summary": "Get\u0020brand\u0020stats\u0020ordered\u0020by\u0020ascendent\u0020days", + "url": "classes/LDC-LDCCRM-Models-Stats.html#method_getBrandStats" + }, { + "fqsen": "\\LDC\\LDCCRM\\Models\\Stats\u003A\u003AgetQuestionStats\u0028\u0029", + "name": "getQuestionStats", + "summary": "Get\u0020brand\u0020stats\u0020ordered\u0020by\u0020ascendent\u0020days", + "url": "classes/LDC-LDCCRM-Models-Stats.html#method_getQuestionStats" + }, { + "fqsen": "\\LDC\\LDCCRM\\Models\\Stats\u003A\u003A\u0024validation", + "name": "validation", + "summary": "Validation\u0020rules", + "url": "classes/LDC-LDCCRM-Models-Stats.html#property_validation" + }, { + "fqsen": "\\", + "name": "\\", + "summary": "", + "url": "namespaces/default.html" + }, { + "fqsen": "\\LDC\\LDCCRM", + "name": "LDCCRM", + "summary": "", + "url": "namespaces/ldc-ldccrm.html" + }, { + "fqsen": "\\LDC", + "name": "LDC", + "summary": "", + "url": "namespaces/ldc.html" + }, { + "fqsen": "\\LDC\\LDCCRM\\Enums", + "name": "Enums", + "summary": "", + "url": "namespaces/ldc-ldccrm-enums.html" + }, { + "fqsen": "\\LDC\\LDCCRM\\Exceptions", + "name": "Exceptions", + "summary": "", + "url": "namespaces/ldc-ldccrm-exceptions.html" + }, { + "fqsen": "\\LDC\\LDCCRM\\Models", + "name": "Models", + "summary": "", + "url": "namespaces/ldc-ldccrm-models.html" + }, { + "fqsen": "\\LDC\\LDCCRM\\Transport", + "name": "Transport", + "summary": "", + "url": "namespaces/ldc-ldccrm-transport.html" + }, { + "fqsen": "\\LDC\\LDCCRM\\WordPress", + "name": "WordPress", + "summary": "", + "url": "namespaces/ldc-ldccrm-wordpress.html" + } ] +); diff --git a/app/Lib/vendor/crm-client-3.0.6/documentation/namespaces/default.html b/app/Lib/vendor/crm-client-3.0.6/documentation/namespaces/default.html new file mode 100644 index 0000000..2bf9621 --- /dev/null +++ b/app/Lib/vendor/crm-client-3.0.6/documentation/namespaces/default.html @@ -0,0 +1,140 @@ + + + + + CRM V2 + + + + + + + + + + + + + + + + + + + +
                                                                                                                                                                                                                                                                                                  +

                                                                                                                                                                                                                                                                                                  CRM V2

                                                                                                                                                                                                                                                                                                  + + + + + +
                                                                                                                                                                                                                                                                                                  + +
                                                                                                                                                                                                                                                                                                  +
                                                                                                                                                                                                                                                                                                  + + + + +
                                                                                                                                                                                                                                                                                                  +
                                                                                                                                                                                                                                                                                                    +
                                                                                                                                                                                                                                                                                                  + +
                                                                                                                                                                                                                                                                                                  +

                                                                                                                                                                                                                                                                                                  API Documentation

                                                                                                                                                                                                                                                                                                  + + +

                                                                                                                                                                                                                                                                                                  + Namespaces + +

                                                                                                                                                                                                                                                                                                  + +
                                                                                                                                                                                                                                                                                                  +
                                                                                                                                                                                                                                                                                                  LDC
                                                                                                                                                                                                                                                                                                  +
                                                                                                                                                                                                                                                                                                  + + + + + + + +
                                                                                                                                                                                                                                                                                                  +
                                                                                                                                                                                                                                                                                                  +
                                                                                                                                                                                                                                                                                                  +
                                                                                                                                                                                                                                                                                                  +

                                                                                                                                                                                                                                                                                                  Search results

                                                                                                                                                                                                                                                                                                  + +
                                                                                                                                                                                                                                                                                                  +
                                                                                                                                                                                                                                                                                                  +
                                                                                                                                                                                                                                                                                                    +
                                                                                                                                                                                                                                                                                                    +
                                                                                                                                                                                                                                                                                                    +
                                                                                                                                                                                                                                                                                                    +
                                                                                                                                                                                                                                                                                                    +
                                                                                                                                                                                                                                                                                                    + + +
                                                                                                                                                                                                                                                                                                    + + + + + + + + diff --git a/app/Lib/vendor/crm-client-3.0.6/documentation/namespaces/ldc-ldccrm-enums.html b/app/Lib/vendor/crm-client-3.0.6/documentation/namespaces/ldc-ldccrm-enums.html new file mode 100644 index 0000000..9d2d5a8 --- /dev/null +++ b/app/Lib/vendor/crm-client-3.0.6/documentation/namespaces/ldc-ldccrm-enums.html @@ -0,0 +1,157 @@ + + + + + CRM V2 + + + + + + + + + + + + + + + + + + + +
                                                                                                                                                                                                                                                                                                    +

                                                                                                                                                                                                                                                                                                    CRM V2

                                                                                                                                                                                                                                                                                                    + + + + + +
                                                                                                                                                                                                                                                                                                    + +
                                                                                                                                                                                                                                                                                                    +
                                                                                                                                                                                                                                                                                                    + + + + +
                                                                                                                                                                                                                                                                                                    + + + +
                                                                                                                                                                                                                                                                                                    +
                                                                                                                                                                                                                                                                                                    +
                                                                                                                                                                                                                                                                                                    +

                                                                                                                                                                                                                                                                                                    Search results

                                                                                                                                                                                                                                                                                                    + +
                                                                                                                                                                                                                                                                                                    +
                                                                                                                                                                                                                                                                                                    +
                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                      + + +
                                                                                                                                                                                                                                                                                                      + + + + + + + + diff --git a/app/Lib/vendor/crm-client-3.0.6/documentation/namespaces/ldc-ldccrm-exceptions.html b/app/Lib/vendor/crm-client-3.0.6/documentation/namespaces/ldc-ldccrm-exceptions.html new file mode 100644 index 0000000..aa3a198 --- /dev/null +++ b/app/Lib/vendor/crm-client-3.0.6/documentation/namespaces/ldc-ldccrm-exceptions.html @@ -0,0 +1,158 @@ + + + + + CRM V2 + + + + + + + + + + + + + + + + + + + +
                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                      CRM V2

                                                                                                                                                                                                                                                                                                      + + + + + +
                                                                                                                                                                                                                                                                                                      + +
                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                      + + + + +
                                                                                                                                                                                                                                                                                                      + + +
                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                      Exceptions

                                                                                                                                                                                                                                                                                                      + + + +

                                                                                                                                                                                                                                                                                                      + Interfaces, Classes and Traits + +

                                                                                                                                                                                                                                                                                                      + +
                                                                                                                                                                                                                                                                                                      + +
                                                                                                                                                                                                                                                                                                      ApiErrorException
                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                      This would be thrown if any of the case +referenced in \LDC\LDCCRM\Enums\ApiError would +occur within the crm
                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                      CrmException
                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                      This is a critical error.
                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                      ValidationException
                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                      This would be thrown if a data could not be validated +on any models
                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                      AccessError
                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                      This is thrown when trying to set a value on an object property that does not exist.
                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                      SkipValidationException
                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                      Used only for internal validator
                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                      WpCrmInvalidJsonUserInfo
                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                      This is thrown when trying to read WP customer from DB json data.
                                                                                                                                                                                                                                                                                                      + +
                                                                                                                                                                                                                                                                                                      + + + + + + +
                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                      Search results

                                                                                                                                                                                                                                                                                                      + +
                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                        +
                                                                                                                                                                                                                                                                                                        +
                                                                                                                                                                                                                                                                                                        +
                                                                                                                                                                                                                                                                                                        +
                                                                                                                                                                                                                                                                                                        +
                                                                                                                                                                                                                                                                                                        + + +
                                                                                                                                                                                                                                                                                                        + + + + + + + + diff --git a/app/Lib/vendor/crm-client-3.0.6/documentation/namespaces/ldc-ldccrm-models.html b/app/Lib/vendor/crm-client-3.0.6/documentation/namespaces/ldc-ldccrm-models.html new file mode 100644 index 0000000..6bd80e0 --- /dev/null +++ b/app/Lib/vendor/crm-client-3.0.6/documentation/namespaces/ldc-ldccrm-models.html @@ -0,0 +1,163 @@ + + + + + CRM V2 + + + + + + + + + + + + + + + + + + + +
                                                                                                                                                                                                                                                                                                        +

                                                                                                                                                                                                                                                                                                        CRM V2

                                                                                                                                                                                                                                                                                                        + + + + + +
                                                                                                                                                                                                                                                                                                        + +
                                                                                                                                                                                                                                                                                                        +
                                                                                                                                                                                                                                                                                                        + + + + +
                                                                                                                                                                                                                                                                                                        + + +
                                                                                                                                                                                                                                                                                                        +

                                                                                                                                                                                                                                                                                                        Models

                                                                                                                                                                                                                                                                                                        + + + +

                                                                                                                                                                                                                                                                                                        + Interfaces, Classes and Traits + +

                                                                                                                                                                                                                                                                                                        + +
                                                                                                                                                                                                                                                                                                        + +
                                                                                                                                                                                                                                                                                                        Answer
                                                                                                                                                                                                                                                                                                        +
                                                                                                                                                                                                                                                                                                        This class represents an answer +It has a method to submit answers
                                                                                                                                                                                                                                                                                                        +
                                                                                                                                                                                                                                                                                                        ArcadiaMailDefault
                                                                                                                                                                                                                                                                                                        +
                                                                                                                                                                                                                                                                                                        This class represents the customer info with +the account validation status
                                                                                                                                                                                                                                                                                                        +
                                                                                                                                                                                                                                                                                                        ArcadiaMailGame
                                                                                                                                                                                                                                                                                                        +
                                                                                                                                                                                                                                                                                                        This class represents the customer info with +the account validation status
                                                                                                                                                                                                                                                                                                        +
                                                                                                                                                                                                                                                                                                        Customer
                                                                                                                                                                                                                                                                                                        +
                                                                                                                                                                                                                                                                                                        This class represents the customer info with +the account validation status. You can use it as +a standalone class but beware of catching exceptions
                                                                                                                                                                                                                                                                                                        +
                                                                                                                                                                                                                                                                                                        Question
                                                                                                                                                                                                                                                                                                        +
                                                                                                                                                                                                                                                                                                        This class represents a question +It has some static methods to retrieve questions and answers
                                                                                                                                                                                                                                                                                                        +
                                                                                                                                                                                                                                                                                                        SingleOptin
                                                                                                                                                                                                                                                                                                        +
                                                                                                                                                                                                                                                                                                        This class allows to handle single opt in
                                                                                                                                                                                                                                                                                                        +
                                                                                                                                                                                                                                                                                                        Stats
                                                                                                                                                                                                                                                                                                        +
                                                                                                                                                                                                                                                                                                        This class is used to get stats from CRM
                                                                                                                                                                                                                                                                                                        + +
                                                                                                                                                                                                                                                                                                        + + + + + + +
                                                                                                                                                                                                                                                                                                        +
                                                                                                                                                                                                                                                                                                        +
                                                                                                                                                                                                                                                                                                        +
                                                                                                                                                                                                                                                                                                        +

                                                                                                                                                                                                                                                                                                        Search results

                                                                                                                                                                                                                                                                                                        + +
                                                                                                                                                                                                                                                                                                        +
                                                                                                                                                                                                                                                                                                        +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          + + +
                                                                                                                                                                                                                                                                                                          + + + + + + + + diff --git a/app/Lib/vendor/crm-client-3.0.6/documentation/namespaces/ldc-ldccrm-transport.html b/app/Lib/vendor/crm-client-3.0.6/documentation/namespaces/ldc-ldccrm-transport.html new file mode 100644 index 0000000..ffd9cb5 --- /dev/null +++ b/app/Lib/vendor/crm-client-3.0.6/documentation/namespaces/ldc-ldccrm-transport.html @@ -0,0 +1,148 @@ + + + + + CRM V2 + + + + + + + + + + + + + + + + + + + +
                                                                                                                                                                                                                                                                                                          +

                                                                                                                                                                                                                                                                                                          CRM V2

                                                                                                                                                                                                                                                                                                          + + + + + +
                                                                                                                                                                                                                                                                                                          + +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          + + + + +
                                                                                                                                                                                                                                                                                                          + + +
                                                                                                                                                                                                                                                                                                          +

                                                                                                                                                                                                                                                                                                          Transport

                                                                                                                                                                                                                                                                                                          + + + +

                                                                                                                                                                                                                                                                                                          + Interfaces, Classes and Traits + +

                                                                                                                                                                                                                                                                                                          + +
                                                                                                                                                                                                                                                                                                          + +
                                                                                                                                                                                                                                                                                                          Request
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          The LDC CRM request +Contains the http method, the requested url and data to pass
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          Response
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          + +
                                                                                                                                                                                                                                                                                                          + + + + + + +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +

                                                                                                                                                                                                                                                                                                          Search results

                                                                                                                                                                                                                                                                                                          + +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                                                            + + +
                                                                                                                                                                                                                                                                                                            + + + + + + + + diff --git a/app/Lib/vendor/crm-client-3.0.6/documentation/namespaces/ldc-ldccrm-wordpress.html b/app/Lib/vendor/crm-client-3.0.6/documentation/namespaces/ldc-ldccrm-wordpress.html new file mode 100644 index 0000000..a73db3c --- /dev/null +++ b/app/Lib/vendor/crm-client-3.0.6/documentation/namespaces/ldc-ldccrm-wordpress.html @@ -0,0 +1,151 @@ + + + + + CRM V2 + + + + + + + + + + + + + + + + + + + +
                                                                                                                                                                                                                                                                                                            +

                                                                                                                                                                                                                                                                                                            CRM V2

                                                                                                                                                                                                                                                                                                            + + + + + +
                                                                                                                                                                                                                                                                                                            + +
                                                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                                                            + + + + +
                                                                                                                                                                                                                                                                                                            + + +
                                                                                                                                                                                                                                                                                                            +

                                                                                                                                                                                                                                                                                                            WordPress

                                                                                                                                                                                                                                                                                                            + + + +

                                                                                                                                                                                                                                                                                                            + Interfaces, Classes and Traits + +

                                                                                                                                                                                                                                                                                                            + +
                                                                                                                                                                                                                                                                                                            + +
                                                                                                                                                                                                                                                                                                            WPCrm
                                                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                                                            Class de gestion des users en session avec Wordpress
                                                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                                                            WPCrmAnswer
                                                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                                                            Class de gestion de la segmentation question avec Wordpress
                                                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                                                            WPCrmQuestion
                                                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                                                            Class de gestion de la segmentation question avec Wordpress
                                                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                                                            WPCrmUser
                                                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                                                            Class de gestion des users en session avec Wordpress
                                                                                                                                                                                                                                                                                                            + +
                                                                                                                                                                                                                                                                                                            + + + + + + +
                                                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                                                            +

                                                                                                                                                                                                                                                                                                            Search results

                                                                                                                                                                                                                                                                                                            + +
                                                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                                                              +
                                                                                                                                                                                                                                                                                                              +
                                                                                                                                                                                                                                                                                                              +
                                                                                                                                                                                                                                                                                                              +
                                                                                                                                                                                                                                                                                                              +
                                                                                                                                                                                                                                                                                                              + + +
                                                                                                                                                                                                                                                                                                              + + + + + + + + diff --git a/app/Lib/vendor/crm-client-3.0.6/documentation/namespaces/ldc-ldccrm.html b/app/Lib/vendor/crm-client-3.0.6/documentation/namespaces/ldc-ldccrm.html new file mode 100644 index 0000000..eeab387 --- /dev/null +++ b/app/Lib/vendor/crm-client-3.0.6/documentation/namespaces/ldc-ldccrm.html @@ -0,0 +1,158 @@ + + + + + CRM V2 + + + + + + + + + + + + + + + + + + + +
                                                                                                                                                                                                                                                                                                              +

                                                                                                                                                                                                                                                                                                              CRM V2

                                                                                                                                                                                                                                                                                                              + + + + + +
                                                                                                                                                                                                                                                                                                              + +
                                                                                                                                                                                                                                                                                                              +
                                                                                                                                                                                                                                                                                                              + + + + +
                                                                                                                                                                                                                                                                                                              + + +
                                                                                                                                                                                                                                                                                                              +

                                                                                                                                                                                                                                                                                                              LDCCRM

                                                                                                                                                                                                                                                                                                              + + +

                                                                                                                                                                                                                                                                                                              + Namespaces + +

                                                                                                                                                                                                                                                                                                              + +
                                                                                                                                                                                                                                                                                                              +
                                                                                                                                                                                                                                                                                                              Enums
                                                                                                                                                                                                                                                                                                              +
                                                                                                                                                                                                                                                                                                              Exceptions
                                                                                                                                                                                                                                                                                                              +
                                                                                                                                                                                                                                                                                                              Models
                                                                                                                                                                                                                                                                                                              +
                                                                                                                                                                                                                                                                                                              Transport
                                                                                                                                                                                                                                                                                                              +
                                                                                                                                                                                                                                                                                                              WordPress
                                                                                                                                                                                                                                                                                                              +
                                                                                                                                                                                                                                                                                                              + +

                                                                                                                                                                                                                                                                                                              + Interfaces, Classes and Traits + +

                                                                                                                                                                                                                                                                                                              + +
                                                                                                                                                                                                                                                                                                              + +
                                                                                                                                                                                                                                                                                                              CrmApiV2
                                                                                                                                                                                                                                                                                                              +
                                                                                                                                                                                                                                                                                                              This is the main class to interact with the CRM
                                                                                                                                                                                                                                                                                                              +
                                                                                                                                                                                                                                                                                                              Utils
                                                                                                                                                                                                                                                                                                              +
                                                                                                                                                                                                                                                                                                              This is the LDCCRM utility class
                                                                                                                                                                                                                                                                                                              + +
                                                                                                                                                                                                                                                                                                              + + + + + + +
                                                                                                                                                                                                                                                                                                              +
                                                                                                                                                                                                                                                                                                              +
                                                                                                                                                                                                                                                                                                              +
                                                                                                                                                                                                                                                                                                              +

                                                                                                                                                                                                                                                                                                              Search results

                                                                                                                                                                                                                                                                                                              + +
                                                                                                                                                                                                                                                                                                              +
                                                                                                                                                                                                                                                                                                              +
                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                + + +
                                                                                                                                                                                                                                                                                                                + + + + + + + + diff --git a/app/Lib/vendor/crm-client-3.0.6/documentation/namespaces/ldc.html b/app/Lib/vendor/crm-client-3.0.6/documentation/namespaces/ldc.html new file mode 100644 index 0000000..c8f2e29 --- /dev/null +++ b/app/Lib/vendor/crm-client-3.0.6/documentation/namespaces/ldc.html @@ -0,0 +1,140 @@ + + + + + CRM V2 + + + + + + + + + + + + + + + + + + + +
                                                                                                                                                                                                                                                                                                                +

                                                                                                                                                                                                                                                                                                                CRM V2

                                                                                                                                                                                                                                                                                                                + + + + + +
                                                                                                                                                                                                                                                                                                                + +
                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                + + + + +
                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                  +
                                                                                                                                                                                                                                                                                                                + +
                                                                                                                                                                                                                                                                                                                +

                                                                                                                                                                                                                                                                                                                LDC

                                                                                                                                                                                                                                                                                                                + + +

                                                                                                                                                                                                                                                                                                                + Namespaces + +

                                                                                                                                                                                                                                                                                                                + +
                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                LDCCRM
                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                + + + + + + + +
                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                +

                                                                                                                                                                                                                                                                                                                Search results

                                                                                                                                                                                                                                                                                                                + +
                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                  +
                                                                                                                                                                                                                                                                                                                  +
                                                                                                                                                                                                                                                                                                                  +
                                                                                                                                                                                                                                                                                                                  +
                                                                                                                                                                                                                                                                                                                  +
                                                                                                                                                                                                                                                                                                                  + + +
                                                                                                                                                                                                                                                                                                                  + + + + + + + + diff --git a/app/Lib/vendor/crm-client-3.0.6/documentation/packages/LDCCrmClient-Wordpress.html b/app/Lib/vendor/crm-client-3.0.6/documentation/packages/LDCCrmClient-Wordpress.html new file mode 100644 index 0000000..bb3bbc5 --- /dev/null +++ b/app/Lib/vendor/crm-client-3.0.6/documentation/packages/LDCCrmClient-Wordpress.html @@ -0,0 +1,150 @@ + + + + + CRM V2 + + + + + + + + + + + + + + + + + + + +
                                                                                                                                                                                                                                                                                                                  +

                                                                                                                                                                                                                                                                                                                  CRM V2

                                                                                                                                                                                                                                                                                                                  + + + + + +
                                                                                                                                                                                                                                                                                                                  + +
                                                                                                                                                                                                                                                                                                                  +
                                                                                                                                                                                                                                                                                                                  + + + + +
                                                                                                                                                                                                                                                                                                                  + + +
                                                                                                                                                                                                                                                                                                                  +

                                                                                                                                                                                                                                                                                                                  Wordpress

                                                                                                                                                                                                                                                                                                                  + + + +

                                                                                                                                                                                                                                                                                                                  + Interfaces, Classes and Traits + +

                                                                                                                                                                                                                                                                                                                  + +
                                                                                                                                                                                                                                                                                                                  + +
                                                                                                                                                                                                                                                                                                                  WPCrm
                                                                                                                                                                                                                                                                                                                  +
                                                                                                                                                                                                                                                                                                                  Class de gestion des users en session avec Wordpress
                                                                                                                                                                                                                                                                                                                  +
                                                                                                                                                                                                                                                                                                                  WPCrmAnswer
                                                                                                                                                                                                                                                                                                                  +
                                                                                                                                                                                                                                                                                                                  Class de gestion de la segmentation question avec Wordpress
                                                                                                                                                                                                                                                                                                                  +
                                                                                                                                                                                                                                                                                                                  WPCrmQuestion
                                                                                                                                                                                                                                                                                                                  +
                                                                                                                                                                                                                                                                                                                  Class de gestion de la segmentation question avec Wordpress
                                                                                                                                                                                                                                                                                                                  +
                                                                                                                                                                                                                                                                                                                  WPCrmUser
                                                                                                                                                                                                                                                                                                                  +
                                                                                                                                                                                                                                                                                                                  Class de gestion des users en session avec Wordpress
                                                                                                                                                                                                                                                                                                                  + +
                                                                                                                                                                                                                                                                                                                  + + + + + + +
                                                                                                                                                                                                                                                                                                                  +
                                                                                                                                                                                                                                                                                                                  +
                                                                                                                                                                                                                                                                                                                  +
                                                                                                                                                                                                                                                                                                                  +

                                                                                                                                                                                                                                                                                                                  Search results

                                                                                                                                                                                                                                                                                                                  + +
                                                                                                                                                                                                                                                                                                                  +
                                                                                                                                                                                                                                                                                                                  +
                                                                                                                                                                                                                                                                                                                    +
                                                                                                                                                                                                                                                                                                                    +
                                                                                                                                                                                                                                                                                                                    +
                                                                                                                                                                                                                                                                                                                    +
                                                                                                                                                                                                                                                                                                                    +
                                                                                                                                                                                                                                                                                                                    + + +
                                                                                                                                                                                                                                                                                                                    + + + + + + + + diff --git a/app/Lib/vendor/crm-client-3.0.6/documentation/packages/LDCCrmClient-enums.html b/app/Lib/vendor/crm-client-3.0.6/documentation/packages/LDCCrmClient-enums.html new file mode 100644 index 0000000..e9eef39 --- /dev/null +++ b/app/Lib/vendor/crm-client-3.0.6/documentation/packages/LDCCrmClient-enums.html @@ -0,0 +1,156 @@ + + + + + CRM V2 + + + + + + + + + + + + + + + + + + + +
                                                                                                                                                                                                                                                                                                                    +

                                                                                                                                                                                                                                                                                                                    CRM V2

                                                                                                                                                                                                                                                                                                                    + + + + + +
                                                                                                                                                                                                                                                                                                                    + +
                                                                                                                                                                                                                                                                                                                    +
                                                                                                                                                                                                                                                                                                                    + + + + +
                                                                                                                                                                                                                                                                                                                    + + + +
                                                                                                                                                                                                                                                                                                                    +
                                                                                                                                                                                                                                                                                                                    +
                                                                                                                                                                                                                                                                                                                    +

                                                                                                                                                                                                                                                                                                                    Search results

                                                                                                                                                                                                                                                                                                                    + +
                                                                                                                                                                                                                                                                                                                    +
                                                                                                                                                                                                                                                                                                                    +
                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      + + +
                                                                                                                                                                                                                                                                                                                      + + + + + + + + diff --git a/app/Lib/vendor/crm-client-3.0.6/documentation/packages/LDCCrmClient-exceptions.html b/app/Lib/vendor/crm-client-3.0.6/documentation/packages/LDCCrmClient-exceptions.html new file mode 100644 index 0000000..bfa13ff --- /dev/null +++ b/app/Lib/vendor/crm-client-3.0.6/documentation/packages/LDCCrmClient-exceptions.html @@ -0,0 +1,157 @@ + + + + + CRM V2 + + + + + + + + + + + + + + + + + + + +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      CRM V2

                                                                                                                                                                                                                                                                                                                      + + + + + +
                                                                                                                                                                                                                                                                                                                      + +
                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      + + + + +
                                                                                                                                                                                                                                                                                                                      + + +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      exceptions

                                                                                                                                                                                                                                                                                                                      + + + +

                                                                                                                                                                                                                                                                                                                      + Interfaces, Classes and Traits + +

                                                                                                                                                                                                                                                                                                                      + +
                                                                                                                                                                                                                                                                                                                      + +
                                                                                                                                                                                                                                                                                                                      ApiErrorException
                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      This would be thrown if any of the case +referenced in \LDC\LDCCRM\Enums\ApiError would +occur within the crm
                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      CrmException
                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      This is a critical error.
                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      ValidationException
                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      This would be thrown if a data could not be validated +on any models
                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      AccessError
                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      This is thrown when trying to set a value on an object property that does not exist.
                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      SkipValidationException
                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      Used only for internal validator
                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      WpCrmInvalidJsonUserInfo
                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      This is thrown when trying to read WP customer from DB json data.
                                                                                                                                                                                                                                                                                                                      + +
                                                                                                                                                                                                                                                                                                                      + + + + + + +
                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      Search results

                                                                                                                                                                                                                                                                                                                      + +
                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                        +
                                                                                                                                                                                                                                                                                                                        +
                                                                                                                                                                                                                                                                                                                        +
                                                                                                                                                                                                                                                                                                                        +
                                                                                                                                                                                                                                                                                                                        +
                                                                                                                                                                                                                                                                                                                        + + +
                                                                                                                                                                                                                                                                                                                        + + + + + + + + diff --git a/app/Lib/vendor/crm-client-3.0.6/documentation/packages/LDCCrmClient-models.html b/app/Lib/vendor/crm-client-3.0.6/documentation/packages/LDCCrmClient-models.html new file mode 100644 index 0000000..69e64b0 --- /dev/null +++ b/app/Lib/vendor/crm-client-3.0.6/documentation/packages/LDCCrmClient-models.html @@ -0,0 +1,162 @@ + + + + + CRM V2 + + + + + + + + + + + + + + + + + + + +
                                                                                                                                                                                                                                                                                                                        +

                                                                                                                                                                                                                                                                                                                        CRM V2

                                                                                                                                                                                                                                                                                                                        + + + + + +
                                                                                                                                                                                                                                                                                                                        + +
                                                                                                                                                                                                                                                                                                                        +
                                                                                                                                                                                                                                                                                                                        + + + + +
                                                                                                                                                                                                                                                                                                                        + + +
                                                                                                                                                                                                                                                                                                                        +

                                                                                                                                                                                                                                                                                                                        models

                                                                                                                                                                                                                                                                                                                        + + + +

                                                                                                                                                                                                                                                                                                                        + Interfaces, Classes and Traits + +

                                                                                                                                                                                                                                                                                                                        + +
                                                                                                                                                                                                                                                                                                                        + +
                                                                                                                                                                                                                                                                                                                        Answer
                                                                                                                                                                                                                                                                                                                        +
                                                                                                                                                                                                                                                                                                                        This class represents an answer +It has a method to submit answers
                                                                                                                                                                                                                                                                                                                        +
                                                                                                                                                                                                                                                                                                                        ArcadiaMailDefault
                                                                                                                                                                                                                                                                                                                        +
                                                                                                                                                                                                                                                                                                                        This class represents the customer info with +the account validation status
                                                                                                                                                                                                                                                                                                                        +
                                                                                                                                                                                                                                                                                                                        ArcadiaMailGame
                                                                                                                                                                                                                                                                                                                        +
                                                                                                                                                                                                                                                                                                                        This class represents the customer info with +the account validation status
                                                                                                                                                                                                                                                                                                                        +
                                                                                                                                                                                                                                                                                                                        Customer
                                                                                                                                                                                                                                                                                                                        +
                                                                                                                                                                                                                                                                                                                        This class represents the customer info with +the account validation status. You can use it as +a standalone class but beware of catching exceptions
                                                                                                                                                                                                                                                                                                                        +
                                                                                                                                                                                                                                                                                                                        Question
                                                                                                                                                                                                                                                                                                                        +
                                                                                                                                                                                                                                                                                                                        This class represents a question +It has some static methods to retrieve questions and answers
                                                                                                                                                                                                                                                                                                                        +
                                                                                                                                                                                                                                                                                                                        SingleOptin
                                                                                                                                                                                                                                                                                                                        +
                                                                                                                                                                                                                                                                                                                        This class allows to handle single opt in
                                                                                                                                                                                                                                                                                                                        +
                                                                                                                                                                                                                                                                                                                        Stats
                                                                                                                                                                                                                                                                                                                        +
                                                                                                                                                                                                                                                                                                                        This class is used to get stats from CRM
                                                                                                                                                                                                                                                                                                                        + +
                                                                                                                                                                                                                                                                                                                        + + + + + + +
                                                                                                                                                                                                                                                                                                                        +
                                                                                                                                                                                                                                                                                                                        +
                                                                                                                                                                                                                                                                                                                        +
                                                                                                                                                                                                                                                                                                                        +

                                                                                                                                                                                                                                                                                                                        Search results

                                                                                                                                                                                                                                                                                                                        + +
                                                                                                                                                                                                                                                                                                                        +
                                                                                                                                                                                                                                                                                                                        +
                                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                                          + + +
                                                                                                                                                                                                                                                                                                                          + + + + + + + + diff --git a/app/Lib/vendor/crm-client-3.0.6/documentation/packages/LDCCrmClient-transport.html b/app/Lib/vendor/crm-client-3.0.6/documentation/packages/LDCCrmClient-transport.html new file mode 100644 index 0000000..29218c0 --- /dev/null +++ b/app/Lib/vendor/crm-client-3.0.6/documentation/packages/LDCCrmClient-transport.html @@ -0,0 +1,147 @@ + + + + + CRM V2 + + + + + + + + + + + + + + + + + + + +
                                                                                                                                                                                                                                                                                                                          +

                                                                                                                                                                                                                                                                                                                          CRM V2

                                                                                                                                                                                                                                                                                                                          + + + + + +
                                                                                                                                                                                                                                                                                                                          + +
                                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                                          + + + + +
                                                                                                                                                                                                                                                                                                                          + + +
                                                                                                                                                                                                                                                                                                                          +

                                                                                                                                                                                                                                                                                                                          transport

                                                                                                                                                                                                                                                                                                                          + + + +

                                                                                                                                                                                                                                                                                                                          + Interfaces, Classes and Traits + +

                                                                                                                                                                                                                                                                                                                          + +
                                                                                                                                                                                                                                                                                                                          + +
                                                                                                                                                                                                                                                                                                                          Request
                                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                                          The LDC CRM request +Contains the http method, the requested url and data to pass
                                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                                          Response
                                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                                          + +
                                                                                                                                                                                                                                                                                                                          + + + + + + +
                                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                                          +

                                                                                                                                                                                                                                                                                                                          Search results

                                                                                                                                                                                                                                                                                                                          + +
                                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                                                                            + + +
                                                                                                                                                                                                                                                                                                                            + + + + + + + + diff --git a/app/Lib/vendor/crm-client-3.0.6/documentation/packages/LDCCrmClient-utilities.html b/app/Lib/vendor/crm-client-3.0.6/documentation/packages/LDCCrmClient-utilities.html new file mode 100644 index 0000000..36df7b4 --- /dev/null +++ b/app/Lib/vendor/crm-client-3.0.6/documentation/packages/LDCCrmClient-utilities.html @@ -0,0 +1,144 @@ + + + + + CRM V2 + + + + + + + + + + + + + + + + + + + +
                                                                                                                                                                                                                                                                                                                            +

                                                                                                                                                                                                                                                                                                                            CRM V2

                                                                                                                                                                                                                                                                                                                            + + + + + +
                                                                                                                                                                                                                                                                                                                            + +
                                                                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                                                                            + + + + +
                                                                                                                                                                                                                                                                                                                            + + +
                                                                                                                                                                                                                                                                                                                            +

                                                                                                                                                                                                                                                                                                                            utilities

                                                                                                                                                                                                                                                                                                                            + + + +

                                                                                                                                                                                                                                                                                                                            + Interfaces, Classes and Traits + +

                                                                                                                                                                                                                                                                                                                            + +
                                                                                                                                                                                                                                                                                                                            + +
                                                                                                                                                                                                                                                                                                                            Utils
                                                                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                                                                            This is the LDCCRM utility class
                                                                                                                                                                                                                                                                                                                            + +
                                                                                                                                                                                                                                                                                                                            + + + + + + +
                                                                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                                                                            +

                                                                                                                                                                                                                                                                                                                            Search results

                                                                                                                                                                                                                                                                                                                            + +
                                                                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                                                                              +
                                                                                                                                                                                                                                                                                                                              +
                                                                                                                                                                                                                                                                                                                              +
                                                                                                                                                                                                                                                                                                                              +
                                                                                                                                                                                                                                                                                                                              +
                                                                                                                                                                                                                                                                                                                              + + +
                                                                                                                                                                                                                                                                                                                              + + + + + + + + diff --git a/app/Lib/vendor/crm-client-3.0.6/documentation/packages/LDCCrmClient.html b/app/Lib/vendor/crm-client-3.0.6/documentation/packages/LDCCrmClient.html new file mode 100644 index 0000000..3f93f42 --- /dev/null +++ b/app/Lib/vendor/crm-client-3.0.6/documentation/packages/LDCCrmClient.html @@ -0,0 +1,156 @@ + + + + + CRM V2 + + + + + + + + + + + + + + + + + + + +
                                                                                                                                                                                                                                                                                                                              +

                                                                                                                                                                                                                                                                                                                              CRM V2

                                                                                                                                                                                                                                                                                                                              + + + + + +
                                                                                                                                                                                                                                                                                                                              + +
                                                                                                                                                                                                                                                                                                                              +
                                                                                                                                                                                                                                                                                                                              + + + + +
                                                                                                                                                                                                                                                                                                                              +
                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                              + + +
                                                                                                                                                                                                                                                                                                                              +
                                                                                                                                                                                                                                                                                                                              +
                                                                                                                                                                                                                                                                                                                              +

                                                                                                                                                                                                                                                                                                                              Search results

                                                                                                                                                                                                                                                                                                                              + +
                                                                                                                                                                                                                                                                                                                              +
                                                                                                                                                                                                                                                                                                                              +
                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                + + +
                                                                                                                                                                                                                                                                                                                                + + + + + + + + diff --git a/app/Lib/vendor/crm-client-3.0.6/documentation/packages/None.html b/app/Lib/vendor/crm-client-3.0.6/documentation/packages/None.html new file mode 100644 index 0000000..cbcdc70 --- /dev/null +++ b/app/Lib/vendor/crm-client-3.0.6/documentation/packages/None.html @@ -0,0 +1,132 @@ + + + + + CRM V2 + + + + + + + + + + + + + + + + + + + +
                                                                                                                                                                                                                                                                                                                                +

                                                                                                                                                                                                                                                                                                                                CRM V2

                                                                                                                                                                                                                                                                                                                                + + + + + +
                                                                                                                                                                                                                                                                                                                                + +
                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                + + + + +
                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                  +
                                                                                                                                                                                                                                                                                                                                + +
                                                                                                                                                                                                                                                                                                                                +

                                                                                                                                                                                                                                                                                                                                None

                                                                                                                                                                                                                                                                                                                                + + + + + + + + + +
                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                +

                                                                                                                                                                                                                                                                                                                                Search results

                                                                                                                                                                                                                                                                                                                                + +
                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                  +
                                                                                                                                                                                                                                                                                                                                  +
                                                                                                                                                                                                                                                                                                                                  +
                                                                                                                                                                                                                                                                                                                                  +
                                                                                                                                                                                                                                                                                                                                  +
                                                                                                                                                                                                                                                                                                                                  + + +
                                                                                                                                                                                                                                                                                                                                  + + + + + + + + diff --git a/app/Lib/vendor/crm-client-3.0.6/documentation/packages/default.html b/app/Lib/vendor/crm-client-3.0.6/documentation/packages/default.html new file mode 100644 index 0000000..e64a362 --- /dev/null +++ b/app/Lib/vendor/crm-client-3.0.6/documentation/packages/default.html @@ -0,0 +1,141 @@ + + + + + CRM V2 + + + + + + + + + + + + + + + + + + + +
                                                                                                                                                                                                                                                                                                                                  +

                                                                                                                                                                                                                                                                                                                                  CRM V2

                                                                                                                                                                                                                                                                                                                                  + + + + + +
                                                                                                                                                                                                                                                                                                                                  + +
                                                                                                                                                                                                                                                                                                                                  +
                                                                                                                                                                                                                                                                                                                                  + + + + +
                                                                                                                                                                                                                                                                                                                                  +
                                                                                                                                                                                                                                                                                                                                    +
                                                                                                                                                                                                                                                                                                                                  + +
                                                                                                                                                                                                                                                                                                                                  +

                                                                                                                                                                                                                                                                                                                                  API Documentation

                                                                                                                                                                                                                                                                                                                                  + +

                                                                                                                                                                                                                                                                                                                                  + Packages + +

                                                                                                                                                                                                                                                                                                                                  + +
                                                                                                                                                                                                                                                                                                                                  +
                                                                                                                                                                                                                                                                                                                                  LDCCrmClient
                                                                                                                                                                                                                                                                                                                                  +
                                                                                                                                                                                                                                                                                                                                  None
                                                                                                                                                                                                                                                                                                                                  +
                                                                                                                                                                                                                                                                                                                                  + + + + + + + + +
                                                                                                                                                                                                                                                                                                                                  +
                                                                                                                                                                                                                                                                                                                                  +
                                                                                                                                                                                                                                                                                                                                  +
                                                                                                                                                                                                                                                                                                                                  +

                                                                                                                                                                                                                                                                                                                                  Search results

                                                                                                                                                                                                                                                                                                                                  + +
                                                                                                                                                                                                                                                                                                                                  +
                                                                                                                                                                                                                                                                                                                                  +
                                                                                                                                                                                                                                                                                                                                    +
                                                                                                                                                                                                                                                                                                                                    +
                                                                                                                                                                                                                                                                                                                                    +
                                                                                                                                                                                                                                                                                                                                    +
                                                                                                                                                                                                                                                                                                                                    +
                                                                                                                                                                                                                                                                                                                                    + + +
                                                                                                                                                                                                                                                                                                                                    + + + + + + + + diff --git a/app/Lib/vendor/crm-client-3.0.6/documentation/reports/deprecated.html b/app/Lib/vendor/crm-client-3.0.6/documentation/reports/deprecated.html new file mode 100644 index 0000000..cc64b57 --- /dev/null +++ b/app/Lib/vendor/crm-client-3.0.6/documentation/reports/deprecated.html @@ -0,0 +1,130 @@ + + + + + CRM V2 » Deprecated elements + + + + + + + + + + + + + + + + + + + + +
                                                                                                                                                                                                                                                                                                                                    +

                                                                                                                                                                                                                                                                                                                                    CRM V2

                                                                                                                                                                                                                                                                                                                                    + + + + + +
                                                                                                                                                                                                                                                                                                                                    + +
                                                                                                                                                                                                                                                                                                                                    +
                                                                                                                                                                                                                                                                                                                                    + + + + +
                                                                                                                                                                                                                                                                                                                                    + + +
                                                                                                                                                                                                                                                                                                                                    +

                                                                                                                                                                                                                                                                                                                                    Deprecated

                                                                                                                                                                                                                                                                                                                                    + + +
                                                                                                                                                                                                                                                                                                                                    + No deprecated elements have been found in this project. +
                                                                                                                                                                                                                                                                                                                                    +
                                                                                                                                                                                                                                                                                                                                    +
                                                                                                                                                                                                                                                                                                                                    +
                                                                                                                                                                                                                                                                                                                                    +
                                                                                                                                                                                                                                                                                                                                    +

                                                                                                                                                                                                                                                                                                                                    Search results

                                                                                                                                                                                                                                                                                                                                    + +
                                                                                                                                                                                                                                                                                                                                    +
                                                                                                                                                                                                                                                                                                                                    +
                                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                                      + + +
                                                                                                                                                                                                                                                                                                                                      + + + + + + + + diff --git a/app/Lib/vendor/crm-client-3.0.6/documentation/reports/errors.html b/app/Lib/vendor/crm-client-3.0.6/documentation/reports/errors.html new file mode 100644 index 0000000..9e5e6ad --- /dev/null +++ b/app/Lib/vendor/crm-client-3.0.6/documentation/reports/errors.html @@ -0,0 +1,129 @@ + + + + + CRM V2 » Compilation errors + + + + + + + + + + + + + + + + + + + + +
                                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                                      CRM V2

                                                                                                                                                                                                                                                                                                                                      + + + + + +
                                                                                                                                                                                                                                                                                                                                      + +
                                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                                      + + + + +
                                                                                                                                                                                                                                                                                                                                      + + +
                                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                                      Errors

                                                                                                                                                                                                                                                                                                                                      + + +
                                                                                                                                                                                                                                                                                                                                      No errors have been found in this project.
                                                                                                                                                                                                                                                                                                                                      + +
                                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                                      Search results

                                                                                                                                                                                                                                                                                                                                      + +
                                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                                        +
                                                                                                                                                                                                                                                                                                                                        +
                                                                                                                                                                                                                                                                                                                                        +
                                                                                                                                                                                                                                                                                                                                        +
                                                                                                                                                                                                                                                                                                                                        +
                                                                                                                                                                                                                                                                                                                                        + + +
                                                                                                                                                                                                                                                                                                                                        + + + + + + + + diff --git a/app/Lib/vendor/crm-client-3.0.6/documentation/reports/markers.html b/app/Lib/vendor/crm-client-3.0.6/documentation/reports/markers.html new file mode 100644 index 0000000..9955eeb --- /dev/null +++ b/app/Lib/vendor/crm-client-3.0.6/documentation/reports/markers.html @@ -0,0 +1,768 @@ + + + + + CRM V2 » Markers + + + + + + + + + + + + + + + + + + + + +
                                                                                                                                                                                                                                                                                                                                        +

                                                                                                                                                                                                                                                                                                                                        CRM V2

                                                                                                                                                                                                                                                                                                                                        + + + + + +
                                                                                                                                                                                                                                                                                                                                        + +
                                                                                                                                                                                                                                                                                                                                        +
                                                                                                                                                                                                                                                                                                                                        + + + + +
                                                                                                                                                                                                                                                                                                                                        + + +
                                                                                                                                                                                                                                                                                                                                        +

                                                                                                                                                                                                                                                                                                                                        Markers

                                                                                                                                                                                                                                                                                                                                        + +

                                                                                                                                                                                                                                                                                                                                        Table of Contents

                                                                                                                                                                                                                                                                                                                                        + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
                                                                                                                                                                                                                                                                                                                                        examples/CustomerExample.php1
                                                                                                                                                                                                                                                                                                                                        src/Enums/ApiError.php2
                                                                                                                                                                                                                                                                                                                                        src/Enums/Country.php1
                                                                                                                                                                                                                                                                                                                                        src/Exceptions/ApiErrorException.php2
                                                                                                                                                                                                                                                                                                                                        src/Exceptions/CrmException.php1
                                                                                                                                                                                                                                                                                                                                        src/Models/Answer.php1
                                                                                                                                                                                                                                                                                                                                        src/Models/ArcadiaMailDefault.php3
                                                                                                                                                                                                                                                                                                                                        src/Models/ArcadiaMailGame.php2
                                                                                                                                                                                                                                                                                                                                        src/Models/CrmClientModel.php5
                                                                                                                                                                                                                                                                                                                                        src/Models/Customer.php5
                                                                                                                                                                                                                                                                                                                                        src/Models/Question.php3
                                                                                                                                                                                                                                                                                                                                        src/Transport/ApiInterface.php6
                                                                                                                                                                                                                                                                                                                                        src/Transport/Request.php1
                                                                                                                                                                                                                                                                                                                                        src/Transport/Response.php4
                                                                                                                                                                                                                                                                                                                                        src/Utils.php8
                                                                                                                                                                                                                                                                                                                                        src/WordPress/WPCrm.php8
                                                                                                                                                                                                                                                                                                                                        src/WordPress/WPCrmAnswer.php2
                                                                                                                                                                                                                                                                                                                                        src/WordPress/WPCrmQuestion.php6
                                                                                                                                                                                                                                                                                                                                        src/WordPress/WPCrmUser.php2
                                                                                                                                                                                                                                                                                                                                        + + +

                                                                                                                                                                                                                                                                                                                                        CustomerExample.php

                                                                                                                                                                                                                                                                                                                                        + + + + + + + + + + + + + + + +
                                                                                                                                                                                                                                                                                                                                        TypeLineDescription
                                                                                                                                                                                                                                                                                                                                        53phpcs:ignore Squiz.PHP.DiscouragedFunctions.Found
                                                                                                                                                                                                                                                                                                                                        + +

                                                                                                                                                                                                                                                                                                                                        ApiError.php

                                                                                                                                                                                                                                                                                                                                        + + + + + + + + + + + + + + + + + + + + +
                                                                                                                                                                                                                                                                                                                                        TypeLineDescription
                                                                                                                                                                                                                                                                                                                                        53supportweb.ldc.fr
                                                                                                                                                                                                                                                                                                                                        59supportweb.ldc.fr
                                                                                                                                                                                                                                                                                                                                        + +

                                                                                                                                                                                                                                                                                                                                        Country.php

                                                                                                                                                                                                                                                                                                                                        + + + + + + + + + + + + + + + +
                                                                                                                                                                                                                                                                                                                                        TypeLineDescription
                                                                                                                                                                                                                                                                                                                                        9datahub.io/core/country-list Data Hub country list
                                                                                                                                                                                                                                                                                                                                        + +

                                                                                                                                                                                                                                                                                                                                        ApiErrorException.php

                                                                                                                                                                                                                                                                                                                                        + + + + + + + + + + + + + + + + + + + + +
                                                                                                                                                                                                                                                                                                                                        TypeLineDescription
                                                                                                                                                                                                                                                                                                                                        100@codeCoverageIgnoreStart
                                                                                                                                                                                                                                                                                                                                        102@codeCoverageIgnoreEnd
                                                                                                                                                                                                                                                                                                                                        + +

                                                                                                                                                                                                                                                                                                                                        CrmException.php

                                                                                                                                                                                                                                                                                                                                        + + + + + + + + + + + + + + + +
                                                                                                                                                                                                                                                                                                                                        TypeLineDescription
                                                                                                                                                                                                                                                                                                                                        11supportweb.ldc.fr
                                                                                                                                                                                                                                                                                                                                        + +

                                                                                                                                                                                                                                                                                                                                        Answer.php

                                                                                                                                                                                                                                                                                                                                        + + + + + + + + + + + + + + + +
                                                                                                                                                                                                                                                                                                                                        TypeLineDescription
                                                                                                                                                                                                                                                                                                                                        80* PUBLIC METHODS
                                                                                                                                                                                                                                                                                                                                        + +

                                                                                                                                                                                                                                                                                                                                        ArcadiaMailDefault.php

                                                                                                                                                                                                                                                                                                                                        + + + + + + + + + + + + + + + + + + + + + + + + + +
                                                                                                                                                                                                                                                                                                                                        TypeLineDescription
                                                                                                                                                                                                                                                                                                                                        325* Cast anyway
                                                                                                                                                                                                                                                                                                                                        349Use this to throw validation error.
                                                                                                                                                                                                                                                                                                                                        357* PUBLIC METHODS
                                                                                                                                                                                                                                                                                                                                        + +

                                                                                                                                                                                                                                                                                                                                        ArcadiaMailGame.php

                                                                                                                                                                                                                                                                                                                                        + + + + + + + + + + + + + + + + + + + + +
                                                                                                                                                                                                                                                                                                                                        TypeLineDescription
                                                                                                                                                                                                                                                                                                                                        294* Cast anyway
                                                                                                                                                                                                                                                                                                                                        301* PUBLIC METHODS
                                                                                                                                                                                                                                                                                                                                        + +

                                                                                                                                                                                                                                                                                                                                        CrmClientModel.php

                                                                                                                                                                                                                                                                                                                                        + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
                                                                                                                                                                                                                                                                                                                                        TypeLineDescription
                                                                                                                                                                                                                                                                                                                                        118phpcs:ignore Generic.CodeAnalysis.EmptyStatement.DetectedCatch
                                                                                                                                                                                                                                                                                                                                        120Do nothing.
                                                                                                                                                                                                                                                                                                                                        148* Force boolean
                                                                                                                                                                                                                                                                                                                                        166end foreach
                                                                                                                                                                                                                                                                                                                                        167end if
                                                                                                                                                                                                                                                                                                                                        + +

                                                                                                                                                                                                                                                                                                                                        Customer.php

                                                                                                                                                                                                                                                                                                                                        + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
                                                                                                                                                                                                                                                                                                                                        TypeLineDescription
                                                                                                                                                                                                                                                                                                                                        349* Cast anyway
                                                                                                                                                                                                                                                                                                                                        370Use this to throw validation error.
                                                                                                                                                                                                                                                                                                                                        378* PUBLIC METHODS
                                                                                                                                                                                                                                                                                                                                        399! Use fillRaw here because we cant validate comming
                                                                                                                                                                                                                                                                                                                                        400! from CRM since it has crappy data comming from the old crm (jellix).
                                                                                                                                                                                                                                                                                                                                        + +

                                                                                                                                                                                                                                                                                                                                        Question.php

                                                                                                                                                                                                                                                                                                                                        + + + + + + + + + + + + + + + + + + + + + + + + + +
                                                                                                                                                                                                                                                                                                                                        TypeLineDescription
                                                                                                                                                                                                                                                                                                                                        158* Cast anyway
                                                                                                                                                                                                                                                                                                                                        179Use this to throw validation error.
                                                                                                                                                                                                                                                                                                                                        187* PUBLIC METHODS
                                                                                                                                                                                                                                                                                                                                        + +

                                                                                                                                                                                                                                                                                                                                        ApiInterface.php

                                                                                                                                                                                                                                                                                                                                        + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
                                                                                                                                                                                                                                                                                                                                        TypeLineDescription
                                                                                                                                                                                                                                                                                                                                        78Handle HTTP Auth .
                                                                                                                                                                                                                                                                                                                                        97* Handle response Status.
                                                                                                                                                                                                                                                                                                                                        175! UTC date time.
                                                                                                                                                                                                                                                                                                                                        195%s%s',
                                                                                                                                                                                                                                                                                                                                        196Assume https if non provided, security first.
                                                                                                                                                                                                                                                                                                                                        221! Natural sort by keys.
                                                                                                                                                                                                                                                                                                                                        + +

                                                                                                                                                                                                                                                                                                                                        Request.php

                                                                                                                                                                                                                                                                                                                                        + + + + + + + + + + + + + + + +
                                                                                                                                                                                                                                                                                                                                        TypeLineDescription
                                                                                                                                                                                                                                                                                                                                        169! Do not throw HTTP Exceptions.
                                                                                                                                                                                                                                                                                                                                        + +

                                                                                                                                                                                                                                                                                                                                        Response.php

                                                                                                                                                                                                                                                                                                                                        + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
                                                                                                                                                                                                                                                                                                                                        TypeLineDescription
                                                                                                                                                                                                                                                                                                                                        97* Body should be json data.
                                                                                                                                                                                                                                                                                                                                        106* If Api Error.
                                                                                                                                                                                                                                                                                                                                        108* If CRM Exception or Any Exception.
                                                                                                                                                                                                                                                                                                                                        112* From here it should be an ApiErrorException.
                                                                                                                                                                                                                                                                                                                                        + +

                                                                                                                                                                                                                                                                                                                                        Utils.php

                                                                                                                                                                                                                                                                                                                                        + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
                                                                                                                                                                                                                                                                                                                                        TypeLineDescription
                                                                                                                                                                                                                                                                                                                                        58end foreach
                                                                                                                                                                                                                                                                                                                                        59end foreach
                                                                                                                                                                                                                                                                                                                                        126end switch
                                                                                                                                                                                                                                                                                                                                        129* VALIDATION RULES
                                                                                                                                                                                                                                                                                                                                        502* END VALIDATION RULES
                                                                                                                                                                                                                                                                                                                                        534Convert bool to integer.
                                                                                                                                                                                                                                                                                                                                        641end switch
                                                                                                                                                                                                                                                                                                                                        643end if
                                                                                                                                                                                                                                                                                                                                        + +

                                                                                                                                                                                                                                                                                                                                        WPCrm.php

                                                                                                                                                                                                                                                                                                                                        + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
                                                                                                                                                                                                                                                                                                                                        TypeLineDescription
                                                                                                                                                                                                                                                                                                                                        9opensource.org/licenses/MIT
                                                                                                                                                                                                                                                                                                                                        43opensource.org/licenses/MIT
                                                                                                                                                                                                                                                                                                                                        351* --- PRIVATE --- METHODS
                                                                                                                                                                                                                                                                                                                                        475If session identity is violated.
                                                                                                                                                                                                                                                                                                                                        477If session timed out.
                                                                                                                                                                                                                                                                                                                                        480* 15 minutes session.
                                                                                                                                                                                                                                                                                                                                        483Destroy session.
                                                                                                                                                                                                                                                                                                                                        621phpcs:ignore Squiz.PHP.GlobalKeyword.NotAllowed
                                                                                                                                                                                                                                                                                                                                        + +

                                                                                                                                                                                                                                                                                                                                        WPCrmAnswer.php

                                                                                                                                                                                                                                                                                                                                        + + + + + + + + + + + + + + + + + + + + +
                                                                                                                                                                                                                                                                                                                                        TypeLineDescription
                                                                                                                                                                                                                                                                                                                                        9opensource.org/licenses/MIT
                                                                                                                                                                                                                                                                                                                                        24opensource.org/licenses/MIT
                                                                                                                                                                                                                                                                                                                                        + +

                                                                                                                                                                                                                                                                                                                                        WPCrmQuestion.php

                                                                                                                                                                                                                                                                                                                                        + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
                                                                                                                                                                                                                                                                                                                                        TypeLineDescription
                                                                                                                                                                                                                                                                                                                                        9opensource.org/licenses/MIT
                                                                                                                                                                                                                                                                                                                                        25opensource.org/licenses/MIT
                                                                                                                                                                                                                                                                                                                                        57* Force loading of user info from crm
                                                                                                                                                                                                                                                                                                                                        61* Get the raw customer
                                                                                                                                                                                                                                                                                                                                        80* Force loading of user info from crm
                                                                                                                                                                                                                                                                                                                                        84* Get the raw customer
                                                                                                                                                                                                                                                                                                                                        + +

                                                                                                                                                                                                                                                                                                                                        WPCrmUser.php

                                                                                                                                                                                                                                                                                                                                        + + + + + + + + + + + + + + + + + + + + +
                                                                                                                                                                                                                                                                                                                                        TypeLineDescription
                                                                                                                                                                                                                                                                                                                                        9opensource.org/licenses/MIT
                                                                                                                                                                                                                                                                                                                                        66opensource.org/licenses/MIT
                                                                                                                                                                                                                                                                                                                                        +
                                                                                                                                                                                                                                                                                                                                        +
                                                                                                                                                                                                                                                                                                                                        +
                                                                                                                                                                                                                                                                                                                                        +
                                                                                                                                                                                                                                                                                                                                        +

                                                                                                                                                                                                                                                                                                                                        Search results

                                                                                                                                                                                                                                                                                                                                        + +
                                                                                                                                                                                                                                                                                                                                        +
                                                                                                                                                                                                                                                                                                                                        +
                                                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                                                          + + +
                                                                                                                                                                                                                                                                                                                                          + + + + + + + + diff --git a/app/Lib/vendor/crm-client-3.0.6/examples/CustomerExample.php b/app/Lib/vendor/crm-client-3.0.6/examples/CustomerExample.php new file mode 100644 index 0000000..8154437 --- /dev/null +++ b/app/Lib/vendor/crm-client-3.0.6/examples/CustomerExample.php @@ -0,0 +1,55 @@ +getCustomerOrNew('123e4567-e89b-12d3-a456-426614174000'); + +echo $customer->firstname; + +$customer->firstname = 'new firstname'; + +try { + if ($customer->save()) { + echo 'Customer was updated'; + } +} catch (ApiErrorException $e) { + if ($e->getApiError()->equals(ApiError::modelNotFound())) { + echo 'This customer does not exists in crm therefore we cannot update it'; + echo $e->getMessage(); + } + if ($e->getApiError()->equals(ApiError::validationFailed())) { + echo 'Some of the provided fields were not ok'; + echo $e->getMessage(); + } +} + +$customer = new Customer(); + +$customer->firstname = 'toto'; +$customer->lastname = 'delarogerie'; +$customer->email = 'toto.delarogerie@gmail.com'; +$customer->password = 'Complic4tEd!P4assW0rd'; +$customer->birth_date = '1992-03-08'; +$customer->phone = '0673891160'; +$customer->address = 'rue des totos'; +$customer->city = 'Toto ville'; +$customer->postcode = '72160'; +$customer->country = Country::france(); + +try { + if ($customer->save()) { + echo 'Customer is saved in crm'; + } else { + echo 'Customer was not saved in crm'; + } +} catch (ApiErrorException $e) { + echo 'Something went wrong'; + echo $e->getMessage(); + // phpcs:ignore Squiz.PHP.DiscouragedFunctions.Found + print_r($e->getApiError()); +} diff --git a/app/Lib/vendor/crm-client-3.0.6/license.md b/app/Lib/vendor/crm-client-3.0.6/license.md new file mode 100644 index 0000000..8ee145e --- /dev/null +++ b/app/Lib/vendor/crm-client-3.0.6/license.md @@ -0,0 +1,21 @@ +MIT License (!! includes CC BY-NC 3.0 parts please read Readme.md) + +Copyright (c) 2021 Jérémy Munsch + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +SOFTWARE. diff --git a/app/Lib/vendor/crm-client-3.0.6/phpcs.xml b/app/Lib/vendor/crm-client-3.0.6/phpcs.xml new file mode 100644 index 0000000..f971c7f --- /dev/null +++ b/app/Lib/vendor/crm-client-3.0.6/phpcs.xml @@ -0,0 +1,125 @@ + + + Created with the PHP Coding Standard Generator. http://edorian.github.com/php-coding-standard-generator/ + + + src/ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + */database/migrations/* + + + diff --git a/app/Lib/vendor/crm-client-3.0.6/phpdoc.dist.xml b/app/Lib/vendor/crm-client-3.0.6/phpdoc.dist.xml new file mode 100644 index 0000000..06786b0 --- /dev/null +++ b/app/Lib/vendor/crm-client-3.0.6/phpdoc.dist.xml @@ -0,0 +1,21 @@ + + + CRM V2 + + documentation + + + + + examples + src + + LDCCrmClient + + + diff --git a/app/Lib/vendor/crm-client-3.0.6/readme.md b/app/Lib/vendor/crm-client-3.0.6/readme.md new file mode 100644 index 0000000..9ed217b --- /dev/null +++ b/app/Lib/vendor/crm-client-3.0.6/readme.md @@ -0,0 +1,143 @@ +# LDC CRM api + +Api client for CRM V2 + +**Client version must match CRM version !!** + + +- [LDC CRM api](#ldc-crm-api) + - [**Installation**](#installation) + - [**Usage**](#usage) + - [**Using Laravel**](#using-laravel) + - [**Using any other project**](#using-any-other-project) + - [**Using Wordpress**](#using-wordpress) + - [**Using custom implementation and calling directly CRM**](#using-custom-implementation-and-calling-directly-crm) + - [**More information**](#more-information) + - [**Customer Informations**](#customer-informations) + - [**Change log**](#change-log) + - [**Testing**](#testing) + - [**Credits**](#credits) + - [**License**](#license) + +## **Installation** + +Multiple ways are possible. You may include the client directly into your project using composer. You will need to have access to this repos. If you read this it may already be the case. So using ``composer update`` or ``composer require ldc/ldccrmv2client`` should be enough. + +*This has few dependencies it may not interfer with your project.* + + "ext-curl": "^7.3", + "php": "^7.3", + "kwaadpepper/enum": "^2.1", + "guzzlehttp/guzzle": "^7.4", + "respect/validation": "^2.2" + +## **Usage** + +As for initialisation multiple ways are possible. +If you are in a laravel project you can map a singleton of the crm api. + +### **Using Laravel** + + 1. Setup ``config/crm.php`` + + 'https://ldc-crm.ldc.fr', + 'token' => 'YOUR_API_TOKEN', + 'password' => 'YOUR_API_PASSWORD' + ]; + + 2. Make a crm singleton if needed *(optional)* + + // In AppServiceProvider.php + App::singleton('CrmApiV2', function () { + return new CrmApiV2(); + }); + + // You then like this. + /** @var \LDC\LDCCRM\CrmApiV2 $crmApi */ + $crmApi = app('CrmApiV2); + + // Or directly use static methods. + /** @var \LDC\LDCCRM\Models\Customer|null $customer */ + $customer = Customer::find('UUID'); + +### **Using any other project** + +Setup once the main class *(it is already a singleton, no need to manage it)*. + +Informations will be kept in memory as static meaning all instance of CrmApiV2 or any class (Customer, ..) will share the same informations as credentials. + + $crmToken = 'YOUR_API_TOKEN'; + $crmPassword = 'YOUR_API_PASSWORD'; + + // This has to hapen once. It will be kept in memory; + new CrmApiV2('https://ldc-crm.ldc.fr', $crmToken, $crmPassword); + +### **Using Wordpress** + +We created as experimental some wordpress classes. It will handle locale storage (in sql database) and sessions using start session. Some security is provided with a settion time out of 15 minutes. A fingerprint is set using the user agent and remote_ip. These cannot be trusted and it wont prevent a replay attack though. +Usefull to point out that you make not use this without ssl (https) connection. + +The usage is that same as for *setting up for any other project*, bu instead you can make usage of class in the ``LDC\LDCCRM\WordPress`` namespace. + +**Note: using methods from classes in this namespace will call php session_start if it has not started yet** + + // If true from here; user session is set and will be remembered until timeout or WPCRM::logout. + $status = WPCRM::login('customer@email.com', 'password'); + +### **Using custom implementation and calling directly CRM** + +You may implement your own call to fit your needs. If you wish to go this way please read [these instructions](docs/usages/custom.md). + +### **More information** + +- Using [WordPress client](docs/usages/wordpress-client.md) +- Using [normal client](docs/usages/client.md) +- Writing [your own implementation](docs/usages/custom.md) + +## **Customer Informations** + +The CRM will store multiple informations about your customer. Of course you can contact us if there is a **RGPD** demand to access or suppress information. Also we store the following informations as for now : + + - last connection + - password + - email + - first name + - last name + - birth date + - address + - phone + - country + - city + - postcode + - opt in status and history + - question answers + +**Password is stored as hashed using strong algorithm and a secret key, no logs are done while authenticating your customer other than the connection date if auth is successful** + +***You may also note that every customer has a HASHCODE, this is the ID of your customer and has to be stored on your side. But even if you don't you can always identify your customers using it's email.*** + +Minimal informations you may keep are : + +- hashcode +- email + + +## **Change log** + +Please see the [changelog](changelog.md) for more information on what has changed recently. + +## **Testing** + +All unit test are included in the crm source code, meaning you do not have access to them. If you wish you can override any source code, write your own test, but data will still be validated on crm side. + + +## **Credits** + +- [Jérémy Munsch](https://jeremydev.ovh) + +## **License** + +MIT. Please see the [license file](license.md) for more information. diff --git a/app/Lib/vendor/crm-client-3.0.6/resources/lang/fr.php b/app/Lib/vendor/crm-client-3.0.6/resources/lang/fr.php new file mode 100644 index 0000000..beaefd6 --- /dev/null +++ b/app/Lib/vendor/crm-client-3.0.6/resources/lang/fr.php @@ -0,0 +1,31 @@ + [ + 'support_code' => 'code support', + 'label_type_support' => 'label type de support', + 'order_date' => 'date de commande', + 'order_num' => 'numéro de commande', + 'state_order' => 'état commande', + 'package_unit_weight' => 'poids unitaire du paquet', + 'code_unique' => 'code unique', + 'code_on_pack' => 'code du paquet', + 'answer' => 'réponse', + 'email' => 'e-mail', + 'firstname' => 'prénom', + 'lastname' => 'nom de famille', + 'lastname' => 'nom de famille', + 'password' => 'mot de passe', + 'birth_date' => 'date de naissance', + 'phone' => 'téléphone', + 'address' => 'adresse', + 'address2' => 'adresse complémentaire', + 'city' => 'ville', + 'postcode' => 'code postal', + 'country' => 'pays', + 'opt_in' => 'newsletter', + 'status' => 'état', + 'last_connection' => 'denière connexion', + 'answers' => 'réponses' + ] +]; diff --git a/app/Lib/vendor/crm-client-3.0.6/src/CrmApiV2.php b/app/Lib/vendor/crm-client-3.0.6/src/CrmApiV2.php new file mode 100644 index 0000000..bd33ddc --- /dev/null +++ b/app/Lib/vendor/crm-client-3.0.6/src/CrmApiV2.php @@ -0,0 +1,141 @@ +call($request); + return $response->status->equals(ApiStatus::OK()); + } + + /** + * + * Get a customer from its hashcode or email + * If it does not exists a new instance + * will be returned. You would have + * to call its save method later on. + * + * @param string $identification The customer hashcode or email. + * @return \LDC\LDCCRM\Models\Customer A client Customer model. + * + * @throws \LDC\LDCCRM\Exceptions\CrmException If an error occurs on server side or on getting response. + * @throws \LDC\LDCCRM\Exceptions\ApiErrorException If any error or \LDC\LDCCRM\Enums\ApiError occurs. + * @phpcs:ignore Squiz.Commenting.FunctionComment.EmptyThrows + */ + public function getCustomerOrNew(string $identification): Customer + { + return $this->getCustomer($identification) ?? new Customer(); + } + + /** + * Get a customer from its hashcode or email + * If it does not exists a new instance + * will be returned. You would have + * to call its save method later on. + * + * @param string $identification The customer hashcode or email. + * @return \LDC\LDCCRM\Models\Customer|null Return null if the customer was not found + * @throws \LDC\LDCCRM\Exceptions\CrmException If an error occurs on server side or on getting response. + * @throws \LDC\LDCCRM\Exceptions\ApiErrorException If any error or \LDC\LDCCRM\Enums\ApiError occurs. + * Possibles are : - modelNotFound, If this customer hashcode could not be found. + * @phpcs:ignore Squiz.Commenting.FunctionCommentThrowTag.WrongNumber + */ + public function getCustomer(string $identification): ?Customer + { + return Customer::find($identification); + } + + /** + * Set the single optin status for an email + * + * @param string $email + * @param boolean $opt_in + * @return boolean true if succeeded + * @throws \LDC\LDCCRM\Exceptions\ValidationException If a field email could not be validated. + * @throws \LDC\LDCCRM\Exceptions\CrmException If an error occurs on server side or on getting response. + * @throws \LDC\LDCCRM\Exceptions\ApiErrorException If any error or \LDC\LDCCRM\Enums\ApiError occurs. + * Possibles are : - singleOptinCustomerExists, If a customer exists with this email. + * @phpcs:ignore Squiz.Commenting.FunctionCommentThrowTag.WrongNumber + */ + public static function setStatus(string $email, bool $opt_in): bool + { + return SingleOptin::setStatus($email, $opt_in); + } + + /** + * Set the single optin status for an email + * + * @param string $hashcode + * @return boolean true if succeeded + * @throws \LDC\LDCCRM\Exceptions\ValidationException If a field hashcode could not be validated. + * @throws \LDC\LDCCRM\Exceptions\CrmException If an error occurs on server side or on getting response. + * @throws \LDC\LDCCRM\Exceptions\ApiErrorException If any error or \LDC\LDCCRM\Enums\ApiError occurs. + * Possibles are : - modelNotFound, If a single optin does not exists. + * @phpcs:ignore Squiz.Commenting.FunctionCommentThrowTag.WrongNumber + */ + public static function unsetStatusWithHashcode(string $hashcode): bool + { + return SingleOptin::unsetStatusWithHashcode($hashcode); + } + + /** + * Test a customer credentials to see if it can login + * + * @param string $email + * @param string $password + * @return boolean + * @throws \LDC\LDCCRM\Exceptions\CrmException If an error occurs on server side or on getting response. + * @throws \LDC\LDCCRM\Exceptions\ApiErrorException If any error or \LDC\LDCCRM\Enums\ApiError occurs. + * Possibles are : - authFailed, If credentials are not valid. + * - customerNotActivated, If the account is not activated. + * @phpcs:ignore Squiz.Commenting.FunctionCommentThrowTag.WrongNumber + */ + public static function login(string $email, string $password): bool + { + return Customer::login($email, $password); + } +} diff --git a/app/Lib/vendor/crm-client-3.0.6/src/Enums/ApiError.php b/app/Lib/vendor/crm-client-3.0.6/src/Enums/ApiError.php new file mode 100644 index 0000000..1c5c764 --- /dev/null +++ b/app/Lib/vendor/crm-client-3.0.6/src/Enums/ApiError.php @@ -0,0 +1,114 @@ + 101, + 'validationFailed' => 102, + 'customerExists' => 103, + 'customerAlreadyActive' => 110, + 'customerNotActivated' => 116, + 'authFailed' => 117, + 'apiAuthFailed' => 119, + 'singleOptinCustomerExists' => 120, + 'methodNotAllowed' => 150, + 'wrongTimeStamp' => 151, + 'missingParameter' => 400, + 'authorizationException' => 403, + 'throttleRequestsException' => 429 + ]; + } + + /** + * Libellés des possibilités de cet énumération (label) + * + * @return array + */ + public static function labels(): array + { + return [ + 'modelNotFound' => '%s introuvable.', + 'validationFailed' => 'Impossible de valider les données', + 'customerExists' => 'L\'utilisateur est déjà enregistré sur ce site', + 'customerNotActivated' => 'Le compte n\'est pas activé', + 'customerAlreadyActive' => 'Le compte est déjà activé', + 'singleOptinCustomerExists' => 'Le single optin ne peut être ajouté car un compte existe.', + 'authFailed' => 'Echec de l\'authentification du compte', + 'apiAuthFailed' => 'Echec de l\'authentification client à l\'Api LDC-CRM pour ce service', + 'methodNotAllowed' => 'This method is not allowed for this request', + 'wrongTimeStamp' => 'Your request is malformed, please check timestamp header and parameter', + 'missingParameter' => 'The request is missing some parameters', + 'authorizationException' => 'You are not autorized to access this', + 'throttleRequestsException' => 'Throttle: too many request have been attempted, please retry later' + ]; + } +} diff --git a/app/Lib/vendor/crm-client-3.0.6/src/Enums/ApiStatus.php b/app/Lib/vendor/crm-client-3.0.6/src/Enums/ApiStatus.php new file mode 100644 index 0000000..a48908d --- /dev/null +++ b/app/Lib/vendor/crm-client-3.0.6/src/Enums/ApiStatus.php @@ -0,0 +1,16 @@ + 1, + 'game' => 2 + ]; + } +} diff --git a/app/Lib/vendor/crm-client-3.0.6/src/Enums/ArcadiaOrderType.php b/app/Lib/vendor/crm-client-3.0.6/src/Enums/ArcadiaOrderType.php new file mode 100644 index 0000000..4da2a8a --- /dev/null +++ b/app/Lib/vendor/crm-client-3.0.6/src/Enums/ArcadiaOrderType.php @@ -0,0 +1,28 @@ + 0, + 'check' => 1 + ]; + } +} diff --git a/app/Lib/vendor/crm-client-3.0.6/src/Enums/Country.php b/app/Lib/vendor/crm-client-3.0.6/src/Enums/Country.php new file mode 100644 index 0000000..f741898 --- /dev/null +++ b/app/Lib/vendor/crm-client-3.0.6/src/Enums/Country.php @@ -0,0 +1,869 @@ + 1, + 'alandIslands' => 2, + 'albania' => 3, + 'algeria' => 4, + 'americanSamoa' => 5, + 'andorra' => 6, + 'angola' => 7, + 'anguilla' => 8, + 'antarctica' => 9, + 'antiguaAndBarbuda' => 10, + 'argentina' => 11, + 'armenia' => 12, + 'aruba' => 13, + 'australia' => 14, + 'austria' => 15, + 'azerbaijan' => 16, + 'bahrain' => 17, + 'bahamas' => 18, + 'bangladesh' => 19, + 'barbados' => 20, + 'belarus' => 21, + 'belgium' => 22, + 'belize' => 23, + 'benin' => 24, + 'bermuda' => 25, + 'bhutan' => 26, + 'boliviaPlurinationalStateOf' => 27, + 'bonaireSintEustatiusAndSaba' => 28, + 'bosniaAndHerzegovina' => 29, + 'botswana' => 30, + 'bouvetIsland' => 31, + 'brazil' => 32, + 'britishIndianOceanTerritory' => 33, + 'bruneiDarussalam' => 34, + 'bulgaria' => 35, + 'burkinaFaso' => 36, + 'burundi' => 37, + 'cambodia' => 38, + 'cameroon' => 39, + 'canada' => 40, + 'capeVerde' => 41, + 'caymanIslands' => 42, + 'centralAfricanRepublic' => 43, + 'chad' => 44, + 'chile' => 45, + 'china' => 46, + 'christmasIsland' => 47, + 'cocosKeelingIslands' => 48, + 'colombia' => 49, + 'comoros' => 50, + 'congo' => 51, + 'congoTheDemocraticRepublicOfThe' => 52, + 'cookIslands' => 53, + 'costaRica' => 54, + 'coteDivoire' => 55, + 'croatia' => 56, + 'cuba' => 57, + 'curacao' => 58, + 'cyprus' => 59, + 'czechRepublic' => 60, + 'denmark' => 61, + 'djibouti' => 62, + 'dominica' => 63, + 'dominicanRepublic' => 64, + 'ecuador' => 65, + 'egypt' => 66, + 'elSalvador' => 67, + 'equatorialGuinea' => 68, + 'eritrea' => 69, + 'estonia' => 70, + 'ethiopia' => 71, + 'falklandIslandsMalvinas' => 72, + 'faroeIslands' => 73, + 'fiji' => 74, + 'finland' => 75, + 'france' => 76, + 'frenchGuiana' => 77, + 'frenchPolynesia' => 78, + 'frenchSouthernTerritories' => 79, + 'gabon' => 80, + 'gambia' => 81, + 'georgia' => 82, + 'germany' => 83, + 'ghana' => 84, + 'gibraltar' => 85, + 'greece' => 86, + 'greenland' => 87, + 'grenada' => 88, + 'guadeloupe' => 89, + 'guam' => 90, + 'guatemala' => 91, + 'guernsey' => 92, + 'guinea' => 93, + 'guineaBissau' => 94, + 'guyana' => 95, + 'haiti' => 96, + 'heardIslandAndMcdonaldIslands' => 97, + 'holySeeVaticanCityState' => 98, + 'honduras' => 99, + 'hongKong' => 100, + 'hungary' => 101, + 'iceland' => 102, + 'india' => 103, + 'indonesia' => 104, + 'iranIslamicRepublicOf' => 105, + 'iraq' => 106, + 'ireland' => 107, + 'isleOfMan' => 108, + 'israel' => 109, + 'italy' => 110, + 'jamaica' => 111, + 'japan' => 112, + 'jersey' => 113, + 'jordan' => 114, + 'kazakhstan' => 115, + 'kenya' => 116, + 'kiribati' => 117, + 'koreaDemocraticPeoplesRepublicOf' => 118, + 'koreaRepublicOf' => 119, + 'kuwait' => 120, + 'kyrgyzstan' => 121, + 'laoPeoplesDemocraticRepublic' => 122, + 'latvia' => 123, + 'lebanon' => 124, + 'lesotho' => 125, + 'liberia' => 126, + 'libya' => 127, + 'liechtenstein' => 128, + 'lithuania' => 129, + 'luxembourg' => 130, + 'macao' => 131, + 'macedoniaTheFormerYugoslavRepublicOf' => 132, + 'madagascar' => 133, + 'malawi' => 134, + 'malaysia' => 135, + 'maldives' => 136, + 'mali' => 137, + 'malta' => 138, + 'marshallIslands' => 139, + 'martinique' => 140, + 'mauritania' => 141, + 'mauritius' => 142, + 'mayotte' => 143, + 'mexico' => 144, + 'micronesiaFederatedStatesOf' => 145, + 'moldovaRepublicOf' => 146, + 'monaco' => 147, + 'mongolia' => 148, + 'montenegro' => 149, + 'montserrat' => 150, + 'morocco' => 151, + 'mozambique' => 152, + 'myanmar' => 153, + 'namibia' => 154, + 'nauru' => 155, + 'nepal' => 156, + 'netherlands' => 157, + 'newCaledonia' => 158, + 'newZealand' => 159, + 'nicaragua' => 160, + 'niger' => 161, + 'nigeria' => 162, + 'niue' => 163, + 'norfolkIsland' => 164, + 'northernMarianaIslands' => 165, + 'norway' => 166, + 'oman' => 167, + 'pakistan' => 168, + 'palau' => 169, + 'palestineStateOf' => 170, + 'panama' => 171, + 'papuaNewGuinea' => 172, + 'paraguay' => 173, + 'peru' => 174, + 'philippines' => 175, + 'pitcairn' => 176, + 'poland' => 177, + 'portugal' => 178, + 'puertoRico' => 179, + 'qatar' => 180, + 'reunion' => 181, + 'romania' => 182, + 'russianFederation' => 183, + 'rwanda' => 184, + 'saintBarthelemy' => 185, + 'saintHelenaAscensionAndTristanDaCunha' => 186, + 'saintKittsAndNevis' => 187, + 'saintLucia' => 188, + 'saintMartinFrenchPart' => 189, + 'saintPierreAndMiquelon' => 190, + 'saintVincentAndTheGrenadines' => 191, + 'samoa' => 192, + 'sanMarino' => 193, + 'saoTomeAndPrincipe' => 194, + 'saudiArabia' => 195, + 'senegal' => 196, + 'serbia' => 197, + 'seychelles' => 198, + 'sierraLeone' => 199, + 'singapore' => 200, + 'sintMaartenDutchPart' => 201, + 'slovakia' => 202, + 'slovenia' => 203, + 'solomonIslands' => 204, + 'somalia' => 205, + 'southAfrica' => 206, + 'southGeorgiaAndTheSouthSandwichIslands' => 207, + 'southSudan' => 208, + 'spain' => 209, + 'sriLanka' => 210, + 'sudan' => 211, + 'suriname' => 212, + 'svalbardAndJanMayen' => 213, + 'swaziland' => 214, + 'sweden' => 215, + 'switzerland' => 216, + 'syrianArabRepublic' => 217, + 'taiwanProvinceOfChina' => 218, + 'tajikistan' => 219, + 'tanzaniaUnitedRepublicOf' => 220, + 'thailand' => 221, + 'timorLeste' => 222, + 'togo' => 223, + 'tokelau' => 224, + 'tonga' => 225, + 'trinidadAndTobago' => 226, + 'tunisia' => 227, + 'turkey' => 228, + 'turkmenistan' => 229, + 'turksAndCaicosIslands' => 230, + 'tuvalu' => 231, + 'uganda' => 232, + 'ukraine' => 233, + 'unitedArabEmirates' => 234, + 'unitedKingdom' => 235, + 'unitedStates' => 236, + 'unitedStatesMinorOutlyingIslands' => 237, + 'uruguay' => 238, + 'uzbekistan' => 239, + 'vanuatu' => 240, + 'venezuelaBolivarianRepublicOf' => 241, + 'vietNam' => 242, + 'virginIslandsBritish' => 243, + 'virginIslandsUs' => 244, + 'wallisAndFutuna' => 245, + 'westernSahara' => 246, + 'yemen' => 247, + 'zambia' => 248, + 'zimbabwe' => 249 + ]; + } + + /** + * Libellés des possibilités de cet énumération (label) + * + * @return array + */ + public static function labels(): array + { + return [ + 'afghanistan' => 'Afghanistan', + 'alandIslands' => 'Åland Islands', + 'albania' => 'Albania', + 'algeria' => 'Algeria', + 'americanSamoa' => 'American Samoa', + 'andorra' => 'Andorra', + 'angola' => 'Angola', + 'anguilla' => 'Anguilla', + 'antarctica' => 'Antarctica', + 'antiguaAndBarbuda' => 'Antigua and Barbuda', + 'argentina' => 'Argentina', + 'armenia' => 'Armenia', + 'aruba' => 'Aruba', + 'australia' => 'Australia', + 'austria' => 'Austria', + 'azerbaijan' => 'Azerbaijan', + 'bahrain' => 'Bahrain', + 'bahamas' => 'Bahamas', + 'bangladesh' => 'Bangladesh', + 'barbados' => 'Barbados', + 'belarus' => 'Belarus', + 'belgium' => 'Belgium', + 'belize' => 'Belize', + 'benin' => 'Benin', + 'bermuda' => 'Bermuda', + 'bhutan' => 'Bhutan', + 'boliviaPlurinationalStateOf' => 'Bolivia, Plurinational State of', + 'bonaireSintEustatiusAndSaba' => 'Bonaire, Sint Eustatius and Saba', + 'bosniaAndHerzegovina' => 'Bosnia and Herzegovina', + 'botswana' => 'Botswana', + 'bouvetIsland' => 'Bouvet Island', + 'brazil' => 'Brazil', + 'britishIndianOceanTerritory' => 'British Indian Ocean Territory', + 'bruneiDarussalam' => 'Brunei Darussalam', + 'bulgaria' => 'Bulgaria', + 'burkinaFaso' => 'Burkina Faso', + 'burundi' => 'Burundi', + 'cambodia' => 'Cambodia', + 'cameroon' => 'Cameroon', + 'canada' => 'Canada', + 'capeVerde' => 'Cape Verde', + 'caymanIslands' => 'Cayman Islands', + 'centralAfricanRepublic' => 'Central African Republic', + 'chad' => 'Chad', + 'chile' => 'Chile', + 'china' => 'China', + 'christmasIsland' => 'Christmas Island', + 'cocosKeelingIslands' => 'Cocos (Keeling) Islands', + 'colombia' => 'Colombia', + 'comoros' => 'Comoros', + 'congo' => 'Congo', + 'congoTheDemocraticRepublicOfThe' => 'Congo, the Democratic Republic of the', + 'cookIslands' => 'Cook Islands', + 'costaRica' => 'Costa Rica', + 'coteDivoire' => 'Côte d\'Ivoire', + 'croatia' => 'Croatia', + 'cuba' => 'Cuba', + 'curacao' => 'Curaçao', + 'cyprus' => 'Cyprus', + 'czechRepublic' => 'Czech Republic', + 'denmark' => 'Denmark', + 'djibouti' => 'Djibouti', + 'dominica' => 'Dominica', + 'dominicanRepublic' => 'Dominican Republic', + 'ecuador' => 'Ecuador', + 'egypt' => 'Egypt', + 'elSalvador' => 'El Salvador', + 'equatorialGuinea' => 'Equatorial Guinea', + 'eritrea' => 'Eritrea', + 'estonia' => 'Estonia', + 'ethiopia' => 'Ethiopia', + 'falklandIslandsMalvinas' => 'Falkland Islands (Malvinas)', + 'faroeIslands' => 'Faroe Islands', + 'fiji' => 'Fiji', + 'finland' => 'Finland', + 'france' => 'France', + 'frenchGuiana' => 'French Guiana', + 'frenchPolynesia' => 'French Polynesia', + 'frenchSouthernTerritories' => 'French Southern Territories', + 'gabon' => 'Gabon', + 'gambia' => 'Gambia', + 'georgia' => 'Georgia', + 'germany' => 'Germany', + 'ghana' => 'Ghana', + 'gibraltar' => 'Gibraltar', + 'greece' => 'Greece', + 'greenland' => 'Greenland', + 'grenada' => 'Grenada', + 'guadeloupe' => 'Guadeloupe', + 'guam' => 'Guam', + 'guatemala' => 'Guatemala', + 'guernsey' => 'Guernsey', + 'guinea' => 'Guinea', + 'guineaBissau' => 'GuineaBissau', + 'guyana' => 'Guyana', + 'haiti' => 'Haiti', + 'heardIslandAndMcdonaldIslands' => 'Heard Island and McDonald Islands', + 'holySeeVaticanCityState' => 'Holy See (Vatican City State)', + 'honduras' => 'Honduras', + 'hongKong' => 'Hong Kong', + 'hungary' => 'Hungary', + 'iceland' => 'Iceland', + 'india' => 'India', + 'indonesia' => 'Indonesia', + 'iranIslamicRepublicOf' => 'Iran, Islamic Republic of', + 'iraq' => 'Iraq', + 'ireland' => 'Ireland', + 'isleOfMan' => 'Isle of Man', + 'israel' => 'Israel', + 'italy' => 'Italy', + 'jamaica' => 'Jamaica', + 'japan' => 'Japan', + 'jersey' => 'Jersey', + 'jordan' => 'Jordan', + 'kazakhstan' => 'Kazakhstan', + 'kenya' => 'Kenya', + 'kiribati' => 'Kiribati', + 'koreaDemocraticPeoplesRepublicOf' => 'Korea, Democratic People\'s Republic of', + 'koreaRepublicOf' => 'Korea, Republic of', + 'kuwait' => 'Kuwait', + 'kyrgyzstan' => 'Kyrgyzstan', + 'laoPeoplesDemocraticRepublic' => 'Lao People\'s Democratic Republic', + 'latvia' => 'Latvia', + 'lebanon' => 'Lebanon', + 'lesotho' => 'Lesotho', + 'liberia' => 'Liberia', + 'libya' => 'Libya', + 'liechtenstein' => 'Liechtenstein', + 'lithuania' => 'Lithuania', + 'luxembourg' => 'Luxembourg', + 'macao' => 'Macao', + 'macedoniaTheFormerYugoslavRepublicOf' => 'Macedonia, the Former Yugoslav Republic of', + 'madagascar' => 'Madagascar', + 'malawi' => 'Malawi', + 'malaysia' => 'Malaysia', + 'maldives' => 'Maldives', + 'mali' => 'Mali', + 'malta' => 'Malta', + 'marshallIslands' => 'Marshall Islands', + 'martinique' => 'Martinique', + 'mauritania' => 'Mauritania', + 'mauritius' => 'Mauritius', + 'mayotte' => 'Mayotte', + 'mexico' => 'Mexico', + 'micronesiaFederatedStatesOf' => 'Micronesia, Federated States of', + 'moldovaRepublicOf' => 'Moldova, Republic of', + 'monaco' => 'Monaco', + 'mongolia' => 'Mongolia', + 'montenegro' => 'Montenegro', + 'montserrat' => 'Montserrat', + 'morocco' => 'Morocco', + 'mozambique' => 'Mozambique', + 'myanmar' => 'Myanmar', + 'namibia' => 'Namibia', + 'nauru' => 'Nauru', + 'nepal' => 'Nepal', + 'netherlands' => 'Netherlands', + 'newCaledonia' => 'New Caledonia', + 'newZealand' => 'New Zealand', + 'nicaragua' => 'Nicaragua', + 'niger' => 'Niger', + 'nigeria' => 'Nigeria', + 'niue' => 'Niue', + 'norfolkIsland' => 'Norfolk Island', + 'northernMarianaIslands' => 'Northern Mariana Islands', + 'norway' => 'Norway', + 'oman' => 'Oman', + 'pakistan' => 'Pakistan', + 'palau' => 'Palau', + 'palestineStateOf' => 'Palestine, State of', + 'panama' => 'Panama', + 'papuaNewGuinea' => 'Papua New Guinea', + 'paraguay' => 'Paraguay', + 'peru' => 'Peru', + 'philippines' => 'Philippines', + 'pitcairn' => 'Pitcairn', + 'poland' => 'Poland', + 'portugal' => 'Portugal', + 'puertoRico' => 'Puerto Rico', + 'qatar' => 'Qatar', + 'reunion' => 'Réunion', + 'romania' => 'Romania', + 'russianFederation' => 'Russian Federation', + 'rwanda' => 'Rwanda', + 'saintBarthelemy' => 'Saint Barthélemy', + 'saintHelenaAscensionAndTristanDaCunha' => 'Saint Helena, Ascension and Tristan da Cunha', + 'saintKittsAndNevis' => 'Saint Kitts and Nevis', + 'saintLucia' => 'Saint Lucia', + 'saintMartinFrenchPart' => 'Saint Martin (French part)', + 'saintPierreAndMiquelon' => 'Saint Pierre and Miquelon', + 'saintVincentAndTheGrenadines' => 'Saint Vincent and the Grenadines', + 'samoa' => 'Samoa', + 'sanMarino' => 'San Marino', + 'saoTomeAndPrincipe' => 'Sao Tome and Principe', + 'saudiArabia' => 'Saudi Arabia', + 'senegal' => 'Senegal', + 'serbia' => 'Serbia', + 'seychelles' => 'Seychelles', + 'sierraLeone' => 'Sierra Leone', + 'singapore' => 'Singapore', + 'sintMaartenDutchPart' => 'Sint Maarten (Dutch part)', + 'slovakia' => 'Slovakia', + 'slovenia' => 'Slovenia', + 'solomonIslands' => 'Solomon Islands', + 'somalia' => 'Somalia', + 'southAfrica' => 'South Africa', + 'southGeorgiaAndTheSouthSandwichIslands' => 'South Georgia and the South Sandwich Islands', + 'southSudan' => 'South Sudan', + 'spain' => 'Spain', + 'sriLanka' => 'Sri Lanka', + 'sudan' => 'Sudan', + 'suriname' => 'Suriname', + 'svalbardAndJanMayen' => 'Svalbard and Jan Mayen', + 'swaziland' => 'Swaziland', + 'sweden' => 'Sweden', + 'switzerland' => 'Switzerland', + 'syrianArabRepublic' => 'Syrian Arab Republic', + 'taiwanProvinceOfChina' => 'Taiwan, Province of China', + 'tajikistan' => 'Tajikistan', + 'tanzaniaUnitedRepublicOf' => 'Tanzania, United Republic of', + 'thailand' => 'Thailand', + 'timorLeste' => 'TimorLeste', + 'togo' => 'Togo', + 'tokelau' => 'Tokelau', + 'tonga' => 'Tonga', + 'trinidadAndTobago' => 'Trinidad and Tobago', + 'tunisia' => 'Tunisia', + 'turkey' => 'Turkey', + 'turkmenistan' => 'Turkmenistan', + 'turksAndCaicosIslands' => 'Turks and Caicos Islands', + 'tuvalu' => 'Tuvalu', + 'uganda' => 'Uganda', + 'ukraine' => 'Ukraine', + 'unitedArabEmirates' => 'United Arab Emirates', + 'unitedKingdom' => 'United Kingdom', + 'unitedStates' => 'United States', + 'unitedStatesMinorOutlyingIslands' => 'United States Minor Outlying Islands', + 'uruguay' => 'Uruguay', + 'uzbekistan' => 'Uzbekistan', + 'vanuatu' => 'Vanuatu', + 'venezuelaBolivarianRepublicOf' => 'Venezuela, Bolivarian Republic of', + 'vietNam' => 'Viet Nam', + 'virginIslandsBritish' => 'Virgin Islands, British', + 'virginIslandsUs' => 'Virgin Islands, U.S.', + 'wallisAndFutuna' => 'Wallis and Futuna', + 'westernSahara' => 'Western Sahara', + 'yemen' => 'Yemen', + 'zambia' => 'Zambia', + 'zimbabwe' => 'Zimbabwe' + ]; + } + + /** + * Get valid countries label + * + * @return array + */ + public static function getValidCountriesLabel(): array + { + return collect(self::getValidCountries())->map(function (self $country) { + return $country->label; + })->all(); + } + + /** + * Get Alpha 2 ISO code of valid countries + * + * @return array + */ + public static function getValidIsoAplha2Codes(): array + { + return \array_values(self::isoCodes()); + } + + /** + * Get valid countries + * + * @return array + */ + public static function getValidCountries(): array + { + return [ + Country::belgium(), + Country::luxembourg(), + Country::france(), + // * DROM COM. + Country::guadeloupe(), + Country::martinique(), + Country::frenchGuiana(), + Country::reunion(), + Country::saintPierreAndMiquelon(), + Country::mayotte(), + Country::saintBarthelemy(), + Country::saintMartinFrenchPart(), + Country::wallisAndFutuna(), + Country::frenchPolynesia(), + Country::newCaledonia() + ]; + } + + /** + * Enum classes + * + * @return array + */ + protected static function isoCodes(): array + { + return [ + 'france' => 'FR', + 'belgium' => 'BE', + 'luxembourg' => 'LU', + 'guadeloupe' => 'GP', + 'martinique' => 'MQ', + 'frenchGuiana' => 'GF', + 'reunion' => 'RE', + 'saintPierreAndMiquelon' => 'PM', + 'mayotte' => 'YT', + 'saintBarthelemy' => 'BL', + 'saintMartinFrenchPart' => 'MF', + 'wallisAndFutuna' => 'WF', + 'frenchPolynesia' => 'PF', + 'newCaledonia' => 'NC', + ]; + } + + /** + * @param string $attribute + * @return integer|string + */ + public function __get(string $attribute) + { + if ($attribute === 'iso') { + return $this->isoCodes()[$this->getDefinition()] ?? null; + } + return parent::__get($attribute); + } +} diff --git a/app/Lib/vendor/crm-client-3.0.6/src/Enums/HttpMethods.php b/app/Lib/vendor/crm-client-3.0.6/src/Enums/HttpMethods.php new file mode 100644 index 0000000..c85e231 --- /dev/null +++ b/app/Lib/vendor/crm-client-3.0.6/src/Enums/HttpMethods.php @@ -0,0 +1,16 @@ + 'LOG_EMERG', + 'ALERT' => 'LOG_ALERT', + 'CRIT' => 'LOG_CRIT', + 'ERR' => 'LOG_ERR', + 'WARNING' => 'LOG_WARNING', + 'NOTICE' => 'LOG_NOTICE', + 'INFO' => 'LOG_INFO', + 'DEBUG' => 'LOG_DEBUG', + ]; + } +} diff --git a/app/Lib/vendor/crm-client-3.0.6/src/Enums/QuestionType.php b/app/Lib/vendor/crm-client-3.0.6/src/Enums/QuestionType.php new file mode 100644 index 0000000..7179181 --- /dev/null +++ b/app/Lib/vendor/crm-client-3.0.6/src/Enums/QuestionType.php @@ -0,0 +1,30 @@ + 1, + 'radio' => 2, + 'checkbox' => 3 + ]; + } +} diff --git a/app/Lib/vendor/crm-client-3.0.6/src/Exceptions/AccessError.php b/app/Lib/vendor/crm-client-3.0.6/src/Exceptions/AccessError.php new file mode 100644 index 0000000..dde3e25 --- /dev/null +++ b/app/Lib/vendor/crm-client-3.0.6/src/Exceptions/AccessError.php @@ -0,0 +1,25 @@ +$propertyName, it does not exists."); + } +} diff --git a/app/Lib/vendor/crm-client-3.0.6/src/Exceptions/ApiErrorException.php b/app/Lib/vendor/crm-client-3.0.6/src/Exceptions/ApiErrorException.php new file mode 100644 index 0000000..07c74ce --- /dev/null +++ b/app/Lib/vendor/crm-client-3.0.6/src/Exceptions/ApiErrorException.php @@ -0,0 +1,104 @@ +error = $error; + $this->message = $message; + $this->httpCode = $httpCode; + parent::__construct( + strlen($this->message) ? $this->message : $error->label, + $error->value, + $previous + ); + } + + /** + * Get the Api Error + * + * @return ApiError + */ + public function getApiError(): ApiError + { + return $this->error; + } + + /** + * Get the http code + * + * @return integer + */ + public function getStatusCode(): int + { + return $this->httpCode; + } + + /** + * This is used by laravel only. + * It uses Log class to print the error. + * + * @return void + */ + public function report() + { + // @codeCoverageIgnoreStart + Log::debug(sprintf('CRM API: %s', $this->getMessage())); + // @codeCoverageIgnoreEnd + } +} diff --git a/app/Lib/vendor/crm-client-3.0.6/src/Exceptions/CrmException.php b/app/Lib/vendor/crm-client-3.0.6/src/Exceptions/CrmException.php new file mode 100644 index 0000000..b6e9ed7 --- /dev/null +++ b/app/Lib/vendor/crm-client-3.0.6/src/Exceptions/CrmException.php @@ -0,0 +1,29 @@ +getMessage())); + } +} diff --git a/app/Lib/vendor/crm-client-3.0.6/src/Exceptions/SkipValidationException.php b/app/Lib/vendor/crm-client-3.0.6/src/Exceptions/SkipValidationException.php new file mode 100644 index 0000000..705b547 --- /dev/null +++ b/app/Lib/vendor/crm-client-3.0.6/src/Exceptions/SkipValidationException.php @@ -0,0 +1,15 @@ +getMessage())); + } +} diff --git a/app/Lib/vendor/crm-client-3.0.6/src/Exceptions/WpCrmInvalidJsonUserInfo.php b/app/Lib/vendor/crm-client-3.0.6/src/Exceptions/WpCrmInvalidJsonUserInfo.php new file mode 100644 index 0000000..21fca7a --- /dev/null +++ b/app/Lib/vendor/crm-client-3.0.6/src/Exceptions/WpCrmInvalidJsonUserInfo.php @@ -0,0 +1,27 @@ + + */ +class Answer extends CrmClientModel +{ + /** + * The question id + * + * Required + * Field Type bigInt + * + * @var integer + */ + private $id; + + /** + * The actual answer as a string + * + * Required + * Max length 255 + * Field Type varchar + * + * @var string + */ + private $answer = null; + + /** + * The crm customer fields + * + * @var array + */ + protected $modelFields = [ + 'id', 'answer' + ]; + + /** + * Validation rules + * + * @var array + */ + protected static $validation = [ + 'id' => 'required|int', + 'answer' => 'required|string|max:255' + ]; + + /** + * Answer + * + * @param array $properties + * @throws \LDC\LDCCRM\Exceptions\ValidationException If a field could not be validated. + */ + public function __construct(array $properties = []) + { + parent::__construct(); + $this->fill($properties); + return $this; + } + + // * PUBLIC METHODS + + /** + * Set unanswered question for a specific customer + * + * @param string $hashcode The customer hashcode. + * @param integer $questionId The question id. + * @param array $answersId An array with answers id. + * @return boolean true if succeeded + * + * @throws \LDC\LDCCRM\Exceptions\ValidationException If a hashcode is not a valid UUID. + * @throws LDC\LDCCRM\Exceptions\ValidationException If any of the provided ids are invalid. + * @throws \LDC\LDCCRM\Exceptions\ApiErrorException If any error \LDC\LDCCRM\Enums\ApiError occurs. + * Possibles are : - validationFailed, If given ids are wrong(CRM side). + * @throws \LDC\LDCCRM\Exceptions\CrmException If an error occurs on server side or on getting response. + */ + public static function setQuestionAnswers(string $hashcode, int $questionId, array $answersId): bool + { + self::assertValidHascode($hashcode); + self::assertValidPrimaryKey($questionId); + if (!count($answersId)) { + return true; + } + foreach ($answersId as $answerId) { + self::assertValidPrimaryKey($answerId); + } + static::setUpApiInterface(); + $request = Utils::getResquest( + 'apiV2.customers.answers.store', + [ + 'serviceCustomer' => $hashcode + ], + [ + 'question' => $questionId, + 'answers' => $answersId + ] + ); + + $response = static::$apiInterface->call($request); + return $response->status->equals(ApiStatus::OK()); + } + + /** + * Serialize this object to an array + * + * @return array + */ + public function jsonSerialize() + { + return [ + 'id' => $this->id, + 'answer' => $this->answer + ]; + } +} diff --git a/app/Lib/vendor/crm-client-3.0.6/src/Models/ArcadiaMailDefault.php b/app/Lib/vendor/crm-client-3.0.6/src/Models/ArcadiaMailDefault.php new file mode 100644 index 0000000..b127516 --- /dev/null +++ b/app/Lib/vendor/crm-client-3.0.6/src/Models/ArcadiaMailDefault.php @@ -0,0 +1,408 @@ + + */ +class ArcadiaMailDefault extends CrmClientModel +{ + /** + * An RFC Valid Email + * + * Validate: rfc,dns,spoof,filter + * + * Required + * Min length N/A + * Max length 255 + * Field Type varchar + * + * @var string + */ + private $email = null; + + /** + * First name + * + * Required + * Min length 2 + * Max length 255 + * Field Type varchar + * + * @var string + */ + private $firstname = null; + + /** + * Last name + * + * Required + * Min length 2 + * Max length 255 + * Field Type varchar + * + * @var string + */ + private $lastname = null; + + /** + * The user phone + * + * Validate: sometimes,string + * + * Required + * Min length NA + * Max length 255 + * Field Type varchar + * + * @var string + */ + private $phone = null; + + /** + * The user address (street number, name, etc) + * + * Validate: sometimes,string + * + * Min length NA + * Max length 255 + * Field Type varchar + * + * @var string + */ + private $address = null; + + /** + * The user address 2nd part (street number, name, more, etc) + * + * Validate: sometimes,string + * + * Min length NA + * Max length 255 + * Field Type varchar + * + * @var string + */ + private $address2 = null; + + /** + * The user address city + * + * Validate: sometimes,string + * + * Min length NA + * Max length 255 + * Field Type varchar + * + * @var string + */ + private $city = null; + + /** + * The user address postcode + * + * Validate: string + * + * Required + * Min length NA + * Max length 255 + * Field Type varchar + * + * @var string + */ + private $postcode = null; + + /** + * The arcadia operation code + * + * Validate: int + * + * Required + * + * @var integer + */ + private $operation = null; + + /** + * The arcadia support code + * + * Validate: int + * + * Required + * + * @var integer + */ + private $support_code = null; + + /** + * The arcadia type support label + * + * Validate: string + * + * Required + * + * @var string + */ + private $label_type_support = null; + + /** + * The arcadia order date + * + * Validate: date + * + * Required + * + * @var string + */ + private $order_date = null; + + /** + * The arcadia order number + * + * Validate: numeric,digits:9 + * + * Required + * + * @var integer + */ + private $order_num = null; + + /** + * The arcadia state order + * + * Validate: in ArcadiaOrderType::toValues() + * + * Required + * + * @var integer + */ + private $state_order = null; + + /** + * The arcadia package unit weight + * + * Validate: integer + * + * Required + * + * @var integer + */ + private $package_unit_weight = null; + + /** + * The crm customer fields + * + * @var array + */ + protected $modelFields = [ + 'email', 'firstname', + 'lastname', 'phone', 'address', + 'address2', 'city', 'postcode', + 'operation', 'support_code', 'label_type_support', + 'order_date', 'order_num', 'state_order', + 'package_unit_weight', + ]; + + /** + * Validation rules + * + * @var array + */ + protected static $validation = [ + 'email' => 'required|email', + 'firstname' => 'required|string|min:2|max:255', + 'lastname' => 'required|string|min:2|max:255', + 'phone' => 'sometimes|string|min:10|max:255', + 'address' => 'sometimes|string|max:255', + 'address2' => 'sometimes|string|max:255', + 'city' => 'sometimes|string|max:255', + 'postcode' => 'sometimes|string|max:255', + 'operation' => 'required|int', + 'support_code' => 'required|int', + 'label_type_support' => 'required|string|min:2|max:255', + 'order_date' => 'required|date_format:Y/m/d H:i:s', + 'order_num' => 'required|int', + 'state_order' => ['required'], + 'package_unit_weight' => 'required|int' + ]; + + /** + * ArcadiaMailDefault + * + * @param array $properties + * @throws \LDC\LDCCRM\Exceptions\ValidationException If a field could not be validated. + */ + public function __construct(array $properties = []) + { + parent::__construct(); + $this->fill($properties); + return $this; + } + + /** + * Generic accessor + * + * @param string $field + * @return mixed + */ + public function __get(string $field) + { + $props = \array_diff( + $this->modelFields, + $this->invisibleFields + ); + if (in_array($field, $props)) { + if ($field === 'state_order' and !\is_object($this->{$field})) { + return ArcadiaOrderType::make($this->{$field}); + } + } + return parent::__get($field); + } + + /** + * Set prop + * + * @param string $field + * @param mixed $value + * @return void + * @throws \TypeError If the field has an incorrect value. + * @throws \LDC\LDCCRM\Exceptions\AccessError If trying to set a value on a unknown property. + */ + public function __set(string $field, $value): void + { + if ($field === 'state_order') { + $value = (\is_object($value) and + get_class($value) === ArcadiaOrderType::class) ? $value->value : $value; + } + parent::__set($field, $value); + } + + /** + * Fill data into this model + * using validation rules + * + * @param array $properties + * @return void + * @throws \LDC\LDCCRM\Exceptions\ValidationException If a field could not be validated. + */ + public function fill(array $properties) + { + if (isset($properties['state_order'])) { + try { + $properties['state_order'] = (\is_object($properties['state_order']) and + get_class($properties['state_order']) === ArcadiaOrderType::class) ? + $properties['state_order']->value : (ctype_digit($properties['state_order']) ? + (int)$properties['state_order'] : $properties['state_order']); + } catch (TypeError | \BadMethodCallException $e) { + // * Cast anyway + $properties['state_order'] = (int)$properties['state_order']; + } + } + parent::fill($properties); + } + + /** + * Validate all model properties + * + * @param array $ignore + * @return array the validated values + * @throws ValidationException If a field could not be validated. + */ + protected function validateAllValues(array $ignore = []): array + { + $out = []; + if (!\in_array('state_order', $ignore)) { + try { + $this->validateValue( + 'state_order', + ArcadiaOrderType::make(Utils::getRawProperty($this, 'state_order')) + ); + } catch (TypeError | \BadMethodCallException $e) { + // Use this to throw validation error. + $this->validateValue('state_order', Utils::getRawProperty($this, 'state_order')); + } + $out['state_order'] = Utils::getRawProperty($this, 'state_order'); + } + return array_merge($out, parent::validateAllValues(array_merge(['state_order'], $ignore))); + } + + // * PUBLIC METHODS + + /** + * Send The actual mail + * + * @return boolean true if succeeded + * @throws ValidationException If a field could not be validated. + * @throws \LDC\LDCCRM\Exceptions\CrmException If an error occurs on server side or on getting response. + * @throws \LDC\LDCCRM\Exceptions\ApiErrorException If any error or \LDC\LDCCRM\Enums\ApiError occurs. + * Possibles are : - validationFailed, If provided data is wrong(CRM side). + */ + public function send(): bool + { + $this->validateAllValues(); + static::setUpApiInterface(); + $request = Utils::getResquest('apiV2.arcadia.outgoingMailDefault', [], $this->jsonSerialize()); + $response = static::$apiInterface->call($request); + if ($status = $response->status->equals(ApiStatus::OK())) { + $this->updatedValues = []; + } + $this->isNew = !$status; + return $status; + } + + /** + * Serialize this object to an array + * + * @return array + */ + public function jsonSerialize() + { + return [ + 'deliver' => [ + 'email' => $this->email, + 'firstname' => $this->firstname, + 'lastname' => $this->lastname, + 'phone' => $this->phone, + 'address' => $this->address, + 'address2' => $this->address2, + 'city' => $this->city, + 'postcode' => $this->postcode, + ], + 'operation' => $this->operation, + 'support_code' => $this->support_code, + 'label_type_support' => $this->label_type_support, + 'order_date' => $this->order_date, + 'order_num' => $this->order_num, + 'state_order' => $this->state_order, + 'package_unit_weight' => $this->package_unit_weight + ]; + } +} diff --git a/app/Lib/vendor/crm-client-3.0.6/src/Models/ArcadiaMailGame.php b/app/Lib/vendor/crm-client-3.0.6/src/Models/ArcadiaMailGame.php new file mode 100644 index 0000000..7c84eca --- /dev/null +++ b/app/Lib/vendor/crm-client-3.0.6/src/Models/ArcadiaMailGame.php @@ -0,0 +1,350 @@ + + */ +class ArcadiaMailGame extends CrmClientModel +{ + /** + * An RFC Valid Email + * + * Validate: rfc,dns,spoof,filter + * + * Required + * Min length N/A + * Max length 255 + * Field Type varchar + * + * @var string + */ + private $email = null; + + /** + * First name + * + * Required + * Min length 2 + * Max length 255 + * Field Type varchar + * + * @var string + */ + private $firstname = null; + + /** + * Last name + * + * Required + * Min length 2 + * Max length 255 + * Field Type varchar + * + * @var string + */ + private $lastname = null; + + /** + * The user phone + * + * Validate: sometimes,string + * + * Required + * Min length NA + * Max length 255 + * Field Type varchar + * + * @var string + */ + private $phone = null; + + /** + * The user address (street number, name, etc) + * + * Validate: sometimes,string + * + * Min length NA + * Max length 255 + * Field Type varchar + * + * @var string + */ + private $address = null; + + /** + * The user address 2nd part (street number, name, more, etc) + * + * Validate: sometimes,string + * + * Min length NA + * Max length 255 + * Field Type varchar + * + * @var string + */ + private $address2 = null; + + /** + * The user address city + * + * Validate: sometimes,string + * + * Min length NA + * Max length 255 + * Field Type varchar + * + * @var string + */ + private $city = null; + + /** + * The user address postcode + * + * Validate: string + * + * Required + * Min length NA + * Max length 255 + * Field Type varchar + * + * @var string + */ + private $postcode = null; + + /** + * The arcadia operation code + * + * Validate: int + * + * Required + * + * @var integer + */ + private $operation = null; + + /** + * The arcadia support code + * + * Validate: int + * + * Required + * + * @var integer + */ + private $support_code = null; + + /** + * The arcadia type support label + * + * Validate: string + * + * Required + * + * @var string + */ + private $label_type_support = null; + + /** + * The arcadia order date + * + * Validate: date + * + * Required + * + * @var string + */ + private $order_date = null; + + /** + * The arcadia code unique + * + * Validate: string + * + * Required + * + * @var string + */ + private $code_unique = null; + + /** + * The arcadia code on pack + * + * Validate: sometimes + * + * Required + * + * @var string + */ + private $code_on_pack = null; + + /** + * The crm customer fields + * + * @var array + */ + protected $modelFields = [ + 'email', 'firstname', + 'lastname', 'phone', 'address', + 'address2', 'city', 'postcode', + 'operation', 'support_code', 'label_type_support', + 'order_date', 'code_unique', 'code_on_pack' + ]; + + /** + * Validation rules + * + * @var array + */ + protected static $validation = [ + 'email' => 'required|email', + 'firstname' => 'required|string|min:2|max:255', + 'lastname' => 'required|string|min:2|max:255', + 'phone' => 'sometimes|string|min:10|max:255', + 'address' => 'sometimes|string|max:255', + 'address2' => 'sometimes|string|max:255', + 'city' => 'sometimes|string|max:255', + 'postcode' => 'sometimes|string|max:255', + 'operation' => 'required|int', + 'support_code' => 'required|int', + 'label_type_support' => 'required|string|min:2|max:255', + 'order_date' => 'required|date_format:Y/m/d H:i:s', + 'code_unique' => 'required|string', + 'code_on_pack' => 'sometimes|string' + ]; + + /** + * ArcadiaMailGame + * + * @param array $properties + * @throws \LDC\LDCCRM\Exceptions\ValidationException If a field could not be validated. + */ + public function __construct(array $properties = []) + { + parent::__construct(); + $this->fill($properties); + return $this; + } + + /** + * Set prop + * + * @param string $field + * @param mixed $value + * @return void + * @throws \TypeError If the field has an incorrect value. + * @throws \LDC\LDCCRM\Exceptions\AccessError If trying to set a value on a unknown property. + */ + public function __set(string $field, $value): void + { + if ($field === 'state_order') { + $value = (\is_object($value) and + get_class($value) === ArcadiaOrderType::class) ? $value->value : $value; + } + parent::__set($field, $value); + } + + /** + * Fill data into this model + * using validation rules + * + * @param array $properties + * @return void + * @throws \LDC\LDCCRM\Exceptions\ValidationException If a field could not be validated. + */ + public function fill(array $properties) + { + if (isset($properties['state_order'])) { + try { + $properties['state_order'] = (\is_object($properties['state_order']) and + get_class($properties['state_order']) === ArcadiaOrderType::class) ? + $properties['state_order']->value : (ctype_digit($properties['state_order']) ? + (int)$properties['state_order'] : $properties['state_order']); + } catch (TypeError | \BadMethodCallException $e) { + // * Cast anyway + $properties['state_order'] = (int)$properties['state_order']; + } + } + parent::fill($properties); + } + + // * PUBLIC METHODS + + /** + * Send The actual mail + * + * @return boolean true if succeeded + * @throws \LDC\LDCCRM\Exceptions\CrmException If an error occurs on server side or on getting response. + * @throws \LDC\LDCCRM\Exceptions\ApiErrorException If any error or \LDC\LDCCRM\Enums\ApiError occurs. + * Possibles are : - validationFailed, If provided data is wrong(CRM side). + */ + public function send(): bool + { + $this->validateAllValues(); + static::setUpApiInterface(); + $request = Utils::getResquest('apiV2.arcadia.outgoingMailGame', [], $this->jsonSerialize()); + $response = static::$apiInterface->call($request); + if ($status = $response->status->equals(ApiStatus::OK())) { + $this->updatedValues = []; + } + $this->isNew = !$status; + return $status; + } + + /** + * Serialize this object to an array + * + * @return array + */ + public function jsonSerialize() + { + return [ + 'deliver' => [ + 'email' => $this->email, + 'firstname' => $this->firstname, + 'lastname' => $this->lastname, + 'phone' => $this->phone, + 'address' => $this->address, + 'address2' => $this->address2, + 'city' => $this->city, + 'postcode' => $this->postcode, + ], + 'operation' => $this->operation, + 'support_code' => $this->support_code, + 'label_type_support' => $this->label_type_support, + 'order_date' => $this->order_date, + 'code_unique' => $this->code_unique, + 'code_on_pack' => $this->code_on_pack + ]; + } +} diff --git a/app/Lib/vendor/crm-client-3.0.6/src/Models/CrmClientModel.php b/app/Lib/vendor/crm-client-3.0.6/src/Models/CrmClientModel.php new file mode 100644 index 0000000..866cb82 --- /dev/null +++ b/app/Lib/vendor/crm-client-3.0.6/src/Models/CrmClientModel.php @@ -0,0 +1,350 @@ + + */ +abstract class CrmClientModel implements JsonSerializable +{ + /** + * Is true if this model was not filled from crm + * + * @var boolean + */ + protected $isNew = true; + + /** + * The Api object that will handle requests and responses + * + * @var \LDC\LDCCRM\Transport\ApiInterface + */ + protected static $apiInterface; + + /** + * Validation rules + * + * @var array + */ + protected static $validation = []; + + /** + * Model fields + * + * @var array + */ + protected $modelFields = []; + + /** + * The crm fields + * that should not be visible + * + * @var array + */ + protected $invisibleFields = []; + + /** + * Model updated values + * + * @var array + */ + protected $updatedValues = []; + + /** + * CrmClientModel + */ + public function __construct() + { + self::setUpApiInterface(); + return $this; + } + + /** + * Generic accessor + * + * @param string $field + * @return mixed|null Returns null if the property was not found any way. + */ + public function __get(string $field) + { + $props = \array_diff( + $this->modelFields, + $this->invisibleFields + ); + if (in_array($field, $props)) { + return Utils::getRawProperty($this, $field); + } + return null; + } + + /** + * Set prop on the model. + * + * @param string $field + * @param mixed $value + * @return void + * @throws \LDC\LDCCRM\Exceptions\ValidationException If a field could not be validated. + * @throws \LDC\LDCCRM\Exceptions\AccessError If trying to set a value on a unknown property. + */ + public function __set(string $field, $value): void + { + try { + if (in_array($field, $this->modelFields)) { + $type = $this->getPropType($field); + if (!is_null($value) and !$this->checkFieldType($type, $value)) { + throw new ValidationException("Wrong type for $field"); + } + $this->validateValue($field, $value); + $this->updatedValues[$field] = $value; + Utils::setRawProperty($this, $field, $value); + return; + } + // phpcs:ignore Generic.CodeAnalysis.EmptyStatement.DetectedCatch + } catch (\ReflectionException $e) { + // Do nothing. + } + throw new AccessError(\get_class($this), $field); + } + + /** + * Create the Api interface + * + * @return void + */ + protected static function setUpApiInterface() + { + self::$apiInterface = self::$apiInterface ?: new ApiInterface(); + } + + /** + * Fill values into model using validation rules. + * + * @param array $properties + * @return void + * @throws \LDC\LDCCRM\Exceptions\ValidationException If a field could not be validated. + */ + public function fill(array $properties) + { + if (count($properties)) { + foreach ($properties as $field => $value) { + try { + $type = $this->getPropType($field); + // * Force boolean + if ($type === 'bool') { + $value = (\is_int($value) and ($value === 1 or $value === 0)) ? (bool)$value : $value; + } + if (!is_null($value) and !$this->checkFieldType($type, $value)) { + throw new ValidationException("Wrong type for $field"); + } + $this->validateValue($field, $value); + $this->updatedValues[$field] = $value; + Utils::setRawProperty($this, $field, $value); + } catch (AccessError | \ReflectionException $e) { + Utils::log(\sprintf( + '%s::fill : unknown property access for %s, it does not exist on object.', + \get_class($this), + $field + ), LogLevel::DEBUG()); + continue; + } + } //end foreach + }//end if + } + + /** + * Set all properties to without any validation + * + * @param array $properties + * @return void + */ + protected function fillRaw(array $properties) + { + if (count($properties)) { + foreach ($properties as $field => $value) { + try { + Utils::setRawProperty($this, $field, $value); + } catch (AccessError $e) { + Utils::log(\sprintf( + '%s::fillRaw : unknown property access for %s, it does not exist on object.', + \get_class($this), + $field + ), LogLevel::DEBUG()); + continue; + } + } + } + } + + /** + * Validate all model properties + * + * * All properties are nullable + * + * @param array $ignore + * @return array the validated values + * @throws \LDC\LDCCRM\Exceptions\ValidationException If a field could not be validated. + */ + protected function validateAllValues(array $ignore = []): array + { + $out = []; + foreach (static::$validation as $field => $validationRules) { + if (\in_array($field, $ignore) or \is_null(Utils::getRawProperty($this, $field))) { + continue; + } + $this->validateValue($field, Utils::getRawProperty($this, $field)); + $out[$field] = Utils::getRawProperty($this, $field); + } + return $out; + } + + /** + * Validate a value against its rules + * + * @param string $field + * @param mixed $value + * @return boolean + * @throws \ErrorException If a field has no validation rule. + * @throws \LDC\LDCCRM\Exceptions\ValidationException If a field could not be validated. + * @phpcs:ignore Squiz.Commenting.FunctionCommentThrowTag.WrongNumber + */ + protected static function validateValue(string $field, $value): bool + { + if (!isset(static::$validation[$field])) { + throw new \ErrorException("$field has no validation rule"); + } + $validator = Utils::makeValidator( + [$field => $value], + [$field => static::$validation[$field]] + ); + /** @throws \LDC\LDCCRM\Exceptions\ValidationException */ + $validator(); + return true; + } + + /** + * Check a value against its field type + * + * @param string $type + * @param mixed $value + * @return boolean Return true if $type matches $value type. + * @throws \ErrorException If type is not handled, + * handled types are boolean, string, integer, \LDC\LDCCRM\Enums\Country, \LDC\LDCCRM\Enums\ArcadiaOrderType . + * @phpcs:ignore Generic.Files.LineLength.TooLong + */ + protected function checkFieldType(string $type, $value): bool + { + /** + * Checks if the value is valid for a specific enum class + * @param string $className + * @param mixed $value + * @return boolean + */ + $checkValueIsEnum = function (string $className, $value) { + try { + $value = \is_int($value) ? $className::make($value) : $value; + } finally { + return \is_object($value) and (get_class($value) === $className or + \in_array($className, \class_parents($value))); + } + }; + + switch ($type) { + case '\\' . Country::class: + case '\\' . QuestionType::class: + case '\\' . ArcadiaOrderType::class: + return $checkValueIsEnum(\ltrim($type, '\\'), $value); + case 'boolean': + return \is_bool(\is_int($value) ? (bool)$value : $value); + case 'array': + return \is_array($value); + case 'string': + return \is_string($value); + case 'integer': + return \is_int($value); + } + throw new \ErrorException(\sprintf("Unhandled $type for %s", \json_encode($value))); + } + + /** + * Get the type of any of this class property + * from doc comment + * + * @param string $property + * @return string|null the type or null if not defined + * @throws \ErrorException If the property has no comment to read. + * @throws \ErrorException If a type for a property could ne be recognized. + * @throws \ReflectionException If the class or property does not exist. + * @phpcs:ignore Squiz.Commenting.FunctionCommentThrowTag.WrongNumber + */ + protected function getPropType(string $property) + { + $matches = []; + $propReflection = new \ReflectionProperty(static::class, $property); + $docComment = $propReflection->getDocComment(); + if (!$docComment) { + throw new \ErrorException(\sprintf("%s $property has not comment to parse.", \get_class($this))); + } + preg_match_all('/@var ([\w_\x5c]+)/', $docComment, $matches); + if ( + isset($matches[1][0]) and \in_array($matches[1][0], [ + 'string', 'integer', 'boolean', 'array', '\\' . Country::class, '\\' . ArcadiaOrderType::class, + '\\' . QuestionType::class + ], true) + ) { + return $matches[1][0]; + } + throw new \ErrorException("Unknown type for property $property"); + } + + /** + * Assert primaryKey is valid. + * + * @param mixed $primaryKey + * @return void + * @throws LDC\LDCCRM\Exceptions\ValidationException If a primary key is not a valid integer. + */ + protected static function assertValidPrimaryKey($primaryKey): void + { + $validator = Utils::makeValidator( + ['id' => $primaryKey], + ['id' => 'required|int'] + ); + if ($validator()) { + throw new ValidationException(implode(' ', $validator->errors()->get('id'))); + } + } + + /** + * Assert hashcode is valid. + * + * @param mixed $hashcode + * @return void + * @throws LDC\LDCCRM\Exceptions\ValidationException If a hashcode is not a valid UUID. + */ + protected static function assertValidHascode($hashcode): void + { + $validator = Utils::makeValidator( + ['hashcode' => $hashcode], + ['hashcode' => 'required|uuid'] + ); + if ($validator()) { + throw new ValidationException(implode(' ', $validator->errors()->get('hashcode'))); + } + } +} diff --git a/app/Lib/vendor/crm-client-3.0.6/src/Models/Customer.php b/app/Lib/vendor/crm-client-3.0.6/src/Models/Customer.php new file mode 100644 index 0000000..3d715f4 --- /dev/null +++ b/app/Lib/vendor/crm-client-3.0.6/src/Models/Customer.php @@ -0,0 +1,624 @@ + + */ +class Customer extends CrmClientModel +{ + /** + * The user hashcode, this is link with the customer and the brand it is related to + * It is used to identify the customer itself. + * + * Validate: UUID, in customer_infos + * + * Required + * Min length 36 + * Max length 36 + * Field Type varchar + * + * @var string + */ + private $hashcode; + + /** + * An RFC Valid Email + * + * Validate: rfc,dns,spoof,filter + * + * Required + * Min length N/A + * Max length 255 + * Field Type varchar + * + * @var string + */ + private $email = null; + + /** + * The user password + * This is set only when creating a user + * Otherwise it has to be set to null + * + * Validate: case_diff,numbers,letters,symbols,min:8 + * + * Min length 8 + * Max length 255 + * Field Type varchar + * + * @var string + */ + private $password = null; + + /** + * First name + * + * Required + * Min length 2 + * Max length 255 + * Field Type varchar + * + * @var string + */ + private $firstname = null; + + /** + * Last name + * + * Required + * Min length 2 + * Max length 255 + * Field Type varchar + * + * @var string + */ + private $lastname = null; + + /** + * Birth date + * + * Validate: date_format:Y-m-d + * + * Required + * Field Type Date + * @var string + */ + private $birth_date = null; + + /** + * The user phone + * + * Validate: sometimes,string + * + * Required + * Min length NA + * Max length 255 + * Field Type varchar + * + * @var string + */ + private $phone = null; + + /** + * The user address (street number, name, etc) + * + * Validate: sometimes,string + * + * Min length NA + * Max length 255 + * Field Type varchar + * + * @var string + */ + private $address = null; + + /** + * The user address 2nd part (street number, name, more, etc) + * + * Validate: sometimes,string + * + * Min length NA + * Max length 255 + * Field Type varchar + * + * @var string + */ + private $address2 = null; + + /** + * The user address city + * + * Validate: sometimes,string + * + * Min length NA + * Max length 255 + * Field Type varchar + * + * @var string + */ + private $city = null; + + /** + * The user address postcode + * + * Validate: string + * + * Required + * Min length NA + * Max length 255 + * Field Type varchar + * + * @var string + */ + private $postcode = null; + + /** + * The user address postcode + * + * Validate: sometimes, in Country::toValues() + * + * Required + * Field Type tinyInt + * + * @var \LDC\LDCCRM\Enums\Country + */ + private $country = null; + + /** + * The user optin choice + * + * Validate: boolean + * + * Required + * Field Type TinyInt + * + * @var boolean + */ + private $opt_in = false; + + /** + * Is the account activated ? + * + * This field is read only + * + * @var boolean + */ + private $status = false; + + /** + * The last time the account was connected + * + * This field is read only + * + * @var string + */ + private $last_connection = null; + + /** + * The crm customer fields + * + * @var array + */ + protected $modelFields = [ + 'hashcode', 'email', 'firstname', 'password', + 'lastname', 'birth_date', 'phone', 'address', + 'address2', 'city', 'postcode', 'country', + 'opt_in', 'status', 'last_connection' + ]; + + /** + * The crm customer fields + * the should not be visible + * + * @var array + */ + protected $invisibleFields = [ + 'password' + ]; + + /** + * Validation rules + * + * @var array + */ + protected static $validation = [ + 'hashcode' => 'required|uuid', + 'email' => 'required|email', + 'firstname' => 'required|string|min:1|max:255', + 'lastname' => 'required|string|min:1|max:255', + 'password' => 'required|min:8|max:255|mixedCase|containDigit|containSymbol', + 'birth_date' => 'required|date_format:Y-m-d', + 'phone' => 'sometimes|nullable|string|max:255', + 'address' => 'sometimes|string|max:255', + 'address2' => 'sometimes|string|max:255', + 'city' => 'sometimes|string|min:2|max:255', + 'postcode' => 'sometimes|string|max:255', + 'country' => ['sometimes'], + 'opt_in' => 'required|bool', + 'status' => 'required|bool', + 'last_connection' => 'sometimes|date' + ]; + + /** + * Customer + * + * @param array $properties + * @throws \LDC\LDCCRM\Exceptions\ValidationException If a field could not be validated. + */ + public function __construct(array $properties = []) + { + parent::__construct(); + $this->fill($properties); + return $this; + } + + /** + * Generic accessor + * + * @param string $field + * @return mixed|null Returns null if the property was not found any way. + */ + public function __get(string $field) + { + $props = \array_diff( + $this->modelFields, + $this->invisibleFields + ); + if (in_array($field, $props)) { + if ($field === 'country' and !\is_object($this->{$field})) { + return Country::make($this->{$field}); + } + } + return parent::__get($field); + } + + /** + * Set prop on the model. + * + * @param string $field + * @param mixed $value + * @return void + * @throws \LDC\LDCCRM\Exceptions\ValidationException If a field could not be validated. + * @throws \LDC\LDCCRM\Exceptions\AccessError If trying to set a value on a unknown property. + */ + public function __set(string $field, $value): void + { + if ($field === 'country') { + $value = (\is_object($value) and + get_class($value) === Country::class) ? $value->value : $value; + } + parent::__set($field, $value); + } + + /** + * Fill values into model using validation rules. + * + * @param array $properties + * @return void + * @throws \LDC\LDCCRM\Exceptions\ValidationException If a field could not be validated. + */ + public function fill(array $properties) + { + if (isset($properties['country'])) { + try { + $properties['country'] = (\is_object($properties['country']) and + get_class($properties['country']) === Country::class) ? + $properties['country']->value : (ctype_digit($properties['country']) ? + (int)$properties['country'] : $properties['country']); + } catch (TypeError | \BadMethodCallException $e) { + // * Cast anyway + $properties['country'] = (int)$properties['country']; + } + } + parent::fill($properties); + } + + /** + * Validate all model properties + * + * @param array $ignore + * @return array the validated values + * @throws \LDC\LDCCRM\Exceptions\ValidationException If a field could not be validated. + */ + protected function validateAllValues(array $ignore = []): array + { + $out = []; + if (!\in_array('country', $ignore)) { + try { + $this->validateValue('country', Country::make(Utils::getRawProperty($this, 'country'))); + } catch (\TypeError | \BadMethodCallException $e) { + // Use this to throw validation error. + $this->validateValue('country', Utils::getRawProperty($this, 'country')); + } + $out['country'] = Utils::getRawProperty($this, 'country'); + } + return array_merge($out, parent::validateAllValues(array_merge(['country'], $ignore))); + } + + // * PUBLIC METHODS + + /** + * Find a customer using its hashcode in the crm + * + * @param string $hashcode + * @return self|null Return null if the customer was not found + * @throws \LDC\LDCCRM\Exceptions\CrmException If an error occurs on server side or on getting response. + * @throws \LDC\LDCCRM\Exceptions\ApiErrorException If any error or \LDC\LDCCRM\Enums\ApiError occurs. + * @phpcs:ignore Squiz.Commenting.FunctionCommentThrowTag.WrongNumber + */ + public static function find(string $hashcode): ?self + { + static::setUpApiInterface(); + $request = Utils::getResquest('apiV2.customers.show', [ + 'serviceCustomer' => $hashcode + ]); + $customer = null; + try { + $response = static::$apiInterface->call($request); + $customer = new self(); + // ! Use fillRaw here because we cant validate comming + // ! from CRM since it has crappy data comming from the old crm (jellix). + $customer->fillRaw($response->data); + Utils::setRawProperty($customer, 'isNew', false); + } catch (ApiErrorException $e) { + if (!$e->getApiError()->equals(ApiError::modelNotFound())) { + throw $e; + } + } + return $customer; + } + + /** + * Find a customer using its email in the crm + * This is an alias of Customer::find() + * + * @param string $email + * @return self|null + * @throws \LDC\LDCCRM\Exceptions\CrmException If an error occurs on server side or on getting response. + * @throws \LDC\LDCCRM\Exceptions\ApiErrorException If any error or \LDC\LDCCRM\Enums\ApiError occurs. + * @phpcs:ignore Squiz.Commenting.FunctionCommentThrowTag.WrongNumber + */ + public static function findWithEmail(string $email): ?self + { + return static::find($email); + } + + /** + * Save the customer on CRM. + * + * @return boolean True if save was successfull. + * @throws \LDC\LDCCRM\Exceptions\ValidationException If a field could not be validated. + * @throws \LDC\LDCCRM\Exceptions\CrmException If an error occurs on server side or on getting response. + * @throws \LDC\LDCCRM\Exceptions\ApiErrorException If any error or \LDC\LDCCRM\Enums\ApiError occurs. + * Possibles are : - validationFailed, If provided data is wrong(CRM side). + * - modelNotFound, If this customer hashcode could not be found (new customers only). + * @phpcs:ignore Squiz.Commenting.FunctionCommentThrowTag.WrongNumber + */ + public function save(): bool + { + $saved = false; + if ($this->isNew) { + $saved = $this->store(); + $this->isNew = !$saved; + $this->updatedValues = []; + if ($saved) { + Utils::setRawProperty($this, 'password', null); + } + return $saved; + } else { + if (empty($this->updatedValues)) { + return true; + } + if ($saved = $this->update()) { + $this->updatedValues = []; + Utils::setRawProperty($this, 'password', null); + } + } + return $saved; + } + + /** + * Calls api store customer method + * + * @return boolean True if save was successfull. + * @throws \LDC\LDCCRM\Exceptions\ValidationException If a field could not be validated. + * @throws \LDC\LDCCRM\Exceptions\CrmException If an error occurs on server side or on getting response. + * @throws \LDC\LDCCRM\Exceptions\ApiErrorException If any error or \LDC\LDCCRM\Enums\ApiError occurs. + * Possibles are : - validationFailed, If provided data is wrong(CRM side). + * @phpcs:ignore Squiz.Commenting.FunctionCommentThrowTag.WrongNumber + */ + private function store(): bool + { + $data = $this->validateAllValues(['hashcode', 'last_connection', 'status']); + $data['password'] = $this->password; + + static::setUpApiInterface(); + $request = Utils::getResquest('apiV2.customers.store', [], $data); + + $response = static::$apiInterface->call($request); + if ($status = $response->status->equals(ApiStatus::OK())) { + $this->updatedValues = []; + $this->fill($response->data); + } + return $status; + } + + /** + * Calls api update customer method + * + * @return boolean True if save was successfull. + * @throws \LDC\LDCCRM\Exceptions\ValidationException If a field could not be validated. + * @throws \LDC\LDCCRM\Exceptions\CrmException If an error occurs on server side or on getting response. + * @throws \LDC\LDCCRM\Exceptions\ApiErrorException If any error or \LDC\LDCCRM\Enums\ApiError occurs. + * Possibles are : - validationFailed, If provided data is wrong(CRM side). + * - modelNotFound, If this customer hashcode could not be found. + * @phpcs:ignore Squiz.Commenting.FunctionCommentThrowTag.WrongNumber + */ + private function update(): bool + { + $this->validateValue('hashcode', $this->hashcode); + static::setUpApiInterface(); + $request = Utils::getResquest('apiV2.customers.update', [ + 'serviceCustomer' => $this->hashcode + ], $this->updatedValues); + + $response = static::$apiInterface->call($request); + if ($status = $response->status->equals(ApiStatus::OK())) { + $this->updatedValues = []; + $this->fill($response->data); + } + return $status; + } + + /** + * Removes the customer from CRM. + * + * @return boolean true if succeeded + * @throws \LDC\LDCCRM\Exceptions\ValidationException If a field could not be validated. + * @throws \LDC\LDCCRM\Exceptions\CrmException If an error occurs on server side or on getting response. + * @throws \LDC\LDCCRM\Exceptions\ApiErrorException If any error or \LDC\LDCCRM\Enums\ApiError occurs. + * Possibles are : - modelNotFound, If this customer hashcode could not be found. + * @phpcs:ignore Squiz.Commenting.FunctionCommentThrowTag.WrongNumber + */ + public function delete(): bool + { + $this->validateValue('hashcode', $this->hashcode); + static::setUpApiInterface(); + $request = Utils::getResquest('apiV2.customers.destroy', [ + 'serviceCustomer' => $this->hashcode + ]); + + $response = static::$apiInterface->call($request); + return $response->status->equals(ApiStatus::OK()); + } + + /** + * Active the customer on CRM. + * + * @return boolean true if succeeded + * @throws \LDC\LDCCRM\Exceptions\ValidationException If a customer's hashcode could not be validated. + * @throws \LDC\LDCCRM\Exceptions\CrmException If an error occurs on server side or on getting response. + * @throws \LDC\LDCCRM\Exceptions\ApiErrorException If any error or \LDC\LDCCRM\Enums\ApiError occurs. + * Possibles are : - modelNotFound, If this customer hashcode could not be found. + * - customerAlreadyActive, It the customer is already activated. + * @phpcs:ignore Squiz.Commenting.FunctionCommentThrowTag.WrongNumber + */ + public function activate(): bool + { + $this->validateValue('hashcode', $this->hashcode); + static::setUpApiInterface(); + $request = Utils::getResquest('apiV2.customers.activate', [ + 'serviceCustomer' => $this->hashcode + ]); + + $response = static::$apiInterface->call($request); + $this->__set('status', true); + return $response->status->equals(ApiStatus::OK()); + } + + /** + * Toggle the account optin value in the crm + * + * @return boolean true if succeeded + * @throws \LDC\LDCCRM\Exceptions\ValidationException If a field could not be validated. + * @throws \LDC\LDCCRM\Exceptions\CrmException If an error occurs on server side or on getting response. + * @throws \LDC\LDCCRM\Exceptions\ApiErrorException If any error or \LDC\LDCCRM\Enums\ApiError occurs. + * Possibles are : - modelNotFound, If this customer hashcode could not be found. + * @phpcs:ignore Squiz.Commenting.FunctionCommentThrowTag.WrongNumber + */ + public function toggleOptin(): bool + { + $this->__set('opt_in', !$this->opt_in); + return $this->update(); + } + + /** + * Test customer credentials + * + * @param string $email + * @param string $password + * @return boolean + * @throws \LDC\LDCCRM\Exceptions\ValidationException If a customer's email could not be validated. + * @throws \LDC\LDCCRM\Exceptions\CrmException If an error occurs on server side or on getting response. + * @throws \LDC\LDCCRM\Exceptions\ApiErrorException If any error or \LDC\LDCCRM\Enums\ApiError occurs. + * Possibles are : - authFailed, If credentials are not valid. + * - customerNotActivated, If the account is not activated. + * @phpcs:ignore Squiz.Commenting.FunctionCommentThrowTag.WrongNumber + */ + public static function login(string $email, string $password): bool + { + self::validateValue('email', $email); + static::setUpApiInterface(); + $request = Utils::getResquest('apiV2.customers.authenticate', [], [ + 'email' => $email, + 'password' => $password + ]); + $response = static::$apiInterface->call($request); + return $response->status->equals(ApiStatus::OK()); + } + + /** + * Serialize this object to an array + * + * @return array + */ + public function jsonSerialize() + { + return [ + 'hashcode' => $this->hashcode, + 'email' => $this->email, + 'firstname' => $this->firstname, + 'lastname' => $this->lastname, + 'birth_date' => $this->birth_date, + 'phone' => $this->phone, + 'address' => $this->address, + 'address2' => $this->address2, + 'city' => $this->city, + 'postcode' => $this->postcode, + 'country' => $this->country, + 'opt_in' => $this->opt_in, + 'status' => $this->status, + 'last_connection' => $this->last_connection + ]; + } +} diff --git a/app/Lib/vendor/crm-client-3.0.6/src/Models/Question.php b/app/Lib/vendor/crm-client-3.0.6/src/Models/Question.php new file mode 100644 index 0000000..1f491ee --- /dev/null +++ b/app/Lib/vendor/crm-client-3.0.6/src/Models/Question.php @@ -0,0 +1,308 @@ + + */ +class Question extends CrmClientModel +{ + /** + * The question id + * + * Required + * Field Type bigInt + * + * @var integer + */ + private $id; + + /** + * The actual question as a string + * + * Required + * Max length 255 + * Field Type varchar + * + * @var string + */ + private $question = null; + + /** + * The question type + * + * Validate: in QuestionType::toValues() + * + * Required + * Field Type tinyInteger + * + * @var \LDC\LDCCRM\Enums\QuestionType + */ + private $type = null; + + /** + * The question answers + * + * \LDC\LDCCRM\Models\Answer + * + * @var array + */ + private $answers = []; + + /** + * The crm customer fields + * + * @var array + */ + protected $modelFields = [ + 'id', 'question', 'type', 'answers' + ]; + + /** + * Validation rules + * + * @var array + */ + protected static $validation = [ + 'id' => 'required|int', + 'question' => 'required|string|max:255', + 'type' => ['required'], + 'answers' => 'required|array' + ]; + + /** + * Question + * + * @param array $properties + * @throws \LDC\LDCCRM\Exceptions\ValidationException If a field could not be validated. + */ + public function __construct(array $properties = []) + { + parent::__construct(); + $this->fill($properties); + return $this; + } + + /** + * General accessor + * + * @param string $field + * @return mixed + */ + public function __get(string $field) + { + $props = \array_diff( + $this->modelFields, + $this->invisibleFields + ); + if (in_array($field, $props)) { + if ($field === 'type' and !\is_object($this->{$field})) { + return QuestionType::make($this->{$field}); + } + } + return parent::__get($field); + } + + /** + * Set prop on the model. + * + * @param string $field + * @param mixed $value + * @return void + * @throws \LDC\LDCCRM\Exceptions\ValidationException If a field could not be validated. + * @throws \LDC\LDCCRM\Exceptions\AccessError If trying to set a value on a unknown property. + */ + public function __set(string $field, $value): void + { + if ($field === 'type') { + $value = (\is_object($value) and + get_class($value) === QuestionType::class) ? $value->value : $value; + } + parent::__set($field, $value); + } + + /** + * Fill values into model using validation rules. + * + * @param array $properties + * @return void + * @throws \LDC\LDCCRM\Exceptions\ValidationException If a field could not be validated. + */ + public function fill(array $properties) + { + if (isset($properties['type'])) { + try { + $properties['type'] = (\is_object($properties['type']) and + get_class($properties['type']) === QuestionType::class) ? + $properties['type']->value : (ctype_digit($properties['type']) ? + (int)$properties['type'] : $properties['type']); + } catch (TypeError | \BadMethodCallException $e) { + // * Cast anyway + $properties['type'] = (int)$properties['type']; + } + } + parent::fill($properties); + } + + /** + * Validate all model properties + * + * @param array $ignore + * @return array the validated values + * @throws \LDC\LDCCRM\Exceptions\ValidationException If a field could not be validated. + */ + protected function validateAllValues(array $ignore = []): array + { + $out = []; + if (!\in_array('type', $ignore)) { + try { + $this->validateValue('type', QuestionType::make(Utils::getRawProperty($this, 'type'))); + } catch (TypeError | \BadMethodCallException $e) { + // Use this to throw validation error. + $this->validateValue('type', Utils::getRawProperty($this, 'type')); + } + $out['type'] = Utils::getRawProperty($this, 'type'); + } + return array_merge($out, parent::validateAllValues(array_merge(['type'], $ignore))); + } + + // * PUBLIC METHODS + + /** + * Get all questions only + * + * @return array of \LDC\LDCCRM\Models\Question + * @throws \LDC\LDCCRM\Exceptions\CrmException If an error occurs on server side or on getting response. + * @throws \LDC\LDCCRM\Exceptions\ApiErrorException If any error or \LDC\LDCCRM\Enums\ApiError occurs. + * @phpcs:ignore Squiz.Commenting.FunctionCommentThrowTag.WrongNumber + */ + public static function all(): array + { + static::setUpApiInterface(); + $request = Utils::getResquest('apiV2.questions.index'); + + $response = static::$apiInterface->call($request); + $out = []; + foreach ($response->data as $question) { + $answers = \array_map(function ($answer) { + return new Answer($answer); + }, $question['answers']); + $question['answers'] = $answers; + $out[] = new self($question); + } + return $out; + } + + /** + * Get all the questions with customer answers + * + * @param \LDC\LDCCRM\Models\Customer $customer + * @return array + * + * [ + * 0 => [ + * 'question' => \LDC\LDCCRM\Models\Question, + * 'customerAnswers' => \LDC\LDCCRM\Models\Answer[] + * ] + * ] + * + * with \LDC\LDCCRM\Models\Question[] + * and the customer \LDC\LDCCRM\Models\Answer[] + * @throws \LDC\LDCCRM\Exceptions\ValidationException If a customer's hashcode could not be validated. + * @throws \LDC\LDCCRM\Exceptions\CrmException If an error occurs on server side or on getting response. + * @throws \LDC\LDCCRM\Exceptions\ApiErrorException If any error or \LDC\LDCCRM\Enums\ApiError occurs. + * Possibles are : - modelNotFound, If the customer could not be found(CRM side). + * @phpcs:ignore Squiz.Commenting.FunctionCommentThrowTag.WrongNumber + */ + public static function allWithCustomerAnswers(Customer $customer): array + { + self::assertValidHascode($customer->hashcode); + static::setUpApiInterface(); + $request = Utils::getResquest('apiV2.questions.indexWithResponse', [ + 'serviceCustomer' => $customer->hashcode + ]); + + $response = static::$apiInterface->call($request); + $out = []; + foreach ($response->data as $question) { + $answers = \array_map(function ($answer) { + return new Answer($answer); + }, $question['answers']); + $customerAnswers = \array_map(function ($answer) { + return new Answer($answer); + }, $question['customerAnswers']); + unset($question['customerAnswers']); + $question['answers'] = $answers; + $out[] = [ + 'question' => new self($question), + 'customerAnswers' => $customerAnswers, + ]; + } + return $out; + } + + /** + * Get unanswered question for a specific customer + * + * @param \LDC\LDCCRM\Models\Customer $customer + * @return array of \LDC\LDCCRM\Models\Question + * @throws \LDC\LDCCRM\Exceptions\ValidationException If a customer's hashcode could not be validated. + * @throws \LDC\LDCCRM\Exceptions\CrmException If an error occurs on server side or on getting response. + * @throws \LDC\LDCCRM\Exceptions\ApiErrorException If any error or \LDC\LDCCRM\Enums\ApiError occurs. + * Possibles are : - modelNotFound, If the customer could not be found(CRM side). + * @phpcs:ignore Squiz.Commenting.FunctionCommentThrowTag.WrongNumber + */ + public static function unansweredBy(Customer $customer): array + { + self::assertValidHascode($customer->hashcode); + static::setUpApiInterface(); + $request = Utils::getResquest( + 'apiV2.questions.unAnsweredBy', + ['serviceCustomer' => $customer->hashcode] + ); + + $response = static::$apiInterface->call($request); + $out = []; + foreach ($response->data as $question) { + $answers = \array_map(function ($answer) { + return new Answer($answer); + }, $question['answers']); + $question['answers'] = $answers; + $out[] = new self($question); + } + return $out; + } + + /** + * Serialize this object to an array + * + * @return array + */ + public function jsonSerialize() + { + return [ + 'id' => $this->id, + 'question' => $this->question, + 'type' => $this->type, + 'answers' => $this->answers + ]; + } +} diff --git a/app/Lib/vendor/crm-client-3.0.6/src/Models/SingleOptin.php b/app/Lib/vendor/crm-client-3.0.6/src/Models/SingleOptin.php new file mode 100644 index 0000000..02c3fdc --- /dev/null +++ b/app/Lib/vendor/crm-client-3.0.6/src/Models/SingleOptin.php @@ -0,0 +1,74 @@ + + */ +abstract class SingleOptin extends CrmClientModel +{ + /** + * Validation rules + * + * @var array + */ + protected static $validation = [ + 'email' => 'required|email', + 'hashcode' => 'required|string|size:36', + 'opt_in' => 'required|bool', + ]; + + /** + * Set the single opt in status for an email + * + * @param string $email + * @param boolean $opt_in + * @return boolean true if succeeded + * @throws \LDC\LDCCRM\Exceptions\ValidationException If a field email could not be validated. + * @throws \LDC\LDCCRM\Exceptions\CrmException If an error occurs on server side or on getting response. + * @throws \LDC\LDCCRM\Exceptions\ApiErrorException If any error or \LDC\LDCCRM\Enums\ApiError occurs. + * Possibles are : - singleOptinCustomerExists, If a customer exists with this email. + */ + public static function setStatus(string $email, bool $opt_in): bool + { + self::validateValue('email', $email); + static::setUpApiInterface(); + $request = Utils::getResquest('apiV2.optin', [], [ + 'email' => $email, + 'opt_in' => $opt_in + ]); + + $response = static::$apiInterface->call($request); + return $response->status->equals(ApiStatus::OK()); + } + + /** + * Unset the single opt in for a hashcode (unsubscribe) + * + * @param string $hashcode + * @return boolean true if succeeded + * @throws \LDC\LDCCRM\Exceptions\ValidationException If a field hashcode could not be validated. + * @throws \LDC\LDCCRM\Exceptions\CrmException If an error occurs on server side or on getting response. + * @throws \LDC\LDCCRM\Exceptions\ApiErrorException If any error or \LDC\LDCCRM\Enums\ApiError occurs. + * Possibles are : - singleOptinCustomerExists, If a customer exists with this email. + */ + public static function unsetStatusWithHashcode(string $hashcode): bool + { + self::validateValue('hashcode', $hashcode); + static::setUpApiInterface(); + $request = Utils::getResquest('apiV2.optout-hashcode', [], [ + 'hashcode' => $hashcode + ]); + + $response = static::$apiInterface->call($request); + return $response->status->equals(ApiStatus::OK()); + } +} diff --git a/app/Lib/vendor/crm-client-3.0.6/src/Models/Stats.php b/app/Lib/vendor/crm-client-3.0.6/src/Models/Stats.php new file mode 100644 index 0000000..4bc27e1 --- /dev/null +++ b/app/Lib/vendor/crm-client-3.0.6/src/Models/Stats.php @@ -0,0 +1,87 @@ + + */ +abstract class Stats extends CrmClientModel +{ + /** + * Validation rules + * + * @var array + */ + protected static $validation = [ + 'question.id' => 'required|int|min:1', + 'start' => 'required|date_format:Y-m-d', + 'end' => 'required|date_format:Y-m-d' + ]; + + /** + * Get brand stats ordered by ascendent days + * + * @param string $start Une date valide au format Y-m-d . + * @param string $end Une date valide au format Y-m-d . + * @return array The stats array by day + * @throws \LDC\LDCCRM\Exceptions\ValidationException If a field start could not be validated. + * @throws \LDC\LDCCRM\Exceptions\ValidationException If a field end could not be validated. + * @throws \LDC\LDCCRM\Exceptions\CrmException If an error occurs on server side or on getting response. + * @throws \LDC\LDCCRM\Exceptions\ApiErrorException If any error or \LDC\LDCCRM\Enums\ApiError occurs. + * Possibles are : - validationFailed, If provided data is wrong(CRM side). + * @phpcs:ignore Squiz.Commenting.FunctionCommentThrowTag.WrongNumber + */ + public static function getBrandStats(string $start, string $end): array + { + self::validateValue('start', $start); + self::validateValue('end', $end); + static::setUpApiInterface(); + $request = Utils::getResquest('apiV2.stats.brandStats', [], [ + 'start' => $start, + 'end' => $end + ]); + $response = static::$apiInterface->call($request); + return $response->data['stats']; + } + + /** + * Get brand stats ordered by ascendent days + * + * @param \LDC\LDCCRM\Models\Question $question Une question CRM possèdant un id réel. + * @param string $start Une date valide au format Y-m-d . + * @param string $end Une date valide au format Y-m-d . + * @return array The stats array by day + * @throws \LDC\LDCCRM\Exceptions\ValidationException If a question's id could not be validated. + * @throws \LDC\LDCCRM\Exceptions\ValidationException If a field start could not be validated. + * @throws \LDC\LDCCRM\Exceptions\ValidationException If a field end could not be validated. + * @throws \LDC\LDCCRM\Exceptions\CrmException If an error occurs on server side or on getting response. + * @throws \LDC\LDCCRM\Exceptions\ApiErrorException If any error or \LDC\LDCCRM\Enums\ApiError occurs. + * Possibles are : - validationFailed, If provided data is wrong(CRM side). + * @phpcs:ignore Squiz.Commenting.FunctionCommentThrowTag.WrongNumber + */ + public static function getQuestionStats(Question $question, string $start, string $end): array + { + self::validateValue('question.id', $question->id); + self::validateValue('start', $start); + self::validateValue('end', $end); + static::setUpApiInterface(); + $request = Utils::getResquest('apiV2.stats.questionStats', [ + 'serviceQuestion' => $question->id, + ], [ + 'start' => $start, + 'end' => $end + ]); + $response = static::$apiInterface->call($request); + return $response->data; + } +} diff --git a/app/Lib/vendor/crm-client-3.0.6/src/Transport/ApiInterface.php b/app/Lib/vendor/crm-client-3.0.6/src/Transport/ApiInterface.php new file mode 100644 index 0000000..4041da9 --- /dev/null +++ b/app/Lib/vendor/crm-client-3.0.6/src/Transport/ApiInterface.php @@ -0,0 +1,239 @@ +processRequest($request); + + // * Handle response Status. + if ($response->status->equals(ApiStatus::KO())) { + if (\is_int($response->apiError)) { + throw new CrmException($response->message, $response->apiError); + } else { + throw new ApiErrorException($response->apiError, $response->httpCode, $response->message); + } + } + return $response; + } + + /** + * Process request + * + * @param Request $request + * @return \LDC\LDCCRM\Transport\Response + */ + private function processRequest(Request $request): Response + { + $this->setCredentials($request); + $this->setHeaders($request); + $this->setTimestamp($request); + $request->setEndpoint(self::$endpoint); + $request->addData([ + 'signature' => $this->calulateSignature($request) + ]); + + /** @var \Psr\Http\Message\ResponseInterface $response */ + $response = $request->call(); + $status = in_array($response->getStatusCode(), [200, 201]) ? + ApiStatus::OK() : ApiStatus::KO(); + + return new Response($status, $response); + } + + /** + * Add spécific headers to he request + * + * @param \LDC\LDCCRM\Transport\Request $request + * @return void + */ + private function setHeaders(Request &$request): void + { + $headers = [ + 'User-Agent' => sprintf('LDC CRM client version %s', Utils::getPackageInfo()['version']), + 'Accept' => 'application/json', + 'Content-Type' => 'application/json' + ]; + $request->addHeaders($headers); + } + + /** + * Inject bearer credentials into the request + * + * @param \LDC\LDCCRM\Transport\Request $request + * @return void + */ + protected function setCredentials(Request $request) + { + if (self::$authentification) { + $request->addHeaders([ + 'Authorization' => implode(',', [ + sprintf('Basic %s', self::$authentification) + ]) + ]); + } + $request->addData(['bearer_token' => self::$bearerToken]); + } + + /** + * Add a timestamp (UTC) to the request + * + * @param Request $request + * @return void + */ + protected function setTimestamp(Request $request): void + { + $request->addData([ + // ! UTC date time. + 'timestamp' => \gmdate('Y-m-d H:i:s') + ]); + } + + /** + * Calculates request signature + * + * @param Request $request + * @return string + * @throws \LDC\LDCCRM\Exceptions\CrmException In case of failure. + */ + protected function calulateSignature(Request $request): string + { + $uri = \parse_url(sprintf('%s/%s', self::$endpoint, $request->uri)); + $method = \strtolower($request->method->value); + $parameters = $request->data; + + $signature = [ + 'uri' => sprintf( + '%s://%s%s', + // Assume https if non provided, security first. + $uri['scheme'] ?? 'https', + $uri['host'], + $uri['path'] ?? '', + ), + 'method' => $method + ]; + + $flattenRequestArray = function (array $array) use (&$flattenRequestArray) { + $out = []; + foreach ($array as $key => $value) { + if (is_array($value)) { + $subArray = $flattenRequestArray($value); + foreach ($subArray as $subKey => $subValue) { + $out["$key.$subKey"] = $subValue; + } + continue; + } + $out[$key] = $value; + } + return $out; + }; + + $parameters = $flattenRequestArray($parameters); + + // ! Natural sort by keys. + if (!uksort($parameters, "strnatcmp")) { + throw new CrmException('Natural sorting the request parameters failed.'); + } + + $parameters = \array_map(function ($key, $value) { + return sprintf('%s=%s', \rawurlencode($key), \rawurlencode($value)); + }, \array_keys($parameters), $parameters); + + $signature[] = \implode('&', $parameters); + + return base64_encode(hash_hmac( + 'sha256', + \implode('\n', $signature), + self::$bearerPwd, + true + )); + } +} diff --git a/app/Lib/vendor/crm-client-3.0.6/src/Transport/Request.php b/app/Lib/vendor/crm-client-3.0.6/src/Transport/Request.php new file mode 100644 index 0000000..f89869d --- /dev/null +++ b/app/Lib/vendor/crm-client-3.0.6/src/Transport/Request.php @@ -0,0 +1,210 @@ +hidden = function () { + return []; + }; + $this->method = $method; + $this->uri = $uri; + $this->data = $data; + $this->headers = $headers; + $this->client = new Client([ + RequestOptions::HEADERS => [ + 'User-Agent' => sprintf( + 'LDC CRM Client v%s', + Utils::getPackageInfo()['version'] + ) + ] + ]); + } + + /** + * Generic accessor + * + * @param string $field + * @return mixed|null + */ + public function __get(string $field) + { + if (\in_array($field, ['method', 'uri', 'data'])) { + return $this->{$field}; + } + return null; + } + + /** + * make the guzzle request + * + * @return void + */ + private function makeRequest(): void + { + $this->request = function () { + $uri = $this->uri; + // * If query merge query and data, set data to empty. + if ($this->method->equals(HttpMethods::get())) { + // * Merge query in url with Data + $q = \parse_url($uri, \PHP_URL_QUERY) ?? ''; + $q = \strpos($q, '&') !== false ? explode('&', $q) : []; + $query = []; + foreach ($q as $qParam) { + $qParam = explode('=', $qParam, 2); + + $query[$qParam[0]] = $qParam[1]; + } + // * Remove query part. + $uri = strtok($uri, '?'); + // * Append build query + $uri = sprintf("%s?%s", $uri, http_build_query(array_merge($query, $this->data))); + + $this->data = []; + } + $request = new Psr7Request( + \strtoupper($this->method), + sprintf('%s/%s', $this->endpoint, $uri), + $this->headers + ); + $request = Psr7Utils::modifyRequest($request, [ + 'body' => GuzzleHttpUtils::jsonEncode($this->data) + ]); + return $request; + }; + } + + /** + * Set the api endpoint to the request + * + * @param string $endpoint + * @return void + */ + public function setEndpoint(string $endpoint): void + { + $this->endpoint = $endpoint; + } + + /** + * Make the Http request + * + * @return ResponseInterface + */ + public function call(): ResponseInterface + { + $this->makeRequest(); + /** @var \GuzzleHttp\Psr7\Request */ + $request = ($this->request)(); + return $this->client->send($request, [ + // ! Do not throw HTTP Exceptions. + 'http_errors' => false, + 'allow_redirects' => false + ]); + } + + /** + * Add headers to the request + * + * @param array $headers + * @return void + */ + public function addHeaders(array $headers) + { + $this->headers = \array_merge($this->headers, $headers); + } + + /** + * Add data to the request + * + * @param array $data + * @return void + */ + public function addData(array $data) + { + $this->data = \array_merge($this->data, $data); + } +} diff --git a/app/Lib/vendor/crm-client-3.0.6/src/Transport/Response.php b/app/Lib/vendor/crm-client-3.0.6/src/Transport/Response.php new file mode 100644 index 0000000..613b6dd --- /dev/null +++ b/app/Lib/vendor/crm-client-3.0.6/src/Transport/Response.php @@ -0,0 +1,201 @@ +response = $response; + $this->status = $status; + $this->httpCode = $response->getStatusCode(); + $this->headers = $response->getHeaders(); + /** @var \GuzzleHttp\Psr7\Stream */ + $this->body = $response->getBody(); + + if (!in_array($response->getStatusCode(), [200, 201])) { + $this->message = $response->getReasonPhrase(); + } + + // * Body should be json data. + if (($decodedJson = $this->tryDecodeJson($this->body->getContents())) === false) { + if (Utils::getConfig('app.env') === 'testing') { + dump((string)$this->body); + } + throw new CrmException('The Api should have returned JSON data'); + } + $this->body = $decodedJson; + + // * If Api Error. + if ($this->status->equals(ApiStatus::KO())) { + // * If CRM Exception or Any Exception. + if ($this->httpCode === 500) { + $this->apiError = $this->body['data']['code']; + } else { + // * From here it should be an ApiErrorException. + $this->apiError = ApiError::make($this->body['data']['code']); + $this->message = $this->body['data']['message']; + if ($this->apiError->equals(ApiError::validationFailed())) { + $errors = new RecursiveIteratorIterator( + new RecursiveArrayIterator($this->body['data']['errors']) + ); + foreach ($errors as $error) { + $this->message = "$this->message $error"; + } + } + } + } + + $this->checkVersion($this->body['version']); + + return $this; + } + + /** + * Generic accessor + * + * @param string $field + * @return mixed|null + */ + public function __get(string $field) + { + if ( + \in_array($field, [ + 'status', 'httpCode', 'headers', + 'body', 'message', 'response', 'apiError' + ]) + ) { + return $this->{$field}; + } + if ($field === 'data' and isset($this->body[$field])) { + return $this->body[$field]; + } + return null; + } + + /** + * Try to decode json and return false if it is + * not a valid json + * + * @param string $string + * @return array|false Returns an associative data array or false if failed to parse. + */ + private function tryDecodeJson(string $string) + { + /** @var array|null */ + $data = json_decode($string, true); + return (json_last_error() == JSON_ERROR_NONE) ? $data : false; + } + + /** + * This checks if the crm version is way far beyond the client version. + * If a minor version mismatch is detected we will log this as a warning. + * If a major version mismatch is detected we will throw a CrmException as + * there shall be an incompatibility with the response. + * + * The goal here is to force clients to be up to date. + * A major version change means breaking change. + * + * @param string $version + * @return void + * @throws \LDC\LDCCRM\Exceptions\CrmException If a major version mismatch is detected. + */ + private function checkVersion(string $version) + { + $packageInfo = Utils::getPackageInfo(); + $ApackageInfo = explode('.', $packageInfo['version']); + $Aversion = \explode('.', $version); + if ($ApackageInfo[0] != $Aversion[0]) { + throw new CrmException(sprintf( + 'Incompatible major versions between CRM server %s and client %s', + $version, + $packageInfo['version'] + )); + } + if ($ApackageInfo[1] != $Aversion[1]) { + $message = sprintf( + 'Minor version mismatch between CRM server %s and client %s, this could lead to errors', + $version, + $packageInfo['version'] + ); + Utils::log($message, LogLevel::WARNING()); + } + } +} diff --git a/app/Lib/vendor/crm-client-3.0.6/src/Utils.php b/app/Lib/vendor/crm-client-3.0.6/src/Utils.php new file mode 100644 index 0000000..23b85e5 --- /dev/null +++ b/app/Lib/vendor/crm-client-3.0.6/src/Utils.php @@ -0,0 +1,721 @@ + $attrRules) { + $validators = []; + if (\is_string($attrRules)) { + $attrRules = \explode('|', $attrRules); + } + foreach ($attrRules as $rule) { + $validators[] = self::makeValidatorFromRule($rule, $data, $attribute); + } //end foreach + } //end foreach + return function () use ($validators) { + foreach ($validators as $validator) { + try { + if (!$validator['validate']()) { + throw new ValidationException($validator['error']); + } + } catch (SkipValidationException $e) { + break; + } + } + }; + } + + /** + * Generate a validator + * + * @param mixed $rule + * @param array $data + * @param string $attribute + * @return array + * @throws \ErrorException If a rule is unknown. + */ + private static function makeValidatorFromRule( + $rule, + array $data, + string $attribute + ): array { + $rParams = []; + $closure = null; + if (\is_callable($rule) and !is_string($rule)) { + /** @var \Closure $closure */ + $closure = $rule; + $rule = '#closure#'; + } elseif (\strpos($rule, ':') !== false) { + $rParams = \explode(':', $rule, 2); + $rule = \array_shift($rParams); + } + switch (true) { + case in_array($rule, [ + 'nullable', 'sometimes', + 'int', 'bool', 'uuid', 'string', + 'date', 'email', 'array', + 'mixedCase', 'containDigit', 'containSymbol', + ]): + return self::{sprintf('validation%s', \ucfirst($rule))}( + $attribute, + $data[$attribute] ?? null + ); + case in_array($rule, ['size', 'min', 'max']): + return self::{sprintf('validation%s', \ucfirst($rule))}( + $attribute, + $data[$attribute], + $rParams + ); + case in_array($rule, ['required', 'sometimes']): + return self::{sprintf('validation%s', \ucfirst($rule))}( + $attribute, + $data, + ); + case $rule === 'date_format': + return self::validationDateFormat($attribute, $data[$attribute], $rParams); + case $rule === '#closure#': + /** @var \Closure $rule */ + return self::validationClosure($attribute, $data[$attribute], $closure); + default: + throw new \ErrorException("Unknown validation rule $rule " . implode(': ', $rParams)); + } //end switch + } + + // * VALIDATION RULES + + /** + * Make Required validator + * + * @param string $attribute + * @param array $data + * @return array + */ + private static function validationRequired(string $attribute, array $data): array + { + return [ + 'type' => 'required', + 'error' => sprintf( + '%s est obligatoire', + self::translate($attribute) + ), + 'validate' => function () use ($attribute, $data) { + return isset($data[$attribute]); + } + ]; + } + + /** + * Make Nullable validator + * + * @param string $attribute + * @param mixed $value + * @return array + */ + private static function validationNullable(string $attribute, $value): array + { + return [ + 'type' => 'nullable', + 'error' => sprintf( + '%s peut être égale à nul', + self::translate($attribute) + ), + 'validate' => function () use ($value) { + if (is_null($value)) { + throw new SkipValidationException(); + } + return true; + } + ]; + } + + /** + * Make Sometimes validator + * + * @param string $attribute + * @param mixed $data + * @return array + */ + private static function validationSometimes(string $attribute, $data): array + { + return [ + 'type' => 'sometimes', + 'error' => sprintf( + '%s est falcutatif', + self::translate($attribute) + ), + 'validate' => function () use ($data) { + if (empty($data)) { + throw new SkipValidationException(); + } + return true; + } + ]; + } + + /** + * Make Int validator + * + * @param string $attribute + * @param mixed $value + * @return array + */ + private static function validationInt(string $attribute, $value): array + { + return [ + 'type' => 'int', + 'error' => sprintf( + '%s doit être un entier', + self::translate($attribute) + ), + 'validate' => function () use ($value) { + return \is_int($value); + } + ]; + } + + /** + * Make String validator + * + * @param string $attribute + * @param mixed $value + * @return array + */ + private static function validationString(string $attribute, $value): array + { + return [ + 'type' => 'string', + 'error' => sprintf( + '%s doit être une chaine de charactères', + self::translate($attribute) + ), + 'validate' => function () use ($value) { + return \is_string($value); + } + ]; + } + + /** + * Make Bool validator + * + * @param string $attribute + * @param mixed $value + * @return array + */ + private static function validationBool(string $attribute, $value): array + { + return [ + 'type' => 'bool', + 'error' => sprintf( + '%s doit être un booléen', + self::translate($attribute) + ), + 'validate' => function () use ($value) { + return \is_bool($value) or $value === 1 or $value === 0; + } + ]; + } + + /** + * Make Size validator + * + * @param string $attribute + * @param mixed $value + * @param array $params + * @return array + */ + private static function validationSize(string $attribute, $value, array $params): array + { + return [ + 'type' => 'min', + 'error' => sprintf( + '%s doit avoir %s caratères', + self::translate($attribute), + $params[0], + $params[0] + ), + 'validate' => function () use ($value, $params) { + if (\is_string($value)) { + return \strlen($value) === (int)$params[0]; + } + return false; + } + ]; + } + + /** + * Make Min validator + * + * @param string $attribute + * @param mixed $value + * @param array $params + * @return array + */ + private static function validationMin(string $attribute, $value, array $params): array + { + return [ + 'type' => 'min', + 'error' => sprintf( + '%s doit avoir au moins %s caratères, ou être plus grand que %s si c\'est un nombre', + self::translate($attribute), + $params[0], + $params[0] + ), + 'validate' => function () use ($value, $params) { + if (\is_string($value)) { + return \strlen($value) >= (int)$params[0]; + } + if (\is_int($value)) { + return $value >= (int)$params[0]; + } + return false; + } + ]; + } + + /** + * Make Max validator + * + * @param string $attribute + * @param mixed $value + * @param array $params + * @return array + */ + private static function validationMax(string $attribute, $value, array $params): array + { + return [ + 'type' => 'max', + 'error' => sprintf( + '%s doit avoir au moins %s caratères, ou être plus grand que %s si c\'est un nombre', + self::translate($attribute), + $params[0], + $params[0] + ), + 'validate' => function () use ($value, $params) { + if (\is_string($value)) { + return \strlen($value) <= (int)$params[0]; + } + if (\is_int($value)) { + return $value <= (int)$params[0]; + } + return false; + } + ]; + } + + /** + * Make Uuid validator + * + * @param string $attribute + * @param mixed $value + * @return array + */ + private static function validationUuid(string $attribute, $value): array + { + return [ + 'type' => 'uuid', + 'error' => sprintf( + '%s doit être un uuid valide', + self::translate($attribute) + ), + 'validate' => function () use ($value) { + return Validator::uuid()->validate($value); + } + ]; + } + + /** + * Make MixedCase validator + * + * @param string $attribute + * @param mixed $value + * @return array + */ + private static function validationMixedCase(string $attribute, $value): array + { + return [ + 'type' => 'mixedCase', + 'error' => sprintf( + '%s doit contenir des lettre minuscules et majuscules', + self::translate($attribute) + ), + 'validate' => function () use ($value) { + return \preg_match('/[a-z]/', $value) and \preg_match('/[A-Z]/', $value); + } + ]; + } + + /** + * Make ContainDigit validator + * + * @param string $attribute + * @param mixed $value + * @return array + */ + private static function validationContainDigit(string $attribute, $value): array + { + return [ + 'type' => 'containDigit', + 'error' => sprintf( + '%s doit contenir au moins un chiffre', + self::translate($attribute) + ), + 'validate' => function () use ($value) { + return \preg_match('/[0-9]/', $value); + } + ]; + } + + /** + * Make ContainSymbol validator + * + * @param string $attribute + * @param mixed $value + * @return array + */ + private static function validationContainSymbol(string $attribute, $value): array + { + return [ + 'type' => 'containSymbol', + 'error' => sprintf( + '%s doit contenir au moins un caractère spécial comme une virgule par exemple', + self::translate($attribute) + ), + 'validate' => function () use ($value) { + return \preg_match('/[^a-zA-Z0-9]/', $value); + } + ]; + } + + /** + * Make Date validator + * + * @param string $attribute + * @param mixed $value + * @return array + */ + private static function validationDate(string $attribute, $value): array + { + return [ + 'type' => 'date', + 'error' => sprintf('%s doit être une date valide', self::translate($attribute)), + 'validate' => function () use ($value) { + return Validator::dateTime()->validate($value); + } + ]; + } + + /** + * Make DateFormat validator + * + * @param string $attribute + * @param mixed $value + * @param array $params + * @return array + */ + private static function validationDateFormat(string $attribute, $value, array $params): array + { + return [ + 'type' => 'date_format', + 'error' => sprintf('%s doit être une date au format %s', self::translate($attribute), $params[0]), + 'validate' => function () use ($value, $params) { + return Validator::dateTime($params[0])->validate($value); + } + ]; + } + + /** + * Make Email validator + * + * @param string $attribute + * @param mixed $value + * @return array + */ + private static function validationEmail(string $attribute, $value): array + { + return [ + 'type' => 'email', + 'error' => sprintf('%s doit être un email valide', self::translate($attribute)), + 'validate' => function () use ($value) { + return Validator::email()->validate($value); + } + ]; + } + + /** + * Make Array validator + * + * @param string $attribute + * @param mixed $value + * @return array + */ + private static function validationArray(string $attribute, $value): array + { + return [ + 'type' => 'array', + 'error' => sprintf('%s doit être un tableau valide', self::translate($attribute)), + 'validate' => function () use ($value) { + return Validator::arrayType()->validate($value); + } + ]; + } + + /** + * Make Closure validator + * + * @param string $attribute + * @param mixed $value + * @param \Closure $closure + * @return array + */ + private static function validationClosure(string $attribute, $value, \Closure $closure): array + { + return [ + 'type' => 'closure', + 'error' => sprintf('%s doit être validé', self::translate($attribute)), + 'validate' => function () use ($attribute, $value, $closure) { + $closure($attribute, $value, function ($message) { + throw new ValidationException($message); + }); + return true; + } + ]; + } + + // * END VALIDATION RULES + + /** + * This is only used for unit tests. + * Get config + * + * @param string $key + * @param string $default + * @return string|null + */ + public static function getConfig(string $key, string $default = null): ?string + { + $value = null; + if (function_exists('config')) { + $value = \config($key, $default); + } + + return $value; + } + + /** + * Generate a Request from the route name + * + * @param string $routeName + * @param array $query Params to pass on to the route. + * @param array $data Http body params. + * @return \LDC\LDCCRM\Transport\Request + * @throws \ErrorException If the requested route is unknown. + * @throws \ErrorException If a required parameter is missing. + */ + public static function getResquest(string $routeName, array $query = [], array $data = []): Request + { + // Convert bool to integer. + $query = \array_map(function ($v) { + return is_bool($v) ? (int)$v : $v; + }, $query); + $data = \array_map(function ($v) { + return is_bool($v) ? (int)$v : $v; + }, $data); + + $routes = \json_decode(\file_get_contents(__DIR__ . '/routes.json'), true); + if (!isset($routes[$routeName])) { + throw new \ErrorException("Unknown route $routeName from the crm"); + } + $route = $routes[$routeName]; + $matches = []; + $matchedIndex = []; + \preg_match_all('/{([\w-]*)}/', $route['uri'], $matches); + if (\count($matches[0])) { + foreach ($matches[0] as $k => $match) { + if (!isset($query[$matches[1][$k]])) { + throw new \ErrorException(sprintf('Missing required parameter %s', $matches[1][$k])); + } + $route['uri'] = str_replace($match, $query[$matches[1][$k]], $route['uri']); + $matchedIndex[$matches[1][$k]] = $query[$matches[1][$k]]; + } + } + foreach ($matchedIndex as $key => $value) { + unset($query[$key]); + } + if (count($query)) { + $route['uri'] = sprintf('%s?%s', $route['uri'], \http_build_query($query)); + } + return new Request(HttpMethods::make($route['methods'][0]), $route['uri'], [], $data); + } + + /** + * Get composer.json infos + * + * @return array + */ + public static function getPackageInfo(): array + { + if (!static::$packageInfos) { + static::$packageInfos = \json_decode(\file_get_contents(__DIR__ . '/../composer.json'), true); + } + return static::$packageInfos; + } + + /** + * Translation a string using php file lang + * + * @param string $key + * @param string $lang + * @return string + */ + public static function translate(string $key, string $lang = 'fr'): string + { + try { + if (!array_key_exists($lang, self::$translations)) { + self::$translations = require __DIR__ . "/../resources/lang/$lang.php"; + } + } finally { + if (!isset(self::$translations['validation'][$key])) { + return $key; + } else { + return self::$translations['validation'][$key]; + } + } + } + + /** + * Write log using syslog + * It also write log using \Illuminate\Support\Facades\Log + * if it is present + * + * @param string $message The message is prefixed with "LDC CRM:" . + * @param \LDC\LDCCRM\Enums\LogLevel $level The log level to apply. + * @return void + */ + public static function log(string $message, LogLevel $level) + { + $message = "LDC CRM: $message"; + if (\class_exists('\Illuminate\Support\Facades\Log')) { + switch ($level) { + case LogLevel::EMERG(): + \Illuminate\Support\Facades\Log::emergency($message); + break; + case LogLevel::ALERT(): + \Illuminate\Support\Facades\Log::alert($message); + break; + case LogLevel::CRIT(): + \Illuminate\Support\Facades\Log::critical($message); + break; + case LogLevel::ERR(): + \Illuminate\Support\Facades\Log::error($message); + break; + case LogLevel::WARNING(): + \Illuminate\Support\Facades\Log::warning($message); + break; + case LogLevel::NOTICE(): + \Illuminate\Support\Facades\Log::notice($message); + break; + case LogLevel::INFO(): + \Illuminate\Support\Facades\Log::info($message); + break; + case LogLevel::DEBUG(): + \Illuminate\Support\Facades\Log::debug($message); + break; + }//end switch + \Illuminate\Support\Facades\Log::warning($message); + }//end if + \syslog(\constant($level), $message); + } + + /** + * Set a property without any validation. + * + * ! Warning : this can change any property of the object, use with caution. + * + * @param object $object The object to inspect. + * @param string $property The object property to assign to. + * @param mixed $value The value to insert. + * @return void + * @throws LDC\LDCCRM\Exceptions\AccessError If trying to set a value on a unknown property. + */ + public static function setRawProperty(object $object, string $property, $value): void + { + if (is_object($value) and in_array(BaseEnum::class, class_parents($value))) { + $value = $value->value; + } + $objectName = \get_class($object); + $refClass = new \ReflectionClass($objectName); + try { + $refProp = $refClass->getProperty($property); + } catch (\ReflectionException $e) { + throw new AccessError($objectName, $property); + } + $refProp->setAccessible(true); + $refProp->setValue($object, $value); + } + + /** + * Get a property of an object. + * + * ! Warning : this will return any property of the object, use with caution. + * + * @param object $object The object to inspect. + * @param string $property The object property to inspect. + * @return mixed|null Returns null if the property was not found any way. + */ + public static function getRawProperty(object $object, string $property) + { + $refClass = new \ReflectionClass(\get_class($object)); + try { + $refProp = $refClass->getProperty($property); + } catch (\ReflectionException $e) { + return null; + } + $refProp->setAccessible(true); + return $refProp->getValue($object); + } +} diff --git a/app/Lib/vendor/crm-client-3.0.6/src/WordPress/WPCrm.php b/app/Lib/vendor/crm-client-3.0.6/src/WordPress/WPCrm.php new file mode 100644 index 0000000..3ab522d --- /dev/null +++ b/app/Lib/vendor/crm-client-3.0.6/src/WordPress/WPCrm.php @@ -0,0 +1,625 @@ + + * @license MIT https://opensource.org/licenses/MIT + * @link / + */ + +namespace LDC\LDCCRM\WordPress; + +use LDC\LDCCRM\CrmApiV2; +use LDC\LDCCRM\Enums\ApiError; +use LDC\LDCCRM\Enums\LogLevel; +use LDC\LDCCRM\Exceptions\ApiErrorException; +use LDC\LDCCRM\Exceptions\CrmException; +use LDC\LDCCRM\Models\Customer; +use LDC\LDCCRM\Models\SingleOptin; +use LDC\LDCCRM\Utils; + +/* phpcs:ignore Squiz.PHP.CommentedOutCode.Found + TABLE LDC CUSTOMERS + CREATE TABLE `ldc_wp_customers` ( + `hashcode` VARCHAR(36) NOT NULL DEFAULT '' COMMENT 'Le hashcode (UUID)', + `email` VARCHAR(255) NOT NULL DEFAULT '' COMMENT 'Le customer email', + `uuid` VARCHAR(50) NOT NULL DEFAULT '' COMMENT 'Code unique (inscripton, validation, etc)', + PRIMARY KEY (`hashcode`) + ) + COMMENT='Les customers sur un WP liées à la CRM' + COLLATE='utf8mb4_unicode_ci'; +*/ + +/** + * Class de gestion des users en session avec Wordpress + * + * @category API + * @package LDCCrmClient + * @subpackage Wordpress + * @author Jérémy Munsch + * @license MIT https://opensource.org/licenses/MIT + * @link / + */ +class WPCrm +{ + /** + * The session key name + * + * @var string + */ + private static $sessionKey = null; + + /** + * The session live status + * + * @var boolean + */ + private static $sessionDestroyed = false; + + /** + * The user object + * + * @var \LDC\LDCCRM\CrmApiV2 + */ + protected static $api = null; + + /** + * The user object + * + * @var \LDC\LDCCRM\WordPress\WPCrmUser + */ + protected static $user = null; + + /** + * Get the current user + * return null if the user is not logged in + * + * @return \LDC\LDCCRM\WordPress\WPCrmUser|null + */ + public static function getUser() + { + self::bootSessionIfNeeded(); + return self::$user; + } + + /** + * Manually login a user + * If self::$user is already set. + * + * @return \LDCCRM\WPCrmUser|null + */ + public static function forceLogin() + { + self::bootSessionIfNeeded(); + if ($user = self::getUser()) { + $_SESSION['wpcrm'][self::$sessionKey] = json_encode($user); + } + return $user; + } + + /** + * Get the current user + * return api response code if an error occurs + * + * @param string $identification The customer hashcode or email. + * + * @return \LDC\LDCCRM\Wordpress\WPCrmUser|false + * @throws \LDC\LDCCRM\Exceptions\CrmException If an error occurs on server side or on getting response. + * @throws \LDC\LDCCRM\Exceptions\ApiErrorException If any error or \LDC\LDCCRM\Enums\ApiError occurs. + * @phpcs:ignore Squiz.Commenting.FunctionCommentThrowTag.WrongNumber + */ + public static function getUserFromApi(string $identification) + { + self::initLdcApi(); + try { + if (!($response = self::makeApiV2Call(self::$api, 'getCustomer', [$identification]))) { + return false; + } + } catch (ApiErrorException $e) { + switch ($e->getApiError()) { + case ApiError::modelNotFound(): + return false; + default: + throw $e; + } + } + /** @var \LDC\LDCCRM\Models\Customer */ + $customer = $response; + self::setUser($customer); + return self::$user; + } + + /** + * Try to login with CRM API + * A session will be started if credentials are valid. + * + * @param string $email The customer email. + * @param string $password The customer password. + * + * @return boolean + * @throws \LDC\LDCCRM\Exceptions\CrmException If an error occurs on server side or on getting response. + * @throws \LDC\LDCCRM\Exceptions\ApiErrorException If any error or \LDC\LDCCRM\Enums\ApiError occurs. + * Possibles are : - authFailed, If credentials are not valid. + * - customerNotActivated, If the account is not activated. + */ + public static function login(string $email, string $password) + { + self::bootSessionIfNeeded(); + $validCredentials = self::loginUserWithApi($email, $password); + + if ($validCredentials and ($user = self::getUserFromApi($email))) { + self::saveOrUpdateUserToTable(); + $_SESSION['wpcrm'][self::$sessionKey] = json_encode($user); + } + + return $validCredentials; + } + + /** + * Destroy the customer from session + * and therefore logout + * + * @return void + */ + public static function logout() + { + self::bootSessionIfNeeded(); + $_SESSION['wpcrm'] = []; + session_destroy(); + self::$sessionDestroyed = true; + } + + /** + * Check if the user is logged in. + * This means he has an active valid session. + * + * @return boolean + */ + public static function check() + { + self::bootSessionIfNeeded(); + return (bool)self::getUser(); + } + + /** + * Save current customer to + * the local database and on crm + * + * @return boolean true if the operation succeeded false otherwise + * @throws LDC\LDCCRM\Exceptions\CrmException If a critical error occured. + * @throws \LDC\LDCCRM\Exceptions\ApiErrorException If any error or \LDC\LDCCRM\Enums\ApiError occurs. + * Possibles are : - validationFailed, If provided data is wrong(CRM side). + * - modelNotFound, If this customer hashcode could not be found. + * @phpcs:ignore Squiz.Commenting.FunctionCommentThrowTag.WrongNumber + */ + public static function saveUser(): bool + { + if (!self::getUser() or !($customer = self::getCustomer())) { + return false; + } + try { + if (!self::makeApiV2Call($customer, 'save')) { + return false; + } + } catch (ApiErrorException $e) { + switch ($e->getApiError()) { + case ApiError::modelNotFound(): + return false; + default: + throw $e; + } + } + self::saveOrUpdateUserToTable(); + return true; + } + + /** + * Delete current customer from + * the local database and the crm + * + * @return boolean true if the operation succeeded + * @throws LDC\LDCCRM\Exceptions\CrmException If a critical error occured. + * @throws \LDC\LDCCRM\Exceptions\ApiErrorException If any error or \LDC\LDCCRM\Enums\ApiError occurs. + * Possibles are : - modelNotFound, If this customer hashcode could not be found. + * @phpcs:ignore Squiz.Commenting.FunctionCommentThrowTag.WrongNumber + */ + public static function deleteUser(): bool + { + if (!self::getUser() or !($customer = self::getCustomer())) { + return false; + } + try { + if (!self::makeApiV2Call($customer, 'delete')) { + return false; + } + } catch (ApiErrorException $e) { + switch ($e->getApiError()) { + case ApiError::authorizationException(): + case ApiError::modelNotFound(): + return false; + default: + throw $e; + } + } + self::deleteUserFromTable(); + return true; + } + + /** + * Toggle the current user optin value + * on the current user and the crm + * + * @return boolean true if the operation succeeded + * @throws LDC\LDCCRM\Exceptions\CrmException If a critical error occured. + * @throws \LDC\LDCCRM\Exceptions\ApiErrorException If any error or \LDC\LDCCRM\Enums\ApiError occurs. + * Possibles are : - modelNotFound, If this customer hashcode could not be found. + * @phpcs:ignore Squiz.Commenting.FunctionCommentThrowTag.WrongNumber + */ + public static function toggleUserOptin(): bool + { + if (!self::getUser() or !($customer = self::getCustomer())) { + return false; + } + try { + if (!self::makeApiV2Call($customer, 'save')) { + return false; + } + } catch (ApiErrorException $e) { + switch ($e->getApiError()) { + case ApiError::authorizationException(): + case ApiError::modelNotFound(): + return false; + default: + throw $e; + } + } + $customer->opt_in = !$customer->opt_in; + return true; + } + + /** + * Set the single optin status for an email + * on the crm + * + * @param string $email + * @param boolean $opt_in + * + * @return boolean true if the operation succeeded false otherwise + * @throws \LDC\LDCCRM\Exceptions\ValidationException If a field email could not be validated. + * @throws \LDC\LDCCRM\Exceptions\CrmException If an error occurs on server side or on getting response. + * @throws \LDC\LDCCRM\Exceptions\ApiErrorException If any error or \LDC\LDCCRM\Enums\ApiError occurs. + * Possibles are : - singleOptinCustomerExists, If a customer exists with this email. + */ + public static function setSingleOptin(string $email, bool $opt_in): bool + { + return self::makeApiV2Call(SingleOptin::class, 'setStatus', [ + $email, $opt_in + ]); + } + + /** + * Toggle the current user optin value + * on the current user and the crm + * + * @return boolean True if the operation succeeded. + * @throws \LDC\LDCCRM\Exceptions\ValidationException If a customer's hashcode could not be validated. + * @throws \LDC\LDCCRM\Exceptions\CrmException If an error occurs on server side or on getting response. + * @throws \LDC\LDCCRM\Exceptions\ApiErrorException If any error or \LDC\LDCCRM\Enums\ApiError occurs. + * Possibles are : - modelNotFound, If this customer hashcode could not be found. + * - customerAlreadyActive, It the customer is already activated. + */ + public static function activateUser(): bool + { + if (!self::getUser() or !($customer = self::getCustomer())) { + return false; + } + if ($customer->status) { + return true; + } + if (!self::makeApiV2Call($customer, 'activate')) { + return false; + } + $customer->opt_in = !$customer->opt_in; + return true; + } + + /** + * Generate a new user + * + * @return WPCrmUser + */ + public static function getNewUser(): WPCrmUser + { + self::$user = new WPCrmUser(); + return self::$user; + } + + /** + * Remove active user + * to prevent WPCrm::check to return true + * + * @return void + */ + public static function unsetActiveUser(): void + { + self::$user = null; + } + + // * --- PRIVATE --- METHODS + + /** + * Check customer credentials using the CRM. + * + * @param string $email The customer email. + * @param string $password The customer password. + * + * @return boolean + * @throws \LDC\LDCCRM\Exceptions\CrmException If an error occurs on server side or on getting response. + * @throws \LDC\LDCCRM\Exceptions\ApiErrorException If any error or \LDC\LDCCRM\Enums\ApiError occurs. + * Possibles are : - authFailed, If credentials are not valid. + * - customerNotActivated, If the account is not activated. + */ + private static function loginUserWithApi(string $email, string $password): bool + { + self::initLdcApi(); + + /** @var boolean $response */ + $response = self::makeApiV2Call(self::$api, 'login', [$email, $password]); + return $response; + } + + /** + * Get all customer infos + * + * @return \LDC\LDCCRM\Models\Customer|null + */ + private static function getCustomer(): ?Customer + { + if (!self::getUser()) { + return null; + } + if (!Utils::getRawProperty(self::$user, 'info')) { + self::getUserFromApi(self::$user->hashcode); + } + /** @var \LDC\LDCCRM\Models\Customer */ + $customer = Utils::getRawProperty(self::$user, 'info'); + return $customer; + } + + /** + * Create a user + * stores it to the session + * and finally saves it to the database if it does not exists + * + * @param \LDC\LDCCRM\Models\Customer $customer + * + * @return void + */ + private static function setUser(Customer $customer): void + { + self::bootSessionIfNeeded(); + if (!self::$user) { + self::$user = new WPCrmUser($customer->hashcode, $customer->email); + } + self::$user->setInfo($customer); + } + + /** + * Get the initialized API object + * + * @return \LDC\LDCCRM\CrmApiV2 + * @throws \ErrorException If php does not have extension curl. + */ + private static function initLdcApi(): CrmApiV2 + { + if (!self::$api) { + if (!extension_loaded('curl')) { + throw new \ErrorException( + 'WPCrm requires php extension curl' + ); + } + self::$api = new CrmApiV2(); + } + return self::$api; + } + + /** + * Make a call using apiV2 + * + * @param object|string $obj An object or a class name. + * @param string $method The method to call. + * @param array $arguments Arguments to pass. + * @return mixed|false + * @throws LDC\LDCCRM\Exceptions\ApiErrorException If any of this exception is thrown. + * @throws LDC\LDCCRM\Exceptions\CrmException If a critical error occured. + */ + private static function makeApiV2Call($obj, string $method, array $arguments = []) + { + try { + return \forward_static_call_array([$obj, $method], $arguments); + } catch (ApiErrorException $e) { + switch ($e->getApiError()) { + case ApiError::apiAuthFailed(): + Utils::log($e->getMessage(), LogLevel::CRIT()); + throw $e; + default: + Utils::log($e->getMessage(), LogLevel::DEBUG()); + throw $e; + } + } catch (CrmException $e) { + Utils::log($e->getMessage(), LogLevel::CRIT()); + throw $e; + } + } + + /** + * Boot the php session if needed + * + * @return void + */ + private static function bootSessionIfNeeded(): void + { + self::$sessionKey = ($_SERVER['HTTP_USER_AGENT'] ?? '') . ($_SERVER['REMOTE_ADDR'] ?? ''); + /** @var string self::$sessionKey */ + self::$sessionKey = \strlen(self::$sessionKey) ? self::$sessionKey : (date('d') ? date('d') : ''); + if (!session_id() && !self::$sessionDestroyed) { + session_start(); + } + if (!isset($_SESSION['wpcrm'])) { + $_SESSION['wpcrm'] = []; + } + if ( + // If session identity is violated. + count($_SESSION['wpcrm']) > 1 or + // If session timed out. + (isset($_SESSION['wpcrm'][self::$sessionKey]) and + isset($_SESSION['lastActivity']) and + // * 15 minutes session. + ($_SESSION['lastActivity'] + (15 * 60)) < time()) + ) { + // Destroy session. + self::$sessionDestroyed = true; + $_SESSION['wpcrm'] = []; + } else { + $_SESSION['lastActivity'] = time(); + } + if (!self::$user and isset($_SESSION['wpcrm'][self::$sessionKey])) { + self::$user = WPCrmUser::parseFromJson( + $_SESSION['wpcrm'][self::$sessionKey] + ); + } + } + + /** + * Get a customer from table + * + * @param string $hashcode The customer hashcode. + * + * @return array|null Database query result in format specified by $output or null on failure. + */ + public static function getUserFromTable(string $hashcode): ?array + { + return self::getWpDb()->get_row( + self::getWpDb()->prepare( + 'SELECT * FROM `ldc_wp_customers` WHERE `hashcode` = %s', + [ + 'hashcode' => $hashcode + ] + ), + 'ARRAY_A' + ); + } + + /** + * Get a customer from table by an email + * + * @param string $email The customer email. + * + * @return array|null Database query result in format specified by $output or null on failure. + */ + public static function getUserFromTableByEmail(string $email): ?array + { + return self::getWpDb()->get_row( + self::getWpDb()->prepare( + 'SELECT * FROM `ldc_wp_customers` WHERE `email` = %s', + [ + 'email' => $email + ] + ), + 'ARRAY_A' + ); + } + + /** + * Get a customer from table by an email + * + * @param string $uuid The customer transaction uuid. + * + * @return array|null Database query result in format specified by $output or null on failure. + */ + public static function getUserFromTableByUuid(string $uuid): ?array + { + return self::getWpDb()->get_row( + self::getWpDb()->prepare( + 'SELECT * FROM `ldc_wp_customers` WHERE `uuid` = %s', + [ + 'uuid' => $uuid + ] + ), + 'ARRAY_A' + ); + } + + /** + * Save or update the user to the table + * + * @return integer The number of row affected on the table. + */ + private static function saveOrUpdateUserToTable(): int + { + if (is_string(self::$user->hashcode) and self::getUserFromTable(self::$user->hashcode)) { + return self::query( + 'UPDATE `ldc_wp_customers` SET `email` = %s, `uuid` = %s WHERE `hashcode` = %s', + [ + 'email' => self::$user->email, + 'uuid' => self::$user->uuidToken, + 'hashcode' => self::$user->hashcode + ] + ); + } + return self::query( + 'INSERT INTO `ldc_wp_customers`(hashcode, email, uuid) VALUES (%s, %s, %s)', + [ + 'hashcode' => self::$user->hashcode, + 'email' => self::$user->email, + 'uuid' => self::$user->uuidToken + ] + ); + } + + /** + * Save or update the user to the table + * + * @return integer The number of row removed from the table. + */ + private static function deleteUserFromTable(): int + { + return self::query( + 'DELETE FROM `ldc_wp_customers` WHERE `hashcode` = %s;', + [ + 'hashcode' => self::$user->hashcode + ] + ); + } + + /** + * Query in DB + * + * @param string $query La request avec les variables en points d'interrogation. + * @param array $params Les paramètres des la requète. + * + * @return integer|boolean Boolean true for CREATE, ALTER, TRUNCATE and DROP queries. + * Number of rows affected/selected for all other queries. Boolean false on error. + */ + private static function query(string $query, array $params = []) + { + return self::getWpDb()->query( + self::getWpDb()->prepare($query, $params) + ); + } + + /** + * Get WP 'pdo instance' + * + * @return object The $wpdb variable + */ + private static function getWpDb(): object + { + // phpcs:ignore Squiz.PHP.GlobalKeyword.NotAllowed + global $wpdb; + return $wpdb; + } +} diff --git a/app/Lib/vendor/crm-client-3.0.6/src/WordPress/WPCrmAnswer.php b/app/Lib/vendor/crm-client-3.0.6/src/WordPress/WPCrmAnswer.php new file mode 100644 index 0000000..edfa651 --- /dev/null +++ b/app/Lib/vendor/crm-client-3.0.6/src/WordPress/WPCrmAnswer.php @@ -0,0 +1,48 @@ + + * @license MIT https://opensource.org/licenses/MIT + * @link / + */ + +namespace LDC\LDCCRM\WordPress; + +use LDC\LDCCRM\Models\Answer; + +/** + * Class de gestion de la segmentation question avec Wordpress + * + * @category API + * @package LDCCrmClient + * @subpackage Wordpress + * @author Jérémy Munsch + * @license MIT https://opensource.org/licenses/MIT + * @link / + */ +abstract class WPCrmAnswer +{ + /** + * Set answers to a question for a specific user + * + * @param \LDC\LDCCRM\WordPress\WPCrmUser $user + * @param integer $questionId The question id . + * @param array $answersId An array with answers id . + * @return boolean true if succeeded + * + * @throws \LDC\LDCCRM\Exceptions\CrmException If an error occurs on server side or on getting response. + * @throws \LDC\LDCCRM\Exceptions\ValidationException If $user hashcode is not a valid UUID. + * @throws \LDC\LDCCRM\Exceptions\ValidationException If any of the provided ids are invalid. + * @throws \LDC\LDCCRM\Exceptions\ApiErrorException If any error \LDC\LDCCRM\Enums\ApiError occurs. + * Possibles are : - validationFailed, If given ids are wrong(CRM side). + * @phpcs:ignore Squiz.Commenting.FunctionCommentThrowTag.WrongNumber + */ + public function setQuestionAnswers(WPCrmUser $user, int $questionId, array $answersId): bool + { + return Answer::setQuestionAnswers($user->hashcode, $questionId, $answersId); + } +} diff --git a/app/Lib/vendor/crm-client-3.0.6/src/WordPress/WPCrmQuestion.php b/app/Lib/vendor/crm-client-3.0.6/src/WordPress/WPCrmQuestion.php new file mode 100644 index 0000000..ac30c57 --- /dev/null +++ b/app/Lib/vendor/crm-client-3.0.6/src/WordPress/WPCrmQuestion.php @@ -0,0 +1,89 @@ + + * @license MIT https://opensource.org/licenses/MIT + * @link / + */ + +namespace LDC\LDCCRM\WordPress; + +use LDC\LDCCRM\Models\Question; +use LDC\LDCCRM\Utils; + +/** + * Class de gestion de la segmentation question avec Wordpress + * + * @category API + * @package LDCCrmClient + * @subpackage Wordpress + * @author Jérémy Munsch + * @license MIT https://opensource.org/licenses/MIT + * @link / + */ +abstract class WPCrmQuestion +{ + /** + * Get all questions only + * + * @return array Of \LDC\LDCCRM\Models\Question + * @throws \LDC\LDCCRM\Exceptions\CrmException If an error occurs on server side or on getting response. + * @throws \LDC\LDCCRM\Exceptions\ApiErrorException If any error or \LDC\LDCCRM\Enums\ApiError occurs. + * @phpcs:ignore Squiz.Commenting.FunctionCommentThrowTag.WrongNumber + */ + public static function getAll(): array + { + return Question::all(); + } + + /** + * Get all the questions with user answers + * + * @param \LDC\LDCCRM\WordPress\WPCrmUser $user + * @return array Of \LDC\LDCCRM\Models\Question and their \LDC\LDCCRM\Models\Answer. + * @throws \LDC\LDCCRM\Exceptions\CrmException If an error occurs on server side or on getting response. + * @throws \LDC\LDCCRM\Exceptions\ValidationException If a hashcode is not a valid UUID. + * @throws \LDC\LDCCRM\Exceptions\ValidationException If any of the provided ids are invalid. + * @throws \LDC\LDCCRM\Exceptions\ApiErrorException If any error or \LDC\LDCCRM\Enums\ApiError occurs. + * Possibles are : - modelNotFound, If the customer could not be found(CRM side). + * @phpcs:ignore Squiz.Commenting.FunctionCommentThrowTag.WrongNumber + */ + public static function allWithCustomerAnswers(WPCrmUser $user): array + { + // * Force loading of user info from crm + if (!Utils::getRawProperty($user, 'info')) { + WPCrm::getUserFromApi($user->hashcode); + } + // * Get the raw customer + /** @var \LDC\LDCCRM\Models\Customer */ + $customer = Utils::getRawProperty($user, 'info'); + return Question::allWithCustomerAnswers($customer); + } + + /** + * Get unanswered question for a specific customer + * + * @param \LDC\LDCCRM\WordPress\WPCrmUser $user + * @return \LDC\LDCCRM\Models\Question[] + * @throws \LDC\LDCCRM\Exceptions\CrmException If an error occurs on server side or on getting response. + * @throws \LDC\LDCCRM\Exceptions\ValidationException If $user hashcode is not a valid UUID. + * @throws \LDC\LDCCRM\Exceptions\ApiErrorException If any error or \LDC\LDCCRM\Enums\ApiError occurs. + * Possibles are : - modelNotFound, If the customer could not be found(CRM side). + * @phpcs:ignore Squiz.Commenting.FunctionCommentThrowTag.WrongNumber + */ + public static function unansweredBy(WPCrmUser $user): array + { + // * Force loading of user info from crm + if (!Utils::getRawProperty($user, 'info')) { + WPCrm::getUserFromApi($user->hashcode); + } + // * Get the raw customer + /** @var \LDC\LDCCRM\Models\Customer */ + $customer = Utils::getRawProperty($user, 'info'); + return Question::unansweredBy($customer); + } +} diff --git a/app/Lib/vendor/crm-client-3.0.6/src/WordPress/WPCrmUser.php b/app/Lib/vendor/crm-client-3.0.6/src/WordPress/WPCrmUser.php new file mode 100644 index 0000000..a65684a --- /dev/null +++ b/app/Lib/vendor/crm-client-3.0.6/src/WordPress/WPCrmUser.php @@ -0,0 +1,271 @@ + + * @license MIT https://opensource.org/licenses/MIT + * @link / + */ + +namespace LDC\LDCCRM\WordPress; + +use JsonSerializable; +use LDC\LDCCRM\Exceptions\WpCrmInvalidJsonUserInfo; +use LDC\LDCCRM\Models\Customer; + +/** + * Class de gestion des users en session avec Wordpress + * + * @property string $uuidToken — A local transaction token for this user + * + * + * @property string $hashcode — The crm hashcode this is a readonly field + * + * @property string $email — Must be a rfc valid email on a valid domain name + * + * @property string $password + * Required only on create, + * must have upper and lowers chars, + * at least 1 number, + * at leat 1 upper char, + * at least 1 lower char and + * at leat 1 special char + * + * @property string $firstname — The account first name + * + * @property string $lastname — The account last name + * + * @property string $birth_date — The account birth date 'yyyy-mm-dd' + * + * @property string $phone — The account phone + * + * @property string $address + * The account address (street number, name, build, flat number) + * + * @property string $address2 — The account phone (address complement) + * + * @property string $city — The account city name + * + * @property string $postcode — The account city postcode + * + * @property \LDC\LDCCRM\Enums\Country $country — The account country residence + * + * @property bool $opt_in — true if the account is opt in + * + * @property bool $status — true if the account is activated + * + * @property string $last_connection the last time user was connected 'yyyy-mm-dd HH:ii:ss' + * + * @category API + * @package LDCCrmClient + * @subpackage Wordpress + * @author Jérémy Munsch + * @license MIT https://opensource.org/licenses/MIT + * @link / + */ +class WPCrmUser implements JsonSerializable +{ + /** + * The CRM hashcode (UUID) + * + * @var string + */ + protected $phashcode = null; + + /** + * The CRM customer email + * + * @var string + */ + protected $pemail = null; + + /** + * The CRM customer info (the api response) + * + * @var \LDC\LDCCRM\Models\Customer + */ + protected $info = null; + + /** + * The CRM customer temp uuidToken to validate transactions + * + * @var string UUID + */ + protected $uuidToken = null; + + /** + * WPCrmUser construct + * + * @param string $hashcode The customer hashcode (UUID). + * @param string $email The customer email. + */ + public function __construct(string $hashcode = null, string $email = null) + { + $this->phashcode = $hashcode; + $this->pemail = $email; + } + + /** + * Generic accessor + * + * @param string $prop The prop to get. + * + * @return boolean|string|\LDC\LDCCRM\Enums\Country|null + */ + public function __get(string $prop) + { + if ($prop === 'uuidToken') { + return $this->uuidToken; + } + if (is_null($this->info)) { + if (!is_null($this->pemail)) { + WPCrm::getUserFromApi($this->pemail); + } else { + $this->info = new Customer(); + } + } + return $this->info->{$prop}; + } + + /** + * Generic mutator + * + * @param string $prop The property to assign. + * @param mixed $value The value to set. + * + * @return void + */ + public function __set(string $prop, $value): void + { + if ($prop === 'uuidToken') { + $this->uuidToken = $value; + return; + } + if (is_null($this->info)) { + if (!is_null($this->pemail)) { + WPCrm::getUserFromApi($this->pemail); + } else { + $this->info = new Customer(); + } + } + $this->info->{$prop} = $value; + if ($prop === 'email') { + $this->pemail = $value; + } + } + + /** + * Set the customer info + * with api response + * + * @param \LDC\LDCCRM\Models\Customer $customer The Api object reponse (user). + * + * @return void + */ + public function setInfo(Customer $customer) + { + $this->info = $customer; + $this->pemail = $customer->email; + $this->phashcode = $customer->hashcode; + } + + /** + * Generate a user from session data + * + * @param string $string The json data stored in session. + * + * @return \LDC\LDCCRM\WordPress\WPCrmUser + * @throws \LDC\LDCCRM\Exceptions\WpCrmInvalidJsonUserInfo If the json string does no + * contain the needed information. + */ + public static function parseFromJson(string $string): WPCrmUser + { + $a = json_decode($string, true); + if (!isset($a['hashcode']) or !isset($a['email'])) { + throw new WpCrmInvalidJsonUserInfo(\sprintf( + '%s::%s is missing some information to parse from, uuid was %s', + __CLASS__, + __METHOD__, + $a['hashcode'] + )); + } + return new self( + $a['hashcode'], + $a['email'] + ); + } + + /** + * Serialize this object to an array + * + * @return array + */ + public function jsonSerialize() + { + return [ + 'hashcode' => $this->phashcode, + 'email' => $this->pemail + ]; + } + + /** + * Save current customer to + * the local database and on crm + * + * @return boolean true if the operation succeeded false otherwise + * @throws LDC\LDCCRM\Exceptions\CrmException If a critical error occured. + * @throws \LDC\LDCCRM\Exceptions\ApiErrorException If any error or \LDC\LDCCRM\Enums\ApiError occurs. + * Possibles are : - validationFailed, If provided data is wrong(CRM side). + * - modelNotFound, If this customer hashcode could not be found. + */ + public function save(): bool + { + return WPCrm::saveUser(); + } + + /** + * Delete current customer to + * the local database and on crm + * + * @return boolean true if the operation succeeded false otherwise + * @throws LDC\LDCCRM\Exceptions\CrmException If a critical error occured. + * @throws \LDC\LDCCRM\Exceptions\ApiErrorException If any error or \LDC\LDCCRM\Enums\ApiError occurs. + * Possibles are : - modelNotFound, If this customer hashcode could not be found. + */ + public function delete(): bool + { + return WPCrm::deleteUser(); + } + + /** + * Toggle the current user optin value + * on the current user and the crm + * + * @return boolean true if the operation succeeded + * @throws LDC\LDCCRM\Exceptions\CrmException If a critical error occured. + * @throws \LDC\LDCCRM\Exceptions\ApiErrorException If any error or \LDC\LDCCRM\Enums\ApiError occurs. + * Possibles are : - modelNotFound, If this customer hashcode could not be found. + */ + public function toggleOptin(): bool + { + return WPCrm::toggleUserOptin(); + } + + /** + * Activate the account in the crm + * + * @return boolean true if succeeded + * @throws \LDC\LDCCRM\Exceptions\ValidationException If a customer's hashcode could not be validated. + * @throws \LDC\LDCCRM\Exceptions\CrmException If an error occurs on server side or on getting response. + * @throws \LDC\LDCCRM\Exceptions\ApiErrorException If any error or \LDC\LDCCRM\Enums\ApiError occurs. + * Possibles are : - modelNotFound, If this customer hashcode could not be found. + * - customerAlreadyActive, It the customer is already activated. + */ + public function activate(): bool + { + return WPCrm::activateUser(); + } +} diff --git a/app/Lib/vendor/crm-client-3.0.6/src/routes.json b/app/Lib/vendor/crm-client-3.0.6/src/routes.json new file mode 100644 index 0000000..7670f93 --- /dev/null +++ b/app/Lib/vendor/crm-client-3.0.6/src/routes.json @@ -0,0 +1,112 @@ +{ + "apiV2.ping": { + "uri": "api/v2/ping", + "methods": [ + "GET", + "HEAD" + ] + }, + "apiV2.optin": { + "uri": "api/v2/optin", + "methods": [ + "POST" + ] + }, + "apiV2.optout-hashcode": { + "uri": "api/v2/optout", + "methods": [ + "POST" + ] + }, + "apiV2.customers.store": { + "uri": "api/v2/customers", + "methods": [ + "POST" + ] + }, + "apiV2.customers.show": { + "uri": "api/v2/customers/{serviceCustomer}", + "methods": [ + "GET", + "HEAD" + ] + }, + "apiV2.customers.update": { + "uri": "api/v2/customers/{serviceCustomer}", + "methods": [ + "PUT", + "PATCH" + ] + }, + "apiV2.customers.destroy": { + "uri": "api/v2/customers/{serviceCustomer}", + "methods": [ + "DELETE" + ] + }, + "apiV2.customers.authenticate": { + "uri": "api/v2/customers/authenticate", + "methods": [ + "POST" + ] + }, + "apiV2.customers.activate": { + "uri": "api/v2/customers/{serviceCustomer}/activate", + "methods": [ + "POST" + ] + }, + "apiV2.customers.answers.store": { + "uri": "api/v2/customers/{serviceCustomer}/answers", + "methods": [ + "POST" + ] + }, + "apiV2.arcadia.outgoingMailDefault": { + "uri": "api/v2/arcadia/outgoing-mail/default", + "methods": [ + "POST" + ] + }, + "apiV2.arcadia.outgoingMailGame": { + "uri": "api/v2/arcadia/outgoing-mail/game", + "methods": [ + "POST" + ] + }, + "apiV2.questions.index": { + "uri": "api/v2/questions", + "methods": [ + "GET", + "HEAD" + ] + }, + "apiV2.questions.unAnsweredBy": { + "uri": "api/v2/questions/un-answered-by/{serviceCustomer}", + "methods": [ + "GET", + "HEAD" + ] + }, + "apiV2.questions.indexWithResponse": { + "uri": "api/v2/questions/with-answers/{serviceCustomer}", + "methods": [ + "GET", + "HEAD" + ] + }, + "apiV2.stats.brandStats": { + "uri": "api/v2/stats/brand", + "methods": [ + "GET", + "HEAD" + ] + }, + "apiV2.stats.questionStats": { + "uri": "api/v2/stats/question/{serviceQuestion}", + "methods": [ + "GET", + "HEAD" + ] + } +} \ No newline at end of file diff --git a/app/Mail/CodeGenerationEnd.php b/app/Mail/CodeGenerationEnd.php deleted file mode 100644 index b851a69..0000000 --- a/app/Mail/CodeGenerationEnd.php +++ /dev/null @@ -1,52 +0,0 @@ -quantity = $quantity; - $this->gameName = $gameName; - } - - /** - * Build the message. - * - * @return $this - */ - public function build() - { - return $this->subject('Fin de génération des codes uniques') - ->view('bo.mails.generate-end-email') - ->with(['quantity' => $this->quantity, 'gameName' => $this->gameName]); - } -} diff --git a/app/Mail/CourrierArcadiaError.php b/app/Mail/CourrierArcadiaError.php deleted file mode 100644 index e2d85af..0000000 --- a/app/Mail/CourrierArcadiaError.php +++ /dev/null @@ -1,45 +0,0 @@ -user = $user; - } - - /** - * Build the message. - * - * @return $this - */ - public function build() - { - $user = $this->user; - return $this->subject("Erreur envoi courrier arcadia") - ->view('front.basic.error-arcadia-email', compact('user')); - } -} diff --git a/app/Mail/ExportCodesUniques.php b/app/Mail/ExportCodesUniques.php deleted file mode 100644 index 255eb10..0000000 --- a/app/Mail/ExportCodesUniques.php +++ /dev/null @@ -1,64 +0,0 @@ -nbCodeFic = $nbCodeFic; - $this->nbCodeTot = $nbCodeTot; - $this->nbCodeLigne = $nbCodeLigne; - } - - /** - * Build the message. - * - * @return $this - */ - public function build() - { - $nbCodeFic = $this->nbCodeFic; - $nbCodeTot = $this->nbCodeTot; - $nbCodeLigne = $this->nbCodeLigne; - return $this->subject("Fin de l'export des codes uniques pour " . app(Settings::class)->name) - ->view('bo.mails.export-codes-unique-email', compact('nbCodeFic', 'nbCodeTot', 'nbCodeLigne')); - } -} diff --git a/app/Mail/JobFailed.php b/app/Mail/JobFailed.php deleted file mode 100644 index ac15b7c..0000000 --- a/app/Mail/JobFailed.php +++ /dev/null @@ -1,38 +0,0 @@ -job = $job; - $this->exception = $exception; - } - /** - * Build the message. - * - * @return $this - */ - public function build() - { - return $this->subject('[JOB FAILED] Une erreur est survenue pendant le job : ' . $this->job) - ->view('bo.mails.job-failed'); - } -} diff --git a/app/Mail/Jobs/CodeExportSucceed.php b/app/Mail/Jobs/CodeExportSucceed.php new file mode 100644 index 0000000..e921ad7 --- /dev/null +++ b/app/Mail/Jobs/CodeExportSucceed.php @@ -0,0 +1,64 @@ + $this->archive_path, + 'nbCodeFic' => $this->nbCodeFic, + 'nbCodeTot' => $this->nbCodeTot, + 'nbCodeLigne' => $this->nbCodeLigne + ], + ); + } +} diff --git a/app/Mail/Jobs/CodeGenerationSucceed.php b/app/Mail/Jobs/CodeGenerationSucceed.php new file mode 100644 index 0000000..fcfa75e --- /dev/null +++ b/app/Mail/Jobs/CodeGenerationSucceed.php @@ -0,0 +1,56 @@ + $this->amount, + 'gameName' => $this->gameName + ], + ); + } +} diff --git a/app/Mail/Jobs/JobFailed.php b/app/Mail/Jobs/JobFailed.php new file mode 100644 index 0000000..a38da63 --- /dev/null +++ b/app/Mail/Jobs/JobFailed.php @@ -0,0 +1,56 @@ + $this->job]), + ); + } + + /** + * Get the message content definition. + * + * @return \Illuminate\Mail\Mailables\Content + */ + public function content(): \Illuminate\Mail\Mailables\Content + { + return new Content( + markdown: 'mails.jobs.failure', + with: [ + 'job' => $this->job, + 'exception' => $this->exception + ], + ); + } +} diff --git a/app/Mail/NotifAdmin.php b/app/Mail/NotifAdmin.php deleted file mode 100644 index 8fdb222..0000000 --- a/app/Mail/NotifAdmin.php +++ /dev/null @@ -1,37 +0,0 @@ -msg = $msg; - } - - /** - * Build the message. - * - * @return $this - */ - public function build() - { - $msg = $this->msg; - return $this->subject(config('app.name') . " : Erreur")->view('front.basic.notif-admin', compact('msg')); - } -} diff --git a/app/Mail/NotifWinAdmin.php b/app/Mail/NotifWinAdmin.php deleted file mode 100644 index 93df26e..0000000 --- a/app/Mail/NotifWinAdmin.php +++ /dev/null @@ -1,40 +0,0 @@ -settings = $settings; - $this->participation = $participation; - } - - /** - * Build the message. - * - * @return $this - */ - public function build() - { - $participation = $this->participation; - $settings = $this->settings; - return $this->subject($this->settings->name . " : un lot a été gagné") - ->view('front.basic.notif-win-admin-email', compact('participation', 'settings')); - } -} diff --git a/app/Mail/PasswordReset.php b/app/Mail/PasswordReset.php index 459b85c..2d17898 100644 --- a/app/Mail/PasswordReset.php +++ b/app/Mail/PasswordReset.php @@ -2,6 +2,8 @@ namespace App\Mail; +use App\Models\Settings; +use App\Models\User; use Illuminate\Bus\Queueable; use Illuminate\Contracts\Queue\ShouldQueue; use Illuminate\Mail\Mailable; @@ -12,14 +14,21 @@ class PasswordReset extends Mailable implements ShouldQueue use Queueable; use SerializesModels; - protected $user, $settings; + /** @var \App\Models\User */ + protected $user; + + /** @var \App\Models\Settings */ + protected $settings; /** * Create a new message instance. * + * @param \App\Models\User $user + * @param \App\Models\Settings $settings + * * @return void */ - public function __construct($user, $settings) + public function __construct(User $user, Settings $settings) { $this->user = $user; $this->settings = $settings; @@ -32,6 +41,8 @@ class PasswordReset extends Mailable implements ShouldQueue */ public function build() { - return $this->subject('Changement de votre mot de passe')->view('front.basic.password-email')->with(['user' => $this->user, 'settings' => $this->settings]); + return $this->subject('Changement de votre mot de passe') + ->view('front.basic.password-email') + ->with(['user' => $this->user, 'settings' => $this->settings]); } } diff --git a/app/Mail/PrizeWon.php b/app/Mail/PrizeWon.php deleted file mode 100644 index 1b07c70..0000000 --- a/app/Mail/PrizeWon.php +++ /dev/null @@ -1,39 +0,0 @@ -user = $user; - $this->prize = $prize; - $this->settings = $settings; - } - - /** - * Build the message. - * - * @return $this - */ - public function build() - { - return $this->subject("Félicitations " . $this->user->firstname . ", vous avez remporté 1 " . $this->prize->label_one . " !")->view('front.basic.prize-mail') - ->with(['user' => $this->user, 'prize' => $this->prize, 'settings' => $this->settings]); - } -} diff --git a/app/Mail/ReductionWon.php b/app/Mail/ReductionWon.php deleted file mode 100644 index f2a5935..0000000 --- a/app/Mail/ReductionWon.php +++ /dev/null @@ -1,40 +0,0 @@ -user = $user; - $this->coupon = $coupon; - $this->settings = $settings; - $this->crmCoupon = $crmCoupon; - } - - /** - * Build the message. - * - * @return $this - */ - public function build() - { - return $this->subject($this->user->firstname . ", n'attendez plus pour imprimer votre bon d'achat " . $this->settings->name . " !")->view('front.basic.reduction-mail') - ->with(['user' => $this->user, 'coupon' => $this->coupon, 'settings' => $this->settings, 'crmCoupon' => $this->crmCoupon]); - } -} diff --git a/app/Mail/VerifyEmail.php b/app/Mail/VerifyEmail.php deleted file mode 100644 index 5448704..0000000 --- a/app/Mail/VerifyEmail.php +++ /dev/null @@ -1,36 +0,0 @@ -user = $user; - } - - /** - * Build the message. - * - * @return $this - */ - public function build() - { - return $this->subject("Activation du compte")->view('front.basic.verifyemail')->with('user', $this->user); - } -} diff --git a/app/Mail/WinningProof.php b/app/Mail/WinningProof.php deleted file mode 100644 index 318834c..0000000 --- a/app/Mail/WinningProof.php +++ /dev/null @@ -1,49 +0,0 @@ -sticker = $sticker; - $this->ticket = $ticket; - $this->barcode = $barcode; - $this->participation = $participation; - $this->user = $user; - $this->settings = $settings; - } - - /** - * Build the message. - * - * @return $this - */ - public function build() - { - $participation = $this->participation; - $user = $this->user; - $settings = $this->settings; - return $this->subject( - $this->settings->name . " : Preuves de gain de " . $this->user->lastname . " " . $this->user->firstname - )->view( - 'front.basic.winning-proof-email', - compact('participation', 'user', 'settings') - )->attach($this->sticker)->attach($this->ticket)->attach($this->barcode); - } -} diff --git a/app/Mail/Won/DiscountWonMail.php b/app/Mail/Won/DiscountWonMail.php new file mode 100644 index 0000000..5595118 --- /dev/null +++ b/app/Mail/Won/DiscountWonMail.php @@ -0,0 +1,72 @@ +recipient], + subject: trans('Votre gain du jeu :game_name', [ + 'game_name' => $this->game_name + ]), + ); + } + + /** + * Get the message content definition. + * + * @return \Illuminate\Mail\Mailables\Content + */ + public function content(): \Illuminate\Mail\Mailables\Content + { + // * Fix for async usage + View::addNamespace('theme', resource_path('theme/mounted/views')); + return new Content( + markdown: 'theme::mails.won-discount', + with: [ + 'first_name' => $this->recipient->name ?? $this->recipient->address, + 'game_name' => $this->game_name, + 'discount' => $this->discount, + 'print_url' => $this->print_url + ], + ); + } +} diff --git a/app/Mail/Won/PrizeIsSentMail.php b/app/Mail/Won/PrizeIsSentMail.php new file mode 100644 index 0000000..a514acf --- /dev/null +++ b/app/Mail/Won/PrizeIsSentMail.php @@ -0,0 +1,62 @@ +recipient], + subject: trans('Votre lot à été envoyé'), + ); + } + + /** + * Get the message content definition. + * + * @return \Illuminate\Mail\Mailables\Content + */ + public function content(): \Illuminate\Mail\Mailables\Content + { + // * Fix for async usage + View::addNamespace('theme', resource_path('theme/mounted/views')); + return new Content( + markdown: 'theme::mails.prize-sent', + with: [ + 'first_name' => $this->recipient->name ?? $this->recipient->address, + 'game_name' => $this->game_name, + ], + ); + } +} diff --git a/app/Mail/Won/PrizeWonAdminMail.php b/app/Mail/Won/PrizeWonAdminMail.php new file mode 100644 index 0000000..66474f1 --- /dev/null +++ b/app/Mail/Won/PrizeWonAdminMail.php @@ -0,0 +1,90 @@ + $this->game_name + ]), + ); + } + + /** + * Get the message content definition. + * + * @return \Illuminate\Mail\Mailables\Content + */ + public function content(): \Illuminate\Mail\Mailables\Content + { + $participation = [ + trans('Participation :'), + "Code Unique : {$this->unique_code}", + ]; + if ($this->ean_code) { + $participation[] = "Code EAN : {$this->ean_code}"; + } + return new Content( + htmlString: (new MailMessage()) + ->greeting(trans('Bonjour,')) + ->line(trans( + 'Le lot suivant a été gagné :prize_label le :date', + [ + 'prize_label' => $this->prize_label, + 'date' => $this->participation_date->isoFormat('LLLL') + ] + ))->lines([ + trans('Gagnant :'), + "{$this->customer->lastname} {$this->customer->firstname}", + "{$this->customer->address}", + "{$this->customer->address2}", + "{$this->customer->postcode} {$this->customer->city} - {$this->customer->country->label}", + "{$this->customer->email}", + "{$this->customer->phone}", + ])->lines($participation)->render() + ); + } +} diff --git a/app/Mail/Won/PrizeWonMail.php b/app/Mail/Won/PrizeWonMail.php new file mode 100644 index 0000000..d0d888d --- /dev/null +++ b/app/Mail/Won/PrizeWonMail.php @@ -0,0 +1,71 @@ +recipient], + subject: trans('Votre gain du jeu :game_name', [ + 'game_name' => $this->game_name + ]), + ); + } + + /** + * Get the message content definition. + * + * @return \Illuminate\Mail\Mailables\Content + */ + public function content(): \Illuminate\Mail\Mailables\Content + { + // * Fix for async usage + View::addNamespace('theme', resource_path('theme/mounted/views')); + return new Content( + markdown: 'theme::mails.won-prize', + with: [ + 'first_name' => $this->recipient->name ?? $this->recipient->address, + 'game_name' => $this->game_name, + 'prize_label' => $this->prize->label + ], + ); + } +} diff --git a/app/Mail/Won/WinningProofAdminMail.php b/app/Mail/Won/WinningProofAdminMail.php new file mode 100644 index 0000000..02a36ee --- /dev/null +++ b/app/Mail/Won/WinningProofAdminMail.php @@ -0,0 +1,113 @@ + $this->customer->lastname, + 'firstname' => $this->customer->firstname + ]), + ); + } + + /** + * Get the message content definition. + * + * @return \Illuminate\Mail\Mailables\Content + */ + public function content(): \Illuminate\Mail\Mailables\Content + { + $participation = [ + trans('Participation :'), + trans('Code Unique : :code', ['code' => $this->unique_code]), + ]; + if ($this->ean_code) { + $participation[] = trans('Code EAN : :code', ['code' => $this->unique_code]); + } + return new Content( + htmlString: (new MailMessage()) + ->greeting(trans('Bonjour,')) + ->line(trans( + 'Vous trouverez en PJ les preuves de gain du joueur suivant :', + ))->lines([ + trans('Lot :'), + "{$this->prize_label}", + ])->lines([ + trans('Gagnant :'), + "{$this->customer->lastname} {$this->customer->firstname}", + "{$this->customer->address}", + "{$this->customer->address2}", + "{$this->customer->postcode} {$this->customer->city} - {$this->customer->country->label}", + "{$this->customer->email}", + "{$this->customer->phone}", + ])->lines($participation)->render() + ); + } + + /** + * Get the attachments for the message. + * + * @return array + */ + public function attachments(): array + { + return [ + Attachment::fromPath(FileStorageHelper::getFileFullPath($this->sticker)), + Attachment::fromPath(FileStorageHelper::getFileFullPath($this->ticket)), + Attachment::fromPath(FileStorageHelper::getFileFullPath($this->barcode)), + ]; + } +} diff --git a/app/Mail/Won/WinningProofSubmitedMail.php b/app/Mail/Won/WinningProofSubmitedMail.php new file mode 100644 index 0000000..32b092c --- /dev/null +++ b/app/Mail/Won/WinningProofSubmitedMail.php @@ -0,0 +1,62 @@ +recipient], + subject: trans('Nous avons recu vos preuves de gains'), + ); + } + + /** + * Get the message content definition. + * + * @return \Illuminate\Mail\Mailables\Content + */ + public function content(): \Illuminate\Mail\Mailables\Content + { + // * Fix for async usage + View::addNamespace('theme', resource_path('theme/mounted/views')); + return new Content( + markdown: 'theme::mails.submited-proof', + with: [ + 'first_name' => $this->recipient->name ?? $this->recipient->address, + 'game_name' => $this->game_name, + ], + ); + } +} diff --git a/app/Models/ActivityLog.php b/app/Models/ActivityLog.php new file mode 100644 index 0000000..0eca06b --- /dev/null +++ b/app/Models/ActivityLog.php @@ -0,0 +1,129 @@ + + */ + protected $fillable = [ + 'is_anonymous', + 'model_class', + 'model_id', + 'event', + 'data', + 'created_at', + ]; + + /** + * The attributes that should be cast. + * + * @var array + */ + protected $casts = [ + 'is_anonymous' => 'bool', + 'event' => ActivityLogsEventEnum::class, + 'data' => 'json', + 'created_at' => 'datetime', + ]; + + // * METHODS + + /** + * Add new activity to the activity logs list. + * + * @param \Illuminate\Database\Eloquent\Model $model + * @param \App\Enums\ActivityLogs\ActivityLogsEventEnum $eventEnum + * @return void + */ + public static function addActivity(Model $model, ActivityLogsEventEnum $eventEnum): void + { + $isAnonymous = true; + /** @var \Illuminate\Database\Eloquent\Model|null */ + $userModel = auth('backend')->user(); + if (is_object($userModel)) { + $userModel = $userModel->getKeyForSelectQuery(); + $isAnonymous = false; + } + $activity = new self(); + $activity->user_id = $userModel; + $activity->is_console = app()->runningInConsole(); + $activity->is_anonymous = $isAnonymous; + $activity->model_class = \get_class($model); + $activity->model_id = $model->getKey(); + $activity->event = $eventEnum; + $activity->data = static::getChangedColumns($activity, $model, $eventEnum); + $activity->created_at = Carbon::now(); + $activity->saveOrFail(); + } + + /** + * Get old, new columns that has changed. + * + * @param \self $activity + * @param \Illuminate\Database\Eloquent\Model $model + * @param \App\Enums\ActivityLogs\ActivityLogsEventEnum $eventEnum + * @return array|null + */ + public static function getChangedColumns(self $activity, Model $model, ActivityLogsEventEnum $eventEnum): array|null + { + $modelClassName = $activity->model_class; + /** Get type of each fields of the target model */ + $targetModel = $activity->model_class::where( + (new $modelClassName())->getRouteKeyName(), + $activity->model_id + )->first(); + if ($targetModel != null) { + // phpcs:disable Generic.CodeAnalysis.UnusedFunctionParameter.FoundInExtendedClassBeforeLastUsed + $targetModelTypes = collect($targetModel->toArray()) + ->map(function ($field, $fieldIndex) use ($targetModel) { + return Schema::getColumnType($targetModel->getTable(), $fieldIndex); + })->toArray(); + // phpcs:enable + } + /** Return old, new and type of values changed */ + return ($eventEnum === ActivityLogsEventEnum::updated) ? + array_intersect_key($targetModelTypes, $model->getChanges()) : null; + } + + // * RELATIONS + + /** + * User BelongsTo relation. + * + * @return \Illuminate\Database\Eloquent\Relations\BelongsTo + */ + public function user(): \Illuminate\Database\Eloquent\Relations\BelongsTo + { + return $this->belongsTo(User::class); + } +} diff --git a/app/Models/BannedIp.php b/app/Models/BannedIp.php index 150b0a3..dff3cb4 100644 --- a/app/Models/BannedIp.php +++ b/app/Models/BannedIp.php @@ -2,10 +2,28 @@ namespace App\Models; +use App\Casts\Ip; +use App\Traits\Models\IsCachedAsCollection; +use Illuminate\Database\Eloquent\Factories\HasFactory; use Illuminate\Database\Eloquent\Model; +/** + * BannedIp. + * + * @property integer $ip IP. + */ class BannedIp extends Model { + use IsCachedAsCollection; + use HasFactory; + + /** + * Indicates if the model should be timestamped. + * + * @var boolean + */ + public $timestamps = false; + /** * The attributes that are mass assignable. * @@ -14,9 +32,25 @@ class BannedIp extends Model protected $fillable = ['ip']; /** - * Indicates if the model should be timestamped. + * The attributes that should be cast. * - * @var boolean + * @var array */ - public $timestamps = false; + protected $casts = [ + 'ip' => Ip::class + ]; + + // * EVENTS + + /** + * Perform any actions required after the model boots. + * + * @return void + */ + protected static function booted() + { + static::created(fn () => self::removeCached()); + static::updated(fn () => self::removeCached()); + static::deleted(fn () => self::removeCached()); + } } diff --git a/app/Models/Code.php b/app/Models/Code.php index 4f79b45..d0d35e5 100644 --- a/app/Models/Code.php +++ b/app/Models/Code.php @@ -2,21 +2,57 @@ namespace App\Models; +use Illuminate\Database\Eloquent\Casts\Attribute; use Illuminate\Database\Eloquent\Model; +use Illuminate\Database\Eloquent\Relations\HasMany; +use Illuminate\Support\Facades\Cache; use Kwaadpepper\Serial\SerialCaster; +/** + * Code. + * + * @property string $code_unique The unique code matching this code id. + * @property boolean $code_exported Is the code exported ? + * @property \Illuminate\Support\Carbon $date_creation Code creation date. + * + * @property-read string|null $code_unique The unique code + * @property-read boolean $has_been_used_too_many_times Has this code been used too many times ? + * + * @method public static function intToSerial($int) Generate a serial from an int. + * @method public static function serialToInt($serial) Get an int from a serial. + * + * @property-read \Illuminate\Database\Eloquent\Collection|\App\Models\Participation[] $participations + * Associated participations. + */ class Code extends Model { + /** + * Indicates if the IDs are auto-incrementing. + * + * @var boolean + */ + public $incrementing = false; + /** * The attributes that are mass assignable. * * @var array */ protected $fillable = [ - 'code_used', 'code_exported', + 'code_exported', 'date_creation' ]; + /** + * The attributes that should be cast. + * + * @var array + */ + protected $casts = [ + 'code_exported' => 'bool', + 'date_creation' => 'date', + ]; + /** * Indicates if the model should be timestamped. * @@ -24,6 +60,20 @@ class Code extends Model */ public $timestamps = false; + // * EVENTS + + /** + * Perform any actions required after the model boots. + * + * @return void + */ + protected static function booted() + { + static::created(fn () => Cache::forget('codes.count')); + static::updated(fn () => Cache::forget('codes.count')); + static::deleted(fn () => Cache::forget('codes.count')); + } + // * RELATIONS /** @@ -31,23 +81,38 @@ class Code extends Model * * @return \Illuminate\Database\Eloquent\Relations\HasMany */ - public function participations() + public function participations(): HasMany { return $this->hasMany(Participation::class, 'code_unique_id'); } - // * FUNCTIONS + // * METHODS + /** * Generate code_unique attribute * * @return string|null */ - public function getCodeUniqueAttribute() + public function codeUnique(): Attribute { - if (!$this->id or !\is_integer($this->id) or $this->id < 1) { - return null; - } - return self::intToSerial($this->id); + return Attribute::make( + get: function (): ?string { + if (!$this->id or !\is_integer($this->id) or $this->id < 1) { + return null; + } + return self::intToSerial($this->id); + } + ); + } + + /** + * Get the key used for serial int caster + * + * @return integer + */ + public static function serialKeyHash(): int + { + return \abs(\crc32(config('app.key'))); } /** @@ -61,14 +126,14 @@ class Code extends Model { return SerialCaster::encode( $int, - \abs(\crc32(config('app.key'))), - app(Settings::class)->code_length, + self::serialKeyHash(), + config('codes.codeLength'), config('codes.codeCharList') ); } /** - * Generate a serial from an int. + * Get an int from a serial. * * @param string $serial * @return integer The ID represented @@ -78,8 +143,29 @@ class Code extends Model { return SerialCaster::decode( $serial, - \abs(\crc32(config('app.key'))), + self::serialKeyHash(), config('codes.codeCharList') ); } + + // * GETTERS + + /** + * Get has_been_used_too_namy_times attribute + * + * @return \Illuminate\Database\Eloquent\Casts\Attribute + */ + public function hasBeenUsedTooManyTimes(): Attribute + { + /** @var \App\Models\Settings */ + $settings = app(Settings::class); + return Attribute::make( + get: fn (): bool => $settings->nb_unique_code_use ? + Code::query()->whereHas( + 'participations', + operator: '>', + count: $settings->nb_unique_code_use + )->count() : false + ); + } } diff --git a/app/Models/CodeEan.php b/app/Models/CodeEan.php deleted file mode 100644 index dc07b29..0000000 --- a/app/Models/CodeEan.php +++ /dev/null @@ -1,31 +0,0 @@ -hasMany(Participation::class); - } -} diff --git a/app/Models/Content.php b/app/Models/Content.php deleted file mode 100644 index c75f4f1..0000000 --- a/app/Models/Content.php +++ /dev/null @@ -1,9 +0,0 @@ - + */ + protected $fillable = [ + 'email', + ]; + + /** + * The attributes that should be cast. + * + * @var array + */ + protected $casts = [ + 'last_connection' => 'datetime', + 'email_verified_at' => 'datetime', + ]; + + // * EVENTS + + /** + * Perform any actions required after the model boots. + * + * @return void + */ + protected static function booted() + { + // * EVENT CLOSURES. + static::creating(function (self $model) { + static::assertEmailIsUnique($model->id, $model->email); + }); + static::updating(function (self $model) { + static::assertEmailIsUnique($model->id, $model->email); + }); + static::deleting(function () { + throw new \RuntimeException('This cannot be done à cause de MesBr'); + }); + static::deleted(function (self $model) { + if ($model->forceDeleting) { + if ($model->existsInCrm()) { + $model->api_data->delete(); + } + $model->notify(new DestroyedCustomer()); + } else { + $model->notify(new DestroyCustomer()); + } + }); + static::restored(function () { + \session()->flash( + 'warning', + \trans('Votre compte à été réactivé.') + ); + }); + } + + // * RELATIONSHIPS + + /** + * Has Many Participation relation + * + * @return \Illuminate\Database\Eloquent\Relations\HasMany + */ + public function participations(): HasMany + { + return $this->hasMany(Participation::class, 'customer_id'); + } + + // * METHODS + + /** + * Supprimer les comptes inactivés depuis plus d'une semaine + * de manière permanente. + * + * ! Les comptes non activés depuis une semaine ou les comptes supprimés depuis une semaine. + * + * @return \Illuminate\Database\Query\Builder + */ + public function prunable(): Builder + { + return static::query()->where(function (Builder $q) { + $q->where('updated_at', '<=', now()->subWeek()) + ->whereNull('email_verified_at'); + })->orWhere(function (Builder $q) { + $q->where('deleted_at', '<=', now()->subWeek()); + }); + } + + /** + * Asserts using validation that the email is unique + * + * @param mixed $id + * @param mixed $email + * @return void + * @throws \Illuminate\Validation\ValidationException If user email as already used. + */ + private static function assertEmailIsUnique(mixed $id, mixed $email): void + { + self::assertFieldIsUnique($id, 'email', $email); + } + + /** + * Asserts that the field is unique + * + * @param mixed $id + * @param string $field + * @param mixed $value + * @return void + * @throws \Illuminate\Validation\ValidationException If the field is not unique. + */ + private static function assertFieldIsUnique(mixed $id, string $field, mixed $value): void + { + Validator::make([$field => $value], [ + $field => Rule::unique('customers', $field)->ignore($id), + ], [ + $field . '.unique' => trans('La valeur :value pour le champ :attribute est déjà utilisé', [ + 'attribute' => $field, + 'value' => $value + ]) + ])->validate(); + } + + // * --- AUTH --- + + /** + * Send the email verification notification. + * + * @return void + */ + public function sendEmailVerificationNotification() + { + $this->deleteIfDoesNotExistsInCrm(); + $this->notify(new VerifyEmail()); + } + + /** + * Mark the given user's email as verified. + * + * @return boolean + * @throws \LDC\LDCCRM\Exceptions\CrmException If an error occurs on server side or on getting response. + * @throws \LDC\LDCCRM\Exceptions\ApiErrorException If any error or \LDC\LDCCRM\Enums\ApiError occurs. + * @phpcs:ignore Squiz.Commenting.FunctionCommentThrowTag.WrongNumber + */ + public function markEmailAsVerified() + { + $this->deleteIfDoesNotExistsInCrm(); + try { + return $this->api_data->activate() && parent::markEmailAsVerified(); + } catch (ApiErrorException $e) { + if ($e->getApiError()->equals(ApiError::customerAlreadyActive())) { + return true && parent::markEmailAsVerified(); + } + throw $e; + } + } + + /** + * Send the password reset notification. + * + * @param mixed $token + * @return void + */ + public function sendPasswordResetNotification(mixed $token) + { + $this->deleteIfDoesNotExistsInCrm(); + /** @var string $token */ + $this->notify(new ResetPassword($token)); + } + + /** + * Check if the customer exists in CRM. + * + * @return boolean + */ + public function existsInCrm(): bool + { + return $this->hashcode and CrmCustomer::find($this->hashcode); + } + + /** + * Force delete and logout if is logged in case the customer + * does not exists in CRM. + * + * @return void + * @throws \Illuminate\Validation\ValidationException If the account is deleted because does not exists in CRM. + */ + private function deleteIfDoesNotExistsInCrm(): void + { + if ($this->existsInCrm()) { + return; + } + /** @var static|null $loggedCustomer */ + $loggedCustomer = \auth('frontend')->user(); + $isLogged = \optional($loggedCustomer)->id === $this->id and !\is_null($this->id); + if ($isLogged) { + \auth('frontend')->logout(); + } + $this->forceDelete(); + throw ValidationException::withMessages([ + 'error' => trans('Le compte \'existe pas.') + ]); + } + + // * --- END AUTH --- + + /** + * Get api_data attribute, the crm Data of a customer + * + * @return \Illuminate\Database\Eloquent\Casts\Attribute + */ + public function apiData(): Attribute + { + return Attribute::make( + get: fn (): CrmCustomer => self::cacheCrm($this->hashcode, "apiData", function () { + /** @var \LDC\LDCCRM\CrmApiV2 */ + $crm = app('crmAPI'); + $crmCustomer = $crm->getCustomer($this->hashcode); + if (!$crmCustomer) { + throw new CrmException('CRM get Customer returned null'); + } + return $crmCustomer; + }) + ); + } + + /** + * Set the crm Data of a customer + * + * @param array $data + * @return boolean + * + * @throws \LDC\LDCCRM\Exceptions\CrmException If an error occurs on server side or on getting response. + * @throws \LDC\LDCCRM\Exceptions\ApiErrorException If any error or \LDC\LDCCRM\Enums\ApiError occurs. + * @phpcs:disable Squiz.Commenting.FunctionCommentThrowTag.WrongNumber + */ + public function updateApiData(array $data): bool + { + // phpcs:enable + /** @var \LDC\LDCCRM\Models\Customer */ + $crmCustomer = $this->api_data; + if (!$crmCustomer) { + throw new CrmException('CRM get Customer returned null'); + } + + $crmCustomer->fill($data); + $result = $crmCustomer->save(); + self::clearCrmCached($crmCustomer->hashcode, 'apiData'); + + return $result; + } + + // * CRM CACHE + + /** + * Clear cached apiData + * + * @return void + */ + public function clearApiDataCache(): void + { + /** @var \LDC\LDCCRM\Models\Customer */ + $crmCustomer = $this->api_data; + self::clearCrmCached($crmCustomer->hashcode, 'apiData'); + } + + /** + * Put customer crm part in cache + * + * @template T + * @param string $uuid The customer uuid. + * @param string $part_name The part name for the cache path. + * @param \Closure(void):T $part The part to cache. + * @param integer $ttl Time to live in seconds for the cache part. + * @return T + * @phpcs:disable Squiz.Commenting.FunctionComment.IncorrectTypeHint + */ + public static function cacheCrm(string $uuid, string $part_name, \Closure $part, int $ttl = 60 * 60) + { + // phpcs:enable + return Cache::remember("customers.{$uuid}.{$part_name}", $ttl, $part); + } + + /** + * Clear customer crm cache part or totally + * + * @param string $uuid + * @param string $part_name + * @return void + */ + public static function clearCrmCached(string $uuid, string $part_name): void + { + $cache = "customers.{$uuid}"; + if ($part_name) { + $cache .= ".{$part_name}"; + } + Cache::forget($cache); + } + + // * --- END CRM CACHE + + /** + * This mutate Customer attributes to array + * including only non critical properties and crm values + * (One that can be send to front office without security breach) + * + * @return array + */ + public function toArray() + { + if ($this->hashcode) { + return collect(array_merge( + parent::toArray(), + (array)$this->apiData + ))->intersectByKeys([ + 'email' => '', + 'firstname' => '', + 'lastname' => '', + 'address' => '', + 'address2' => '', + 'postcode' => '', + 'birth_date' => '', + 'city' => '', + 'country' => '', + 'opt_in' => '', + 'phone' => '' + ])->toArray(); + } else { + return parent::toArray(); + } + } +} diff --git a/app/Models/Discount.php b/app/Models/Discount.php new file mode 100644 index 0000000..b0f766b --- /dev/null +++ b/app/Models/Discount.php @@ -0,0 +1,32 @@ +hasOne(Participation::class); + } +} diff --git a/app/Models/FaqQuestion.php b/app/Models/FaqQuestion.php index 8e57fe2..ef3854a 100644 --- a/app/Models/FaqQuestion.php +++ b/app/Models/FaqQuestion.php @@ -2,44 +2,67 @@ namespace App\Models; +use App\Traits\Models\IsCachedAsCollection; +use Illuminate\Database\Eloquent\Factories\HasFactory; use Illuminate\Database\Eloquent\Model; +use Illuminate\Database\Eloquent\Relations\BelongsTo; +/** + * FaqQuestion. + * + * @property string $question Question + * @property string $answer Answer + * @property-read \Illuminate\Support\Carbon $created_at Creation Date. + * @property-read \Illuminate\Support\Carbon $updated_at Last update Date. + * + * @property-read \App\Models\FaqTheme $theme Associated theme. + */ class FaqQuestion extends Model { + use HasFactory; + use IsCachedAsCollection; + /** * The attributes that are mass assignable. * * @var array */ protected $fillable = [ - 'question', 'answer', 'positive_vote', - 'negative_vote', 'theme_id' + 'question', + 'answer', + 'theme_id' ]; + /** + * The relations to eager load on every query. + * + * @var array + */ + protected $with = ['theme']; + + // * EVENTS + + /** + * Perform any actions required after the model boots. + * + * @return void + */ + protected static function booted() + { + static::created(fn () => self::removeCached()); + static::updated(fn () => self::removeCached()); + static::deleted(fn () => self::removeCached()); + } + + // * RELATIONS + /** * Theme relation + * * @return \Illuminate\Database\Eloquent\Relations\BelongsTo */ - public function theme() + public function theme(): BelongsTo { return $this->belongsTo(FaqTheme::class, 'theme_id'); } - - /** - * get Utility - * @return float|integer - */ - public function getUtilityAttribute() - { - $pourcent = 0; - - if ( - $this->positive_vote !== null && $this->negative_vote !== null && $this->positive_vote >= $this->negative_vote && $this->positive_vote > 0 && $this->negative_vote > 0 - ) { - $ratio = $this->negative_vote / $this->positive_vote; - $pourcent = ceil((1 - $ratio) * 100); - } - - return $pourcent; - } } diff --git a/app/Models/FaqTheme.php b/app/Models/FaqTheme.php index 4f56a73..7acf5fe 100644 --- a/app/Models/FaqTheme.php +++ b/app/Models/FaqTheme.php @@ -2,10 +2,28 @@ namespace App\Models; +use App\Traits\Models\IsCachedAsCollection; +use Illuminate\Database\Eloquent\Factories\HasFactory; use Illuminate\Database\Eloquent\Model; +use Illuminate\Database\Eloquent\Relations\HasMany; +use Illuminate\Validation\ValidationException; +/** + * FaqTheme. + * + * @property string $question Question + * @property string $answer Answer + * @property-read \Illuminate\Support\Carbon $created_at Creation Date. + * @property-read \Illuminate\Support\Carbon $updated_at Last update Date. + * + * @property-read \Illuminate\Database\Eloquent\Collection|\App\Models\FaqQuestion[] $questions + * Associated questions. + */ class FaqTheme extends Model { + use HasFactory; + use IsCachedAsCollection; + /** * The attributes that are mass assignable. * @@ -13,18 +31,38 @@ class FaqTheme extends Model */ protected $fillable = ['name']; + // * EVENTS + /** - * The relations to eager load on every query. + * Perform any actions required after the model boots. * - * @var array + * @return void */ - protected $with = ['questions']; + protected static function booted() + { + static::created(fn () => self::removeCached()); + static::updated(fn () => self::removeCached()); + static::deleting(function (self $model) { + if ($model->questions()->count()) { + throw ValidationException::withMessages([ + 'error' => + // phpcs:ignore Generic.Files.LineLength.TooLong + trans("Il n'est pas possible de supprimer ce theme car il est associé a des questions,\u{00A0} suppirmer les questions d'abord.") + ]); + } + }); + static::deleted(fn () => self::removeCached()); + } + + + // * RELATIONS /** * Question relation + * * @return \Illuminate\Database\Eloquent\Relations\HasMany */ - public function questions() + public function questions(): HasMany { return $this->hasMany(FaqQuestion::class, 'theme_id'); } diff --git a/app/Models/GainView.php b/app/Models/GainView.php deleted file mode 100644 index 3e8600d..0000000 --- a/app/Models/GainView.php +++ /dev/null @@ -1,24 +0,0 @@ -hasMany(Prize::class, 'gain_view_id'); - } -} diff --git a/app/Models/InstantWin.php b/app/Models/InstantWin.php index 4c58117..f3a05e8 100644 --- a/app/Models/InstantWin.php +++ b/app/Models/InstantWin.php @@ -2,10 +2,22 @@ namespace App\Models; +use App\Traits\Models\IsCachedAsCollection; use Illuminate\Database\Eloquent\Model; +use Illuminate\Database\Eloquent\Relations\BelongsTo; +/** + * InstantWin. + * + * @property \Illuminate\Support\Carbon $available_at When the instant win will be available. + * + * @property-read \App\Models\Prize $prize Associated prize. + * @property-read \App\Models\Participation $participation Associated participation. + */ class InstantWin extends Model { + use IsCachedAsCollection; + /** * Indicates if the model should be timestamped. * @@ -20,21 +32,28 @@ class InstantWin extends Model */ protected $with = ['prize']; + // * EVENTS + /** - * The attributes that should be cast to native types. + * Perform any actions required after the model boots. * - * @var array + * @return void */ - protected $casts = [ - 'won' => 'bool' - ]; + protected static function booted() + { + static::creating(fn () => self::removeCached()); + static::updating(fn () => self::removeCached()); + static::deleting(fn () => self::removeCached()); + } + + // * RELATIONSHIPS /** * BelongsTo Prize relation * * @return \Illuminate\Database\Eloquent\Relations\BelongsTo */ - public function prize() + public function prize(): BelongsTo { return $this->belongsTo(Prize::class, 'prize_id'); } @@ -42,9 +61,9 @@ class InstantWin extends Model /** * One to one relation participation * - * @return \Illuminate\Database\Eloquent\Relations\HasOne + * @return \Illuminate\Database\Eloquent\Relations\BelongsTo */ - public function participation() + public function participation(): BelongsTo { return $this->belongsTo(Participation::class); } diff --git a/app/Models/Participation.php b/app/Models/Participation.php index 6919406..f30aaf2 100644 --- a/app/Models/Participation.php +++ b/app/Models/Participation.php @@ -2,18 +2,116 @@ namespace App\Models; +use App\Casts\Ip; +use App\Lib\Helpers\FileStorageHelper; +use App\Notifications\Customer\PrizeHasBeenSent; +use Illuminate\Contracts\Database\Eloquent\Builder; +use Illuminate\Database\Eloquent\Casts\Attribute; use Illuminate\Database\Eloquent\Model; +use Illuminate\Database\Eloquent\Relations\BelongsTo; +use Illuminate\Database\Eloquent\Relations\HasOne; +use IPLib\Address\AddressInterface; +/** + * Participation. + * + * @property \IPLib\Address\AddressInterface $ip IP + * @property string $sticker Path of the sticker file + * @property string $ticket Path of the ticket file + * @property string $barcode Path of the barcode file + * @property string $comment Administrators comments + * @property boolean $prize_sent Has the won prize been sent ? + * @property-read \Illuminate\Support\Carbon $created_at Creation Date. + * @property-read \Illuminate\Support\Carbon $updated_at Last update Date. + * + * @property-read string|null $ean_code Accessor for ean_code, from product table. + * + * @property-read \App\Models\Customer $customer Associated customer. + * @property-read \App\Models\Code $code Associated code. + * @property-read \App\Models\Product|null $product Associated product. + * @property-read \App\Models\InstantWin $instantWin Associated instantWin. + * @property-read \App\Models\Discount|null $discount Associated discount. + */ class Participation extends Model { + /** + * The attributes that are mass assignable. + * + * @var array + */ + protected $fillable = [ + 'barcode', 'ticket', 'sticker', + ]; + + /** + * The attributes that should be cast. + * + * @var array + */ + protected $casts = [ + 'ip' => Ip::class, + 'price_sent' => 'bool' + ]; + + /** + * The model's attributes. + * + * @var array + */ + protected $attributes = [ + 'sticker' => null, + 'ticket' => null, + 'barcode' => null, + ]; + + /** + * Perform any actions required after the model boots. + * + * @return void + */ + protected static function booted() + { + static::creating(function (self $model) { + self::manageFields($model); + }); + static::updating(function (self $model) { + self::manageFields($model); + /** @var \App\Models\Settings */ + $settings = app(Settings::class); + if ( + // ? Les notification doivent être envoyées ? + $settings->notify_prize_sent and + // ? On veux marquer le lot comme envoyé ? + $model->prize_sent and + !$model->getOriginal('prize_sent') + ) { + /** @var \App\Models\Customer */ + $customer = $model->customer; + $customer->notify(new PrizeHasBeenSent()); + } + }); + static::updated(function (self $model) { + FileStorageHelper::removeOldFile($model, 'barcode'); + FileStorageHelper::removeOldFile($model, 'ticket'); + FileStorageHelper::removeOldFile($model, 'sticker'); + }); + static::deleted(function (self $model) { + FileStorageHelper::removeFile($model, 'barcode'); + FileStorageHelper::removeFile($model, 'ticket'); + FileStorageHelper::removeFile($model, 'sticker'); + }); + } + + // * RELATIONSHIPS + /** * BelongsTo User relation * * @return \Illuminate\Database\Eloquent\Relations\BelongsTo */ - public function user() + public function customer(): BelongsTo { - return $this->belongsTo(User::class); + return $this->belongsTo(Customer::class); } /** @@ -21,19 +119,29 @@ class Participation extends Model * * @return \Illuminate\Database\Eloquent\Relations\BelongsTo */ - public function code() + public function code(): BelongsTo { return $this->belongsTo(Code::class, 'code_unique_id'); } /** - * BelongsTo CodesEAN relation + * BelongsTo Product relation * * @return \Illuminate\Database\Eloquent\Relations\BelongsTo */ - public function codeEan() + public function product(): BelongsTo { - return $this->belongsTo(CodeEan::class); + return $this->belongsTo(Product::class); + } + + /** + * One to one Discount relation + * + * @return \Illuminate\Database\Eloquent\Relations\BelongsTo + */ + public function discount(): BelongsTo + { + return $this->belongsTo(Discount::class); } /** @@ -41,28 +149,81 @@ class Participation extends Model * * @return \Illuminate\Database\Eloquent\Relations\HasOne */ - public function instantWin() + public function instantWin(): HasOne { return $this->hasOne(InstantWin::class); } + // * GETTERS + /** - * One to one Reduction relation + * Accessor for ean_code, from product table. * - * @return \Illuminate\Database\Eloquent\Relations\HasOne + * @return \Illuminate\Database\Eloquent\Casts\Attribute; */ - public function reduction() + public function eanCode(): Attribute { - return $this->hasOne(Reduction::class); + return Attribute::make( + get: fn () => optional($this->product)->ean_code, + ); + } + + // * METHODS + + /** + * Make new participation but do not persist on DB + * + * @param \IPLib\Address\AddressInterface $ip Ip for the participation. + * @param \App\Models\Customer $customer The Customer playing the game. + * @param \App\Models\Code $code The unique code used to play. + * @param null|\App\Models\Product $product The product that holds the sticker if codes are actived. + * @return \App\Models\Participation + */ + public static function makeNew( + AddressInterface $ip, + Customer $customer, + Code $code, + Product|null $product = null + ): self { + $self = new self(); + $self->ip = $ip; + $self->customer()->associate($customer); + $self->code()->associate($code); + if ($product) { + $self->product()->associate($product); + } + return $self; } /** - * ean_code_value accessor + * Check if a customer has already won * - * @return integer|null + * @param \App\Models\Customer $customer + * @return boolean */ - public function getCodeEanValueAttribute() + public static function customerAlreadyHasAnInstantWin(Customer $customer): bool { - return optional($this->codeEan)->code; + return self::query()->whereHas('instantWin') + ->whereHas('customer', fn (Builder $q) => $q->where('id', $customer->id)) + ->exists(); + } + + /** + * Common methods function. + * + * @param \Illuminate\Database\Eloquent\Model $model + * @return void + */ + private static function manageFields(Model $model) + { + if ($model->barcode) { + $model->barcode = FileStorageHelper::storeFile($model, $model->barcode, true); + } + if ($model->ticket) { + $model->ticket = FileStorageHelper::storeFile($model, $model->ticket, true); + } + if ($model->sticker) { + $model->sticker = FileStorageHelper::storeFile($model, $model->sticker, true); + } } } diff --git a/app/Models/Prize.php b/app/Models/Prize.php index 6f4fc37..e268c93 100644 --- a/app/Models/Prize.php +++ b/app/Models/Prize.php @@ -2,17 +2,133 @@ namespace App\Models; +use App\Lib\Helpers\FileStorageHelper; +use App\Lib\Helpers\ToolboxHelper; +use App\Traits\Models\IsCachedAsCollection; +use Illuminate\Contracts\Database\Eloquent\Builder; use Illuminate\Database\Eloquent\Model; +use Illuminate\Database\Eloquent\Relations\HasMany; +use Illuminate\Validation\ValidationException; +/** + * Prize. + * + * @property string $label Label + * @property string $picture Path of the picture + * @property string $picture_alt Alt text for the picture + * @property string $picture_title Title text for the picture + * @property string $arg_title Description title + * @property string|null $arg_subtitle Description subtitle + * @property string $arg_content Description content + * @property integer $quantity Quantity + * @property string|null $pdf_winning_proof Path of the winning proof file + * @property-read \Illuminate\Support\Carbon $created_at Creation Date. + * @property-read \Illuminate\Support\Carbon $updated_at Last update Date. + * + * @property-read \Illuminate\Database\Eloquent\Collection|\App\Models\InstantWin[] $instantWins + * Associated instantWins. + */ class Prize extends Model { - public function gain_view() + use IsCachedAsCollection; + + /** + * The attributes that are mass assignable. + * + * @var array + */ + protected $fillable = [ + 'label', + 'picture', + 'picture_alt', + 'picture_title', + 'arg_title', + 'arg_subtitle', + 'arg_content', + 'quantity', + 'pdf_winning_proof' + ]; + + // * EVENTS + + /** + * Perform any actions required after the model boots. + * + * @return void + */ + protected static function booted() { - return $this->belongsTo(GainView::class, 'gain_view_id'); + static::creating(function (self $model) { + ToolboxHelper::assertGameIsNotOppened(); + self::manageFields($model); + }); + static::created(function () { + self::removeCached(); + }); + static::updating(function (self $model) { + ToolboxHelper::assertGameIsNotOppened(); + self::manageFields($model); + }); + static::updated(function (self $model) { + self::removeCached(); + FileStorageHelper::removeOldFile($model, 'picture'); + FileStorageHelper::removeOldFile($model, 'pdf_winning_proof'); + }); + static::deleting(function (self $model) { + ToolboxHelper::assertGameIsNotOppened(); + if ($model->instantWins()->count()) { + throw ValidationException::withMessages([ + 'error' => + // phpcs:ignore Generic.Files.LineLength.TooLong + trans("Il n'est pas possible de supprimer ce lot car il est associé a des instants gagnants,\u{00A0} supprimer les instants gagnants d'abord.") + ]); + } + }); + static::deleted(function (self $model) { + self::removeCached(); + FileStorageHelper::removeFile($model, 'picture'); + FileStorageHelper::removeFile($model, 'pdf_winning_proof'); + }); } - public function instant_wins() + // * METHODS + + /** + * Common methods function. + * + * @param self $model + * @return void + */ + private static function manageFields(self $model) + { + $model->picture = FileStorageHelper::storeFile($model, $model->picture, true); + if ($model->pdf_winning_proof) { + $model->pdf_winning_proof = FileStorageHelper::storeFile($model, $model->pdf_winning_proof, true); + } + } + + // * RELATIONSHIPS + + /** + * HasMany InstantWin relation + * + * @return \Illuminate\Database\Eloquent\Relations\BelongsTo + */ + public function instantWins(): HasMany { return $this->hasMany(InstantWin::class, 'prize_id'); } + + // * CACHE METHOD + + /** + * Change query for cached elements + * + * @param \Illuminate\Database\Eloquent\Builder $query + * @return \Illuminate\Database\Eloquent\Builder + */ + protected static function queryCached(Builder $query): Builder + { + return $query->with('instantWins'); + } } diff --git a/app/Models/Product.php b/app/Models/Product.php index da5c19d..cef4235 100644 --- a/app/Models/Product.php +++ b/app/Models/Product.php @@ -2,16 +2,105 @@ namespace App\Models; +use App\Lib\Helpers\FileStorageHelper; +use App\Traits\Models\IsCachedAsCollection; +use Illuminate\Database\Eloquent\Factories\HasFactory; use Illuminate\Database\Eloquent\Model; +use Illuminate\Database\Eloquent\Relations\BelongsTo; +use Illuminate\Database\Eloquent\Relations\HasMany; +/** + * Product. + * + * @property string $name Name + * @property string $picture Path of the picture + * @property string $picture_alt Alt text for the picture + * @property string $picture_title Title text for the picture + * @property integer $ean_code Ean code + * @property-read \Illuminate\Support\Carbon $created_at Creation Date. + * @property-read \Illuminate\Support\Carbon $updated_at Last update Date. + * + * @property-read \App\Models\Range[] $range Associated range. + * @property-read \Illuminate\Database\Eloquent\Collection|\App\Models\Participation[] $participations + * Associated participations. + */ class Product extends Model { + use HasFactory; + use IsCachedAsCollection; + + /** + * The attributes that are mass assignable. + * + * @var array + */ + protected $fillable = [ + 'name', + 'picture', + 'picture_alt', + 'picture_title', + 'ean_code', + 'range_id', + ]; + + // * EVENTS + + /** + * Perform any actions required after the model boots. + * + * @return void + */ + protected static function booted() + { + static::creating(function (self $model) { + self::manageFields($model); + }); + static::created(fn () => self::removeCached()); + static::updating(function (self $model) { + self::manageFields($model); + }); + static::updated(function (self $model) { + self::removeCached(); + FileStorageHelper::removeOldFile($model, 'picture'); + }); + static::deleted(function (self $model) { + self::removeCached(); + FileStorageHelper::removeFile($model, 'picture'); + }); + } + + // * METHODS + + /** + * Common methods function. + * + * @param \Illuminate\Database\Eloquent\Model $model + * @return void + */ + private static function manageFields(Model $model) + { + $model->picture = FileStorageHelper::storeFile($model, $model->picture, true); + } + + // * RELATIONSHIPS + /** * Range relation + * * @return \Illuminate\Database\Eloquent\Relations\BelongsTo */ - public function range() + public function range(): BelongsTo { return $this->belongsTo(Range::class); } + + /** + * Participations relation + * + * @return \Illuminate\Database\Eloquent\Relations\HasMany + */ + public function participations(): HasMany + { + return $this->hasMany(Participation::class); + } } diff --git a/app/Models/Range.php b/app/Models/Range.php index 5b925b9..9f3d159 100644 --- a/app/Models/Range.php +++ b/app/Models/Range.php @@ -2,22 +2,80 @@ namespace App\Models; +use App\Lib\Helpers\FileStorageHelper; +use Illuminate\Database\Eloquent\Factories\HasFactory; use Illuminate\Database\Eloquent\Model; +use Illuminate\Database\Eloquent\Relations\HasMany; +/** + * Range. + * + * @property string $name Name + * @property string $picture Path of the picture + * @property-read \Illuminate\Support\Carbon $created_at Creation Date. + * @property-read \Illuminate\Support\Carbon $updated_at Last update Date. + * + * @property-read \Illuminate\Database\Eloquent\Collection|\App\Models\Product[] $products + * Associated products. + */ class Range extends Model { + use HasFactory; + /** * The attributes that are mass assignable. * * @var array */ - protected $fillable = ['name']; + protected $fillable = [ + 'name', + 'picture' + ]; + + // * EVENTS + + /** + * Perform any actions required after the model boots. + * + * @return void + */ + protected static function booted() + { + static::creating(function (self $model) { + self::manageFields($model); + }); + static::updating(function (self $model) { + self::manageFields($model); + }); + static::updated(function (self $model) { + FileStorageHelper::removeOldFile($model, 'picture'); + }); + static::deleted(function (self $model) { + FileStorageHelper::removeFile($model, 'picture'); + }); + } + + // * METHODS + + /** + * Common methods function. + * + * @param \Illuminate\Database\Eloquent\Model $model + * @return void + */ + private static function manageFields(Model $model) + { + $model->picture = FileStorageHelper::storeFile($model, $model->picture, true); + } + + // * RELATIONSHIPS /** * Product relation + * * @return \Illuminate\Database\Eloquent\Relations\HasMany */ - public function products() + public function products(): HasMany { return $this->hasMany(Product::class); } diff --git a/app/Models/Reduction.php b/app/Models/Reduction.php deleted file mode 100644 index 7323441..0000000 --- a/app/Models/Reduction.php +++ /dev/null @@ -1,18 +0,0 @@ -belongsTo(Participation::class); - } -} diff --git a/app/Models/Settings.php b/app/Models/Settings.php index b8da128..f6e0259 100644 --- a/app/Models/Settings.php +++ b/app/Models/Settings.php @@ -2,17 +2,256 @@ namespace App\Models; +use App\Casts\AsArrayOfDiscount; +use App\Lib\Discount; +use App\Lib\Helpers\FileStorageHelper; +use App\Traits\Models\IsCachedAsCollection; +use Carbon\CarbonInterval; +use Illuminate\Database\Eloquent\Casts\Attribute; use Illuminate\Database\Eloquent\Model; +use Illuminate\Support\Facades\Cache; +/** + * Settings. + * + * @property string $name The game name + * @property string $company Name of the company that organizes the game + * @property \Illuminate\Support\Carbon $start_date Start date of the game + * @property \Illuminate\Support\Carbon $end_date End date of the game + * @property int $nb_participation_player Max paticipation per player (0 = unlimited) + * @property int $nb_participation_ip Max paticipation per ip (0 = unlimited) + * @property int $nb_unique_code_use Max unique code use (0 = unlimited) + * Dans tous les cas 1 joueur ne peut utiliser + * qu'une seule fois 1 code donné + * @property boolean $notify_prize_sent Should the game send notifications + * when the prize is sent ? + * @property boolean $use_ean_codes Should the game use ean codes ? + * @property boolean $activated_teaser Is the teaser active ? + * @property boolean $activated_close_page Is the close page active ? + * @property \Illuminate\Support\Carbon $close_page_active_date End date of the close page + * @property string $redirect_close Link to redirect when the game is ended + * @property boolean $discounts_activated Are the discounts active ? + * @property string $discounts_site Discount MesBr site + * @property string $discounts_campaign Discount MesBr campaign + * @property array<\App\Lib\Discount> $web_coupons Array of web coupons + * @property array $notification_emails Array of email to notify when there's a winnner + * @property boolean $winning_proof Is the winning proof needed + * @property-read \Illuminate\Support\Carbon $created_at Creation Date. + * @property-read \Illuminate\Support\Carbon $updated_at Last update Date. + * + * @property-read boolean $game_is_open Le jeu est ouvert ? + * @property-read boolean $game_has_begun Le jeu à démarré ? + * @property-read boolean $game_has_ended Le jeu est terminé ? + * @property-read boolean $should_display_teaser_page Doit afficher la page de teaser ? + * @property-read boolean $should_display_end_page Doit afficher la page fin de jeu ? + */ class Settings extends Model { + use IsCachedAsCollection; + + /** + * The attributes that are mass assignable. + * + * @var array + */ + protected $fillable = [ + 'name', + 'company', + 'start_date', + 'end_date', + 'nb_participation_player', + 'nb_participation_ip', + 'nb_unique_code_use', + 'use_ean_codes', + 'activated_teaser', + 'activated_close_page', + 'close_page_active_date', + 'redirect_close', + 'discounts_activated', + 'discounts_site', + 'discounts_campaign', + 'web_coupons', + 'notification_emails', + 'winning_proof', + 'analytics', + 'notify_prize_sent', + ]; + /** * The attributes that should be cast to native types. * * @var array */ protected $casts = [ + 'notify_prize_sent' => 'bool', + 'use_ean_codes' => 'bool', + 'activated_teaser' => 'bool', + 'activated_close_page' => 'bool', + 'discounts_activated' => 'bool', + 'winning_proof' => 'bool', 'start_date' => 'datetime', 'end_date' => 'datetime', + 'close_page_active_date' => 'datetime', + 'web_coupons' => AsArrayOfDiscount::class, + 'notification_emails' => 'array', ]; + + // * EVENTS + + /** + * Perform any actions required after the model boots. + * + * @return void + */ + protected static function booted() + { + static::created(function () { + self::removeCached(); + }); + static::updated(function (self $model) { + self::removeCached(); + FileStorageHelper::removeOldFiles( + $model->fetchCouponsPictures(true), + $model->fetchCouponsPictures() + ); + }); + static::deleted(function () { + self::removeCached(); + }); + } + + // * METHODS + + /** + * Fetch all widget Files + * + * @param boolean $useOldAttribute + * @return array + */ + public function fetchCouponsPictures(bool $useOldAttribute = false): array + { + $files = []; + \collect(!$useOldAttribute ? $this->web_coupons : $this->getOriginal('web_coupons')) + ->each(function (Discount $coupon) use (&$files) { + $files = \array_merge($files, [$coupon->picture]); + }); + return FileStorageHelper::onlyUploadedFilesWithFileStorageHelper(collect($files)->filter()->all()); + } + + /** + * Check if the game can be play and report if it cannot. + * + * Demande Vincent: Methods to check via policy if game can be played + * + * Besoin: + * - Min 1 code unique + * - Min 1 Instant gagnant + * - Min 1 Product si Settings use_ean_codes + * - Min 1 WebCoupon si Settings discounts_activated + * + * @return boolean + */ + public function checkGameCanBePlayed(): bool + { + /** @var \App\Models\Settings */ + $settings = app(Settings::class); + if (!(bool)Prize::getCached()->count()) { + report(new \RuntimeException('Need prizes to enable the game')); + return false; + } + if (!(bool)Cache::remember('codes.count', CarbonInterval::day(), fn () => Code::query()->count())) { + report(new \RuntimeException('Need codes to enable the game')); + return false; + } + if (!(bool)InstantWin::getCached()->count()) { + report(new \RuntimeException('Need instant win to enable the game')); + return false; + } + if ($settings->use_ean_codes and !(bool)Product::getCached()->count()) { + report(new \RuntimeException('Need products to enable the game using ean codes')); + return false; + } + if ($settings->discounts_activated and !(bool)collect($this->web_coupons)->count()) { + report(new \RuntimeException('Need MesBr coupons to enable the game using discounts')); + return false; + } + return true; + } + + // * GETTERS + + /** + * Get game_has_begun attribute + * + * The game has started ? + * + * @return \Illuminate\Database\Eloquent\Casts\Attribute + */ + public function gameHasBegun(): Attribute + { + return Attribute::make( + get: fn (): bool => $this->start_date->lte(now()) + ); + } + + /** + * Get game_has_ended attribute + * + * The game has ended ? + * + * @return \Illuminate\Database\Eloquent\Casts\Attribute + */ + public function gameHasEnded(): Attribute + { + return Attribute::make( + get: fn (): bool => $this->game_has_begun and $this->end_date->lte(now()) + ); + } + + /** + * Get game_is_open attribute + * + * The game is oppen ? + * + * @return \Illuminate\Database\Eloquent\Casts\Attribute + */ + public function gameIsOpen(): Attribute + { + return Attribute::make( + get: fn (): bool => $this->game_has_begun and !$this->game_has_ended + ); + } + + /** + * Get should_display_teaser_page attribute + * + * The teaser page has to be displayed ? + * + * @return \Illuminate\Database\Eloquent\Casts\Attribute + */ + public function shouldDisplayTeaserPage(): Attribute + { + return Attribute::make( + get: fn (): bool => !$this->game_has_begun and + !$this->game_has_ended and + $this->activated_teaser + ); + } + + /** + * Get should_display_end_page attribute + * + * The end page has to be displayed ? + * + * @return \Illuminate\Database\Eloquent\Casts\Attribute + */ + public function shouldDisplayEndPage(): Attribute + { + return Attribute::make( + get: fn (): bool => $this->game_has_begun and + $this->game_has_ended and + $this->activated_close_page and + $this->close_page_active_date->gte(now()) + ); + } } diff --git a/app/Models/StaticPage.php b/app/Models/StaticPage.php new file mode 100644 index 0000000..2255d7c --- /dev/null +++ b/app/Models/StaticPage.php @@ -0,0 +1,115 @@ + + */ + protected $fillable = [ + 'seo_title', + 'seo_description', + 'title', + 'content', + ]; + + /** + * The attributes that should be cast. + * + * @var array + */ + protected $casts = [ + 'type' => StaticPageType::class, + ]; + + // * EVENTS + + /** + * Perform any actions required after the model boots. + * + * @return void + */ + protected static function booted(): void + { + static::creating(function (self $model) { + // * ASSERTIONS + static::assertTitleIsUnique($model->title); + + // * CHANGES + $model->slug = Str::slug($model->title); + }); + static::updating(function (self $model) { + // * ASSERTIONS + static::assertTitleIsUnique($model->title, $model->id); + + // * CHANGES + $model->slug = Str::slug($model->title); + }); + } + + // * ROUTABLE + + /** + * Get the value of the model's route key. + * + * @return mixed + */ + public function getRouteKey() + { + /** @var \App\Enums\StaticPageType */ + $enum = $this->getAttribute($this->getRouteKeyName()); + return $enum->value(); + } + + /** + * Get the route key for the model. + * + * ! Type is the routable parameter + * + * @return string + */ + public function getRouteKeyName(): string + { + return 'type'; + } + + // * METHODS + + /** + * Asserts using validation that the title is unique + * + * @param string|null $title + * @param integer|null $id + * @return void + * @throws \Illuminate\Validation\ValidationException If an actu title already exists. + */ + private static function assertTitleIsUnique(string|null $title, ?int $id = null) + { + $table = (new self())->getTable(); + ToolboxHelper::assertFieldIsUnique($table, 'title', $title, $id); + ToolboxHelper::assertFieldIsUnique($table, 'slug', Str::slug($title), $id); + } +} diff --git a/app/Models/User.php b/app/Models/User.php index cc656bb..a31dd48 100644 --- a/app/Models/User.php +++ b/app/Models/User.php @@ -2,60 +2,127 @@ namespace App\Models; +use App\Enums\Users\RoleEnum; +use App\Traits\Models\ActivityLog; +use Illuminate\Auth\Access\AuthorizationException; +use Illuminate\Database\Eloquent\Factories\HasFactory; use Illuminate\Foundation\Auth\User as Authenticatable; use Illuminate\Notifications\Notifiable; +use Illuminate\Support\Facades\Hash; +/** + * @property string $first_name Prénom. + * @property string $last_name Nom. + * @property string $email Email. + * @property string $password Mot de passe. + * @property \App\Enums\Users\RoleEnum $role Rôle. + * @property \Illuminate\Support\Carbon $published État de publication. + * @property \Illuminate\Support\Carbon $published_at Date de mise à jour de l'état de publication. + * @property-read \Illuminate\Support\Carbon $created_at Created date. + * @property-read \Illuminate\Support\Carbon $updated_at Updated date. + * + * @property-read \App\Models\ActivityLog $activityLogs Activities logs One-to-many relationship. + */ class User extends Authenticatable { + use ActivityLog; + use HasFactory; use Notifiable; /** * The attributes that are mass assignable. * - * @var array + * @var array */ protected $fillable = [ - 'crm_id', - 'civility', - 'firstname', - 'lastname', - 'birth_date', + 'first_name', + 'last_name', 'email', 'password', - 'address', - 'address2', - 'town', - 'postal_code', - 'country', - 'email_verify_token', - 'email_verified' + 'role', + 'published', + 'published_at', ]; /** - * The attributes that should be hidden for arrays. + * The attributes that should be hidden for serialization. * - * @var array + * @var array */ protected $hidden = [ - 'password', 'remember_token', + 'password', + 'remember_token', ]; /** - * The attributes that should be cast to native types. + * The attributes that should be cast. * - * @var array + * @var array */ protected $casts = [ + 'role' => RoleEnum::class, 'email_verified_at' => 'datetime', + 'published' => 'boolean', ]; + // * EVENTS + /** - * Has Many Participation relation + * Perform any actions required after the model boots. + * + * @return void + */ + protected static function booted(): void + { + static::creating(function (self $model) { + static::updatePassword($model); + // * Prevent user elevation privileges + throw_if( + auth('backend')->user() and auth('backend')->user()->role->value() > $model->role->value(), + AuthorizationException::class + ); + }); + static::updating(function (self $model) { + static::updatePassword($model); + if (optional(auth('backend')->user())->getKey() === $model->getKey()) { + \validator( + ['published' => $model->published], + ['published' => 'required|boolean|accepted'], + ['published.accepted' => trans('Vous ne pouvez pas déactiver votre propre compte')], + )->validate(); + } + // * Prevent user elevation privileges + throw_if( + auth('backend')->user() and auth('backend')->user()->role->value() > $model->role->value(), + AuthorizationException::class + ); + }); + } + + // * METHODS + + /** + * Update password. + * + * @param self $model + * @return void + */ + private static function updatePassword(self $model): void + { + if (Hash::needsRehash($model->password)) { + $model->password = Hash::make($model->password); + } + } + + // * RELATIONS + + /** + * Activities logs One-to-many relationship. * * @return \Illuminate\Database\Eloquent\Relations\HasMany */ - public function participations() + public function activityLogs(): \Illuminate\Database\Eloquent\Relations\HasMany { - return $this->hasMany(Participation::class, 'user_id'); + return $this->hasMany(ActivityLog::class); } } diff --git a/app/Notifications/Customer/DestroyCustomer.php b/app/Notifications/Customer/DestroyCustomer.php new file mode 100644 index 0000000..eff184d --- /dev/null +++ b/app/Notifications/Customer/DestroyCustomer.php @@ -0,0 +1,53 @@ + + * @phpcs:disable Generic.CodeAnalysis.UnusedFunctionParameter.FoundInExtendedClass + */ + public function via(object $notifiable): array + { + // phpcs:enable + return ['mail']; + } + + /** + * Get the mail representation of the notification. + * + * @param object $notifiable + * @return \Illuminate\Notifications\Messages\MailMessage + */ + public function toMail(object $notifiable): MailMessage + { + /** @var \App\Models\Settings */ + $settings = app(Settings::class); + + /** @var string $first_name */ + $first_name = $notifiable->api_data->firstname; + + return (new MailMessage()) + ->subject(trans('Supression du compte - :site_name', [ + 'site_name' => $settings->name + ])) + ->greeting(trans('Bonjour :first_name', ['first_name' => $first_name])) + ->line(trans( + "Votre compte :site_name a été marqué pour suppression, + il sera définitivement effacé au bout de 1 semaine. + Vous pourrez le réactiver durant ce délai si vous le + souhaitez en vous reconnectant.", + [ + 'site_name' => $settings->name + ] + )); + } +} diff --git a/app/Notifications/Customer/DestroyedCustomer.php b/app/Notifications/Customer/DestroyedCustomer.php new file mode 100644 index 0000000..a4035c0 --- /dev/null +++ b/app/Notifications/Customer/DestroyedCustomer.php @@ -0,0 +1,51 @@ + + * @phpcs:disable Generic.CodeAnalysis.UnusedFunctionParameter.FoundInExtendedClass + */ + public function via(object $notifiable): array + { + // phpcs:enable + return ['mail']; + } + + /** + * Build the mail representation of the notification. + * + * @param object $notifiable + * @return \Illuminate\Notifications\Messages\MailMessage + * @phpcs:disable Generic.CodeAnalysis.UnusedFunctionParameter.FoundInExtendedClass + */ + public function toMail(object $notifiable): MailMessage + { + /** @var \App\Models\Settings */ + $settings = app(Settings::class); + + // phpcs:enable + return (new MailMessage()) + ->subject(trans('Votre compte est suprimé - :site_name', [ + 'site_name' => $settings->name + ])) + ->greeting('Bonjour') + ->line(trans( + "Votre compte :site_name a été définitivement supprimé ainsi ques les données associés, + si vous aviez effectué une commande elle sera bien sûr toujours honorée. Les commandes associés + a votre compte continueront d'exister mais les données de votre compte ont bien été supprimées.", + [ + 'site_name' => $settings->name + ] + )); + } +} diff --git a/app/Notifications/Customer/HasSubmitedWinProof.php b/app/Notifications/Customer/HasSubmitedWinProof.php new file mode 100644 index 0000000..cd28426 --- /dev/null +++ b/app/Notifications/Customer/HasSubmitedWinProof.php @@ -0,0 +1,60 @@ + + * @phpcs:disable Generic.CodeAnalysis.UnusedFunctionParameter.FoundInExtendedClass + */ + public function via(object $notifiable): array + { + // phpcs:enable + return ['mail']; + } + + /** + * Get the mail representation of the notification. + * + * @param \App\Models\Customer $notifiable + * @return \Illuminate\Contracts\Mail\Mailable + */ + public function toMail(Customer $notifiable): Mailable + { + /** @var \App\Models\Settings */ + $settings = app(Settings::class); + return (new WinningProofSubmitedMail( + new Address( + $notifiable->email, + $this->first_name + ), + $settings->name, + )); + } +} diff --git a/app/Notifications/Customer/HasWonDiscount.php b/app/Notifications/Customer/HasWonDiscount.php new file mode 100644 index 0000000..254c08a --- /dev/null +++ b/app/Notifications/Customer/HasWonDiscount.php @@ -0,0 +1,68 @@ + + * @phpcs:disable Generic.CodeAnalysis.UnusedFunctionParameter.FoundInExtendedClass + */ + public function via(object $notifiable): array + { + // phpcs:enable + return ['mail']; + } + + /** + * Get the mail representation of the notification. + * + * @param \App\Models\Customer $notifiable + * @return \Illuminate\Contracts\Mail\Mailable + */ + public function toMail(Customer $notifiable): Mailable + { + /** @var \App\Models\Settings */ + $settings = app(Settings::class); + return (new DiscountWonMail( + new Address( + $notifiable->email, + $this->first_name + ), + $settings->name, + $this->discount, + $this->discount_model->link + )); + } +} diff --git a/app/Notifications/Customer/HasWonInstantWin.php b/app/Notifications/Customer/HasWonInstantWin.php new file mode 100644 index 0000000..adc3a05 --- /dev/null +++ b/app/Notifications/Customer/HasWonInstantWin.php @@ -0,0 +1,63 @@ + + * @phpcs:disable Generic.CodeAnalysis.UnusedFunctionParameter.FoundInExtendedClass + */ + public function via(object $notifiable): array + { + // phpcs:enable + return ['mail']; + } + + /** + * Get the mail representation of the notification. + * + * @param \App\Models\Customer $notifiable + * @return \Illuminate\Contracts\Mail\Mailable + */ + public function toMail(Customer $notifiable): Mailable + { + /** @var \App\Models\Settings */ + $settings = app(Settings::class); + return (new PrizeWonMail( + new Address( + $notifiable->email, + $this->first_name + ), + $settings->name, + $this->prize, + config('app.url') + )); + } +} diff --git a/app/Notifications/Customer/PrizeHasBeenSent.php b/app/Notifications/Customer/PrizeHasBeenSent.php new file mode 100644 index 0000000..2763d4b --- /dev/null +++ b/app/Notifications/Customer/PrizeHasBeenSent.php @@ -0,0 +1,44 @@ + + * @phpcs:disable Generic.CodeAnalysis.UnusedFunctionParameter.FoundInExtendedClass + */ + public function via(object $notifiable): array + { + // phpcs:enable + return ['mail']; + } + + /** + * Get the mail representation of the notification. + * + * @param \App\Models\Customer $notifiable + * @return \Illuminate\Contracts\Mail\Mailable + */ + public function toMail(Customer $notifiable): Mailable + { + /** @var \App\Models\Settings */ + $settings = app(Settings::class); + return (new PrizeIsSentMail( + new Address( + $notifiable->email + ), + $settings->name, + )); + } +} diff --git a/app/Notifications/Customer/ResetPassword.php b/app/Notifications/Customer/ResetPassword.php new file mode 100644 index 0000000..8ae445e --- /dev/null +++ b/app/Notifications/Customer/ResetPassword.php @@ -0,0 +1,69 @@ +addHours(24), + [ + 'token' => $token, + 'email' => $notifiable->getEmailForPasswordReset(), + ], + true + )); + }; + } + + /** + * Build the mail representation of the notification. + * + * @param mixed $notifiable + * @return \Illuminate\Notifications\Messages\MailMessage + * @phpcs:disable Squiz.Commenting.FunctionComment.TypeHintMissing + */ + public function toMail($notifiable) + { + // phpcs:enable + /** @var \App\Models\Settings */ + $settings = app(Settings::class); + + /** @var \App\Models\Customer\Customer $notifiable */ + $resetUrl = $this->resetUrl($notifiable); + /** @var string $first_name */ + $first_name = $notifiable->api_data->firstname; + + return (new MailMessage()) + ->subject(trans('Mot de passe oublié - :site_name', ['site_name' => $settings->name])) + ->greeting(trans('Bonjour :first_name', ['first_name' => $first_name])) + ->line(trans( + 'Afin réinitialiser votre mot de passe pour vous connecter à :site_name, cliquez sur le lien suivant :', + ['site_name' => $settings->name] + )) + /** @var string $verificationUrl */ + ->action(trans('Réinitialisez votre mot de passe'), $resetUrl); + } +} diff --git a/app/Notifications/Customer/UpdateEmail.php b/app/Notifications/Customer/UpdateEmail.php new file mode 100644 index 0000000..8163027 --- /dev/null +++ b/app/Notifications/Customer/UpdateEmail.php @@ -0,0 +1,47 @@ + + * @phpcs:disable Generic.CodeAnalysis.UnusedFunctionParameter.FoundInExtendedClass + */ + public function via(object $notifiable): array + { + // phpcs:enable + return ['mail']; + } + + /** + * Get the mail representation of the notification. + * + * @param object $notifiable + * @return \Illuminate\Notifications\Messages\MailMessage + */ + public function toMail(object $notifiable): MailMessage + { + /** @var \App\Models\Settings */ + $settings = app(Settings::class); + + /** @var string $first_name */ + $first_name = $notifiable->api_data->firstname; + + return (new MailMessage()) + ->subject(trans('Mise à jour de l\'email - :site_name', [ + 'site_name' => $settings->name + ])) + ->greeting(trans('Bonjour :first_name', ['first_name' => $first_name])) + ->line(trans('L\'email associé à votre compte :site_name vient d\'être modifié.', [ + 'site_name' => $settings->name + ])); + } +} diff --git a/app/Notifications/Customer/UpdatePassword.php b/app/Notifications/Customer/UpdatePassword.php new file mode 100644 index 0000000..23a20c5 --- /dev/null +++ b/app/Notifications/Customer/UpdatePassword.php @@ -0,0 +1,47 @@ + + * @phpcs:disable Generic.CodeAnalysis.UnusedFunctionParameter.FoundInExtendedClass + */ + public function via(object $notifiable): array + { + // phpcs:enable + return ['mail']; + } + + /** + * Get the mail representation of the notification. + * + * @param object $notifiable + * @return \Illuminate\Notifications\Messages\MailMessage + */ + public function toMail(object $notifiable): MailMessage + { + /** @var \App\Models\Settings */ + $settings = app(Settings::class); + + /** @var string $first_name */ + $first_name = $notifiable->api_data->firstname; + + return (new MailMessage()) + ->subject(trans('Mise à jour du mot de passe - :site_name', [ + 'site_name' => $settings->name + ])) + ->greeting(trans('Bonjour :first_name', ['first_name' => $first_name])) + ->line(trans("Le mot de passe associé à votre compte :site_name vient d'être modifié.", [ + 'site_name' => $settings->name + ])); + } +} diff --git a/app/Notifications/Customer/VerifyEmail.php b/app/Notifications/Customer/VerifyEmail.php new file mode 100644 index 0000000..c17eb6f --- /dev/null +++ b/app/Notifications/Customer/VerifyEmail.php @@ -0,0 +1,71 @@ +addMinutes(Config::get('auth.verification.expire', 60)), + [ + 'id' => $notifiable->getKey(), + 'hash' => sha1($notifiable->getEmailForVerification()), + ], + true + )); + }; + } + + /** + * Build the mail representation of the notification. + * + * @param mixed $notifiable + * @return \Illuminate\Notifications\Messages\MailMessage + * @phpcs:disable Squiz.Commenting.FunctionComment.TypeHintMissing + */ + public function toMail($notifiable) + { + // phpcs:enable + /** @var \App\Models\Settings */ + $settings = app(Settings::class); + + /** @var \App\Models\Customer\Customer $notifiable */ + /** @var string $verificationUrl */ + $verificationUrl = $this->verificationUrl($notifiable); + /** @var string $first_name */ + $first_name = $notifiable->api_data->firstname; + + return (new MailMessage()) + ->success() + ->subject(trans("Inscription - :site_name", ['site_name' => $settings->name])) + ->greeting(trans('Bonjour :first_name', ['first_name' => $first_name])) + ->line(trans('Vous n\'êtes plus qu\'à un clic de votre inscription... ')) + ->line(trans('Pour finaliser votre inscription, merci de cliquer sur le lien ci-dessous :')) + ->action(trans('Confirmer mon adresse email'), $verificationUrl) + ->line(trans( + 'Si vous avez des questions, n\'hésitez pas à nous contacter via notre formulaire de contact' + )); + } +} diff --git a/app/Observers/ModelObserver.php b/app/Observers/ModelObserver.php new file mode 100644 index 0000000..71d194b --- /dev/null +++ b/app/Observers/ModelObserver.php @@ -0,0 +1,54 @@ +count() and !InstantWin::count()) ? true : false); + } +} diff --git a/app/Policies/ParticipationPolicy.php b/app/Policies/ParticipationPolicy.php new file mode 100644 index 0000000..e2afd80 --- /dev/null +++ b/app/Policies/ParticipationPolicy.php @@ -0,0 +1,129 @@ +nb_participation_player) { + $playerCanParticipate = (Participation::query()->whereHas( + 'customer', + fn (Builder $q) => + $q->where('id', $authUser->id) + )->count() < $settings->nb_participation_player); + } + // * Participation par IP + // ? Différent de illimité (0) ? + if ($settings->nb_participation_ip) { + $playerCanParticipate = (Participation::query()->whereHas( + 'customer', + fn (Builder $q) => + $q->where('ip', app('clientIp')) + )->count() < $settings->nb_participation_ip); + } + + // * Deny banned IP, Check did not participate too much + return !(bool)BannedIp::getCached() + ->where('ip', app('clientIp'))->count() and + $playerCanParticipate; + } + + /** + * Wether a customer can access to won list page + * + * @param \App\Models\Customer|\App\Models\User $authUser + * @return boolean + */ + public function viewWonList(Customer|User $authUser): bool + { + if ($authUser instanceof User) { + // * Recettage + return true; + } + return (bool)$authUser->participations()->where(fn (Builder $q) => + $q->whereHas('instantWin')->orWhereHas('discount'))->count(); + } + + /** + * Can a customer submit winning proof ? + * + * @param \App\Models\Customer $authUser + * @param \App\Models\Participation $model + * @return boolean + */ + public function submitProof(Customer $authUser, Participation $model): bool + { + /** @var \App\Models\Settings */ + $settings = app(Settings::class); + return $settings->winning_proof and Participation::query() + ->where('prize_sent', false) + ->whereHas( + 'customer', + fn (Builder $q) => + $q->where('id', $authUser->id) + )->where('id', $model->id)->whereHas('instantWin') + ->where(fn (Builder $q) => $q->whereNull( + ['sticker', 'ticket', 'barcode'], + 'or' + ))->exists(); + } + + /** + * Can a user change comment ? + * + * @param \App\Models\User $authUser + * @param \App\Models\Participation $model + * @return boolean + * @phpcs:disable Generic.CodeAnalysis.UnusedFunctionParameter.FoundAfterLastUsed + */ + public function setComment(User $authUser, Participation $model): bool + { + // phpcs:enable + return UserStaticRules::atLeastRole($authUser, RoleEnum::marketing); + } + + /** + * Can a user change prize_sent ? + * + * @param \App\Models\User $authUser + * @param \App\Models\Participation $model + * @return boolean + */ + public function changePrizeSent(User $authUser, Participation $model): bool + { + return !$model->prize_sent and UserStaticRules::atLeastRole($authUser, RoleEnum::marketing); + } +} diff --git a/app/Policies/PrizePolicy.php b/app/Policies/PrizePolicy.php new file mode 100644 index 0000000..62c073c --- /dev/null +++ b/app/Policies/PrizePolicy.php @@ -0,0 +1,85 @@ +game_is_open and + UserStaticRules::atLeastRole($authUser, RoleEnum::admin); + } + + /** + * Determine whether the user can update the model. + * + * @param \App\Models\User $authUser + * @param \App\Models\Prize $prize + * @return boolean + * @phpcs:disable Generic.CodeAnalysis.UnusedFunctionParameter.FoundAfterLastUsed + */ + public function update(User $authUser, Prize $prize): bool + { + // phpcs:enable + /** @var \App\Models\Settings */ + $settings = app(Settings::class); + return !$settings->game_is_open and + UserStaticRules::atLeastRole($authUser, RoleEnum::admin); + } + + /** + * Determine whether the user can delete the model. + * + * @param \App\Models\User $authUser + * @param \App\Models\Prize $prize + * @return boolean + * @phpcs:disable Generic.CodeAnalysis.UnusedFunctionParameter.FoundAfterLastUsed + */ + public function delete(User $authUser, Prize $prize): bool + { + // phpcs:enable + /** @var \App\Models\Settings */ + $settings = app(Settings::class); + return !$settings->game_is_open and + UserStaticRules::atLeastRole($authUser, RoleEnum::admin); + } +} diff --git a/app/Policies/ProductPolicy.php b/app/Policies/ProductPolicy.php new file mode 100644 index 0000000..33d868b --- /dev/null +++ b/app/Policies/ProductPolicy.php @@ -0,0 +1,75 @@ +role->value() <= $minRole->value(); + } +} diff --git a/app/Policies/SettingsPolicy.php b/app/Policies/SettingsPolicy.php new file mode 100644 index 0000000..5ffcc4e --- /dev/null +++ b/app/Policies/SettingsPolicy.php @@ -0,0 +1,36 @@ +getRouteKey() !== $user->getRouteKey() and + UserStaticRules::atLeastRole($authUser, RoleEnum::conceptor); + } + + /** + * Determine whether the user can restore the model. + * + * @param \App\Models\User $authUser + * @param \App\Models\User $user + * @return boolean + */ + public function restore(User $authUser, User $user): bool + { + return $authUser->getRouteKey() !== $user->getRouteKey() and + UserStaticRules::atLeastRole($authUser, RoleEnum::conceptor); + } + + /** + * Determine whether the user can permanently delete the model. + * + * @param \App\Models\User $authUser + * @param \App\Models\User $user + * @return boolean + */ + public function forceDelete(User $authUser, User $user): bool + { + return $authUser->getRouteKey() !== $user->getRouteKey() and + UserStaticRules::atLeastRole($authUser, RoleEnum::conceptor); + } + + /** + * Determine whether the user can duplicate the model. + * + * @param \App\Models\User $authUser + * @param \App\Models\User $user + * @return boolean + */ + public function duplicate(User $authUser, User $user): bool + { + return $authUser->getRouteKey() !== $user->getRouteKey() and + UserStaticRules::atLeastRole($authUser, RoleEnum::conceptor); + } + + /** + * Determine whether the user can publish/unpublish the model. + * + * @param \App\Models\User $authUser + * @param \App\Models\User $user + * @return boolean + */ + public function changePublished(User $authUser, User $user): bool + { + return $authUser->getRouteKey() !== $user->getRouteKey() and + UserStaticRules::atLeastRole($authUser, RoleEnum::conceptor); + } +} diff --git a/app/Providers/AppServiceProvider.php b/app/Providers/AppServiceProvider.php index 4e34f97..6a7d59f 100644 --- a/app/Providers/AppServiceProvider.php +++ b/app/Providers/AppServiceProvider.php @@ -2,19 +2,25 @@ namespace App\Providers; -use App\Models\Prize; use App\Models\Settings; -use Illuminate\Pagination\Paginator; +use Illuminate\Database\Eloquent\Model; use Illuminate\Support\Carbon; use Illuminate\Support\Facades\App; -use Illuminate\Support\Facades\Cache; -use Illuminate\Support\Facades\View; -use Illuminate\Support\Facades\Blade; use Illuminate\Support\Facades\URL; +use Illuminate\Support\Pluralizer; use Illuminate\Support\ServiceProvider; class AppServiceProvider extends ServiceProvider { + /** + * Register any application services. + * + * @return void + */ + public function register() + { + } + /** * Bootstrap any application services. * @@ -22,61 +28,38 @@ class AppServiceProvider extends ServiceProvider */ public function boot() { + Model::shouldBeStrict(!$this->app->environment('production')); + + // * HTTPS FIX URL::forceScheme('https'); // * HA PROXY FIX. App::singleton('clientIp', function () { - if ( - config('app.env') === 'local' - ) { - return request()->getClientIp(); + if (config('app.env') === 'local') { + return \IPLib\Factory::parseAddressString(request()->getClientIp()); } else { - return request()->server('HTTP_X_FORWARDED_FOR') ?? - request()->getClientIp(); + return \IPLib\Factory::parseAddressString( + request()->server('HTTP_X_FORWARDED_FOR') ?? + request()->getClientIp() + ); } }); - // * LOCAL FORCE eg: for Carbon. + + // * LOCAL FORCE eg: for Carbon setlocale(LC_ALL, \sprintf( '%s_%s.UTF-8', config('app.locale'), \strtoupper(config('app.locale')) )); Carbon::setLocale(config('app.locale')); - // * FORCE BOOTSTRAP PAGINATOR. - if (!app()->runningInConsole()) { - Paginator::useBootstrap(); - } + Pluralizer::useLanguage('french'); + // * Settings Provider app()->singleton(Settings::class, function () { - if (!($settings = Settings::find(1))) { + if (!($settings = Settings::getCached()->first())) { throw new \ErrorException('Settings not found in DB'); } return $settings; }); - - if (!app()->runningInConsole()) { - // On ramène le nom du jeu et le nom de la société sur toute les pages. - $settingsGlobal = Cache::get('settingsGlobal'); - if (!$settingsGlobal) { - $settingsGlobal = app(Settings::class) - ->select('name', 'company', 'analytics', 'start_date', 'end_date') - ->first(); - Cache::put('settingsGlobal', $settingsGlobal); - } - View::share('settingsGlobal', $settingsGlobal); - - // On ramène aussi tout les prix car on en a besoin sur le header. - $prizesGlobal = Cache::get('prizesGlobal'); - if (!$prizesGlobal) { - $prizesGlobal = Prize::all(); - Cache::put('prizesGlobal', $prizesGlobal); - } - View::share('prizesGlobal', $prizesGlobal); - - - Blade::if('superadmin', function () { - return auth()->user() && auth()->user()->role == 1; - }); - }//end if } } diff --git a/app/Providers/AuthServiceProvider.php b/app/Providers/AuthServiceProvider.php index 3ffc67d..f07f12c 100644 --- a/app/Providers/AuthServiceProvider.php +++ b/app/Providers/AuthServiceProvider.php @@ -2,14 +2,22 @@ namespace App\Providers; +use App\Auth\CrmUserProvider; +use App\Enums\Users\RoleEnum; +use App\Models\Customer; +use App\Models\FaqQuestion; +use App\Models\Product; +use App\Models\Settings; +use App\Models\User; use Illuminate\Foundation\Support\Providers\AuthServiceProvider as ServiceProvider; +use Illuminate\Support\Facades\Gate; class AuthServiceProvider extends ServiceProvider { /** - * The policy mappings for the application. + * The model to policy mappings for the application. * - * @var array + * @var array */ protected $policies = []; @@ -18,8 +26,46 @@ class AuthServiceProvider extends ServiceProvider * * @return void */ - public function boot() + public function boot(): void { - $this->registerPolicies(); + Gate::define('isConceptor', function (User $user) { + return $user->role === RoleEnum::conceptor; + }); + + // * POLICIES + Gate::define( + 'fo.showRe7', + // phpcs:ignore Generic.CodeAnalysis.UnusedFunctionParameter.FoundInExtendedClass + fn (User|Customer $user) => ($user instanceof User) and !app()->environment(['production']) and + $user->role->value() <= RoleEnum::marketing->value() + ); + + Gate::define( + 'fo.showProducts', + // phpcs:ignore Generic.CodeAnalysis.UnusedFunctionParameter.FoundInExtendedClass + fn (User|Customer|null $user) => view()->exists('theme::pages.products') and + (bool)Product::getCached()->count() + ); + + Gate::define( + 'fo.showFaq', + // phpcs:ignore Generic.CodeAnalysis.UnusedFunctionParameter.FoundInExtendedClass + fn (User|Customer|null $user) => view()->exists('theme::pages.faq') and + (bool)FaqQuestion::getCached()->count() + ); + + Gate::define( + 'fo.gameEnabled', + // phpcs:ignore Generic.CodeAnalysis.UnusedFunctionParameter.FoundInExtendedClass + function (User|Customer|null $user) { + /** @var \App\Models\Settings */ + $settings = app(Settings::class); + return $settings->checkGameCanBePlayed(); + } + ); + + $this->app->auth->provider('crm', function ($app, array $config) { + return new CrmUserProvider($app['hash'], $config['model']); + }); } } diff --git a/app/Providers/CrmApiServiceProvider.php b/app/Providers/CrmApiServiceProvider.php new file mode 100644 index 0000000..c5afa2e --- /dev/null +++ b/app/Providers/CrmApiServiceProvider.php @@ -0,0 +1,26 @@ +> */ protected $listen = [ Registered::class => [ SendEmailVerificationNotification::class, ], ]; + + /** + * Determine if events and listeners should be automatically discovered. + * + * @return boolean + */ + public function shouldDiscoverEvents(): bool + { + return false; + } } diff --git a/app/Providers/MesBrApiServiceProvider.php b/app/Providers/MesBrApiServiceProvider.php new file mode 100644 index 0000000..e72c1d5 --- /dev/null +++ b/app/Providers/MesBrApiServiceProvider.php @@ -0,0 +1,29 @@ +discounts_campaign + ); + }); + } +} diff --git a/app/Providers/RouteServiceProvider.php b/app/Providers/RouteServiceProvider.php index 2f541bd..438e4db 100644 --- a/app/Providers/RouteServiceProvider.php +++ b/app/Providers/RouteServiceProvider.php @@ -2,20 +2,14 @@ namespace App\Providers; +use Illuminate\Cache\RateLimiting\Limit; use Illuminate\Foundation\Support\Providers\RouteServiceProvider as ServiceProvider; +use Illuminate\Http\Request; +use Illuminate\Support\Facades\RateLimiter; use Illuminate\Support\Facades\Route; class RouteServiceProvider extends ServiceProvider { - /** - * This namespace is applied to your controller routes. - * - * In addition, it is set as the URL generator's root namespace. - * - * @var string - */ - protected $namespace = null; - /** * The path to the "home" route for your application. * @@ -28,21 +22,78 @@ class RouteServiceProvider extends ServiceProvider * * @return void */ - public function boot() + public function boot(): void { + $this->configureRateLimiting(); + + $this->cspReportRoute(); + $this->routes(function () { + Route::middleware('web') + ->namespace($this->namespace) + ->group(base_path('routes/web-fo.php')); Route::middleware('web') - ->namespace($this->namespace) - ->group(base_path('routes/web.php')); + ->namespace($this->namespace) + ->group(base_path('routes/web-bo.php')); Route::middleware('web') - ->namespace($this->namespace) - ->group(base_path('routes/web-bo.php')); - - Route::middleware('web') - ->namespace($this->namespace) + ->namespace($this->namespace) ->group(base_path('routes/web-re7.php')); }); } + + /** + * Configure the rate limiters for the application. + * + * @return void + */ + protected function configureRateLimiting(): void + { + RateLimiter::for('api', function (Request $request) { + return Limit::perMinute(150)->by($request->user()?->id ?: app('clientIp')); + }); + RateLimiter::for('web', function (Request $request) { + return Limit::perMinute(150)->by($request->user()?->id ?: app('clientIp')); + }); + RateLimiter::for('credentials', function (Request $request) { + return Limit::perMinute(30)->by($request->user()?->id ?: app('clientIp')); + }); + } + + /** + * * Register CSP report URI + * + * Put this function inside RouteServiceProvider, + * and call it in RouteServiceProvider::boot + * + * @return void + */ + private function cspReportRoute() + { + // * CSP REPORT URI, Please add /csp-report to VerifyCsrfToken $except middleware + \Illuminate\Support\Facades\Route::post('/csp-report', function () { + $isCspRequest = request()->header('Content-Type') === 'application/csp-report'; + if (!$isCspRequest or !request()->json('csp-report') or !is_array(request()->json('csp-report'))) { + abort(401); + } + // * Flatten if needed + $cspReport = collect(request()->json('csp-report')) + ->flatMap(function ($v, $k) { + return [$k => is_array($v) ? collect($v)->flatten()->implode(', ') : $v]; + })->all(); + // * Filter array keys + $cspReport = collect(array_intersect_key($cspReport, [ + 'blocked-uri' => '', 'document-uri' => '', 'original-policy' => '', + 'referrer' => '', 'violated-directive' => '' + ])); + \Illuminate\Support\Facades\Log::warning(sprintf( + "CSP REPORT for %s : \n %s", + $cspReport->get('document-uri'), + $cspReport->implode("\n") + )); + })->middleware('throttle:5,2') + ->withoutMiddleware(\App\Http\Middleware\VerifyCsrfToken::class) + ->name('cspReportUri'); + } } diff --git a/app/Providers/TranslationServiceProvider.php b/app/Providers/TranslationServiceProvider.php new file mode 100644 index 0000000..b3e3f4b --- /dev/null +++ b/app/Providers/TranslationServiceProvider.php @@ -0,0 +1,78 @@ +collectLocalesStrings() as $locale) { + // * Suported locales + Cache::rememberForever(sprintf('translations.%s', $locale), function () use ($locale) { + $translations = [ + 'php' => $this->phpTranslations($locale), + 'json' => $this->jsonTranslations($locale), + ]; + return $translations; + }); + } + } + + /** + * Gather provided langs checking from files + * + * @return \Illuminate\Support\Collection + */ + private function collectLocalesStrings(): Collection + { + return collect(File::allFiles(resource_path('lang/')))->flatMap(function (SplFileInfo $file) { + if ($file->getRelativePath() and \strpos($file->getRelativePath(), 'vendor') !== 0) { + return [$file->getRelativePath() => '']; + } + })->keys(); + } + + /** + * Gather all php translations + * + * @param string $locale + * @return array + */ + private function phpTranslations(string $locale): array + { + $path = resource_path("lang/$locale"); + + return collect(File::allFiles($path))->flatMap(function ($file) use ($locale) { + $translation = $file->getBasename('.php'); + return [$translation => trans($translation, [], $locale)]; + })->all(); + } + + /** + * Gather json translations + * + * @param string $locale + * @return array + */ + private function jsonTranslations(string $locale): array + { + $path = resource_path("lang/$locale.json"); + + if (is_string($path) && is_readable($path)) { + return json_decode(file_get_contents($path), true) ?? []; + } + + return []; + } +} diff --git a/app/Providers/ViewServiceProvider.php b/app/Providers/ViewServiceProvider.php new file mode 100644 index 0000000..7304b6b --- /dev/null +++ b/app/Providers/ViewServiceProvider.php @@ -0,0 +1,55 @@ +runningInConsole()) { + // * View shares + // ! Add view file pathes (also needed for console xml job). + View::addNamespace('back', resource_path('views')); + View::addNamespace('theme', resource_path('theme/mounted/views')); + + $appInfos = Cache::remember('composer', 360, function () { + return json_decode(File::get(\app_path('../composer.json'))); + }); + // Share composer.json infos. + if (isset($appInfos->name) and isset($appInfos->version)) { + View::share('cpsr_name', $appInfos->name); + View::share('cpsr_version', $appInfos->version); + } + + // * FORCE BOOTSTRAP PAGINATOR (or custom if in front) + // Early boot, request wont be filled as expected. + if (collect(explode('/', \request()->getPathInfo()))->get(1) === 'bo') { + Paginator::defaultView('modules.pagination'); + } else { + Paginator::useBootstrapFive(); + } + + /** @var \App\Models\Settings */ + $settings = app(Settings::class); + + // On ramène le nom du jeu et le nom de la société sur toute les pages. + View::share('settingsGlobal', $settings); + + // On ramène aussi tout les prix car on en a besoin sur le header. + View::share('prizesGlobal', Prize::getCached()); + } //end if + } +} diff --git a/app/Rules/IsAdult.php b/app/Rules/IsAdult.php new file mode 100644 index 0000000..4bbe241 --- /dev/null +++ b/app/Rules/IsAdult.php @@ -0,0 +1,105 @@ +error_message = $message ?? trans('Vous devez être majeur.'); + } + + /** + * Run the validation rule. + * + * @param string $attribute + * @param mixed $value + * @param \Closure(string): \Illuminate\Translation\PotentiallyTranslatedString $fail + * @return void + * @throws \RuntimeException If date cannot be parsed. + * @phpcs:disable Squiz.Commenting.FunctionComment.IncorrectTypeHint + */ + public function validate(string $attribute, mixed $value, \Closure $fail): void + { + //@phpcs:enable + $MJ = Carbon::now()->subYears(18); + + if ($this->isIsoFormat($value)) { + $d = Carbon::parse($value); + } + if ($this->isSqlDate($value)) { + $d = Carbon::createFromFormat('Y-m-d', $value); + } + if ($this->isFormDate($value)) { + $d = Carbon::createFromFormat('d/m/Y', $value); + } + // * Could not parse date. + if (!$d) { + throw new \RuntimeException("Could not parse date {$value} for attribute '{$attribute}'."); + } + if (!$d->lessThanOrEqualTo($MJ)) { + $fail($this->error_message); + } + } + + /** + * Check if provided string is formatted for mysql + * + * @param string $date + * @return boolean + */ + private function isSqlDate(string $date) + { + if (preg_match("/^[0-9]{4}-(0[1-9]|1[0-2])-(0[1-9]|[1-2][0-9]|3[0-1])$/", $date)) { + return true; + } + return false; + } + + /** + * Check if provided string is formatted DD/MM/AAAA + * + * @param string $date + * @return boolean + */ + private function isFormDate(string $date) + { + if (preg_match("/^(0[1-9]|[1-2][0-9]|3[0-1])\/(0[1-9]|1[0-2])\/[0-9]{4}$/", $date)) { + return true; + } + return false; + } + + /** + * Check if provided string is iso format + * + * * https://www.w3.org/TR/NOTE-datetime + * + * @param string $date + * @return boolean + */ + private function isIsoFormat(string $date) + { + // phpcs:ignore Generic.Files.LineLength.TooLong + if (preg_match("/^(\d{4})(?:-?W(\d+)(?:-?(\d+)D?)?|(?:-(\d+))?-(\d+))(?:[T ](\d+):(\d+)(?::(\d+)(?:\.(\d+))?)?)?(?:Z(-?\d*))?$/", $date)) { + return true; + } + return false; + } +} diff --git a/app/Traits/Controllers/ChangesModelOrder.php b/app/Traits/Controllers/ChangesModelOrder.php new file mode 100644 index 0000000..51af5ba --- /dev/null +++ b/app/Traits/Controllers/ChangesModelOrder.php @@ -0,0 +1,57 @@ +route()->parameterNames); + $className = Str::ucfirst(Str::lower($params->get($params->count() - 2))); + $className = "\\App\\Models\\$className"; + + if (!class_exists($className)) { + throw new \RuntimeException("The $className class doesn't exist."); + } + + /** @var \Illuminate\Database\Eloquent\Model|null */ + $model = $className::where($model->getRouteKeyName(), $model->getRouteKey())->first(); + + if (!$model) { + return back()->with('error', trans('crud.messages.order_not_changed')); + } + + return DB::transaction(function () use ($request, $className, $model) { + /** @var \Illuminate\Database\Eloquent\Model|null */ + $tmp = $className::where('order', $request->direction ? '<' : '>', $model->order) + ->orderBy('order', $request->direction ? 'DESC' : 'ASC')->first(); + + if (!$tmp) { + return back()->with('error', trans('crud.messages.order_not_changed')); + } + + $newOrder = $tmp->order; + $tmp->order = $model->order; + $model->order = $newOrder; + $tmp->saveOrFail(); + $model->saveOrFail(); + Session::flash('success', trans('crud.messages.order_changed')); + + return back(); + }); + } +} diff --git a/app/Traits/Controllers/UpdateModelPublished.php b/app/Traits/Controllers/UpdateModelPublished.php new file mode 100644 index 0000000..4ca47df --- /dev/null +++ b/app/Traits/Controllers/UpdateModelPublished.php @@ -0,0 +1,26 @@ +published = !$model->published; + $model->saveOrFail(); + return redirect()->back()->with('success', trans(__('crud.messages.publish_status_saved'))); + } +} diff --git a/app/Traits/Enums/BaseEnum.php b/app/Traits/Enums/BaseEnum.php new file mode 100644 index 0000000..559b1ee --- /dev/null +++ b/app/Traits/Enums/BaseEnum.php @@ -0,0 +1,263 @@ +name]; + } + + /** + * Get enum label. + * + * @return string + */ + public function label(): string + { + return self::toLabels()[$this->name]; + } + + /** + * Get enum name. + * + * @return string + */ + public function name(): string + { + return $this->name; + } + + // * STATIC FETCH METHODS + + /** + * Get enum labels. + * + * @return array + */ + public static function toLabels(): array + { + if (empty(self::getCache('labels'))) { + $labels = self::getLabelsConstant(); + self::setCache('labels', \collect(self::cases()) + ->mapWithKeys(function ($enum) use ($labels) { + if (!\is_null($labels) and !isset($labels[$enum->name])) { + throw new \Error('Missing definition label ' . self::class . " for {$enum->name}"); + } + return [$enum->name => \trans( + !\is_null($labels) ? $labels[$enum->name] : Str::ucfirst($enum->name) + )]; + })->all()); + } + return self::getCache('labels'); + } + + /** + * Get enum values. + * + * @return array + */ + public static function toValues(): array + { + if (empty(self::getCache('values'))) { + self::setCache('values', \collect(self::cases()) + ->mapWithKeys(fn ($enum) => [$enum->name => $enum->value])->all()); + } + return self::getCache('values'); + } + + /** + * Get enums. + * + * @return array + */ + public static function all(): array + { + return self::cases(); + } + + /** + * Get enums. + * + * @return array + */ + public static function toArray(): array + { + if (empty(self::getCache('enums'))) { + $definitions = self::getCustomDefinitions(); + self::setCache('enums', \collect(self::cases()) + ->mapWithKeys(function ($enum) use ($definitions) { + $baseArray = [ + 'name' => $enum->name, + 'label' => $enum->label(), + 'value' => $enum->value, + ]; + foreach ($definitions as $index => $elements) { + $index = Str::lower(Str::singular($index)); + if (!isset($elements[$enum->name])) { + throw new \Error("Missing definition {$index} " . self::class . " for {$enum->name}"); + } + $baseArray[$index] = $elements[$enum->name]; + } + return [$enum->name => (object)$baseArray]; + })->all()); + } + return self::getCache('enums'); + } + + /** + * Fetch enum using value. + * + * @param \App\Traits\Enums\BaseEnum|integer|string $value + * @param string $field + * @return \App\Traits\Enums\BaseEnum|null + */ + public static function make(self|int|string $value, string $field = 'value'): self|null + { + if ($field === "label") { + $enumLabels = array_change_key_case(array_flip(self::toLabels()), CASE_LOWER); + $value = (isset($enumLabels[strtolower($value)])) ? $enumLabels[strtolower($value)] : false; + $field = 'name'; + } + return !\is_object($value) ? + \collect(self::cases())->keyBy($field)->get($value) : $value; + } + + /** + * Test if 2 enum are equals. + * + * @param object ...$others + * @return boolean + * @throws \Error If provided element are not enums that extends BaseEnum. + */ + public function equals(object ...$others): bool + { + foreach ($others as $other) { + if (!\in_array(BaseEnum::class, \class_uses_recursive($other))) { + throw new \Error(__METHOD__ . + ' requires $enum to use ' . BaseEnum::class); + } + if ( + get_class($this) === get_class($other) + && $this->value === $other->value + ) { + return true; + } + } + return false; + } + + /** + * Serialize to json. + * + * @return mixed + */ + public function jsonSerialize(): mixed + { + return $this->value; + } + + + // * CACHE + + /** + * Get cache array. + * + * @param string $index + * @return array + */ + private static function getCache(string $index): array + { + self::initCache(); + if (!isset($GLOBALS[self::class]['props'][$index])) { + $GLOBALS[self::class]['props'][$index] = []; + } + return $GLOBALS[self::class]['props'][$index]; + } + + /** + * Set cache array. + * + * @param string $index + * @param array $items + * @return void + */ + private static function setCache(string $index, array $items): void + { + self::initCache(); + if (!isset($GLOBALS[self::class]['props'][$index])) { + $GLOBALS[self::class]['props'][$index] = []; + } + $GLOBALS[self::class]['props'][$index] = $items; + } + + /** + * Init cache if needed. + * + * @return void + */ + private static function initCache(): void + { + if (!isset($GLOBALS[self::class])) { + $GLOBALS[self::class] = [ + 'props' => [ + 'enums' => [], + 'values' => [], + 'labels' => [] + ], + 'customProps' => null + ]; + } + } + + // * PRIVATE + + /** + * Fetch the LABELS constant if exists. + * + * @return array|null + */ + private static function getLabelsConstant(): array|null + { + $class_name = self::class; + try { + $constant_reflex = new \ReflectionClassConstant($class_name, 'LABELS'); + return $constant_reflex->getValue(); + } catch (\ReflectionException $e) { + return null; + } + } + + /** + * Get custom constants. + * + * @return array + */ + private static function getCustomDefinitions(): array + { + // ? Has custom props in cache ? + if (!isset($GLOBALS[self::class]) or \is_null($GLOBALS[self::class]['customProps'])) { + $names = \collect(self::cases())->keyBy('name'); + + $GLOBALS[self::class]['customProps'] = \collect((new \ReflectionClass(self::class))->getConstants()) + ->filter(function (mixed $constant, string $key) use ($names) { + if ($key === 'LABELS' or !\is_array($constant)) { + return false; + } + return \collect($constant)->keys() + ->filter(fn (string $name) => $names->has($name))->count(); + })->all(); + } + return $GLOBALS[self::class]['customProps']; + } +} diff --git a/app/Traits/Models/ActivityLog.php b/app/Traits/Models/ActivityLog.php new file mode 100644 index 0000000..67973e1 --- /dev/null +++ b/app/Traits/Models/ActivityLog.php @@ -0,0 +1,23 @@ + + */ + public static function getCached(): Collection + { + if (!Cache::has(static::getCacheKeyName())) { + try { + static::setCached(); + } catch (QueryException $e) { + report($e); + return \collect(); + } + } + return Cache::get(static::getCacheKeyName()); + } + + /** + * Remove cached elements + * + * @return void + */ + public static function removeCached(): void + { + Cache::forget(static::getCacheKeyName()); + } + + /** + * Put all instances into cache. + * + * @return void + */ + protected static function setCached(): void + { + $conditions = []; + if (property_exists(get_called_class(), 'cacheConditions')) { + $conditions = collect(static::${'cacheConditions'})->all(); + } + Cache::put(static::getCacheKeyName(), static::queryCached(static::query()) + ->where($conditions)->get() + ->pipe(fn (Collection $collection) => \call_user_func([self::class, 'filterQuery'], $collection))); + } + + /** + * Change query for cached elements + * + * @param \Illuminate\Database\Eloquent\Builder $query + * @return \Illuminate\Database\Eloquent\Builder + */ + protected static function queryCached(Builder $query): Builder + { + return $query; + } + + /** + * Change query for cached elements + * + * @param \Illuminate\Support\Collection $results + * @return \Illuminate\Support\Collection + */ + protected static function filterQuery(Collection $results): Collection + { + return $results; + } + + /** + * Get the class basename + * + * @return string + */ + protected static function getCacheKeyName(): string + { + return static::getCallClassBaseName(); + } + + /** + * Get the class basename + * + * @return string + */ + protected static function getCallClassBaseName(): string + { + return str_replace(__NAMESPACE__ . '\\', '', get_called_class()); + } +} diff --git a/app/Traits/Models/MiniCrudModel.php b/app/Traits/Models/MiniCrudModel.php new file mode 100644 index 0000000..09109f1 --- /dev/null +++ b/app/Traits/Models/MiniCrudModel.php @@ -0,0 +1,180 @@ +setData($attributes['data']); + } + } + + /** + * Apply function on data typed text while on save event + * + * @return void + */ + public function minicrudCreating() + { + /** @var array */ + $data = $this->data; + foreach ($data as &$input) { + switch ($input['inputType']) { + case InputType::text->value: + $input['text'] = clean($input['text']); + $input['text'] = FileStorageHelper::storeModelFilesFromHtml($this, $input['text']); + break; + } //end switch + } //end foreach + $this->data = $data; + } + + /** + * Apply function on data typed text while on update event + * + * @return void + */ + public function minicrudUpdating() + { + $this->minicrudCreating(); + } + + /** + * Apply function on data typed text while on updated event + * + * @return void + */ + public function minicrudUpdated() + { + /** @var array */ + foreach ($this->data as $index => $input) { + switch ($input['inputType']) { + case InputType::text->value: + $original = ToolboxHelper::getOriginal($this, 'data'); + FileStorageHelper::removeOldModelFilesFromHtml( + $input['text'], + $original[$index]['text'] ?? '' + ); + break; + } //end switch + } //end foreach + } + + /** + * Apply function on data typed text while on deleted event + * + * @return void + */ + public function minicrudDeleted() + { + /** @var array */ + foreach ($this->data as $input) { + switch ($input['inputType']) { + case InputType::text->value: + FileStorageHelper::removeModelFilesOfHtml($input['text']); + break; + } //end switch + } //end foreach + } + + /** + * Set a specific prop + * + * @param array $data + * @return void + */ + private function setData(array $data): void + { + $attrs = $this->attributes; + if (isset($attrs['data'])) { + unset($attrs['data']); + } + $this->setAttribute('data', $data); + } + + /** + * Set a specific prop + * + * @param array $value + * @return void + */ + protected function setDataAttribute(array $value): void + { + $this->attributes['data'] = $this->castAttributeAsJson( + 'data', + $this->serializeData($value) + ); + } + + /** + * Set a specific prop + * + * @param string|null $data + * @return array + */ + protected function getDataAttribute(string|null $data): array + { + return $this->fromJson($data ?? $this->attributes['data'] ?? '[]'); + } + + /** + * Serialize properties + * + * @param array $data + * @return array + * @throws \ErrorException If input type is no handled. + * @throws \Illuminate\Validation\ValidationException If url is a bo url. + * @phpcs:disable Squiz.Commenting.FunctionCommentThrowTag.WrongNumber + * @phpcs:disable Generic.Metrics.CyclomaticComplexity.TooHigh + */ + private function serializeData(array $data): array + { + foreach ($data as $o => $input) { + switch ($input['inputType']) { + case InputType::image->value: + $data[$o]['value'] = \preg_replace( + '/^\/|^/', + '', + FileStorageHelper::storeFile($this, $input['value'], true) + ); + break; + case InputType::selectEnum->value: + case InputType::boolean->value: + case InputType::password->value: + case InputType::email->value: + case InputType::number->value: + case InputType::videoVimeo->value: + case InputType::videoYoutube->value: + case InputType::video->value: + break; + case InputType::string->value: + case InputType::text->value: + case InputType::url->value: + ToolboxHelper::assertNoInternalBoUrls('content', $input['value']); + break; + default: + throw new \ErrorException(sprintf( + 'Unknown input Type %s', + $input['inputType'] + )); + } //end switch + } //end foreach + return $data; + } +} diff --git a/app/Traits/Requests/HasPicture.php b/app/Traits/Requests/HasPicture.php new file mode 100644 index 0000000..5cc57dd --- /dev/null +++ b/app/Traits/Requests/HasPicture.php @@ -0,0 +1,174 @@ + $minWith ?? $this->minWith, + 'minHeight' => $minHeight ?? $this->minHeight, + 'maxWith' => $maxWith ?? $this->maxWith, + 'maxHeight' => $maxHeight ?? $this->maxHeight + ]; + return [ + $name => [ + !$nullable ? 'required' : 'nullable', + function (string $attribute, $value, callable $fail) use ($sizes) { + return ToolboxHelper::validatePicture($attribute, $value, $fail, $sizes); + } + ] + ]; + } + + /** + * Images rules + * + * @param string $name + * @param integer|null $minWith + * @param integer|null $minHeight + * @param integer|null $maxWith + * @param integer|null $maxHeight + * @return array + */ + public function picturesRules( + string $name = 'pictures', + ?int $minWith = null, + ?int $minHeight = null, + ?int $maxWith = null, + ?int $maxHeight = null + ): array { + $sizes = (object)[ + 'minWith' => $minWith ?? $this->minWith, + 'minHeight' => $minHeight ?? $this->minHeight, + 'maxWith' => $maxWith ?? $this->maxWith, + 'maxHeight' => $maxHeight ?? $this->maxHeight + ]; + return [ + $name => 'sometimes|array', + "{$name}Validate" => "required_with:{$name}|array", + "{$name}Validate.*" => [ + 'required', + function (string $attribute, $value, callable $fail) use ($sizes) { + return $this->validatePicture($attribute, $value, $fail, $sizes); + } + ] + ]; + } + + /** + * Merges products pictures fields with request data + * + * @param string $name + * @return void + */ + protected function mergePicture(string $name = 'picture'): void + { + $picturePath = $this->{$name}; + if (is_string($picturePath)) { + $this->merge(["{$name}Validate" => []]); + // ! Empty picture. + if ($picturePath === 'false') { + // * Empty picture and exit + $this->merge([$name => []]); + return; + } + $decodedPath = \urldecode($picturePath); + $this->merge([ + "{$name}Validate" => array_merge( + $this->{"{$name}Validate"}, + [\public_path(ltrim($decodedPath, '/'))] + ) + ]); + $changedPicture = ltrim($decodedPath, '/'); + $this->merge([ + $name => $changedPicture + ]); + } //end if + } + + /** + * Merges products pictures fields with request data + * + * @param string $name + * @return void + */ + protected function mergePictures(string $name = 'pictures'): void + { + $pictures = $this->{$name}; + if (is_array($pictures)) { + $this->merge(["{$name}Validate" => []]); + foreach ($pictures as $key => $picturePath) { + // ! Empty picture. + if ($picturePath === 'false') { + // * Empty picture and exit + $this->merge([$name => []]); + return; + } + $decodedPath = \urldecode($picturePath); + $this->merge([ + "{$name}Validate" => array_merge( + $this->{"{$name}Validate"}, + [\public_path(ltrim($decodedPath, '/'))] + ) + ]); + $changedPicture = $this->{$name}; + $changedPicture[$key] = ltrim($decodedPath, '/'); + $this->merge([ + $name => $changedPicture + ]); + } + } //end if + } +} diff --git a/artisan b/artisan index 5c23e2e..67a3329 100644 --- a/artisan +++ b/artisan @@ -11,7 +11,7 @@ define('LARAVEL_START', microtime(true)); | Composer provides a convenient, automatically generated class loader | for our application. We just need to utilize it! We'll require it | into the script here so that we do not have to worry about the -| loading of any our classes "manually". Feels great to relax. +| loading of any of our classes manually. It's great to relax. | */ diff --git a/class/LDCCRM_V1.php b/class/LDCCRM_V1.php deleted file mode 100644 index 7499bf9..0000000 --- a/class/LDCCRM_V1.php +++ /dev/null @@ -1,162 +0,0 @@ -endpoint = $endpoint; - $this->api_key = $api_key; - } - - public function getCustomer($id){ - return $this->callAPI('GET', "/customer/id/$id"); - } - - public function getCustomerByEmail($email){ - return $this->callAPI('GET', "/customer/email/$email"); - } - - public function createCustomer($email, $password, $firstname, $lastname, $optin, $birthdate = null, $phone = null, $address = null, $address2 = null, $city = null, $postcode = null, $country = null){ - $user = [ - 'email' => $email, - 'password' => $password, - 'firstname' => $firstname, - 'lastname' => $lastname, - 'opt_in' => $optin, - 'birth_date' => $birthdate, - 'phone' => $phone, - 'address' => $address, - 'address2' => $address2, - 'city' => $city, - 'postcode' => $postcode, - 'country' => $country - ]; - return $this->callAPI('POST', '/customer/create', $user); - } - - public function updateCustomer($crmId, $firstname = null, $lastname = null, $optin = null, $birthdate = null, $phone = null, $address = null, $address2 = null, $city = null, $postcode = null, $country = null){ - $user = []; - - if ($firstname !== null) - $user['firstname'] = $firstname; - - if ($lastname !== null) - $user['lastname'] = $lastname; - - if ($optin !== null) - $user['opt_in'] = $optin; - - if ($birthdate !== null) - $user['birth_date'] = $birthdate; - - if ($phone !== null) - $user['phone'] = $phone; - - if ($address !== null) - $user['address'] = $address; - - if ($address2 !== null) - $user['address2'] = $address2; - - if ($city !== null) - $user['city'] = $city; - - if ($postcode !== null) - $user['postcode'] = $postcode; - - if ($country !== null) - $user['country'] = $country; - - - return $this->callAPI('PUT', "/customer/$crmId", $user); - } - - public function deleteCustomer($id){ - return $this->callAPI('DELETE', "/customer/$id"); - } - - public function changePwdCustomer($id, $password){ - return $this->callAPI('POST', "/customer/$id/change-password", ['password' => $password]); - } - - public function activateCustomer($id){ - return $this->callAPI('POST', "/customer/$id/activate"); - } - - public function toggleOptInCustomer($id){ - return $this->callAPI('POST', "/customer/$id/toggle-optin"); - } - - public function loginCustomer($email, $password){ - return $this->callAPI('POST', "/customer/login", ['email' => $email, 'password' => $password]); - } - - public function createSingleOptin($email){ - return $this->callAPI('POST', '/single-optin', ['email' => $email]); - } - - public function ArcadiaOutgoingMail($crm_id, $fields, $type){ - return $this->callAPI('POST', '/arcadia/outgoing-mail', ['crm_id' => $crm_id, 'fields' => json_encode($fields), 'type' => $type]); - } - - private function callAPI($method, $url, $data = false){ - - if (strpos($this->endpoint, "dev")){ - if ($data !== false){ - $data = array_merge($data, ['api_token' => $this->api_key]); - }else{ - $data = ['api_token' => $this->api_key]; - } - } - - $url = $this->endpoint . '/api/v1' . $url; - $curl = curl_init(); - switch ($method){ - case "POST": - curl_setopt($curl, CURLOPT_POST, 1); - if ($data) - curl_setopt($curl, CURLOPT_POSTFIELDS, $data); - break; - case "PUT": - curl_setopt($curl, CURLOPT_CUSTOMREQUEST, "PUT"); - if ($data) - curl_setopt($curl, CURLOPT_POSTFIELDS, http_build_query($data)); - break; - case "DELETE": - curl_setopt($curl, CURLOPT_CUSTOMREQUEST, "DELETE"); - if ($data) - curl_setopt($curl, CURLOPT_POSTFIELDS, http_build_query($data)); - break; - default: - if ($data) - $url = sprintf("%s?%s", $url, http_build_query($data)); - } - curl_setopt($curl, CURLOPT_URL, $url); - curl_setopt($curl, CURLOPT_COOKIESESSION, TRUE); - curl_setopt($curl, CURLOPT_RETURNTRANSFER, 1); - if (!strpos($this->endpoint, "dev")) { - curl_setopt($curl, CURLOPT_HTTPHEADER, array( - 'Accept: application/json', - 'Authorization: Bearer ' . $this->api_key - )); - } - - $result = curl_exec($curl); - - if (!curl_errno($curl)) { - $http_code = curl_getinfo($curl, CURLINFO_HTTP_CODE); - if (!in_array($http_code, [200, 201])) - return (object) ['status' => 'KO', 'code' => 500, 'message' => 'Connection to API failed - Code HTTP : '. $http_code]; - } else { - return (object) ['status' => 'KO', 'code' => 500, 'message' => 'Connection to API failed : '. curl_error($curl)]; - } - - curl_close($curl); - return json_decode($result); - } -} diff --git a/class/MesBR.php b/class/MesBR.php deleted file mode 100644 index a6c39a1..0000000 --- a/class/MesBR.php +++ /dev/null @@ -1,120 +0,0 @@ -endpoint = $endpoint; - $this->refSite = $refSite; - $this->refCamp = $refCamp; - } - - /** Update contact * - * @param $oCrmUser - * @return bool - */ - public function updateContact($oCrmUser) - { - $datas = [ - 'refsite' => $this->refSite, - 'refadherent' => $oCrmUser->crm_id, - 'nom' => $oCrmUser->lastname, - 'prenom' => $oCrmUser->firstname, - 'email' => $oCrmUser->email, - 'date_naissance' => $oCrmUser->birth_date, - 'code_postal' => $oCrmUser->postcode, - 'commune' => $oCrmUser->city, - 'pays' => $this->getCountry($oCrmUser->country), - 'hashcode' => $oCrmUser->hashcode - ]; - - $this->callAPI("GET", "/updatecontact", $datas); - // TODO : Verif statut du call ? (Nouvelle API MesBR) - return true; - } - - /** Update panier * - * @param $oCrmUser - * @param $couponId - * @param int $quantity - * @return array - */ - public function updatePanier($oCrmUser, $couponId, $quantity = 1) - { - $datas = [ - 'refsite' => $this->refSite, - 'refcamp' => $this->refCamp, - 'refadherent' => $oCrmUser->crm_id, - 'nom' => $oCrmUser->lastname, - 'prenom' => $oCrmUser->firstname, - 'email' => $oCrmUser->email, - 'code_postal' => $oCrmUser->postcode, - 'commune' => $oCrmUser->city, - 'pays' => $this->getCountry($oCrmUser->country), - 'panier' => "($quantity)$couponId" - ]; - - $res = $this->callAPI("GET", "/updatebasket", $datas); - - if (!$res) { - error_log("MESBR - CODE : 999 - MESSAGE : Cannot read API Response (non json)"); - return ['status' => 'KO', 'code' => 999, 'message' => 'Cannot read API Response (non json)']; - } - if ($res->Statut === 'KO') { - error_log("MESBR - CODE : $res->Code - MESSAGE : $res->Message"); - return ['status' => 'KO', 'code' => $res->Code, 'message' => $res->Message]; - } - $panierVerification = $this->endpoint . '/showbasket?basketid=' . $res->Panier->Panier; - $panier_link = $this->endpoint . '/?basketid='. $res->Panier->Panier; - return ['status' => 'OK', 'link' => $panier_link, 'verif' => $panierVerification, 'basketId' => $res->Panier->Panier]; - } - /** Génère le lien vers le mur (ou panier préprogrammé) **/ - public function GetMurBDRLink($br_refsite, $br_refcamp, $crmUser) - { - return $this->endpoint . "/?refsite=".trim($br_refsite)."&refcamp=".trim($br_refcamp)."&email=".$crmUser->email; - } - private function getCountry($country) - { - switch ($country) { - case 'Belgique': - return 56; - break; - case 'Luxembourg': - return 442; - break; - default: - return 250; //France - break; - } - } - private function callAPI($method, $url, $data){ - $curl = curl_init(); - switch ($method){ - case "POST": - curl_setopt($curl, CURLOPT_POST, 1); - if ($data) - curl_setopt($curl, CURLOPT_POSTFIELDS, $data); - break; - case "PUT": - curl_setopt($curl, CURLOPT_CUSTOMREQUEST, "PUT"); - if ($data) - curl_setopt($curl, CURLOPT_POSTFIELDS, $data); - break; - default: - if ($data) - $url = sprintf("%s?%s", $url, http_build_query($data)); - } - curl_setopt($curl, CURLOPT_URL, $this->endpoint . $url); - curl_setopt($curl, CURLOPT_COOKIESESSION, TRUE); - curl_setopt($curl, CURLOPT_RETURNTRANSFER, 1); - $result = curl_exec($curl); - if(!$result){die("Connection Failure");} - curl_close($curl); - return json_decode($result); - } -} diff --git a/composer.json b/composer.json index a1e13a2..66b538b 100644 --- a/composer.json +++ b/composer.json @@ -1,75 +1,104 @@ { - "name": "laravel/laravel", + "name": "uwil/gen-game-web", + "version": "2.0.0", "type": "project", - "description": "The Laravel Framework.", + "description": "Game generator", + "support": { + "email": "equipe.web@ldc.fr" + }, "keywords": [ - "framework", + "game", "laravel" ], "license": "MIT", "require": { - "php": "^7.3", - "ext-curl": "*", - "ext-json": "*", - "fideloper/proxy": "^4.2", - "fruitcake/laravel-cors": "^2.0", - "guzzlehttp/guzzle": "^7.0.1", - "kwaadpepper/exception-handler": "^0.0.6", - "kwaadpepper/serial-int-caster": "^1.0", - "laravel/framework": "^8.0", - "laravel/tinker": "^2.0", - "laravel/ui": "^3.0" + "php": "^8.2", + "axlon/laravel-postal-code-validation": "^3.4", + "diglactic/laravel-breadcrumbs": "^8.0", + "guzzlehttp/guzzle": "^7.2", + "kwaadpepper/image-resizer": "^2.1", + "kwaadpepper/serial-int-caster": "^1.1", + "laravel/framework": "^10.0", + "laravel/tinker": "^2.8", + "laravel/ui": "^4.2", + "ldc/ldccrmv2client": "^3.0", + "ldc/sitemap-generator": "^2.0", + "mews/purifier": "^3.4", + "mlocati/ip-lib": "^1.18", + "propaganistas/laravel-phone": "^5.0", + "sentry/sentry-laravel": "*" }, "require-dev": { - "doctrine/dbal": "^2.0", - "facade/ignition": "^2.3.6", - "fzaninotto/faker": "^1.9.1", - "mockery/mockery": "^1.3.1", - "nunomaduro/collision": "^5.0", - "phpunit/phpunit": "^9.0", - "slevomat/coding-standard": "^7.0", - "squizlabs/php_codesniffer": "^3.6" - }, - "config": { - "optimize-autoloader": true, - "preferred-install": "dist", - "sort-packages": true, - "allow-plugins": { - "dealerdirect/phpcodesniffer-composer-installer": true - } - }, - "extra": { - "laravel": { - "dont-discover": [] - } + "fakerphp/faker": "^1.9.1", + "kitloong/laravel-migrations-generator": "^6.8", + "krlove/eloquent-model-generator": "dev-l10-compatibility", + "laravel-lang/common": "^4.0", + "laravel/pint": "^1.0", + "laravel/sail": "^1.18", + "mockery/mockery": "^1.4.4", + "nunomaduro/collision": "^7.0", + "phpunit/phpunit": "^10.0", + "slevomat/coding-standard": "^8.10", + "spatie/laravel-ignition": "^2.0", + "thedoctor0/laravel-factory-generator": "^1.2" }, "autoload": { "psr-4": { "App\\": "app/", "Database\\Factories\\": "database/factories/", - "Database\\Seeders\\": "database/seeders/" - }, - "classmap": [ - "class" - ] + "Database\\Seeders\\": "database/seeders/", + "LDC\\MESBR\\": "app/Lib/vendor/LDCWEB" + } }, "autoload-dev": { "psr-4": { "Tests\\": "tests/" } }, - "minimum-stability": "dev", - "prefer-stable": true, + "repositories": [ + { + "type": "path", + "url": "./app/Lib/vendor/crm-client-3.0.6" + }, + { + "type": "composer", + "url": "https://lab.s-web.fr/api/v4/group/23/-/packages/composer/packages.json" + }, + { + "type": "vcs", + "url": "https://github.com/laravel-shift/eloquent-model-generator.git" + } + ], "scripts": { "post-autoload-dump": [ "Illuminate\\Foundation\\ComposerScripts::postAutoloadDump", "@php artisan package:discover --ansi" ], + "post-update-cmd": [ + "@php artisan vendor:publish --tag=laravel-assets --ansi --force" + ], "post-root-package-install": [ "@php -r \"file_exists('.env') || copy('.env.example', '.env');\"" ], "post-create-project-cmd": [ "@php artisan key:generate --ansi" ] - } + }, + "extra": { + "laravel": { + "dont-discover": [] + } + }, + "config": { + "optimize-autoloader": true, + "preferred-install": "dist", + "sort-packages": true, + "allow-plugins": { + "pestphp/pest-plugin": true, + "php-http/discovery": true, + "dealerdirect/phpcodesniffer-composer-installer": true + } + }, + "minimum-stability": "stable", + "prefer-stable": true } diff --git a/composer.lock b/composer.lock index c4a6ed6..1da8ce0 100644 --- a/composer.lock +++ b/composer.lock @@ -4,40 +4,48 @@ "Read more about it at https://getcomposer.org/doc/01-basic-usage.md#installing-dependencies", "This file is @generated automatically" ], - "content-hash": "bd553522eb8eb68c6c6662ee2c92d282", + "content-hash": "ee2ffa29e613f95e2e71e1dd67775f1f", "packages": [ { - "name": "asm89/stack-cors", - "version": "v2.1.1", + "name": "axlon/laravel-postal-code-validation", + "version": "v3.4.0", "source": { "type": "git", - "url": "https://github.com/asm89/stack-cors.git", - "reference": "73e5b88775c64ccc0b84fb60836b30dc9d92ac4a" + "url": "https://github.com/axlon/laravel-postal-code-validation.git", + "reference": "b4cd64b0d3358c42d7805370c5f9ab2f2f411e81" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/asm89/stack-cors/zipball/73e5b88775c64ccc0b84fb60836b30dc9d92ac4a", - "reference": "73e5b88775c64ccc0b84fb60836b30dc9d92ac4a", + "url": "https://api.github.com/repos/axlon/laravel-postal-code-validation/zipball/b4cd64b0d3358c42d7805370c5f9ab2f2f411e81", + "reference": "b4cd64b0d3358c42d7805370c5f9ab2f2f411e81", "shasum": "" }, "require": { - "php": "^7.2|^8.0", - "symfony/http-foundation": "^4|^5|^6", - "symfony/http-kernel": "^4|^5|^6" + "illuminate/contracts": "^5.5 || ^6.0 || ^7.0 || ^8.0 || ^9.0 || ^10.0", + "illuminate/support": "^5.5 || ^6.0 || ^7.0 || ^8.0 || ^9.0 || ^10.0", + "illuminate/validation": "^5.5 || ^6.0 || ^7.0 || ^8.0 || ^9.0 || ^10.0", + "php": "^7.2 || ^8.0" }, "require-dev": { - "phpunit/phpunit": "^7|^9", - "squizlabs/php_codesniffer": "^3.5" + "guzzlehttp/guzzle": "^6.5 || ^7.0.1", + "mockery/mockery": "^1.3", + "phpunit/phpunit": "^8.5 || ^9.0 || ^10.0", + "symfony/var-exporter": "^4.0" }, "type": "library", "extra": { - "branch-alias": { - "dev-master": "2.1-dev" + "laravel": { + "aliases": { + "PostalCodes": "\\Axlon\\PostalCodeValidation\\Support\\Facades\\PostalCodes" + }, + "providers": [ + "\\Axlon\\PostalCodeValidation\\ValidationServiceProvider" + ] } }, "autoload": { "psr-4": { - "Asm89\\Stack\\": "src/" + "Axlon\\PostalCodeValidation\\": "src/" } }, "notification-url": "https://packagist.org/downloads/", @@ -46,44 +54,46 @@ ], "authors": [ { - "name": "Alexander", - "email": "iam.asm89@gmail.com" + "name": "Choraimy Kroonstuiver", + "homepage": "https://github.com/axlon" } ], - "description": "Cross-origin resource sharing library and stack middleware", - "homepage": "https://github.com/asm89/stack-cors", + "description": "Worldwide postal code validation for Laravel and Lumen", "keywords": [ - "cors", - "stack" + "laravel", + "lumen", + "post code", + "postal code", + "validation", + "zip code" ], "support": { - "issues": "https://github.com/asm89/stack-cors/issues", - "source": "https://github.com/asm89/stack-cors/tree/v2.1.1" + "issues": "https://github.com/axlon/laravel-postal-code-validation/issues", + "source": "https://github.com/axlon/laravel-postal-code-validation/tree/v3.4.0" }, - "time": "2022-01-18T09:12:03+00:00" + "time": "2023-02-15T12:56:26+00:00" }, { "name": "brick/math", - "version": "0.9.3", + "version": "0.11.0", "source": { "type": "git", "url": "https://github.com/brick/math.git", - "reference": "ca57d18f028f84f777b2168cd1911b0dee2343ae" + "reference": "0ad82ce168c82ba30d1c01ec86116ab52f589478" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/brick/math/zipball/ca57d18f028f84f777b2168cd1911b0dee2343ae", - "reference": "ca57d18f028f84f777b2168cd1911b0dee2343ae", + "url": "https://api.github.com/repos/brick/math/zipball/0ad82ce168c82ba30d1c01ec86116ab52f589478", + "reference": "0ad82ce168c82ba30d1c01ec86116ab52f589478", "shasum": "" }, "require": { - "ext-json": "*", - "php": "^7.1 || ^8.0" + "php": "^8.0" }, "require-dev": { "php-coveralls/php-coveralls": "^2.2", - "phpunit/phpunit": "^7.5.15 || ^8.5 || ^9.0", - "vimeo/psalm": "4.9.2" + "phpunit/phpunit": "^9.0", + "vimeo/psalm": "5.0.0" }, "type": "library", "autoload": { @@ -108,44 +118,186 @@ ], "support": { "issues": "https://github.com/brick/math/issues", - "source": "https://github.com/brick/math/tree/0.9.3" + "source": "https://github.com/brick/math/tree/0.11.0" }, "funding": [ { "url": "https://github.com/BenMorel", "type": "github" - }, - { - "url": "https://tidelift.com/funding/github/packagist/brick/math", - "type": "tidelift" } ], - "time": "2021-08-15T20:50:18+00:00" + "time": "2023-01-15T23:15:59+00:00" }, { - "name": "doctrine/inflector", - "version": "2.0.4", + "name": "dflydev/dot-access-data", + "version": "v3.0.2", "source": { "type": "git", - "url": "https://github.com/doctrine/inflector.git", - "reference": "8b7ff3e4b7de6b2c84da85637b59fd2880ecaa89" + "url": "https://github.com/dflydev/dflydev-dot-access-data.git", + "reference": "f41715465d65213d644d3141a6a93081be5d3549" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/doctrine/inflector/zipball/8b7ff3e4b7de6b2c84da85637b59fd2880ecaa89", - "reference": "8b7ff3e4b7de6b2c84da85637b59fd2880ecaa89", + "url": "https://api.github.com/repos/dflydev/dflydev-dot-access-data/zipball/f41715465d65213d644d3141a6a93081be5d3549", + "reference": "f41715465d65213d644d3141a6a93081be5d3549", + "shasum": "" + }, + "require": { + "php": "^7.1 || ^8.0" + }, + "require-dev": { + "phpstan/phpstan": "^0.12.42", + "phpunit/phpunit": "^7.5 || ^8.5 || ^9.3", + "scrutinizer/ocular": "1.6.0", + "squizlabs/php_codesniffer": "^3.5", + "vimeo/psalm": "^4.0.0" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-main": "3.x-dev" + } + }, + "autoload": { + "psr-4": { + "Dflydev\\DotAccessData\\": "src/" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Dragonfly Development Inc.", + "email": "info@dflydev.com", + "homepage": "http://dflydev.com" + }, + { + "name": "Beau Simensen", + "email": "beau@dflydev.com", + "homepage": "http://beausimensen.com" + }, + { + "name": "Carlos Frutos", + "email": "carlos@kiwing.it", + "homepage": "https://github.com/cfrutos" + }, + { + "name": "Colin O'Dell", + "email": "colinodell@gmail.com", + "homepage": "https://www.colinodell.com" + } + ], + "description": "Given a deep data structure, access data by dot notation.", + "homepage": "https://github.com/dflydev/dflydev-dot-access-data", + "keywords": [ + "access", + "data", + "dot", + "notation" + ], + "support": { + "issues": "https://github.com/dflydev/dflydev-dot-access-data/issues", + "source": "https://github.com/dflydev/dflydev-dot-access-data/tree/v3.0.2" + }, + "time": "2022-10-27T11:44:00+00:00" + }, + { + "name": "diglactic/laravel-breadcrumbs", + "version": "v8.1.1", + "source": { + "type": "git", + "url": "https://github.com/diglactic/laravel-breadcrumbs.git", + "reference": "f72a78eb3e26aea507d7888a65f15e5790864e21" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/diglactic/laravel-breadcrumbs/zipball/f72a78eb3e26aea507d7888a65f15e5790864e21", + "reference": "f72a78eb3e26aea507d7888a65f15e5790864e21", + "shasum": "" + }, + "require": { + "facade/ignition-contracts": "^1.0", + "laravel/framework": "^6.0 || ^7.0 || ^8.0 || ^9.0 || ^10.0", + "php": "^7.2 || ^8.0" + }, + "conflict": { + "davejamesmiller/laravel-breadcrumbs": "*" + }, + "require-dev": { + "orchestra/testbench": "^4.0 || ^5.0 || ^6.0 || ^7.0 || ^8.0", + "php-coveralls/php-coveralls": "^2.4", + "phpunit/phpunit": "^8.5 || ^9.5", + "spatie/phpunit-snapshot-assertions": "^2.2 || ^4.2" + }, + "type": "library", + "extra": { + "laravel": { + "providers": [ + "Diglactic\\Breadcrumbs\\ServiceProvider" + ], + "aliases": { + "Breadcrumbs": "Diglactic\\Breadcrumbs\\Breadcrumbs" + } + } + }, + "autoload": { + "psr-4": { + "Diglactic\\Breadcrumbs\\": "src/" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Sheng Slogar", + "email": "sheng@diglactic.com", + "role": "Maintainer" + }, + { + "name": "Dave James Miller", + "email": "dave@davejamesmiller.com", + "role": "Original Creator" + } + ], + "description": "A simple Laravel-style way to create breadcrumbs.", + "homepage": "https://github.com/diglactic/laravel-breadcrumbs", + "keywords": [ + "laravel" + ], + "support": { + "issues": "https://github.com/diglactic/laravel-breadcrumbs/issues", + "source": "https://github.com/diglactic/laravel-breadcrumbs/tree/v8.1.1" + }, + "time": "2023-04-17T23:24:15+00:00" + }, + { + "name": "doctrine/inflector", + "version": "2.0.8", + "source": { + "type": "git", + "url": "https://github.com/doctrine/inflector.git", + "reference": "f9301a5b2fb1216b2b08f02ba04dc45423db6bff" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/doctrine/inflector/zipball/f9301a5b2fb1216b2b08f02ba04dc45423db6bff", + "reference": "f9301a5b2fb1216b2b08f02ba04dc45423db6bff", "shasum": "" }, "require": { "php": "^7.2 || ^8.0" }, "require-dev": { - "doctrine/coding-standard": "^8.2", - "phpstan/phpstan": "^0.12", - "phpstan/phpstan-phpunit": "^0.12", - "phpstan/phpstan-strict-rules": "^0.12", - "phpunit/phpunit": "^7.0 || ^8.0 || ^9.0", - "vimeo/psalm": "^4.10" + "doctrine/coding-standard": "^11.0", + "phpstan/phpstan": "^1.8", + "phpstan/phpstan-phpunit": "^1.1", + "phpstan/phpstan-strict-rules": "^1.3", + "phpunit/phpunit": "^8.5 || ^9.5", + "vimeo/psalm": "^4.25 || ^5.4" }, "type": "library", "autoload": { @@ -195,7 +347,7 @@ ], "support": { "issues": "https://github.com/doctrine/inflector/issues", - "source": "https://github.com/doctrine/inflector/tree/2.0.4" + "source": "https://github.com/doctrine/inflector/tree/2.0.8" }, "funding": [ { @@ -211,35 +363,36 @@ "type": "tidelift" } ], - "time": "2021-10-22T20:16:43+00:00" + "time": "2023-06-16T13:40:37+00:00" }, { "name": "doctrine/lexer", - "version": "1.2.3", + "version": "3.0.0", "source": { "type": "git", "url": "https://github.com/doctrine/lexer.git", - "reference": "c268e882d4dbdd85e36e4ad69e02dc284f89d229" + "reference": "84a527db05647743d50373e0ec53a152f2cde568" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/doctrine/lexer/zipball/c268e882d4dbdd85e36e4ad69e02dc284f89d229", - "reference": "c268e882d4dbdd85e36e4ad69e02dc284f89d229", + "url": "https://api.github.com/repos/doctrine/lexer/zipball/84a527db05647743d50373e0ec53a152f2cde568", + "reference": "84a527db05647743d50373e0ec53a152f2cde568", "shasum": "" }, "require": { - "php": "^7.1 || ^8.0" + "php": "^8.1" }, "require-dev": { - "doctrine/coding-standard": "^9.0", - "phpstan/phpstan": "^1.3", - "phpunit/phpunit": "^7.5 || ^8.5 || ^9.5", - "vimeo/psalm": "^4.11" + "doctrine/coding-standard": "^10", + "phpstan/phpstan": "^1.9", + "phpunit/phpunit": "^9.5", + "psalm/plugin-phpunit": "^0.18.3", + "vimeo/psalm": "^5.0" }, "type": "library", "autoload": { "psr-4": { - "Doctrine\\Common\\Lexer\\": "lib/Doctrine/Common/Lexer" + "Doctrine\\Common\\Lexer\\": "src" } }, "notification-url": "https://packagist.org/downloads/", @@ -271,7 +424,7 @@ ], "support": { "issues": "https://github.com/doctrine/lexer/issues", - "source": "https://github.com/doctrine/lexer/tree/1.2.3" + "source": "https://github.com/doctrine/lexer/tree/3.0.0" }, "funding": [ { @@ -287,20 +440,20 @@ "type": "tidelift" } ], - "time": "2022-02-28T11:07:21+00:00" + "time": "2022-12-15T16:57:16+00:00" }, { "name": "dragonmantank/cron-expression", - "version": "v3.3.1", + "version": "v3.3.3", "source": { "type": "git", "url": "https://github.com/dragonmantank/cron-expression.git", - "reference": "be85b3f05b46c39bbc0d95f6c071ddff669510fa" + "reference": "adfb1f505deb6384dc8b39804c5065dd3c8c8c0a" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/dragonmantank/cron-expression/zipball/be85b3f05b46c39bbc0d95f6c071ddff669510fa", - "reference": "be85b3f05b46c39bbc0d95f6c071ddff669510fa", + "url": "https://api.github.com/repos/dragonmantank/cron-expression/zipball/adfb1f505deb6384dc8b39804c5065dd3c8c8c0a", + "reference": "adfb1f505deb6384dc8b39804c5065dd3c8c8c0a", "shasum": "" }, "require": { @@ -340,7 +493,7 @@ ], "support": { "issues": "https://github.com/dragonmantank/cron-expression/issues", - "source": "https://github.com/dragonmantank/cron-expression/tree/v3.3.1" + "source": "https://github.com/dragonmantank/cron-expression/tree/v3.3.3" }, "funding": [ { @@ -348,31 +501,30 @@ "type": "github" } ], - "time": "2022-01-18T15:43:28+00:00" + "time": "2023-08-10T19:36:49+00:00" }, { "name": "egulias/email-validator", - "version": "2.1.25", + "version": "4.0.2", "source": { "type": "git", "url": "https://github.com/egulias/EmailValidator.git", - "reference": "0dbf5d78455d4d6a41d186da50adc1122ec066f4" + "reference": "ebaaf5be6c0286928352e054f2d5125608e5405e" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/egulias/EmailValidator/zipball/0dbf5d78455d4d6a41d186da50adc1122ec066f4", - "reference": "0dbf5d78455d4d6a41d186da50adc1122ec066f4", + "url": "https://api.github.com/repos/egulias/EmailValidator/zipball/ebaaf5be6c0286928352e054f2d5125608e5405e", + "reference": "ebaaf5be6c0286928352e054f2d5125608e5405e", "shasum": "" }, "require": { - "doctrine/lexer": "^1.0.1", - "php": ">=5.5", - "symfony/polyfill-intl-idn": "^1.10" + "doctrine/lexer": "^2.0 || ^3.0", + "php": ">=8.1", + "symfony/polyfill-intl-idn": "^1.26" }, "require-dev": { - "dominicsayers/isemail": "^3.0.7", - "phpunit/phpunit": "^4.8.36|^7.5.15", - "satooshi/php-coveralls": "^1.0.1" + "phpunit/phpunit": "^10.2", + "vimeo/psalm": "^5.12" }, "suggest": { "ext-intl": "PHP Internationalization Libraries are required to use the SpoofChecking validation" @@ -380,7 +532,7 @@ "type": "library", "extra": { "branch-alias": { - "dev-master": "2.1.x-dev" + "dev-master": "4.0.x-dev" } }, "autoload": { @@ -408,7 +560,7 @@ ], "support": { "issues": "https://github.com/egulias/EmailValidator/issues", - "source": "https://github.com/egulias/EmailValidator/tree/2.1.25" + "source": "https://github.com/egulias/EmailValidator/tree/4.0.2" }, "funding": [ { @@ -416,42 +568,95 @@ "type": "github" } ], - "time": "2020-12-29T14:50:06+00:00" + "time": "2023-10-06T06:47:41+00:00" }, { - "name": "fideloper/proxy", - "version": "4.4.2", + "name": "ezyang/htmlpurifier", + "version": "v4.17.0", "source": { "type": "git", - "url": "https://github.com/fideloper/TrustedProxy.git", - "reference": "a751f2bc86dd8e6cfef12dc0cbdada82f5a18750" + "url": "https://github.com/ezyang/htmlpurifier.git", + "reference": "bbc513d79acf6691fa9cf10f192c90dd2957f18c" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/fideloper/TrustedProxy/zipball/a751f2bc86dd8e6cfef12dc0cbdada82f5a18750", - "reference": "a751f2bc86dd8e6cfef12dc0cbdada82f5a18750", + "url": "https://api.github.com/repos/ezyang/htmlpurifier/zipball/bbc513d79acf6691fa9cf10f192c90dd2957f18c", + "reference": "bbc513d79acf6691fa9cf10f192c90dd2957f18c", "shasum": "" }, "require": { - "illuminate/contracts": "^5.0|^6.0|^7.0|^8.0|^9.0", - "php": ">=5.4.0" + "php": "~5.6.0 || ~7.0.0 || ~7.1.0 || ~7.2.0 || ~7.3.0 || ~7.4.0 || ~8.0.0 || ~8.1.0 || ~8.2.0 || ~8.3.0" }, "require-dev": { - "illuminate/http": "^5.0|^6.0|^7.0|^8.0|^9.0", - "mockery/mockery": "^1.0", - "phpunit/phpunit": "^8.5.8|^9.3.3" + "cerdic/css-tidy": "^1.7 || ^2.0", + "simpletest/simpletest": "dev-master" + }, + "suggest": { + "cerdic/css-tidy": "If you want to use the filter 'Filter.ExtractStyleBlocks'.", + "ext-bcmath": "Used for unit conversion and imagecrash protection", + "ext-iconv": "Converts text to and from non-UTF-8 encodings", + "ext-tidy": "Used for pretty-printing HTML" }, "type": "library", - "extra": { - "laravel": { - "providers": [ - "Fideloper\\Proxy\\TrustedProxyServiceProvider" - ] - } + "autoload": { + "files": [ + "library/HTMLPurifier.composer.php" + ], + "psr-0": { + "HTMLPurifier": "library/" + }, + "exclude-from-classmap": [ + "/library/HTMLPurifier/Language/" + ] }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "LGPL-2.1-or-later" + ], + "authors": [ + { + "name": "Edward Z. Yang", + "email": "admin@htmlpurifier.org", + "homepage": "http://ezyang.com" + } + ], + "description": "Standards compliant HTML filter written in PHP", + "homepage": "http://htmlpurifier.org/", + "keywords": [ + "html" + ], + "support": { + "issues": "https://github.com/ezyang/htmlpurifier/issues", + "source": "https://github.com/ezyang/htmlpurifier/tree/v4.17.0" + }, + "time": "2023-11-17T15:01:25+00:00" + }, + { + "name": "facade/ignition-contracts", + "version": "1.0.2", + "source": { + "type": "git", + "url": "https://github.com/facade/ignition-contracts.git", + "reference": "3c921a1cdba35b68a7f0ccffc6dffc1995b18267" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/facade/ignition-contracts/zipball/3c921a1cdba35b68a7f0ccffc6dffc1995b18267", + "reference": "3c921a1cdba35b68a7f0ccffc6dffc1995b18267", + "shasum": "" + }, + "require": { + "php": "^7.3|^8.0" + }, + "require-dev": { + "friendsofphp/php-cs-fixer": "^v2.15.8", + "phpunit/phpunit": "^9.3.11", + "vimeo/psalm": "^3.17.1" + }, + "type": "library", "autoload": { "psr-4": { - "Fideloper\\Proxy\\": "src/" + "Facade\\IgnitionContracts\\": "src" } }, "notification-url": "https://packagist.org/downloads/", @@ -460,57 +665,52 @@ ], "authors": [ { - "name": "Chris Fidao", - "email": "fideloper@gmail.com" + "name": "Freek Van der Herten", + "email": "freek@spatie.be", + "homepage": "https://flareapp.io", + "role": "Developer" } ], - "description": "Set trusted proxies for Laravel", + "description": "Solution contracts for Ignition", + "homepage": "https://github.com/facade/ignition-contracts", "keywords": [ - "load balancing", - "proxy", - "trusted proxy" + "contracts", + "flare", + "ignition" ], "support": { - "issues": "https://github.com/fideloper/TrustedProxy/issues", - "source": "https://github.com/fideloper/TrustedProxy/tree/4.4.2" + "issues": "https://github.com/facade/ignition-contracts/issues", + "source": "https://github.com/facade/ignition-contracts/tree/1.0.2" }, - "time": "2022-02-09T13:33:34+00:00" + "time": "2020-10-16T08:27:54+00:00" }, { - "name": "fruitcake/laravel-cors", - "version": "v2.2.0", + "name": "fruitcake/php-cors", + "version": "v1.3.0", "source": { "type": "git", - "url": "https://github.com/fruitcake/laravel-cors.git", - "reference": "783a74f5e3431d7b9805be8afb60fd0a8f743534" + "url": "https://github.com/fruitcake/php-cors.git", + "reference": "3d158f36e7875e2f040f37bc0573956240a5a38b" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/fruitcake/laravel-cors/zipball/783a74f5e3431d7b9805be8afb60fd0a8f743534", - "reference": "783a74f5e3431d7b9805be8afb60fd0a8f743534", + "url": "https://api.github.com/repos/fruitcake/php-cors/zipball/3d158f36e7875e2f040f37bc0573956240a5a38b", + "reference": "3d158f36e7875e2f040f37bc0573956240a5a38b", "shasum": "" }, "require": { - "asm89/stack-cors": "^2.0.1", - "illuminate/contracts": "^6|^7|^8|^9", - "illuminate/support": "^6|^7|^8|^9", - "php": ">=7.2" + "php": "^7.4|^8.0", + "symfony/http-foundation": "^4.4|^5.4|^6|^7" }, "require-dev": { - "laravel/framework": "^6|^7.24|^8", - "orchestra/testbench-dusk": "^4|^5|^6|^7", - "phpunit/phpunit": "^6|^7|^8|^9", + "phpstan/phpstan": "^1.4", + "phpunit/phpunit": "^9", "squizlabs/php_codesniffer": "^3.5" }, "type": "library", "extra": { "branch-alias": { - "dev-master": "2.1-dev" - }, - "laravel": { - "providers": [ - "Fruitcake\\Cors\\CorsServiceProvider" - ] + "dev-master": "1.2-dev" } }, "autoload": { @@ -528,20 +728,20 @@ "homepage": "https://fruitcake.nl" }, { - "name": "Barry vd. Heuvel", + "name": "Barryvdh", "email": "barryvdh@gmail.com" } ], - "description": "Adds CORS (Cross-Origin Resource Sharing) headers support in your Laravel application", + "description": "Cross-origin resource sharing library for the Symfony HttpFoundation", + "homepage": "https://github.com/fruitcake/php-cors", "keywords": [ - "api", "cors", - "crossdomain", - "laravel" + "laravel", + "symfony" ], "support": { - "issues": "https://github.com/fruitcake/laravel-cors/issues", - "source": "https://github.com/fruitcake/laravel-cors/tree/v2.2.0" + "issues": "https://github.com/fruitcake/php-cors/issues", + "source": "https://github.com/fruitcake/php-cors/tree/v1.3.0" }, "funding": [ { @@ -553,28 +753,154 @@ "type": "github" } ], - "time": "2022-02-23T14:25:13+00:00" + "time": "2023-10-12T05:21:21+00:00" }, { - "name": "graham-campbell/result-type", - "version": "v1.1.0", + "name": "giggsey/libphonenumber-for-php", + "version": "8.13.26", "source": { "type": "git", - "url": "https://github.com/GrahamCampbell/Result-Type.git", - "reference": "a878d45c1914464426dc94da61c9e1d36ae262a8" + "url": "https://github.com/giggsey/libphonenumber-for-php.git", + "reference": "1d730fe40d5f32641c12ca143a086757c95cfccf" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/GrahamCampbell/Result-Type/zipball/a878d45c1914464426dc94da61c9e1d36ae262a8", - "reference": "a878d45c1914464426dc94da61c9e1d36ae262a8", + "url": "https://api.github.com/repos/giggsey/libphonenumber-for-php/zipball/1d730fe40d5f32641c12ca143a086757c95cfccf", + "reference": "1d730fe40d5f32641c12ca143a086757c95cfccf", + "shasum": "" + }, + "require": { + "giggsey/locale": "^1.7|^2.0", + "php": ">=5.3.2", + "symfony/polyfill-mbstring": "^1.17" + }, + "require-dev": { + "pear/pear-core-minimal": "^1.9", + "pear/pear_exception": "^1.0", + "pear/versioncontrol_git": "^0.5", + "phing/phing": "^2.7", + "php-coveralls/php-coveralls": "^1.0|^2.0", + "symfony/console": "^2.8|^3.0|^v4.4|^v5.2", + "symfony/phpunit-bridge": "^4.2 || ^5" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-master": "8.x-dev" + } + }, + "autoload": { + "psr-4": { + "libphonenumber\\": "src/" + }, + "exclude-from-classmap": [ + "/src/data/", + "/src/carrier/data/", + "/src/geocoding/data/", + "/src/timezone/data/" + ] + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "Apache-2.0" + ], + "authors": [ + { + "name": "Joshua Gigg", + "email": "giggsey@gmail.com", + "homepage": "https://giggsey.com/" + } + ], + "description": "PHP Port of Google's libphonenumber", + "homepage": "https://github.com/giggsey/libphonenumber-for-php", + "keywords": [ + "geocoding", + "geolocation", + "libphonenumber", + "mobile", + "phonenumber", + "validation" + ], + "support": { + "issues": "https://github.com/giggsey/libphonenumber-for-php/issues", + "source": "https://github.com/giggsey/libphonenumber-for-php" + }, + "time": "2023-11-23T07:57:25+00:00" + }, + { + "name": "giggsey/locale", + "version": "2.5", + "source": { + "type": "git", + "url": "https://github.com/giggsey/Locale.git", + "reference": "e6d4540109a01dd2bc7334cdc842d6a6a67cf239" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/giggsey/Locale/zipball/e6d4540109a01dd2bc7334cdc842d6a6a67cf239", + "reference": "e6d4540109a01dd2bc7334cdc842d6a6a67cf239", + "shasum": "" + }, + "require": { + "php": ">=7.2" + }, + "require-dev": { + "ext-json": "*", + "pear/pear-core-minimal": "^1.9", + "pear/pear_exception": "^1.0", + "pear/versioncontrol_git": "^0.5", + "phing/phing": "^2.7", + "php-coveralls/php-coveralls": "^2.0", + "phpunit/phpunit": "^8.5|^9.5", + "symfony/console": "^5.0|^6.0", + "symfony/filesystem": "^5.0|^6.0", + "symfony/finder": "^5.0|^6.0", + "symfony/process": "^5.0|^6.0" + }, + "type": "library", + "autoload": { + "psr-4": { + "Giggsey\\Locale\\": "src/" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Joshua Gigg", + "email": "giggsey@gmail.com", + "homepage": "https://giggsey.com/" + } + ], + "description": "Locale functions required by libphonenumber-for-php", + "support": { + "issues": "https://github.com/giggsey/Locale/issues", + "source": "https://github.com/giggsey/Locale/tree/2.5" + }, + "time": "2023-11-01T17:19:48+00:00" + }, + { + "name": "graham-campbell/result-type", + "version": "v1.1.2", + "source": { + "type": "git", + "url": "https://github.com/GrahamCampbell/Result-Type.git", + "reference": "fbd48bce38f73f8a4ec8583362e732e4095e5862" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/GrahamCampbell/Result-Type/zipball/fbd48bce38f73f8a4ec8583362e732e4095e5862", + "reference": "fbd48bce38f73f8a4ec8583362e732e4095e5862", "shasum": "" }, "require": { "php": "^7.2.5 || ^8.0", - "phpoption/phpoption": "^1.9" + "phpoption/phpoption": "^1.9.2" }, "require-dev": { - "phpunit/phpunit": "^8.5.28 || ^9.5.21" + "phpunit/phpunit": "^8.5.34 || ^9.6.13 || ^10.4.2" }, "type": "library", "autoload": { @@ -603,7 +929,7 @@ ], "support": { "issues": "https://github.com/GrahamCampbell/Result-Type/issues", - "source": "https://github.com/GrahamCampbell/Result-Type/tree/v1.1.0" + "source": "https://github.com/GrahamCampbell/Result-Type/tree/v1.1.2" }, "funding": [ { @@ -615,26 +941,26 @@ "type": "tidelift" } ], - "time": "2022-07-30T15:56:11+00:00" + "time": "2023-11-12T22:16:48+00:00" }, { "name": "guzzlehttp/guzzle", - "version": "7.4.5", + "version": "7.8.0", "source": { "type": "git", "url": "https://github.com/guzzle/guzzle.git", - "reference": "1dd98b0564cb3f6bd16ce683cb755f94c10fbd82" + "reference": "1110f66a6530a40fe7aea0378fe608ee2b2248f9" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/guzzle/guzzle/zipball/1dd98b0564cb3f6bd16ce683cb755f94c10fbd82", - "reference": "1dd98b0564cb3f6bd16ce683cb755f94c10fbd82", + "url": "https://api.github.com/repos/guzzle/guzzle/zipball/1110f66a6530a40fe7aea0378fe608ee2b2248f9", + "reference": "1110f66a6530a40fe7aea0378fe608ee2b2248f9", "shasum": "" }, "require": { "ext-json": "*", - "guzzlehttp/promises": "^1.5", - "guzzlehttp/psr7": "^1.9 || ^2.4", + "guzzlehttp/promises": "^1.5.3 || ^2.0.1", + "guzzlehttp/psr7": "^1.9.1 || ^2.5.1", "php": "^7.2.5 || ^8.0", "psr/http-client": "^1.0", "symfony/deprecation-contracts": "^2.2 || ^3.0" @@ -643,10 +969,11 @@ "psr/http-client-implementation": "1.0" }, "require-dev": { - "bamarni/composer-bin-plugin": "^1.4.1", + "bamarni/composer-bin-plugin": "^1.8.1", "ext-curl": "*", - "php-http/client-integration-tests": "^3.0", - "phpunit/phpunit": "^8.5.5 || ^9.3.5", + "php-http/client-integration-tests": "dev-master#2c025848417c1135031fdf9c728ee53d0a7ceaee as 3.0.999", + "php-http/message-factory": "^1.1", + "phpunit/phpunit": "^8.5.29 || ^9.5.23", "psr/log": "^1.1 || ^2.0 || ^3.0" }, "suggest": { @@ -656,8 +983,9 @@ }, "type": "library", "extra": { - "branch-alias": { - "dev-master": "7.4-dev" + "bamarni-bin": { + "bin-links": true, + "forward-command": false } }, "autoload": { @@ -723,7 +1051,7 @@ ], "support": { "issues": "https://github.com/guzzle/guzzle/issues", - "source": "https://github.com/guzzle/guzzle/tree/7.4.5" + "source": "https://github.com/guzzle/guzzle/tree/7.8.0" }, "funding": [ { @@ -739,38 +1067,37 @@ "type": "tidelift" } ], - "time": "2022-06-20T22:16:13+00:00" + "time": "2023-08-27T10:20:53+00:00" }, { "name": "guzzlehttp/promises", - "version": "1.5.1", + "version": "2.0.1", "source": { "type": "git", "url": "https://github.com/guzzle/promises.git", - "reference": "fe752aedc9fd8fcca3fe7ad05d419d32998a06da" + "reference": "111166291a0f8130081195ac4556a5587d7f1b5d" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/guzzle/promises/zipball/fe752aedc9fd8fcca3fe7ad05d419d32998a06da", - "reference": "fe752aedc9fd8fcca3fe7ad05d419d32998a06da", + "url": "https://api.github.com/repos/guzzle/promises/zipball/111166291a0f8130081195ac4556a5587d7f1b5d", + "reference": "111166291a0f8130081195ac4556a5587d7f1b5d", "shasum": "" }, "require": { - "php": ">=5.5" + "php": "^7.2.5 || ^8.0" }, "require-dev": { - "symfony/phpunit-bridge": "^4.4 || ^5.1" + "bamarni/composer-bin-plugin": "^1.8.1", + "phpunit/phpunit": "^8.5.29 || ^9.5.23" }, "type": "library", "extra": { - "branch-alias": { - "dev-master": "1.5-dev" + "bamarni-bin": { + "bin-links": true, + "forward-command": false } }, "autoload": { - "files": [ - "src/functions_include.php" - ], "psr-4": { "GuzzleHttp\\Promise\\": "src/" } @@ -807,7 +1134,7 @@ ], "support": { "issues": "https://github.com/guzzle/promises/issues", - "source": "https://github.com/guzzle/promises/tree/1.5.1" + "source": "https://github.com/guzzle/promises/tree/2.0.1" }, "funding": [ { @@ -823,26 +1150,26 @@ "type": "tidelift" } ], - "time": "2021-10-22T20:56:57+00:00" + "time": "2023-08-03T15:11:55+00:00" }, { "name": "guzzlehttp/psr7", - "version": "2.4.0", + "version": "2.6.1", "source": { "type": "git", "url": "https://github.com/guzzle/psr7.git", - "reference": "13388f00956b1503577598873fffb5ae994b5737" + "reference": "be45764272e8873c72dbe3d2edcfdfcc3bc9f727" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/guzzle/psr7/zipball/13388f00956b1503577598873fffb5ae994b5737", - "reference": "13388f00956b1503577598873fffb5ae994b5737", + "url": "https://api.github.com/repos/guzzle/psr7/zipball/be45764272e8873c72dbe3d2edcfdfcc3bc9f727", + "reference": "be45764272e8873c72dbe3d2edcfdfcc3bc9f727", "shasum": "" }, "require": { "php": "^7.2.5 || ^8.0", "psr/http-factory": "^1.0", - "psr/http-message": "^1.0", + "psr/http-message": "^1.1 || ^2.0", "ralouphie/getallheaders": "^3.0" }, "provide": { @@ -850,17 +1177,18 @@ "psr/http-message-implementation": "1.0" }, "require-dev": { - "bamarni/composer-bin-plugin": "^1.4.1", + "bamarni/composer-bin-plugin": "^1.8.1", "http-interop/http-factory-tests": "^0.9", - "phpunit/phpunit": "^8.5.8 || ^9.3.10" + "phpunit/phpunit": "^8.5.29 || ^9.5.23" }, "suggest": { "laminas/laminas-httphandlerrunner": "Emit PSR-7 responses" }, "type": "library", "extra": { - "branch-alias": { - "dev-master": "2.4-dev" + "bamarni-bin": { + "bin-links": true, + "forward-command": false } }, "autoload": { @@ -922,7 +1250,7 @@ ], "support": { "issues": "https://github.com/guzzle/psr7/issues", - "source": "https://github.com/guzzle/psr7/tree/2.4.0" + "source": "https://github.com/guzzle/psr7/tree/2.6.1" }, "funding": [ { @@ -938,42 +1266,333 @@ "type": "tidelift" } ], - "time": "2022-06-20T21:43:11+00:00" + "time": "2023-08-27T10:13:57+00:00" }, { - "name": "kwaadpepper/exception-handler", - "version": "0.0.6", + "name": "guzzlehttp/uri-template", + "version": "v1.0.2", "source": { "type": "git", - "url": "https://github.com/Kwaadpepper/exception-handler.git", - "reference": "9e17a9c0a43755d91cb98717e3fc7ba17db0c1c7" + "url": "https://github.com/guzzle/uri-template.git", + "reference": "61bf437fc2197f587f6857d3ff903a24f1731b5d" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/Kwaadpepper/exception-handler/zipball/9e17a9c0a43755d91cb98717e3fc7ba17db0c1c7", - "reference": "9e17a9c0a43755d91cb98717e3fc7ba17db0c1c7", + "url": "https://api.github.com/repos/guzzle/uri-template/zipball/61bf437fc2197f587f6857d3ff903a24f1731b5d", + "reference": "61bf437fc2197f587f6857d3ff903a24f1731b5d", "shasum": "" }, "require": { - "illuminate/support": "~7|~8", - "laravel/framework": "~7|~8" + "php": "^7.2.5 || ^8.0", + "symfony/polyfill-php80": "^1.17" }, "require-dev": { - "orchestra/testbench": "^6.13", - "phpunit/phpunit": "~9.0", - "squizlabs/php_codesniffer": "^3.5" + "bamarni/composer-bin-plugin": "^1.8.1", + "phpunit/phpunit": "^8.5.19 || ^9.5.8", + "uri-template/tests": "1.0.0" + }, + "type": "library", + "autoload": { + "psr-4": { + "GuzzleHttp\\UriTemplate\\": "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" + }, + { + "name": "George Mponos", + "email": "gmponos@gmail.com", + "homepage": "https://github.com/gmponos" + }, + { + "name": "Tobias Nyholm", + "email": "tobias.nyholm@gmail.com", + "homepage": "https://github.com/Nyholm" + } + ], + "description": "A polyfill class for uri_template of PHP", + "keywords": [ + "guzzlehttp", + "uri-template" + ], + "support": { + "issues": "https://github.com/guzzle/uri-template/issues", + "source": "https://github.com/guzzle/uri-template/tree/v1.0.2" + }, + "funding": [ + { + "url": "https://github.com/GrahamCampbell", + "type": "github" + }, + { + "url": "https://github.com/Nyholm", + "type": "github" + }, + { + "url": "https://tidelift.com/funding/github/packagist/guzzlehttp/uri-template", + "type": "tidelift" + } + ], + "time": "2023-08-27T10:19:19+00:00" + }, + { + "name": "intervention/image", + "version": "2.7.2", + "source": { + "type": "git", + "url": "https://github.com/Intervention/image.git", + "reference": "04be355f8d6734c826045d02a1079ad658322dad" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/Intervention/image/zipball/04be355f8d6734c826045d02a1079ad658322dad", + "reference": "04be355f8d6734c826045d02a1079ad658322dad", + "shasum": "" + }, + "require": { + "ext-fileinfo": "*", + "guzzlehttp/psr7": "~1.1 || ^2.0", + "php": ">=5.4.0" + }, + "require-dev": { + "mockery/mockery": "~0.9.2", + "phpunit/phpunit": "^4.8 || ^5.7 || ^7.5.15" + }, + "suggest": { + "ext-gd": "to use GD library based image processing.", + "ext-imagick": "to use Imagick based image processing.", + "intervention/imagecache": "Caching extension for the Intervention Image library" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-master": "2.4-dev" + }, + "laravel": { + "providers": [ + "Intervention\\Image\\ImageServiceProvider" + ], + "aliases": { + "Image": "Intervention\\Image\\Facades\\Image" + } + } + }, + "autoload": { + "psr-4": { + "Intervention\\Image\\": "src/Intervention/Image" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Oliver Vogel", + "email": "oliver@intervention.io", + "homepage": "https://intervention.io/" + } + ], + "description": "Image handling and manipulation library with support for Laravel integration", + "homepage": "http://image.intervention.io/", + "keywords": [ + "gd", + "image", + "imagick", + "laravel", + "thumbnail", + "watermark" + ], + "support": { + "issues": "https://github.com/Intervention/image/issues", + "source": "https://github.com/Intervention/image/tree/2.7.2" + }, + "funding": [ + { + "url": "https://paypal.me/interventionio", + "type": "custom" + }, + { + "url": "https://github.com/Intervention", + "type": "github" + } + ], + "time": "2022-05-21T17:30:32+00:00" + }, + { + "name": "intervention/imagecache", + "version": "2.6.0", + "source": { + "type": "git", + "url": "https://github.com/Intervention/imagecache.git", + "reference": "86136575a62d3634b51f196a998fce4a583b49bb" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/Intervention/imagecache/zipball/86136575a62d3634b51f196a998fce4a583b49bb", + "reference": "86136575a62d3634b51f196a998fce4a583b49bb", + "shasum": "" + }, + "require": { + "illuminate/cache": "^5.5|~6|~7|~8|~9|~10", + "illuminate/filesystem": "^5.5|~6|~7|~8|~9|~10", + "intervention/image": "~2.2", + "nesbot/carbon": "^2.39", + "opis/closure": "^3.5", + "php": "~7.2|~8" + }, + "require-dev": { + "phpunit/phpunit": "^8.0" + }, + "type": "library", + "autoload": { + "psr-4": { + "Intervention\\Image\\": "src/Intervention/Image" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Oliver Vogel", + "email": "oliver@intervention.io", + "homepage": "http://intervention.io/" + } + ], + "description": "Caching extension for the Intervention Image Class", + "homepage": "https://image.intervention.io", + "keywords": [ + "cache", + "gd", + "image", + "imagick", + "laravel" + ], + "support": { + "issues": "https://github.com/Intervention/imagecache/issues", + "source": "https://github.com/Intervention/imagecache/tree/2.6.0" + }, + "funding": [ + { + "url": "https://paypal.me/interventionio", + "type": "custom" + }, + { + "url": "https://github.com/Intervention", + "type": "github" + } + ], + "time": "2023-02-25T19:40:47+00:00" + }, + { + "name": "jean85/pretty-package-versions", + "version": "2.0.5", + "source": { + "type": "git", + "url": "https://github.com/Jean85/pretty-package-versions.git", + "reference": "ae547e455a3d8babd07b96966b17d7fd21d9c6af" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/Jean85/pretty-package-versions/zipball/ae547e455a3d8babd07b96966b17d7fd21d9c6af", + "reference": "ae547e455a3d8babd07b96966b17d7fd21d9c6af", + "shasum": "" + }, + "require": { + "composer-runtime-api": "^2.0.0", + "php": "^7.1|^8.0" + }, + "require-dev": { + "friendsofphp/php-cs-fixer": "^2.17", + "jean85/composer-provided-replaced-stub-package": "^1.0", + "phpstan/phpstan": "^0.12.66", + "phpunit/phpunit": "^7.5|^8.5|^9.4", + "vimeo/psalm": "^4.3" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-master": "1.x-dev" + } + }, + "autoload": { + "psr-4": { + "Jean85\\": "src/" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Alessandro Lai", + "email": "alessandro.lai85@gmail.com" + } + ], + "description": "A library to get pretty versions strings of installed dependencies", + "keywords": [ + "composer", + "package", + "release", + "versions" + ], + "support": { + "issues": "https://github.com/Jean85/pretty-package-versions/issues", + "source": "https://github.com/Jean85/pretty-package-versions/tree/2.0.5" + }, + "time": "2021-10-08T21:21:46+00:00" + }, + { + "name": "kwaadpepper/enum", + "version": "2.1.3", + "source": { + "type": "git", + "url": "https://github.com/Kwaadpepper/enum.git", + "reference": "cc695e6a07ee57a1220942581c303842e186b22f" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/Kwaadpepper/enum/zipball/cc695e6a07ee57a1220942581c303842e186b22f", + "reference": "cc695e6a07ee57a1220942581c303842e186b22f", + "shasum": "" + }, + "require": { + "php": ">=7.3" + }, + "require-dev": { + "orchestra/testbench": "^6", + "phpunit/php-code-coverage": "^9", + "phpunit/phpunit": "~9", + "slevomat/coding-standard": "^7", + "squizlabs/php_codesniffer": "^3" }, "type": "library", "extra": { "laravel": { "providers": [ - "Kwaadpepper\\ExceptionHandler\\ExceptionHandlerServiceProvider" + "Kwaadpepper\\Enum\\EnumServiceProvider" ] } }, "autoload": { "psr-4": { - "Kwaadpepper\\ExceptionHandler\\": "src/" + "Kwaadpepper\\Enum\\": "src/" } }, "notification-url": "https://packagist.org/downloads/", @@ -987,19 +1606,77 @@ "homepage": "https://jeremydev.ovh" } ], - "description": "Send emails when exceptions occurs", - "homepage": "https://github.com/kwaadpepper/exception-handler", + "description": "Enums to use for any project", + "homepage": "https://github.com/kwaadpepper/enum", "keywords": [ - "email", - "exception", - "laravel", - "policies" + "enum", + "laravel" ], "support": { - "issues": "https://github.com/Kwaadpepper/exception-handler/issues", - "source": "https://github.com/Kwaadpepper/exception-handler/tree/0.0.6" + "issues": "https://github.com/Kwaadpepper/enum/issues", + "source": "https://github.com/Kwaadpepper/enum/tree/2.1.3" }, - "time": "2021-12-01T08:54:11+00:00" + "time": "2022-07-28T15:18:54+00:00" + }, + { + "name": "kwaadpepper/image-resizer", + "version": "2.1.0", + "source": { + "type": "git", + "url": "https://github.com/Kwaadpepper/image-resizer.git", + "reference": "2a14ad153b34916f437af50549bad47c018902df" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/Kwaadpepper/image-resizer/zipball/2a14ad153b34916f437af50549bad47c018902df", + "reference": "2a14ad153b34916f437af50549bad47c018902df", + "shasum": "" + }, + "require": { + "illuminate/support": "~10", + "intervention/image": "^2.7.2", + "intervention/imagecache": "^2.6", + "laravel/framework": "~10" + }, + "require-dev": { + "slevomat/coding-standard": "^8.11" + }, + "type": "library", + "extra": { + "laravel": { + "providers": [ + "Kwaadpepper\\ImageResizer\\ImageResizerServiceProvider" + ] + } + }, + "autoload": { + "psr-4": { + "Kwaadpepper\\ImageResizer\\": "src/" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Jérémy Munsch", + "email": "github@jeremydev.ovh", + "homepage": "https://jeremydev.ovh" + } + ], + "description": "Resize images on the fly and cache them", + "homepage": "https://github.com/kwaadpepper/image-resizer", + "keywords": [ + "images", + "laravel", + "resize" + ], + "support": { + "issues": "https://github.com/Kwaadpepper/image-resizer/issues", + "source": "https://github.com/Kwaadpepper/image-resizer/tree/2.1.0" + }, + "time": "2023-06-08T12:07:24+00:00" }, { "name": "kwaadpepper/serial-int-caster", @@ -1049,56 +1726,66 @@ }, { "name": "laravel/framework", - "version": "v8.83.23", + "version": "v10.32.1", "source": { "type": "git", "url": "https://github.com/laravel/framework.git", - "reference": "bdc707f8b9bcad289b24cd182d98ec7480ac4491" + "reference": "b30e44f20d244f7ba125283e14a8bbac167f4e5b" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/laravel/framework/zipball/bdc707f8b9bcad289b24cd182d98ec7480ac4491", - "reference": "bdc707f8b9bcad289b24cd182d98ec7480ac4491", + "url": "https://api.github.com/repos/laravel/framework/zipball/b30e44f20d244f7ba125283e14a8bbac167f4e5b", + "reference": "b30e44f20d244f7ba125283e14a8bbac167f4e5b", "shasum": "" }, "require": { - "doctrine/inflector": "^1.4|^2.0", - "dragonmantank/cron-expression": "^3.0.2", - "egulias/email-validator": "^2.1.10", - "ext-json": "*", + "brick/math": "^0.9.3|^0.10.2|^0.11", + "composer-runtime-api": "^2.2", + "doctrine/inflector": "^2.0.5", + "dragonmantank/cron-expression": "^3.3.2", + "egulias/email-validator": "^3.2.1|^4.0", + "ext-ctype": "*", + "ext-filter": "*", + "ext-hash": "*", "ext-mbstring": "*", "ext-openssl": "*", - "laravel/serializable-closure": "^1.0", - "league/commonmark": "^1.3|^2.0.2", - "league/flysystem": "^1.1", - "monolog/monolog": "^2.0", - "nesbot/carbon": "^2.53.1", - "opis/closure": "^3.6", - "php": "^7.3|^8.0", - "psr/container": "^1.0", - "psr/log": "^1.0|^2.0", - "psr/simple-cache": "^1.0", - "ramsey/uuid": "^4.2.2", - "swiftmailer/swiftmailer": "^6.3", - "symfony/console": "^5.4", - "symfony/error-handler": "^5.4", - "symfony/finder": "^5.4", - "symfony/http-foundation": "^5.4", - "symfony/http-kernel": "^5.4", - "symfony/mime": "^5.4", - "symfony/process": "^5.4", - "symfony/routing": "^5.4", - "symfony/var-dumper": "^5.4", - "tijsverkoyen/css-to-inline-styles": "^2.2.2", + "ext-session": "*", + "ext-tokenizer": "*", + "fruitcake/php-cors": "^1.2", + "guzzlehttp/uri-template": "^1.0", + "laravel/prompts": "^0.1.9", + "laravel/serializable-closure": "^1.3", + "league/commonmark": "^2.2.1", + "league/flysystem": "^3.8.0", + "monolog/monolog": "^3.0", + "nesbot/carbon": "^2.67", + "nunomaduro/termwind": "^1.13", + "php": "^8.1", + "psr/container": "^1.1.1|^2.0.1", + "psr/log": "^1.0|^2.0|^3.0", + "psr/simple-cache": "^1.0|^2.0|^3.0", + "ramsey/uuid": "^4.7", + "symfony/console": "^6.2", + "symfony/error-handler": "^6.2", + "symfony/finder": "^6.2", + "symfony/http-foundation": "^6.3", + "symfony/http-kernel": "^6.2", + "symfony/mailer": "^6.2", + "symfony/mime": "^6.2", + "symfony/process": "^6.2", + "symfony/routing": "^6.2", + "symfony/uid": "^6.2", + "symfony/var-dumper": "^6.2", + "tijsverkoyen/css-to-inline-styles": "^2.2.5", "vlucas/phpdotenv": "^5.4.1", - "voku/portable-ascii": "^1.6.1" + "voku/portable-ascii": "^2.0" }, "conflict": { "tightenco/collect": "<5.5.33" }, "provide": { - "psr/container-implementation": "1.0", - "psr/simple-cache-implementation": "1.0" + "psr/container-implementation": "1.1|2.0", + "psr/simple-cache-implementation": "1.0|2.0|3.0" }, "replace": { "illuminate/auth": "self.version", @@ -1106,6 +1793,7 @@ "illuminate/bus": "self.version", "illuminate/cache": "self.version", "illuminate/collections": "self.version", + "illuminate/conditionable": "self.version", "illuminate/config": "self.version", "illuminate/console": "self.version", "illuminate/container": "self.version", @@ -1123,6 +1811,7 @@ "illuminate/notifications": "self.version", "illuminate/pagination": "self.version", "illuminate/pipeline": "self.version", + "illuminate/process": "self.version", "illuminate/queue": "self.version", "illuminate/redis": "self.version", "illuminate/routing": "self.version", @@ -1134,53 +1823,69 @@ "illuminate/view": "self.version" }, "require-dev": { - "aws/aws-sdk-php": "^3.198.1", - "doctrine/dbal": "^2.13.3|^3.1.4", - "filp/whoops": "^2.14.3", - "guzzlehttp/guzzle": "^6.5.5|^7.0.1", - "league/flysystem-cached-adapter": "^1.0", - "mockery/mockery": "^1.4.4", - "orchestra/testbench-core": "^6.27", + "ably/ably-php": "^1.0", + "aws/aws-sdk-php": "^3.235.5", + "doctrine/dbal": "^3.5.1", + "ext-gmp": "*", + "fakerphp/faker": "^1.21", + "guzzlehttp/guzzle": "^7.5", + "league/flysystem-aws-s3-v3": "^3.0", + "league/flysystem-ftp": "^3.0", + "league/flysystem-path-prefixing": "^3.3", + "league/flysystem-read-only": "^3.3", + "league/flysystem-sftp-v3": "^3.0", + "mockery/mockery": "^1.5.1", + "nyholm/psr7": "^1.2", + "orchestra/testbench-core": "^8.15.1", "pda/pheanstalk": "^4.0", - "phpunit/phpunit": "^8.5.19|^9.5.8", - "predis/predis": "^1.1.9", - "symfony/cache": "^5.4" + "phpstan/phpstan": "^1.4.7", + "phpunit/phpunit": "^10.0.7", + "predis/predis": "^2.0.2", + "symfony/cache": "^6.2", + "symfony/http-client": "^6.2.4", + "symfony/psr-http-message-bridge": "^2.0" }, "suggest": { "ably/ably-php": "Required to use the Ably broadcast driver (^1.0).", - "aws/aws-sdk-php": "Required to use the SQS queue driver, DynamoDb failed job storage and SES mail driver (^3.198.1).", + "aws/aws-sdk-php": "Required to use the SQS queue driver, DynamoDb failed job storage, and SES mail driver (^3.235.5).", "brianium/paratest": "Required to run tests in parallel (^6.0).", - "doctrine/dbal": "Required to rename columns and drop SQLite columns (^2.13.3|^3.1.4).", - "ext-bcmath": "Required to use the multiple_of validation rule.", + "doctrine/dbal": "Required to rename columns and drop SQLite columns (^3.5.1).", + "ext-apcu": "Required to use the APC cache driver.", + "ext-fileinfo": "Required to use the Filesystem class.", "ext-ftp": "Required to use the Flysystem FTP driver.", "ext-gd": "Required to use Illuminate\\Http\\Testing\\FileFactory::image().", "ext-memcached": "Required to use the memcache cache driver.", - "ext-pcntl": "Required to use all features of the queue worker.", + "ext-pcntl": "Required to use all features of the queue worker and console signal trapping.", + "ext-pdo": "Required to use all database features.", "ext-posix": "Required to use all features of the queue worker.", "ext-redis": "Required to use the Redis cache and queue drivers (^4.0|^5.0).", "fakerphp/faker": "Required to use the eloquent factory builder (^1.9.1).", "filp/whoops": "Required for friendly error pages in development (^2.14.3).", - "guzzlehttp/guzzle": "Required to use the HTTP Client, Mailgun mail driver and the ping methods on schedules (^6.5.5|^7.0.1).", + "guzzlehttp/guzzle": "Required to use the HTTP Client and the ping methods on schedules (^7.5).", "laravel/tinker": "Required to use the tinker console command (^2.0).", - "league/flysystem-aws-s3-v3": "Required to use the Flysystem S3 driver (^1.0).", - "league/flysystem-cached-adapter": "Required to use the Flysystem cache (^1.0).", - "league/flysystem-sftp": "Required to use the Flysystem SFTP driver (^1.0).", - "mockery/mockery": "Required to use mocking (^1.4.4).", + "league/flysystem-aws-s3-v3": "Required to use the Flysystem S3 driver (^3.0).", + "league/flysystem-ftp": "Required to use the Flysystem FTP driver (^3.0).", + "league/flysystem-path-prefixing": "Required to use the scoped driver (^3.3).", + "league/flysystem-read-only": "Required to use read-only disks (^3.3)", + "league/flysystem-sftp-v3": "Required to use the Flysystem SFTP driver (^3.0).", + "mockery/mockery": "Required to use mocking (^1.5.1).", "nyholm/psr7": "Required to use PSR-7 bridging features (^1.2).", "pda/pheanstalk": "Required to use the beanstalk queue driver (^4.0).", - "phpunit/phpunit": "Required to use assertions and run tests (^8.5.19|^9.5.8).", - "predis/predis": "Required to use the predis connector (^1.1.9).", + "phpunit/phpunit": "Required to use assertions and run tests (^9.5.8|^10.0.7).", + "predis/predis": "Required to use the predis connector (^2.0.2).", "psr/http-message": "Required to allow Storage::put to accept a StreamInterface (^1.0).", - "pusher/pusher-php-server": "Required to use the Pusher broadcast driver (^4.0|^5.0|^6.0|^7.0).", - "symfony/cache": "Required to PSR-6 cache bridge (^5.4).", - "symfony/filesystem": "Required to enable support for relative symbolic links (^5.4).", - "symfony/psr-http-message-bridge": "Required to use PSR-7 bridging features (^2.0).", - "wildbit/swiftmailer-postmark": "Required to use Postmark mail driver (^3.0)." + "pusher/pusher-php-server": "Required to use the Pusher broadcast driver (^6.0|^7.0).", + "symfony/cache": "Required to PSR-6 cache bridge (^6.2).", + "symfony/filesystem": "Required to enable support for relative symbolic links (^6.2).", + "symfony/http-client": "Required to enable support for the Symfony API mail transports (^6.2).", + "symfony/mailgun-mailer": "Required to enable support for the Mailgun mail transport (^6.2).", + "symfony/postmark-mailer": "Required to enable support for the Postmark mail transport (^6.2).", + "symfony/psr-http-message-bridge": "Required to use PSR-7 bridging features (^2.0)." }, "type": "library", "extra": { "branch-alias": { - "dev-master": "8.x-dev" + "dev-master": "10.x-dev" } }, "autoload": { @@ -1194,7 +1899,8 @@ "Illuminate\\": "src/Illuminate/", "Illuminate\\Support\\": [ "src/Illuminate/Macroable/", - "src/Illuminate/Collections/" + "src/Illuminate/Collections/", + "src/Illuminate/Conditionable/" ] } }, @@ -1218,29 +1924,87 @@ "issues": "https://github.com/laravel/framework/issues", "source": "https://github.com/laravel/framework" }, - "time": "2022-07-26T13:30:00+00:00" + "time": "2023-11-14T22:57:08+00:00" }, { - "name": "laravel/serializable-closure", - "version": "v1.2.0", + "name": "laravel/prompts", + "version": "v0.1.13", "source": { "type": "git", - "url": "https://github.com/laravel/serializable-closure.git", - "reference": "09f0e9fb61829f628205b7c94906c28740ff9540" + "url": "https://github.com/laravel/prompts.git", + "reference": "e1379d8ead15edd6cc4369c22274345982edc95a" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/laravel/serializable-closure/zipball/09f0e9fb61829f628205b7c94906c28740ff9540", - "reference": "09f0e9fb61829f628205b7c94906c28740ff9540", + "url": "https://api.github.com/repos/laravel/prompts/zipball/e1379d8ead15edd6cc4369c22274345982edc95a", + "reference": "e1379d8ead15edd6cc4369c22274345982edc95a", + "shasum": "" + }, + "require": { + "ext-mbstring": "*", + "illuminate/collections": "^10.0|^11.0", + "php": "^8.1", + "symfony/console": "^6.2|^7.0" + }, + "conflict": { + "illuminate/console": ">=10.17.0 <10.25.0", + "laravel/framework": ">=10.17.0 <10.25.0" + }, + "require-dev": { + "mockery/mockery": "^1.5", + "pestphp/pest": "^2.3", + "phpstan/phpstan": "^1.10", + "phpstan/phpstan-mockery": "^1.1" + }, + "suggest": { + "ext-pcntl": "Required for the spinner to be animated." + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-main": "0.1.x-dev" + } + }, + "autoload": { + "files": [ + "src/helpers.php" + ], + "psr-4": { + "Laravel\\Prompts\\": "src/" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "support": { + "issues": "https://github.com/laravel/prompts/issues", + "source": "https://github.com/laravel/prompts/tree/v0.1.13" + }, + "time": "2023-10-27T13:53:59+00:00" + }, + { + "name": "laravel/serializable-closure", + "version": "v1.3.3", + "source": { + "type": "git", + "url": "https://github.com/laravel/serializable-closure.git", + "reference": "3dbf8a8e914634c48d389c1234552666b3d43754" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/laravel/serializable-closure/zipball/3dbf8a8e914634c48d389c1234552666b3d43754", + "reference": "3dbf8a8e914634c48d389c1234552666b3d43754", "shasum": "" }, "require": { "php": "^7.3|^8.0" }, "require-dev": { - "pestphp/pest": "^1.18", - "phpstan/phpstan": "^0.12.98", - "symfony/var-dumper": "^5.3" + "nesbot/carbon": "^2.61", + "pestphp/pest": "^1.21.3", + "phpstan/phpstan": "^1.8.2", + "symfony/var-dumper": "^5.4.11" }, "type": "library", "extra": { @@ -1277,36 +2041,37 @@ "issues": "https://github.com/laravel/serializable-closure/issues", "source": "https://github.com/laravel/serializable-closure" }, - "time": "2022-05-16T17:09:47+00:00" + "time": "2023-11-08T14:08:06+00:00" }, { "name": "laravel/tinker", - "version": "v2.7.2", + "version": "v2.8.2", "source": { "type": "git", "url": "https://github.com/laravel/tinker.git", - "reference": "dff39b661e827dae6e092412f976658df82dbac5" + "reference": "b936d415b252b499e8c3b1f795cd4fc20f57e1f3" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/laravel/tinker/zipball/dff39b661e827dae6e092412f976658df82dbac5", - "reference": "dff39b661e827dae6e092412f976658df82dbac5", + "url": "https://api.github.com/repos/laravel/tinker/zipball/b936d415b252b499e8c3b1f795cd4fc20f57e1f3", + "reference": "b936d415b252b499e8c3b1f795cd4fc20f57e1f3", "shasum": "" }, "require": { - "illuminate/console": "^6.0|^7.0|^8.0|^9.0", - "illuminate/contracts": "^6.0|^7.0|^8.0|^9.0", - "illuminate/support": "^6.0|^7.0|^8.0|^9.0", + "illuminate/console": "^6.0|^7.0|^8.0|^9.0|^10.0", + "illuminate/contracts": "^6.0|^7.0|^8.0|^9.0|^10.0", + "illuminate/support": "^6.0|^7.0|^8.0|^9.0|^10.0", "php": "^7.2.5|^8.0", "psy/psysh": "^0.10.4|^0.11.1", "symfony/var-dumper": "^4.3.4|^5.0|^6.0" }, "require-dev": { "mockery/mockery": "~1.3.3|^1.4.2", + "phpstan/phpstan": "^1.10", "phpunit/phpunit": "^8.5.8|^9.3.3" }, "suggest": { - "illuminate/database": "The Illuminate Database package (^6.0|^7.0|^8.0|^9.0)." + "illuminate/database": "The Illuminate Database package (^6.0|^7.0|^8.0|^9.0|^10.0)." }, "type": "library", "extra": { @@ -1343,38 +2108,39 @@ ], "support": { "issues": "https://github.com/laravel/tinker/issues", - "source": "https://github.com/laravel/tinker/tree/v2.7.2" + "source": "https://github.com/laravel/tinker/tree/v2.8.2" }, - "time": "2022-03-23T12:38:24+00:00" + "time": "2023-08-15T14:27:00+00:00" }, { "name": "laravel/ui", - "version": "v3.4.6", + "version": "v4.2.2", "source": { "type": "git", "url": "https://github.com/laravel/ui.git", - "reference": "65ec5c03f7fee2c8ecae785795b829a15be48c2c" + "reference": "a58ec468db4a340b33f3426c778784717a2c144b" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/laravel/ui/zipball/65ec5c03f7fee2c8ecae785795b829a15be48c2c", - "reference": "65ec5c03f7fee2c8ecae785795b829a15be48c2c", + "url": "https://api.github.com/repos/laravel/ui/zipball/a58ec468db4a340b33f3426c778784717a2c144b", + "reference": "a58ec468db4a340b33f3426c778784717a2c144b", "shasum": "" }, "require": { - "illuminate/console": "^8.42|^9.0", - "illuminate/filesystem": "^8.42|^9.0", - "illuminate/support": "^8.82|^9.0", - "illuminate/validation": "^8.42|^9.0", - "php": "^7.3|^8.0" + "illuminate/console": "^9.21|^10.0", + "illuminate/filesystem": "^9.21|^10.0", + "illuminate/support": "^9.21|^10.0", + "illuminate/validation": "^9.21|^10.0", + "php": "^8.0" }, "require-dev": { - "orchestra/testbench": "^6.23|^7.0" + "orchestra/testbench": "^7.0|^8.0", + "phpunit/phpunit": "^9.3" }, "type": "library", "extra": { "branch-alias": { - "dev-master": "3.x-dev" + "dev-master": "4.x-dev" }, "laravel": { "providers": [ @@ -1404,48 +2170,163 @@ "ui" ], "support": { - "source": "https://github.com/laravel/ui/tree/v3.4.6" + "source": "https://github.com/laravel/ui/tree/v4.2.2" }, - "time": "2022-05-20T13:38:08+00:00" + "time": "2023-05-09T19:47:28+00:00" }, { - "name": "league/commonmark", - "version": "1.6.7", + "name": "ldc/ldccrmv2client", + "version": "3.0.6", + "dist": { + "type": "path", + "url": "./app/Lib/vendor/crm-client-3.0.6", + "reference": "0bbffe3ca49766dca78da38330cc85126f100a9e" + }, + "require": { + "guzzlehttp/guzzle": "^7.4", + "kwaadpepper/enum": "^2.1", + "respect/validation": "^2.2" + }, + "require-dev": { + "orchestra/testbench": "^6.13", + "phpunit/phpunit": "~9.0", + "slevomat/coding-standard": "^7.0", + "squizlabs/php_codesniffer": "^3.5" + }, + "type": "library", + "autoload": { + "psr-4": { + "LDC\\LDCCRM\\": "src/" + } + }, + "autoload-dev": { + "psr-4": { + "LDC\\LDCCRM\\Tests\\": "tests" + } + }, + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Jérémy Munsch", + "email": "jeremy.munsch@ldc.fr", + "homepage": "https://jeremydev.ovh" + } + ], + "description": "LDC CRM Client V2", + "homepage": "https://github.com/kwaadpepper", + "keywords": [ + "CRM", + "Client", + "LDC", + "Laravel" + ], + "transport-options": { + "relative": true + } + }, + { + "name": "ldc/sitemap-generator", + "version": "2.0.0", "source": { "type": "git", - "url": "https://github.com/thephpleague/commonmark.git", - "reference": "2b8185c13bc9578367a5bf901881d1c1b5bbd09b" + "url": "https://lab.s-web.fr/ldc-web/projets/sitemap-generator.git", + "reference": "289502502bd63d02f3261e0f4e335e8eb33f5462" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/thephpleague/commonmark/zipball/2b8185c13bc9578367a5bf901881d1c1b5bbd09b", - "reference": "2b8185c13bc9578367a5bf901881d1c1b5bbd09b", + "url": "https://lab.s-web.fr/api/v4/projects/108/packages/composer/archives/ldc/sitemap-generator.zip?sha=289502502bd63d02f3261e0f4e335e8eb33f5462", + "reference": "289502502bd63d02f3261e0f4e335e8eb33f5462", + "shasum": "" + }, + "require": { + "illuminate/support": "~10", + "laravel/framework": "~10", + "spatie/laravel-sitemap": "^6.3.1" + }, + "require-dev": { + "slevomat/coding-standard": "^8.14" + }, + "type": "library", + "extra": { + "laravel": { + "providers": [ + "LDC\\SitemapGenerator\\SitemapGeneratorServiceProvider" + ] + } + }, + "autoload": { + "psr-4": { + "LDC\\SitemapGenerator\\": "src/" + } + }, + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Jérémy Munsch", + "email": "github@jeremydev.ovh", + "homepage": "https://jeremydev.ovh" + } + ], + "description": "Create sitemap.xml", + "keywords": [ + "Laravel", + "Sitemap" + ] + }, + { + "name": "league/commonmark", + "version": "2.4.1", + "source": { + "type": "git", + "url": "https://github.com/thephpleague/commonmark.git", + "reference": "3669d6d5f7a47a93c08ddff335e6d945481a1dd5" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/thephpleague/commonmark/zipball/3669d6d5f7a47a93c08ddff335e6d945481a1dd5", + "reference": "3669d6d5f7a47a93c08ddff335e6d945481a1dd5", "shasum": "" }, "require": { "ext-mbstring": "*", - "php": "^7.1 || ^8.0" - }, - "conflict": { - "scrutinizer/ocular": "1.7.*" + "league/config": "^1.1.1", + "php": "^7.4 || ^8.0", + "psr/event-dispatcher": "^1.0", + "symfony/deprecation-contracts": "^2.1 || ^3.0", + "symfony/polyfill-php80": "^1.16" }, "require-dev": { - "cebe/markdown": "~1.0", - "commonmark/commonmark.js": "0.29.2", - "erusev/parsedown": "~1.0", + "cebe/markdown": "^1.0", + "commonmark/cmark": "0.30.0", + "commonmark/commonmark.js": "0.30.0", + "composer/package-versions-deprecated": "^1.8", + "embed/embed": "^4.4", + "erusev/parsedown": "^1.0", "ext-json": "*", "github/gfm": "0.29.0", - "michelf/php-markdown": "~1.4", - "mikehaertl/php-shellcommand": "^1.4", - "phpstan/phpstan": "^0.12.90", - "phpunit/phpunit": "^7.5 || ^8.5 || ^9.2", - "scrutinizer/ocular": "^1.5", - "symfony/finder": "^4.2" + "michelf/php-markdown": "^1.4 || ^2.0", + "nyholm/psr7": "^1.5", + "phpstan/phpstan": "^1.8.2", + "phpunit/phpunit": "^9.5.21", + "scrutinizer/ocular": "^1.8.1", + "symfony/finder": "^5.3 | ^6.0", + "symfony/yaml": "^2.3 | ^3.0 | ^4.0 | ^5.0 | ^6.0", + "unleashedtech/php-coding-standard": "^3.1.1", + "vimeo/psalm": "^4.24.0 || ^5.0.0" + }, + "suggest": { + "symfony/yaml": "v2.3+ required if using the Front Matter extension" }, - "bin": [ - "bin/commonmark" - ], "type": "library", + "extra": { + "branch-alias": { + "dev-main": "2.5-dev" + } + }, "autoload": { "psr-4": { "League\\CommonMark\\": "src" @@ -1463,7 +2344,7 @@ "role": "Lead Developer" } ], - "description": "Highly-extensible PHP Markdown parser which fully supports the CommonMark spec and Github-Flavored Markdown (GFM)", + "description": "Highly-extensible PHP Markdown parser which fully supports the CommonMark spec and GitHub-Flavored Markdown (GFM)", "homepage": "https://commonmark.thephpleague.com", "keywords": [ "commonmark", @@ -1477,6 +2358,7 @@ ], "support": { "docs": "https://commonmark.thephpleague.com/", + "forum": "https://github.com/thephpleague/commonmark/discussions", "issues": "https://github.com/thephpleague/commonmark/issues", "rss": "https://github.com/thephpleague/commonmark/releases.atom", "source": "https://github.com/thephpleague/commonmark" @@ -1499,58 +2381,138 @@ "type": "tidelift" } ], - "time": "2022-01-13T17:18:13+00:00" + "time": "2023-08-30T16:55:00+00:00" }, { - "name": "league/flysystem", - "version": "1.1.9", + "name": "league/config", + "version": "v1.2.0", "source": { "type": "git", - "url": "https://github.com/thephpleague/flysystem.git", - "reference": "094defdb4a7001845300334e7c1ee2335925ef99" + "url": "https://github.com/thephpleague/config.git", + "reference": "754b3604fb2984c71f4af4a9cbe7b57f346ec1f3" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/thephpleague/flysystem/zipball/094defdb4a7001845300334e7c1ee2335925ef99", - "reference": "094defdb4a7001845300334e7c1ee2335925ef99", + "url": "https://api.github.com/repos/thephpleague/config/zipball/754b3604fb2984c71f4af4a9cbe7b57f346ec1f3", + "reference": "754b3604fb2984c71f4af4a9cbe7b57f346ec1f3", "shasum": "" }, "require": { - "ext-fileinfo": "*", - "league/mime-type-detection": "^1.3", - "php": "^7.2.5 || ^8.0" - }, - "conflict": { - "league/flysystem-sftp": "<1.0.6" + "dflydev/dot-access-data": "^3.0.1", + "nette/schema": "^1.2", + "php": "^7.4 || ^8.0" }, "require-dev": { - "phpspec/prophecy": "^1.11.1", - "phpunit/phpunit": "^8.5.8" - }, - "suggest": { - "ext-ftp": "Allows you to use FTP server storage", - "ext-openssl": "Allows you to use FTPS server storage", - "league/flysystem-aws-s3-v2": "Allows you to use S3 storage with AWS SDK v2", - "league/flysystem-aws-s3-v3": "Allows you to use S3 storage with AWS SDK v3", - "league/flysystem-azure": "Allows you to use Windows Azure Blob storage", - "league/flysystem-cached-adapter": "Flysystem adapter decorator for metadata caching", - "league/flysystem-eventable-filesystem": "Allows you to use EventableFilesystem", - "league/flysystem-rackspace": "Allows you to use Rackspace Cloud Files", - "league/flysystem-sftp": "Allows you to use SFTP server storage via phpseclib", - "league/flysystem-webdav": "Allows you to use WebDAV storage", - "league/flysystem-ziparchive": "Allows you to use ZipArchive adapter", - "spatie/flysystem-dropbox": "Allows you to use Dropbox storage", - "srmklive/flysystem-dropbox-v2": "Allows you to use Dropbox storage for PHP 5 applications" + "phpstan/phpstan": "^1.8.2", + "phpunit/phpunit": "^9.5.5", + "scrutinizer/ocular": "^1.8.1", + "unleashedtech/php-coding-standard": "^3.1", + "vimeo/psalm": "^4.7.3" }, "type": "library", "extra": { "branch-alias": { - "dev-master": "1.1-dev" + "dev-main": "1.2-dev" } }, "autoload": { "psr-4": { - "League\\Flysystem\\": "src/" + "League\\Config\\": "src" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "BSD-3-Clause" + ], + "authors": [ + { + "name": "Colin O'Dell", + "email": "colinodell@gmail.com", + "homepage": "https://www.colinodell.com", + "role": "Lead Developer" + } + ], + "description": "Define configuration arrays with strict schemas and access values with dot notation", + "homepage": "https://config.thephpleague.com", + "keywords": [ + "array", + "config", + "configuration", + "dot", + "dot-access", + "nested", + "schema" + ], + "support": { + "docs": "https://config.thephpleague.com/", + "issues": "https://github.com/thephpleague/config/issues", + "rss": "https://github.com/thephpleague/config/releases.atom", + "source": "https://github.com/thephpleague/config" + }, + "funding": [ + { + "url": "https://www.colinodell.com/sponsor", + "type": "custom" + }, + { + "url": "https://www.paypal.me/colinpodell/10.00", + "type": "custom" + }, + { + "url": "https://github.com/colinodell", + "type": "github" + } + ], + "time": "2022-12-11T20:36:23+00:00" + }, + { + "name": "league/flysystem", + "version": "3.21.0", + "source": { + "type": "git", + "url": "https://github.com/thephpleague/flysystem.git", + "reference": "a326d8a2d007e4ca327a57470846e34363789258" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/thephpleague/flysystem/zipball/a326d8a2d007e4ca327a57470846e34363789258", + "reference": "a326d8a2d007e4ca327a57470846e34363789258", + "shasum": "" + }, + "require": { + "league/flysystem-local": "^3.0.0", + "league/mime-type-detection": "^1.0.0", + "php": "^8.0.2" + }, + "conflict": { + "async-aws/core": "<1.19.0", + "async-aws/s3": "<1.14.0", + "aws/aws-sdk-php": "3.209.31 || 3.210.0", + "guzzlehttp/guzzle": "<7.0", + "guzzlehttp/ringphp": "<1.1.1", + "phpseclib/phpseclib": "3.0.15", + "symfony/http-client": "<5.2" + }, + "require-dev": { + "async-aws/s3": "^1.5 || ^2.0", + "async-aws/simple-s3": "^1.1 || ^2.0", + "aws/aws-sdk-php": "^3.220.0", + "composer/semver": "^3.0", + "ext-fileinfo": "*", + "ext-ftp": "*", + "ext-zip": "*", + "friendsofphp/php-cs-fixer": "^3.5", + "google/cloud-storage": "^1.23", + "microsoft/azure-storage-blob": "^1.1", + "phpseclib/phpseclib": "^3.0.14", + "phpstan/phpstan": "^1.10", + "phpunit/phpunit": "^9.5.11|^10.0", + "sabre/dav": "^4.3.1" + }, + "type": "library", + "autoload": { + "psr-4": { + "League\\Flysystem\\": "src" } }, "notification-url": "https://packagist.org/downloads/", @@ -1560,63 +2522,186 @@ "authors": [ { "name": "Frank de Jonge", - "email": "info@frenky.net" + "email": "info@frankdejonge.nl" } ], - "description": "Filesystem abstraction: Many filesystems, one API.", + "description": "File storage abstraction for PHP", "keywords": [ - "Cloud Files", "WebDAV", - "abstraction", "aws", "cloud", - "copy.com", - "dropbox", - "file systems", + "file", "files", "filesystem", "filesystems", "ftp", - "rackspace", - "remote", "s3", "sftp", "storage" ], "support": { "issues": "https://github.com/thephpleague/flysystem/issues", - "source": "https://github.com/thephpleague/flysystem/tree/1.1.9" + "source": "https://github.com/thephpleague/flysystem/tree/3.21.0" }, "funding": [ { - "url": "https://offset.earth/frankdejonge", - "type": "other" + "url": "https://ecologi.com/frankdejonge", + "type": "custom" + }, + { + "url": "https://github.com/frankdejonge", + "type": "github" } ], - "time": "2021-12-09T09:40:50+00:00" + "time": "2023-11-18T13:59:15+00:00" }, { - "name": "league/mime-type-detection", - "version": "1.11.0", + "name": "league/flysystem-local", + "version": "3.21.0", "source": { "type": "git", - "url": "https://github.com/thephpleague/mime-type-detection.git", - "reference": "ff6248ea87a9f116e78edd6002e39e5128a0d4dd" + "url": "https://github.com/thephpleague/flysystem-local.git", + "reference": "470eb1c09eaabd49ebd908ae06f23983ba3ecfe7" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/thephpleague/mime-type-detection/zipball/ff6248ea87a9f116e78edd6002e39e5128a0d4dd", - "reference": "ff6248ea87a9f116e78edd6002e39e5128a0d4dd", + "url": "https://api.github.com/repos/thephpleague/flysystem-local/zipball/470eb1c09eaabd49ebd908ae06f23983ba3ecfe7", + "reference": "470eb1c09eaabd49ebd908ae06f23983ba3ecfe7", "shasum": "" }, "require": { "ext-fileinfo": "*", - "php": "^7.2 || ^8.0" + "league/flysystem": "^3.0.0", + "league/mime-type-detection": "^1.0.0", + "php": "^8.0.2" + }, + "type": "library", + "autoload": { + "psr-4": { + "League\\Flysystem\\Local\\": "" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Frank de Jonge", + "email": "info@frankdejonge.nl" + } + ], + "description": "Local filesystem adapter for Flysystem.", + "keywords": [ + "Flysystem", + "file", + "files", + "filesystem", + "local" + ], + "support": { + "issues": "https://github.com/thephpleague/flysystem-local/issues", + "source": "https://github.com/thephpleague/flysystem-local/tree/3.21.0" + }, + "funding": [ + { + "url": "https://ecologi.com/frankdejonge", + "type": "custom" + }, + { + "url": "https://github.com/frankdejonge", + "type": "github" + } + ], + "time": "2023-11-18T13:41:42+00:00" + }, + { + "name": "league/glide", + "version": "2.3.0", + "source": { + "type": "git", + "url": "https://github.com/thephpleague/glide.git", + "reference": "2ff92c8f1edc80b74e2d3c5efccfc7223f74d407" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/thephpleague/glide/zipball/2ff92c8f1edc80b74e2d3c5efccfc7223f74d407", + "reference": "2ff92c8f1edc80b74e2d3c5efccfc7223f74d407", + "shasum": "" + }, + "require": { + "intervention/image": "^2.7", + "league/flysystem": "^2.0|^3.0", + "php": "^7.2|^8.0", + "psr/http-message": "^1.0|^2.0" + }, + "require-dev": { + "mockery/mockery": "^1.3.3", + "phpunit/php-token-stream": "^3.1|^4.0", + "phpunit/phpunit": "^8.5|^9.0" + }, + "type": "library", + "autoload": { + "psr-4": { + "League\\Glide\\": "src/" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Jonathan Reinink", + "email": "jonathan@reinink.ca", + "homepage": "http://reinink.ca" + }, + { + "name": "Titouan Galopin", + "email": "galopintitouan@gmail.com", + "homepage": "https://titouangalopin.com" + } + ], + "description": "Wonderfully easy on-demand image manipulation library with an HTTP based API.", + "homepage": "http://glide.thephpleague.com", + "keywords": [ + "ImageMagick", + "editing", + "gd", + "image", + "imagick", + "league", + "manipulation", + "processing" + ], + "support": { + "issues": "https://github.com/thephpleague/glide/issues", + "source": "https://github.com/thephpleague/glide/tree/2.3.0" + }, + "time": "2023-07-08T06:26:07+00:00" + }, + { + "name": "league/mime-type-detection", + "version": "1.14.0", + "source": { + "type": "git", + "url": "https://github.com/thephpleague/mime-type-detection.git", + "reference": "b6a5854368533df0295c5761a0253656a2e52d9e" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/thephpleague/mime-type-detection/zipball/b6a5854368533df0295c5761a0253656a2e52d9e", + "reference": "b6a5854368533df0295c5761a0253656a2e52d9e", + "shasum": "" + }, + "require": { + "ext-fileinfo": "*", + "php": "^7.4 || ^8.0" }, "require-dev": { "friendsofphp/php-cs-fixer": "^3.2", "phpstan/phpstan": "^0.12.68", - "phpunit/phpunit": "^8.5.8 || ^9.3" + "phpunit/phpunit": "^8.5.8 || ^9.3 || ^10.0" }, "type": "library", "autoload": { @@ -1637,7 +2722,7 @@ "description": "Mime-type detection for Flysystem", "support": { "issues": "https://github.com/thephpleague/mime-type-detection/issues", - "source": "https://github.com/thephpleague/mime-type-detection/tree/1.11.0" + "source": "https://github.com/thephpleague/mime-type-detection/tree/1.14.0" }, "funding": [ { @@ -1649,46 +2734,261 @@ "type": "tidelift" } ], - "time": "2022-04-17T13:12:02+00:00" + "time": "2023-10-17T14:13:20+00:00" }, { - "name": "monolog/monolog", - "version": "2.8.0", + "name": "masterminds/html5", + "version": "2.8.1", "source": { "type": "git", - "url": "https://github.com/Seldaek/monolog.git", - "reference": "720488632c590286b88b80e62aa3d3d551ad4a50" + "url": "https://github.com/Masterminds/html5-php.git", + "reference": "f47dcf3c70c584de14f21143c55d9939631bc6cf" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/Seldaek/monolog/zipball/720488632c590286b88b80e62aa3d3d551ad4a50", - "reference": "720488632c590286b88b80e62aa3d3d551ad4a50", + "url": "https://api.github.com/repos/Masterminds/html5-php/zipball/f47dcf3c70c584de14f21143c55d9939631bc6cf", + "reference": "f47dcf3c70c584de14f21143c55d9939631bc6cf", "shasum": "" }, "require": { - "php": ">=7.2", - "psr/log": "^1.0.1 || ^2.0 || ^3.0" - }, - "provide": { - "psr/log-implementation": "1.0.0 || 2.0.0 || 3.0.0" + "ext-dom": "*", + "php": ">=5.3.0" }, "require-dev": { - "aws/aws-sdk-php": "^2.4.9 || ^3.0", + "phpunit/phpunit": "^4.8.35 || ^5.7.21 || ^6 || ^7 || ^8" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-master": "2.7-dev" + } + }, + "autoload": { + "psr-4": { + "Masterminds\\": "src" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Matt Butcher", + "email": "technosophos@gmail.com" + }, + { + "name": "Matt Farina", + "email": "matt@mattfarina.com" + }, + { + "name": "Asmir Mustafic", + "email": "goetas@gmail.com" + } + ], + "description": "An HTML5 parser and serializer.", + "homepage": "http://masterminds.github.io/html5-php", + "keywords": [ + "HTML5", + "dom", + "html", + "parser", + "querypath", + "serializer", + "xml" + ], + "support": { + "issues": "https://github.com/Masterminds/html5-php/issues", + "source": "https://github.com/Masterminds/html5-php/tree/2.8.1" + }, + "time": "2023-05-10T11:58:31+00:00" + }, + { + "name": "mews/purifier", + "version": "3.4.1", + "source": { + "type": "git", + "url": "https://github.com/mewebstudio/Purifier.git", + "reference": "48e7bddc18140412d7cd815b6eea2fc7a141c432" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/mewebstudio/Purifier/zipball/48e7bddc18140412d7cd815b6eea2fc7a141c432", + "reference": "48e7bddc18140412d7cd815b6eea2fc7a141c432", + "shasum": "" + }, + "require": { + "ezyang/htmlpurifier": "^4.16.0", + "illuminate/config": "^5.8|^6.0|^7.0|^8.0|^9.0|^10.0", + "illuminate/filesystem": "^5.8|^6.0|^7.0|^8.0|^9.0|^10.0", + "illuminate/support": "^5.8|^6.0|^7.0|^8.0|^9.0|^10.0", + "php": "^7.2|^8.0" + }, + "require-dev": { + "graham-campbell/testbench": "^3.2|^5.5.1", + "mockery/mockery": "^1.3.3", + "phpunit/phpunit": "^8.0|^9.0|^10.0" + }, + "suggest": { + "laravel/framework": "To test the Laravel bindings", + "laravel/lumen-framework": "To test the Lumen bindings" + }, + "type": "package", + "extra": { + "laravel": { + "providers": [ + "Mews\\Purifier\\PurifierServiceProvider" + ], + "aliases": { + "Purifier": "Mews\\Purifier\\Facades\\Purifier" + } + } + }, + "autoload": { + "files": [ + "src/helpers.php" + ], + "psr-4": { + "Mews\\Purifier\\": "src/" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Muharrem ERİN", + "email": "me@mewebstudio.com", + "homepage": "https://github.com/mewebstudio", + "role": "Developer" + } + ], + "description": "Laravel 5/6/7/8/9/10 HtmlPurifier Package", + "homepage": "https://github.com/mewebstudio/purifier", + "keywords": [ + "Laravel Purifier", + "Laravel Security", + "Purifier", + "htmlpurifier", + "laravel HtmlPurifier", + "security", + "xss" + ], + "support": { + "issues": "https://github.com/mewebstudio/Purifier/issues", + "source": "https://github.com/mewebstudio/Purifier/tree/3.4.1" + }, + "time": "2023-03-14T08:28:28+00:00" + }, + { + "name": "mlocati/ip-lib", + "version": "1.18.0", + "source": { + "type": "git", + "url": "https://github.com/mlocati/ip-lib.git", + "reference": "c77bd0b1f3e3956c7e9661e75cb1f54ed67d95d2" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/mlocati/ip-lib/zipball/c77bd0b1f3e3956c7e9661e75cb1f54ed67d95d2", + "reference": "c77bd0b1f3e3956c7e9661e75cb1f54ed67d95d2", + "shasum": "" + }, + "require": { + "php": ">=5.3.3" + }, + "require-dev": { + "ext-pdo_sqlite": "*", + "phpunit/phpunit": "^4.8 || ^5.7 || ^6.5 || ^7.5 || ^8.5 || ^9.5" + }, + "type": "library", + "autoload": { + "psr-4": { + "IPLib\\": "src/" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Michele Locati", + "email": "mlocati@gmail.com", + "homepage": "https://github.com/mlocati", + "role": "Author" + } + ], + "description": "Handle IPv4, IPv6 addresses and ranges", + "homepage": "https://github.com/mlocati/ip-lib", + "keywords": [ + "IP", + "address", + "addresses", + "ipv4", + "ipv6", + "manage", + "managing", + "matching", + "network", + "networking", + "range", + "subnet" + ], + "support": { + "issues": "https://github.com/mlocati/ip-lib/issues", + "source": "https://github.com/mlocati/ip-lib/tree/1.18.0" + }, + "funding": [ + { + "url": "https://github.com/sponsors/mlocati", + "type": "github" + }, + { + "url": "https://paypal.me/mlocati", + "type": "other" + } + ], + "time": "2022-01-13T18:05:33+00:00" + }, + { + "name": "monolog/monolog", + "version": "3.5.0", + "source": { + "type": "git", + "url": "https://github.com/Seldaek/monolog.git", + "reference": "c915e2634718dbc8a4a15c61b0e62e7a44e14448" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/Seldaek/monolog/zipball/c915e2634718dbc8a4a15c61b0e62e7a44e14448", + "reference": "c915e2634718dbc8a4a15c61b0e62e7a44e14448", + "shasum": "" + }, + "require": { + "php": ">=8.1", + "psr/log": "^2.0 || ^3.0" + }, + "provide": { + "psr/log-implementation": "3.0.0" + }, + "require-dev": { + "aws/aws-sdk-php": "^3.0", "doctrine/couchdb": "~1.0@dev", "elasticsearch/elasticsearch": "^7 || ^8", "ext-json": "*", - "graylog2/gelf-php": "^1.4.2", - "guzzlehttp/guzzle": "^7.4", + "graylog2/gelf-php": "^1.4.2 || ^2.0", + "guzzlehttp/guzzle": "^7.4.5", "guzzlehttp/psr7": "^2.2", "mongodb/mongodb": "^1.8", "php-amqplib/php-amqplib": "~2.4 || ^3", - "phpspec/prophecy": "^1.15", - "phpstan/phpstan": "^0.12.91", - "phpunit/phpunit": "^8.5.14", - "predis/predis": "^1.1 || ^2.0", - "rollbar/rollbar": "^1.3 || ^2 || ^3", + "phpstan/phpstan": "^1.9", + "phpstan/phpstan-deprecation-rules": "^1.0", + "phpstan/phpstan-strict-rules": "^1.4", + "phpunit/phpunit": "^10.1", + "predis/predis": "^1.1 || ^2", "ruflin/elastica": "^7", - "swiftmailer/swiftmailer": "^5.3|^6.0", "symfony/mailer": "^5.4 || ^6", "symfony/mime": "^5.4 || ^6" }, @@ -1711,7 +3011,7 @@ "type": "library", "extra": { "branch-alias": { - "dev-main": "2.x-dev" + "dev-main": "3.x-dev" } }, "autoload": { @@ -1739,7 +3039,7 @@ ], "support": { "issues": "https://github.com/Seldaek/monolog/issues", - "source": "https://github.com/Seldaek/monolog/tree/2.8.0" + "source": "https://github.com/Seldaek/monolog/tree/3.5.0" }, "funding": [ { @@ -1751,31 +3051,35 @@ "type": "tidelift" } ], - "time": "2022-07-24T11:55:47+00:00" + "time": "2023-10-27T15:32:31+00:00" }, { "name": "nesbot/carbon", - "version": "2.61.0", + "version": "2.71.0", "source": { "type": "git", "url": "https://github.com/briannesbitt/Carbon.git", - "reference": "bdf4f4fe3a3eac4de84dbec0738082a862c68ba6" + "reference": "98276233188583f2ff845a0f992a235472d9466a" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/briannesbitt/Carbon/zipball/bdf4f4fe3a3eac4de84dbec0738082a862c68ba6", - "reference": "bdf4f4fe3a3eac4de84dbec0738082a862c68ba6", + "url": "https://api.github.com/repos/briannesbitt/Carbon/zipball/98276233188583f2ff845a0f992a235472d9466a", + "reference": "98276233188583f2ff845a0f992a235472d9466a", "shasum": "" }, "require": { "ext-json": "*", "php": "^7.1.8 || ^8.0", + "psr/clock": "^1.0", "symfony/polyfill-mbstring": "^1.0", "symfony/polyfill-php80": "^1.16", "symfony/translation": "^3.4 || ^4.0 || ^5.0 || ^6.0" }, + "provide": { + "psr/clock-implementation": "1.0" + }, "require-dev": { - "doctrine/dbal": "^2.0 || ^3.0", + "doctrine/dbal": "^2.0 || ^3.1.4", "doctrine/orm": "^2.7", "friendsofphp/php-cs-fixer": "^3.0", "kylekatarnls/multi-tester": "^2.0", @@ -1853,20 +3157,214 @@ "type": "tidelift" } ], - "time": "2022-08-06T12:41:24+00:00" + "time": "2023-09-25T11:31:05+00:00" }, { - "name": "nikic/php-parser", - "version": "v4.14.0", + "name": "nette/schema", + "version": "v1.2.5", "source": { "type": "git", - "url": "https://github.com/nikic/PHP-Parser.git", - "reference": "34bea19b6e03d8153165d8f30bba4c3be86184c1" + "url": "https://github.com/nette/schema.git", + "reference": "0462f0166e823aad657c9224d0f849ecac1ba10a" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/nikic/PHP-Parser/zipball/34bea19b6e03d8153165d8f30bba4c3be86184c1", - "reference": "34bea19b6e03d8153165d8f30bba4c3be86184c1", + "url": "https://api.github.com/repos/nette/schema/zipball/0462f0166e823aad657c9224d0f849ecac1ba10a", + "reference": "0462f0166e823aad657c9224d0f849ecac1ba10a", + "shasum": "" + }, + "require": { + "nette/utils": "^2.5.7 || ^3.1.5 || ^4.0", + "php": "7.1 - 8.3" + }, + "require-dev": { + "nette/tester": "^2.3 || ^2.4", + "phpstan/phpstan-nette": "^1.0", + "tracy/tracy": "^2.7" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-master": "1.2-dev" + } + }, + "autoload": { + "classmap": [ + "src/" + ] + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "BSD-3-Clause", + "GPL-2.0-only", + "GPL-3.0-only" + ], + "authors": [ + { + "name": "David Grudl", + "homepage": "https://davidgrudl.com" + }, + { + "name": "Nette Community", + "homepage": "https://nette.org/contributors" + } + ], + "description": "📐 Nette Schema: validating data structures against a given Schema.", + "homepage": "https://nette.org", + "keywords": [ + "config", + "nette" + ], + "support": { + "issues": "https://github.com/nette/schema/issues", + "source": "https://github.com/nette/schema/tree/v1.2.5" + }, + "time": "2023-10-05T20:37:59+00:00" + }, + { + "name": "nette/utils", + "version": "v4.0.3", + "source": { + "type": "git", + "url": "https://github.com/nette/utils.git", + "reference": "a9d127dd6a203ce6d255b2e2db49759f7506e015" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/nette/utils/zipball/a9d127dd6a203ce6d255b2e2db49759f7506e015", + "reference": "a9d127dd6a203ce6d255b2e2db49759f7506e015", + "shasum": "" + }, + "require": { + "php": ">=8.0 <8.4" + }, + "conflict": { + "nette/finder": "<3", + "nette/schema": "<1.2.2" + }, + "require-dev": { + "jetbrains/phpstorm-attributes": "dev-master", + "nette/tester": "^2.5", + "phpstan/phpstan": "^1.0", + "tracy/tracy": "^2.9" + }, + "suggest": { + "ext-gd": "to use Image", + "ext-iconv": "to use Strings::webalize(), toAscii(), chr() and reverse()", + "ext-intl": "to use Strings::webalize(), toAscii(), normalize() and compare()", + "ext-json": "to use Nette\\Utils\\Json", + "ext-mbstring": "to use Strings::lower() etc...", + "ext-tokenizer": "to use Nette\\Utils\\Reflection::getUseStatements()" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-master": "4.0-dev" + } + }, + "autoload": { + "classmap": [ + "src/" + ] + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "BSD-3-Clause", + "GPL-2.0-only", + "GPL-3.0-only" + ], + "authors": [ + { + "name": "David Grudl", + "homepage": "https://davidgrudl.com" + }, + { + "name": "Nette Community", + "homepage": "https://nette.org/contributors" + } + ], + "description": "🛠 Nette Utils: lightweight utilities for string & array manipulation, image handling, safe JSON encoding/decoding, validation, slug or strong password generating etc.", + "homepage": "https://nette.org", + "keywords": [ + "array", + "core", + "datetime", + "images", + "json", + "nette", + "paginator", + "password", + "slugify", + "string", + "unicode", + "utf-8", + "utility", + "validation" + ], + "support": { + "issues": "https://github.com/nette/utils/issues", + "source": "https://github.com/nette/utils/tree/v4.0.3" + }, + "time": "2023-10-29T21:02:13+00:00" + }, + { + "name": "nicmart/tree", + "version": "0.3.1", + "source": { + "type": "git", + "url": "https://github.com/nicmart/Tree.git", + "reference": "c55ba47c64a3cb7454c22e6d630729fc2aab23ff" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/nicmart/Tree/zipball/c55ba47c64a3cb7454c22e6d630729fc2aab23ff", + "reference": "c55ba47c64a3cb7454c22e6d630729fc2aab23ff", + "shasum": "" + }, + "require": { + "php": "^7.1 || ^8.0" + }, + "require-dev": { + "ergebnis/composer-normalize": "^2.8.0", + "ergebnis/license": "^1.0.0", + "ergebnis/php-cs-fixer-config": "^2.2.1", + "phpunit/phpunit": "^7.5.20" + }, + "type": "library", + "autoload": { + "psr-4": { + "Tree\\": "src/" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Nicolò Martini", + "email": "nicmartnic@gmail.com" + } + ], + "description": "A basic but flexible php tree data structure and a fluent tree builder implementation.", + "support": { + "issues": "https://github.com/nicmart/Tree/issues", + "source": "https://github.com/nicmart/Tree/tree/0.3.1" + }, + "time": "2020-11-27T09:02:17+00:00" + }, + { + "name": "nikic/php-parser", + "version": "v4.17.1", + "source": { + "type": "git", + "url": "https://github.com/nikic/PHP-Parser.git", + "reference": "a6303e50c90c355c7eeee2c4a8b27fe8dc8fef1d" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/nikic/PHP-Parser/zipball/a6303e50c90c355c7eeee2c4a8b27fe8dc8fef1d", + "reference": "a6303e50c90c355c7eeee2c4a8b27fe8dc8fef1d", "shasum": "" }, "require": { @@ -1907,9 +3405,173 @@ ], "support": { "issues": "https://github.com/nikic/PHP-Parser/issues", - "source": "https://github.com/nikic/PHP-Parser/tree/v4.14.0" + "source": "https://github.com/nikic/PHP-Parser/tree/v4.17.1" }, - "time": "2022-05-31T20:59:12+00:00" + "time": "2023-08-13T19:53:39+00:00" + }, + { + "name": "nunomaduro/termwind", + "version": "v1.15.1", + "source": { + "type": "git", + "url": "https://github.com/nunomaduro/termwind.git", + "reference": "8ab0b32c8caa4a2e09700ea32925441385e4a5dc" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/nunomaduro/termwind/zipball/8ab0b32c8caa4a2e09700ea32925441385e4a5dc", + "reference": "8ab0b32c8caa4a2e09700ea32925441385e4a5dc", + "shasum": "" + }, + "require": { + "ext-mbstring": "*", + "php": "^8.0", + "symfony/console": "^5.3.0|^6.0.0" + }, + "require-dev": { + "ergebnis/phpstan-rules": "^1.0.", + "illuminate/console": "^8.0|^9.0", + "illuminate/support": "^8.0|^9.0", + "laravel/pint": "^1.0.0", + "pestphp/pest": "^1.21.0", + "pestphp/pest-plugin-mock": "^1.0", + "phpstan/phpstan": "^1.4.6", + "phpstan/phpstan-strict-rules": "^1.1.0", + "symfony/var-dumper": "^5.2.7|^6.0.0", + "thecodingmachine/phpstan-strict-rules": "^1.0.0" + }, + "type": "library", + "extra": { + "laravel": { + "providers": [ + "Termwind\\Laravel\\TermwindServiceProvider" + ] + } + }, + "autoload": { + "files": [ + "src/Functions.php" + ], + "psr-4": { + "Termwind\\": "src/" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Nuno Maduro", + "email": "enunomaduro@gmail.com" + } + ], + "description": "Its like Tailwind CSS, but for the console.", + "keywords": [ + "cli", + "console", + "css", + "package", + "php", + "style" + ], + "support": { + "issues": "https://github.com/nunomaduro/termwind/issues", + "source": "https://github.com/nunomaduro/termwind/tree/v1.15.1" + }, + "funding": [ + { + "url": "https://www.paypal.com/paypalme/enunomaduro", + "type": "custom" + }, + { + "url": "https://github.com/nunomaduro", + "type": "github" + }, + { + "url": "https://github.com/xiCO2k", + "type": "github" + } + ], + "time": "2023-02-08T01:06:31+00:00" + }, + { + "name": "nyholm/psr7", + "version": "1.8.1", + "source": { + "type": "git", + "url": "https://github.com/Nyholm/psr7.git", + "reference": "aa5fc277a4f5508013d571341ade0c3886d4d00e" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/Nyholm/psr7/zipball/aa5fc277a4f5508013d571341ade0c3886d4d00e", + "reference": "aa5fc277a4f5508013d571341ade0c3886d4d00e", + "shasum": "" + }, + "require": { + "php": ">=7.2", + "psr/http-factory": "^1.0", + "psr/http-message": "^1.1 || ^2.0" + }, + "provide": { + "php-http/message-factory-implementation": "1.0", + "psr/http-factory-implementation": "1.0", + "psr/http-message-implementation": "1.0" + }, + "require-dev": { + "http-interop/http-factory-tests": "^0.9", + "php-http/message-factory": "^1.0", + "php-http/psr7-integration-tests": "^1.0", + "phpunit/phpunit": "^7.5 || ^8.5 || ^9.4", + "symfony/error-handler": "^4.4" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-master": "1.8-dev" + } + }, + "autoload": { + "psr-4": { + "Nyholm\\Psr7\\": "src/" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Tobias Nyholm", + "email": "tobias.nyholm@gmail.com" + }, + { + "name": "Martijn van der Ven", + "email": "martijn@vanderven.se" + } + ], + "description": "A fast PHP7 implementation of PSR-7", + "homepage": "https://tnyholm.se", + "keywords": [ + "psr-17", + "psr-7" + ], + "support": { + "issues": "https://github.com/Nyholm/psr7/issues", + "source": "https://github.com/Nyholm/psr7/tree/1.8.1" + }, + "funding": [ + { + "url": "https://github.com/Zegnat", + "type": "github" + }, + { + "url": "https://github.com/nyholm", + "type": "github" + } + ], + "time": "2023-11-13T09:31:12+00:00" }, { "name": "opis/closure", @@ -1978,24 +3640,24 @@ }, { "name": "phpoption/phpoption", - "version": "1.9.0", + "version": "1.9.2", "source": { "type": "git", "url": "https://github.com/schmittjoh/php-option.git", - "reference": "dc5ff11e274a90cc1c743f66c9ad700ce50db9ab" + "reference": "80735db690fe4fc5c76dfa7f9b770634285fa820" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/schmittjoh/php-option/zipball/dc5ff11e274a90cc1c743f66c9ad700ce50db9ab", - "reference": "dc5ff11e274a90cc1c743f66c9ad700ce50db9ab", + "url": "https://api.github.com/repos/schmittjoh/php-option/zipball/80735db690fe4fc5c76dfa7f9b770634285fa820", + "reference": "80735db690fe4fc5c76dfa7f9b770634285fa820", "shasum": "" }, "require": { "php": "^7.2.5 || ^8.0" }, "require-dev": { - "bamarni/composer-bin-plugin": "^1.8", - "phpunit/phpunit": "^8.5.28 || ^9.5.21" + "bamarni/composer-bin-plugin": "^1.8.2", + "phpunit/phpunit": "^8.5.34 || ^9.6.13 || ^10.4.2" }, "type": "library", "extra": { @@ -2037,7 +3699,7 @@ ], "support": { "issues": "https://github.com/schmittjoh/php-option/issues", - "source": "https://github.com/schmittjoh/php-option/tree/1.9.0" + "source": "https://github.com/schmittjoh/php-option/tree/1.9.2" }, "funding": [ { @@ -2049,26 +3711,151 @@ "type": "tidelift" } ], - "time": "2022-07-30T15:51:26+00:00" + "time": "2023-11-12T21:59:55+00:00" }, { - "name": "psr/container", - "version": "1.1.1", + "name": "propaganistas/laravel-phone", + "version": "5.0.3", "source": { "type": "git", - "url": "https://github.com/php-fig/container.git", - "reference": "8622567409010282b7aeebe4bb841fe98b58dcaf" + "url": "https://github.com/Propaganistas/Laravel-Phone.git", + "reference": "32aa5ed857a9a6c1a80a0ebdbff4676f2f8e37cc" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/php-fig/container/zipball/8622567409010282b7aeebe4bb841fe98b58dcaf", - "reference": "8622567409010282b7aeebe4bb841fe98b58dcaf", + "url": "https://api.github.com/repos/Propaganistas/Laravel-Phone/zipball/32aa5ed857a9a6c1a80a0ebdbff4676f2f8e37cc", + "reference": "32aa5ed857a9a6c1a80a0ebdbff4676f2f8e37cc", "shasum": "" }, "require": { - "php": ">=7.2.0" + "giggsey/libphonenumber-for-php": "^7.0|^8.0", + "illuminate/contracts": "^9.0|^10.0", + "illuminate/support": "^9.0|^10.0", + "illuminate/validation": "^9.0|^10.0", + "php": "^8.0" + }, + "require-dev": { + "laravel/pint": "^1.4", + "nunomaduro/larastan": "^2.4", + "orchestra/testbench": "*", + "phpunit/phpunit": "^9.5.10" }, "type": "library", + "extra": { + "laravel": { + "providers": [ + "Propaganistas\\LaravelPhone\\PhoneServiceProvider" + ] + } + }, + "autoload": { + "files": [ + "src/helpers.php" + ], + "psr-4": { + "Propaganistas\\LaravelPhone\\": "src/" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Propaganistas", + "email": "Propaganistas@users.noreply.github.com" + } + ], + "description": "Adds phone number functionality to Laravel based on Google's libphonenumber API.", + "keywords": [ + "laravel", + "libphonenumber", + "phone", + "validation" + ], + "support": { + "issues": "https://github.com/Propaganistas/Laravel-Phone/issues", + "source": "https://github.com/Propaganistas/Laravel-Phone/tree/5.0.3" + }, + "funding": [ + { + "url": "https://github.com/Propaganistas", + "type": "github" + } + ], + "time": "2023-02-04T16:13:42+00:00" + }, + { + "name": "psr/clock", + "version": "1.0.0", + "source": { + "type": "git", + "url": "https://github.com/php-fig/clock.git", + "reference": "e41a24703d4560fd0acb709162f73b8adfc3aa0d" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/php-fig/clock/zipball/e41a24703d4560fd0acb709162f73b8adfc3aa0d", + "reference": "e41a24703d4560fd0acb709162f73b8adfc3aa0d", + "shasum": "" + }, + "require": { + "php": "^7.0 || ^8.0" + }, + "type": "library", + "autoload": { + "psr-4": { + "Psr\\Clock\\": "src/" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "PHP-FIG", + "homepage": "https://www.php-fig.org/" + } + ], + "description": "Common interface for reading the clock.", + "homepage": "https://github.com/php-fig/clock", + "keywords": [ + "clock", + "now", + "psr", + "psr-20", + "time" + ], + "support": { + "issues": "https://github.com/php-fig/clock/issues", + "source": "https://github.com/php-fig/clock/tree/1.0.0" + }, + "time": "2022-11-25T14:36:26+00:00" + }, + { + "name": "psr/container", + "version": "2.0.2", + "source": { + "type": "git", + "url": "https://github.com/php-fig/container.git", + "reference": "c71ecc56dfe541dbd90c5360474fbc405f8d5963" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/php-fig/container/zipball/c71ecc56dfe541dbd90c5360474fbc405f8d5963", + "reference": "c71ecc56dfe541dbd90c5360474fbc405f8d5963", + "shasum": "" + }, + "require": { + "php": ">=7.4.0" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-master": "2.0.x-dev" + } + }, "autoload": { "psr-4": { "Psr\\Container\\": "src/" @@ -2095,9 +3882,9 @@ ], "support": { "issues": "https://github.com/php-fig/container/issues", - "source": "https://github.com/php-fig/container/tree/1.1.1" + "source": "https://github.com/php-fig/container/tree/2.0.2" }, - "time": "2021-03-05T17:36:06+00:00" + "time": "2021-11-05T16:47:00+00:00" }, { "name": "psr/event-dispatcher", @@ -2151,21 +3938,21 @@ }, { "name": "psr/http-client", - "version": "1.0.1", + "version": "1.0.3", "source": { "type": "git", "url": "https://github.com/php-fig/http-client.git", - "reference": "2dfb5f6c5eff0e91e20e913f8c5452ed95b86621" + "reference": "bb5906edc1c324c9a05aa0873d40117941e5fa90" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/php-fig/http-client/zipball/2dfb5f6c5eff0e91e20e913f8c5452ed95b86621", - "reference": "2dfb5f6c5eff0e91e20e913f8c5452ed95b86621", + "url": "https://api.github.com/repos/php-fig/http-client/zipball/bb5906edc1c324c9a05aa0873d40117941e5fa90", + "reference": "bb5906edc1c324c9a05aa0873d40117941e5fa90", "shasum": "" }, "require": { "php": "^7.0 || ^8.0", - "psr/http-message": "^1.0" + "psr/http-message": "^1.0 || ^2.0" }, "type": "library", "extra": { @@ -2185,7 +3972,7 @@ "authors": [ { "name": "PHP-FIG", - "homepage": "http://www.php-fig.org/" + "homepage": "https://www.php-fig.org/" } ], "description": "Common interface for HTTP clients", @@ -2197,27 +3984,27 @@ "psr-18" ], "support": { - "source": "https://github.com/php-fig/http-client/tree/master" + "source": "https://github.com/php-fig/http-client" }, - "time": "2020-06-29T06:28:15+00:00" + "time": "2023-09-23T14:17:50+00:00" }, { "name": "psr/http-factory", - "version": "1.0.1", + "version": "1.0.2", "source": { "type": "git", "url": "https://github.com/php-fig/http-factory.git", - "reference": "12ac7fcd07e5b077433f5f2bee95b3a771bf61be" + "reference": "e616d01114759c4c489f93b099585439f795fe35" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/php-fig/http-factory/zipball/12ac7fcd07e5b077433f5f2bee95b3a771bf61be", - "reference": "12ac7fcd07e5b077433f5f2bee95b3a771bf61be", + "url": "https://api.github.com/repos/php-fig/http-factory/zipball/e616d01114759c4c489f93b099585439f795fe35", + "reference": "e616d01114759c4c489f93b099585439f795fe35", "shasum": "" }, "require": { "php": ">=7.0.0", - "psr/http-message": "^1.0" + "psr/http-message": "^1.0 || ^2.0" }, "type": "library", "extra": { @@ -2237,7 +4024,7 @@ "authors": [ { "name": "PHP-FIG", - "homepage": "http://www.php-fig.org/" + "homepage": "https://www.php-fig.org/" } ], "description": "Common interfaces for PSR-7 HTTP message factories", @@ -2252,31 +4039,31 @@ "response" ], "support": { - "source": "https://github.com/php-fig/http-factory/tree/master" + "source": "https://github.com/php-fig/http-factory/tree/1.0.2" }, - "time": "2019-04-30T12:38:16+00:00" + "time": "2023-04-10T20:10:41+00:00" }, { "name": "psr/http-message", - "version": "1.0.1", + "version": "2.0", "source": { "type": "git", "url": "https://github.com/php-fig/http-message.git", - "reference": "f6561bf28d520154e4b0ec72be95418abe6d9363" + "reference": "402d35bcb92c70c026d1a6a9883f06b2ead23d71" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/php-fig/http-message/zipball/f6561bf28d520154e4b0ec72be95418abe6d9363", - "reference": "f6561bf28d520154e4b0ec72be95418abe6d9363", + "url": "https://api.github.com/repos/php-fig/http-message/zipball/402d35bcb92c70c026d1a6a9883f06b2ead23d71", + "reference": "402d35bcb92c70c026d1a6a9883f06b2ead23d71", "shasum": "" }, "require": { - "php": ">=5.3.0" + "php": "^7.2 || ^8.0" }, "type": "library", "extra": { "branch-alias": { - "dev-master": "1.0.x-dev" + "dev-master": "2.0.x-dev" } }, "autoload": { @@ -2291,7 +4078,7 @@ "authors": [ { "name": "PHP-FIG", - "homepage": "http://www.php-fig.org/" + "homepage": "https://www.php-fig.org/" } ], "description": "Common interface for HTTP messages", @@ -2305,36 +4092,36 @@ "response" ], "support": { - "source": "https://github.com/php-fig/http-message/tree/master" + "source": "https://github.com/php-fig/http-message/tree/2.0" }, - "time": "2016-08-06T14:39:51+00:00" + "time": "2023-04-04T09:54:51+00:00" }, { "name": "psr/log", - "version": "1.1.4", + "version": "3.0.0", "source": { "type": "git", "url": "https://github.com/php-fig/log.git", - "reference": "d49695b909c3b7628b6289db5479a1c204601f11" + "reference": "fe5ea303b0887d5caefd3d431c3e61ad47037001" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/php-fig/log/zipball/d49695b909c3b7628b6289db5479a1c204601f11", - "reference": "d49695b909c3b7628b6289db5479a1c204601f11", + "url": "https://api.github.com/repos/php-fig/log/zipball/fe5ea303b0887d5caefd3d431c3e61ad47037001", + "reference": "fe5ea303b0887d5caefd3d431c3e61ad47037001", "shasum": "" }, "require": { - "php": ">=5.3.0" + "php": ">=8.0.0" }, "type": "library", "extra": { "branch-alias": { - "dev-master": "1.1.x-dev" + "dev-master": "3.x-dev" } }, "autoload": { "psr-4": { - "Psr\\Log\\": "Psr/Log/" + "Psr\\Log\\": "src" } }, "notification-url": "https://packagist.org/downloads/", @@ -2355,31 +4142,31 @@ "psr-3" ], "support": { - "source": "https://github.com/php-fig/log/tree/1.1.4" + "source": "https://github.com/php-fig/log/tree/3.0.0" }, - "time": "2021-05-03T11:20:27+00:00" + "time": "2021-07-14T16:46:02+00:00" }, { "name": "psr/simple-cache", - "version": "1.0.1", + "version": "3.0.0", "source": { "type": "git", "url": "https://github.com/php-fig/simple-cache.git", - "reference": "408d5eafb83c57f6365a3ca330ff23aa4a5fa39b" + "reference": "764e0b3939f5ca87cb904f570ef9be2d78a07865" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/php-fig/simple-cache/zipball/408d5eafb83c57f6365a3ca330ff23aa4a5fa39b", - "reference": "408d5eafb83c57f6365a3ca330ff23aa4a5fa39b", + "url": "https://api.github.com/repos/php-fig/simple-cache/zipball/764e0b3939f5ca87cb904f570ef9be2d78a07865", + "reference": "764e0b3939f5ca87cb904f570ef9be2d78a07865", "shasum": "" }, "require": { - "php": ">=5.3.0" + "php": ">=8.0.0" }, "type": "library", "extra": { "branch-alias": { - "dev-master": "1.0.x-dev" + "dev-master": "3.0.x-dev" } }, "autoload": { @@ -2394,7 +4181,7 @@ "authors": [ { "name": "PHP-FIG", - "homepage": "http://www.php-fig.org/" + "homepage": "https://www.php-fig.org/" } ], "description": "Common interfaces for simple caching", @@ -2406,22 +4193,22 @@ "simple-cache" ], "support": { - "source": "https://github.com/php-fig/simple-cache/tree/master" + "source": "https://github.com/php-fig/simple-cache/tree/3.0.0" }, - "time": "2017-10-23T01:57:42+00:00" + "time": "2021-10-29T13:26:27+00:00" }, { "name": "psy/psysh", - "version": "v0.11.8", + "version": "v0.11.22", "source": { "type": "git", "url": "https://github.com/bobthecow/psysh.git", - "reference": "f455acf3645262ae389b10e9beba0c358aa6994e" + "reference": "128fa1b608be651999ed9789c95e6e2a31b5802b" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/bobthecow/psysh/zipball/f455acf3645262ae389b10e9beba0c358aa6994e", - "reference": "f455acf3645262ae389b10e9beba0c358aa6994e", + "url": "https://api.github.com/repos/bobthecow/psysh/zipball/128fa1b608be651999ed9789c95e6e2a31b5802b", + "reference": "128fa1b608be651999ed9789c95e6e2a31b5802b", "shasum": "" }, "require": { @@ -2450,7 +4237,11 @@ "type": "library", "extra": { "branch-alias": { - "dev-main": "0.11.x-dev" + "dev-0.11": "0.11.x-dev" + }, + "bamarni-bin": { + "bin-links": false, + "forward-command": false } }, "autoload": { @@ -2482,9 +4273,9 @@ ], "support": { "issues": "https://github.com/bobthecow/psysh/issues", - "source": "https://github.com/bobthecow/psysh/tree/v0.11.8" + "source": "https://github.com/bobthecow/psysh/tree/v0.11.22" }, - "time": "2022-07-28T14:25:11+00:00" + "time": "2023-10-14T21:56:36+00:00" }, { "name": "ralouphie/getallheaders", @@ -2532,42 +4323,52 @@ }, { "name": "ramsey/collection", - "version": "1.2.2", + "version": "2.0.0", "source": { "type": "git", "url": "https://github.com/ramsey/collection.git", - "reference": "cccc74ee5e328031b15640b51056ee8d3bb66c0a" + "reference": "a4b48764bfbb8f3a6a4d1aeb1a35bb5e9ecac4a5" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/ramsey/collection/zipball/cccc74ee5e328031b15640b51056ee8d3bb66c0a", - "reference": "cccc74ee5e328031b15640b51056ee8d3bb66c0a", + "url": "https://api.github.com/repos/ramsey/collection/zipball/a4b48764bfbb8f3a6a4d1aeb1a35bb5e9ecac4a5", + "reference": "a4b48764bfbb8f3a6a4d1aeb1a35bb5e9ecac4a5", "shasum": "" }, "require": { - "php": "^7.3 || ^8", - "symfony/polyfill-php81": "^1.23" + "php": "^8.1" }, "require-dev": { - "captainhook/captainhook": "^5.3", - "dealerdirect/phpcodesniffer-composer-installer": "^0.7.0", - "ergebnis/composer-normalize": "^2.6", - "fakerphp/faker": "^1.5", - "hamcrest/hamcrest-php": "^2", - "jangregor/phpstan-prophecy": "^0.8", - "mockery/mockery": "^1.3", + "captainhook/plugin-composer": "^5.3", + "ergebnis/composer-normalize": "^2.28.3", + "fakerphp/faker": "^1.21", + "hamcrest/hamcrest-php": "^2.0", + "jangregor/phpstan-prophecy": "^1.0", + "mockery/mockery": "^1.5", + "php-parallel-lint/php-console-highlighter": "^1.0", + "php-parallel-lint/php-parallel-lint": "^1.3", + "phpcsstandards/phpcsutils": "^1.0.0-rc1", "phpspec/prophecy-phpunit": "^2.0", - "phpstan/extension-installer": "^1", - "phpstan/phpstan": "^0.12.32", - "phpstan/phpstan-mockery": "^0.12.5", - "phpstan/phpstan-phpunit": "^0.12.11", - "phpunit/phpunit": "^8.5 || ^9", - "psy/psysh": "^0.10.4", - "slevomat/coding-standard": "^6.3", - "squizlabs/php_codesniffer": "^3.5", - "vimeo/psalm": "^4.4" + "phpstan/extension-installer": "^1.2", + "phpstan/phpstan": "^1.9", + "phpstan/phpstan-mockery": "^1.1", + "phpstan/phpstan-phpunit": "^1.3", + "phpunit/phpunit": "^9.5", + "psalm/plugin-mockery": "^1.1", + "psalm/plugin-phpunit": "^0.18.4", + "ramsey/coding-standard": "^2.0.3", + "ramsey/conventional-commits": "^1.3", + "vimeo/psalm": "^5.4" }, "type": "library", + "extra": { + "captainhook": { + "force-install": true + }, + "ramsey/conventional-commits": { + "configFile": "conventional-commits.json" + } + }, "autoload": { "psr-4": { "Ramsey\\Collection\\": "src/" @@ -2595,7 +4396,7 @@ ], "support": { "issues": "https://github.com/ramsey/collection/issues", - "source": "https://github.com/ramsey/collection/tree/1.2.2" + "source": "https://github.com/ramsey/collection/tree/2.0.0" }, "funding": [ { @@ -2607,29 +4408,27 @@ "type": "tidelift" } ], - "time": "2021-10-10T03:01:02+00:00" + "time": "2022-12-31T21:50:55+00:00" }, { "name": "ramsey/uuid", - "version": "4.2.3", + "version": "4.7.5", "source": { "type": "git", "url": "https://github.com/ramsey/uuid.git", - "reference": "fc9bb7fb5388691fd7373cd44dcb4d63bbcf24df" + "reference": "5f0df49ae5ad6efb7afa69e6bfab4e5b1e080d8e" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/ramsey/uuid/zipball/fc9bb7fb5388691fd7373cd44dcb4d63bbcf24df", - "reference": "fc9bb7fb5388691fd7373cd44dcb4d63bbcf24df", + "url": "https://api.github.com/repos/ramsey/uuid/zipball/5f0df49ae5ad6efb7afa69e6bfab4e5b1e080d8e", + "reference": "5f0df49ae5ad6efb7afa69e6bfab4e5b1e080d8e", "shasum": "" }, "require": { - "brick/math": "^0.8 || ^0.9", + "brick/math": "^0.8.8 || ^0.9 || ^0.10 || ^0.11", "ext-json": "*", - "php": "^7.2 || ^8.0", - "ramsey/collection": "^1.0", - "symfony/polyfill-ctype": "^1.8", - "symfony/polyfill-php80": "^1.14" + "php": "^8.0", + "ramsey/collection": "^1.2 || ^2.0" }, "replace": { "rhumsaa/uuid": "self.version" @@ -2641,24 +4440,23 @@ "doctrine/annotations": "^1.8", "ergebnis/composer-normalize": "^2.15", "mockery/mockery": "^1.3", - "moontoast/math": "^1.1", "paragonie/random-lib": "^2", "php-mock/php-mock": "^2.2", "php-mock/php-mock-mockery": "^1.3", "php-parallel-lint/php-parallel-lint": "^1.1", "phpbench/phpbench": "^1.0", - "phpstan/extension-installer": "^1.0", - "phpstan/phpstan": "^0.12", - "phpstan/phpstan-mockery": "^0.12", - "phpstan/phpstan-phpunit": "^0.12", + "phpstan/extension-installer": "^1.1", + "phpstan/phpstan": "^1.8", + "phpstan/phpstan-mockery": "^1.1", + "phpstan/phpstan-phpunit": "^1.1", "phpunit/phpunit": "^8.5 || ^9", - "slevomat/coding-standard": "^7.0", + "ramsey/composer-repl": "^1.4", + "slevomat/coding-standard": "^8.4", "squizlabs/php_codesniffer": "^3.5", "vimeo/psalm": "^4.9" }, "suggest": { "ext-bcmath": "Enables faster math with arbitrary-precision integers using BCMath.", - "ext-ctype": "Enables faster processing of character classification using ctype functions.", "ext-gmp": "Enables faster math with arbitrary-precision integers using GMP.", "ext-uuid": "Enables the use of PeclUuidTimeGenerator and PeclUuidRandomGenerator.", "paragonie/random-lib": "Provides RandomLib for use with the RandomLibAdapter", @@ -2666,9 +4464,6 @@ }, "type": "library", "extra": { - "branch-alias": { - "dev-main": "4.x-dev" - }, "captainhook": { "force-install": true } @@ -2693,7 +4488,7 @@ ], "support": { "issues": "https://github.com/ramsey/uuid/issues", - "source": "https://github.com/ramsey/uuid/tree/4.2.3" + "source": "https://github.com/ramsey/uuid/tree/4.7.5" }, "funding": [ { @@ -2705,7 +4500,128 @@ "type": "tidelift" } ], - "time": "2021-09-25T23:10:38+00:00" + "time": "2023-11-08T05:53:05+00:00" + }, + { + "name": "respect/stringifier", + "version": "0.2.0", + "source": { + "type": "git", + "url": "https://github.com/Respect/Stringifier.git", + "reference": "e55af3c8aeaeaa2abb5fa47a58a8e9688cc23b59" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/Respect/Stringifier/zipball/e55af3c8aeaeaa2abb5fa47a58a8e9688cc23b59", + "reference": "e55af3c8aeaeaa2abb5fa47a58a8e9688cc23b59", + "shasum": "" + }, + "require": { + "php": ">=7.1" + }, + "require-dev": { + "friendsofphp/php-cs-fixer": "^2.8", + "malukenho/docheader": "^0.1.7", + "phpunit/phpunit": "^6.4" + }, + "type": "library", + "autoload": { + "files": [ + "src/stringify.php" + ], + "psr-4": { + "Respect\\Stringifier\\": "src/" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Respect/Stringifier Contributors", + "homepage": "https://github.com/Respect/Stringifier/graphs/contributors" + } + ], + "description": "Converts any value to a string", + "homepage": "http://respect.github.io/Stringifier/", + "keywords": [ + "respect", + "stringifier", + "stringify" + ], + "support": { + "issues": "https://github.com/Respect/Stringifier/issues", + "source": "https://github.com/Respect/Stringifier/tree/0.2.0" + }, + "time": "2017-12-29T19:39:25+00:00" + }, + { + "name": "respect/validation", + "version": "2.2.4", + "source": { + "type": "git", + "url": "https://github.com/Respect/Validation.git", + "reference": "d304ace5325efd7180daffb1f8627bb0affd4e3a" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/Respect/Validation/zipball/d304ace5325efd7180daffb1f8627bb0affd4e3a", + "reference": "d304ace5325efd7180daffb1f8627bb0affd4e3a", + "shasum": "" + }, + "require": { + "php": "^7.4 || ^8.0 || ^8.1 || ^8.2", + "respect/stringifier": "^0.2.0", + "symfony/polyfill-mbstring": "^1.2" + }, + "require-dev": { + "egulias/email-validator": "^3.0", + "malukenho/docheader": "^0.1", + "mikey179/vfsstream": "^1.6", + "phpstan/phpstan": "^1.9", + "phpstan/phpstan-deprecation-rules": "^1.1", + "phpstan/phpstan-phpunit": "^1.3", + "phpunit/phpunit": "^9.6", + "psr/http-message": "^1.0", + "respect/coding-standard": "^3.0", + "squizlabs/php_codesniffer": "^3.7", + "symfony/validator": "^3.0||^4.0" + }, + "suggest": { + "egulias/email-validator": "Strict (RFC compliant) email validation", + "ext-bcmath": "Arbitrary Precision Mathematics", + "ext-fileinfo": "File Information", + "ext-mbstring": "Multibyte String Functions" + }, + "type": "library", + "autoload": { + "psr-4": { + "Respect\\Validation\\": "library/" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Respect/Validation Contributors", + "homepage": "https://github.com/Respect/Validation/graphs/contributors" + } + ], + "description": "The most awesome validation engine ever created for PHP", + "homepage": "http://respect.github.io/Validation/", + "keywords": [ + "respect", + "validation", + "validator" + ], + "support": { + "issues": "https://github.com/Respect/Validation/issues", + "source": "https://github.com/Respect/Validation/tree/2.2.4" + }, + "time": "2023-02-15T01:05:24+00:00" }, { "name": "ruafozy/mersenne-twister", @@ -2751,43 +4667,54 @@ "time": "2015-02-21T10:26:45+00:00" }, { - "name": "swiftmailer/swiftmailer", - "version": "v6.3.0", + "name": "sentry/sentry", + "version": "4.0.1", "source": { "type": "git", - "url": "https://github.com/swiftmailer/swiftmailer.git", - "reference": "8a5d5072dca8f48460fce2f4131fcc495eec654c" + "url": "https://github.com/getsentry/sentry-php.git", + "reference": "fa41522f1fe5ff77a33a9db749c0ca7ec332f50a" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/swiftmailer/swiftmailer/zipball/8a5d5072dca8f48460fce2f4131fcc495eec654c", - "reference": "8a5d5072dca8f48460fce2f4131fcc495eec654c", + "url": "https://api.github.com/repos/getsentry/sentry-php/zipball/fa41522f1fe5ff77a33a9db749c0ca7ec332f50a", + "reference": "fa41522f1fe5ff77a33a9db749c0ca7ec332f50a", "shasum": "" }, "require": { - "egulias/email-validator": "^2.0|^3.1", - "php": ">=7.0.0", - "symfony/polyfill-iconv": "^1.0", - "symfony/polyfill-intl-idn": "^1.10", - "symfony/polyfill-mbstring": "^1.0" + "ext-curl": "*", + "ext-json": "*", + "ext-mbstring": "*", + "guzzlehttp/psr7": "^1.8.4|^2.1.1", + "jean85/pretty-package-versions": "^1.5|^2.0.4", + "php": "^7.2|^8.0", + "psr/log": "^1.0|^2.0|^3.0", + "symfony/options-resolver": "^4.4.30|^5.0.11|^6.0|^7.0" + }, + "conflict": { + "raven/raven": "*" }, "require-dev": { - "mockery/mockery": "^1.0", - "symfony/phpunit-bridge": "^4.4|^5.4" + "friendsofphp/php-cs-fixer": "^3.4", + "guzzlehttp/promises": "^1.0|^2.0", + "guzzlehttp/psr7": "^1.8.4|^2.1.1", + "monolog/monolog": "^1.6|^2.0|^3.0", + "phpbench/phpbench": "^1.0", + "phpstan/phpstan": "^1.3", + "phpunit/phpunit": "^8.5.14|^9.4", + "symfony/phpunit-bridge": "^5.2|^6.0", + "vimeo/psalm": "^4.17" }, "suggest": { - "ext-intl": "Needed to support internationalized email addresses" + "monolog/monolog": "Allow sending log messages to Sentry by using the included Monolog handler." }, "type": "library", - "extra": { - "branch-alias": { - "dev-master": "6.2-dev" - } - }, "autoload": { "files": [ - "lib/swift_required.php" - ] + "src/functions.php" + ], + "psr-4": { + "Sentry\\": "src/" + } }, "notification-url": "https://packagist.org/downloads/", "license": [ @@ -2795,85 +4722,679 @@ ], "authors": [ { - "name": "Chris Corbyn" - }, - { - "name": "Fabien Potencier", - "email": "fabien@symfony.com" + "name": "Sentry", + "email": "accounts@sentry.io" } ], - "description": "Swiftmailer, free feature-rich PHP mailer", - "homepage": "https://swiftmailer.symfony.com", + "description": "A PHP SDK for Sentry (http://sentry.io)", + "homepage": "http://sentry.io", "keywords": [ - "email", - "mail", - "mailer" + "crash-reporting", + "crash-reports", + "error-handler", + "error-monitoring", + "log", + "logging", + "sentry" ], "support": { - "issues": "https://github.com/swiftmailer/swiftmailer/issues", - "source": "https://github.com/swiftmailer/swiftmailer/tree/v6.3.0" + "issues": "https://github.com/getsentry/sentry-php/issues", + "source": "https://github.com/getsentry/sentry-php/tree/4.0.1" }, "funding": [ { - "url": "https://github.com/fabpot", - "type": "github" + "url": "https://sentry.io/", + "type": "custom" }, { - "url": "https://tidelift.com/funding/github/packagist/swiftmailer/swiftmailer", - "type": "tidelift" + "url": "https://sentry.io/pricing/", + "type": "custom" } ], - "abandoned": "symfony/mailer", - "time": "2021-10-18T15:26:12+00:00" + "time": "2023-11-13T13:00:41+00:00" }, { - "name": "symfony/console", - "version": "v5.4.11", + "name": "sentry/sentry-laravel", + "version": "4.0.0", "source": { "type": "git", - "url": "https://github.com/symfony/console.git", - "reference": "535846c7ee6bc4dd027ca0d93220601456734b10" + "url": "https://github.com/getsentry/sentry-laravel.git", + "reference": "b6fbabbcb6623fc37a0bb373c4883dabfdda8026" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/console/zipball/535846c7ee6bc4dd027ca0d93220601456734b10", - "reference": "535846c7ee6bc4dd027ca0d93220601456734b10", + "url": "https://api.github.com/repos/getsentry/sentry-laravel/zipball/b6fbabbcb6623fc37a0bb373c4883dabfdda8026", + "reference": "b6fbabbcb6623fc37a0bb373c4883dabfdda8026", "shasum": "" }, "require": { - "php": ">=7.2.5", - "symfony/deprecation-contracts": "^2.1|^3", - "symfony/polyfill-mbstring": "~1.0", - "symfony/polyfill-php73": "^1.9", - "symfony/polyfill-php80": "^1.16", - "symfony/service-contracts": "^1.1|^2|^3", - "symfony/string": "^5.1|^6.0" - }, - "conflict": { - "psr/log": ">=3", - "symfony/dependency-injection": "<4.4", - "symfony/dotenv": "<5.1", - "symfony/event-dispatcher": "<4.4", - "symfony/lock": "<4.4", - "symfony/process": "<4.4" - }, - "provide": { - "psr/log-implementation": "1.0|2.0" + "illuminate/support": "^6.0 | ^7.0 | ^8.0 | ^9.0 | ^10.0", + "nyholm/psr7": "^1.0", + "php": "^7.2 | ^8.0", + "sentry/sentry": "^4.0", + "symfony/psr-http-message-bridge": "^1.0 | ^2.0" }, "require-dev": { - "psr/log": "^1|^2", - "symfony/config": "^4.4|^5.0|^6.0", - "symfony/dependency-injection": "^4.4|^5.0|^6.0", - "symfony/event-dispatcher": "^4.4|^5.0|^6.0", - "symfony/lock": "^4.4|^5.0|^6.0", - "symfony/process": "^4.4|^5.0|^6.0", - "symfony/var-dumper": "^4.4|^5.0|^6.0" + "friendsofphp/php-cs-fixer": "^3.11", + "guzzlehttp/guzzle": "^7.2", + "laravel/folio": "^1.0", + "laravel/framework": "^6.0 | ^7.0 | ^8.0 | ^9.0 | ^10.0", + "livewire/livewire": "^2.0 | ^3.0", + "mockery/mockery": "^1.3", + "orchestra/testbench": "^4.7 | ^5.1 | ^6.0 | ^7.0 | ^8.0", + "phpstan/phpstan": "^1.10", + "phpunit/phpunit": "^8.4 | ^9.3 | ^10.4" }, - "suggest": { - "psr/log": "For using the console logger", - "symfony/event-dispatcher": "", - "symfony/lock": "", - "symfony/process": "" + "type": "library", + "extra": { + "laravel": { + "providers": [ + "Sentry\\Laravel\\ServiceProvider", + "Sentry\\Laravel\\Tracing\\ServiceProvider" + ], + "aliases": { + "Sentry": "Sentry\\Laravel\\Facade" + } + } + }, + "autoload": { + "psr-0": { + "Sentry\\Laravel\\": "src/" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Sentry", + "email": "accounts@sentry.io" + } + ], + "description": "Laravel SDK for Sentry (https://sentry.io)", + "homepage": "https://sentry.io", + "keywords": [ + "crash-reporting", + "crash-reports", + "error-handler", + "error-monitoring", + "laravel", + "log", + "logging", + "profiling", + "sentry", + "tracing" + ], + "support": { + "issues": "https://github.com/getsentry/sentry-laravel/issues", + "source": "https://github.com/getsentry/sentry-laravel/tree/4.0.0" + }, + "funding": [ + { + "url": "https://sentry.io/", + "type": "custom" + }, + { + "url": "https://sentry.io/pricing/", + "type": "custom" + } + ], + "time": "2023-11-16T12:33:52+00:00" + }, + { + "name": "spatie/browsershot", + "version": "3.60.1", + "source": { + "type": "git", + "url": "https://github.com/spatie/browsershot.git", + "reference": "8779b2cd10dcd9dab4abd0127429e5578da3f9ab" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/spatie/browsershot/zipball/8779b2cd10dcd9dab4abd0127429e5578da3f9ab", + "reference": "8779b2cd10dcd9dab4abd0127429e5578da3f9ab", + "shasum": "" + }, + "require": { + "ext-json": "*", + "php": "^8.0", + "spatie/image": "^1.5.3|^2.0", + "spatie/temporary-directory": "^1.1|^2.0", + "symfony/process": "^4.2|^5.0|^6.0" + }, + "require-dev": { + "pestphp/pest": "^1.20", + "spatie/phpunit-snapshot-assertions": "^4.2.3" + }, + "type": "library", + "autoload": { + "psr-4": { + "Spatie\\Browsershot\\": "src" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Freek Van der Herten", + "email": "freek@spatie.be", + "homepage": "https://github.com/freekmurze", + "role": "Developer" + } + ], + "description": "Convert a webpage to an image or pdf using headless Chrome", + "homepage": "https://github.com/spatie/browsershot", + "keywords": [ + "chrome", + "convert", + "headless", + "image", + "pdf", + "puppeteer", + "screenshot", + "webpage" + ], + "support": { + "source": "https://github.com/spatie/browsershot/tree/3.60.1" + }, + "funding": [ + { + "url": "https://github.com/spatie", + "type": "github" + } + ], + "time": "2023-11-28T10:50:45+00:00" + }, + { + "name": "spatie/crawler", + "version": "7.1.3", + "source": { + "type": "git", + "url": "https://github.com/spatie/crawler.git", + "reference": "f0f73947fdfaf68efdc68b73c4dbb28dfc785113" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/spatie/crawler/zipball/f0f73947fdfaf68efdc68b73c4dbb28dfc785113", + "reference": "f0f73947fdfaf68efdc68b73c4dbb28dfc785113", + "shasum": "" + }, + "require": { + "guzzlehttp/guzzle": "^7.3", + "guzzlehttp/psr7": "^2.0", + "illuminate/collections": "^8.38|^9.0|^10.0", + "nicmart/tree": "^0.3.0", + "php": "^8.0", + "spatie/browsershot": "^3.45", + "spatie/robots-txt": "^2.0", + "symfony/dom-crawler": "^5.2|^6.0" + }, + "require-dev": { + "pestphp/pest": "^1.21", + "phpunit/phpunit": "^9.5" + }, + "type": "library", + "autoload": { + "psr-4": { + "Spatie\\Crawler\\": "src" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Freek Van der Herten", + "email": "freek@spatie.be" + } + ], + "description": "Crawl all internal links found on a website", + "homepage": "https://github.com/spatie/crawler", + "keywords": [ + "crawler", + "link", + "spatie", + "website" + ], + "support": { + "issues": "https://github.com/spatie/crawler/issues", + "source": "https://github.com/spatie/crawler/tree/7.1.3" + }, + "funding": [ + { + "url": "https://spatie.be/open-source/support-us", + "type": "custom" + }, + { + "url": "https://github.com/spatie", + "type": "github" + } + ], + "time": "2023-01-24T07:47:06+00:00" + }, + { + "name": "spatie/image", + "version": "2.2.7", + "source": { + "type": "git", + "url": "https://github.com/spatie/image.git", + "reference": "2f802853aab017aa615224daae1588054b5ab20e" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/spatie/image/zipball/2f802853aab017aa615224daae1588054b5ab20e", + "reference": "2f802853aab017aa615224daae1588054b5ab20e", + "shasum": "" + }, + "require": { + "ext-exif": "*", + "ext-json": "*", + "ext-mbstring": "*", + "league/glide": "^2.2.2", + "php": "^8.0", + "spatie/image-optimizer": "^1.7", + "spatie/temporary-directory": "^1.0|^2.0", + "symfony/process": "^3.0|^4.0|^5.0|^6.0" + }, + "require-dev": { + "pestphp/pest": "^1.22", + "phpunit/phpunit": "^9.5", + "symfony/var-dumper": "^4.0|^5.0|^6.0", + "vimeo/psalm": "^4.6" + }, + "type": "library", + "autoload": { + "psr-4": { + "Spatie\\Image\\": "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": "Manipulate images with an expressive API", + "homepage": "https://github.com/spatie/image", + "keywords": [ + "image", + "spatie" + ], + "support": { + "source": "https://github.com/spatie/image/tree/2.2.7" + }, + "funding": [ + { + "url": "https://spatie.be/open-source/support-us", + "type": "custom" + }, + { + "url": "https://github.com/spatie", + "type": "github" + } + ], + "time": "2023-07-24T13:54:13+00:00" + }, + { + "name": "spatie/image-optimizer", + "version": "1.7.2", + "source": { + "type": "git", + "url": "https://github.com/spatie/image-optimizer.git", + "reference": "62f7463483d1bd975f6f06025d89d42a29608fe1" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/spatie/image-optimizer/zipball/62f7463483d1bd975f6f06025d89d42a29608fe1", + "reference": "62f7463483d1bd975f6f06025d89d42a29608fe1", + "shasum": "" + }, + "require": { + "ext-fileinfo": "*", + "php": "^7.3|^8.0", + "psr/log": "^1.0 | ^2.0 | ^3.0", + "symfony/process": "^4.2|^5.0|^6.0|^7.0" + }, + "require-dev": { + "pestphp/pest": "^1.21", + "phpunit/phpunit": "^8.5.21|^9.4.4", + "symfony/var-dumper": "^4.2|^5.0|^6.0|^7.0" + }, + "type": "library", + "autoload": { + "psr-4": { + "Spatie\\ImageOptimizer\\": "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": "Easily optimize images using PHP", + "homepage": "https://github.com/spatie/image-optimizer", + "keywords": [ + "image-optimizer", + "spatie" + ], + "support": { + "issues": "https://github.com/spatie/image-optimizer/issues", + "source": "https://github.com/spatie/image-optimizer/tree/1.7.2" + }, + "time": "2023-11-03T10:08:02+00:00" + }, + { + "name": "spatie/laravel-package-tools", + "version": "1.16.1", + "source": { + "type": "git", + "url": "https://github.com/spatie/laravel-package-tools.git", + "reference": "cc7c991555a37f9fa6b814aa03af73f88026a83d" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/spatie/laravel-package-tools/zipball/cc7c991555a37f9fa6b814aa03af73f88026a83d", + "reference": "cc7c991555a37f9fa6b814aa03af73f88026a83d", + "shasum": "" + }, + "require": { + "illuminate/contracts": "^9.28|^10.0", + "php": "^8.0" + }, + "require-dev": { + "mockery/mockery": "^1.5", + "orchestra/testbench": "^7.7|^8.0", + "pestphp/pest": "^1.22", + "phpunit/phpunit": "^9.5.24", + "spatie/pest-plugin-test-time": "^1.1" + }, + "type": "library", + "autoload": { + "psr-4": { + "Spatie\\LaravelPackageTools\\": "src" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Freek Van der Herten", + "email": "freek@spatie.be", + "role": "Developer" + } + ], + "description": "Tools for creating Laravel packages", + "homepage": "https://github.com/spatie/laravel-package-tools", + "keywords": [ + "laravel-package-tools", + "spatie" + ], + "support": { + "issues": "https://github.com/spatie/laravel-package-tools/issues", + "source": "https://github.com/spatie/laravel-package-tools/tree/1.16.1" + }, + "funding": [ + { + "url": "https://github.com/spatie", + "type": "github" + } + ], + "time": "2023-08-23T09:04:39+00:00" + }, + { + "name": "spatie/laravel-sitemap", + "version": "6.4.0", + "source": { + "type": "git", + "url": "https://github.com/spatie/laravel-sitemap.git", + "reference": "d5115b430de517aaa29a6410f4cd6f1561766579" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/spatie/laravel-sitemap/zipball/d5115b430de517aaa29a6410f4cd6f1561766579", + "reference": "d5115b430de517aaa29a6410f4cd6f1561766579", + "shasum": "" + }, + "require": { + "guzzlehttp/guzzle": "^7.2", + "illuminate/support": "^8.0|^9.0|^10.0", + "nesbot/carbon": "^2.63", + "php": "^8.0", + "spatie/crawler": "^7.0", + "spatie/laravel-package-tools": "^1.5", + "symfony/dom-crawler": "^5.1.14|^6.0" + }, + "require-dev": { + "mockery/mockery": "^1.4", + "orchestra/testbench": "^6.23|^7.0|^8.0", + "pestphp/pest": "^1.22", + "phpunit/phpunit": "^9.5", + "spatie/pest-plugin-snapshots": "^1.1", + "spatie/phpunit-snapshot-assertions": "^4.0", + "spatie/temporary-directory": "^2.0" + }, + "type": "library", + "extra": { + "laravel": { + "providers": [ + "Spatie\\Sitemap\\SitemapServiceProvider" + ] + } + }, + "autoload": { + "psr-4": { + "Spatie\\Sitemap\\": "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": "Create and generate sitemaps with ease", + "homepage": "https://github.com/spatie/laravel-sitemap", + "keywords": [ + "laravel-sitemap", + "spatie" + ], + "support": { + "source": "https://github.com/spatie/laravel-sitemap/tree/6.4.0" + }, + "funding": [ + { + "url": "https://spatie.be/open-source/support-us", + "type": "custom" + } + ], + "time": "2023-10-18T14:38:11+00:00" + }, + { + "name": "spatie/robots-txt", + "version": "2.0.3", + "source": { + "type": "git", + "url": "https://github.com/spatie/robots-txt.git", + "reference": "dacba2ba159364987392aa1b0002e196c5923970" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/spatie/robots-txt/zipball/dacba2ba159364987392aa1b0002e196c5923970", + "reference": "dacba2ba159364987392aa1b0002e196c5923970", + "shasum": "" + }, + "require": { + "php": "^8.0" + }, + "require-dev": { + "larapack/dd": "^1.0", + "phpunit/phpunit": "^8.0 || ^9.0" + }, + "type": "library", + "autoload": { + "psr-4": { + "Spatie\\Robots\\": "src" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Brent Roose", + "email": "brent@spatie.be", + "homepage": "https://spatie.be", + "role": "Developer" + } + ], + "description": "Determine if a page may be crawled from robots.txt and robots meta tags", + "homepage": "https://github.com/spatie/robots-txt", + "keywords": [ + "robots-txt", + "spatie" + ], + "support": { + "issues": "https://github.com/spatie/robots-txt/issues", + "source": "https://github.com/spatie/robots-txt/tree/2.0.3" + }, + "funding": [ + { + "url": "https://spatie.be/open-source/support-us", + "type": "custom" + }, + { + "url": "https://github.com/spatie", + "type": "github" + } + ], + "time": "2023-11-22T12:57:35+00:00" + }, + { + "name": "spatie/temporary-directory", + "version": "2.2.0", + "source": { + "type": "git", + "url": "https://github.com/spatie/temporary-directory.git", + "reference": "efc258c9f4da28f0c7661765b8393e4ccee3d19c" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/spatie/temporary-directory/zipball/efc258c9f4da28f0c7661765b8393e4ccee3d19c", + "reference": "efc258c9f4da28f0c7661765b8393e4ccee3d19c", + "shasum": "" + }, + "require": { + "php": "^8.0" + }, + "require-dev": { + "phpunit/phpunit": "^9.5" + }, + "type": "library", + "autoload": { + "psr-4": { + "Spatie\\TemporaryDirectory\\": "src" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Alex Vanderbist", + "email": "alex@spatie.be", + "homepage": "https://spatie.be", + "role": "Developer" + } + ], + "description": "Easily create, use and destroy temporary directories", + "homepage": "https://github.com/spatie/temporary-directory", + "keywords": [ + "php", + "spatie", + "temporary-directory" + ], + "support": { + "issues": "https://github.com/spatie/temporary-directory/issues", + "source": "https://github.com/spatie/temporary-directory/tree/2.2.0" + }, + "funding": [ + { + "url": "https://spatie.be/open-source/support-us", + "type": "custom" + }, + { + "url": "https://github.com/spatie", + "type": "github" + } + ], + "time": "2023-09-25T07:13:36+00:00" + }, + { + "name": "symfony/console", + "version": "v6.3.8", + "source": { + "type": "git", + "url": "https://github.com/symfony/console.git", + "reference": "0d14a9f6d04d4ac38a8cea1171f4554e325dae92" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/symfony/console/zipball/0d14a9f6d04d4ac38a8cea1171f4554e325dae92", + "reference": "0d14a9f6d04d4ac38a8cea1171f4554e325dae92", + "shasum": "" + }, + "require": { + "php": ">=8.1", + "symfony/deprecation-contracts": "^2.5|^3", + "symfony/polyfill-mbstring": "~1.0", + "symfony/service-contracts": "^2.5|^3", + "symfony/string": "^5.4|^6.0" + }, + "conflict": { + "symfony/dependency-injection": "<5.4", + "symfony/dotenv": "<5.4", + "symfony/event-dispatcher": "<5.4", + "symfony/lock": "<5.4", + "symfony/process": "<5.4" + }, + "provide": { + "psr/log-implementation": "1.0|2.0|3.0" + }, + "require-dev": { + "psr/log": "^1|^2|^3", + "symfony/config": "^5.4|^6.0", + "symfony/dependency-injection": "^5.4|^6.0", + "symfony/event-dispatcher": "^5.4|^6.0", + "symfony/lock": "^5.4|^6.0", + "symfony/process": "^5.4|^6.0", + "symfony/var-dumper": "^5.4|^6.0" }, "type": "library", "autoload": { @@ -2902,12 +5423,12 @@ "homepage": "https://symfony.com", "keywords": [ "cli", - "command line", + "command-line", "console", "terminal" ], "support": { - "source": "https://github.com/symfony/console/tree/v5.4.11" + "source": "https://github.com/symfony/console/tree/v6.3.8" }, "funding": [ { @@ -2923,25 +5444,24 @@ "type": "tidelift" } ], - "time": "2022-07-22T10:42:43+00:00" + "time": "2023-10-31T08:09:35+00:00" }, { "name": "symfony/css-selector", - "version": "v5.4.11", + "version": "v6.3.2", "source": { "type": "git", "url": "https://github.com/symfony/css-selector.git", - "reference": "c1681789f059ab756001052164726ae88512ae3d" + "reference": "883d961421ab1709877c10ac99451632a3d6fa57" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/css-selector/zipball/c1681789f059ab756001052164726ae88512ae3d", - "reference": "c1681789f059ab756001052164726ae88512ae3d", + "url": "https://api.github.com/repos/symfony/css-selector/zipball/883d961421ab1709877c10ac99451632a3d6fa57", + "reference": "883d961421ab1709877c10ac99451632a3d6fa57", "shasum": "" }, "require": { - "php": ">=7.2.5", - "symfony/polyfill-php80": "^1.16" + "php": ">=8.1" }, "type": "library", "autoload": { @@ -2973,7 +5493,7 @@ "description": "Converts CSS selectors to XPath expressions", "homepage": "https://symfony.com", "support": { - "source": "https://github.com/symfony/css-selector/tree/v5.4.11" + "source": "https://github.com/symfony/css-selector/tree/v6.3.2" }, "funding": [ { @@ -2989,29 +5509,29 @@ "type": "tidelift" } ], - "time": "2022-06-27T16:58:25+00:00" + "time": "2023-07-12T16:00:22+00:00" }, { "name": "symfony/deprecation-contracts", - "version": "v2.5.2", + "version": "v3.4.0", "source": { "type": "git", "url": "https://github.com/symfony/deprecation-contracts.git", - "reference": "e8b495ea28c1d97b5e0c121748d6f9b53d075c66" + "reference": "7c3aff79d10325257a001fcf92d991f24fc967cf" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/deprecation-contracts/zipball/e8b495ea28c1d97b5e0c121748d6f9b53d075c66", - "reference": "e8b495ea28c1d97b5e0c121748d6f9b53d075c66", + "url": "https://api.github.com/repos/symfony/deprecation-contracts/zipball/7c3aff79d10325257a001fcf92d991f24fc967cf", + "reference": "7c3aff79d10325257a001fcf92d991f24fc967cf", "shasum": "" }, "require": { - "php": ">=7.1" + "php": ">=8.1" }, "type": "library", "extra": { "branch-alias": { - "dev-main": "2.5-dev" + "dev-main": "3.4-dev" }, "thanks": { "name": "symfony/contracts", @@ -3040,7 +5560,7 @@ "description": "A generic function and convention to trigger deprecation notices", "homepage": "https://symfony.com", "support": { - "source": "https://github.com/symfony/deprecation-contracts/tree/v2.5.2" + "source": "https://github.com/symfony/deprecation-contracts/tree/v3.4.0" }, "funding": [ { @@ -3056,31 +5576,101 @@ "type": "tidelift" } ], - "time": "2022-01-02T09:53:40+00:00" + "time": "2023-05-23T14:45:45+00:00" }, { - "name": "symfony/error-handler", - "version": "v5.4.11", + "name": "symfony/dom-crawler", + "version": "v6.4.0", "source": { "type": "git", - "url": "https://github.com/symfony/error-handler.git", - "reference": "f75d17cb4769eb38cd5fccbda95cd80a054d35c8" + "url": "https://github.com/symfony/dom-crawler.git", + "reference": "14ff4fd2a5c8969d6158dbe7ef5b17d6a9c6ba33" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/error-handler/zipball/f75d17cb4769eb38cd5fccbda95cd80a054d35c8", - "reference": "f75d17cb4769eb38cd5fccbda95cd80a054d35c8", + "url": "https://api.github.com/repos/symfony/dom-crawler/zipball/14ff4fd2a5c8969d6158dbe7ef5b17d6a9c6ba33", + "reference": "14ff4fd2a5c8969d6158dbe7ef5b17d6a9c6ba33", "shasum": "" }, "require": { - "php": ">=7.2.5", - "psr/log": "^1|^2|^3", - "symfony/var-dumper": "^4.4|^5.0|^6.0" + "masterminds/html5": "^2.6", + "php": ">=8.1", + "symfony/polyfill-ctype": "~1.8", + "symfony/polyfill-mbstring": "~1.0" }, "require-dev": { - "symfony/deprecation-contracts": "^2.1|^3", - "symfony/http-kernel": "^4.4|^5.0|^6.0", - "symfony/serializer": "^4.4|^5.0|^6.0" + "symfony/css-selector": "^5.4|^6.0|^7.0" + }, + "type": "library", + "autoload": { + "psr-4": { + "Symfony\\Component\\DomCrawler\\": "" + }, + "exclude-from-classmap": [ + "/Tests/" + ] + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Fabien Potencier", + "email": "fabien@symfony.com" + }, + { + "name": "Symfony Community", + "homepage": "https://symfony.com/contributors" + } + ], + "description": "Eases DOM navigation for HTML and XML documents", + "homepage": "https://symfony.com", + "support": { + "source": "https://github.com/symfony/dom-crawler/tree/v6.4.0" + }, + "funding": [ + { + "url": "https://symfony.com/sponsor", + "type": "custom" + }, + { + "url": "https://github.com/fabpot", + "type": "github" + }, + { + "url": "https://tidelift.com/funding/github/packagist/symfony/symfony", + "type": "tidelift" + } + ], + "time": "2023-11-20T16:41:16+00:00" + }, + { + "name": "symfony/error-handler", + "version": "v6.3.5", + "source": { + "type": "git", + "url": "https://github.com/symfony/error-handler.git", + "reference": "1f69476b64fb47105c06beef757766c376b548c4" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/symfony/error-handler/zipball/1f69476b64fb47105c06beef757766c376b548c4", + "reference": "1f69476b64fb47105c06beef757766c376b548c4", + "shasum": "" + }, + "require": { + "php": ">=8.1", + "psr/log": "^1|^2|^3", + "symfony/var-dumper": "^5.4|^6.0" + }, + "conflict": { + "symfony/deprecation-contracts": "<2.5" + }, + "require-dev": { + "symfony/deprecation-contracts": "^2.5|^3", + "symfony/http-kernel": "^5.4|^6.0", + "symfony/serializer": "^5.4|^6.0" }, "bin": [ "Resources/bin/patch-type-declarations" @@ -3111,7 +5701,7 @@ "description": "Provides tools to manage errors and ease debugging PHP code", "homepage": "https://symfony.com", "support": { - "source": "https://github.com/symfony/error-handler/tree/v5.4.11" + "source": "https://github.com/symfony/error-handler/tree/v6.3.5" }, "funding": [ { @@ -3127,48 +5717,43 @@ "type": "tidelift" } ], - "time": "2022-07-29T07:37:50+00:00" + "time": "2023-09-12T06:57:20+00:00" }, { "name": "symfony/event-dispatcher", - "version": "v5.4.9", + "version": "v6.3.2", "source": { "type": "git", "url": "https://github.com/symfony/event-dispatcher.git", - "reference": "8e6ce1cc0279e3ff3c8ff0f43813bc88d21ca1bc" + "reference": "adb01fe097a4ee930db9258a3cc906b5beb5cf2e" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/event-dispatcher/zipball/8e6ce1cc0279e3ff3c8ff0f43813bc88d21ca1bc", - "reference": "8e6ce1cc0279e3ff3c8ff0f43813bc88d21ca1bc", + "url": "https://api.github.com/repos/symfony/event-dispatcher/zipball/adb01fe097a4ee930db9258a3cc906b5beb5cf2e", + "reference": "adb01fe097a4ee930db9258a3cc906b5beb5cf2e", "shasum": "" }, "require": { - "php": ">=7.2.5", - "symfony/deprecation-contracts": "^2.1|^3", - "symfony/event-dispatcher-contracts": "^2|^3", - "symfony/polyfill-php80": "^1.16" + "php": ">=8.1", + "symfony/event-dispatcher-contracts": "^2.5|^3" }, "conflict": { - "symfony/dependency-injection": "<4.4" + "symfony/dependency-injection": "<5.4", + "symfony/service-contracts": "<2.5" }, "provide": { "psr/event-dispatcher-implementation": "1.0", - "symfony/event-dispatcher-implementation": "2.0" + "symfony/event-dispatcher-implementation": "2.0|3.0" }, "require-dev": { "psr/log": "^1|^2|^3", - "symfony/config": "^4.4|^5.0|^6.0", - "symfony/dependency-injection": "^4.4|^5.0|^6.0", - "symfony/error-handler": "^4.4|^5.0|^6.0", - "symfony/expression-language": "^4.4|^5.0|^6.0", - "symfony/http-foundation": "^4.4|^5.0|^6.0", - "symfony/service-contracts": "^1.1|^2|^3", - "symfony/stopwatch": "^4.4|^5.0|^6.0" - }, - "suggest": { - "symfony/dependency-injection": "", - "symfony/http-kernel": "" + "symfony/config": "^5.4|^6.0", + "symfony/dependency-injection": "^5.4|^6.0", + "symfony/error-handler": "^5.4|^6.0", + "symfony/expression-language": "^5.4|^6.0", + "symfony/http-foundation": "^5.4|^6.0", + "symfony/service-contracts": "^2.5|^3", + "symfony/stopwatch": "^5.4|^6.0" }, "type": "library", "autoload": { @@ -3196,7 +5781,7 @@ "description": "Provides tools that allow your application components to communicate with each other by dispatching events and listening to them", "homepage": "https://symfony.com", "support": { - "source": "https://github.com/symfony/event-dispatcher/tree/v5.4.9" + "source": "https://github.com/symfony/event-dispatcher/tree/v6.3.2" }, "funding": [ { @@ -3212,33 +5797,30 @@ "type": "tidelift" } ], - "time": "2022-05-05T16:45:39+00:00" + "time": "2023-07-06T06:56:43+00:00" }, { "name": "symfony/event-dispatcher-contracts", - "version": "v2.5.2", + "version": "v3.4.0", "source": { "type": "git", "url": "https://github.com/symfony/event-dispatcher-contracts.git", - "reference": "f98b54df6ad059855739db6fcbc2d36995283fe1" + "reference": "a76aed96a42d2b521153fb382d418e30d18b59df" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/event-dispatcher-contracts/zipball/f98b54df6ad059855739db6fcbc2d36995283fe1", - "reference": "f98b54df6ad059855739db6fcbc2d36995283fe1", + "url": "https://api.github.com/repos/symfony/event-dispatcher-contracts/zipball/a76aed96a42d2b521153fb382d418e30d18b59df", + "reference": "a76aed96a42d2b521153fb382d418e30d18b59df", "shasum": "" }, "require": { - "php": ">=7.2.5", + "php": ">=8.1", "psr/event-dispatcher": "^1" }, - "suggest": { - "symfony/event-dispatcher-implementation": "" - }, "type": "library", "extra": { "branch-alias": { - "dev-main": "2.5-dev" + "dev-main": "3.4-dev" }, "thanks": { "name": "symfony/contracts", @@ -3275,7 +5857,7 @@ "standards" ], "support": { - "source": "https://github.com/symfony/event-dispatcher-contracts/tree/v2.5.2" + "source": "https://github.com/symfony/event-dispatcher-contracts/tree/v3.4.0" }, "funding": [ { @@ -3291,26 +5873,27 @@ "type": "tidelift" } ], - "time": "2022-01-02T09:53:40+00:00" + "time": "2023-05-23T14:45:45+00:00" }, { "name": "symfony/finder", - "version": "v5.4.11", + "version": "v6.3.5", "source": { "type": "git", "url": "https://github.com/symfony/finder.git", - "reference": "7872a66f57caffa2916a584db1aa7f12adc76f8c" + "reference": "a1b31d88c0e998168ca7792f222cbecee47428c4" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/finder/zipball/7872a66f57caffa2916a584db1aa7f12adc76f8c", - "reference": "7872a66f57caffa2916a584db1aa7f12adc76f8c", + "url": "https://api.github.com/repos/symfony/finder/zipball/a1b31d88c0e998168ca7792f222cbecee47428c4", + "reference": "a1b31d88c0e998168ca7792f222cbecee47428c4", "shasum": "" }, "require": { - "php": ">=7.2.5", - "symfony/deprecation-contracts": "^2.1|^3", - "symfony/polyfill-php80": "^1.16" + "php": ">=8.1" + }, + "require-dev": { + "symfony/filesystem": "^6.0" }, "type": "library", "autoload": { @@ -3338,7 +5921,7 @@ "description": "Finds files and directories via an intuitive fluent interface", "homepage": "https://symfony.com", "support": { - "source": "https://github.com/symfony/finder/tree/v5.4.11" + "source": "https://github.com/symfony/finder/tree/v6.3.5" }, "funding": [ { @@ -3354,36 +5937,40 @@ "type": "tidelift" } ], - "time": "2022-07-29T07:37:50+00:00" + "time": "2023-09-26T12:56:25+00:00" }, { "name": "symfony/http-foundation", - "version": "v5.4.11", + "version": "v6.3.8", "source": { "type": "git", "url": "https://github.com/symfony/http-foundation.git", - "reference": "0a5868e0999e9d47859ba3d918548ff6943e6389" + "reference": "ce332676de1912c4389222987193c3ef38033df6" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/http-foundation/zipball/0a5868e0999e9d47859ba3d918548ff6943e6389", - "reference": "0a5868e0999e9d47859ba3d918548ff6943e6389", + "url": "https://api.github.com/repos/symfony/http-foundation/zipball/ce332676de1912c4389222987193c3ef38033df6", + "reference": "ce332676de1912c4389222987193c3ef38033df6", "shasum": "" }, "require": { - "php": ">=7.2.5", - "symfony/deprecation-contracts": "^2.1|^3", + "php": ">=8.1", + "symfony/deprecation-contracts": "^2.5|^3", "symfony/polyfill-mbstring": "~1.1", - "symfony/polyfill-php80": "^1.16" + "symfony/polyfill-php83": "^1.27" + }, + "conflict": { + "symfony/cache": "<6.3" }, "require-dev": { - "predis/predis": "~1.0", - "symfony/cache": "^4.4|^5.0|^6.0", - "symfony/expression-language": "^4.4|^5.0|^6.0", - "symfony/mime": "^4.4|^5.0|^6.0" - }, - "suggest": { - "symfony/mime": "To use the file extension guesser" + "doctrine/dbal": "^2.13.1|^3|^4", + "predis/predis": "^1.1|^2.0", + "symfony/cache": "^6.3", + "symfony/dependency-injection": "^5.4|^6.0", + "symfony/expression-language": "^5.4|^6.0", + "symfony/http-kernel": "^5.4.12|^6.0.12|^6.1.4", + "symfony/mime": "^5.4|^6.0", + "symfony/rate-limiter": "^5.2|^6.0" }, "type": "library", "autoload": { @@ -3411,7 +5998,7 @@ "description": "Defines an object-oriented layer for the HTTP specification", "homepage": "https://symfony.com", "support": { - "source": "https://github.com/symfony/http-foundation/tree/v5.4.11" + "source": "https://github.com/symfony/http-foundation/tree/v6.3.8" }, "funding": [ { @@ -3427,76 +6014,77 @@ "type": "tidelift" } ], - "time": "2022-07-20T13:00:38+00:00" + "time": "2023-11-07T10:17:15+00:00" }, { "name": "symfony/http-kernel", - "version": "v5.4.11", + "version": "v6.3.8", "source": { "type": "git", "url": "https://github.com/symfony/http-kernel.git", - "reference": "4fd590a2ef3f62560dbbf6cea511995dd77321ee" + "reference": "929202375ccf44a309c34aeca8305408442ebcc1" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/http-kernel/zipball/4fd590a2ef3f62560dbbf6cea511995dd77321ee", - "reference": "4fd590a2ef3f62560dbbf6cea511995dd77321ee", + "url": "https://api.github.com/repos/symfony/http-kernel/zipball/929202375ccf44a309c34aeca8305408442ebcc1", + "reference": "929202375ccf44a309c34aeca8305408442ebcc1", "shasum": "" }, "require": { - "php": ">=7.2.5", - "psr/log": "^1|^2", - "symfony/deprecation-contracts": "^2.1|^3", - "symfony/error-handler": "^4.4|^5.0|^6.0", - "symfony/event-dispatcher": "^5.0|^6.0", - "symfony/http-foundation": "^5.3.7|^6.0", - "symfony/polyfill-ctype": "^1.8", - "symfony/polyfill-php73": "^1.9", - "symfony/polyfill-php80": "^1.16" + "php": ">=8.1", + "psr/log": "^1|^2|^3", + "symfony/deprecation-contracts": "^2.5|^3", + "symfony/error-handler": "^6.3", + "symfony/event-dispatcher": "^5.4|^6.0", + "symfony/http-foundation": "^6.3.4", + "symfony/polyfill-ctype": "^1.8" }, "conflict": { "symfony/browser-kit": "<5.4", - "symfony/cache": "<5.0", - "symfony/config": "<5.0", - "symfony/console": "<4.4", - "symfony/dependency-injection": "<5.3", - "symfony/doctrine-bridge": "<5.0", - "symfony/form": "<5.0", - "symfony/http-client": "<5.0", - "symfony/mailer": "<5.0", - "symfony/messenger": "<5.0", - "symfony/translation": "<5.0", - "symfony/twig-bridge": "<5.0", - "symfony/validator": "<5.0", + "symfony/cache": "<5.4", + "symfony/config": "<6.1", + "symfony/console": "<5.4", + "symfony/dependency-injection": "<6.3.4", + "symfony/doctrine-bridge": "<5.4", + "symfony/form": "<5.4", + "symfony/http-client": "<5.4", + "symfony/http-client-contracts": "<2.5", + "symfony/mailer": "<5.4", + "symfony/messenger": "<5.4", + "symfony/translation": "<5.4", + "symfony/translation-contracts": "<2.5", + "symfony/twig-bridge": "<5.4", + "symfony/validator": "<5.4", + "symfony/var-dumper": "<6.3", "twig/twig": "<2.13" }, "provide": { - "psr/log-implementation": "1.0|2.0" + "psr/log-implementation": "1.0|2.0|3.0" }, "require-dev": { "psr/cache": "^1.0|^2.0|^3.0", "symfony/browser-kit": "^5.4|^6.0", - "symfony/config": "^5.0|^6.0", - "symfony/console": "^4.4|^5.0|^6.0", - "symfony/css-selector": "^4.4|^5.0|^6.0", - "symfony/dependency-injection": "^5.3|^6.0", - "symfony/dom-crawler": "^4.4|^5.0|^6.0", - "symfony/expression-language": "^4.4|^5.0|^6.0", - "symfony/finder": "^4.4|^5.0|^6.0", - "symfony/http-client-contracts": "^1.1|^2|^3", - "symfony/process": "^4.4|^5.0|^6.0", - "symfony/routing": "^4.4|^5.0|^6.0", - "symfony/stopwatch": "^4.4|^5.0|^6.0", - "symfony/translation": "^4.4|^5.0|^6.0", - "symfony/translation-contracts": "^1.1|^2|^3", + "symfony/clock": "^6.2", + "symfony/config": "^6.1", + "symfony/console": "^5.4|^6.0", + "symfony/css-selector": "^5.4|^6.0", + "symfony/dependency-injection": "^6.3.4", + "symfony/dom-crawler": "^5.4|^6.0", + "symfony/expression-language": "^5.4|^6.0", + "symfony/finder": "^5.4|^6.0", + "symfony/http-client-contracts": "^2.5|^3", + "symfony/process": "^5.4|^6.0", + "symfony/property-access": "^5.4.5|^6.0.5", + "symfony/routing": "^5.4|^6.0", + "symfony/serializer": "^6.3", + "symfony/stopwatch": "^5.4|^6.0", + "symfony/translation": "^5.4|^6.0", + "symfony/translation-contracts": "^2.5|^3", + "symfony/uid": "^5.4|^6.0", + "symfony/validator": "^6.3", + "symfony/var-exporter": "^6.2", "twig/twig": "^2.13|^3.0.4" }, - "suggest": { - "symfony/browser-kit": "", - "symfony/config": "", - "symfony/console": "", - "symfony/dependency-injection": "" - }, "type": "library", "autoload": { "psr-4": { @@ -3523,7 +6111,7 @@ "description": "Provides a structured process for converting a Request into a Response", "homepage": "https://symfony.com", "support": { - "source": "https://github.com/symfony/http-kernel/tree/v5.4.11" + "source": "https://github.com/symfony/http-kernel/tree/v6.3.8" }, "funding": [ { @@ -3539,42 +6127,123 @@ "type": "tidelift" } ], - "time": "2022-07-29T12:30:22+00:00" + "time": "2023-11-10T13:47:32+00:00" }, { - "name": "symfony/mime", - "version": "v5.4.11", + "name": "symfony/mailer", + "version": "v6.3.5", "source": { "type": "git", - "url": "https://github.com/symfony/mime.git", - "reference": "3cd175cdcdb6db2e589e837dd46aff41027d9830" + "url": "https://github.com/symfony/mailer.git", + "reference": "d89611a7830d51b5e118bca38e390dea92f9ea06" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/mime/zipball/3cd175cdcdb6db2e589e837dd46aff41027d9830", - "reference": "3cd175cdcdb6db2e589e837dd46aff41027d9830", + "url": "https://api.github.com/repos/symfony/mailer/zipball/d89611a7830d51b5e118bca38e390dea92f9ea06", + "reference": "d89611a7830d51b5e118bca38e390dea92f9ea06", "shasum": "" }, "require": { - "php": ">=7.2.5", - "symfony/deprecation-contracts": "^2.1|^3", + "egulias/email-validator": "^2.1.10|^3|^4", + "php": ">=8.1", + "psr/event-dispatcher": "^1", + "psr/log": "^1|^2|^3", + "symfony/event-dispatcher": "^5.4|^6.0", + "symfony/mime": "^6.2", + "symfony/service-contracts": "^2.5|^3" + }, + "conflict": { + "symfony/http-client-contracts": "<2.5", + "symfony/http-kernel": "<5.4", + "symfony/messenger": "<6.2", + "symfony/mime": "<6.2", + "symfony/twig-bridge": "<6.2.1" + }, + "require-dev": { + "symfony/console": "^5.4|^6.0", + "symfony/http-client": "^5.4|^6.0", + "symfony/messenger": "^6.2", + "symfony/twig-bridge": "^6.2" + }, + "type": "library", + "autoload": { + "psr-4": { + "Symfony\\Component\\Mailer\\": "" + }, + "exclude-from-classmap": [ + "/Tests/" + ] + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Fabien Potencier", + "email": "fabien@symfony.com" + }, + { + "name": "Symfony Community", + "homepage": "https://symfony.com/contributors" + } + ], + "description": "Helps sending emails", + "homepage": "https://symfony.com", + "support": { + "source": "https://github.com/symfony/mailer/tree/v6.3.5" + }, + "funding": [ + { + "url": "https://symfony.com/sponsor", + "type": "custom" + }, + { + "url": "https://github.com/fabpot", + "type": "github" + }, + { + "url": "https://tidelift.com/funding/github/packagist/symfony/symfony", + "type": "tidelift" + } + ], + "time": "2023-09-06T09:47:15+00:00" + }, + { + "name": "symfony/mime", + "version": "v6.3.5", + "source": { + "type": "git", + "url": "https://github.com/symfony/mime.git", + "reference": "d5179eedf1cb2946dbd760475ebf05c251ef6a6e" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/symfony/mime/zipball/d5179eedf1cb2946dbd760475ebf05c251ef6a6e", + "reference": "d5179eedf1cb2946dbd760475ebf05c251ef6a6e", + "shasum": "" + }, + "require": { + "php": ">=8.1", + "symfony/deprecation-contracts": "^2.5|^3", "symfony/polyfill-intl-idn": "^1.10", - "symfony/polyfill-mbstring": "^1.0", - "symfony/polyfill-php80": "^1.16" + "symfony/polyfill-mbstring": "^1.0" }, "conflict": { "egulias/email-validator": "~3.0.0", "phpdocumentor/reflection-docblock": "<3.2.2", "phpdocumentor/type-resolver": "<1.4.0", - "symfony/mailer": "<4.4" + "symfony/mailer": "<5.4", + "symfony/serializer": "<6.2.13|>=6.3,<6.3.2" }, "require-dev": { - "egulias/email-validator": "^2.1.10|^3.1", + "egulias/email-validator": "^2.1.10|^3.1|^4", + "league/html-to-markdown": "^5.0", "phpdocumentor/reflection-docblock": "^3.0|^4.0|^5.0", - "symfony/dependency-injection": "^4.4|^5.0|^6.0", - "symfony/property-access": "^4.4|^5.1|^6.0", - "symfony/property-info": "^4.4|^5.1|^6.0", - "symfony/serializer": "^5.2|^6.0" + "symfony/dependency-injection": "^5.4|^6.0", + "symfony/property-access": "^5.4|^6.0", + "symfony/property-info": "^5.4|^6.0", + "symfony/serializer": "~6.2.13|^6.3.2" }, "type": "library", "autoload": { @@ -3606,7 +6275,7 @@ "mime-type" ], "support": { - "source": "https://github.com/symfony/mime/tree/v5.4.11" + "source": "https://github.com/symfony/mime/tree/v6.3.5" }, "funding": [ { @@ -3622,20 +6291,87 @@ "type": "tidelift" } ], - "time": "2022-07-20T11:34:24+00:00" + "time": "2023-09-29T06:59:36+00:00" }, { - "name": "symfony/polyfill-ctype", - "version": "v1.26.0", + "name": "symfony/options-resolver", + "version": "v6.3.0", "source": { "type": "git", - "url": "https://github.com/symfony/polyfill-ctype.git", - "reference": "6fd1b9a79f6e3cf65f9e679b23af304cd9e010d4" + "url": "https://github.com/symfony/options-resolver.git", + "reference": "a10f19f5198d589d5c33333cffe98dc9820332dd" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/polyfill-ctype/zipball/6fd1b9a79f6e3cf65f9e679b23af304cd9e010d4", - "reference": "6fd1b9a79f6e3cf65f9e679b23af304cd9e010d4", + "url": "https://api.github.com/repos/symfony/options-resolver/zipball/a10f19f5198d589d5c33333cffe98dc9820332dd", + "reference": "a10f19f5198d589d5c33333cffe98dc9820332dd", + "shasum": "" + }, + "require": { + "php": ">=8.1", + "symfony/deprecation-contracts": "^2.5|^3" + }, + "type": "library", + "autoload": { + "psr-4": { + "Symfony\\Component\\OptionsResolver\\": "" + }, + "exclude-from-classmap": [ + "/Tests/" + ] + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Fabien Potencier", + "email": "fabien@symfony.com" + }, + { + "name": "Symfony Community", + "homepage": "https://symfony.com/contributors" + } + ], + "description": "Provides an improved replacement for the array_replace PHP function", + "homepage": "https://symfony.com", + "keywords": [ + "config", + "configuration", + "options" + ], + "support": { + "source": "https://github.com/symfony/options-resolver/tree/v6.3.0" + }, + "funding": [ + { + "url": "https://symfony.com/sponsor", + "type": "custom" + }, + { + "url": "https://github.com/fabpot", + "type": "github" + }, + { + "url": "https://tidelift.com/funding/github/packagist/symfony/symfony", + "type": "tidelift" + } + ], + "time": "2023-05-12T14:21:09+00:00" + }, + { + "name": "symfony/polyfill-ctype", + "version": "v1.28.0", + "source": { + "type": "git", + "url": "https://github.com/symfony/polyfill-ctype.git", + "reference": "ea208ce43cbb04af6867b4fdddb1bdbf84cc28cb" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/symfony/polyfill-ctype/zipball/ea208ce43cbb04af6867b4fdddb1bdbf84cc28cb", + "reference": "ea208ce43cbb04af6867b4fdddb1bdbf84cc28cb", "shasum": "" }, "require": { @@ -3650,7 +6386,7 @@ "type": "library", "extra": { "branch-alias": { - "dev-main": "1.26-dev" + "dev-main": "1.28-dev" }, "thanks": { "name": "symfony/polyfill", @@ -3688,7 +6424,7 @@ "portable" ], "support": { - "source": "https://github.com/symfony/polyfill-ctype/tree/v1.26.0" + "source": "https://github.com/symfony/polyfill-ctype/tree/v1.28.0" }, "funding": [ { @@ -3704,103 +6440,20 @@ "type": "tidelift" } ], - "time": "2022-05-24T11:49:31+00:00" - }, - { - "name": "symfony/polyfill-iconv", - "version": "v1.26.0", - "source": { - "type": "git", - "url": "https://github.com/symfony/polyfill-iconv.git", - "reference": "143f1881e655bebca1312722af8068de235ae5dc" - }, - "dist": { - "type": "zip", - "url": "https://api.github.com/repos/symfony/polyfill-iconv/zipball/143f1881e655bebca1312722af8068de235ae5dc", - "reference": "143f1881e655bebca1312722af8068de235ae5dc", - "shasum": "" - }, - "require": { - "php": ">=7.1" - }, - "provide": { - "ext-iconv": "*" - }, - "suggest": { - "ext-iconv": "For best performance" - }, - "type": "library", - "extra": { - "branch-alias": { - "dev-main": "1.26-dev" - }, - "thanks": { - "name": "symfony/polyfill", - "url": "https://github.com/symfony/polyfill" - } - }, - "autoload": { - "files": [ - "bootstrap.php" - ], - "psr-4": { - "Symfony\\Polyfill\\Iconv\\": "" - } - }, - "notification-url": "https://packagist.org/downloads/", - "license": [ - "MIT" - ], - "authors": [ - { - "name": "Nicolas Grekas", - "email": "p@tchwork.com" - }, - { - "name": "Symfony Community", - "homepage": "https://symfony.com/contributors" - } - ], - "description": "Symfony polyfill for the Iconv extension", - "homepage": "https://symfony.com", - "keywords": [ - "compatibility", - "iconv", - "polyfill", - "portable", - "shim" - ], - "support": { - "source": "https://github.com/symfony/polyfill-iconv/tree/v1.26.0" - }, - "funding": [ - { - "url": "https://symfony.com/sponsor", - "type": "custom" - }, - { - "url": "https://github.com/fabpot", - "type": "github" - }, - { - "url": "https://tidelift.com/funding/github/packagist/symfony/symfony", - "type": "tidelift" - } - ], - "time": "2022-05-24T11:49:31+00:00" + "time": "2023-01-26T09:26:14+00:00" }, { "name": "symfony/polyfill-intl-grapheme", - "version": "v1.26.0", + "version": "v1.28.0", "source": { "type": "git", "url": "https://github.com/symfony/polyfill-intl-grapheme.git", - "reference": "433d05519ce6990bf3530fba6957499d327395c2" + "reference": "875e90aeea2777b6f135677f618529449334a612" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/polyfill-intl-grapheme/zipball/433d05519ce6990bf3530fba6957499d327395c2", - "reference": "433d05519ce6990bf3530fba6957499d327395c2", + "url": "https://api.github.com/repos/symfony/polyfill-intl-grapheme/zipball/875e90aeea2777b6f135677f618529449334a612", + "reference": "875e90aeea2777b6f135677f618529449334a612", "shasum": "" }, "require": { @@ -3812,7 +6465,7 @@ "type": "library", "extra": { "branch-alias": { - "dev-main": "1.26-dev" + "dev-main": "1.28-dev" }, "thanks": { "name": "symfony/polyfill", @@ -3852,7 +6505,7 @@ "shim" ], "support": { - "source": "https://github.com/symfony/polyfill-intl-grapheme/tree/v1.26.0" + "source": "https://github.com/symfony/polyfill-intl-grapheme/tree/v1.28.0" }, "funding": [ { @@ -3868,20 +6521,20 @@ "type": "tidelift" } ], - "time": "2022-05-24T11:49:31+00:00" + "time": "2023-01-26T09:26:14+00:00" }, { "name": "symfony/polyfill-intl-idn", - "version": "v1.26.0", + "version": "v1.28.0", "source": { "type": "git", "url": "https://github.com/symfony/polyfill-intl-idn.git", - "reference": "59a8d271f00dd0e4c2e518104cc7963f655a1aa8" + "reference": "ecaafce9f77234a6a449d29e49267ba10499116d" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/polyfill-intl-idn/zipball/59a8d271f00dd0e4c2e518104cc7963f655a1aa8", - "reference": "59a8d271f00dd0e4c2e518104cc7963f655a1aa8", + "url": "https://api.github.com/repos/symfony/polyfill-intl-idn/zipball/ecaafce9f77234a6a449d29e49267ba10499116d", + "reference": "ecaafce9f77234a6a449d29e49267ba10499116d", "shasum": "" }, "require": { @@ -3895,7 +6548,7 @@ "type": "library", "extra": { "branch-alias": { - "dev-main": "1.26-dev" + "dev-main": "1.28-dev" }, "thanks": { "name": "symfony/polyfill", @@ -3939,7 +6592,7 @@ "shim" ], "support": { - "source": "https://github.com/symfony/polyfill-intl-idn/tree/v1.26.0" + "source": "https://github.com/symfony/polyfill-intl-idn/tree/v1.28.0" }, "funding": [ { @@ -3955,20 +6608,20 @@ "type": "tidelift" } ], - "time": "2022-05-24T11:49:31+00:00" + "time": "2023-01-26T09:30:37+00:00" }, { "name": "symfony/polyfill-intl-normalizer", - "version": "v1.26.0", + "version": "v1.28.0", "source": { "type": "git", "url": "https://github.com/symfony/polyfill-intl-normalizer.git", - "reference": "219aa369ceff116e673852dce47c3a41794c14bd" + "reference": "8c4ad05dd0120b6a53c1ca374dca2ad0a1c4ed92" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/polyfill-intl-normalizer/zipball/219aa369ceff116e673852dce47c3a41794c14bd", - "reference": "219aa369ceff116e673852dce47c3a41794c14bd", + "url": "https://api.github.com/repos/symfony/polyfill-intl-normalizer/zipball/8c4ad05dd0120b6a53c1ca374dca2ad0a1c4ed92", + "reference": "8c4ad05dd0120b6a53c1ca374dca2ad0a1c4ed92", "shasum": "" }, "require": { @@ -3980,7 +6633,7 @@ "type": "library", "extra": { "branch-alias": { - "dev-main": "1.26-dev" + "dev-main": "1.28-dev" }, "thanks": { "name": "symfony/polyfill", @@ -4023,7 +6676,7 @@ "shim" ], "support": { - "source": "https://github.com/symfony/polyfill-intl-normalizer/tree/v1.26.0" + "source": "https://github.com/symfony/polyfill-intl-normalizer/tree/v1.28.0" }, "funding": [ { @@ -4039,20 +6692,20 @@ "type": "tidelift" } ], - "time": "2022-05-24T11:49:31+00:00" + "time": "2023-01-26T09:26:14+00:00" }, { "name": "symfony/polyfill-mbstring", - "version": "v1.26.0", + "version": "v1.28.0", "source": { "type": "git", "url": "https://github.com/symfony/polyfill-mbstring.git", - "reference": "9344f9cb97f3b19424af1a21a3b0e75b0a7d8d7e" + "reference": "42292d99c55abe617799667f454222c54c60e229" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/polyfill-mbstring/zipball/9344f9cb97f3b19424af1a21a3b0e75b0a7d8d7e", - "reference": "9344f9cb97f3b19424af1a21a3b0e75b0a7d8d7e", + "url": "https://api.github.com/repos/symfony/polyfill-mbstring/zipball/42292d99c55abe617799667f454222c54c60e229", + "reference": "42292d99c55abe617799667f454222c54c60e229", "shasum": "" }, "require": { @@ -4067,7 +6720,7 @@ "type": "library", "extra": { "branch-alias": { - "dev-main": "1.26-dev" + "dev-main": "1.28-dev" }, "thanks": { "name": "symfony/polyfill", @@ -4106,7 +6759,7 @@ "shim" ], "support": { - "source": "https://github.com/symfony/polyfill-mbstring/tree/v1.26.0" + "source": "https://github.com/symfony/polyfill-mbstring/tree/v1.28.0" }, "funding": [ { @@ -4122,20 +6775,20 @@ "type": "tidelift" } ], - "time": "2022-05-24T11:49:31+00:00" + "time": "2023-07-28T09:04:16+00:00" }, { "name": "symfony/polyfill-php72", - "version": "v1.26.0", + "version": "v1.28.0", "source": { "type": "git", "url": "https://github.com/symfony/polyfill-php72.git", - "reference": "bf44a9fd41feaac72b074de600314a93e2ae78e2" + "reference": "70f4aebd92afca2f865444d30a4d2151c13c3179" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/polyfill-php72/zipball/bf44a9fd41feaac72b074de600314a93e2ae78e2", - "reference": "bf44a9fd41feaac72b074de600314a93e2ae78e2", + "url": "https://api.github.com/repos/symfony/polyfill-php72/zipball/70f4aebd92afca2f865444d30a4d2151c13c3179", + "reference": "70f4aebd92afca2f865444d30a4d2151c13c3179", "shasum": "" }, "require": { @@ -4144,7 +6797,7 @@ "type": "library", "extra": { "branch-alias": { - "dev-main": "1.26-dev" + "dev-main": "1.28-dev" }, "thanks": { "name": "symfony/polyfill", @@ -4182,7 +6835,7 @@ "shim" ], "support": { - "source": "https://github.com/symfony/polyfill-php72/tree/v1.26.0" + "source": "https://github.com/symfony/polyfill-php72/tree/v1.28.0" }, "funding": [ { @@ -4198,99 +6851,20 @@ "type": "tidelift" } ], - "time": "2022-05-24T11:49:31+00:00" - }, - { - "name": "symfony/polyfill-php73", - "version": "v1.26.0", - "source": { - "type": "git", - "url": "https://github.com/symfony/polyfill-php73.git", - "reference": "e440d35fa0286f77fb45b79a03fedbeda9307e85" - }, - "dist": { - "type": "zip", - "url": "https://api.github.com/repos/symfony/polyfill-php73/zipball/e440d35fa0286f77fb45b79a03fedbeda9307e85", - "reference": "e440d35fa0286f77fb45b79a03fedbeda9307e85", - "shasum": "" - }, - "require": { - "php": ">=7.1" - }, - "type": "library", - "extra": { - "branch-alias": { - "dev-main": "1.26-dev" - }, - "thanks": { - "name": "symfony/polyfill", - "url": "https://github.com/symfony/polyfill" - } - }, - "autoload": { - "files": [ - "bootstrap.php" - ], - "psr-4": { - "Symfony\\Polyfill\\Php73\\": "" - }, - "classmap": [ - "Resources/stubs" - ] - }, - "notification-url": "https://packagist.org/downloads/", - "license": [ - "MIT" - ], - "authors": [ - { - "name": "Nicolas Grekas", - "email": "p@tchwork.com" - }, - { - "name": "Symfony Community", - "homepage": "https://symfony.com/contributors" - } - ], - "description": "Symfony polyfill backporting some PHP 7.3+ features to lower PHP versions", - "homepage": "https://symfony.com", - "keywords": [ - "compatibility", - "polyfill", - "portable", - "shim" - ], - "support": { - "source": "https://github.com/symfony/polyfill-php73/tree/v1.26.0" - }, - "funding": [ - { - "url": "https://symfony.com/sponsor", - "type": "custom" - }, - { - "url": "https://github.com/fabpot", - "type": "github" - }, - { - "url": "https://tidelift.com/funding/github/packagist/symfony/symfony", - "type": "tidelift" - } - ], - "time": "2022-05-24T11:49:31+00:00" + "time": "2023-01-26T09:26:14+00:00" }, { "name": "symfony/polyfill-php80", - "version": "v1.26.0", + "version": "v1.28.0", "source": { "type": "git", "url": "https://github.com/symfony/polyfill-php80.git", - "reference": "cfa0ae98841b9e461207c13ab093d76b0fa7bace" + "reference": "6caa57379c4aec19c0a12a38b59b26487dcfe4b5" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/polyfill-php80/zipball/cfa0ae98841b9e461207c13ab093d76b0fa7bace", - "reference": "cfa0ae98841b9e461207c13ab093d76b0fa7bace", + "url": "https://api.github.com/repos/symfony/polyfill-php80/zipball/6caa57379c4aec19c0a12a38b59b26487dcfe4b5", + "reference": "6caa57379c4aec19c0a12a38b59b26487dcfe4b5", "shasum": "" }, "require": { @@ -4299,7 +6873,7 @@ "type": "library", "extra": { "branch-alias": { - "dev-main": "1.26-dev" + "dev-main": "1.28-dev" }, "thanks": { "name": "symfony/polyfill", @@ -4344,7 +6918,7 @@ "shim" ], "support": { - "source": "https://github.com/symfony/polyfill-php80/tree/v1.26.0" + "source": "https://github.com/symfony/polyfill-php80/tree/v1.28.0" }, "funding": [ { @@ -4360,29 +6934,30 @@ "type": "tidelift" } ], - "time": "2022-05-10T07:21:04+00:00" + "time": "2023-01-26T09:26:14+00:00" }, { - "name": "symfony/polyfill-php81", - "version": "v1.26.0", + "name": "symfony/polyfill-php83", + "version": "v1.28.0", "source": { "type": "git", - "url": "https://github.com/symfony/polyfill-php81.git", - "reference": "13f6d1271c663dc5ae9fb843a8f16521db7687a1" + "url": "https://github.com/symfony/polyfill-php83.git", + "reference": "b0f46ebbeeeda3e9d2faebdfbf4b4eae9b59fa11" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/polyfill-php81/zipball/13f6d1271c663dc5ae9fb843a8f16521db7687a1", - "reference": "13f6d1271c663dc5ae9fb843a8f16521db7687a1", + "url": "https://api.github.com/repos/symfony/polyfill-php83/zipball/b0f46ebbeeeda3e9d2faebdfbf4b4eae9b59fa11", + "reference": "b0f46ebbeeeda3e9d2faebdfbf4b4eae9b59fa11", "shasum": "" }, "require": { - "php": ">=7.1" + "php": ">=7.1", + "symfony/polyfill-php80": "^1.14" }, "type": "library", "extra": { "branch-alias": { - "dev-main": "1.26-dev" + "dev-main": "1.28-dev" }, "thanks": { "name": "symfony/polyfill", @@ -4394,7 +6969,7 @@ "bootstrap.php" ], "psr-4": { - "Symfony\\Polyfill\\Php81\\": "" + "Symfony\\Polyfill\\Php83\\": "" }, "classmap": [ "Resources/stubs" @@ -4414,7 +6989,7 @@ "homepage": "https://symfony.com/contributors" } ], - "description": "Symfony polyfill backporting some PHP 8.1+ features to lower PHP versions", + "description": "Symfony polyfill backporting some PHP 8.3+ features to lower PHP versions", "homepage": "https://symfony.com", "keywords": [ "compatibility", @@ -4423,7 +6998,7 @@ "shim" ], "support": { - "source": "https://github.com/symfony/polyfill-php81/tree/v1.26.0" + "source": "https://github.com/symfony/polyfill-php83/tree/v1.28.0" }, "funding": [ { @@ -4439,25 +7014,106 @@ "type": "tidelift" } ], - "time": "2022-05-24T11:49:31+00:00" + "time": "2023-08-16T06:22:46+00:00" }, { - "name": "symfony/process", - "version": "v5.4.11", + "name": "symfony/polyfill-uuid", + "version": "v1.28.0", "source": { "type": "git", - "url": "https://github.com/symfony/process.git", - "reference": "6e75fe6874cbc7e4773d049616ab450eff537bf1" + "url": "https://github.com/symfony/polyfill-uuid.git", + "reference": "9c44518a5aff8da565c8a55dbe85d2769e6f630e" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/process/zipball/6e75fe6874cbc7e4773d049616ab450eff537bf1", - "reference": "6e75fe6874cbc7e4773d049616ab450eff537bf1", + "url": "https://api.github.com/repos/symfony/polyfill-uuid/zipball/9c44518a5aff8da565c8a55dbe85d2769e6f630e", + "reference": "9c44518a5aff8da565c8a55dbe85d2769e6f630e", "shasum": "" }, "require": { - "php": ">=7.2.5", - "symfony/polyfill-php80": "^1.16" + "php": ">=7.1" + }, + "provide": { + "ext-uuid": "*" + }, + "suggest": { + "ext-uuid": "For best performance" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-main": "1.28-dev" + }, + "thanks": { + "name": "symfony/polyfill", + "url": "https://github.com/symfony/polyfill" + } + }, + "autoload": { + "files": [ + "bootstrap.php" + ], + "psr-4": { + "Symfony\\Polyfill\\Uuid\\": "" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Grégoire Pineau", + "email": "lyrixx@lyrixx.info" + }, + { + "name": "Symfony Community", + "homepage": "https://symfony.com/contributors" + } + ], + "description": "Symfony polyfill for uuid functions", + "homepage": "https://symfony.com", + "keywords": [ + "compatibility", + "polyfill", + "portable", + "uuid" + ], + "support": { + "source": "https://github.com/symfony/polyfill-uuid/tree/v1.28.0" + }, + "funding": [ + { + "url": "https://symfony.com/sponsor", + "type": "custom" + }, + { + "url": "https://github.com/fabpot", + "type": "github" + }, + { + "url": "https://tidelift.com/funding/github/packagist/symfony/symfony", + "type": "tidelift" + } + ], + "time": "2023-01-26T09:26:14+00:00" + }, + { + "name": "symfony/process", + "version": "v6.3.4", + "source": { + "type": "git", + "url": "https://github.com/symfony/process.git", + "reference": "0b5c29118f2e980d455d2e34a5659f4579847c54" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/symfony/process/zipball/0b5c29118f2e980d455d2e34a5659f4579847c54", + "reference": "0b5c29118f2e980d455d2e34a5659f4579847c54", + "shasum": "" + }, + "require": { + "php": ">=8.1" }, "type": "library", "autoload": { @@ -4485,7 +7141,7 @@ "description": "Executes commands in sub-processes", "homepage": "https://symfony.com", "support": { - "source": "https://github.com/symfony/process/tree/v5.4.11" + "source": "https://github.com/symfony/process/tree/v6.3.4" }, "funding": [ { @@ -4501,47 +7157,129 @@ "type": "tidelift" } ], - "time": "2022-06-27T16:58:25+00:00" + "time": "2023-08-07T10:39:22+00:00" }, { - "name": "symfony/routing", - "version": "v5.4.11", + "name": "symfony/psr-http-message-bridge", + "version": "v2.3.1", "source": { "type": "git", - "url": "https://github.com/symfony/routing.git", - "reference": "3e01ccd9b2a3a4167ba2b3c53612762300300226" + "url": "https://github.com/symfony/psr-http-message-bridge.git", + "reference": "581ca6067eb62640de5ff08ee1ba6850a0ee472e" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/routing/zipball/3e01ccd9b2a3a4167ba2b3c53612762300300226", - "reference": "3e01ccd9b2a3a4167ba2b3c53612762300300226", + "url": "https://api.github.com/repos/symfony/psr-http-message-bridge/zipball/581ca6067eb62640de5ff08ee1ba6850a0ee472e", + "reference": "581ca6067eb62640de5ff08ee1ba6850a0ee472e", "shasum": "" }, "require": { "php": ">=7.2.5", - "symfony/deprecation-contracts": "^2.1|^3", - "symfony/polyfill-php80": "^1.16" + "psr/http-message": "^1.0 || ^2.0", + "symfony/deprecation-contracts": "^2.5 || ^3.0", + "symfony/http-foundation": "^5.4 || ^6.0" + }, + "require-dev": { + "nyholm/psr7": "^1.1", + "psr/log": "^1.1 || ^2 || ^3", + "symfony/browser-kit": "^5.4 || ^6.0", + "symfony/config": "^5.4 || ^6.0", + "symfony/event-dispatcher": "^5.4 || ^6.0", + "symfony/framework-bundle": "^5.4 || ^6.0", + "symfony/http-kernel": "^5.4 || ^6.0", + "symfony/phpunit-bridge": "^6.2" + }, + "suggest": { + "nyholm/psr7": "For a super lightweight PSR-7/17 implementation" + }, + "type": "symfony-bridge", + "extra": { + "branch-alias": { + "dev-main": "2.3-dev" + } + }, + "autoload": { + "psr-4": { + "Symfony\\Bridge\\PsrHttpMessage\\": "" + }, + "exclude-from-classmap": [ + "/Tests/" + ] + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Fabien Potencier", + "email": "fabien@symfony.com" + }, + { + "name": "Symfony Community", + "homepage": "http://symfony.com/contributors" + } + ], + "description": "PSR HTTP message bridge", + "homepage": "http://symfony.com", + "keywords": [ + "http", + "http-message", + "psr-17", + "psr-7" + ], + "support": { + "issues": "https://github.com/symfony/psr-http-message-bridge/issues", + "source": "https://github.com/symfony/psr-http-message-bridge/tree/v2.3.1" + }, + "funding": [ + { + "url": "https://symfony.com/sponsor", + "type": "custom" + }, + { + "url": "https://github.com/fabpot", + "type": "github" + }, + { + "url": "https://tidelift.com/funding/github/packagist/symfony/symfony", + "type": "tidelift" + } + ], + "time": "2023-07-26T11:53:26+00:00" + }, + { + "name": "symfony/routing", + "version": "v6.3.5", + "source": { + "type": "git", + "url": "https://github.com/symfony/routing.git", + "reference": "82616e59acd3e3d9c916bba798326cb7796d7d31" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/symfony/routing/zipball/82616e59acd3e3d9c916bba798326cb7796d7d31", + "reference": "82616e59acd3e3d9c916bba798326cb7796d7d31", + "shasum": "" + }, + "require": { + "php": ">=8.1", + "symfony/deprecation-contracts": "^2.5|^3" }, "conflict": { "doctrine/annotations": "<1.12", - "symfony/config": "<5.3", - "symfony/dependency-injection": "<4.4", - "symfony/yaml": "<4.4" + "symfony/config": "<6.2", + "symfony/dependency-injection": "<5.4", + "symfony/yaml": "<5.4" }, "require-dev": { - "doctrine/annotations": "^1.12", + "doctrine/annotations": "^1.12|^2", "psr/log": "^1|^2|^3", - "symfony/config": "^5.3|^6.0", - "symfony/dependency-injection": "^4.4|^5.0|^6.0", - "symfony/expression-language": "^4.4|^5.0|^6.0", - "symfony/http-foundation": "^4.4|^5.0|^6.0", - "symfony/yaml": "^4.4|^5.0|^6.0" - }, - "suggest": { - "symfony/config": "For using the all-in-one router or any loader", - "symfony/expression-language": "For using expression matching", - "symfony/http-foundation": "For using a Symfony Request object", - "symfony/yaml": "For using the YAML loader" + "symfony/config": "^6.2", + "symfony/dependency-injection": "^5.4|^6.0", + "symfony/expression-language": "^5.4|^6.0", + "symfony/http-foundation": "^5.4|^6.0", + "symfony/yaml": "^5.4|^6.0" }, "type": "library", "autoload": { @@ -4575,7 +7313,7 @@ "url" ], "support": { - "source": "https://github.com/symfony/routing/tree/v5.4.11" + "source": "https://github.com/symfony/routing/tree/v6.3.5" }, "funding": [ { @@ -4591,37 +7329,33 @@ "type": "tidelift" } ], - "time": "2022-07-20T13:00:38+00:00" + "time": "2023-09-20T16:05:51+00:00" }, { "name": "symfony/service-contracts", - "version": "v2.5.2", + "version": "v3.4.0", "source": { "type": "git", "url": "https://github.com/symfony/service-contracts.git", - "reference": "4b426aac47d6427cc1a1d0f7e2ac724627f5966c" + "reference": "b3313c2dbffaf71c8de2934e2ea56ed2291a3838" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/service-contracts/zipball/4b426aac47d6427cc1a1d0f7e2ac724627f5966c", - "reference": "4b426aac47d6427cc1a1d0f7e2ac724627f5966c", + "url": "https://api.github.com/repos/symfony/service-contracts/zipball/b3313c2dbffaf71c8de2934e2ea56ed2291a3838", + "reference": "b3313c2dbffaf71c8de2934e2ea56ed2291a3838", "shasum": "" }, "require": { - "php": ">=7.2.5", - "psr/container": "^1.1", - "symfony/deprecation-contracts": "^2.1|^3" + "php": ">=8.1", + "psr/container": "^2.0" }, "conflict": { "ext-psr": "<1.1|>=2" }, - "suggest": { - "symfony/service-implementation": "" - }, "type": "library", "extra": { "branch-alias": { - "dev-main": "2.5-dev" + "dev-main": "3.4-dev" }, "thanks": { "name": "symfony/contracts", @@ -4631,7 +7365,10 @@ "autoload": { "psr-4": { "Symfony\\Contracts\\Service\\": "" - } + }, + "exclude-from-classmap": [ + "/Test/" + ] }, "notification-url": "https://packagist.org/downloads/", "license": [ @@ -4658,7 +7395,7 @@ "standards" ], "support": { - "source": "https://github.com/symfony/service-contracts/tree/v2.5.2" + "source": "https://github.com/symfony/service-contracts/tree/v3.4.0" }, "funding": [ { @@ -4674,38 +7411,38 @@ "type": "tidelift" } ], - "time": "2022-05-30T19:17:29+00:00" + "time": "2023-07-30T20:28:31+00:00" }, { "name": "symfony/string", - "version": "v5.4.11", + "version": "v6.3.8", "source": { "type": "git", "url": "https://github.com/symfony/string.git", - "reference": "5eb661e49ad389e4ae2b6e4df8d783a8a6548322" + "reference": "13880a87790c76ef994c91e87efb96134522577a" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/string/zipball/5eb661e49ad389e4ae2b6e4df8d783a8a6548322", - "reference": "5eb661e49ad389e4ae2b6e4df8d783a8a6548322", + "url": "https://api.github.com/repos/symfony/string/zipball/13880a87790c76ef994c91e87efb96134522577a", + "reference": "13880a87790c76ef994c91e87efb96134522577a", "shasum": "" }, "require": { - "php": ">=7.2.5", + "php": ">=8.1", "symfony/polyfill-ctype": "~1.8", "symfony/polyfill-intl-grapheme": "~1.0", "symfony/polyfill-intl-normalizer": "~1.0", - "symfony/polyfill-mbstring": "~1.0", - "symfony/polyfill-php80": "~1.15" + "symfony/polyfill-mbstring": "~1.0" }, "conflict": { - "symfony/translation-contracts": ">=3.0" + "symfony/translation-contracts": "<2.5" }, "require-dev": { - "symfony/error-handler": "^4.4|^5.0|^6.0", - "symfony/http-client": "^4.4|^5.0|^6.0", - "symfony/translation-contracts": "^1.1|^2", - "symfony/var-exporter": "^4.4|^5.0|^6.0" + "symfony/error-handler": "^5.4|^6.0", + "symfony/http-client": "^5.4|^6.0", + "symfony/intl": "^6.2", + "symfony/translation-contracts": "^2.5|^3.0", + "symfony/var-exporter": "^5.4|^6.0" }, "type": "library", "autoload": { @@ -4744,7 +7481,7 @@ "utf8" ], "support": { - "source": "https://github.com/symfony/string/tree/v5.4.11" + "source": "https://github.com/symfony/string/tree/v6.3.8" }, "funding": [ { @@ -4760,57 +7497,55 @@ "type": "tidelift" } ], - "time": "2022-07-24T16:15:25+00:00" + "time": "2023-11-09T08:28:21+00:00" }, { "name": "symfony/translation", - "version": "v5.4.11", + "version": "v6.3.7", "source": { "type": "git", "url": "https://github.com/symfony/translation.git", - "reference": "7a1a8f6bbff269f434a83343a0a5d36a4f8cfa21" + "reference": "30212e7c87dcb79c83f6362b00bde0e0b1213499" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/translation/zipball/7a1a8f6bbff269f434a83343a0a5d36a4f8cfa21", - "reference": "7a1a8f6bbff269f434a83343a0a5d36a4f8cfa21", + "url": "https://api.github.com/repos/symfony/translation/zipball/30212e7c87dcb79c83f6362b00bde0e0b1213499", + "reference": "30212e7c87dcb79c83f6362b00bde0e0b1213499", "shasum": "" }, "require": { - "php": ">=7.2.5", - "symfony/deprecation-contracts": "^2.1|^3", + "php": ">=8.1", + "symfony/deprecation-contracts": "^2.5|^3", "symfony/polyfill-mbstring": "~1.0", - "symfony/polyfill-php80": "^1.16", - "symfony/translation-contracts": "^2.3" + "symfony/translation-contracts": "^2.5|^3.0" }, "conflict": { - "symfony/config": "<4.4", - "symfony/console": "<5.3", - "symfony/dependency-injection": "<5.0", - "symfony/http-kernel": "<5.0", - "symfony/twig-bundle": "<5.0", - "symfony/yaml": "<4.4" + "symfony/config": "<5.4", + "symfony/console": "<5.4", + "symfony/dependency-injection": "<5.4", + "symfony/http-client-contracts": "<2.5", + "symfony/http-kernel": "<5.4", + "symfony/service-contracts": "<2.5", + "symfony/twig-bundle": "<5.4", + "symfony/yaml": "<5.4" }, "provide": { - "symfony/translation-implementation": "2.3" + "symfony/translation-implementation": "2.3|3.0" }, "require-dev": { + "nikic/php-parser": "^4.13", "psr/log": "^1|^2|^3", - "symfony/config": "^4.4|^5.0|^6.0", + "symfony/config": "^5.4|^6.0", "symfony/console": "^5.4|^6.0", - "symfony/dependency-injection": "^5.0|^6.0", - "symfony/finder": "^4.4|^5.0|^6.0", - "symfony/http-client-contracts": "^1.1|^2.0|^3.0", - "symfony/http-kernel": "^5.0|^6.0", - "symfony/intl": "^4.4|^5.0|^6.0", + "symfony/dependency-injection": "^5.4|^6.0", + "symfony/finder": "^5.4|^6.0", + "symfony/http-client-contracts": "^2.5|^3.0", + "symfony/http-kernel": "^5.4|^6.0", + "symfony/intl": "^5.4|^6.0", "symfony/polyfill-intl-icu": "^1.21", - "symfony/service-contracts": "^1.1.2|^2|^3", - "symfony/yaml": "^4.4|^5.0|^6.0" - }, - "suggest": { - "psr/log-implementation": "To use logging capability in translator", - "symfony/config": "", - "symfony/yaml": "" + "symfony/routing": "^5.4|^6.0", + "symfony/service-contracts": "^2.5|^3", + "symfony/yaml": "^5.4|^6.0" }, "type": "library", "autoload": { @@ -4841,7 +7576,7 @@ "description": "Provides tools to internationalize your application", "homepage": "https://symfony.com", "support": { - "source": "https://github.com/symfony/translation/tree/v5.4.11" + "source": "https://github.com/symfony/translation/tree/v6.3.7" }, "funding": [ { @@ -4857,32 +7592,29 @@ "type": "tidelift" } ], - "time": "2022-07-20T13:00:38+00:00" + "time": "2023-10-28T23:11:45+00:00" }, { "name": "symfony/translation-contracts", - "version": "v2.5.2", + "version": "v3.4.0", "source": { "type": "git", "url": "https://github.com/symfony/translation-contracts.git", - "reference": "136b19dd05cdf0709db6537d058bcab6dd6e2dbe" + "reference": "dee0c6e5b4c07ce851b462530088e64b255ac9c5" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/translation-contracts/zipball/136b19dd05cdf0709db6537d058bcab6dd6e2dbe", - "reference": "136b19dd05cdf0709db6537d058bcab6dd6e2dbe", + "url": "https://api.github.com/repos/symfony/translation-contracts/zipball/dee0c6e5b4c07ce851b462530088e64b255ac9c5", + "reference": "dee0c6e5b4c07ce851b462530088e64b255ac9c5", "shasum": "" }, "require": { - "php": ">=7.2.5" - }, - "suggest": { - "symfony/translation-implementation": "" + "php": ">=8.1" }, "type": "library", "extra": { "branch-alias": { - "dev-main": "2.5-dev" + "dev-main": "3.4-dev" }, "thanks": { "name": "symfony/contracts", @@ -4892,7 +7624,10 @@ "autoload": { "psr-4": { "Symfony\\Contracts\\Translation\\": "" - } + }, + "exclude-from-classmap": [ + "/Test/" + ] }, "notification-url": "https://packagist.org/downloads/", "license": [ @@ -4919,7 +7654,7 @@ "standards" ], "support": { - "source": "https://github.com/symfony/translation-contracts/tree/v2.5.2" + "source": "https://github.com/symfony/translation-contracts/tree/v3.4.0" }, "funding": [ { @@ -4935,43 +7670,112 @@ "type": "tidelift" } ], - "time": "2022-06-27T16:58:25+00:00" + "time": "2023-07-25T15:08:44+00:00" }, { - "name": "symfony/var-dumper", - "version": "v5.4.11", + "name": "symfony/uid", + "version": "v6.3.8", "source": { "type": "git", - "url": "https://github.com/symfony/var-dumper.git", - "reference": "b8f306d7b8ef34fb3db3305be97ba8e088fb4861" + "url": "https://github.com/symfony/uid.git", + "reference": "819fa5ac210fb7ddda4752b91a82f50be7493dd9" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/var-dumper/zipball/b8f306d7b8ef34fb3db3305be97ba8e088fb4861", - "reference": "b8f306d7b8ef34fb3db3305be97ba8e088fb4861", + "url": "https://api.github.com/repos/symfony/uid/zipball/819fa5ac210fb7ddda4752b91a82f50be7493dd9", + "reference": "819fa5ac210fb7ddda4752b91a82f50be7493dd9", "shasum": "" }, "require": { - "php": ">=7.2.5", - "symfony/polyfill-mbstring": "~1.0", - "symfony/polyfill-php80": "^1.16" + "php": ">=8.1", + "symfony/polyfill-uuid": "^1.15" + }, + "require-dev": { + "symfony/console": "^5.4|^6.0" + }, + "type": "library", + "autoload": { + "psr-4": { + "Symfony\\Component\\Uid\\": "" + }, + "exclude-from-classmap": [ + "/Tests/" + ] + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Grégoire Pineau", + "email": "lyrixx@lyrixx.info" + }, + { + "name": "Nicolas Grekas", + "email": "p@tchwork.com" + }, + { + "name": "Symfony Community", + "homepage": "https://symfony.com/contributors" + } + ], + "description": "Provides an object-oriented API to generate and represent UIDs", + "homepage": "https://symfony.com", + "keywords": [ + "UID", + "ulid", + "uuid" + ], + "support": { + "source": "https://github.com/symfony/uid/tree/v6.3.8" + }, + "funding": [ + { + "url": "https://symfony.com/sponsor", + "type": "custom" + }, + { + "url": "https://github.com/fabpot", + "type": "github" + }, + { + "url": "https://tidelift.com/funding/github/packagist/symfony/symfony", + "type": "tidelift" + } + ], + "time": "2023-10-31T08:07:48+00:00" + }, + { + "name": "symfony/var-dumper", + "version": "v6.3.8", + "source": { + "type": "git", + "url": "https://github.com/symfony/var-dumper.git", + "reference": "81acabba9046550e89634876ca64bfcd3c06aa0a" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/symfony/var-dumper/zipball/81acabba9046550e89634876ca64bfcd3c06aa0a", + "reference": "81acabba9046550e89634876ca64bfcd3c06aa0a", + "shasum": "" + }, + "require": { + "php": ">=8.1", + "symfony/deprecation-contracts": "^2.5|^3", + "symfony/polyfill-mbstring": "~1.0" }, "conflict": { - "phpunit/phpunit": "<5.4.3", - "symfony/console": "<4.4" + "symfony/console": "<5.4" }, "require-dev": { "ext-iconv": "*", - "symfony/console": "^4.4|^5.0|^6.0", - "symfony/process": "^4.4|^5.0|^6.0", - "symfony/uid": "^5.1|^6.0", + "symfony/console": "^5.4|^6.0", + "symfony/http-kernel": "^5.4|^6.0", + "symfony/process": "^5.4|^6.0", + "symfony/uid": "^5.4|^6.0", "twig/twig": "^2.13|^3.0.4" }, - "suggest": { - "ext-iconv": "To convert non-UTF-8 strings to UTF-8 (or symfony/polyfill-iconv in case ext-iconv cannot be used).", - "ext-intl": "To show region name in time zone dump", - "symfony/console": "To use the ServerDumpCommand and/or the bin/var-dump-server script" - }, "bin": [ "Resources/bin/var-dump-server" ], @@ -5008,7 +7812,7 @@ "dump" ], "support": { - "source": "https://github.com/symfony/var-dumper/tree/v5.4.11" + "source": "https://github.com/symfony/var-dumper/tree/v6.3.8" }, "funding": [ { @@ -5024,20 +7828,20 @@ "type": "tidelift" } ], - "time": "2022-07-20T13:00:38+00:00" + "time": "2023-11-08T10:42:36+00:00" }, { "name": "tijsverkoyen/css-to-inline-styles", - "version": "2.2.4", + "version": "2.2.6", "source": { "type": "git", "url": "https://github.com/tijsverkoyen/CssToInlineStyles.git", - "reference": "da444caae6aca7a19c0c140f68c6182e337d5b1c" + "reference": "c42125b83a4fa63b187fdf29f9c93cb7733da30c" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/tijsverkoyen/CssToInlineStyles/zipball/da444caae6aca7a19c0c140f68c6182e337d5b1c", - "reference": "da444caae6aca7a19c0c140f68c6182e337d5b1c", + "url": "https://api.github.com/repos/tijsverkoyen/CssToInlineStyles/zipball/c42125b83a4fa63b187fdf29f9c93cb7733da30c", + "reference": "c42125b83a4fa63b187fdf29f9c93cb7733da30c", "shasum": "" }, "require": { @@ -5075,45 +7879,49 @@ "homepage": "https://github.com/tijsverkoyen/CssToInlineStyles", "support": { "issues": "https://github.com/tijsverkoyen/CssToInlineStyles/issues", - "source": "https://github.com/tijsverkoyen/CssToInlineStyles/tree/2.2.4" + "source": "https://github.com/tijsverkoyen/CssToInlineStyles/tree/2.2.6" }, - "time": "2021-12-08T09:12:39+00:00" + "time": "2023-01-03T09:29:04+00:00" }, { "name": "vlucas/phpdotenv", - "version": "v5.4.1", + "version": "v5.6.0", "source": { "type": "git", "url": "https://github.com/vlucas/phpdotenv.git", - "reference": "264dce589e7ce37a7ba99cb901eed8249fbec92f" + "reference": "2cf9fb6054c2bb1d59d1f3817706ecdb9d2934c4" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/vlucas/phpdotenv/zipball/264dce589e7ce37a7ba99cb901eed8249fbec92f", - "reference": "264dce589e7ce37a7ba99cb901eed8249fbec92f", + "url": "https://api.github.com/repos/vlucas/phpdotenv/zipball/2cf9fb6054c2bb1d59d1f3817706ecdb9d2934c4", + "reference": "2cf9fb6054c2bb1d59d1f3817706ecdb9d2934c4", "shasum": "" }, "require": { "ext-pcre": "*", - "graham-campbell/result-type": "^1.0.2", - "php": "^7.1.3 || ^8.0", - "phpoption/phpoption": "^1.8", - "symfony/polyfill-ctype": "^1.23", - "symfony/polyfill-mbstring": "^1.23.1", - "symfony/polyfill-php80": "^1.23.1" + "graham-campbell/result-type": "^1.1.2", + "php": "^7.2.5 || ^8.0", + "phpoption/phpoption": "^1.9.2", + "symfony/polyfill-ctype": "^1.24", + "symfony/polyfill-mbstring": "^1.24", + "symfony/polyfill-php80": "^1.24" }, "require-dev": { - "bamarni/composer-bin-plugin": "^1.4.1", + "bamarni/composer-bin-plugin": "^1.8.2", "ext-filter": "*", - "phpunit/phpunit": "^7.5.20 || ^8.5.21 || ^9.5.10" + "phpunit/phpunit": "^8.5.34 || ^9.6.13 || ^10.4.2" }, "suggest": { "ext-filter": "Required to use the boolean validator." }, "type": "library", "extra": { + "bamarni-bin": { + "bin-links": true, + "forward-command": true + }, "branch-alias": { - "dev-master": "5.4-dev" + "dev-master": "5.6-dev" } }, "autoload": { @@ -5145,7 +7953,7 @@ ], "support": { "issues": "https://github.com/vlucas/phpdotenv/issues", - "source": "https://github.com/vlucas/phpdotenv/tree/v5.4.1" + "source": "https://github.com/vlucas/phpdotenv/tree/v5.6.0" }, "funding": [ { @@ -5157,20 +7965,20 @@ "type": "tidelift" } ], - "time": "2021-12-12T23:22:04+00:00" + "time": "2023-11-12T22:43:29+00:00" }, { "name": "voku/portable-ascii", - "version": "1.6.1", + "version": "2.0.1", "source": { "type": "git", "url": "https://github.com/voku/portable-ascii.git", - "reference": "87337c91b9dfacee02452244ee14ab3c43bc485a" + "reference": "b56450eed252f6801410d810c8e1727224ae0743" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/voku/portable-ascii/zipball/87337c91b9dfacee02452244ee14ab3c43bc485a", - "reference": "87337c91b9dfacee02452244ee14ab3c43bc485a", + "url": "https://api.github.com/repos/voku/portable-ascii/zipball/b56450eed252f6801410d810c8e1727224ae0743", + "reference": "b56450eed252f6801410d810c8e1727224ae0743", "shasum": "" }, "require": { @@ -5207,7 +8015,7 @@ ], "support": { "issues": "https://github.com/voku/portable-ascii/issues", - "source": "https://github.com/voku/portable-ascii/tree/1.6.1" + "source": "https://github.com/voku/portable-ascii/tree/2.0.1" }, "funding": [ { @@ -5231,7 +8039,7 @@ "type": "tidelift" } ], - "time": "2022-01-24T18:55:24+00:00" + "time": "2022-03-08T17:03:00+00:00" }, { "name": "webmozart/assert", @@ -5294,36 +8102,166 @@ ], "packages-dev": [ { - "name": "dealerdirect/phpcodesniffer-composer-installer", - "version": "v0.7.2", + "name": "archtechx/enums", + "version": "v0.3.2", "source": { "type": "git", - "url": "https://github.com/Dealerdirect/phpcodesniffer-composer-installer.git", - "reference": "1c968e542d8843d7cd71de3c5c9c3ff3ad71a1db" + "url": "https://github.com/archtechx/enums.git", + "reference": "475f45e682b0771253707f9403b704759a08da5f" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/Dealerdirect/phpcodesniffer-composer-installer/zipball/1c968e542d8843d7cd71de3c5c9c3ff3ad71a1db", - "reference": "1c968e542d8843d7cd71de3c5c9c3ff3ad71a1db", + "url": "https://api.github.com/repos/archtechx/enums/zipball/475f45e682b0771253707f9403b704759a08da5f", + "reference": "475f45e682b0771253707f9403b704759a08da5f", + "shasum": "" + }, + "require": { + "php": "^8.1" + }, + "require-dev": { + "nunomaduro/larastan": "^1.0|^2.4", + "orchestra/testbench": "^6.9|^7.0|^8.0", + "pestphp/pest": "^1.2|^2.0", + "pestphp/pest-plugin-laravel": "^1.0|^2.0" + }, + "type": "library", + "autoload": { + "psr-4": { + "ArchTech\\Enums\\": "src/" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Samuel Štancl", + "email": "samuel@archte.ch" + } + ], + "description": "Helpers for making PHP enums more lovable.", + "support": { + "issues": "https://github.com/archtechx/enums/issues", + "source": "https://github.com/archtechx/enums/tree/v0.3.2" + }, + "time": "2023-02-15T13:05:41+00:00" + }, + { + "name": "composer/semver", + "version": "3.4.0", + "source": { + "type": "git", + "url": "https://github.com/composer/semver.git", + "reference": "35e8d0af4486141bc745f23a29cc2091eb624a32" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/composer/semver/zipball/35e8d0af4486141bc745f23a29cc2091eb624a32", + "reference": "35e8d0af4486141bc745f23a29cc2091eb624a32", + "shasum": "" + }, + "require": { + "php": "^5.3.2 || ^7.0 || ^8.0" + }, + "require-dev": { + "phpstan/phpstan": "^1.4", + "symfony/phpunit-bridge": "^4.2 || ^5" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-main": "3.x-dev" + } + }, + "autoload": { + "psr-4": { + "Composer\\Semver\\": "src" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Nils Adermann", + "email": "naderman@naderman.de", + "homepage": "http://www.naderman.de" + }, + { + "name": "Jordi Boggiano", + "email": "j.boggiano@seld.be", + "homepage": "http://seld.be" + }, + { + "name": "Rob Bast", + "email": "rob.bast@gmail.com", + "homepage": "http://robbast.nl" + } + ], + "description": "Semver library that offers utilities, version constraint parsing and validation.", + "keywords": [ + "semantic", + "semver", + "validation", + "versioning" + ], + "support": { + "irc": "ircs://irc.libera.chat:6697/composer", + "issues": "https://github.com/composer/semver/issues", + "source": "https://github.com/composer/semver/tree/3.4.0" + }, + "funding": [ + { + "url": "https://packagist.com", + "type": "custom" + }, + { + "url": "https://github.com/composer", + "type": "github" + }, + { + "url": "https://tidelift.com/funding/github/packagist/composer/composer", + "type": "tidelift" + } + ], + "time": "2023-08-31T09:50:34+00:00" + }, + { + "name": "dealerdirect/phpcodesniffer-composer-installer", + "version": "v1.0.0", + "source": { + "type": "git", + "url": "https://github.com/PHPCSStandards/composer-installer.git", + "reference": "4be43904336affa5c2f70744a348312336afd0da" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/PHPCSStandards/composer-installer/zipball/4be43904336affa5c2f70744a348312336afd0da", + "reference": "4be43904336affa5c2f70744a348312336afd0da", "shasum": "" }, "require": { "composer-plugin-api": "^1.0 || ^2.0", - "php": ">=5.3", + "php": ">=5.4", "squizlabs/php_codesniffer": "^2.0 || ^3.1.0 || ^4.0" }, "require-dev": { "composer/composer": "*", + "ext-json": "*", + "ext-zip": "*", "php-parallel-lint/php-parallel-lint": "^1.3.1", - "phpcompatibility/php-compatibility": "^9.0" + "phpcompatibility/php-compatibility": "^9.0", + "yoast/phpunit-polyfills": "^1.0" }, "type": "composer-plugin", "extra": { - "class": "Dealerdirect\\Composer\\Plugin\\Installers\\PHPCodeSniffer\\Plugin" + "class": "PHPCSStandards\\Composer\\Plugin\\Installers\\PHPCodeSniffer\\Plugin" }, "autoload": { "psr-4": { - "Dealerdirect\\Composer\\Plugin\\Installers\\PHPCodeSniffer\\": "src/" + "PHPCSStandards\\Composer\\Plugin\\Installers\\PHPCodeSniffer\\": "src/" } }, "notification-url": "https://packagist.org/downloads/", @@ -5339,7 +8277,7 @@ }, { "name": "Contributors", - "homepage": "https://github.com/Dealerdirect/phpcodesniffer-composer-installer/graphs/contributors" + "homepage": "https://github.com/PHPCSStandards/composer-installer/graphs/contributors" } ], "description": "PHP_CodeSniffer Standards Composer Installer Plugin", @@ -5363,10 +8301,10 @@ "tests" ], "support": { - "issues": "https://github.com/dealerdirect/phpcodesniffer-composer-installer/issues", - "source": "https://github.com/dealerdirect/phpcodesniffer-composer-installer" + "issues": "https://github.com/PHPCSStandards/composer-installer/issues", + "source": "https://github.com/PHPCSStandards/composer-installer" }, - "time": "2022-02-04T12:51:07+00:00" + "time": "2023-01-05T11:28:13+00:00" }, { "name": "doctrine/cache", @@ -5463,35 +8401,40 @@ }, { "name": "doctrine/dbal", - "version": "2.13.9", + "version": "3.7.2", "source": { "type": "git", "url": "https://github.com/doctrine/dbal.git", - "reference": "c480849ca3ad6706a39c970cdfe6888fa8a058b8" + "reference": "0ac3c270590e54910715e9a1a044cc368df282b2" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/doctrine/dbal/zipball/c480849ca3ad6706a39c970cdfe6888fa8a058b8", - "reference": "c480849ca3ad6706a39c970cdfe6888fa8a058b8", + "url": "https://api.github.com/repos/doctrine/dbal/zipball/0ac3c270590e54910715e9a1a044cc368df282b2", + "reference": "0ac3c270590e54910715e9a1a044cc368df282b2", "shasum": "" }, "require": { - "doctrine/cache": "^1.0|^2.0", + "composer-runtime-api": "^2", + "doctrine/cache": "^1.11|^2.0", "doctrine/deprecations": "^0.5.3|^1", - "doctrine/event-manager": "^1.0", - "ext-pdo": "*", - "php": "^7.1 || ^8" + "doctrine/event-manager": "^1|^2", + "php": "^7.4 || ^8.0", + "psr/cache": "^1|^2|^3", + "psr/log": "^1|^2|^3" }, "require-dev": { - "doctrine/coding-standard": "9.0.0", - "jetbrains/phpstorm-stubs": "2021.1", - "phpstan/phpstan": "1.4.6", - "phpunit/phpunit": "^7.5.20|^8.5|9.5.16", - "psalm/plugin-phpunit": "0.16.1", - "squizlabs/php_codesniffer": "3.6.2", - "symfony/cache": "^4.4", - "symfony/console": "^2.0.5|^3.0|^4.0|^5.0", - "vimeo/psalm": "4.22.0" + "doctrine/coding-standard": "12.0.0", + "fig/log-test": "^1", + "jetbrains/phpstorm-stubs": "2023.1", + "phpstan/phpstan": "1.10.42", + "phpstan/phpstan-strict-rules": "^1.5", + "phpunit/phpunit": "9.6.13", + "psalm/plugin-phpunit": "0.18.4", + "slevomat/coding-standard": "8.13.1", + "squizlabs/php_codesniffer": "3.7.2", + "symfony/cache": "^5.4|^6.0", + "symfony/console": "^4.4|^5.4|^6.0", + "vimeo/psalm": "4.30.0" }, "suggest": { "symfony/console": "For helpful console commands such as SQL execution and import of files." @@ -5502,7 +8445,7 @@ "type": "library", "autoload": { "psr-4": { - "Doctrine\\DBAL\\": "lib/Doctrine/DBAL" + "Doctrine\\DBAL\\": "src" } }, "notification-url": "https://packagist.org/downloads/", @@ -5545,14 +8488,13 @@ "queryobject", "sasql", "sql", - "sqlanywhere", "sqlite", "sqlserver", "sqlsrv" ], "support": { "issues": "https://github.com/doctrine/dbal/issues", - "source": "https://github.com/doctrine/dbal/tree/2.13.9" + "source": "https://github.com/doctrine/dbal/tree/3.7.2" }, "funding": [ { @@ -5568,29 +8510,33 @@ "type": "tidelift" } ], - "time": "2022-05-02T20:28:55+00:00" + "time": "2023-11-19T08:06:58+00:00" }, { "name": "doctrine/deprecations", - "version": "v1.0.0", + "version": "1.1.2", "source": { "type": "git", "url": "https://github.com/doctrine/deprecations.git", - "reference": "0e2a4f1f8cdfc7a92ec3b01c9334898c806b30de" + "reference": "4f2d4f2836e7ec4e7a8625e75c6aa916004db931" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/doctrine/deprecations/zipball/0e2a4f1f8cdfc7a92ec3b01c9334898c806b30de", - "reference": "0e2a4f1f8cdfc7a92ec3b01c9334898c806b30de", + "url": "https://api.github.com/repos/doctrine/deprecations/zipball/4f2d4f2836e7ec4e7a8625e75c6aa916004db931", + "reference": "4f2d4f2836e7ec4e7a8625e75c6aa916004db931", "shasum": "" }, "require": { - "php": "^7.1|^8.0" + "php": "^7.1 || ^8.0" }, "require-dev": { "doctrine/coding-standard": "^9", - "phpunit/phpunit": "^7.5|^8.5|^9.5", - "psr/log": "^1|^2|^3" + "phpstan/phpstan": "1.4.10 || 1.10.15", + "phpstan/phpstan-phpunit": "^1.0", + "phpunit/phpunit": "^7.5 || ^8.5 || ^9.5", + "psalm/plugin-phpunit": "0.18.4", + "psr/log": "^1 || ^2 || ^3", + "vimeo/psalm": "4.30.0 || 5.12.0" }, "suggest": { "psr/log": "Allows logging deprecations via PSR-3 logger implementation" @@ -5609,40 +8555,40 @@ "homepage": "https://www.doctrine-project.org/", "support": { "issues": "https://github.com/doctrine/deprecations/issues", - "source": "https://github.com/doctrine/deprecations/tree/v1.0.0" + "source": "https://github.com/doctrine/deprecations/tree/1.1.2" }, - "time": "2022-05-02T15:47:09+00:00" + "time": "2023-09-27T20:04:15+00:00" }, { "name": "doctrine/event-manager", - "version": "1.1.2", + "version": "2.0.0", "source": { "type": "git", "url": "https://github.com/doctrine/event-manager.git", - "reference": "eb2ecf80e3093e8f3c2769ac838e27d8ede8e683" + "reference": "750671534e0241a7c50ea5b43f67e23eb5c96f32" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/doctrine/event-manager/zipball/eb2ecf80e3093e8f3c2769ac838e27d8ede8e683", - "reference": "eb2ecf80e3093e8f3c2769ac838e27d8ede8e683", + "url": "https://api.github.com/repos/doctrine/event-manager/zipball/750671534e0241a7c50ea5b43f67e23eb5c96f32", + "reference": "750671534e0241a7c50ea5b43f67e23eb5c96f32", "shasum": "" }, "require": { - "php": "^7.1 || ^8.0" + "php": "^8.1" }, "conflict": { "doctrine/common": "<2.9" }, "require-dev": { - "doctrine/coding-standard": "^9", - "phpstan/phpstan": "~1.4.10 || ^1.5.4", - "phpunit/phpunit": "^7.5 || ^8.5 || ^9.5", - "vimeo/psalm": "^4.22" + "doctrine/coding-standard": "^10", + "phpstan/phpstan": "^1.8.8", + "phpunit/phpunit": "^9.5", + "vimeo/psalm": "^4.28" }, "type": "library", "autoload": { "psr-4": { - "Doctrine\\Common\\": "lib/Doctrine/Common" + "Doctrine\\Common\\": "src" } }, "notification-url": "https://packagist.org/downloads/", @@ -5686,7 +8632,7 @@ ], "support": { "issues": "https://github.com/doctrine/event-manager/issues", - "source": "https://github.com/doctrine/event-manager/tree/1.1.2" + "source": "https://github.com/doctrine/event-manager/tree/2.0.0" }, "funding": [ { @@ -5702,39 +8648,39 @@ "type": "tidelift" } ], - "time": "2022-07-27T22:18:11+00:00" + "time": "2022-10-12T20:59:15+00:00" }, { - "name": "doctrine/instantiator", - "version": "1.4.1", + "name": "dragon-code/contracts", + "version": "v2.21.0", "source": { "type": "git", - "url": "https://github.com/doctrine/instantiator.git", - "reference": "10dcfce151b967d20fde1b34ae6640712c3891bc" + "url": "https://github.com/TheDragonCode/contracts.git", + "reference": "c69d7183a4ec35892ca208b2863d3ccad9465d7b" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/doctrine/instantiator/zipball/10dcfce151b967d20fde1b34ae6640712c3891bc", - "reference": "10dcfce151b967d20fde1b34ae6640712c3891bc", + "url": "https://api.github.com/repos/TheDragonCode/contracts/zipball/c69d7183a4ec35892ca208b2863d3ccad9465d7b", + "reference": "c69d7183a4ec35892ca208b2863d3ccad9465d7b", "shasum": "" }, "require": { - "php": "^7.1 || ^8.0" + "php": "^7.2.5 || ^8.0", + "psr/http-message": "^1.0.1 || ^2.0", + "symfony/http-kernel": "^4.0 || ^5.0 || ^6.0", + "symfony/polyfill-php80": "^1.23" + }, + "conflict": { + "andrey-helldar/contracts": "*" }, "require-dev": { - "doctrine/coding-standard": "^9", - "ext-pdo": "*", - "ext-phar": "*", - "phpbench/phpbench": "^0.16 || ^1", - "phpstan/phpstan": "^1.4", - "phpstan/phpstan-phpunit": "^1", - "phpunit/phpunit": "^7.5 || ^8.5 || ^9.5", - "vimeo/psalm": "^4.22" + "illuminate/database": "^10.0", + "phpdocumentor/reflection-docblock": "^5.0" }, "type": "library", "autoload": { "psr-4": { - "Doctrine\\Instantiator\\": "src/Doctrine/Instantiator/" + "DragonCode\\Contracts\\": "src" } }, "notification-url": "https://packagist.org/downloads/", @@ -5743,206 +8689,172 @@ ], "authors": [ { - "name": "Marco Pivetta", - "email": "ocramius@gmail.com", - "homepage": "https://ocramius.github.io/" + "name": "Andrey Helldar", + "email": "helldar@dragon-code.pro", + "homepage": "https://github.com/andrey-helldar" } ], - "description": "A small, lightweight utility to instantiate objects in PHP without invoking their constructors", - "homepage": "https://www.doctrine-project.org/projects/instantiator.html", + "description": "A set of contracts for any project", "keywords": [ - "constructor", - "instantiate" + "contracts", + "interfaces" ], "support": { - "issues": "https://github.com/doctrine/instantiator/issues", - "source": "https://github.com/doctrine/instantiator/tree/1.4.1" + "source": "https://github.com/TheDragonCode/contracts" }, "funding": [ { - "url": "https://www.doctrine-project.org/sponsorship.html", - "type": "custom" + "url": "https://boosty.to/dragon-code", + "type": "boosty" }, { - "url": "https://www.patreon.com/phpdoctrine", - "type": "patreon" + "url": "https://www.donationalerts.com/r/dragon_code", + "type": "donationalerts" }, { - "url": "https://tidelift.com/funding/github/packagist/doctrine%2Finstantiator", - "type": "tidelift" + "url": "https://github.com/sponsors/TheDragonCode", + "type": "github" + }, + { + "url": "https://opencollective.com/dragon-code", + "type": "open_collective" + }, + { + "url": "https://yoomoney.ru/to/410012608840929", + "type": "yoomoney" } ], - "time": "2022-03-03T08:28:38+00:00" + "time": "2023-11-14T20:01:25+00:00" }, { - "name": "facade/flare-client-php", - "version": "1.10.0", + "name": "dragon-code/pretty-array", + "version": "v4.1.0", "source": { "type": "git", - "url": "https://github.com/facade/flare-client-php.git", - "reference": "213fa2c69e120bca4c51ba3e82ed1834ef3f41b8" + "url": "https://github.com/TheDragonCode/pretty-array.git", + "reference": "6c84e2454491b414efbd37985c322712cdf9012f" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/facade/flare-client-php/zipball/213fa2c69e120bca4c51ba3e82ed1834ef3f41b8", - "reference": "213fa2c69e120bca4c51ba3e82ed1834ef3f41b8", + "url": "https://api.github.com/repos/TheDragonCode/pretty-array/zipball/6c84e2454491b414efbd37985c322712cdf9012f", + "reference": "6c84e2454491b414efbd37985c322712cdf9012f", "shasum": "" }, "require": { - "facade/ignition-contracts": "~1.0", - "illuminate/pipeline": "^5.5|^6.0|^7.0|^8.0", - "php": "^7.1|^8.0", - "symfony/http-foundation": "^3.3|^4.1|^5.0", - "symfony/mime": "^3.4|^4.0|^5.1", - "symfony/var-dumper": "^3.4|^4.0|^5.0" + "dragon-code/contracts": "^2.20", + "dragon-code/support": "^6.11.2", + "ext-dom": "*", + "ext-mbstring": "*", + "php": "^8.0" }, "require-dev": { - "friendsofphp/php-cs-fixer": "^2.14", - "phpunit/phpunit": "^7.5", - "spatie/phpunit-snapshot-assertions": "^2.0" + "phpunit/phpunit": "^9.6 || ^10.2" + }, + "suggest": { + "symfony/thanks": "Give thanks (in the form of a GitHub) to your fellow PHP package maintainers" }, "type": "library", - "extra": { - "branch-alias": { - "dev-master": "1.0-dev" - } - }, "autoload": { - "files": [ - "src/helpers.php" - ], "psr-4": { - "Facade\\FlareClient\\": "src" + "DragonCode\\PrettyArray\\": "src" } }, "notification-url": "https://packagist.org/downloads/", "license": [ "MIT" ], - "description": "Send PHP errors to Flare", - "homepage": "https://github.com/facade/flare-client-php", + "authors": [ + { + "name": "Andrey Helldar", + "email": "helldar@dragon-code.pro", + "homepage": "https://github.com/andrey-helldar" + } + ], + "description": "Simple conversion of an array to a pretty view", "keywords": [ - "exception", - "facade", - "flare", - "reporting" + "andrey helldar", + "array", + "dragon", + "dragon code", + "pretty", + "pretty array" ], "support": { - "issues": "https://github.com/facade/flare-client-php/issues", - "source": "https://github.com/facade/flare-client-php/tree/1.10.0" + "issues": "https://github.com/TheDragonCode/pretty-array/issues", + "source": "https://github.com/TheDragonCode/pretty-array" }, "funding": [ { - "url": "https://github.com/spatie", + "url": "https://boosty.to/dragon-code", + "type": "boosty" + }, + { + "url": "https://github.com/sponsors/TheDragonCode", "type": "github" + }, + { + "url": "https://opencollective.com/dragon-code", + "type": "open_collective" + }, + { + "url": "https://yoomoney.ru/to/410012608840929", + "type": "yoomoney" } ], - "time": "2022-08-09T11:23:57+00:00" + "time": "2023-06-02T11:37:44+00:00" }, { - "name": "facade/ignition", - "version": "2.17.6", + "name": "dragon-code/support", + "version": "v6.11.3", "source": { "type": "git", - "url": "https://github.com/facade/ignition.git", - "reference": "6acd82e986a2ecee89e2e68adfc30a1936d1ab7c" + "url": "https://github.com/TheDragonCode/support.git", + "reference": "3dbf1715e83e216ae1fea31eecc022829dc864df" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/facade/ignition/zipball/6acd82e986a2ecee89e2e68adfc30a1936d1ab7c", - "reference": "6acd82e986a2ecee89e2e68adfc30a1936d1ab7c", + "url": "https://api.github.com/repos/TheDragonCode/support/zipball/3dbf1715e83e216ae1fea31eecc022829dc864df", + "reference": "3dbf1715e83e216ae1fea31eecc022829dc864df", "shasum": "" }, "require": { - "ext-curl": "*", + "dragon-code/contracts": "^2.19.1", + "ext-bcmath": "*", + "ext-ctype": "*", + "ext-dom": "*", "ext-json": "*", "ext-mbstring": "*", - "facade/flare-client-php": "^1.9.1", - "facade/ignition-contracts": "^1.0.2", - "illuminate/support": "^7.0|^8.0", - "monolog/monolog": "^2.0", - "php": "^7.2.5|^8.0", - "symfony/console": "^5.0", - "symfony/var-dumper": "^5.0" + "php": "^8.0", + "psr/http-message": "^1.0.1 || ^2.0", + "symfony/polyfill-php81": "^1.25", + "voku/portable-ascii": "^1.4.8 || ^2.0.1" + }, + "conflict": { + "andrey-helldar/support": "*" }, "require-dev": { - "friendsofphp/php-cs-fixer": "^2.14", - "livewire/livewire": "^2.4", - "mockery/mockery": "^1.3", - "orchestra/testbench": "^5.0|^6.0", - "psalm/plugin-laravel": "^1.2" + "illuminate/contracts": "^9.0 || ^10.0", + "phpunit/phpunit": "^9.6", + "symfony/var-dumper": "^6.0" }, "suggest": { - "laravel/telescope": "^3.1" + "dragon-code/laravel-support": "Various helper files for the Laravel and Lumen frameworks", + "symfony/thanks": "Give thanks (in the form of a GitHub) to your fellow PHP package maintainers" }, "type": "library", "extra": { - "branch-alias": { - "dev-master": "2.x-dev" - }, - "laravel": { - "providers": [ - "Facade\\Ignition\\IgnitionServiceProvider" - ], - "aliases": { - "Flare": "Facade\\Ignition\\Facades\\Flare" + "dragon-code": { + "docs-generator": { + "preview": { + "brand": "php", + "vendor": "The Dragon Code" + } } } }, "autoload": { - "files": [ - "src/helpers.php" - ], "psr-4": { - "Facade\\Ignition\\": "src" - } - }, - "notification-url": "https://packagist.org/downloads/", - "license": [ - "MIT" - ], - "description": "A beautiful error page for Laravel applications.", - "homepage": "https://github.com/facade/ignition", - "keywords": [ - "error", - "flare", - "laravel", - "page" - ], - "support": { - "docs": "https://flareapp.io/docs/ignition-for-laravel/introduction", - "forum": "https://twitter.com/flareappio", - "issues": "https://github.com/facade/ignition/issues", - "source": "https://github.com/facade/ignition" - }, - "time": "2022-06-30T18:26:59+00:00" - }, - { - "name": "facade/ignition-contracts", - "version": "1.0.2", - "source": { - "type": "git", - "url": "https://github.com/facade/ignition-contracts.git", - "reference": "3c921a1cdba35b68a7f0ccffc6dffc1995b18267" - }, - "dist": { - "type": "zip", - "url": "https://api.github.com/repos/facade/ignition-contracts/zipball/3c921a1cdba35b68a7f0ccffc6dffc1995b18267", - "reference": "3c921a1cdba35b68a7f0ccffc6dffc1995b18267", - "shasum": "" - }, - "require": { - "php": "^7.3|^8.0" - }, - "require-dev": { - "friendsofphp/php-cs-fixer": "^v2.15.8", - "phpunit/phpunit": "^9.3.11", - "vimeo/psalm": "^3.17.1" - }, - "type": "library", - "autoload": { - "psr-4": { - "Facade\\IgnitionContracts\\": "src" + "DragonCode\\Support\\": "src" } }, "notification-url": "https://packagist.org/downloads/", @@ -5951,37 +8863,133 @@ ], "authors": [ { - "name": "Freek Van der Herten", - "email": "freek@spatie.be", - "homepage": "https://flareapp.io", - "role": "Developer" + "name": "Andrey Helldar", + "email": "helldar@dragon-code.pro", + "homepage": "https://github.com/andrey-helldar" } ], - "description": "Solution contracts for Ignition", - "homepage": "https://github.com/facade/ignition-contracts", + "description": "Support package is a collection of helpers and tools for any project.", "keywords": [ - "contracts", - "flare", - "ignition" + "dragon", + "dragon-code", + "framework", + "helper", + "helpers", + "laravel", + "php", + "support", + "symfony", + "yii", + "yii2" ], "support": { - "issues": "https://github.com/facade/ignition-contracts/issues", - "source": "https://github.com/facade/ignition-contracts/tree/1.0.2" + "issues": "https://github.com/TheDragonCode/support/issues", + "source": "https://github.com/TheDragonCode/support" }, - "time": "2020-10-16T08:27:54+00:00" + "funding": [ + { + "url": "https://boosty.to/dragon-code", + "type": "boosty" + }, + { + "url": "https://www.donationalerts.com/r/dragon_code", + "type": "donationalerts" + }, + { + "url": "https://github.com/sponsors/TheDragonCode", + "type": "github" + }, + { + "url": "https://opencollective.com/dragon-code", + "type": "open_collective" + }, + { + "url": "https://yoomoney.ru/to/410012608840929", + "type": "yoomoney" + } + ], + "time": "2023-08-03T09:43:52+00:00" }, { - "name": "filp/whoops", - "version": "2.14.5", + "name": "fakerphp/faker", + "version": "v1.23.0", "source": { "type": "git", - "url": "https://github.com/filp/whoops.git", - "reference": "a63e5e8f26ebbebf8ed3c5c691637325512eb0dc" + "url": "https://github.com/FakerPHP/Faker.git", + "reference": "e3daa170d00fde61ea7719ef47bb09bb8f1d9b01" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/filp/whoops/zipball/a63e5e8f26ebbebf8ed3c5c691637325512eb0dc", - "reference": "a63e5e8f26ebbebf8ed3c5c691637325512eb0dc", + "url": "https://api.github.com/repos/FakerPHP/Faker/zipball/e3daa170d00fde61ea7719ef47bb09bb8f1d9b01", + "reference": "e3daa170d00fde61ea7719ef47bb09bb8f1d9b01", + "shasum": "" + }, + "require": { + "php": "^7.4 || ^8.0", + "psr/container": "^1.0 || ^2.0", + "symfony/deprecation-contracts": "^2.2 || ^3.0" + }, + "conflict": { + "fzaninotto/faker": "*" + }, + "require-dev": { + "bamarni/composer-bin-plugin": "^1.4.1", + "doctrine/persistence": "^1.3 || ^2.0", + "ext-intl": "*", + "phpunit/phpunit": "^9.5.26", + "symfony/phpunit-bridge": "^5.4.16" + }, + "suggest": { + "doctrine/orm": "Required to use Faker\\ORM\\Doctrine", + "ext-curl": "Required by Faker\\Provider\\Image to download images.", + "ext-dom": "Required by Faker\\Provider\\HtmlLorem for generating random HTML.", + "ext-iconv": "Required by Faker\\Provider\\ru_RU\\Text::realText() for generating real Russian text.", + "ext-mbstring": "Required for multibyte Unicode string functionality." + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-main": "v1.21-dev" + } + }, + "autoload": { + "psr-4": { + "Faker\\": "src/Faker/" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "François Zaninotto" + } + ], + "description": "Faker is a PHP library that generates fake data for you.", + "keywords": [ + "data", + "faker", + "fixtures" + ], + "support": { + "issues": "https://github.com/FakerPHP/Faker/issues", + "source": "https://github.com/FakerPHP/Faker/tree/v1.23.0" + }, + "time": "2023-06-12T08:44:38+00:00" + }, + { + "name": "filp/whoops", + "version": "2.15.4", + "source": { + "type": "git", + "url": "https://github.com/filp/whoops.git", + "reference": "a139776fa3f5985a50b509f2a02ff0f709d2a546" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/filp/whoops/zipball/a139776fa3f5985a50b509f2a02ff0f709d2a546", + "reference": "a139776fa3f5985a50b509f2a02ff0f709d2a546", "shasum": "" }, "require": { @@ -6031,7 +9039,7 @@ ], "support": { "issues": "https://github.com/filp/whoops/issues", - "source": "https://github.com/filp/whoops/tree/2.14.5" + "source": "https://github.com/filp/whoops/tree/2.15.4" }, "funding": [ { @@ -6039,62 +9047,7 @@ "type": "github" } ], - "time": "2022-01-07T12:00:00+00:00" - }, - { - "name": "fzaninotto/faker", - "version": "v1.9.2", - "source": { - "type": "git", - "url": "https://github.com/fzaninotto/Faker.git", - "reference": "848d8125239d7dbf8ab25cb7f054f1a630e68c2e" - }, - "dist": { - "type": "zip", - "url": "https://api.github.com/repos/fzaninotto/Faker/zipball/848d8125239d7dbf8ab25cb7f054f1a630e68c2e", - "reference": "848d8125239d7dbf8ab25cb7f054f1a630e68c2e", - "shasum": "" - }, - "require": { - "php": "^5.3.3 || ^7.0" - }, - "require-dev": { - "ext-intl": "*", - "phpunit/phpunit": "^4.8.35 || ^5.7", - "squizlabs/php_codesniffer": "^2.9.2" - }, - "type": "library", - "extra": { - "branch-alias": { - "dev-master": "1.9-dev" - } - }, - "autoload": { - "psr-4": { - "Faker\\": "src/Faker/" - } - }, - "notification-url": "https://packagist.org/downloads/", - "license": [ - "MIT" - ], - "authors": [ - { - "name": "François Zaninotto" - } - ], - "description": "Faker is a PHP library that generates fake data for you.", - "keywords": [ - "data", - "faker", - "fixtures" - ], - "support": { - "issues": "https://github.com/fzaninotto/Faker/issues", - "source": "https://github.com/fzaninotto/Faker/tree/v1.9.2" - }, - "abandoned": true, - "time": "2020-12-11T09:56:16+00:00" + "time": "2023-11-03T12:00:00+00:00" }, { "name": "hamcrest/hamcrest-php", @@ -6148,39 +9101,857 @@ "time": "2020-07-09T08:09:16+00:00" }, { - "name": "mockery/mockery", - "version": "1.5.0", + "name": "kitloong/laravel-migrations-generator", + "version": "v6.11.0", "source": { "type": "git", - "url": "https://github.com/mockery/mockery.git", - "reference": "c10a5f6e06fc2470ab1822fa13fa2a7380f8fbac" + "url": "https://github.com/kitloong/laravel-migrations-generator.git", + "reference": "220b5f17fcb16610a3e9757d68c197319c0f7444" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/mockery/mockery/zipball/c10a5f6e06fc2470ab1822fa13fa2a7380f8fbac", - "reference": "c10a5f6e06fc2470ab1822fa13fa2a7380f8fbac", + "url": "https://api.github.com/repos/kitloong/laravel-migrations-generator/zipball/220b5f17fcb16610a3e9757d68c197319c0f7444", + "reference": "220b5f17fcb16610a3e9757d68c197319c0f7444", + "shasum": "" + }, + "require": { + "doctrine/dbal": "^2.4|^3.0", + "ext-pdo": "*", + "illuminate/support": "^5.6|^6.0|^7.0|^8.0|^9.0|^10.0", + "myclabs/php-enum": "^1.6|^1.7|^1.8", + "php": ">=7.1.3" + }, + "require-dev": { + "barryvdh/laravel-ide-helper": "^2.5", + "friendsofphp/php-cs-fixer": "^2.19.0|^3.1", + "mockery/mockery": "^1.0", + "nunomaduro/larastan": "^0.4|^0.5|^0.6|^0.7|^1.0|^2.0", + "orchestra/testbench": "^3.6|^4.0|^5.0|^6.0|^7.0|^8.0", + "phpmd/phpmd": "^2.10", + "slevomat/coding-standard": "^6.0|^7.0|^8.5", + "squizlabs/php_codesniffer": "^3.5" + }, + "type": "library", + "extra": { + "laravel": { + "providers": [ + "KitLoong\\MigrationsGenerator\\MigrationsGeneratorServiceProvider" + ] + } + }, + "autoload": { + "psr-4": { + "KitLoong\\MigrationsGenerator\\": "src" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Kit Loong", + "email": "kitloong1008@gmail.com" + } + ], + "description": "Generates Laravel Migrations from an existing database", + "keywords": [ + "artisan", + "generator", + "laravel", + "lumen", + "migration", + "migrations" + ], + "support": { + "issues": "https://github.com/kitloong/laravel-migrations-generator/issues", + "source": "https://github.com/kitloong/laravel-migrations-generator/tree/v6.11.0" + }, + "funding": [ + { + "url": "https://www.buymeacoffee.com/kitloong", + "type": "custom" + } + ], + "time": "2023-10-10T13:55:26+00:00" + }, + { + "name": "krlove/code-generator", + "version": "1.0.1", + "source": { + "type": "git", + "url": "https://github.com/krlove/code-generator.git", + "reference": "1ac521f5ef79a376282e3315ba6a13a83c63fb9a" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/krlove/code-generator/zipball/1ac521f5ef79a376282e3315ba6a13a83c63fb9a", + "reference": "1ac521f5ef79a376282e3315ba6a13a83c63fb9a", + "shasum": "" + }, + "type": "library", + "autoload": { + "psr-4": { + "Krlove\\CodeGenerator\\": "src/" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "description": "Code Generator", + "support": { + "issues": "https://github.com/krlove/code-generator/issues", + "source": "https://github.com/krlove/code-generator/tree/1.0.1" + }, + "time": "2022-02-20T12:24:22+00:00" + }, + { + "name": "krlove/eloquent-model-generator", + "version": "dev-l10-compatibility", + "source": { + "type": "git", + "url": "https://github.com/laravel-shift/eloquent-model-generator.git", + "reference": "d8f0280de04d85cf2991e5a5dd317f5dea239d95" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/laravel-shift/eloquent-model-generator/zipball/d8f0280de04d85cf2991e5a5dd317f5dea239d95", + "reference": "d8f0280de04d85cf2991e5a5dd317f5dea239d95", + "shasum": "" + }, + "require": { + "doctrine/dbal": "^3.5", + "illuminate/config": "^10.0", + "illuminate/console": "^10.0", + "illuminate/database": "^10.0", + "illuminate/support": "^10.0", + "krlove/code-generator": "^1.0", + "php": "^8.1" + }, + "require-dev": { + "phpunit/phpunit": "^9.5.10" + }, + "type": "library", + "extra": { + "laravel": { + "providers": [ + "Krlove\\EloquentModelGenerator\\Provider\\GeneratorServiceProvider" + ] + } + }, + "autoload": { + "psr-4": { + "Krlove\\EloquentModelGenerator\\": "src/" + } + }, + "autoload-dev": { + "psr-4": { + "Krlove\\Tests\\Integration\\": "tests/integration" + } + }, + "license": [ + "MIT" + ], + "description": "Eloquent Model Generator", + "support": { + "source": "https://github.com/laravel-shift/eloquent-model-generator/tree/l10-compatibility" + }, + "time": "2023-01-30T20:15:06+00:00" + }, + { + "name": "laravel-lang/attributes", + "version": "2.5.1", + "source": { + "type": "git", + "url": "https://github.com/Laravel-Lang/attributes.git", + "reference": "d98d19ce3e6a7a98bb837a3ad7e32fa8db9eda81" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/Laravel-Lang/attributes/zipball/d98d19ce3e6a7a98bb837a3ad7e32fa8db9eda81", + "reference": "d98d19ce3e6a7a98bb837a3ad7e32fa8db9eda81", + "shasum": "" + }, + "require": { + "ext-json": "*", + "laravel-lang/publisher": "^14.0 || ^15.0", + "php": "^8.1" + }, + "require-dev": { + "laravel-lang/status-generator": "^1.19 || ^2.0", + "phpunit/phpunit": "^10.0", + "symfony/var-dumper": "^6.0" + }, + "type": "library", + "extra": { + "laravel": { + "providers": [ + "LaravelLang\\Attributes\\ServiceProvider" + ] + } + }, + "autoload": { + "psr-4": { + "LaravelLang\\Attributes\\": "src/" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Andrey Helldar", + "email": "helldar@dragon-code.pro" + }, + { + "name": "Laravel-Lang Team", + "homepage": "https://github.com/Laravel-Lang" + } + ], + "description": "List of 78 languages for form field names", + "keywords": [ + "attributes", + "fields", + "form", + "lang", + "languages", + "laravel", + "messages", + "translations", + "validation" + ], + "support": { + "issues": "https://github.com/Laravel-Lang/attributes/issues", + "source": "https://github.com/Laravel-Lang/attributes/tree/2.5.1" + }, + "time": "2023-11-21T17:42:19+00:00" + }, + { + "name": "laravel-lang/common", + "version": "4.1.1", + "source": { + "type": "git", + "url": "https://github.com/Laravel-Lang/common.git", + "reference": "0da7d05913b66a7f9edd712016d737059c74ae00" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/Laravel-Lang/common/zipball/0da7d05913b66a7f9edd712016d737059c74ae00", + "reference": "0da7d05913b66a7f9edd712016d737059c74ae00", + "shasum": "" + }, + "require": { + "laravel-lang/attributes": "^2.4.1", + "laravel-lang/http-statuses": "^3.4.5", + "laravel-lang/lang": "^13.2.8", + "laravel-lang/locales": "^1.4", + "laravel-lang/publisher": "^14.7.1", + "php": "^8.1" + }, + "require-dev": { + "orchestra/testbench": "^8.14", + "phpunit/phpunit": "^10.4.2", + "symfony/var-dumper": "^6.3.6" + }, + "type": "library", + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Laravel-Lang Team", + "homepage": "https://github.com/Laravel-Lang" + }, + { + "name": "Andrey Helldar", + "email": "helldar@dragon-code.pro", + "homepage": "https://github.com/andrey-helldar" + } + ], + "description": "Easily connect the necessary language packs to the application", + "keywords": [ + "Laravel-lang", + "attribute", + "attributes", + "breeze", + "cashier", + "fortify", + "framework", + "http", + "http-status", + "http-status-code", + "i18n", + "jetstream", + "lang", + "language", + "languages", + "laravel", + "locale", + "locales", + "localization", + "localizations", + "nova", + "publisher", + "spark", + "translation", + "translations", + "ui" + ], + "support": { + "issues": "https://github.com/Laravel-Lang/common/issues", + "source": "https://github.com/Laravel-Lang/common" + }, + "funding": [ + { + "url": "https://opencollective.com/laravel-lang", + "type": "open_collective" + } + ], + "time": "2023-10-30T08:56:35+00:00" + }, + { + "name": "laravel-lang/http-statuses", + "version": "3.6.2", + "source": { + "type": "git", + "url": "https://github.com/Laravel-Lang/http-statuses.git", + "reference": "d7acdcba3bbf834a77b0d132f62817b16d762f1c" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/Laravel-Lang/http-statuses/zipball/d7acdcba3bbf834a77b0d132f62817b16d762f1c", + "reference": "d7acdcba3bbf834a77b0d132f62817b16d762f1c", + "shasum": "" + }, + "require": { + "ext-json": "*", + "laravel-lang/publisher": "^14.1 || ^15.0", + "php": "^8.1" + }, + "conflict": { + "laravel-lang/publisher": "<14.0" + }, + "require-dev": { + "laravel-lang/status-generator": "^1.19 || ^2.0", + "phpunit/phpunit": "^10.0", + "symfony/var-dumper": "^6.0" + }, + "type": "library", + "extra": { + "laravel": { + "providers": [ + "LaravelLang\\HttpStatuses\\ServiceProvider" + ] + } + }, + "autoload": { + "psr-4": { + "LaravelLang\\HttpStatuses\\": "src" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Andrey Helldar", + "email": "helldar@dragon-code.pro" + }, + { + "name": "Laravel-Lang Team", + "homepage": "https://github.com/Laravel-Lang" + } + ], + "description": "List of 78 languages for HTTP statuses", + "keywords": [ + "http", + "lang", + "languages", + "laravel", + "messages", + "status", + "translations" + ], + "support": { + "issues": "https://github.com/Laravel-Lang/http-statuses/issues", + "source": "https://github.com/Laravel-Lang/http-statuses/tree/3.6.2" + }, + "time": "2023-11-21T17:40:36+00:00" + }, + { + "name": "laravel-lang/lang", + "version": "13.9.1", + "source": { + "type": "git", + "url": "https://github.com/Laravel-Lang/lang.git", + "reference": "6775a42c3a208fb1f14a3f167e238ce49bf8cf97" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/Laravel-Lang/lang/zipball/6775a42c3a208fb1f14a3f167e238ce49bf8cf97", + "reference": "6775a42c3a208fb1f14a3f167e238ce49bf8cf97", + "shasum": "" + }, + "require": { + "ext-json": "*", + "laravel-lang/publisher": "^14.0 || ^15.0", + "php": "^8.1" + }, + "require-dev": { + "laravel-lang/status-generator": "^1.19 || ^2.0", + "phpunit/phpunit": "^10.0", + "symfony/var-dumper": "^6.0" + }, + "type": "library", + "extra": { + "laravel": { + "providers": [ + "LaravelLang\\Lang\\ServiceProvider" + ] + } + }, + "autoload": { + "psr-4": { + "LaravelLang\\Lang\\": "src/" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Laravel-Lang Team", + "homepage": "https://github.com/Laravel-Lang" + } + ], + "description": "List of 78 languages for Laravel Framework, Laravel Jetstream, Laravel Fortify, Laravel Breeze, Laravel Cashier, Laravel Nova, Laravel Spark and Laravel UI", + "keywords": [ + "lang", + "languages", + "laravel", + "lpm" + ], + "support": { + "issues": "https://github.com/Laravel-Lang/lang/issues", + "source": "https://github.com/Laravel-Lang/lang" + }, + "time": "2023-11-26T14:49:08+00:00" + }, + { + "name": "laravel-lang/locales", + "version": "1.9.0", + "source": { + "type": "git", + "url": "https://github.com/Laravel-Lang/locales.git", + "reference": "0935f76c51c17333cae57dc9a7bac289de7d3687" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/Laravel-Lang/locales/zipball/0935f76c51c17333cae57dc9a7bac289de7d3687", + "reference": "0935f76c51c17333cae57dc9a7bac289de7d3687", + "shasum": "" + }, + "require": { + "archtechx/enums": "^0.3.2", + "dragon-code/support": "^6.11.3", + "ext-json": "*", + "illuminate/collections": "^10.0", + "laravel-lang/native-locale-names": "^1.4.0", + "php": "^8.1" + }, + "require-dev": { + "orchestra/testbench": "^8.0", + "pestphp/pest": "^2.24.1", + "symfony/var-dumper": "^6.0" + }, + "type": "library", + "extra": { + "laravel": { + "providers": [ + "LaravelLang\\Locales\\ServiceProvider" + ] + } + }, + "autoload": { + "psr-4": { + "LaravelLang\\Locales\\": "src/" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Andrey Helldar", + "email": "helldar@dragon-code.pro" + }, + { + "name": "Laravel-Lang Team", + "homepage": "https://laravel-lang.com" + } + ], + "description": "Basic functionality for working with localizations", + "keywords": [ + "laravel", + "locale", + "locales", + "localization", + "translation", + "translations" + ], + "support": { + "issues": "https://github.com/Laravel-Lang/locales/issues", + "source": "https://github.com/Laravel-Lang/locales" + }, + "time": "2023-11-13T23:15:06+00:00" + }, + { + "name": "laravel-lang/native-locale-names", + "version": "1.4.0", + "source": { + "type": "git", + "url": "https://github.com/Laravel-Lang/native-locale-names.git", + "reference": "c7ed1ef404081303d32ab8523621e68cb88f4227" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/Laravel-Lang/native-locale-names/zipball/c7ed1ef404081303d32ab8523621e68cb88f4227", + "reference": "c7ed1ef404081303d32ab8523621e68cb88f4227", + "shasum": "" + }, + "require": { + "dragon-code/support": "^6.11", + "ext-json": "*", + "php": "^8.1" + }, + "require-dev": { + "guzzlehttp/guzzle": "^7.8", + "illuminate/support": "^10.31", + "laravel-lang/status-generator": "^2.3.1", + "pestphp/pest": "^2.24.3", + "punic/punic": "^3.8", + "symfony/console": "^6.3", + "symfony/process": "^6.3", + "symfony/var-dumper": "^6.3" + }, + "type": "library", + "autoload": { + "psr-4": { + "LaravelLang\\NativeLocaleNames\\": "src/" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Andrey Helldar", + "email": "helldar@dragon-code.pro" + }, + { + "name": "Laravel-Lang Team", + "homepage": "https://laravel-lang.com" + } + ], + "description": "The project contains native translations of locale names", + "keywords": [ + "Laravel-lang", + "lang", + "languages", + "laravel", + "locale", + "locales", + "localization", + "translation", + "translations" + ], + "support": { + "issues": "https://github.com/Laravel-Lang/native-locale-names/issues", + "source": "https://github.com/Laravel-Lang/native-locale-names" + }, + "time": "2023-11-11T09:58:35+00:00" + }, + { + "name": "laravel-lang/publisher", + "version": "14.7.1", + "source": { + "type": "git", + "url": "https://github.com/Laravel-Lang/publisher.git", + "reference": "946405e3d8c7105b0ae8cf8de34a3e6e98a70a84" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/Laravel-Lang/publisher/zipball/946405e3d8c7105b0ae8cf8de34a3e6e98a70a84", + "reference": "946405e3d8c7105b0ae8cf8de34a3e6e98a70a84", + "shasum": "" + }, + "require": { + "archtechx/enums": "^0.3", + "composer/semver": "^3.3", + "dragon-code/pretty-array": "^4.0", + "dragon-code/support": "^6.3", + "ext-json": "*", + "illuminate/console": "^8.79 || ^9.18 || ^10.0 || ^11.0", + "illuminate/support": "^8.79 || ^9.18 || ^10.0 || ^11.0", + "league/commonmark": "^2.3", + "league/config": "^1.2", + "php": "^8.1" + }, + "conflict": { + "laravel-lang/attributes": "<2.0", + "laravel-lang/http-statuses": "<3.0", + "laravel-lang/lang": "<11.0" + }, + "require-dev": { + "laravel-lang/json-fallback-hotfix": "^1.0", + "orchestra/testbench": "^6.25 || ^7.22 || ^8.0 || ^9.0", + "phpunit/phpunit": "^9.6 || ^10.0", + "symfony/var-dumper": "^5.0 || ^6.0" + }, + "suggest": { + "laravel-lang/attributes": "List of 78 languages for form field names", + "laravel-lang/http-statuses": "List of 78 languages for HTTP statuses", + "laravel-lang/lang": "List of 78 languages for Laravel Framework, Jetstream, Fortify, Breeze, Cashier, Nova, Spark and UI." + }, + "type": "library", + "extra": { + "laravel": { + "providers": [ + "LaravelLang\\Publisher\\ServiceProvider" + ] + } + }, + "autoload": { + "files": [ + "helper.php" + ], + "psr-4": { + "LaravelLang\\Publisher\\": "src" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Andrey Helldar", + "email": "helldar@dragon-code.pro" + }, + { + "name": "Laravel-Lang Team", + "homepage": "https://github.com/Laravel-Lang" + } + ], + "description": "Publisher lang files for the Laravel and Lumen Frameworks, Jetstream, Fortify, Cashier, Spark and Nova from Laravel-Lang/lang", + "keywords": [ + "breeze", + "cashier", + "fortify", + "framework", + "i18n", + "jetstream", + "lang", + "languages", + "laravel", + "locale", + "locales", + "localization", + "lpm", + "lumen", + "nova", + "publisher", + "spark", + "trans", + "translations", + "validations" + ], + "support": { + "issues": "https://github.com/Laravel-Lang/publisher/issues", + "source": "https://github.com/Laravel-Lang/publisher" + }, + "funding": [ + { + "url": "https://opencollective.com/laravel-lang", + "type": "open_collective" + } + ], + "time": "2023-10-29T21:03:27+00:00" + }, + { + "name": "laravel/pint", + "version": "v1.13.6", + "source": { + "type": "git", + "url": "https://github.com/laravel/pint.git", + "reference": "3e3d2ab01c7d8b484c18e6100ecf53639c744fa7" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/laravel/pint/zipball/3e3d2ab01c7d8b484c18e6100ecf53639c744fa7", + "reference": "3e3d2ab01c7d8b484c18e6100ecf53639c744fa7", + "shasum": "" + }, + "require": { + "ext-json": "*", + "ext-mbstring": "*", + "ext-tokenizer": "*", + "ext-xml": "*", + "php": "^8.1.0" + }, + "require-dev": { + "friendsofphp/php-cs-fixer": "^3.38.0", + "illuminate/view": "^10.30.1", + "laravel-zero/framework": "^10.3.0", + "mockery/mockery": "^1.6.6", + "nunomaduro/larastan": "^2.6.4", + "nunomaduro/termwind": "^1.15.1", + "pestphp/pest": "^2.24.2" + }, + "bin": [ + "builds/pint" + ], + "type": "project", + "autoload": { + "psr-4": { + "App\\": "app/", + "Database\\Seeders\\": "database/seeders/", + "Database\\Factories\\": "database/factories/" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Nuno Maduro", + "email": "enunomaduro@gmail.com" + } + ], + "description": "An opinionated code formatter for PHP.", + "homepage": "https://laravel.com", + "keywords": [ + "format", + "formatter", + "lint", + "linter", + "php" + ], + "support": { + "issues": "https://github.com/laravel/pint/issues", + "source": "https://github.com/laravel/pint" + }, + "time": "2023-11-07T17:59:57+00:00" + }, + { + "name": "laravel/sail", + "version": "v1.26.0", + "source": { + "type": "git", + "url": "https://github.com/laravel/sail.git", + "reference": "c60fe037004e272efd0d81f416ed2bfc623d70b4" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/laravel/sail/zipball/c60fe037004e272efd0d81f416ed2bfc623d70b4", + "reference": "c60fe037004e272efd0d81f416ed2bfc623d70b4", + "shasum": "" + }, + "require": { + "illuminate/console": "^9.0|^10.0|^11.0", + "illuminate/contracts": "^9.0|^10.0|^11.0", + "illuminate/support": "^9.0|^10.0|^11.0", + "php": "^8.0", + "symfony/yaml": "^6.0|^7.0" + }, + "require-dev": { + "orchestra/testbench": "^7.0|^8.0|^9.0", + "phpstan/phpstan": "^1.10" + }, + "bin": [ + "bin/sail" + ], + "type": "library", + "extra": { + "branch-alias": { + "dev-master": "1.x-dev" + }, + "laravel": { + "providers": [ + "Laravel\\Sail\\SailServiceProvider" + ] + } + }, + "autoload": { + "psr-4": { + "Laravel\\Sail\\": "src/" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Taylor Otwell", + "email": "taylor@laravel.com" + } + ], + "description": "Docker files for running a basic Laravel application.", + "keywords": [ + "docker", + "laravel" + ], + "support": { + "issues": "https://github.com/laravel/sail/issues", + "source": "https://github.com/laravel/sail" + }, + "time": "2023-10-18T13:57:15+00:00" + }, + { + "name": "mockery/mockery", + "version": "1.6.6", + "source": { + "type": "git", + "url": "https://github.com/mockery/mockery.git", + "reference": "b8e0bb7d8c604046539c1115994632c74dcb361e" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/mockery/mockery/zipball/b8e0bb7d8c604046539c1115994632c74dcb361e", + "reference": "b8e0bb7d8c604046539c1115994632c74dcb361e", "shasum": "" }, "require": { "hamcrest/hamcrest-php": "^2.0.1", "lib-pcre": ">=7.0", - "php": "^7.3 || ^8.0" + "php": ">=7.3" }, "conflict": { "phpunit/phpunit": "<8.0" }, "require-dev": { - "phpunit/phpunit": "^8.5 || ^9.3" + "phpunit/phpunit": "^8.5 || ^9.6.10", + "psalm/plugin-phpunit": "^0.18.4", + "symplify/easy-coding-standard": "^11.5.0", + "vimeo/psalm": "^4.30" }, "type": "library", - "extra": { - "branch-alias": { - "dev-master": "1.4.x-dev" - } - }, "autoload": { - "psr-0": { - "Mockery": "library/" + "files": [ + "library/helpers.php", + "library/Mockery.php" + ], + "psr-4": { + "Mockery\\": "library/Mockery" } }, "notification-url": "https://packagist.org/downloads/", @@ -6191,12 +9962,20 @@ { "name": "Pádraic Brady", "email": "padraic.brady@gmail.com", - "homepage": "http://blog.astrumfutura.com" + "homepage": "https://github.com/padraic", + "role": "Author" }, { "name": "Dave Marshall", "email": "dave.marshall@atstsolutions.co.uk", - "homepage": "http://davedevelopment.co.uk" + "homepage": "https://davedevelopment.co.uk", + "role": "Developer" + }, + { + "name": "Nathanael Esayeas", + "email": "nathanael.esayeas@protonmail.com", + "homepage": "https://github.com/ghostwriter", + "role": "Lead Developer" } ], "description": "Mockery is a simple yet flexible PHP mock object framework", @@ -6214,23 +9993,26 @@ "testing" ], "support": { + "docs": "https://docs.mockery.io/", "issues": "https://github.com/mockery/mockery/issues", - "source": "https://github.com/mockery/mockery/tree/1.5.0" + "rss": "https://github.com/mockery/mockery/releases.atom", + "security": "https://github.com/mockery/mockery/security/advisories", + "source": "https://github.com/mockery/mockery" }, - "time": "2022-01-20T13:18:17+00:00" + "time": "2023-08-09T00:03:52+00:00" }, { "name": "myclabs/deep-copy", - "version": "1.11.0", + "version": "1.11.1", "source": { "type": "git", "url": "https://github.com/myclabs/DeepCopy.git", - "reference": "14daed4296fae74d9e3201d2c4925d1acb7aa614" + "reference": "7284c22080590fb39f2ffa3e9057f10a4ddd0e0c" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/myclabs/DeepCopy/zipball/14daed4296fae74d9e3201d2c4925d1acb7aa614", - "reference": "14daed4296fae74d9e3201d2c4925d1acb7aa614", + "url": "https://api.github.com/repos/myclabs/DeepCopy/zipball/7284c22080590fb39f2ffa3e9057f10a4ddd0e0c", + "reference": "7284c22080590fb39f2ffa3e9057f10a4ddd0e0c", "shasum": "" }, "require": { @@ -6268,7 +10050,7 @@ ], "support": { "issues": "https://github.com/myclabs/DeepCopy/issues", - "source": "https://github.com/myclabs/DeepCopy/tree/1.11.0" + "source": "https://github.com/myclabs/DeepCopy/tree/1.11.1" }, "funding": [ { @@ -6276,38 +10058,107 @@ "type": "tidelift" } ], - "time": "2022-03-03T13:19:32+00:00" + "time": "2023-03-08T13:26:56+00:00" }, { - "name": "nunomaduro/collision", - "version": "v5.11.0", + "name": "myclabs/php-enum", + "version": "1.8.4", "source": { "type": "git", - "url": "https://github.com/nunomaduro/collision.git", - "reference": "8b610eef8582ccdc05d8f2ab23305e2d37049461" + "url": "https://github.com/myclabs/php-enum.git", + "reference": "a867478eae49c9f59ece437ae7f9506bfaa27483" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/nunomaduro/collision/zipball/8b610eef8582ccdc05d8f2ab23305e2d37049461", - "reference": "8b610eef8582ccdc05d8f2ab23305e2d37049461", + "url": "https://api.github.com/repos/myclabs/php-enum/zipball/a867478eae49c9f59ece437ae7f9506bfaa27483", + "reference": "a867478eae49c9f59ece437ae7f9506bfaa27483", "shasum": "" }, "require": { - "facade/ignition-contracts": "^1.0", - "filp/whoops": "^2.14.3", - "php": "^7.3 || ^8.0", - "symfony/console": "^5.0" + "ext-json": "*", + "php": "^7.3 || ^8.0" }, "require-dev": { - "brianium/paratest": "^6.1", - "fideloper/proxy": "^4.4.1", - "fruitcake/laravel-cors": "^2.0.3", - "laravel/framework": "8.x-dev", - "nunomaduro/larastan": "^0.6.2", - "nunomaduro/mock-final-classes": "^1.0", - "orchestra/testbench": "^6.0", - "phpstan/phpstan": "^0.12.64", - "phpunit/phpunit": "^9.5.0" + "phpunit/phpunit": "^9.5", + "squizlabs/php_codesniffer": "1.*", + "vimeo/psalm": "^4.6.2" + }, + "type": "library", + "autoload": { + "psr-4": { + "MyCLabs\\Enum\\": "src/" + }, + "classmap": [ + "stubs/Stringable.php" + ] + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "PHP Enum contributors", + "homepage": "https://github.com/myclabs/php-enum/graphs/contributors" + } + ], + "description": "PHP Enum implementation", + "homepage": "http://github.com/myclabs/php-enum", + "keywords": [ + "enum" + ], + "support": { + "issues": "https://github.com/myclabs/php-enum/issues", + "source": "https://github.com/myclabs/php-enum/tree/1.8.4" + }, + "funding": [ + { + "url": "https://github.com/mnapoli", + "type": "github" + }, + { + "url": "https://tidelift.com/funding/github/packagist/myclabs/php-enum", + "type": "tidelift" + } + ], + "time": "2022-08-04T09:53:51+00:00" + }, + { + "name": "nunomaduro/collision", + "version": "v7.10.0", + "source": { + "type": "git", + "url": "https://github.com/nunomaduro/collision.git", + "reference": "49ec67fa7b002712da8526678abd651c09f375b2" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/nunomaduro/collision/zipball/49ec67fa7b002712da8526678abd651c09f375b2", + "reference": "49ec67fa7b002712da8526678abd651c09f375b2", + "shasum": "" + }, + "require": { + "filp/whoops": "^2.15.3", + "nunomaduro/termwind": "^1.15.1", + "php": "^8.1.0", + "symfony/console": "^6.3.4" + }, + "conflict": { + "laravel/framework": ">=11.0.0" + }, + "require-dev": { + "brianium/paratest": "^7.3.0", + "laravel/framework": "^10.28.0", + "laravel/pint": "^1.13.3", + "laravel/sail": "^1.25.0", + "laravel/sanctum": "^3.3.1", + "laravel/tinker": "^2.8.2", + "nunomaduro/larastan": "^2.6.4", + "orchestra/testbench-core": "^8.13.0", + "pestphp/pest": "^2.23.2", + "phpunit/phpunit": "^10.4.1", + "sebastian/environment": "^6.0.1", + "spatie/laravel-ignition": "^2.3.1" }, "type": "library", "extra": { @@ -6318,6 +10169,9 @@ } }, "autoload": { + "files": [ + "./src/Adapters/Phpunit/Autoload.php" + ], "psr-4": { "NunoMaduro\\Collision\\": "src/" } @@ -6363,7 +10217,7 @@ "type": "patreon" } ], - "time": "2022-01-10T16:22:52+00:00" + "time": "2023-10-11T15:45:01+00:00" }, { "name": "phar-io/manifest", @@ -6476,251 +10330,26 @@ }, "time": "2022-02-21T01:04:05+00:00" }, - { - "name": "phpdocumentor/reflection-common", - "version": "2.2.0", - "source": { - "type": "git", - "url": "https://github.com/phpDocumentor/ReflectionCommon.git", - "reference": "1d01c49d4ed62f25aa84a747ad35d5a16924662b" - }, - "dist": { - "type": "zip", - "url": "https://api.github.com/repos/phpDocumentor/ReflectionCommon/zipball/1d01c49d4ed62f25aa84a747ad35d5a16924662b", - "reference": "1d01c49d4ed62f25aa84a747ad35d5a16924662b", - "shasum": "" - }, - "require": { - "php": "^7.2 || ^8.0" - }, - "type": "library", - "extra": { - "branch-alias": { - "dev-2.x": "2.x-dev" - } - }, - "autoload": { - "psr-4": { - "phpDocumentor\\Reflection\\": "src/" - } - }, - "notification-url": "https://packagist.org/downloads/", - "license": [ - "MIT" - ], - "authors": [ - { - "name": "Jaap van Otterdijk", - "email": "opensource@ijaap.nl" - } - ], - "description": "Common reflection classes used by phpdocumentor to reflect the code structure", - "homepage": "http://www.phpdoc.org", - "keywords": [ - "FQSEN", - "phpDocumentor", - "phpdoc", - "reflection", - "static analysis" - ], - "support": { - "issues": "https://github.com/phpDocumentor/ReflectionCommon/issues", - "source": "https://github.com/phpDocumentor/ReflectionCommon/tree/2.x" - }, - "time": "2020-06-27T09:03:43+00:00" - }, - { - "name": "phpdocumentor/reflection-docblock", - "version": "5.3.0", - "source": { - "type": "git", - "url": "https://github.com/phpDocumentor/ReflectionDocBlock.git", - "reference": "622548b623e81ca6d78b721c5e029f4ce664f170" - }, - "dist": { - "type": "zip", - "url": "https://api.github.com/repos/phpDocumentor/ReflectionDocBlock/zipball/622548b623e81ca6d78b721c5e029f4ce664f170", - "reference": "622548b623e81ca6d78b721c5e029f4ce664f170", - "shasum": "" - }, - "require": { - "ext-filter": "*", - "php": "^7.2 || ^8.0", - "phpdocumentor/reflection-common": "^2.2", - "phpdocumentor/type-resolver": "^1.3", - "webmozart/assert": "^1.9.1" - }, - "require-dev": { - "mockery/mockery": "~1.3.2", - "psalm/phar": "^4.8" - }, - "type": "library", - "extra": { - "branch-alias": { - "dev-master": "5.x-dev" - } - }, - "autoload": { - "psr-4": { - "phpDocumentor\\Reflection\\": "src" - } - }, - "notification-url": "https://packagist.org/downloads/", - "license": [ - "MIT" - ], - "authors": [ - { - "name": "Mike van Riel", - "email": "me@mikevanriel.com" - }, - { - "name": "Jaap van Otterdijk", - "email": "account@ijaap.nl" - } - ], - "description": "With this component, a library can provide support for annotations via DocBlocks or otherwise retrieve information that is embedded in a DocBlock.", - "support": { - "issues": "https://github.com/phpDocumentor/ReflectionDocBlock/issues", - "source": "https://github.com/phpDocumentor/ReflectionDocBlock/tree/5.3.0" - }, - "time": "2021-10-19T17:43:47+00:00" - }, - { - "name": "phpdocumentor/type-resolver", - "version": "1.6.1", - "source": { - "type": "git", - "url": "https://github.com/phpDocumentor/TypeResolver.git", - "reference": "77a32518733312af16a44300404e945338981de3" - }, - "dist": { - "type": "zip", - "url": "https://api.github.com/repos/phpDocumentor/TypeResolver/zipball/77a32518733312af16a44300404e945338981de3", - "reference": "77a32518733312af16a44300404e945338981de3", - "shasum": "" - }, - "require": { - "php": "^7.2 || ^8.0", - "phpdocumentor/reflection-common": "^2.0" - }, - "require-dev": { - "ext-tokenizer": "*", - "psalm/phar": "^4.8" - }, - "type": "library", - "extra": { - "branch-alias": { - "dev-1.x": "1.x-dev" - } - }, - "autoload": { - "psr-4": { - "phpDocumentor\\Reflection\\": "src" - } - }, - "notification-url": "https://packagist.org/downloads/", - "license": [ - "MIT" - ], - "authors": [ - { - "name": "Mike van Riel", - "email": "me@mikevanriel.com" - } - ], - "description": "A PSR-5 based resolver of Class names, Types and Structural Element Names", - "support": { - "issues": "https://github.com/phpDocumentor/TypeResolver/issues", - "source": "https://github.com/phpDocumentor/TypeResolver/tree/1.6.1" - }, - "time": "2022-03-15T21:29:03+00:00" - }, - { - "name": "phpspec/prophecy", - "version": "v1.15.0", - "source": { - "type": "git", - "url": "https://github.com/phpspec/prophecy.git", - "reference": "bbcd7380b0ebf3961ee21409db7b38bc31d69a13" - }, - "dist": { - "type": "zip", - "url": "https://api.github.com/repos/phpspec/prophecy/zipball/bbcd7380b0ebf3961ee21409db7b38bc31d69a13", - "reference": "bbcd7380b0ebf3961ee21409db7b38bc31d69a13", - "shasum": "" - }, - "require": { - "doctrine/instantiator": "^1.2", - "php": "^7.2 || ~8.0, <8.2", - "phpdocumentor/reflection-docblock": "^5.2", - "sebastian/comparator": "^3.0 || ^4.0", - "sebastian/recursion-context": "^3.0 || ^4.0" - }, - "require-dev": { - "phpspec/phpspec": "^6.0 || ^7.0", - "phpunit/phpunit": "^8.0 || ^9.0" - }, - "type": "library", - "extra": { - "branch-alias": { - "dev-master": "1.x-dev" - } - }, - "autoload": { - "psr-4": { - "Prophecy\\": "src/Prophecy" - } - }, - "notification-url": "https://packagist.org/downloads/", - "license": [ - "MIT" - ], - "authors": [ - { - "name": "Konstantin Kudryashov", - "email": "ever.zet@gmail.com", - "homepage": "http://everzet.com" - }, - { - "name": "Marcello Duarte", - "email": "marcello.duarte@gmail.com" - } - ], - "description": "Highly opinionated mocking framework for PHP 5.3+", - "homepage": "https://github.com/phpspec/prophecy", - "keywords": [ - "Double", - "Dummy", - "fake", - "mock", - "spy", - "stub" - ], - "support": { - "issues": "https://github.com/phpspec/prophecy/issues", - "source": "https://github.com/phpspec/prophecy/tree/v1.15.0" - }, - "time": "2021-12-08T12:19:24+00:00" - }, { "name": "phpstan/phpdoc-parser", - "version": "1.7.0", + "version": "1.24.3", "source": { "type": "git", "url": "https://github.com/phpstan/phpdoc-parser.git", - "reference": "367a8d9d5f7da2a0136422d27ce8840583926955" + "reference": "12f01d214f1c73b9c91fdb3b1c415e4c70652083" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/phpstan/phpdoc-parser/zipball/367a8d9d5f7da2a0136422d27ce8840583926955", - "reference": "367a8d9d5f7da2a0136422d27ce8840583926955", + "url": "https://api.github.com/repos/phpstan/phpdoc-parser/zipball/12f01d214f1c73b9c91fdb3b1c415e4c70652083", + "reference": "12f01d214f1c73b9c91fdb3b1c415e4c70652083", "shasum": "" }, "require": { "php": "^7.2 || ^8.0" }, "require-dev": { + "doctrine/annotations": "^2.0", + "nikic/php-parser": "^4.15", "php-parallel-lint/php-parallel-lint": "^1.2", "phpstan/extension-installer": "^1.0", "phpstan/phpstan": "^1.5", @@ -6744,50 +10373,50 @@ "description": "PHPDoc parser with support for nullable, intersection and generic types", "support": { "issues": "https://github.com/phpstan/phpdoc-parser/issues", - "source": "https://github.com/phpstan/phpdoc-parser/tree/1.7.0" + "source": "https://github.com/phpstan/phpdoc-parser/tree/1.24.3" }, - "time": "2022-08-09T12:23:23+00:00" + "time": "2023-11-18T20:15:32+00:00" }, { "name": "phpunit/php-code-coverage", - "version": "9.2.15", + "version": "10.1.8", "source": { "type": "git", "url": "https://github.com/sebastianbergmann/php-code-coverage.git", - "reference": "2e9da11878c4202f97915c1cb4bb1ca318a63f5f" + "reference": "84838eed9ded511f61dc3e8b5944a52d9017b297" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/sebastianbergmann/php-code-coverage/zipball/2e9da11878c4202f97915c1cb4bb1ca318a63f5f", - "reference": "2e9da11878c4202f97915c1cb4bb1ca318a63f5f", + "url": "https://api.github.com/repos/sebastianbergmann/php-code-coverage/zipball/84838eed9ded511f61dc3e8b5944a52d9017b297", + "reference": "84838eed9ded511f61dc3e8b5944a52d9017b297", "shasum": "" }, "require": { "ext-dom": "*", "ext-libxml": "*", "ext-xmlwriter": "*", - "nikic/php-parser": "^4.13.0", - "php": ">=7.3", - "phpunit/php-file-iterator": "^3.0.3", - "phpunit/php-text-template": "^2.0.2", - "sebastian/code-unit-reverse-lookup": "^2.0.2", - "sebastian/complexity": "^2.0", - "sebastian/environment": "^5.1.2", - "sebastian/lines-of-code": "^1.0.3", - "sebastian/version": "^3.0.1", + "nikic/php-parser": "^4.15", + "php": ">=8.1", + "phpunit/php-file-iterator": "^4.0", + "phpunit/php-text-template": "^3.0", + "sebastian/code-unit-reverse-lookup": "^3.0", + "sebastian/complexity": "^3.0", + "sebastian/environment": "^6.0", + "sebastian/lines-of-code": "^2.0", + "sebastian/version": "^4.0", "theseer/tokenizer": "^1.2.0" }, "require-dev": { - "phpunit/phpunit": "^9.3" + "phpunit/phpunit": "^10.1" }, "suggest": { - "ext-pcov": "*", - "ext-xdebug": "*" + "ext-pcov": "PHP extension that provides line coverage", + "ext-xdebug": "PHP extension that provides line coverage as well as branch and path coverage" }, "type": "library", "extra": { "branch-alias": { - "dev-master": "9.2-dev" + "dev-main": "10.1-dev" } }, "autoload": { @@ -6815,7 +10444,8 @@ ], "support": { "issues": "https://github.com/sebastianbergmann/php-code-coverage/issues", - "source": "https://github.com/sebastianbergmann/php-code-coverage/tree/9.2.15" + "security": "https://github.com/sebastianbergmann/php-code-coverage/security/policy", + "source": "https://github.com/sebastianbergmann/php-code-coverage/tree/10.1.8" }, "funding": [ { @@ -6823,32 +10453,32 @@ "type": "github" } ], - "time": "2022-03-07T09:28:20+00:00" + "time": "2023-11-15T13:31:15+00:00" }, { "name": "phpunit/php-file-iterator", - "version": "3.0.6", + "version": "4.1.0", "source": { "type": "git", "url": "https://github.com/sebastianbergmann/php-file-iterator.git", - "reference": "cf1c2e7c203ac650e352f4cc675a7021e7d1b3cf" + "reference": "a95037b6d9e608ba092da1b23931e537cadc3c3c" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/sebastianbergmann/php-file-iterator/zipball/cf1c2e7c203ac650e352f4cc675a7021e7d1b3cf", - "reference": "cf1c2e7c203ac650e352f4cc675a7021e7d1b3cf", + "url": "https://api.github.com/repos/sebastianbergmann/php-file-iterator/zipball/a95037b6d9e608ba092da1b23931e537cadc3c3c", + "reference": "a95037b6d9e608ba092da1b23931e537cadc3c3c", "shasum": "" }, "require": { - "php": ">=7.3" + "php": ">=8.1" }, "require-dev": { - "phpunit/phpunit": "^9.3" + "phpunit/phpunit": "^10.0" }, "type": "library", "extra": { "branch-alias": { - "dev-master": "3.0-dev" + "dev-main": "4.0-dev" } }, "autoload": { @@ -6875,7 +10505,8 @@ ], "support": { "issues": "https://github.com/sebastianbergmann/php-file-iterator/issues", - "source": "https://github.com/sebastianbergmann/php-file-iterator/tree/3.0.6" + "security": "https://github.com/sebastianbergmann/php-file-iterator/security/policy", + "source": "https://github.com/sebastianbergmann/php-file-iterator/tree/4.1.0" }, "funding": [ { @@ -6883,28 +10514,28 @@ "type": "github" } ], - "time": "2021-12-02T12:48:52+00:00" + "time": "2023-08-31T06:24:48+00:00" }, { "name": "phpunit/php-invoker", - "version": "3.1.1", + "version": "4.0.0", "source": { "type": "git", "url": "https://github.com/sebastianbergmann/php-invoker.git", - "reference": "5a10147d0aaf65b58940a0b72f71c9ac0423cc67" + "reference": "f5e568ba02fa5ba0ddd0f618391d5a9ea50b06d7" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/sebastianbergmann/php-invoker/zipball/5a10147d0aaf65b58940a0b72f71c9ac0423cc67", - "reference": "5a10147d0aaf65b58940a0b72f71c9ac0423cc67", + "url": "https://api.github.com/repos/sebastianbergmann/php-invoker/zipball/f5e568ba02fa5ba0ddd0f618391d5a9ea50b06d7", + "reference": "f5e568ba02fa5ba0ddd0f618391d5a9ea50b06d7", "shasum": "" }, "require": { - "php": ">=7.3" + "php": ">=8.1" }, "require-dev": { "ext-pcntl": "*", - "phpunit/phpunit": "^9.3" + "phpunit/phpunit": "^10.0" }, "suggest": { "ext-pcntl": "*" @@ -6912,7 +10543,7 @@ "type": "library", "extra": { "branch-alias": { - "dev-master": "3.1-dev" + "dev-main": "4.0-dev" } }, "autoload": { @@ -6938,7 +10569,7 @@ ], "support": { "issues": "https://github.com/sebastianbergmann/php-invoker/issues", - "source": "https://github.com/sebastianbergmann/php-invoker/tree/3.1.1" + "source": "https://github.com/sebastianbergmann/php-invoker/tree/4.0.0" }, "funding": [ { @@ -6946,32 +10577,32 @@ "type": "github" } ], - "time": "2020-09-28T05:58:55+00:00" + "time": "2023-02-03T06:56:09+00:00" }, { "name": "phpunit/php-text-template", - "version": "2.0.4", + "version": "3.0.1", "source": { "type": "git", "url": "https://github.com/sebastianbergmann/php-text-template.git", - "reference": "5da5f67fc95621df9ff4c4e5a84d6a8a2acf7c28" + "reference": "0c7b06ff49e3d5072f057eb1fa59258bf287a748" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/sebastianbergmann/php-text-template/zipball/5da5f67fc95621df9ff4c4e5a84d6a8a2acf7c28", - "reference": "5da5f67fc95621df9ff4c4e5a84d6a8a2acf7c28", + "url": "https://api.github.com/repos/sebastianbergmann/php-text-template/zipball/0c7b06ff49e3d5072f057eb1fa59258bf287a748", + "reference": "0c7b06ff49e3d5072f057eb1fa59258bf287a748", "shasum": "" }, "require": { - "php": ">=7.3" + "php": ">=8.1" }, "require-dev": { - "phpunit/phpunit": "^9.3" + "phpunit/phpunit": "^10.0" }, "type": "library", "extra": { "branch-alias": { - "dev-master": "2.0-dev" + "dev-main": "3.0-dev" } }, "autoload": { @@ -6997,7 +10628,8 @@ ], "support": { "issues": "https://github.com/sebastianbergmann/php-text-template/issues", - "source": "https://github.com/sebastianbergmann/php-text-template/tree/2.0.4" + "security": "https://github.com/sebastianbergmann/php-text-template/security/policy", + "source": "https://github.com/sebastianbergmann/php-text-template/tree/3.0.1" }, "funding": [ { @@ -7005,32 +10637,32 @@ "type": "github" } ], - "time": "2020-10-26T05:33:50+00:00" + "time": "2023-08-31T14:07:24+00:00" }, { "name": "phpunit/php-timer", - "version": "5.0.3", + "version": "6.0.0", "source": { "type": "git", "url": "https://github.com/sebastianbergmann/php-timer.git", - "reference": "5a63ce20ed1b5bf577850e2c4e87f4aa902afbd2" + "reference": "e2a2d67966e740530f4a3343fe2e030ffdc1161d" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/sebastianbergmann/php-timer/zipball/5a63ce20ed1b5bf577850e2c4e87f4aa902afbd2", - "reference": "5a63ce20ed1b5bf577850e2c4e87f4aa902afbd2", + "url": "https://api.github.com/repos/sebastianbergmann/php-timer/zipball/e2a2d67966e740530f4a3343fe2e030ffdc1161d", + "reference": "e2a2d67966e740530f4a3343fe2e030ffdc1161d", "shasum": "" }, "require": { - "php": ">=7.3" + "php": ">=8.1" }, "require-dev": { - "phpunit/phpunit": "^9.3" + "phpunit/phpunit": "^10.0" }, "type": "library", "extra": { "branch-alias": { - "dev-master": "5.0-dev" + "dev-main": "6.0-dev" } }, "autoload": { @@ -7056,7 +10688,7 @@ ], "support": { "issues": "https://github.com/sebastianbergmann/php-timer/issues", - "source": "https://github.com/sebastianbergmann/php-timer/tree/5.0.3" + "source": "https://github.com/sebastianbergmann/php-timer/tree/6.0.0" }, "funding": [ { @@ -7064,24 +10696,23 @@ "type": "github" } ], - "time": "2020-10-26T13:16:10+00:00" + "time": "2023-02-03T06:57:52+00:00" }, { "name": "phpunit/phpunit", - "version": "9.5.21", + "version": "10.4.2", "source": { "type": "git", "url": "https://github.com/sebastianbergmann/phpunit.git", - "reference": "0e32b76be457de00e83213528f6bb37e2a38fcb1" + "reference": "cacd8b9dd224efa8eb28beb69004126c7ca1a1a1" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/sebastianbergmann/phpunit/zipball/0e32b76be457de00e83213528f6bb37e2a38fcb1", - "reference": "0e32b76be457de00e83213528f6bb37e2a38fcb1", + "url": "https://api.github.com/repos/sebastianbergmann/phpunit/zipball/cacd8b9dd224efa8eb28beb69004126c7ca1a1a1", + "reference": "cacd8b9dd224efa8eb28beb69004126c7ca1a1a1", "shasum": "" }, "require": { - "doctrine/instantiator": "^1.3.1", "ext-dom": "*", "ext-json": "*", "ext-libxml": "*", @@ -7091,31 +10722,26 @@ "myclabs/deep-copy": "^1.10.1", "phar-io/manifest": "^2.0.3", "phar-io/version": "^3.0.2", - "php": ">=7.3", - "phpspec/prophecy": "^1.12.1", - "phpunit/php-code-coverage": "^9.2.13", - "phpunit/php-file-iterator": "^3.0.5", - "phpunit/php-invoker": "^3.1.1", - "phpunit/php-text-template": "^2.0.3", - "phpunit/php-timer": "^5.0.2", - "sebastian/cli-parser": "^1.0.1", - "sebastian/code-unit": "^1.0.6", - "sebastian/comparator": "^4.0.5", - "sebastian/diff": "^4.0.3", - "sebastian/environment": "^5.1.3", - "sebastian/exporter": "^4.0.3", - "sebastian/global-state": "^5.0.1", - "sebastian/object-enumerator": "^4.0.3", - "sebastian/resource-operations": "^3.0.3", - "sebastian/type": "^3.0", - "sebastian/version": "^3.0.2" - }, - "require-dev": { - "phpspec/prophecy-phpunit": "^2.0.1" + "php": ">=8.1", + "phpunit/php-code-coverage": "^10.1.5", + "phpunit/php-file-iterator": "^4.0", + "phpunit/php-invoker": "^4.0", + "phpunit/php-text-template": "^3.0", + "phpunit/php-timer": "^6.0", + "sebastian/cli-parser": "^2.0", + "sebastian/code-unit": "^2.0", + "sebastian/comparator": "^5.0", + "sebastian/diff": "^5.0", + "sebastian/environment": "^6.0", + "sebastian/exporter": "^5.1", + "sebastian/global-state": "^6.0.1", + "sebastian/object-enumerator": "^5.0", + "sebastian/recursion-context": "^5.0", + "sebastian/type": "^4.0", + "sebastian/version": "^4.0" }, "suggest": { - "ext-soap": "*", - "ext-xdebug": "*" + "ext-soap": "To be able to generate mocks based on WSDL files" }, "bin": [ "phpunit" @@ -7123,7 +10749,7 @@ "type": "library", "extra": { "branch-alias": { - "dev-master": "9.5-dev" + "dev-main": "10.4-dev" } }, "autoload": { @@ -7154,7 +10780,8 @@ ], "support": { "issues": "https://github.com/sebastianbergmann/phpunit/issues", - "source": "https://github.com/sebastianbergmann/phpunit/tree/9.5.21" + "security": "https://github.com/sebastianbergmann/phpunit/security/policy", + "source": "https://github.com/sebastianbergmann/phpunit/tree/10.4.2" }, "funding": [ { @@ -7164,34 +10791,87 @@ { "url": "https://github.com/sebastianbergmann", "type": "github" + }, + { + "url": "https://tidelift.com/funding/github/packagist/phpunit/phpunit", + "type": "tidelift" } ], - "time": "2022-06-19T12:14:25+00:00" + "time": "2023-10-26T07:21:45+00:00" }, { - "name": "sebastian/cli-parser", - "version": "1.0.1", + "name": "psr/cache", + "version": "3.0.0", "source": { "type": "git", - "url": "https://github.com/sebastianbergmann/cli-parser.git", - "reference": "442e7c7e687e42adc03470c7b668bc4b2402c0b2" + "url": "https://github.com/php-fig/cache.git", + "reference": "aa5030cfa5405eccfdcb1083ce040c2cb8d253bf" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/sebastianbergmann/cli-parser/zipball/442e7c7e687e42adc03470c7b668bc4b2402c0b2", - "reference": "442e7c7e687e42adc03470c7b668bc4b2402c0b2", + "url": "https://api.github.com/repos/php-fig/cache/zipball/aa5030cfa5405eccfdcb1083ce040c2cb8d253bf", + "reference": "aa5030cfa5405eccfdcb1083ce040c2cb8d253bf", "shasum": "" }, "require": { - "php": ">=7.3" - }, - "require-dev": { - "phpunit/phpunit": "^9.3" + "php": ">=8.0.0" }, "type": "library", "extra": { "branch-alias": { - "dev-master": "1.0-dev" + "dev-master": "1.0.x-dev" + } + }, + "autoload": { + "psr-4": { + "Psr\\Cache\\": "src/" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "PHP-FIG", + "homepage": "https://www.php-fig.org/" + } + ], + "description": "Common interface for caching libraries", + "keywords": [ + "cache", + "psr", + "psr-6" + ], + "support": { + "source": "https://github.com/php-fig/cache/tree/3.0.0" + }, + "time": "2021-02-03T23:26:27+00:00" + }, + { + "name": "sebastian/cli-parser", + "version": "2.0.0", + "source": { + "type": "git", + "url": "https://github.com/sebastianbergmann/cli-parser.git", + "reference": "efdc130dbbbb8ef0b545a994fd811725c5282cae" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/sebastianbergmann/cli-parser/zipball/efdc130dbbbb8ef0b545a994fd811725c5282cae", + "reference": "efdc130dbbbb8ef0b545a994fd811725c5282cae", + "shasum": "" + }, + "require": { + "php": ">=8.1" + }, + "require-dev": { + "phpunit/phpunit": "^10.0" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-main": "2.0-dev" } }, "autoload": { @@ -7214,7 +10894,7 @@ "homepage": "https://github.com/sebastianbergmann/cli-parser", "support": { "issues": "https://github.com/sebastianbergmann/cli-parser/issues", - "source": "https://github.com/sebastianbergmann/cli-parser/tree/1.0.1" + "source": "https://github.com/sebastianbergmann/cli-parser/tree/2.0.0" }, "funding": [ { @@ -7222,32 +10902,32 @@ "type": "github" } ], - "time": "2020-09-28T06:08:49+00:00" + "time": "2023-02-03T06:58:15+00:00" }, { "name": "sebastian/code-unit", - "version": "1.0.8", + "version": "2.0.0", "source": { "type": "git", "url": "https://github.com/sebastianbergmann/code-unit.git", - "reference": "1fc9f64c0927627ef78ba436c9b17d967e68e120" + "reference": "a81fee9eef0b7a76af11d121767abc44c104e503" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/sebastianbergmann/code-unit/zipball/1fc9f64c0927627ef78ba436c9b17d967e68e120", - "reference": "1fc9f64c0927627ef78ba436c9b17d967e68e120", + "url": "https://api.github.com/repos/sebastianbergmann/code-unit/zipball/a81fee9eef0b7a76af11d121767abc44c104e503", + "reference": "a81fee9eef0b7a76af11d121767abc44c104e503", "shasum": "" }, "require": { - "php": ">=7.3" + "php": ">=8.1" }, "require-dev": { - "phpunit/phpunit": "^9.3" + "phpunit/phpunit": "^10.0" }, "type": "library", "extra": { "branch-alias": { - "dev-master": "1.0-dev" + "dev-main": "2.0-dev" } }, "autoload": { @@ -7270,7 +10950,7 @@ "homepage": "https://github.com/sebastianbergmann/code-unit", "support": { "issues": "https://github.com/sebastianbergmann/code-unit/issues", - "source": "https://github.com/sebastianbergmann/code-unit/tree/1.0.8" + "source": "https://github.com/sebastianbergmann/code-unit/tree/2.0.0" }, "funding": [ { @@ -7278,32 +10958,32 @@ "type": "github" } ], - "time": "2020-10-26T13:08:54+00:00" + "time": "2023-02-03T06:58:43+00:00" }, { "name": "sebastian/code-unit-reverse-lookup", - "version": "2.0.3", + "version": "3.0.0", "source": { "type": "git", "url": "https://github.com/sebastianbergmann/code-unit-reverse-lookup.git", - "reference": "ac91f01ccec49fb77bdc6fd1e548bc70f7faa3e5" + "reference": "5e3a687f7d8ae33fb362c5c0743794bbb2420a1d" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/sebastianbergmann/code-unit-reverse-lookup/zipball/ac91f01ccec49fb77bdc6fd1e548bc70f7faa3e5", - "reference": "ac91f01ccec49fb77bdc6fd1e548bc70f7faa3e5", + "url": "https://api.github.com/repos/sebastianbergmann/code-unit-reverse-lookup/zipball/5e3a687f7d8ae33fb362c5c0743794bbb2420a1d", + "reference": "5e3a687f7d8ae33fb362c5c0743794bbb2420a1d", "shasum": "" }, "require": { - "php": ">=7.3" + "php": ">=8.1" }, "require-dev": { - "phpunit/phpunit": "^9.3" + "phpunit/phpunit": "^10.0" }, "type": "library", "extra": { "branch-alias": { - "dev-master": "2.0-dev" + "dev-main": "3.0-dev" } }, "autoload": { @@ -7325,7 +11005,7 @@ "homepage": "https://github.com/sebastianbergmann/code-unit-reverse-lookup/", "support": { "issues": "https://github.com/sebastianbergmann/code-unit-reverse-lookup/issues", - "source": "https://github.com/sebastianbergmann/code-unit-reverse-lookup/tree/2.0.3" + "source": "https://github.com/sebastianbergmann/code-unit-reverse-lookup/tree/3.0.0" }, "funding": [ { @@ -7333,34 +11013,36 @@ "type": "github" } ], - "time": "2020-09-28T05:30:19+00:00" + "time": "2023-02-03T06:59:15+00:00" }, { "name": "sebastian/comparator", - "version": "4.0.6", + "version": "5.0.1", "source": { "type": "git", "url": "https://github.com/sebastianbergmann/comparator.git", - "reference": "55f4261989e546dc112258c7a75935a81a7ce382" + "reference": "2db5010a484d53ebf536087a70b4a5423c102372" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/sebastianbergmann/comparator/zipball/55f4261989e546dc112258c7a75935a81a7ce382", - "reference": "55f4261989e546dc112258c7a75935a81a7ce382", + "url": "https://api.github.com/repos/sebastianbergmann/comparator/zipball/2db5010a484d53ebf536087a70b4a5423c102372", + "reference": "2db5010a484d53ebf536087a70b4a5423c102372", "shasum": "" }, "require": { - "php": ">=7.3", - "sebastian/diff": "^4.0", - "sebastian/exporter": "^4.0" + "ext-dom": "*", + "ext-mbstring": "*", + "php": ">=8.1", + "sebastian/diff": "^5.0", + "sebastian/exporter": "^5.0" }, "require-dev": { - "phpunit/phpunit": "^9.3" + "phpunit/phpunit": "^10.3" }, "type": "library", "extra": { "branch-alias": { - "dev-master": "4.0-dev" + "dev-main": "5.0-dev" } }, "autoload": { @@ -7399,7 +11081,8 @@ ], "support": { "issues": "https://github.com/sebastianbergmann/comparator/issues", - "source": "https://github.com/sebastianbergmann/comparator/tree/4.0.6" + "security": "https://github.com/sebastianbergmann/comparator/security/policy", + "source": "https://github.com/sebastianbergmann/comparator/tree/5.0.1" }, "funding": [ { @@ -7407,33 +11090,33 @@ "type": "github" } ], - "time": "2020-10-26T15:49:45+00:00" + "time": "2023-08-14T13:18:12+00:00" }, { "name": "sebastian/complexity", - "version": "2.0.2", + "version": "3.1.0", "source": { "type": "git", "url": "https://github.com/sebastianbergmann/complexity.git", - "reference": "739b35e53379900cc9ac327b2147867b8b6efd88" + "reference": "68cfb347a44871f01e33ab0ef8215966432f6957" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/sebastianbergmann/complexity/zipball/739b35e53379900cc9ac327b2147867b8b6efd88", - "reference": "739b35e53379900cc9ac327b2147867b8b6efd88", + "url": "https://api.github.com/repos/sebastianbergmann/complexity/zipball/68cfb347a44871f01e33ab0ef8215966432f6957", + "reference": "68cfb347a44871f01e33ab0ef8215966432f6957", "shasum": "" }, "require": { - "nikic/php-parser": "^4.7", - "php": ">=7.3" + "nikic/php-parser": "^4.10", + "php": ">=8.1" }, "require-dev": { - "phpunit/phpunit": "^9.3" + "phpunit/phpunit": "^10.0" }, "type": "library", "extra": { "branch-alias": { - "dev-master": "2.0-dev" + "dev-main": "3.1-dev" } }, "autoload": { @@ -7456,7 +11139,8 @@ "homepage": "https://github.com/sebastianbergmann/complexity", "support": { "issues": "https://github.com/sebastianbergmann/complexity/issues", - "source": "https://github.com/sebastianbergmann/complexity/tree/2.0.2" + "security": "https://github.com/sebastianbergmann/complexity/security/policy", + "source": "https://github.com/sebastianbergmann/complexity/tree/3.1.0" }, "funding": [ { @@ -7464,33 +11148,33 @@ "type": "github" } ], - "time": "2020-10-26T15:52:27+00:00" + "time": "2023-09-28T11:50:59+00:00" }, { "name": "sebastian/diff", - "version": "4.0.4", + "version": "5.0.3", "source": { "type": "git", "url": "https://github.com/sebastianbergmann/diff.git", - "reference": "3461e3fccc7cfdfc2720be910d3bd73c69be590d" + "reference": "912dc2fbe3e3c1e7873313cc801b100b6c68c87b" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/sebastianbergmann/diff/zipball/3461e3fccc7cfdfc2720be910d3bd73c69be590d", - "reference": "3461e3fccc7cfdfc2720be910d3bd73c69be590d", + "url": "https://api.github.com/repos/sebastianbergmann/diff/zipball/912dc2fbe3e3c1e7873313cc801b100b6c68c87b", + "reference": "912dc2fbe3e3c1e7873313cc801b100b6c68c87b", "shasum": "" }, "require": { - "php": ">=7.3" + "php": ">=8.1" }, "require-dev": { - "phpunit/phpunit": "^9.3", + "phpunit/phpunit": "^10.0", "symfony/process": "^4.2 || ^5" }, "type": "library", "extra": { "branch-alias": { - "dev-master": "4.0-dev" + "dev-main": "5.0-dev" } }, "autoload": { @@ -7522,7 +11206,8 @@ ], "support": { "issues": "https://github.com/sebastianbergmann/diff/issues", - "source": "https://github.com/sebastianbergmann/diff/tree/4.0.4" + "security": "https://github.com/sebastianbergmann/diff/security/policy", + "source": "https://github.com/sebastianbergmann/diff/tree/5.0.3" }, "funding": [ { @@ -7530,27 +11215,27 @@ "type": "github" } ], - "time": "2020-10-26T13:10:38+00:00" + "time": "2023-05-01T07:48:21+00:00" }, { "name": "sebastian/environment", - "version": "5.1.4", + "version": "6.0.1", "source": { "type": "git", "url": "https://github.com/sebastianbergmann/environment.git", - "reference": "1b5dff7bb151a4db11d49d90e5408e4e938270f7" + "reference": "43c751b41d74f96cbbd4e07b7aec9675651e2951" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/sebastianbergmann/environment/zipball/1b5dff7bb151a4db11d49d90e5408e4e938270f7", - "reference": "1b5dff7bb151a4db11d49d90e5408e4e938270f7", + "url": "https://api.github.com/repos/sebastianbergmann/environment/zipball/43c751b41d74f96cbbd4e07b7aec9675651e2951", + "reference": "43c751b41d74f96cbbd4e07b7aec9675651e2951", "shasum": "" }, "require": { - "php": ">=7.3" + "php": ">=8.1" }, "require-dev": { - "phpunit/phpunit": "^9.3" + "phpunit/phpunit": "^10.0" }, "suggest": { "ext-posix": "*" @@ -7558,7 +11243,7 @@ "type": "library", "extra": { "branch-alias": { - "dev-master": "5.1-dev" + "dev-main": "6.0-dev" } }, "autoload": { @@ -7577,7 +11262,7 @@ } ], "description": "Provides functionality to handle HHVM/PHP environments", - "homepage": "http://www.github.com/sebastianbergmann/environment", + "homepage": "https://github.com/sebastianbergmann/environment", "keywords": [ "Xdebug", "environment", @@ -7585,7 +11270,8 @@ ], "support": { "issues": "https://github.com/sebastianbergmann/environment/issues", - "source": "https://github.com/sebastianbergmann/environment/tree/5.1.4" + "security": "https://github.com/sebastianbergmann/environment/security/policy", + "source": "https://github.com/sebastianbergmann/environment/tree/6.0.1" }, "funding": [ { @@ -7593,34 +11279,34 @@ "type": "github" } ], - "time": "2022-04-03T09:37:03+00:00" + "time": "2023-04-11T05:39:26+00:00" }, { "name": "sebastian/exporter", - "version": "4.0.4", + "version": "5.1.1", "source": { "type": "git", "url": "https://github.com/sebastianbergmann/exporter.git", - "reference": "65e8b7db476c5dd267e65eea9cab77584d3cfff9" + "reference": "64f51654862e0f5e318db7e9dcc2292c63cdbddc" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/sebastianbergmann/exporter/zipball/65e8b7db476c5dd267e65eea9cab77584d3cfff9", - "reference": "65e8b7db476c5dd267e65eea9cab77584d3cfff9", + "url": "https://api.github.com/repos/sebastianbergmann/exporter/zipball/64f51654862e0f5e318db7e9dcc2292c63cdbddc", + "reference": "64f51654862e0f5e318db7e9dcc2292c63cdbddc", "shasum": "" }, "require": { - "php": ">=7.3", - "sebastian/recursion-context": "^4.0" + "ext-mbstring": "*", + "php": ">=8.1", + "sebastian/recursion-context": "^5.0" }, "require-dev": { - "ext-mbstring": "*", - "phpunit/phpunit": "^9.3" + "phpunit/phpunit": "^10.0" }, "type": "library", "extra": { "branch-alias": { - "dev-master": "4.0-dev" + "dev-main": "5.1-dev" } }, "autoload": { @@ -7662,7 +11348,8 @@ ], "support": { "issues": "https://github.com/sebastianbergmann/exporter/issues", - "source": "https://github.com/sebastianbergmann/exporter/tree/4.0.4" + "security": "https://github.com/sebastianbergmann/exporter/security/policy", + "source": "https://github.com/sebastianbergmann/exporter/tree/5.1.1" }, "funding": [ { @@ -7670,38 +11357,35 @@ "type": "github" } ], - "time": "2021-11-11T14:18:36+00:00" + "time": "2023-09-24T13:22:09+00:00" }, { "name": "sebastian/global-state", - "version": "5.0.5", + "version": "6.0.1", "source": { "type": "git", "url": "https://github.com/sebastianbergmann/global-state.git", - "reference": "0ca8db5a5fc9c8646244e629625ac486fa286bf2" + "reference": "7ea9ead78f6d380d2a667864c132c2f7b83055e4" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/sebastianbergmann/global-state/zipball/0ca8db5a5fc9c8646244e629625ac486fa286bf2", - "reference": "0ca8db5a5fc9c8646244e629625ac486fa286bf2", + "url": "https://api.github.com/repos/sebastianbergmann/global-state/zipball/7ea9ead78f6d380d2a667864c132c2f7b83055e4", + "reference": "7ea9ead78f6d380d2a667864c132c2f7b83055e4", "shasum": "" }, "require": { - "php": ">=7.3", - "sebastian/object-reflector": "^2.0", - "sebastian/recursion-context": "^4.0" + "php": ">=8.1", + "sebastian/object-reflector": "^3.0", + "sebastian/recursion-context": "^5.0" }, "require-dev": { "ext-dom": "*", - "phpunit/phpunit": "^9.3" - }, - "suggest": { - "ext-uopz": "*" + "phpunit/phpunit": "^10.0" }, "type": "library", "extra": { "branch-alias": { - "dev-master": "5.0-dev" + "dev-main": "6.0-dev" } }, "autoload": { @@ -7726,7 +11410,8 @@ ], "support": { "issues": "https://github.com/sebastianbergmann/global-state/issues", - "source": "https://github.com/sebastianbergmann/global-state/tree/5.0.5" + "security": "https://github.com/sebastianbergmann/global-state/security/policy", + "source": "https://github.com/sebastianbergmann/global-state/tree/6.0.1" }, "funding": [ { @@ -7734,33 +11419,33 @@ "type": "github" } ], - "time": "2022-02-14T08:28:10+00:00" + "time": "2023-07-19T07:19:23+00:00" }, { "name": "sebastian/lines-of-code", - "version": "1.0.3", + "version": "2.0.1", "source": { "type": "git", "url": "https://github.com/sebastianbergmann/lines-of-code.git", - "reference": "c1c2e997aa3146983ed888ad08b15470a2e22ecc" + "reference": "649e40d279e243d985aa8fb6e74dd5bb28dc185d" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/sebastianbergmann/lines-of-code/zipball/c1c2e997aa3146983ed888ad08b15470a2e22ecc", - "reference": "c1c2e997aa3146983ed888ad08b15470a2e22ecc", + "url": "https://api.github.com/repos/sebastianbergmann/lines-of-code/zipball/649e40d279e243d985aa8fb6e74dd5bb28dc185d", + "reference": "649e40d279e243d985aa8fb6e74dd5bb28dc185d", "shasum": "" }, "require": { - "nikic/php-parser": "^4.6", - "php": ">=7.3" + "nikic/php-parser": "^4.10", + "php": ">=8.1" }, "require-dev": { - "phpunit/phpunit": "^9.3" + "phpunit/phpunit": "^10.0" }, "type": "library", "extra": { "branch-alias": { - "dev-master": "1.0-dev" + "dev-main": "2.0-dev" } }, "autoload": { @@ -7783,7 +11468,8 @@ "homepage": "https://github.com/sebastianbergmann/lines-of-code", "support": { "issues": "https://github.com/sebastianbergmann/lines-of-code/issues", - "source": "https://github.com/sebastianbergmann/lines-of-code/tree/1.0.3" + "security": "https://github.com/sebastianbergmann/lines-of-code/security/policy", + "source": "https://github.com/sebastianbergmann/lines-of-code/tree/2.0.1" }, "funding": [ { @@ -7791,34 +11477,34 @@ "type": "github" } ], - "time": "2020-11-28T06:42:11+00:00" + "time": "2023-08-31T09:25:50+00:00" }, { "name": "sebastian/object-enumerator", - "version": "4.0.4", + "version": "5.0.0", "source": { "type": "git", "url": "https://github.com/sebastianbergmann/object-enumerator.git", - "reference": "5c9eeac41b290a3712d88851518825ad78f45c71" + "reference": "202d0e344a580d7f7d04b3fafce6933e59dae906" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/sebastianbergmann/object-enumerator/zipball/5c9eeac41b290a3712d88851518825ad78f45c71", - "reference": "5c9eeac41b290a3712d88851518825ad78f45c71", + "url": "https://api.github.com/repos/sebastianbergmann/object-enumerator/zipball/202d0e344a580d7f7d04b3fafce6933e59dae906", + "reference": "202d0e344a580d7f7d04b3fafce6933e59dae906", "shasum": "" }, "require": { - "php": ">=7.3", - "sebastian/object-reflector": "^2.0", - "sebastian/recursion-context": "^4.0" + "php": ">=8.1", + "sebastian/object-reflector": "^3.0", + "sebastian/recursion-context": "^5.0" }, "require-dev": { - "phpunit/phpunit": "^9.3" + "phpunit/phpunit": "^10.0" }, "type": "library", "extra": { "branch-alias": { - "dev-master": "4.0-dev" + "dev-main": "5.0-dev" } }, "autoload": { @@ -7840,7 +11526,7 @@ "homepage": "https://github.com/sebastianbergmann/object-enumerator/", "support": { "issues": "https://github.com/sebastianbergmann/object-enumerator/issues", - "source": "https://github.com/sebastianbergmann/object-enumerator/tree/4.0.4" + "source": "https://github.com/sebastianbergmann/object-enumerator/tree/5.0.0" }, "funding": [ { @@ -7848,32 +11534,32 @@ "type": "github" } ], - "time": "2020-10-26T13:12:34+00:00" + "time": "2023-02-03T07:08:32+00:00" }, { "name": "sebastian/object-reflector", - "version": "2.0.4", + "version": "3.0.0", "source": { "type": "git", "url": "https://github.com/sebastianbergmann/object-reflector.git", - "reference": "b4f479ebdbf63ac605d183ece17d8d7fe49c15c7" + "reference": "24ed13d98130f0e7122df55d06c5c4942a577957" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/sebastianbergmann/object-reflector/zipball/b4f479ebdbf63ac605d183ece17d8d7fe49c15c7", - "reference": "b4f479ebdbf63ac605d183ece17d8d7fe49c15c7", + "url": "https://api.github.com/repos/sebastianbergmann/object-reflector/zipball/24ed13d98130f0e7122df55d06c5c4942a577957", + "reference": "24ed13d98130f0e7122df55d06c5c4942a577957", "shasum": "" }, "require": { - "php": ">=7.3" + "php": ">=8.1" }, "require-dev": { - "phpunit/phpunit": "^9.3" + "phpunit/phpunit": "^10.0" }, "type": "library", "extra": { "branch-alias": { - "dev-master": "2.0-dev" + "dev-main": "3.0-dev" } }, "autoload": { @@ -7895,7 +11581,7 @@ "homepage": "https://github.com/sebastianbergmann/object-reflector/", "support": { "issues": "https://github.com/sebastianbergmann/object-reflector/issues", - "source": "https://github.com/sebastianbergmann/object-reflector/tree/2.0.4" + "source": "https://github.com/sebastianbergmann/object-reflector/tree/3.0.0" }, "funding": [ { @@ -7903,32 +11589,32 @@ "type": "github" } ], - "time": "2020-10-26T13:14:26+00:00" + "time": "2023-02-03T07:06:18+00:00" }, { "name": "sebastian/recursion-context", - "version": "4.0.4", + "version": "5.0.0", "source": { "type": "git", "url": "https://github.com/sebastianbergmann/recursion-context.git", - "reference": "cd9d8cf3c5804de4341c283ed787f099f5506172" + "reference": "05909fb5bc7df4c52992396d0116aed689f93712" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/sebastianbergmann/recursion-context/zipball/cd9d8cf3c5804de4341c283ed787f099f5506172", - "reference": "cd9d8cf3c5804de4341c283ed787f099f5506172", + "url": "https://api.github.com/repos/sebastianbergmann/recursion-context/zipball/05909fb5bc7df4c52992396d0116aed689f93712", + "reference": "05909fb5bc7df4c52992396d0116aed689f93712", "shasum": "" }, "require": { - "php": ">=7.3" + "php": ">=8.1" }, "require-dev": { - "phpunit/phpunit": "^9.3" + "phpunit/phpunit": "^10.0" }, "type": "library", "extra": { "branch-alias": { - "dev-master": "4.0-dev" + "dev-main": "5.0-dev" } }, "autoload": { @@ -7955,10 +11641,10 @@ } ], "description": "Provides functionality to recursively process PHP variables", - "homepage": "http://www.github.com/sebastianbergmann/recursion-context", + "homepage": "https://github.com/sebastianbergmann/recursion-context", "support": { "issues": "https://github.com/sebastianbergmann/recursion-context/issues", - "source": "https://github.com/sebastianbergmann/recursion-context/tree/4.0.4" + "source": "https://github.com/sebastianbergmann/recursion-context/tree/5.0.0" }, "funding": [ { @@ -7966,87 +11652,32 @@ "type": "github" } ], - "time": "2020-10-26T13:17:30+00:00" - }, - { - "name": "sebastian/resource-operations", - "version": "3.0.3", - "source": { - "type": "git", - "url": "https://github.com/sebastianbergmann/resource-operations.git", - "reference": "0f4443cb3a1d92ce809899753bc0d5d5a8dd19a8" - }, - "dist": { - "type": "zip", - "url": "https://api.github.com/repos/sebastianbergmann/resource-operations/zipball/0f4443cb3a1d92ce809899753bc0d5d5a8dd19a8", - "reference": "0f4443cb3a1d92ce809899753bc0d5d5a8dd19a8", - "shasum": "" - }, - "require": { - "php": ">=7.3" - }, - "require-dev": { - "phpunit/phpunit": "^9.0" - }, - "type": "library", - "extra": { - "branch-alias": { - "dev-master": "3.0-dev" - } - }, - "autoload": { - "classmap": [ - "src/" - ] - }, - "notification-url": "https://packagist.org/downloads/", - "license": [ - "BSD-3-Clause" - ], - "authors": [ - { - "name": "Sebastian Bergmann", - "email": "sebastian@phpunit.de" - } - ], - "description": "Provides a list of PHP built-in functions that operate on resources", - "homepage": "https://www.github.com/sebastianbergmann/resource-operations", - "support": { - "issues": "https://github.com/sebastianbergmann/resource-operations/issues", - "source": "https://github.com/sebastianbergmann/resource-operations/tree/3.0.3" - }, - "funding": [ - { - "url": "https://github.com/sebastianbergmann", - "type": "github" - } - ], - "time": "2020-09-28T06:45:17+00:00" + "time": "2023-02-03T07:05:40+00:00" }, { "name": "sebastian/type", - "version": "3.0.0", + "version": "4.0.0", "source": { "type": "git", "url": "https://github.com/sebastianbergmann/type.git", - "reference": "b233b84bc4465aff7b57cf1c4bc75c86d00d6dad" + "reference": "462699a16464c3944eefc02ebdd77882bd3925bf" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/sebastianbergmann/type/zipball/b233b84bc4465aff7b57cf1c4bc75c86d00d6dad", - "reference": "b233b84bc4465aff7b57cf1c4bc75c86d00d6dad", + "url": "https://api.github.com/repos/sebastianbergmann/type/zipball/462699a16464c3944eefc02ebdd77882bd3925bf", + "reference": "462699a16464c3944eefc02ebdd77882bd3925bf", "shasum": "" }, "require": { - "php": ">=7.3" + "php": ">=8.1" }, "require-dev": { - "phpunit/phpunit": "^9.5" + "phpunit/phpunit": "^10.0" }, "type": "library", "extra": { "branch-alias": { - "dev-master": "3.0-dev" + "dev-main": "4.0-dev" } }, "autoload": { @@ -8069,7 +11700,7 @@ "homepage": "https://github.com/sebastianbergmann/type", "support": { "issues": "https://github.com/sebastianbergmann/type/issues", - "source": "https://github.com/sebastianbergmann/type/tree/3.0.0" + "source": "https://github.com/sebastianbergmann/type/tree/4.0.0" }, "funding": [ { @@ -8077,29 +11708,29 @@ "type": "github" } ], - "time": "2022-03-15T09:54:48+00:00" + "time": "2023-02-03T07:10:45+00:00" }, { "name": "sebastian/version", - "version": "3.0.2", + "version": "4.0.1", "source": { "type": "git", "url": "https://github.com/sebastianbergmann/version.git", - "reference": "c6c1022351a901512170118436c764e473f6de8c" + "reference": "c51fa83a5d8f43f1402e3f32a005e6262244ef17" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/sebastianbergmann/version/zipball/c6c1022351a901512170118436c764e473f6de8c", - "reference": "c6c1022351a901512170118436c764e473f6de8c", + "url": "https://api.github.com/repos/sebastianbergmann/version/zipball/c51fa83a5d8f43f1402e3f32a005e6262244ef17", + "reference": "c51fa83a5d8f43f1402e3f32a005e6262244ef17", "shasum": "" }, "require": { - "php": ">=7.3" + "php": ">=8.1" }, "type": "library", "extra": { "branch-alias": { - "dev-master": "3.0-dev" + "dev-main": "4.0-dev" } }, "autoload": { @@ -8122,7 +11753,7 @@ "homepage": "https://github.com/sebastianbergmann/version", "support": { "issues": "https://github.com/sebastianbergmann/version/issues", - "source": "https://github.com/sebastianbergmann/version/tree/3.0.2" + "source": "https://github.com/sebastianbergmann/version/tree/4.0.1" }, "funding": [ { @@ -8130,46 +11761,46 @@ "type": "github" } ], - "time": "2020-09-28T06:39:44+00:00" + "time": "2023-02-07T11:34:05+00:00" }, { "name": "slevomat/coding-standard", - "version": "7.2.1", + "version": "8.14.1", "source": { "type": "git", "url": "https://github.com/slevomat/coding-standard.git", - "reference": "aff06ae7a84e4534bf6f821dc982a93a5d477c90" + "reference": "fea1fd6f137cc84f9cba0ae30d549615dbc6a926" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/slevomat/coding-standard/zipball/aff06ae7a84e4534bf6f821dc982a93a5d477c90", - "reference": "aff06ae7a84e4534bf6f821dc982a93a5d477c90", + "url": "https://api.github.com/repos/slevomat/coding-standard/zipball/fea1fd6f137cc84f9cba0ae30d549615dbc6a926", + "reference": "fea1fd6f137cc84f9cba0ae30d549615dbc6a926", "shasum": "" }, "require": { - "dealerdirect/phpcodesniffer-composer-installer": "^0.6.2 || ^0.7", + "dealerdirect/phpcodesniffer-composer-installer": "^0.6.2 || ^0.7 || ^1.0", "php": "^7.2 || ^8.0", - "phpstan/phpdoc-parser": "^1.5.1", - "squizlabs/php_codesniffer": "^3.6.2" + "phpstan/phpdoc-parser": "^1.23.1", + "squizlabs/php_codesniffer": "^3.7.1" }, "require-dev": { - "phing/phing": "2.17.3", + "phing/phing": "2.17.4", "php-parallel-lint/php-parallel-lint": "1.3.2", - "phpstan/phpstan": "1.4.10|1.7.1", - "phpstan/phpstan-deprecation-rules": "1.0.0", - "phpstan/phpstan-phpunit": "1.0.0|1.1.1", - "phpstan/phpstan-strict-rules": "1.2.3", - "phpunit/phpunit": "7.5.20|8.5.21|9.5.20" + "phpstan/phpstan": "1.10.37", + "phpstan/phpstan-deprecation-rules": "1.1.4", + "phpstan/phpstan-phpunit": "1.3.14", + "phpstan/phpstan-strict-rules": "1.5.1", + "phpunit/phpunit": "8.5.21|9.6.8|10.3.5" }, "type": "phpcodesniffer-standard", "extra": { "branch-alias": { - "dev-master": "7.x-dev" + "dev-master": "8.x-dev" } }, "autoload": { "psr-4": { - "SlevomatCodingStandard\\": "SlevomatCodingStandard" + "SlevomatCodingStandard\\": "SlevomatCodingStandard/" } }, "notification-url": "https://packagist.org/downloads/", @@ -8177,9 +11808,13 @@ "MIT" ], "description": "Slevomat Coding Standard for PHP_CodeSniffer complements Consistence Coding Standard by providing sniffs with additional checks.", + "keywords": [ + "dev", + "phpcs" + ], "support": { "issues": "https://github.com/slevomat/coding-standard/issues", - "source": "https://github.com/slevomat/coding-standard/tree/7.2.1" + "source": "https://github.com/slevomat/coding-standard/tree/8.14.1" }, "funding": [ { @@ -8191,20 +11826,327 @@ "type": "tidelift" } ], - "time": "2022-05-25T10:58:12+00:00" + "time": "2023-10-08T07:28:08+00:00" }, { - "name": "squizlabs/php_codesniffer", - "version": "3.7.1", + "name": "spatie/backtrace", + "version": "1.5.3", "source": { "type": "git", - "url": "https://github.com/squizlabs/PHP_CodeSniffer.git", - "reference": "1359e176e9307e906dc3d890bcc9603ff6d90619" + "url": "https://github.com/spatie/backtrace.git", + "reference": "483f76a82964a0431aa836b6ed0edde0c248e3ab" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/squizlabs/PHP_CodeSniffer/zipball/1359e176e9307e906dc3d890bcc9603ff6d90619", - "reference": "1359e176e9307e906dc3d890bcc9603ff6d90619", + "url": "https://api.github.com/repos/spatie/backtrace/zipball/483f76a82964a0431aa836b6ed0edde0c248e3ab", + "reference": "483f76a82964a0431aa836b6ed0edde0c248e3ab", + "shasum": "" + }, + "require": { + "php": "^7.3|^8.0" + }, + "require-dev": { + "ext-json": "*", + "phpunit/phpunit": "^9.3", + "spatie/phpunit-snapshot-assertions": "^4.2", + "symfony/var-dumper": "^5.1" + }, + "type": "library", + "autoload": { + "psr-4": { + "Spatie\\Backtrace\\": "src" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Freek Van de Herten", + "email": "freek@spatie.be", + "homepage": "https://spatie.be", + "role": "Developer" + } + ], + "description": "A better backtrace", + "homepage": "https://github.com/spatie/backtrace", + "keywords": [ + "Backtrace", + "spatie" + ], + "support": { + "source": "https://github.com/spatie/backtrace/tree/1.5.3" + }, + "funding": [ + { + "url": "https://github.com/sponsors/spatie", + "type": "github" + }, + { + "url": "https://spatie.be/open-source/support-us", + "type": "other" + } + ], + "time": "2023-06-28T12:59:17+00:00" + }, + { + "name": "spatie/flare-client-php", + "version": "1.4.3", + "source": { + "type": "git", + "url": "https://github.com/spatie/flare-client-php.git", + "reference": "5db2fdd743c3ede33f2a5367d89ec1a7c9c1d1ec" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/spatie/flare-client-php/zipball/5db2fdd743c3ede33f2a5367d89ec1a7c9c1d1ec", + "reference": "5db2fdd743c3ede33f2a5367d89ec1a7c9c1d1ec", + "shasum": "" + }, + "require": { + "illuminate/pipeline": "^8.0|^9.0|^10.0|^11.0", + "nesbot/carbon": "^2.62.1", + "php": "^8.0", + "spatie/backtrace": "^1.5.2", + "symfony/http-foundation": "^5.2|^6.0|^7.0", + "symfony/mime": "^5.2|^6.0|^7.0", + "symfony/process": "^5.2|^6.0|^7.0", + "symfony/var-dumper": "^5.2|^6.0|^7.0" + }, + "require-dev": { + "dms/phpunit-arraysubset-asserts": "^0.5.0", + "pestphp/pest": "^1.20|^2.0", + "phpstan/extension-installer": "^1.1", + "phpstan/phpstan-deprecation-rules": "^1.0", + "phpstan/phpstan-phpunit": "^1.0", + "spatie/phpunit-snapshot-assertions": "^4.0|^5.0" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-main": "1.3.x-dev" + } + }, + "autoload": { + "files": [ + "src/helpers.php" + ], + "psr-4": { + "Spatie\\FlareClient\\": "src" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "description": "Send PHP errors to Flare", + "homepage": "https://github.com/spatie/flare-client-php", + "keywords": [ + "exception", + "flare", + "reporting", + "spatie" + ], + "support": { + "issues": "https://github.com/spatie/flare-client-php/issues", + "source": "https://github.com/spatie/flare-client-php/tree/1.4.3" + }, + "funding": [ + { + "url": "https://github.com/spatie", + "type": "github" + } + ], + "time": "2023-10-17T15:54:07+00:00" + }, + { + "name": "spatie/ignition", + "version": "1.11.3", + "source": { + "type": "git", + "url": "https://github.com/spatie/ignition.git", + "reference": "3d886de644ff7a5b42e4d27c1e1f67c8b5f00044" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/spatie/ignition/zipball/3d886de644ff7a5b42e4d27c1e1f67c8b5f00044", + "reference": "3d886de644ff7a5b42e4d27c1e1f67c8b5f00044", + "shasum": "" + }, + "require": { + "ext-json": "*", + "ext-mbstring": "*", + "php": "^8.0", + "spatie/backtrace": "^1.5.3", + "spatie/flare-client-php": "^1.4.0", + "symfony/console": "^5.4|^6.0|^7.0", + "symfony/var-dumper": "^5.4|^6.0|^7.0" + }, + "require-dev": { + "illuminate/cache": "^9.52|^10.0|^11.0", + "mockery/mockery": "^1.4", + "pestphp/pest": "^1.20|^2.0", + "phpstan/extension-installer": "^1.1", + "phpstan/phpstan-deprecation-rules": "^1.0", + "phpstan/phpstan-phpunit": "^1.0", + "psr/simple-cache-implementation": "*", + "symfony/cache": "^5.4|^6.0|^7.0", + "symfony/process": "^5.4|^6.0|^7.0", + "vlucas/phpdotenv": "^5.5" + }, + "suggest": { + "openai-php/client": "Require get solutions from OpenAI", + "simple-cache-implementation": "To cache solutions from OpenAI" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-main": "1.5.x-dev" + } + }, + "autoload": { + "psr-4": { + "Spatie\\Ignition\\": "src" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Spatie", + "email": "info@spatie.be", + "role": "Developer" + } + ], + "description": "A beautiful error page for PHP applications.", + "homepage": "https://flareapp.io/ignition", + "keywords": [ + "error", + "flare", + "laravel", + "page" + ], + "support": { + "docs": "https://flareapp.io/docs/ignition-for-laravel/introduction", + "forum": "https://twitter.com/flareappio", + "issues": "https://github.com/spatie/ignition/issues", + "source": "https://github.com/spatie/ignition" + }, + "funding": [ + { + "url": "https://github.com/spatie", + "type": "github" + } + ], + "time": "2023-10-18T14:09:40+00:00" + }, + { + "name": "spatie/laravel-ignition", + "version": "2.3.1", + "source": { + "type": "git", + "url": "https://github.com/spatie/laravel-ignition.git", + "reference": "bf21cd15aa47fa4ec5d73bbc932005c70261efc8" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/spatie/laravel-ignition/zipball/bf21cd15aa47fa4ec5d73bbc932005c70261efc8", + "reference": "bf21cd15aa47fa4ec5d73bbc932005c70261efc8", + "shasum": "" + }, + "require": { + "ext-curl": "*", + "ext-json": "*", + "ext-mbstring": "*", + "illuminate/support": "^10.0", + "php": "^8.1", + "spatie/flare-client-php": "^1.3.5", + "spatie/ignition": "^1.9", + "symfony/console": "^6.2.3", + "symfony/var-dumper": "^6.2.3" + }, + "require-dev": { + "livewire/livewire": "^2.11", + "mockery/mockery": "^1.5.1", + "openai-php/client": "^0.3.4", + "orchestra/testbench": "^8.0", + "pestphp/pest": "^1.22.3", + "phpstan/extension-installer": "^1.2", + "phpstan/phpstan-deprecation-rules": "^1.1.1", + "phpstan/phpstan-phpunit": "^1.3.3", + "vlucas/phpdotenv": "^5.5" + }, + "suggest": { + "openai-php/client": "Require get solutions from OpenAI", + "psr/simple-cache-implementation": "Needed to cache solutions from OpenAI" + }, + "type": "library", + "extra": { + "laravel": { + "providers": [ + "Spatie\\LaravelIgnition\\IgnitionServiceProvider" + ], + "aliases": { + "Flare": "Spatie\\LaravelIgnition\\Facades\\Flare" + } + } + }, + "autoload": { + "files": [ + "src/helpers.php" + ], + "psr-4": { + "Spatie\\LaravelIgnition\\": "src" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Spatie", + "email": "info@spatie.be", + "role": "Developer" + } + ], + "description": "A beautiful error page for Laravel applications.", + "homepage": "https://flareapp.io/ignition", + "keywords": [ + "error", + "flare", + "laravel", + "page" + ], + "support": { + "docs": "https://flareapp.io/docs/ignition-for-laravel/introduction", + "forum": "https://twitter.com/flareappio", + "issues": "https://github.com/spatie/laravel-ignition/issues", + "source": "https://github.com/spatie/laravel-ignition" + }, + "funding": [ + { + "url": "https://github.com/spatie", + "type": "github" + } + ], + "time": "2023-10-09T12:55:26+00:00" + }, + { + "name": "squizlabs/php_codesniffer", + "version": "3.7.2", + "source": { + "type": "git", + "url": "https://github.com/squizlabs/PHP_CodeSniffer.git", + "reference": "ed8e00df0a83aa96acf703f8c2979ff33341f879" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/squizlabs/PHP_CodeSniffer/zipball/ed8e00df0a83aa96acf703f8c2979ff33341f879", + "reference": "ed8e00df0a83aa96acf703f8c2979ff33341f879", "shasum": "" }, "require": { @@ -8240,27 +12182,241 @@ "homepage": "https://github.com/squizlabs/PHP_CodeSniffer", "keywords": [ "phpcs", - "standards" + "standards", + "static analysis" ], "support": { "issues": "https://github.com/squizlabs/PHP_CodeSniffer/issues", "source": "https://github.com/squizlabs/PHP_CodeSniffer", "wiki": "https://github.com/squizlabs/PHP_CodeSniffer/wiki" }, - "time": "2022-06-18T07:21:10+00:00" + "time": "2023-02-22T23:07:41+00:00" }, { - "name": "theseer/tokenizer", - "version": "1.2.1", + "name": "symfony/polyfill-php81", + "version": "v1.28.0", "source": { "type": "git", - "url": "https://github.com/theseer/tokenizer.git", - "reference": "34a41e998c2183e22995f158c581e7b5e755ab9e" + "url": "https://github.com/symfony/polyfill-php81.git", + "reference": "7581cd600fa9fd681b797d00b02f068e2f13263b" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/theseer/tokenizer/zipball/34a41e998c2183e22995f158c581e7b5e755ab9e", - "reference": "34a41e998c2183e22995f158c581e7b5e755ab9e", + "url": "https://api.github.com/repos/symfony/polyfill-php81/zipball/7581cd600fa9fd681b797d00b02f068e2f13263b", + "reference": "7581cd600fa9fd681b797d00b02f068e2f13263b", + "shasum": "" + }, + "require": { + "php": ">=7.1" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-main": "1.28-dev" + }, + "thanks": { + "name": "symfony/polyfill", + "url": "https://github.com/symfony/polyfill" + } + }, + "autoload": { + "files": [ + "bootstrap.php" + ], + "psr-4": { + "Symfony\\Polyfill\\Php81\\": "" + }, + "classmap": [ + "Resources/stubs" + ] + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Nicolas Grekas", + "email": "p@tchwork.com" + }, + { + "name": "Symfony Community", + "homepage": "https://symfony.com/contributors" + } + ], + "description": "Symfony polyfill backporting some PHP 8.1+ features to lower PHP versions", + "homepage": "https://symfony.com", + "keywords": [ + "compatibility", + "polyfill", + "portable", + "shim" + ], + "support": { + "source": "https://github.com/symfony/polyfill-php81/tree/v1.28.0" + }, + "funding": [ + { + "url": "https://symfony.com/sponsor", + "type": "custom" + }, + { + "url": "https://github.com/fabpot", + "type": "github" + }, + { + "url": "https://tidelift.com/funding/github/packagist/symfony/symfony", + "type": "tidelift" + } + ], + "time": "2023-01-26T09:26:14+00:00" + }, + { + "name": "symfony/yaml", + "version": "v6.3.8", + "source": { + "type": "git", + "url": "https://github.com/symfony/yaml.git", + "reference": "3493af8a8dad7fa91c77fa473ba23ecd95334a92" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/symfony/yaml/zipball/3493af8a8dad7fa91c77fa473ba23ecd95334a92", + "reference": "3493af8a8dad7fa91c77fa473ba23ecd95334a92", + "shasum": "" + }, + "require": { + "php": ">=8.1", + "symfony/deprecation-contracts": "^2.5|^3", + "symfony/polyfill-ctype": "^1.8" + }, + "conflict": { + "symfony/console": "<5.4" + }, + "require-dev": { + "symfony/console": "^5.4|^6.0" + }, + "bin": [ + "Resources/bin/yaml-lint" + ], + "type": "library", + "autoload": { + "psr-4": { + "Symfony\\Component\\Yaml\\": "" + }, + "exclude-from-classmap": [ + "/Tests/" + ] + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Fabien Potencier", + "email": "fabien@symfony.com" + }, + { + "name": "Symfony Community", + "homepage": "https://symfony.com/contributors" + } + ], + "description": "Loads and dumps YAML files", + "homepage": "https://symfony.com", + "support": { + "source": "https://github.com/symfony/yaml/tree/v6.3.8" + }, + "funding": [ + { + "url": "https://symfony.com/sponsor", + "type": "custom" + }, + { + "url": "https://github.com/fabpot", + "type": "github" + }, + { + "url": "https://tidelift.com/funding/github/packagist/symfony/symfony", + "type": "tidelift" + } + ], + "time": "2023-11-06T10:58:05+00:00" + }, + { + "name": "thedoctor0/laravel-factory-generator", + "version": "1.3.2", + "source": { + "type": "git", + "url": "https://github.com/TheDoctor0/laravel-factory-generator.git", + "reference": "7ee56e4229b78d5f6274a4649819b2bca0bd56e3" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/TheDoctor0/laravel-factory-generator/zipball/7ee56e4229b78d5f6274a4649819b2bca0bd56e3", + "reference": "7ee56e4229b78d5f6274a4649819b2bca0bd56e3", + "shasum": "" + }, + "require": { + "doctrine/dbal": "^2.9|^2.10|^3.0", + "illuminate/console": "^8.0|^9.0|^10.0", + "illuminate/filesystem": "^8.0|^9.0|^10.0", + "illuminate/support": "^8.0|^9.0|^10.0", + "php": ">=7.4" + }, + "type": "library", + "extra": { + "laravel": { + "providers": [ + "TheDoctor0\\LaravelFactoryGenerator\\FactoryGeneratorServiceProvider" + ] + } + }, + "autoload": { + "psr-4": { + "TheDoctor0\\LaravelFactoryGenerator\\": "src/" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "description": "Automatically generate Laravel factories for your models.", + "keywords": [ + "factories", + "factory", + "generator", + "laravel", + "tests" + ], + "support": { + "issues": "https://github.com/TheDoctor0/laravel-factory-generator/issues", + "source": "https://github.com/TheDoctor0/laravel-factory-generator/tree/1.3.2" + }, + "funding": [ + { + "url": "https://www.paypal.me/thedoctor0", + "type": "custom" + }, + { + "url": "https://github.com/thedoctor0", + "type": "github" + } + ], + "time": "2023-04-21T16:45:43+00:00" + }, + { + "name": "theseer/tokenizer", + "version": "1.2.2", + "source": { + "type": "git", + "url": "https://github.com/theseer/tokenizer.git", + "reference": "b2ad5003ca10d4ee50a12da31de12a5774ba6b96" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/theseer/tokenizer/zipball/b2ad5003ca10d4ee50a12da31de12a5774ba6b96", + "reference": "b2ad5003ca10d4ee50a12da31de12a5774ba6b96", "shasum": "" }, "require": { @@ -8289,7 +12445,7 @@ "description": "A small library for converting tokenized PHP source code into XML and potentially other formats", "support": { "issues": "https://github.com/theseer/tokenizer/issues", - "source": "https://github.com/theseer/tokenizer/tree/1.2.1" + "source": "https://github.com/theseer/tokenizer/tree/1.2.2" }, "funding": [ { @@ -8297,18 +12453,18 @@ "type": "github" } ], - "time": "2021-07-28T10:34:58+00:00" + "time": "2023-11-20T00:12:19+00:00" } ], "aliases": [], - "minimum-stability": "dev", - "stability-flags": [], + "minimum-stability": "stable", + "stability-flags": { + "krlove/eloquent-model-generator": 20 + }, "prefer-stable": true, "prefer-lowest": false, "platform": { - "php": "^7.3", - "ext-curl": "*", - "ext-json": "*" + "php": "^8.2" }, "platform-dev": [], "plugin-api-version": "2.3.0" diff --git a/config/app.php b/config/app.php index c574d0f..b002a6c 100644 --- a/config/app.php +++ b/config/app.php @@ -1,5 +1,7 @@ env('APP_URL', 'http://localhost'), - 'asset_url' => env('ASSET_URL', null), + 'asset_url' => env('ASSET_URL'), /* |-------------------------------------------------------------------------- @@ -106,7 +108,7 @@ return [ | */ - 'faker_locale' => 'en_US', + 'faker_locale' => 'fr_FR', /* |-------------------------------------------------------------------------- @@ -123,6 +125,23 @@ return [ 'cipher' => 'AES-256-CBC', + /* + |-------------------------------------------------------------------------- + | Maintenance Mode Driver + |-------------------------------------------------------------------------- + | + | These configuration options determine the driver used to determine and + | manage Laravel's "maintenance mode" status. The "cache" driver will + | allow maintenance mode to be controlled across multiple machines. + | + | Supported drivers: "file", "cache" + | + */ + + 'maintenance' => [ + 'driver' => 'file' + ], + /* |-------------------------------------------------------------------------- | Autoloaded Service Providers @@ -141,6 +160,7 @@ return [ */ Illuminate\Auth\AuthServiceProvider::class, + Illuminate\Broadcasting\BroadcastServiceProvider::class, Illuminate\Bus\BusServiceProvider::class, Illuminate\Cache\CacheServiceProvider::class, Illuminate\Foundation\Providers\ConsoleSupportServiceProvider::class, @@ -174,7 +194,10 @@ return [ App\Providers\AuthServiceProvider::class, App\Providers\EventServiceProvider::class, App\Providers\RouteServiceProvider::class, - + App\Providers\TranslationServiceProvider::class, + App\Providers\ViewServiceProvider::class, + App\Providers\CrmApiServiceProvider::class, + App\Providers\MesBrApiServiceProvider::class, ], /* @@ -188,45 +211,8 @@ return [ | */ - 'aliases' => [ - - 'App' => Illuminate\Support\Facades\App::class, - 'Arr' => Illuminate\Support\Arr::class, - 'Artisan' => Illuminate\Support\Facades\Artisan::class, - 'Auth' => Illuminate\Support\Facades\Auth::class, - 'Blade' => Illuminate\Support\Facades\Blade::class, - 'Broadcast' => Illuminate\Support\Facades\Broadcast::class, - 'Bus' => Illuminate\Support\Facades\Bus::class, - 'Cache' => Illuminate\Support\Facades\Cache::class, - 'Config' => Illuminate\Support\Facades\Config::class, - 'Cookie' => Illuminate\Support\Facades\Cookie::class, - 'Crypt' => Illuminate\Support\Facades\Crypt::class, - 'DB' => Illuminate\Support\Facades\DB::class, - 'Eloquent' => Illuminate\Database\Eloquent\Model::class, - 'Event' => Illuminate\Support\Facades\Event::class, - 'File' => Illuminate\Support\Facades\File::class, - 'Gate' => Illuminate\Support\Facades\Gate::class, - 'Hash' => Illuminate\Support\Facades\Hash::class, - 'Http' => Illuminate\Support\Facades\Http::class, - 'Lang' => Illuminate\Support\Facades\Lang::class, - 'Log' => Illuminate\Support\Facades\Log::class, - 'Mail' => Illuminate\Support\Facades\Mail::class, - 'Notification' => Illuminate\Support\Facades\Notification::class, - 'Password' => Illuminate\Support\Facades\Password::class, - 'Queue' => Illuminate\Support\Facades\Queue::class, - 'Redirect' => Illuminate\Support\Facades\Redirect::class, - 'Redis' => Illuminate\Support\Facades\Redis::class, - 'Request' => Illuminate\Support\Facades\Request::class, - 'Response' => Illuminate\Support\Facades\Response::class, - 'Route' => Illuminate\Support\Facades\Route::class, - 'Schema' => Illuminate\Support\Facades\Schema::class, - 'Session' => Illuminate\Support\Facades\Session::class, - 'Storage' => Illuminate\Support\Facades\Storage::class, - 'Str' => Illuminate\Support\Str::class, - 'URL' => Illuminate\Support\Facades\URL::class, - 'Validator' => Illuminate\Support\Facades\Validator::class, - 'View' => Illuminate\Support\Facades\View::class, - - ], + 'aliases' => Facade::defaultAliases()->merge([ + 'Carbon' => \Illuminate\Support\Carbon::class, + ])->toArray(), ]; diff --git a/config/auth.php b/config/auth.php index c30fc9c..c370135 100644 --- a/config/auth.php +++ b/config/auth.php @@ -14,7 +14,7 @@ return [ */ 'defaults' => [ - 'guard' => 'web', + 'guard' => 'frontend', 'passwords' => 'users', ], @@ -31,20 +31,19 @@ return [ | users are actually retrieved out of your database or other storage | mechanisms used by this application to persist your user's data. | - | Supported: "session", "token" + | Supported: "session" | */ 'guards' => [ - 'web' => [ + 'backend' => [ 'driver' => 'session', 'provider' => 'users', ], - 'api' => [ - 'driver' => 'token', - 'provider' => 'users', - 'hash' => false, + 'frontend' => [ + 'driver' => 'session', + 'provider' => 'customers', ], ], @@ -68,7 +67,11 @@ return [ 'providers' => [ 'users' => [ 'driver' => 'eloquent', - 'model' => App\Models\User::class, + 'model' => \App\Models\User::class, + ], + 'customers' => [ + 'driver' => 'crm', + 'model' => \App\Models\Customer::class, ], ], @@ -81,10 +84,14 @@ return [ | than one user table or model in the application and you want to have | separate password reset settings based on the specific user types. | - | The expire time is the number of minutes that the reset token should be + | The expiry time is the number of minutes that each reset token will be | considered valid. This security feature keeps tokens short-lived so | they have less time to be guessed. You may change this as needed. | + | The throttle setting is the number of seconds a user must wait before + | generating more password reset tokens. This prevents the user from + | quickly generating a very large amount of password reset tokens. + | */ 'passwords' => [ @@ -94,6 +101,12 @@ return [ 'expire' => 60, 'throttle' => 60, ], + 'customers' => [ + 'provider' => 'customers', + 'table' => 'password_resets', + 'expire' => 60, + 'throttle' => 60, + ], ], /* diff --git a/config/breadcrumbs.php b/config/breadcrumbs.php new file mode 100644 index 0000000..6c96342 --- /dev/null +++ b/config/breadcrumbs.php @@ -0,0 +1,78 @@ + 'modules/breadcrumbs/breadcrumb-layout', + + /* + |-------------------------------------------------------------------------- + | Breadcrumbs File(s) + |-------------------------------------------------------------------------- + | + | The file(s) where breadcrumbs are defined. e.g. + | + | - base_path('routes/breadcrumbs.php') + | - glob(base_path('breadcrumbs/*.php')) + | + */ + + 'files' => [ + base_path('routes/breadcrumbs-bo.php'), + base_path('routes/breadcrumbs-fo.php'), + ], + + /* + |-------------------------------------------------------------------------- + | Exceptions + |-------------------------------------------------------------------------- + | + | Determine when to throw an exception. + | + */ + + // * When route-bound breadcrumbs are used but the current route doesn't have a name (UnnamedRouteException) + 'unnamed-route-exception' => true, + + // * When route-bound breadcrumbs are used and the matching breadcrumb doesn't exist (InvalidBreadcrumbException) + 'missing-route-bound-breadcrumb-exception' => true, + + // * When a named breadcrumb is used but doesn't exist (InvalidBreadcrumbException) + 'invalid-named-breadcrumb-exception' => true, + + /* + |-------------------------------------------------------------------------- + | Classes + |-------------------------------------------------------------------------- + | + | Subclass the default classes for more advanced customisations. + | + */ + + // * Manager + 'manager-class' => Diglactic\Breadcrumbs\Manager::class, + + // * Generator + 'generator-class' => Diglactic\Breadcrumbs\Generator::class, + +]; diff --git a/config/broadcasting.php b/config/broadcasting.php index 758e391..ae079a6 100644 --- a/config/broadcasting.php +++ b/config/broadcasting.php @@ -11,7 +11,7 @@ return [ | framework when an event needs to be broadcast. You may set this to | any of the connections defined in the "connections" array below. | - | Supported: "pusher", "redis", "log", "null" + | Supported: "pusher", "ably", "redis", "log", "null" | */ @@ -36,9 +36,20 @@ return [ 'secret' => env('PUSHER_APP_SECRET'), 'app_id' => env('PUSHER_APP_ID'), 'options' => [ - 'cluster' => env('PUSHER_APP_CLUSTER'), - 'useTLS' => true, + 'host' => env('PUSHER_HOST') ?: 'api-' . env('PUSHER_APP_CLUSTER', 'mt1') . '.pusher.com', + 'port' => env('PUSHER_PORT', 443), + 'scheme' => env('PUSHER_SCHEME', 'https'), + 'encrypted' => true, + 'useTLS' => env('PUSHER_SCHEME', 'https') === 'https', ], + 'client_options' => [ + // Guzzle client options: https://docs.guzzlephp.org/en/stable/request-options.html . + ], + ], + + 'ably' => [ + 'driver' => 'ably', + 'key' => env('ABLY_KEY'), ], 'redis' => [ diff --git a/config/cache.php b/config/cache.php index 12cf3c9..8e0f9c7 100644 --- a/config/cache.php +++ b/config/cache.php @@ -13,9 +13,6 @@ return [ | using this caching library. This connection is used when another is | not explicitly specified when executing a given caching function. | - | Supported: "apc", "array", "database", "file", - | "memcached", "redis", "dynamodb" - | */ 'default' => env('CACHE_DRIVER', 'file'), @@ -29,6 +26,9 @@ return [ | well as their drivers. You may even define multiple stores for the | same cache driver to group types of items stored in your caches. | + | Supported drivers: "apc", "array", "database", "file", + | "memcached", "redis", "dynamodb", "octane", "null" + | */ 'stores' => [ @@ -46,6 +46,7 @@ return [ 'driver' => 'database', 'table' => 'cache', 'connection' => null, + 'lock_connection' => null, ], 'file' => [ @@ -61,8 +62,7 @@ return [ env('MEMCACHED_PASSWORD'), ], 'options' => [ - // phpcs:ignore - // Memcached::OPT_CONNECT_TIMEOUT => 2000, + // Memcached::OPT_CONNECT_TIMEOUT => 2000, . ], 'servers' => [ [ @@ -76,6 +76,7 @@ return [ 'redis' => [ 'driver' => 'redis', 'connection' => 'cache', + 'lock_connection' => 'default', ], 'dynamodb' => [ @@ -87,6 +88,10 @@ return [ 'endpoint' => env('DYNAMODB_ENDPOINT'), ], + 'octane' => [ + 'driver' => 'octane', + ], + ], /* @@ -94,12 +99,12 @@ return [ | Cache Key Prefix |-------------------------------------------------------------------------- | - | When utilizing a RAM based store such as APC or Memcached, there might - | be other applications utilizing the same cache. So, we'll specify a - | value to get prefixed to all our keys so we can avoid collisions. + | When utilizing the APC, database, memcached, Redis, or DynamoDB cache + | stores there might be other applications using the same cache. For + | that reason, you may prefix every cache key to avoid collisions. | */ - 'prefix' => env('CACHE_PREFIX', Str::slug(env('APP_NAME', 'laravel'), '_') . '_cache'), + 'prefix' => env('CACHE_PREFIX', Str::slug(env('APP_NAME', 'laravel'), '_') . '_cache_'), ]; diff --git a/config/crm.php b/config/crm.php index 616b3a3..ff4932f 100644 --- a/config/crm.php +++ b/config/crm.php @@ -3,4 +3,5 @@ return [ 'endpoint' => env('CRM_ENDPOINT'), 'token' => env('CRM_TOKEN'), + 'password' => env('CRM_PASSWORD') ]; diff --git a/config/database.php b/config/database.php index ac4559f..9dfe93d 100644 --- a/config/database.php +++ b/config/database.php @@ -74,7 +74,7 @@ return [ 'charset' => 'utf8', 'prefix' => '', 'prefix_indexes' => true, - 'schema' => 'public', + 'search_path' => 'public', 'sslmode' => 'prefer', ], @@ -129,7 +129,8 @@ return [ 'default' => [ 'url' => env('REDIS_URL'), 'host' => env('REDIS_HOST', '127.0.0.1'), - 'password' => env('REDIS_PASSWORD', null), + 'username' => env('REDIS_USERNAME'), + 'password' => env('REDIS_PASSWORD'), 'port' => env('REDIS_PORT', '6379'), 'database' => env('REDIS_DB', '0'), ], @@ -137,7 +138,8 @@ return [ 'cache' => [ 'url' => env('REDIS_URL'), 'host' => env('REDIS_HOST', '127.0.0.1'), - 'password' => env('REDIS_PASSWORD', null), + 'username' => env('REDIS_USERNAME'), + 'password' => env('REDIS_PASSWORD'), 'port' => env('REDIS_PORT', '6379'), 'database' => env('REDIS_CACHE_DB', '1'), ], diff --git a/config/exception-handler.php b/config/exception-handler.php deleted file mode 100644 index e6bd69b..0000000 --- a/config/exception-handler.php +++ /dev/null @@ -1,17 +0,0 @@ - !config('app.debug'), - - /** - * Put a developper secured mailbox in here - * so you can receive email if things go mad - */ - 'contactsList' => [ - env('MAIL_LIST_SERVICEWEB', 'equipe.web@ldc.fr') - ] -]; diff --git a/config/filesystems.php b/config/filesystems.php index ceceed7..89920a5 100644 --- a/config/filesystems.php +++ b/config/filesystems.php @@ -13,20 +13,7 @@ return [ | */ - 'default' => env('FILESYSTEM_DRIVER', 'local'), - - /* - |-------------------------------------------------------------------------- - | Default Cloud Filesystem Disk - |-------------------------------------------------------------------------- - | - | Many applications store files both locally and in the cloud. For this - | reason, you may specify a default "cloud" driver here. This driver - | will be bound as the Cloud disk implementation in the container. - | - */ - - 'cloud' => env('FILESYSTEM_CLOUD', 's3'), + 'default' => env('FILESYSTEM_DISK', 'local'), /* |-------------------------------------------------------------------------- @@ -35,7 +22,7 @@ return [ | | Here you may configure as many filesystem "disks" as you wish, and you | may even configure multiple disks of the same driver. Defaults have - | been setup for each driver as an example of the required options. + | been set up for each driver as an example of the required values. | | Supported Drivers: "local", "ftp", "sftp", "s3" | @@ -46,6 +33,7 @@ return [ 'local' => [ 'driver' => 'local', 'root' => storage_path('app'), + 'throw' => false, ], 'public' => [ @@ -53,6 +41,14 @@ return [ 'root' => storage_path('app/public'), 'url' => env('APP_URL') . '/storage', 'visibility' => 'public', + 'throw' => false, + ], + + 'private' => [ + 'driver' => 'local', + 'root' => storage_path('app/private'), + 'visibility' => 'private', + 'throw' => false, ], 's3' => [ @@ -63,6 +59,8 @@ return [ 'bucket' => env('AWS_BUCKET'), 'url' => env('AWS_URL'), 'endpoint' => env('AWS_ENDPOINT'), + 'use_path_style_endpoint' => env('AWS_USE_PATH_STYLE_ENDPOINT', false), + 'throw' => false, ], ], diff --git a/config/google.php b/config/google.php deleted file mode 100644 index 7575aec..0000000 --- a/config/google.php +++ /dev/null @@ -1,5 +0,0 @@ - env('ANALYTICS_GOOGLE_ID') -]; diff --git a/config/hashing.php b/config/hashing.php index 6641c8c..be29b34 100644 --- a/config/hashing.php +++ b/config/hashing.php @@ -29,7 +29,7 @@ return [ */ 'bcrypt' => [ - 'rounds' => env('BCRYPT_ROUNDS', 10), + 'rounds' => env('BCRYPT_ROUNDS', 12), ], /* @@ -44,9 +44,9 @@ return [ */ 'argon' => [ - 'memory' => 1024, - 'threads' => 2, - 'time' => 2, + 'memory' => 65536, + 'threads' => 1, + 'time' => 4, ], ]; diff --git a/config/image-resizer.php b/config/image-resizer.php new file mode 100644 index 0000000..19740b3 --- /dev/null +++ b/config/image-resizer.php @@ -0,0 +1,65 @@ + 'imagick', + + /** + * The cache driver to use as defined + * in config/cache of your app + */ + 'cache' => 'file', + + /** + * The path where to store image in cache + */ + 'cachePath' => 'cache/images', + + /** + * Image cache life time + * This is given in minutes + * Here the cache for images is + * one hour + */ + 'lifetime' => 60, + + /** + * Format can specifiy to which format save the image + * JPEG PNG GIF TIF BMP ICO PSD WebP + * GD ✔️ ✔️ ✔️ - - - - ✔️ * + * Imagick ✔️ ✔️ ✔️ ✔️ ✔️ ✔️ ✔️ ✔️ * + * For WebP support GD driver must be used with PHP 5 >= 5.5.0 or PHP 7 + * in order to use imagewebp(). If Imagick is used, it must be compiled + * with libwebp for WebP support. + * resize => will resize the image (boolean) + * fit => Combine cropping and resizing to format image in a smart way (boolean) + * keepRatio => will keep image ratio wile resizing (boolean) + * trim => boolean to trim the image using border color + * inCanvas => to make sure image boundarie is respected + * format => select tha wantd ouput form, yan can just convert images if you want + * example : + * 'small' => [ + * 'height' => 500, + * 'width' => 250, + * 'inCanvas' => true, + * 'trim' => ['transparent', null, 10] + * ], + * 'smallWebp' => [ + * 'height' => 500, + * 'width' => 250, + * 'inCanvas' => true, + * 'format' => 'webp' + * ], + * 'justconvertImage' => [ + * 'format' => 'webp' + * ] + */ + 'templates' => array_replace_recursive( + [], + (file_exists(resource_path('theme/mounted/theme.config.php')) ? + require(resource_path('theme/mounted/theme.config.php')) : [])['resizes'] ?? [], + ) +]; diff --git a/config/logging.php b/config/logging.php index bef92ca..5906e47 100644 --- a/config/logging.php +++ b/config/logging.php @@ -3,6 +3,7 @@ use Monolog\Handler\NullHandler; use Monolog\Handler\StreamHandler; use Monolog\Handler\SyslogUdpHandler; +use Monolog\Processor\PsrLogMessageProcessor; return [ @@ -19,6 +20,22 @@ return [ 'default' => env('LOG_CHANNEL', 'stack'), + /* + |-------------------------------------------------------------------------- + | Deprecations Log Channel + |-------------------------------------------------------------------------- + | + | This option controls the log channel that should be used to log warnings + | regarding deprecated PHP and library features. This allows you to get + | your application ready for upcoming major versions of dependencies. + | + */ + + 'deprecations' => [ + 'channel' => env('LOG_DEPRECATIONS_CHANNEL', 'null'), + 'trace' => false, + ], + /* |-------------------------------------------------------------------------- | Log Channels @@ -41,36 +58,19 @@ return [ 'ignore_exceptions' => false, ], - 'stackProd' => [ - 'driver' => 'stack', - 'channels' => ['dailyProd'], - 'ignore_exceptions' => false, - ], - - 'stackDaily' => [ - 'driver' => 'stack', - 'channels' => ['daily'], - 'ignore_exceptions' => false, - ], - 'single' => [ 'driver' => 'single', 'path' => storage_path('logs/laravel.log'), - 'level' => 'debug', - ], - - 'dailyProd' => [ - 'driver' => 'daily', - 'path' => storage_path('logs/laravel.log'), - 'level' => 'notice', - 'days' => 60, + 'level' => env('LOG_LEVEL', 'debug'), + 'replace_placeholders' => true, ], 'daily' => [ 'driver' => 'daily', 'path' => storage_path('logs/laravel.log'), - 'level' => 'debug', + 'level' => env('LOG_LEVEL', 'debug'), 'days' => 14, + 'replace_placeholders' => true, ], 'slack' => [ @@ -78,36 +78,44 @@ return [ 'url' => env('LOG_SLACK_WEBHOOK_URL'), 'username' => 'Laravel Log', 'emoji' => ':boom:', - 'level' => 'critical', + 'level' => env('LOG_LEVEL', 'critical'), + 'replace_placeholders' => true, ], 'papertrail' => [ 'driver' => 'monolog', - 'level' => 'debug', - 'handler' => SyslogUdpHandler::class, + 'level' => env('LOG_LEVEL', 'debug'), + 'handler' => env('LOG_PAPERTRAIL_HANDLER', SyslogUdpHandler::class), 'handler_with' => [ 'host' => env('PAPERTRAIL_URL'), 'port' => env('PAPERTRAIL_PORT'), + 'connectionString' => 'tls://' . env('PAPERTRAIL_URL') . ':' . env('PAPERTRAIL_PORT'), ], + 'processors' => [PsrLogMessageProcessor::class], ], 'stderr' => [ 'driver' => 'monolog', + 'level' => env('LOG_LEVEL', 'debug'), 'handler' => StreamHandler::class, 'formatter' => env('LOG_STDERR_FORMATTER'), 'with' => [ 'stream' => 'php://stderr', ], + 'processors' => [PsrLogMessageProcessor::class], ], 'syslog' => [ 'driver' => 'syslog', - 'level' => 'debug', + 'level' => env('LOG_LEVEL', 'debug'), + 'facility' => LOG_USER, + 'replace_placeholders' => true, ], 'errorlog' => [ 'driver' => 'errorlog', - 'level' => 'debug', + 'level' => env('LOG_LEVEL', 'debug'), + 'replace_placeholders' => true, ], 'null' => [ @@ -118,6 +126,23 @@ return [ 'emergency' => [ 'path' => storage_path('logs/laravel.log'), ], + + 'stdout' => [ + 'driver' => 'monolog', + 'level' => env('LOG_LEVEL', 'debug'), + 'handler' => StreamHandler::class, + 'formatter' => env('LOG_STDOUT_FORMATTER'), + 'with' => [ + 'stream' => 'php://stdout', + ], + ], + + 'k8s' => [ + 'driver' => 'stack', + 'channels' => ['daily', 'stdout'], + 'ignore_exceptions' => false, + ], + ], ]; diff --git a/config/mail.php b/config/mail.php index 0b5b1e3..31caa75 100644 --- a/config/mail.php +++ b/config/mail.php @@ -15,13 +15,6 @@ return [ 'default' => env('MAIL_MAILER', 'smtp'), - // Mail admin pour l'envoi de mail comme la fin de la génération des codes uniques. - 'MAIL_ADMIN' => env('MAIL_ADMIN'), - - 'contactsList' => [ - 'serviceweb' => env('MAIL_ADMIN', 'equipe.web@ldc.fr') - ], - /* |-------------------------------------------------------------------------- | Mailer Configurations @@ -35,8 +28,8 @@ return [ | sending an e-mail. You will specify which one you are using for your | mailers below. You are free to add additional mailers as required. | - | Supported: "smtp", "sendmail", "mailgun", "ses", - | "postmark", "log", "array" + | Supported: "smtp", "sendmail", "mailgun", "ses", "ses-v2", + | "postmark", "log", "array", "failover" | */ @@ -49,7 +42,7 @@ return [ 'username' => env('MAIL_USERNAME'), 'password' => env('MAIL_PASSWORD'), 'timeout' => null, - 'auth_mode' => null, + 'local_domain' => env('MAIL_EHLO_DOMAIN'), ], 'ses' => [ @@ -57,16 +50,16 @@ return [ ], 'mailgun' => [ - 'transport' => 'mailgun', + 'transport' => 'mailgun' ], 'postmark' => [ - 'transport' => 'postmark', + 'transport' => 'postmark' ], 'sendmail' => [ 'transport' => 'sendmail', - 'path' => '/usr/sbin/sendmail -bs', + 'path' => env('MAIL_SENDMAIL_PATH', '/usr/sbin/sendmail -bs -i'), ], 'log' => [ @@ -77,6 +70,14 @@ return [ 'array' => [ 'transport' => 'array', ], + + 'failover' => [ + 'transport' => 'failover', + 'mailers' => [ + 'smtp', + 'log', + ], + ], ], /* @@ -110,8 +111,15 @@ return [ 'theme' => 'default', 'paths' => [ - resource_path('views/vendor/mail'), + // * For custom compiled css. + public_path('build/vendor/mail'), + // * For generic customized blade (theme seulement) + resource_path('theme/mounted/views/vendor/mail'), + // * For generic customized blade (moteur seulement) + resource_path('views/vendor/mail') ], ], + 'admin' => env('MAIL_ADMIN') + ]; diff --git a/config/purifier.php b/config/purifier.php new file mode 100644 index 0000000..59cb78b --- /dev/null +++ b/config/purifier.php @@ -0,0 +1,132 @@ +set('Core.Encoding', $this->config->get('purifier.encoding')); + * $config->set('Cache.SerializerPath', $this->config->get('purifier.cachePath')); + * if ( ! $this->config->get('purifier.finalize')) { + * $config->autoFinalize = false; + * } + * $config->load [$this->getConfig()); + * + * You must NOT delete the default settings + * anything in settings should be compacted with params that needed to instance HTMLPurifier_Config. + * + * @link http://htmlpurifier.org/live/configdoc/plain.html + */ + +// phpcs:disable Generic.Files.LineLength.TooLong +return [ + 'encoding' => 'UTF-8', + 'finalize' => true, + 'cachePath' => storage_path('app/purifier'), + 'cacheFileMode' => 0755, + 'settings' => [ + 'default' => [ + 'HTML.SafeIframe' => true, + // * For iframes + 'URI.SafeIframeRegexp' => "%^(http://|https://|//)(www.youtube.com/embed/|player.vimeo.com/video/|vimeo.com/|www.dailymotion.com/video/)%", + 'HTML.Doctype' => 'HTML 4.01 Transitional', + // * Legacy filter en full avec safe legacy. + // 'HTML.Allowed' => 'h1[style|id],h2[style|id],h3[style|id],h4[style|id],h5[style|id],h6[style|id],figure[class|style],oembed[url],div[style],b,strong,i,em,u,s,pre,code[class],a[href|title|target|rel|id],ul[style],ol[style],dl[style],li,p[style],br,span[style|class],img[width|height|alt|src|style|class|title],iframe[src|width|height|class|frameborder|style],table[style|align|border|cellspacing|cellpadding|width],thead,tbody,th[colspan|align|valign|style],tr[align|valign|style],td[style|colspan|rowspan|scope|align|valign],hr,dl,dt,mark[class]', + // * Restricted basics. + 'HTML.Allowed' => 'br,p[style],b[style],u[style],i[style],a[href|title|target|rel],strong[style],span[class],ul[style],ol[style],li[style],h2[style],h3[style],h4[style],hr,blockquote[style]', + // * Legacy filter en full avec safe legacy. + // 'CSS.AllowedProperties' => 'font,font-size,font-weight,font-style,font-family,text-decoration,padding-left,color,background-color,text-align,list-style-type,float,width,height,vertical-align,border,border-color,margin-left', + // * Restricted basics. + 'CSS.AllowedProperties' => 'text-align,margin-left', + 'AutoFormat.AutoParagraph' => false, + 'AutoFormat.RemoveEmpty' => false, + 'AutoFormat.RemoveEmpty.RemoveNbsp' => false, + ], + "youtube" => [ + "HTML.SafeIframe" => 'true', + "URI.SafeIframeRegexp" => "%^(http://|https://|//)(www.youtube.com/embed/|player.vimeo.com/video/|vimeo.com/|www.dailymotion.com/video/)%", + ], + 'custom_definition' => [ + 'id' => 'html5-definitions', + 'rev' => 1, + 'debug' => true, + 'elements' => [ + // * http://developers.whatwg.org/sections.html + ['section', 'Block', 'Flow', 'Common'], + ['nav', 'Block', 'Flow', 'Common'], + ['article', 'Block', 'Flow', 'Common'], + ['aside', 'Block', 'Flow', 'Common'], + ['header', 'Block', 'Flow', 'Common'], + ['footer', 'Block', 'Flow', 'Common'], + + // * Content model actually excludes several tags, not modelled here + ['address', 'Block', 'Flow', 'Common'], + ['hgroup', 'Block', 'Required: h1 | h2 | h3 | h4 | h5 | h6', 'Common'], + + // * http://developers.whatwg.org/grouping-content.html + ['figure', 'Block', 'Optional: (figcaption, Flow) | (Flow, figcaption) | Flow', 'Common'], + ['figcaption', 'Inline', 'Flow', 'Common'], + ['oembed', 'Inline', 'Flow', 'Common'], + + // * http://developers.whatwg.org/the-video-element.html#the-video-element + ['video', 'Block', 'Optional: (source, Flow) | (Flow, source) | Flow', 'Common', [ + 'src' => 'URI', + 'type' => 'Text', + 'width' => 'Length', + 'height' => 'Length', + 'poster' => 'URI', + 'preload' => 'Enum#auto,metadata,none', + 'controls' => 'Bool', + ]], + ['source', 'Block', 'Flow', 'Common', [ + 'src' => 'URI', + 'type' => 'Text', + ]], + + // * http://developers.whatwg.org/text-level-semantics.html + ['s', 'Inline', 'Inline', 'Common'], + ['var', 'Inline', 'Inline', 'Common'], + ['sub', 'Inline', 'Inline', 'Common'], + ['sup', 'Inline', 'Inline', 'Common'], + ['mark', 'Inline', 'Inline', 'Common'], + ['wbr', 'Inline', 'Empty', 'Core'], + + // * http://developers.whatwg.org/edits.html + ['ins', 'Block', 'Flow', 'Common', ['cite' => 'URI', 'datetime' => 'CDATA']], + ['del', 'Block', 'Flow', 'Common', ['cite' => 'URI', 'datetime' => 'CDATA']], + ], + 'attributes' => [ + ['iframe', 'allowfullscreen', 'Bool'], + ['table', 'height', 'Text'], + ['td', 'border', 'Text'], + ['th', 'border', 'Text'], + ['tr', 'width', 'Text'], + ['tr', 'height', 'Text'], + ['tr', 'border', 'Text'], + ['figure', 'class', 'Text'], + ['figure', 'style', 'Text'], + ['oembed', 'url', 'Text'], + ['span', 'style', 'Text'], + ['img', 'style', 'Text'], + ], + ], + 'custom_attributes' => [ + ['a', 'target', 'Enum#_blank,_self,_target,_top'], + ['a', 'id', 'Text'], + ['ol', 'style', 'Text'], + ['figure', 'style', 'Text'], + ['img', 'style', 'Text'], + ['span', 'style', 'Text'], + ['oembed', 'url', 'Text'], + ['h1', 'id', 'Text'], + ['h2', 'id', 'Text'], + ['h3', 'id', 'Text'], + ['h4', 'id', 'Text'], + ['h5', 'id', 'Text'], + ['h6', 'id', 'Text'], + ], + 'custom_elements' => [ + ['u', 'Inline', 'Inline', 'Common'], + ['oembed', 'Inline', 'Inline', 'Common'], + ], + ], +]; diff --git a/config/queue.php b/config/queue.php index 0ab0902..f5a66b9 100644 --- a/config/queue.php +++ b/config/queue.php @@ -39,6 +39,7 @@ return [ 'table' => 'jobs', 'queue' => 'default', 'retry_after' => 90, + 'after_commit' => false, ], 'beanstalkd' => [ @@ -47,6 +48,7 @@ return [ 'queue' => 'default', 'retry_after' => 90, 'block_for' => 0, + 'after_commit' => false, ], 'sqs' => [ @@ -54,9 +56,10 @@ return [ 'key' => env('AWS_ACCESS_KEY_ID'), 'secret' => env('AWS_SECRET_ACCESS_KEY'), 'prefix' => env('SQS_PREFIX', 'https://sqs.us-east-1.amazonaws.com/your-account-id'), - 'queue' => env('SQS_QUEUE', 'your-queue-name'), + 'queue' => env('SQS_QUEUE', 'default'), 'suffix' => env('SQS_SUFFIX'), 'region' => env('AWS_DEFAULT_REGION', 'us-east-1'), + 'after_commit' => false, ], 'redis' => [ @@ -65,10 +68,27 @@ return [ 'queue' => env('REDIS_QUEUE', 'default'), 'retry_after' => 90, 'block_for' => null, + 'after_commit' => false, ], ], + /* + |-------------------------------------------------------------------------- + | Job Batching + |-------------------------------------------------------------------------- + | + | The following options configure the database and table that store job + | batching information. These options can be updated to any database + | connection and table which has been defined by your application. + | + */ + + 'batching' => [ + 'database' => env('DB_CONNECTION', 'mysql'), + 'table' => 'job_batches', + ], + /* |-------------------------------------------------------------------------- | Failed Queue Jobs @@ -81,7 +101,7 @@ return [ */ 'failed' => [ - 'driver' => env('QUEUE_FAILED_DRIVER', 'database'), + 'driver' => env('QUEUE_FAILED_DRIVER', 'database-uuids'), 'database' => env('DB_CONNECTION', 'mysql'), 'table' => 'failed_jobs', ], diff --git a/config/sentry.php b/config/sentry.php new file mode 100644 index 0000000..29627fe --- /dev/null +++ b/config/sentry.php @@ -0,0 +1,61 @@ + env('SENTRY_LARAVEL_DSN', env('SENTRY_DSN')), + + // The release version of your application. + // Example with dynamic git hash: trim(exec('git --git-dir ' . base_path('.git') . ' log --pretty="%h" -n1 HEAD')). + 'release' => env('SENTRY_RELEASE'), + + // When left empty or `null` the Laravel environment will be used. + 'environment' => env('SENTRY_ENVIRONMENT'), + + 'breadcrumbs' => [ + // Capture Laravel logs in breadcrumbs. + 'logs' => true, + + // Capture SQL queries in breadcrumbs. + 'sql_queries' => true, + + // Capture bindings on SQL queries logged in breadcrumbs. + 'sql_bindings' => false, + + // Capture queue job information in breadcrumbs. + 'queue_info' => true, + + // Capture command information in breadcrumbs. + 'command_info' => true, + ], + + 'tracing' => [ + // Trace queue jobs as their own transactions. + 'queue_job_transactions' => env('SENTRY_TRACE_QUEUE_ENABLED', false), + + // Capture queue jobs as spans when executed on the sync driver. + 'queue_jobs' => true, + + // Capture SQL queries as spans. + 'sql_queries' => true, + + // Try to find out where the SQL query originated from and add it to the query spans. + 'sql_origin' => true, + + // Capture views as spans. + 'views' => true, + + // Indicates if the tracing integrations supplied by Sentry should be loaded. + 'default_integrations' => true, + + // Indicates that requests without a matching route should be traced. + 'missing_routes' => false, + ], + + // @see: https://docs.sentry.io/platforms/php/guides/laravel/configuration/options/#send-default-pii. + 'send_default_pii' => env('SENTRY_SEND_DEFAULT_PII', false), + + // @see: https://docs.sentry.io/platforms/php/guides/laravel/configuration/options/#traces-sample-rate. + 'traces_sample_rate' => env('SENTRY_TRACES_SAMPLE_RATE') === null ? null : (float)env('SENTRY_TRACES_SAMPLE_RATE'), + + 'before_send' => [\App\Lib\Helpers\ExceptionsHelper::class, 'sentryEventHandler'], +]; diff --git a/config/services.php b/config/services.php index 915dfe7..88b9614 100644 --- a/config/services.php +++ b/config/services.php @@ -18,6 +18,7 @@ return [ 'domain' => env('MAILGUN_DOMAIN'), 'secret' => env('MAILGUN_SECRET'), 'endpoint' => env('MAILGUN_ENDPOINT', 'api.mailgun.net'), + 'scheme' => 'https', ], 'postmark' => [ diff --git a/config/session.php b/config/session.php index 13ef89b..d2e3239 100644 --- a/config/session.php +++ b/config/session.php @@ -72,7 +72,7 @@ return [ | */ - 'connection' => env('SESSION_CONNECTION', null), + 'connection' => env('SESSION_CONNECTION'), /* |-------------------------------------------------------------------------- @@ -100,7 +100,7 @@ return [ | */ - 'store' => env('SESSION_STORE', null), + 'store' => env('SESSION_STORE'), /* |-------------------------------------------------------------------------- @@ -155,7 +155,7 @@ return [ | */ - 'domain' => env('SESSION_DOMAIN', null), + 'domain' => env('SESSION_DOMAIN'), /* |-------------------------------------------------------------------------- @@ -164,7 +164,7 @@ return [ | | By setting this option to true, session cookies will only be sent back | to the server if the browser has a HTTPS connection. This will keep - | the cookie from being sent to you if it can not be done securely. + | the cookie from being sent to you when it can't be done securely. | */ diff --git a/config/sitemap-generator.php b/config/sitemap-generator.php new file mode 100644 index 0000000..90853ff --- /dev/null +++ b/config/sitemap-generator.php @@ -0,0 +1,101 @@ + [ + 'back.*', + 'bo.*', + 'fo.verification.*', + 'fo.password.*', + 'front.frame', + 'cspReportUri', + ], + + /** + * This should be filled using the command `php artisan sitemap:install-completer` + * + * 'completeWith' => [CLASS, 'METHOD'], + * eg : 'completeWith' => [CompleteSitemapWith::class, 'append'], + * + * This should point to a static method which will be called with the folowing parameter + * (LDC\SitemapGenerator\Lib\Sitemap $sitemap) + * + * You may now use $sitemap->addLinks('route.myRouteName', string[] $links) + */ + 'completeWith' => null, + + /** + * The default route frequency to use with sitemap generator + */ + 'routeDefaultFrequency' => Url::CHANGE_FREQUENCY_DAILY, + + /** + * The default route priority to use with sitemap generator + * + * priority should be a number between 0 and 1 + * https://www.sitemaps.org/protocol.html + */ + 'routeDefaultPriority' => 0.5, + + /** + * Frequencies for routes + * use the full or partial route name as index + * and a frequency within \Spatie\Sitemap\Tags\Url constants + * + * eg: 'engagments.*' => \Spatie\Sitemap\Tags\Url::CHANGE_FREQUENCY_HOURLY + */ + 'routeFrequencies' => [], + + /** + * Priorities for routes + * use the full or partial route name as index + * and a priority in 1.0, 0.9, 0.8, 0.7, 0.6, 0.5, 0.4, 0.3, 0.2, 0.1, and 0.0. + * + * 1.0 is the Highest + * + * eg: 'engagments.*' => 1.0 + */ + 'routePriorities' => [], + + /** + * Enable or disable schedule for the job + * If set to true the sitemap generator will be run + * using the 'cron' instruction + */ + 'schedule' => true, + + /** + * If you want to set specific + * instruction for when to schedule job + * you can set this with a cron instruction + * You can generate one using https://crontab.guru/ + * + * schedule must be set to true + * + * Default is every day at 15:45 + */ + 'cron' => '45 15 * * *', + + /** + * The sitemap generator can execute JavaScript on each page so it will + * discover links that are generated by your JS scripts. This feature + * is powered by headless Chrome. + * + * ! This needs pupetter installed with npm : npm i puppeteer (not to put in dev dependencies) + */ + 'executeJavascript' => false, +]; diff --git a/config/theme.php b/config/theme.php index 7c73ea4..f74a9c6 100644 --- a/config/theme.php +++ b/config/theme.php @@ -1,6 +1,60 @@ 500, - 'product_image_maxheight' => 500 -]; +return array_replace_recursive( + [ + // * GGW version + 'version' => null, + // * Theme name + 'name' => 'base', + // * Picture BO validation sizes + 'models' => [ + 'prizes' => [ + 'picture_max_width' => 560, + 'picture_max_height' => 700, + ], + 'products' => [ + 'picture_max_width' => 550, + 'picture_max_height' => 550, + ], + 'ranges' => [ + 'picture_max_width' => 476, + 'picture_max_height' => 355, + ], + ], + // * Image resizer config + /** + * Format can specifiy to which format save the image + * JPEG PNG GIF TIF BMP ICO PSD WebP + * GD ✔️ ✔️ ✔️ - - - - ✔️ * + * Imagick ✔️ ✔️ ✔️ ✔️ ✔️ ✔️ ✔️ ✔️ * + * For WebP support GD driver must be used with PHP 5 >= 5.5.0 or PHP 7 + * in order to use imagewebp(). If Imagick is used, it must be compiled + * with libwebp for WebP support. + * resize => will resize the image (boolean) + * fit => Combine cropping and resizing to format image in a smart way (boolean) + * keepRatio => will keep image ratio wile resizing (boolean) + * trim => boolean to trim the image using border color + * inCanvas => to make sure image boundarie is respected + * format => select tha wantd ouput form, yan can just convert images if you want + * example : + * 'small' => [ + * 'height' => 500, + * 'width' => 250, + * 'inCanvas' => true, + * 'trim' => ['transparent', null, 10] + * ], + * 'smallWebp' => [ + * 'height' => 500, + * 'width' => 250, + * 'inCanvas' => true, + * 'format' => 'webp' + * ], + * 'justconvertImage' => [ + * 'format' => 'webp' + * ] + */ + 'resizes' => [] + ], + file_exists(resource_path('theme/mounted/theme.config.php')) ? + require(resource_path('theme/mounted/theme.config.php')) : [], +); diff --git a/config/view.php b/config/view.php index 53008fd..bb1def5 100644 --- a/config/view.php +++ b/config/view.php @@ -15,6 +15,10 @@ return [ 'paths' => [ resource_path('views'), + // ! for theme vendor publish (mail notifications par ex) + resource_path('theme/mounted/views/vendor'), + // ! for vendor publish (mail notifications par ex) + resource_path('views/vendor'), ], /* diff --git a/database/factories/BannedIpFactory.php b/database/factories/BannedIpFactory.php new file mode 100644 index 0000000..06d80c0 --- /dev/null +++ b/database/factories/BannedIpFactory.php @@ -0,0 +1,23 @@ + + */ +class BannedIpFactory extends Factory +{ + /** + * Define the model's default state. + * + * @return array + */ + public function definition(): array + { + return [ + 'ip' => \IPLib\Factory::parseAddressString(fake()->boolean() ? fake()->ipv6() : fake()->ipv4()) + ]; + } +} diff --git a/database/factories/FaqQuestionFactory.php b/database/factories/FaqQuestionFactory.php new file mode 100644 index 0000000..6f66bf8 --- /dev/null +++ b/database/factories/FaqQuestionFactory.php @@ -0,0 +1,24 @@ + + */ +class FaqQuestionFactory extends Factory +{ + /** + * Define the model's default state. + * + * @return array + */ + public function definition(): array + { + return [ + 'question' => 'Question ' . fake()->safeColorName() . ' ?', + 'answer' => fake()->randomHtml() + ]; + } +} diff --git a/database/factories/FaqThemeFactory.php b/database/factories/FaqThemeFactory.php new file mode 100644 index 0000000..53646bb --- /dev/null +++ b/database/factories/FaqThemeFactory.php @@ -0,0 +1,23 @@ + + */ +class FaqThemeFactory extends Factory +{ + /** + * Define the model's default state. + * + * @return array + */ + public function definition(): array + { + return [ + 'name' => 'theme ' . fake()->streetName() + ]; + } +} diff --git a/database/factories/ProductFactory.php b/database/factories/ProductFactory.php new file mode 100644 index 0000000..c46ae31 --- /dev/null +++ b/database/factories/ProductFactory.php @@ -0,0 +1,27 @@ + + */ +class ProductFactory extends Factory +{ + /** + * Define the model's default state. + * + * @return array + */ + public function definition(): array + { + return [ + 'name' => 'product ' . \fake()->jobTitle(), + // * EAN 13 generate + 'ean_code' => fake()->randomNumber(8, true) . fake()->randomNumber(5, true), + 'picture_alt' => fake()->sentence(), + 'picture_title' => fake()->sentence(), + ]; + } +} diff --git a/database/factories/RangeFactory.php b/database/factories/RangeFactory.php new file mode 100644 index 0000000..6343e04 --- /dev/null +++ b/database/factories/RangeFactory.php @@ -0,0 +1,25 @@ + + */ +class RangeFactory extends Factory +{ + /** + * Define the model's default state. + * + * @return array + */ + public function definition(): array + { + return [ + 'name' => 'range ' . \fake()->jobTitle(), + 'picture_alt' => fake()->sentence(), + 'picture_title' => fake()->sentence(), + ]; + } +} diff --git a/database/factories/UserFactory.php b/database/factories/UserFactory.php new file mode 100644 index 0000000..8a8bc99 --- /dev/null +++ b/database/factories/UserFactory.php @@ -0,0 +1,44 @@ + + */ + public function definition() + { + $published = $this->faker->boolean(75); + return [ + 'first_name' => fake()->firstname(), + 'last_name' => fake()->lastname(), + 'email' => fake()->unique()->safeEmail(), + 'email_verified_at' => now(), + 'password' => '$2y$10$92IXUNpkjO0rOQ5byMi.Ye4oKoEa3Ro9llC/.og/at2.uheWG/igi', + 'remember_token' => Str::random(10), + 'role' => \collect(RoleEnum::toArray())->random()->value, + 'published' => $published, + 'published_at' => ($published) ? now() : null, + ]; + } + + /** + * Indicate that the model's email address should be unverified. + * + * @return static + */ + public function unverified(): static + { + // phpcs:ignore Generic.CodeAnalysis.UnusedFunctionParameter.FoundInExtendedClass + return $this->state(fn (array $attributes) => [ + 'email_verified_at' => null, + ]); + } +} diff --git a/database/factories/assets/prizes/lot-1.png b/database/factories/assets/prizes/lot-1.png new file mode 100644 index 0000000..7640414 Binary files /dev/null and b/database/factories/assets/prizes/lot-1.png differ diff --git a/database/factories/assets/prizes/lot-2.png b/database/factories/assets/prizes/lot-2.png new file mode 100644 index 0000000..fe6c982 Binary files /dev/null and b/database/factories/assets/prizes/lot-2.png differ diff --git a/database/factories/assets/products/default-picture-550x550.jpg b/database/factories/assets/products/default-picture-550x550.jpg new file mode 100644 index 0000000..00854b0 Binary files /dev/null and b/database/factories/assets/products/default-picture-550x550.jpg differ diff --git a/database/factories/assets/ranges/default-picture-476x355.jpg b/database/factories/assets/ranges/default-picture-476x355.jpg new file mode 100644 index 0000000..ae3d58f Binary files /dev/null and b/database/factories/assets/ranges/default-picture-476x355.jpg differ diff --git a/database/migrations/2014_10_12_000000_create_users_table.php b/database/migrations/2014_10_12_000000_create_users_table.php index 9f73828..612e0a9 100644 --- a/database/migrations/2014_10_12_000000_create_users_table.php +++ b/database/migrations/2014_10_12_000000_create_users_table.php @@ -4,7 +4,7 @@ use Illuminate\Database\Migrations\Migration; use Illuminate\Database\Schema\Blueprint; use Illuminate\Support\Facades\Schema; -class CreateUsersTable extends Migration +return new class extends Migration { /** * Run the migrations. @@ -15,23 +15,15 @@ class CreateUsersTable extends Migration { Schema::create('users', function (Blueprint $table) { $table->id(); - $table->integer('crm_id')->nullable(); - $table->string('firstname'); - $table->string('lastname'); - $table->date('birth_date')->nullable(); - $table->string('email')->unique(); - $table->string('password'); - $table->string('address')->nullable(); - $table->string('address2')->nullable(); - $table->string('town')->nullable(); - $table->string('postal_code')->nullable(); - $table->string('country')->nullable(); - $table->string('phone')->nullable(); - $table->string('email_verify_token')->nullable(); - $table->boolean('email_verified')->default(0); - $table->string('password_token')->nullable(); - $table->integer('role')->default(3); + $table->string('first_name')->comment('First name of the user.'); + $table->string('last_name')->comment('Last name of the user.'); + $table->string('email')->unique()->comment('Email of the user.'); + $table->timestamp('email_verified_at')->nullable(); + $table->string('password')->comment('Password of the user account.'); $table->rememberToken(); + $table->unsignedTinyInteger('role')->comment('Role of the user who defines the rights/access.'); + $table->boolean('published')->comment('The user is acivated or not.'); + $table->timestamp('published_at')->nullable()->comment('The date on which the user was acivated.'); $table->timestamps(); }); } @@ -45,4 +37,4 @@ class CreateUsersTable extends Migration { Schema::dropIfExists('users'); } -} +}; diff --git a/database/migrations/2014_10_12_100000_create_password_resets_table.php b/database/migrations/2014_10_12_100000_create_password_resets_table.php index 0ee0a36..fcacb80 100644 --- a/database/migrations/2014_10_12_100000_create_password_resets_table.php +++ b/database/migrations/2014_10_12_100000_create_password_resets_table.php @@ -4,7 +4,7 @@ use Illuminate\Database\Migrations\Migration; use Illuminate\Database\Schema\Blueprint; use Illuminate\Support\Facades\Schema; -class CreatePasswordResetsTable extends Migration +return new class extends Migration { /** * Run the migrations. @@ -29,4 +29,4 @@ class CreatePasswordResetsTable extends Migration { Schema::dropIfExists('password_resets'); } -} +}; diff --git a/database/migrations/2019_08_19_000000_create_failed_jobs_table.php b/database/migrations/2019_08_19_000000_create_failed_jobs_table.php index fc1304f..1719198 100644 --- a/database/migrations/2019_08_19_000000_create_failed_jobs_table.php +++ b/database/migrations/2019_08_19_000000_create_failed_jobs_table.php @@ -4,7 +4,7 @@ use Illuminate\Database\Migrations\Migration; use Illuminate\Database\Schema\Blueprint; use Illuminate\Support\Facades\Schema; -class CreateFailedJobsTable extends Migration +return new class extends Migration { /** * Run the migrations. @@ -15,7 +15,7 @@ class CreateFailedJobsTable extends Migration { Schema::create('failed_jobs', function (Blueprint $table) { $table->id(); - $table->string('uuid')->nullable()->unique(); + $table->string('uuid')->unique(); $table->text('connection'); $table->text('queue'); $table->longText('payload'); @@ -33,4 +33,4 @@ class CreateFailedJobsTable extends Migration { Schema::dropIfExists('failed_jobs'); } -} +}; diff --git a/database/migrations/2020_10_12_123129_create_settings.php b/database/migrations/2020_10_12_123129_create_settings.php index f735076..9063c2b 100644 --- a/database/migrations/2020_10_12_123129_create_settings.php +++ b/database/migrations/2020_10_12_123129_create_settings.php @@ -4,7 +4,7 @@ use Illuminate\Database\Migrations\Migration; use Illuminate\Database\Schema\Blueprint; use Illuminate\Support\Facades\Schema; -class CreateSettings extends Migration +return new class extends Migration { /** * Run the migrations. @@ -15,33 +15,44 @@ class CreateSettings extends Migration { Schema::create('settings', function (Blueprint $table) { $table->id(); - $table->string('name'); - $table->dateTime('start_date'); - $table->dateTime('end_date'); - $table->integer('nb_participation_player'); - $table->integer('nb_participation_ip'); - $table->integer('nb_unique_code_use'); - $table->smallInteger('code_length') - ->default(config('codes.codeLength')); - $table->boolean('use_ean_codes'); - $table->boolean('activated_teaser'); - $table->dateTime('teaser_end_activity')->nullable(); - $table->boolean('activated_close_page'); - $table->dateTime('close_page_active_date')->nullable(); - $table->string('redirect_close'); - $table->boolean('reductions_activated'); - $table->string('reductions_site')->nullable(); - $table->string('reductions_campaign')->nullable(); - $table->text('web_coupons')->nullable(); - $table->boolean('facebook_activated'); - $table->string('facebook_app_id')->nullable(); - $table->string('facebook_secret')->nullable(); - $table->text('notification_emails')->nullable(); - $table->boolean('winning_proof'); - $table->string('company'); - $table->string('analytics', 20)->nullable(); + $table->string('name')->comment('Nom du jeu'); + $table->string('company')->comment('Nom de la société qui organise le jeu'); + + $table->timestamp('start_date')->useCurrent()->comment('Date de début du jeu'); + $table->timestamp('end_date')->useCurrent()->comment('Date de début du jeu'); + + $table->integer('nb_participation_player') + ->comment('Nombre de participation par joueur (compte crm), (0 = illimité)'); + $table->integer('nb_participation_ip')->comment('Nombre de participation par adresse ip, (0 = illimité)'); + $table->integer('nb_unique_code_use') + // phpcs:ignore Generic.Files.LineLength.TooLong + ->comment('Nombre d\'utilisation max d\'un code unique par plusieurs joueurs, (0 = illimité) (Dans tous les cas 1 joueur ne peut utiliser qu\'une seule fois 1 code donné)'); + $table->boolean('use_ean_codes')->comment('Le joueur doivent entrer le code EAN du produit porteur'); + + $table->boolean('activated_teaser')->comment('Le teaser est activé, sinon redirection vers close page'); + $table->boolean('activated_close_page') + ->comment('La page de cloture est activée, sinon redirection vers close page'); + $table->timestamp('close_page_active_date')->nullable() + ->comment('Date limite pour utiliser la page de cloture, sinon redirection vers close page'); + $table->string('redirect_close')->comment('Lien de redirection du jeu quand celui-ci est fermé'); + + $table->boolean('discounts_activated') + ->comment('Les bon de réduction sont activés (gains de BR possibles)'); + $table->string('discounts_site')->nullable()->comment('Champ mesBR "site"'); + $table->string('discounts_campaign')->nullable()->comment('Champ mesBR "campaign"'); + + $table->json('web_coupons')->nullable()->comment('Les coupons disponibles comme gain pour les joueurs'); + $table->json('notification_emails')->nullable()->comment('Les mails à notifier pour les évènements de jeu'); + + $table->boolean('winning_proof') + ->comment('Les preuves de gains sont obligatoires (pdf sont à mettre dans prizes)'); + + $table->boolean('notify_prize_sent') + ->comment( + 'Envoyer une notification au participants quand leur + lot est marqué comme envoyé dans l\'interface' + ); $table->timestamps(); - $table->collation = 'utf8mb4_unicode_ci'; }); } @@ -54,4 +65,4 @@ class CreateSettings extends Migration { Schema::dropIfExists('settings'); } -} +}; diff --git a/database/migrations/2020_10_15_093304_create_gain_views.php b/database/migrations/2020_10_15_093304_create_gain_views.php deleted file mode 100644 index 3d26e29..0000000 --- a/database/migrations/2020_10_15_093304_create_gain_views.php +++ /dev/null @@ -1,33 +0,0 @@ -id(); - $table->string('name'); - $table->string('file_name'); - $table->timestamps(); - }); - } - - /** - * Reverse the migrations. - * - * @return void - */ - public function down() - { - Schema::dropIfExists('gain_views'); - } -} diff --git a/database/migrations/2020_10_20_165858_create_codes.php b/database/migrations/2020_10_20_165858_create_codes.php index 4846556..dfd96d1 100644 --- a/database/migrations/2020_10_20_165858_create_codes.php +++ b/database/migrations/2020_10_20_165858_create_codes.php @@ -4,7 +4,7 @@ use Illuminate\Database\Migrations\Migration; use Illuminate\Database\Schema\Blueprint; use Illuminate\Support\Facades\Schema; -class CreateCodes extends Migration +return new class extends Migration { /** * Run the migrations. @@ -14,10 +14,9 @@ class CreateCodes extends Migration public function up() { Schema::create('codes', function (Blueprint $table) { - $table->id(); - $table->boolean('code_used')->default(0); - $table->boolean('code_exported')->default(0); - $table->date('date_creation'); + $table->unsignedBigInteger('id')->primary(); + $table->boolean('code_exported')->default(0)->comment('Has the code been exported ?'); + $table->date('date_creation')->comment('Code creation date'); }); } @@ -30,4 +29,4 @@ class CreateCodes extends Migration { Schema::dropIfExists('codes'); } -} +}; diff --git a/database/migrations/2020_10_20_171937_create_code_eans.php b/database/migrations/2020_10_20_171937_create_code_eans.php deleted file mode 100644 index 56c2cb6..0000000 --- a/database/migrations/2020_10_20_171937_create_code_eans.php +++ /dev/null @@ -1,33 +0,0 @@ -id(); - $table->string('code'); - $table->string('product'); - $table->unique('code'); - }); - } - - /** - * Reverse the migrations. - * - * @return void - */ - public function down() - { - Schema::dropIfExists('code_eans'); - } -} diff --git a/database/migrations/2020_10_23_094235_create_banned_ips.php b/database/migrations/2020_10_23_094235_create_banned_ips.php index 152e2aa..bbdcc9e 100644 --- a/database/migrations/2020_10_23_094235_create_banned_ips.php +++ b/database/migrations/2020_10_23_094235_create_banned_ips.php @@ -4,7 +4,7 @@ use Illuminate\Database\Migrations\Migration; use Illuminate\Database\Schema\Blueprint; use Illuminate\Support\Facades\Schema; -class CreateBannedIps extends Migration +return new class extends Migration { /** * Run the migrations. @@ -15,8 +15,8 @@ class CreateBannedIps extends Migration { Schema::create('banned_ips', function (Blueprint $table) { $table->id(); - $table->string('ip'); - $table->unique('ip'); + $table->string('ip', 50)->unique()->comment('IPv4 ou IPv6 Bannie (textual representation)'); + $table->string('raison')->nullable()->comment('Raison du ban ?'); }); } @@ -29,4 +29,4 @@ class CreateBannedIps extends Migration { Schema::dropIfExists('banned_ips'); } -} +}; diff --git a/database/migrations/2020_10_23_153212_create_contents.php b/database/migrations/2020_10_23_153212_create_contents.php deleted file mode 100644 index 6617b31..0000000 --- a/database/migrations/2020_10_23_153212_create_contents.php +++ /dev/null @@ -1,33 +0,0 @@ -id(); - $table->string('key'); - $table->text('value'); - $table->timestamps(); - }); - } - - /** - * Reverse the migrations. - * - * @return void - */ - public function down() - { - Schema::dropIfExists('content'); - } -} diff --git a/database/migrations/2020_10_26_093014_create_faq_themes.php b/database/migrations/2020_10_26_093014_create_faq_themes.php index 6ee238b..5153231 100644 --- a/database/migrations/2020_10_26_093014_create_faq_themes.php +++ b/database/migrations/2020_10_26_093014_create_faq_themes.php @@ -4,7 +4,7 @@ use Illuminate\Database\Migrations\Migration; use Illuminate\Database\Schema\Blueprint; use Illuminate\Support\Facades\Schema; -class CreateFaqThemes extends Migration +return new class extends Migration { /** * Run the migrations. @@ -29,4 +29,4 @@ class CreateFaqThemes extends Migration { Schema::dropIfExists('faq_themes'); } -} +}; diff --git a/database/migrations/2020_10_26_093746_create_faq_questions.php b/database/migrations/2020_10_26_093746_create_faq_questions.php index ef4d55d..1d7ce00 100644 --- a/database/migrations/2020_10_26_093746_create_faq_questions.php +++ b/database/migrations/2020_10_26_093746_create_faq_questions.php @@ -4,7 +4,7 @@ use Illuminate\Database\Migrations\Migration; use Illuminate\Database\Schema\Blueprint; use Illuminate\Support\Facades\Schema; -class CreateFaqQuestions extends Migration +return new class extends Migration { /** * Run the migrations. @@ -17,8 +17,6 @@ class CreateFaqQuestions extends Migration $table->id(); $table->string('question'); $table->text('answer'); - $table->unsignedInteger('positive_vote')->nullable(); - $table->unsignedInteger('negative_vote')->nullable(); $table->foreignId('theme_id')->constrained('faq_themes'); $table->timestamps(); }); @@ -33,4 +31,4 @@ class CreateFaqQuestions extends Migration { Schema::dropIfExists('faq_questions'); } -} +}; diff --git a/database/migrations/2020_10_27_160038_create_discounts.php b/database/migrations/2020_10_27_160038_create_discounts.php new file mode 100644 index 0000000..9fa8434 --- /dev/null +++ b/database/migrations/2020_10_27_160038_create_discounts.php @@ -0,0 +1,34 @@ +id(); + $table->string('link')->comment('Lien généré par le client MesBr pour accéder au Coupon'); + $table->string('basket_id')->comment('Identifiant du panier MesBr (spécifique au client)'); + $table->string('verification')->comment('Lien généré par le client MesBr pour ??'); + $table->timestamps(); + }); + } + + /** + * Reverse the migrations. + * + * @return void + */ + public function down() + { + Schema::dropIfExists('discounts'); + } +}; diff --git a/database/migrations/2020_10_27_160038_create_reductions.php b/database/migrations/2020_10_27_160038_create_reductions.php deleted file mode 100644 index 88a96b5..0000000 --- a/database/migrations/2020_10_27_160038_create_reductions.php +++ /dev/null @@ -1,34 +0,0 @@ -id(); - $table->string('link'); - $table->string('basket_id'); - $table->string('verification'); - $table->timestamps(); - }); - } - - /** - * Reverse the migrations. - * - * @return void - */ - public function down() - { - Schema::dropIfExists('reductions'); - } -} diff --git a/database/migrations/2020_10_28_091935_create_participations.php b/database/migrations/2020_10_28_091935_create_participations.php deleted file mode 100644 index fff21fe..0000000 --- a/database/migrations/2020_10_28_091935_create_participations.php +++ /dev/null @@ -1,39 +0,0 @@ -id(); - $table->string('ip'); - $table->string('sticker')->nullable(); - $table->string('ticket')->nullable(); - $table->string('barcode')->nullable(); - $table->foreignId('user_id')->constrained('users'); - $table->foreignId('code_unique_id')->constrained('codes'); - $table->foreignId('code_ean_id')->nullable()->constrained('code_eans'); - $table->foreignId('reduction_id')->nullable()->constrained('reductions'); - $table->timestamps(); - }); - } - - /** - * Reverse the migrations. - * - * @return void - */ - public function down() - { - Schema::dropIfExists('participations'); - } -} diff --git a/database/migrations/2020_10_29_091811_create_prizes.php b/database/migrations/2020_10_29_091811_create_prizes.php index 3bfb1e5..56ece3f 100644 --- a/database/migrations/2020_10_29_091811_create_prizes.php +++ b/database/migrations/2020_10_29_091811_create_prizes.php @@ -4,7 +4,7 @@ use Illuminate\Database\Migrations\Migration; use Illuminate\Database\Schema\Blueprint; use Illuminate\Support\Facades\Schema; -class CreatePrizes extends Migration +return new class extends Migration { /** * Run the migrations. @@ -15,18 +15,18 @@ class CreatePrizes extends Migration { Schema::create('prizes', function (Blueprint $table) { $table->id(); - $table->string("label_one"); - $table->string("label_many"); - $table->string("arg_title"); - $table->string("arg_subtitle"); - $table->text("arg_content"); - $table->integer("quantity"); - $table->integer("arcadia_operation_code")->default(0); - $table->integer("arcadia_support_code")->default(0); - $table->string("pdf_winning_proof")->nullable(); - $table->boolean("need_proof")->default(false); - $table->unsignedBigInteger("arcadia_id"); - $table->foreignId("gain_view_id")->constrained("gain_views"); + $table->string('label')->comment('Libellé'); + + $table->string('picture')->comment('Image du lot'); + $table->string('picture_alt')->comment('Attribut alt de l\'image du lot'); + $table->string('picture_title')->comment('Attribut title de l\'image du lot'); + + $table->string('arg_title')->comment('Tire argumentaire'); + $table->string('arg_subtitle')->nullable()->comment('Sous-titre argumentaire'); + $table->text('arg_content')->comment('Contenu argumentaire'); + $table->integer('quantity')->comment('Quantitée en jeu du lot'); + $table->string('pdf_winning_proof')->nullable() + ->comment('Pdf de preuve de gains à compléter par le joueur qui aurait gagné'); $table->timestamps(); }); } @@ -40,4 +40,4 @@ class CreatePrizes extends Migration { Schema::dropIfExists('prizes'); } -} +}; diff --git a/database/migrations/2020_10_29_120243_create_instant_wins.php b/database/migrations/2020_10_29_120243_create_instant_wins.php deleted file mode 100644 index 34e8f80..0000000 --- a/database/migrations/2020_10_29_120243_create_instant_wins.php +++ /dev/null @@ -1,35 +0,0 @@ -id(); - $table->dateTime('appear_date'); - $table->boolean('won')->default(0); - $table->foreignId('prize_id')->constrained('prizes'); - $table->foreignId('participation_id')->nullable() - ->constrained('participations')->unique(); - }); - } - - /** - * Reverse the migrations. - * - * @return void - */ - public function down() - { - Schema::dropIfExists('instant_wins'); - } -} diff --git a/database/migrations/2020_11_02_120718_create_jobs_table.php b/database/migrations/2020_11_02_120718_create_jobs_table.php index 1be9e8a..a786a89 100644 --- a/database/migrations/2020_11_02_120718_create_jobs_table.php +++ b/database/migrations/2020_11_02_120718_create_jobs_table.php @@ -4,7 +4,7 @@ use Illuminate\Database\Migrations\Migration; use Illuminate\Database\Schema\Blueprint; use Illuminate\Support\Facades\Schema; -class CreateJobsTable extends Migration +return new class extends Migration { /** * Run the migrations. @@ -33,4 +33,4 @@ class CreateJobsTable extends Migration { Schema::dropIfExists('jobs'); } -} +}; diff --git a/database/migrations/2021_08_18_154119_create_model_ranges_table.php b/database/migrations/2021_08_18_154119_create_model_ranges_table.php index f393ab8..fc0f3d8 100644 --- a/database/migrations/2021_08_18_154119_create_model_ranges_table.php +++ b/database/migrations/2021_08_18_154119_create_model_ranges_table.php @@ -4,7 +4,7 @@ use Illuminate\Database\Migrations\Migration; use Illuminate\Database\Schema\Blueprint; use Illuminate\Support\Facades\Schema; -class CreateModelRangesTable extends Migration +return new class extends Migration { /** * Run the migrations. @@ -28,4 +28,4 @@ class CreateModelRangesTable extends Migration { Schema::dropIfExists('model_ranges'); } -} +}; diff --git a/database/migrations/2021_08_18_154140_create_ranges_table.php b/database/migrations/2021_08_18_154140_create_ranges_table.php index 77a3fdd..f127b01 100644 --- a/database/migrations/2021_08_18_154140_create_ranges_table.php +++ b/database/migrations/2021_08_18_154140_create_ranges_table.php @@ -4,7 +4,7 @@ use Illuminate\Database\Migrations\Migration; use Illuminate\Database\Schema\Blueprint; use Illuminate\Support\Facades\Schema; -class CreateRangesTable extends Migration +return new class extends Migration { /** * Run the migrations. @@ -15,8 +15,12 @@ class CreateRangesTable extends Migration { Schema::create('ranges', function (Blueprint $table) { $table->id(); - $table->string('name'); - $table->string('picture')->nullable(); + + $table->string('name')->comment('Nom de la gamme'); + $table->string('picture')->nullable()->comment('Image de la gamme'); + $table->string('picture_alt')->nullable()->comment('Attribut alt de l\'image de la gamme'); + $table->string('picture_title')->nullable()->comment('Attribut title de l\'image de la gamme'); + $table->timestamps(); }); } @@ -30,4 +34,4 @@ class CreateRangesTable extends Migration { Schema::dropIfExists('ranges'); } -} +}; diff --git a/database/migrations/2021_08_18_162010_create_products_table.php b/database/migrations/2021_08_18_162010_create_products_table.php index 2911e7d..c7c4653 100644 --- a/database/migrations/2021_08_18_162010_create_products_table.php +++ b/database/migrations/2021_08_18_162010_create_products_table.php @@ -4,7 +4,7 @@ use Illuminate\Database\Migrations\Migration; use Illuminate\Database\Schema\Blueprint; use Illuminate\Support\Facades\Schema; -class CreateProductsTable extends Migration +return new class extends Migration { /** * Run the migrations. @@ -15,10 +15,13 @@ class CreateProductsTable extends Migration { Schema::create('products', function (Blueprint $table) { $table->id(); - $table->string('name'); - $table->unsignedInteger('no_art')->nullable(); - $table->string('picture')->nullable(); - $table->string('code_ean'); + $table->string('name')->comment('Nom du produit'); + $table->string('picture')->nullable()->comment('Image du produit'); + $table->string('picture_alt')->nullable()->comment('Attribut alt de l\'image du produit'); + $table->string('picture_title')->nullable()->comment('Attribut title de l\'image du produit'); + + $table->unsignedBigInteger('ean_code')->comment('Code EAN du produit pour la participation au jeu'); + $table->foreignId('range_id')->before('created_at')->references('id') ->on('ranges')->onDelete('cascade'); $table->timestamps(); @@ -34,4 +37,4 @@ class CreateProductsTable extends Migration { Schema::dropIfExists('products'); } -} +}; diff --git a/database/migrations/2023_08_16_092101_create_customers_table.php b/database/migrations/2023_08_16_092101_create_customers_table.php new file mode 100644 index 0000000..7787d28 --- /dev/null +++ b/database/migrations/2023_08_16_092101_create_customers_table.php @@ -0,0 +1,42 @@ +id(); + + $table->string('email')->unique()->comment('Email du client'); + $table->string('hashcode')->unique()->comment('Hashcode crm du client'); + + $table->string('email_verify_token')->nullable() + ->comment('Token pour vérification de mail'); + $table->timestamp('email_verified_at')->nullable()->comment('Le mail de ce client est vérifié ?'); + $table->timestamp('last_connection')->nullable()->comment('Date de dernière connexion'); + + $table->rememberToken(); + $table->timestamps(); + $table->softDeletes(); + }); + } + + /** + * Reverse the migrations. + * + * @return void + */ + public function down() + { + Schema::dropIfExists('customers'); + } +}; diff --git a/database/migrations/2023_08_22_091935_create_participations.php b/database/migrations/2023_08_22_091935_create_participations.php new file mode 100644 index 0000000..2c8b5e0 --- /dev/null +++ b/database/migrations/2023_08_22_091935_create_participations.php @@ -0,0 +1,54 @@ +id(); + $table->string('ip')->comment('Adresse ip de la participation'); + + $table->string('sticker')->nullable()->comment('Si gagnant, fichier image du sticker utilisé'); + $table->string('ticket')->nullable() + ->comment('Si gagnant, fichier image du ticket de caisse prouvant l\'achat du produit stické'); + $table->string('barcode')->nullable() + ->comment('Si gagnant, fichier image du code-barres du produit acheté'); + + $table->text('comment')->default('')->comment('Si gagnant, Commentaire des gestionnaires du jeu'); + $table->boolean('prize_sent')->default(0)->comment('Si gagnant, alors est-ce-que le lot à été envoyé ?'); + + // * RELATIONSHIPS + $table->foreignId('customer_id')->comment('Customer participant') + ->constrained('customers'); + $table->foreignId('code_unique_id')->comment('Code unique utilisé') + ->constrained('codes'); + $table->foreignId('product_id')->nullable() + ->comment('Si code EAN activés, Produit porteur de l\'offre (code ean indiqué)') + ->constrained('products'); + + $table->foreignId('discount_id')->nullable() + ->comment('Bon de réduction gagné')->constrained('discounts'); + + $table->timestamps(); + }); + } + + /** + * Reverse the migrations. + * + * @return void + */ + public function down() + { + Schema::dropIfExists('participations'); + } +}; diff --git a/database/migrations/2023_08_22_120243_create_instant_wins.php b/database/migrations/2023_08_22_120243_create_instant_wins.php new file mode 100644 index 0000000..3d0f349 --- /dev/null +++ b/database/migrations/2023_08_22_120243_create_instant_wins.php @@ -0,0 +1,37 @@ +id(); + $table->timestamp('available_at') + ->comment('La date-heure à laquelle l\'instant gagnant pourras être gagné'); + + $table->foreignId('prize_id')->comment('Le lot qui à été gagné')->constrained('prizes'); + $table->foreignId('participation_id') + ->comment('Le customer participant qui à gagné avec les informations sur sa participation') + ->nullable()->constrained('participations')->unique(); + }); + } + + /** + * Reverse the migrations. + * + * @return void + */ + public function down() + { + Schema::dropIfExists('instant_wins'); + } +}; diff --git a/database/migrations/2023_09_08_102717_create_actitivy_logs_table.php b/database/migrations/2023_09_08_102717_create_actitivy_logs_table.php new file mode 100644 index 0000000..aeb4d90 --- /dev/null +++ b/database/migrations/2023_09_08_102717_create_actitivy_logs_table.php @@ -0,0 +1,39 @@ +id(); + $table->foreignId('user_id')->nullable()->constrained('users') + ->comment('Id of the user associated, or nullable for a deleted user.'); + $table->boolean('is_anonymous')->comment('If there is no user connected when action was realised.'); + $table->boolean('is_console')->comment('If the action was realised in console.'); + $table->string('model_class')->comment('Target model.'); + $table->integer('model_id')->comment('Id of the target model.'); + $table->integer('event')->comment('Event of this activity (ActivityLogsEventEnum).'); + $table->json('data')->nullable()->comment('List of changes (old and new values).'); + $table->timestamp('created_at')->comment('The date on which the user was published.'); + }); + } + + /** + * Reverse the migrations. + * + * @return void + */ + public function down(): void + { + Schema::dropIfExists('activity_logs'); + } +}; diff --git a/database/migrations/2023_10_19_094711_create_static_pages.php b/database/migrations/2023_10_19_094711_create_static_pages.php new file mode 100644 index 0000000..9ce6b75 --- /dev/null +++ b/database/migrations/2023_10_19_094711_create_static_pages.php @@ -0,0 +1,42 @@ +id(); + + $table->unsignedTinyInteger('type')->unique()->comment('Page type (StaticPageEnum)'); + + $table->string('seo_title')->comment('Seo title about 70 chars as recommended'); + $table->string('seo_description')->comment('Seo description about 160 chars as recommended'); + + $table->string('title')->comment('Title for the page'); + $table->string('slug')->unique()->comment('Unique title slug'); + + $table->text('content')->comment('WYSIWYG text content using ckeditor'); + + $table->timestamps(); + }); + } + + /** + * Reverse the migrations. + * + * @return void + */ + public function down(): void + { + Schema::dropIfExists('static_pages'); + } +}; diff --git a/database/migrations/2030_01_01_000001_mandatory_seeds.php b/database/migrations/2030_01_01_000001_mandatory_seeds.php new file mode 100644 index 0000000..9d718ce --- /dev/null +++ b/database/migrations/2030_01_01_000001_mandatory_seeds.php @@ -0,0 +1,30 @@ + MandatorySeeder::class + ]); + } + + /** + * Reverse the migrations. + * + * @return void + */ + public function down(): void + { + // Do nothing. + } +}; diff --git a/database/seeders/ContentSeeder.php b/database/seeders/ContentSeeder.php deleted file mode 100644 index b58c58a..0000000 --- a/database/seeders/ContentSeeder.php +++ /dev/null @@ -1,33 +0,0 @@ -key = "mentions legales"; - $mentions->value = "..."; - - $charte = new Content(); - $charte->key = "charte"; - $charte->value = "..."; - - $reglement = new Content(); - $reglement->key = "reglement"; - $reglement->value = "..."; - - $mentions->save(); - $charte->save(); - $reglement->save(); - } -} diff --git a/database/seeders/DatabaseSeeder.php b/database/seeders/DatabaseSeeder.php index 9aa2016..7e8541e 100644 --- a/database/seeders/DatabaseSeeder.php +++ b/database/seeders/DatabaseSeeder.php @@ -13,8 +13,11 @@ class DatabaseSeeder extends Seeder */ public function run() { - $this->call(SettingsSeeder::class); - $this->call(ContentSeeder::class); - $this->call(PrizeSeeder::class); + // * Mandatory Seeders + $this->call([ + MandatorySeeder::class, + DevelopmentSeeder::class, + UserSeeder::class + ]); } } diff --git a/database/seeders/Development/BannedIpSeeder.php b/database/seeders/Development/BannedIpSeeder.php new file mode 100644 index 0000000..b9ada1c --- /dev/null +++ b/database/seeders/Development/BannedIpSeeder.php @@ -0,0 +1,24 @@ +truncate(); + BannedIp::factory(fake()->numberBetween(15, 45))->create(); + } +} diff --git a/database/seeders/Development/PrizeSeeder.php b/database/seeders/Development/PrizeSeeder.php new file mode 100644 index 0000000..47e465f --- /dev/null +++ b/database/seeders/Development/PrizeSeeder.php @@ -0,0 +1,64 @@ +truncate(); + Schema::enableForeignKeyConstraints(); + + File::deleteDirectory(\storage_path('app/public/modelfiles/prizes')); + + $prize = new Prize(); + $prize->label = 'Wonderbox Sportives et aventurières'; + $prize->arg_title = 'Wonderbox Sportives et aventurières'; + $prize->arg_subtitle = '1 activité pour 2 à 6 personnes'; + // phpcs:ignore Generic.Files.LineLength.TooLong + $prize->arg_content = '1640 activités en famille : cinéma, visite d’un zoo ou d’un château, spectacle au théâtre, cirque, balade en bateau, randonnée équestre, atelier culinaire… Les petits et les grands vont se régaler : sortie à l’aquarium de Paris pour faire connaissance avec ses 10 000 pensionnaires, atelier culinaire pour savourer une bonne dose de bonheur, découverte du bassin de la Villette en bateau électrique, rencontre avec le nouveau monde de Mini World Lyon…'; + $prize->picture = FileStorageHelper::storeFile( + new Prize(), + new \SplFileInfo( + \resource_path('../database/factories/assets/prizes/lot-1.png') + ) + ); + $prize->picture_title = 'Wonderbox Sportives et aventurières'; + $prize->picture_alt = 'Un coffret cadeau avec des personnes faisant du rift sur un bateau gonflable.'; + $prize->quantity = 1; + $prize->saveOrFail(); + + $prize = new Prize(); + $prize->label = 'Wonderbox Happy Day'; + $prize->arg_title = 'Wonderbox Happy Day'; + $prize->arg_subtitle = '1 activité pour 1 à 2 personnes'; + // phpcs:ignore Generic.Files.LineLength.TooLong + $prize->arg_content = 'Plus de 2500 activités : laser game, bowling, balade en canoë, cinéma, repas, dégustation de macarons… Besoin d’une super activité pour déconnecter ? Soyez prêts, vous allez adorer cette journée : parties de bowling endiablées à Châlons-en-Champagne, séance de Taï Chi ou de Wing Chung à Bordeaux ou pizza à déguster face à Notre-Dame de Paris… Voici tout ce dont vous avez besoin pour apprécier un Happy Day !'; + $prize->picture = FileStorageHelper::storeFile( + new Prize(), + new \SplFileInfo( + \resource_path('../database/factories/assets/prizes/lot-2.png') + ) + ); + $prize->picture_title = 'Wonderbox Happy Day'; + $prize->picture_alt = 'Un coffret cadeau avec une femme faisant du canöe en mer.'; + $prize->quantity = 2; + $prize->saveOrFail(); + } +} diff --git a/database/seeders/Development/ProductSeeder.php b/database/seeders/Development/ProductSeeder.php new file mode 100644 index 0000000..067bdb0 --- /dev/null +++ b/database/seeders/Development/ProductSeeder.php @@ -0,0 +1,45 @@ +truncate(); + DB::table('ranges')->truncate(); + Schema::enableForeignKeyConstraints(); + + File::deleteDirectory(\storage_path('app/public/modelfiles/ranges')); + File::deleteDirectory(\storage_path('app/public/modelfiles/products')); + + $this->call(RangeSeeder::class); + + Range::all()->each(function (Range $range) { + Product::factory(6)->make()->each(function (Product $product) use ($range) { + $product->picture = FileStorageHelper::storeFile( + new Range(), + new \SplFileInfo( + \resource_path('../database/factories/assets/products/default-picture-550x550.jpg') + ) + ); + $product->range()->associate($range); + $product->saveQuietly(); + }); + }); + } +} diff --git a/database/seeders/Development/QuestionSeeder.php b/database/seeders/Development/QuestionSeeder.php new file mode 100644 index 0000000..a72472e --- /dev/null +++ b/database/seeders/Development/QuestionSeeder.php @@ -0,0 +1,33 @@ +truncate(); + DB::table('faq_questions')->truncate(); + Schema::enableForeignKeyConstraints(); + + FaqTheme::factory(4)->create()->each(function (FaqTheme $question_theme) { + FaqQuestion::factory(fake()->numberBetween(2, 6))->make() + ->each(function (FaqQuestion $faq_question) use ($question_theme) { + $faq_question->theme()->associate($question_theme); + $faq_question->save(); + }); + }); + } +} diff --git a/database/seeders/Development/RangeSeeder.php b/database/seeders/Development/RangeSeeder.php new file mode 100644 index 0000000..2fecd96 --- /dev/null +++ b/database/seeders/Development/RangeSeeder.php @@ -0,0 +1,28 @@ +make()->each(function (Range $range) { + $range->picture = FileStorageHelper::storeFile( + new Range(), + new \SplFileInfo( + \resource_path('../database/factories/assets/ranges/default-picture-476x355.jpg') + ) + ); + $range->saveQuietly(); + }); + } +} diff --git a/database/seeders/DevelopmentSeeder.php b/database/seeders/DevelopmentSeeder.php new file mode 100644 index 0000000..faaf20e --- /dev/null +++ b/database/seeders/DevelopmentSeeder.php @@ -0,0 +1,28 @@ +call([ + BannedIpSeeder::class, + ProductSeeder::class, + QuestionSeeder::class, + PrizeSeeder::class + ]); + } +} diff --git a/database/seeders/SettingsSeeder.php b/database/seeders/Mandatory/SettingsSeeder.php similarity index 57% rename from database/seeders/SettingsSeeder.php rename to database/seeders/Mandatory/SettingsSeeder.php index 420f9f6..7f6af9f 100644 --- a/database/seeders/SettingsSeeder.php +++ b/database/seeders/Mandatory/SettingsSeeder.php @@ -1,10 +1,10 @@ truncate(); $settings = new Settings(); - $settings->name = "Nom du jeu"; + $settings->name = 'Nom du jeu'; + $settings->company = 'Société'; $settings->start_date = now(); - $settings->end_date = new Carbon(strtotime("+30 days")); + $settings->end_date = now()->addDays(30); $settings->nb_participation_player = 30; $settings->nb_participation_ip = 30; - $settings->nb_unique_code_use = 0; + $settings->nb_unique_code_use = 1; $settings->use_ean_codes = false; $settings->activated_teaser = false; $settings->activated_close_page = false; + $settings->notify_prize_sent = false; $settings->redirect_close = "https://example.test"; - $settings->reductions_activated = false; - $settings->facebook_activated = false; - $settings->notification_emails = "[]"; + $settings->discounts_activated = false; + $settings->notification_emails = []; $settings->winning_proof = 0; - $settings->company = "Société"; - $settings->web_coupons = "[]"; + $settings->web_coupons = []; $settings->save(); } } diff --git a/database/seeders/Mandatory/StaticPageSeeder.php b/database/seeders/Mandatory/StaticPageSeeder.php new file mode 100644 index 0000000..d2b40d8 --- /dev/null +++ b/database/seeders/Mandatory/StaticPageSeeder.php @@ -0,0 +1,57 @@ +truncate(); + StaticPage::query()->updateOrCreate( + [ + 'type' => StaticPageType::confidentiality, + ], + [ + 'seo_title' => 'Seo title pour la page de confidentialité', + 'seo_description' => 'Seo description pour la page de confidentialité', + 'title' => 'Page de confidentialitée', + 'type' => StaticPageType::confidentiality, + 'content' => \clean(\fake()->randomHtml(6, 7)), + ] + ); + StaticPage::query()->updateOrCreate( + [ + 'type' => StaticPageType::legals, + ], + [ + 'seo_title' => 'Seo title pour la page mentions légales', + 'seo_description' => 'Seo description pour la page mentions légales', + 'title' => 'Mentions légales', + 'type' => StaticPageType::legals, + 'content' => \clean(\fake()->randomHtml(6, 7)), + ] + ); + StaticPage::query()->updateOrCreate( + [ + 'type' => StaticPageType::rules, + ], + [ + 'seo_title' => 'Seo title pour la page charte de confidentialitée', + 'seo_description' => 'Seo description pour la page charte de confidentialitée', + 'title' => 'Charte de confidentialitée', + 'type' => StaticPageType::rules, + 'content' => \clean(\fake()->randomHtml(6, 7)), + ] + ); + } +} diff --git a/database/seeders/MandatorySeeder.php b/database/seeders/MandatorySeeder.php new file mode 100644 index 0000000..1d86c5d --- /dev/null +++ b/database/seeders/MandatorySeeder.php @@ -0,0 +1,24 @@ +call([ + SettingsSeeder::class, + StaticPageSeeder::class + ]); + } +} diff --git a/database/seeders/PrizeSeeder.php b/database/seeders/PrizeSeeder.php deleted file mode 100644 index fa64cd9..0000000 --- a/database/seeders/PrizeSeeder.php +++ /dev/null @@ -1,50 +0,0 @@ -name = "page_lot1"; - $gainview->file_name = "gain1"; - $gainview->save(); - - $prize = new Prize(); - $prize->arcadia_id = 0; - $prize->label_one = 'Lot 1'; - $prize->label_many = 'Lots 1'; - $prize->arg_title = 'Titre Lot 1'; - $prize->arg_subtitle = 'Sous-titre Lot 1'; - $prize->arg_content = 'Argumentaire du lot 1'; - $prize->quantity = 1; - $prize->gain_view_id = $gainview->id; - $prize->save(); - - $gainview = new GainView(); - $gainview->name = "page_lot2"; - $gainview->file_name = "gain2"; - $gainview->save(); - - $prize = new Prize(); - $prize->arcadia_id = 0; - $prize->label_one = 'Lot 2'; - $prize->label_many = 'Lots 2'; - $prize->arg_title = 'Titre Lot 2'; - $prize->arg_subtitle = 'Sous-titre Lot 2'; - $prize->arg_content = 'Argumentaire du lot 2'; - $prize->quantity = 2; - $prize->gain_view_id = $gainview->id; - $prize->save(); - } -} diff --git a/database/seeders/UserSeeder.php b/database/seeders/UserSeeder.php new file mode 100644 index 0000000..d46aee1 --- /dev/null +++ b/database/seeders/UserSeeder.php @@ -0,0 +1,22 @@ +create(); + } +} diff --git a/jsconfig.json b/jsconfig.json new file mode 100644 index 0000000..d05f5a8 --- /dev/null +++ b/jsconfig.json @@ -0,0 +1,3 @@ +{ + "include": ["./resources/js/**/*"] +} diff --git a/package-lock.json b/package-lock.json new file mode 100644 index 0000000..e29fba3 --- /dev/null +++ b/package-lock.json @@ -0,0 +1,8481 @@ +{ + "name": "srcs", + "lockfileVersion": 3, + "requires": true, + "packages": { + "": { + "name": "srcs", + "devDependencies": { + "@babel/core": "^7.22.11", + "@babel/types": "^7.21.2", + "@fortawesome/fontawesome-svg-core": "^6.5.1", + "@fortawesome/free-regular-svg-icons": "^6.5.1", + "@fortawesome/free-solid-svg-icons": "^6.5.1", + "@fortawesome/vue-fontawesome": "^3.0.5", + "@ldc-web/cookie-notice": "^4.0.0", + "@sipec/vue3-tags-input": "^3.0.4", + "@types/bootstrap": "^5.2.7", + "@types/node": "^20.8.2", + "@types/toastify-js": "^1.12.1", + "@typescript-eslint/eslint-plugin": "^5.62.0", + "@typescript-eslint/parser": "^5.36.2", + "@vitejs/plugin-basic-ssl": "^1.0.1", + "@vitejs/plugin-vue": "latest", + "@vue/compiler-sfc": "latest", + "@vue/eslint-config-typescript": "latest", + "@vue/tsconfig": "^0.4.0", + "axios": "^1.5.1", + "bootstrap": "^5.3.2", + "chart.js": "^4.4.0", + "cropperjs": "^1.6.1", + "eslint": "latest", + "eslint-import-resolver-alias": "^1.1.2", + "eslint-plugin-vue": "latest", + "glightbox": "^3.2.0", + "laravel-vite-plugin": "^0.8.1", + "postcss-discard-comments": "^6.0.0", + "prettier": "latest", + "print-js": "^1.6.0", + "resolve-url-loader": "^5.0.0", + "rollup-plugin-copy": "^3.5.0", + "sass": "latest", + "scratchcard-js": "^1.5.5", + "slugify": "^1.6.6", + "stylelint": "^15.11.0", + "stylelint-config-idiomatic-order": "github:ream88/stylelint-config-idiomatic-order", + "stylelint-config-sass-guidelines": "^10.0.0", + "stylelint-config-standard-scss": "^11.1.0", + "stylelint-scss": "^5.3.2", + "sweetalert2": "^11.7.31", + "terser": "latest", + "toastify-js": "^1.12.0", + "ts-loader": "^9.3.1", + "typescript": ">=3.3.1 <5.2.0", + "typescript-eslint": "latest", + "vite": "^4.5.1", + "vite-plugin-babel": "latest", + "vite-plugin-checker": "latest", + "vite-plugin-eslint": "latest", + "vite-plugin-stylelint": "latest", + "vue": "latest", + "vue-eslint-parser": "^9.3.2", + "vue-loader": "^17.3.1", + "vue-tsc": "1.8.11" + } + }, + "node_modules/@aashutoshrathi/word-wrap": { + "version": "1.2.6", + "resolved": "https://registry.npmjs.org/@aashutoshrathi/word-wrap/-/word-wrap-1.2.6.tgz", + "integrity": "sha512-1Yjs2SvM8TflER/OD3cOjhWWOZb58A2t7wpE2S9XfBYTiIl+XFhQG2bjy4Pu1I+EAlCNUzRDYDdFwFYUKvXcIA==", + "dev": true, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/@ampproject/remapping": { + "version": "2.2.1", + "resolved": "https://registry.npmjs.org/@ampproject/remapping/-/remapping-2.2.1.tgz", + "integrity": "sha512-lFMjJTrFL3j7L9yBxwYfCq2k6qqwHyzuUl/XBnif78PWTJYyL/dfowQHWE3sp6U6ZzqWiiIZnpTMO96zhkjwtg==", + "dev": true, + "dependencies": { + "@jridgewell/gen-mapping": "^0.3.0", + "@jridgewell/trace-mapping": "^0.3.9" + }, + "engines": { + "node": ">=6.0.0" + } + }, + "node_modules/@babel/code-frame": { + "version": "7.23.5", + "resolved": "https://registry.npmjs.org/@babel/code-frame/-/code-frame-7.23.5.tgz", + "integrity": "sha512-CgH3s1a96LipHCmSUmYFPwY7MNx8C3avkq7i4Wl3cfa662ldtUe4VM1TPXX70pfmrlWTb6jLqTYrZyT2ZTJBgA==", + "dev": true, + "dependencies": { + "@babel/highlight": "^7.23.4", + "chalk": "^2.4.2" + }, + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/@babel/compat-data": { + "version": "7.23.5", + "resolved": "https://registry.npmjs.org/@babel/compat-data/-/compat-data-7.23.5.tgz", + "integrity": "sha512-uU27kfDRlhfKl+w1U6vp16IuvSLtjAxdArVXPa9BvLkrr7CYIsxH5adpHObeAGY/41+syctUWOZ140a2Rvkgjw==", + "dev": true, + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/@babel/core": { + "version": "7.23.6", + "resolved": "https://registry.npmjs.org/@babel/core/-/core-7.23.6.tgz", + "integrity": "sha512-FxpRyGjrMJXh7X3wGLGhNDCRiwpWEF74sKjTLDJSG5Kyvow3QZaG0Adbqzi9ZrVjTWpsX+2cxWXD71NMg93kdw==", + "dev": true, + "dependencies": { + "@ampproject/remapping": "^2.2.0", + "@babel/code-frame": "^7.23.5", + "@babel/generator": "^7.23.6", + "@babel/helper-compilation-targets": "^7.23.6", + "@babel/helper-module-transforms": "^7.23.3", + "@babel/helpers": "^7.23.6", + "@babel/parser": "^7.23.6", + "@babel/template": "^7.22.15", + "@babel/traverse": "^7.23.6", + "@babel/types": "^7.23.6", + "convert-source-map": "^2.0.0", + "debug": "^4.1.0", + "gensync": "^1.0.0-beta.2", + "json5": "^2.2.3", + "semver": "^6.3.1" + }, + "engines": { + "node": ">=6.9.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/babel" + } + }, + "node_modules/@babel/generator": { + "version": "7.23.6", + "resolved": "https://registry.npmjs.org/@babel/generator/-/generator-7.23.6.tgz", + "integrity": "sha512-qrSfCYxYQB5owCmGLbl8XRpX1ytXlpueOb0N0UmQwA073KZxejgQTzAmJezxvpwQD9uGtK2shHdi55QT+MbjIw==", + "dev": true, + "dependencies": { + "@babel/types": "^7.23.6", + "@jridgewell/gen-mapping": "^0.3.2", + "@jridgewell/trace-mapping": "^0.3.17", + "jsesc": "^2.5.1" + }, + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/@babel/helper-compilation-targets": { + "version": "7.23.6", + "resolved": "https://registry.npmjs.org/@babel/helper-compilation-targets/-/helper-compilation-targets-7.23.6.tgz", + "integrity": "sha512-9JB548GZoQVmzrFgp8o7KxdgkTGm6xs9DW0o/Pim72UDjzr5ObUQ6ZzYPqA+g9OTS2bBQoctLJrky0RDCAWRgQ==", + "dev": true, + "dependencies": { + "@babel/compat-data": "^7.23.5", + "@babel/helper-validator-option": "^7.23.5", + "browserslist": "^4.22.2", + "lru-cache": "^5.1.1", + "semver": "^6.3.1" + }, + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/@babel/helper-environment-visitor": { + "version": "7.22.20", + "resolved": "https://registry.npmjs.org/@babel/helper-environment-visitor/-/helper-environment-visitor-7.22.20.tgz", + "integrity": "sha512-zfedSIzFhat/gFhWfHtgWvlec0nqB9YEIVrpuwjruLlXfUSnA8cJB0miHKwqDnQ7d32aKo2xt88/xZptwxbfhA==", + "dev": true, + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/@babel/helper-function-name": { + "version": "7.23.0", + "resolved": "https://registry.npmjs.org/@babel/helper-function-name/-/helper-function-name-7.23.0.tgz", + "integrity": "sha512-OErEqsrxjZTJciZ4Oo+eoZqeW9UIiOcuYKRJA4ZAgV9myA+pOXhhmpfNCKjEH/auVfEYVFJ6y1Tc4r0eIApqiw==", + "dev": true, + "dependencies": { + "@babel/template": "^7.22.15", + "@babel/types": "^7.23.0" + }, + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/@babel/helper-hoist-variables": { + "version": "7.22.5", + "resolved": "https://registry.npmjs.org/@babel/helper-hoist-variables/-/helper-hoist-variables-7.22.5.tgz", + "integrity": "sha512-wGjk9QZVzvknA6yKIUURb8zY3grXCcOZt+/7Wcy8O2uctxhplmUPkOdlgoNhmdVee2c92JXbf1xpMtVNbfoxRw==", + "dev": true, + "dependencies": { + "@babel/types": "^7.22.5" + }, + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/@babel/helper-module-imports": { + "version": "7.22.15", + "resolved": "https://registry.npmjs.org/@babel/helper-module-imports/-/helper-module-imports-7.22.15.tgz", + "integrity": "sha512-0pYVBnDKZO2fnSPCrgM/6WMc7eS20Fbok+0r88fp+YtWVLZrp4CkafFGIp+W0VKw4a22sgebPT99y+FDNMdP4w==", + "dev": true, + "dependencies": { + "@babel/types": "^7.22.15" + }, + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/@babel/helper-module-transforms": { + "version": "7.23.3", + "resolved": "https://registry.npmjs.org/@babel/helper-module-transforms/-/helper-module-transforms-7.23.3.tgz", + "integrity": "sha512-7bBs4ED9OmswdfDzpz4MpWgSrV7FXlc3zIagvLFjS5H+Mk7Snr21vQ6QwrsoCGMfNC4e4LQPdoULEt4ykz0SRQ==", + "dev": true, + "dependencies": { + "@babel/helper-environment-visitor": "^7.22.20", + "@babel/helper-module-imports": "^7.22.15", + "@babel/helper-simple-access": "^7.22.5", + "@babel/helper-split-export-declaration": "^7.22.6", + "@babel/helper-validator-identifier": "^7.22.20" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0" + } + }, + "node_modules/@babel/helper-simple-access": { + "version": "7.22.5", + "resolved": "https://registry.npmjs.org/@babel/helper-simple-access/-/helper-simple-access-7.22.5.tgz", + "integrity": "sha512-n0H99E/K+Bika3++WNL17POvo4rKWZ7lZEp1Q+fStVbUi8nxPQEBOlTmCOxW/0JsS56SKKQ+ojAe2pHKJHN35w==", + "dev": true, + "dependencies": { + "@babel/types": "^7.22.5" + }, + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/@babel/helper-split-export-declaration": { + "version": "7.22.6", + "resolved": "https://registry.npmjs.org/@babel/helper-split-export-declaration/-/helper-split-export-declaration-7.22.6.tgz", + "integrity": "sha512-AsUnxuLhRYsisFiaJwvp1QF+I3KjD5FOxut14q/GzovUe6orHLesW2C7d754kRm53h5gqrz6sFl6sxc4BVtE/g==", + "dev": true, + "dependencies": { + "@babel/types": "^7.22.5" + }, + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/@babel/helper-string-parser": { + "version": "7.23.4", + "resolved": "https://registry.npmjs.org/@babel/helper-string-parser/-/helper-string-parser-7.23.4.tgz", + "integrity": "sha512-803gmbQdqwdf4olxrX4AJyFBV/RTr3rSmOj0rKwesmzlfhYNDEs+/iOcznzpNWlJlIlTJC2QfPFcHB6DlzdVLQ==", + "dev": true, + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/@babel/helper-validator-identifier": { + "version": "7.22.20", + "resolved": "https://registry.npmjs.org/@babel/helper-validator-identifier/-/helper-validator-identifier-7.22.20.tgz", + "integrity": "sha512-Y4OZ+ytlatR8AI+8KZfKuL5urKp7qey08ha31L8b3BwewJAoJamTzyvxPR/5D+KkdJCGPq/+8TukHBlY10FX9A==", + "dev": true, + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/@babel/helper-validator-option": { + "version": "7.23.5", + "resolved": "https://registry.npmjs.org/@babel/helper-validator-option/-/helper-validator-option-7.23.5.tgz", + "integrity": "sha512-85ttAOMLsr53VgXkTbkx8oA6YTfT4q7/HzXSLEYmjcSTJPMPQtvq1BD79Byep5xMUYbGRzEpDsjUf3dyp54IKw==", + "dev": true, + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/@babel/helpers": { + "version": "7.23.6", + "resolved": "https://registry.npmjs.org/@babel/helpers/-/helpers-7.23.6.tgz", + "integrity": "sha512-wCfsbN4nBidDRhpDhvcKlzHWCTlgJYUUdSJfzXb2NuBssDSIjc3xcb+znA7l+zYsFljAcGM0aFkN40cR3lXiGA==", + "dev": true, + "dependencies": { + "@babel/template": "^7.22.15", + "@babel/traverse": "^7.23.6", + "@babel/types": "^7.23.6" + }, + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/@babel/highlight": { + "version": "7.23.4", + "resolved": "https://registry.npmjs.org/@babel/highlight/-/highlight-7.23.4.tgz", + "integrity": "sha512-acGdbYSfp2WheJoJm/EBBBLh/ID8KDc64ISZ9DYtBmC8/Q204PZJLHyzeB5qMzJ5trcOkybd78M4x2KWsUq++A==", + "dev": true, + "dependencies": { + "@babel/helper-validator-identifier": "^7.22.20", + "chalk": "^2.4.2", + "js-tokens": "^4.0.0" + }, + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/@babel/parser": { + "version": "7.23.6", + "resolved": "https://registry.npmjs.org/@babel/parser/-/parser-7.23.6.tgz", + "integrity": "sha512-Z2uID7YJ7oNvAI20O9X0bblw7Qqs8Q2hFy0R9tAfnfLkp5MW0UH9eUvnDSnFwKZ0AvgS1ucqR4KzvVHgnke1VQ==", + "dev": true, + "bin": { + "parser": "bin/babel-parser.js" + }, + "engines": { + "node": ">=6.0.0" + } + }, + "node_modules/@babel/polyfill": { + "version": "7.12.1", + "resolved": "https://registry.npmjs.org/@babel/polyfill/-/polyfill-7.12.1.tgz", + "integrity": "sha512-X0pi0V6gxLi6lFZpGmeNa4zxtwEmCs42isWLNjZZDE0Y8yVfgu0T2OAHlzBbdYlqbW/YXVvoBHpATEM+goCj8g==", + "deprecated": "🚨 This package has been deprecated in favor of separate inclusion of a polyfill and regenerator-runtime (when needed). See the @babel/polyfill docs (https://babeljs.io/docs/en/babel-polyfill) for more information.", + "dev": true, + "dependencies": { + "core-js": "^2.6.5", + "regenerator-runtime": "^0.13.4" + } + }, + "node_modules/@babel/runtime": { + "version": "7.23.6", + "resolved": "https://registry.npmjs.org/@babel/runtime/-/runtime-7.23.6.tgz", + "integrity": "sha512-zHd0eUrf5GZoOWVCXp6koAKQTfZV07eit6bGPmJgnZdnSAvvZee6zniW2XMF7Cmc4ISOOnPy3QaSiIJGJkVEDQ==", + "dev": true, + "dependencies": { + "regenerator-runtime": "^0.14.0" + }, + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/@babel/runtime/node_modules/regenerator-runtime": { + "version": "0.14.1", + "resolved": "https://registry.npmjs.org/regenerator-runtime/-/regenerator-runtime-0.14.1.tgz", + "integrity": "sha512-dYnhHh0nJoMfnkZs6GmmhFknAGRrLznOu5nc9ML+EJxGvrx6H7teuevqVqCuPcPK//3eDrrjQhehXVx9cnkGdw==", + "dev": true + }, + "node_modules/@babel/template": { + "version": "7.22.15", + "resolved": "https://registry.npmjs.org/@babel/template/-/template-7.22.15.tgz", + "integrity": "sha512-QPErUVm4uyJa60rkI73qneDacvdvzxshT3kksGqlGWYdOTIUOwJ7RDUL8sGqslY1uXWSL6xMFKEXDS3ox2uF0w==", + "dev": true, + "dependencies": { + "@babel/code-frame": "^7.22.13", + "@babel/parser": "^7.22.15", + "@babel/types": "^7.22.15" + }, + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/@babel/traverse": { + "version": "7.23.6", + "resolved": "https://registry.npmjs.org/@babel/traverse/-/traverse-7.23.6.tgz", + "integrity": "sha512-czastdK1e8YByZqezMPFiZ8ahwVMh/ESl9vPgvgdB9AmFMGP5jfpFax74AQgl5zj4XHzqeYAg2l8PuUeRS1MgQ==", + "dev": true, + "dependencies": { + "@babel/code-frame": "^7.23.5", + "@babel/generator": "^7.23.6", + "@babel/helper-environment-visitor": "^7.22.20", + "@babel/helper-function-name": "^7.23.0", + "@babel/helper-hoist-variables": "^7.22.5", + "@babel/helper-split-export-declaration": "^7.22.6", + "@babel/parser": "^7.23.6", + "@babel/types": "^7.23.6", + "debug": "^4.3.1", + "globals": "^11.1.0" + }, + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/@babel/types": { + "version": "7.23.6", + "resolved": "https://registry.npmjs.org/@babel/types/-/types-7.23.6.tgz", + "integrity": "sha512-+uarb83brBzPKN38NX1MkB6vb6+mwvR6amUulqAE7ccQw1pEl+bCia9TbdG1lsnFP7lZySvUn37CHyXQdfTwzg==", + "dev": true, + "dependencies": { + "@babel/helper-string-parser": "^7.23.4", + "@babel/helper-validator-identifier": "^7.22.20", + "to-fast-properties": "^2.0.0" + }, + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/@csstools/css-parser-algorithms": { + "version": "2.4.0", + "resolved": "https://registry.npmjs.org/@csstools/css-parser-algorithms/-/css-parser-algorithms-2.4.0.tgz", + "integrity": "sha512-/PPLr2g5PAUCKAPEbfyk6/baZA+WJHQtUhPkoCQMpyRE8I0lXrG1QFRN8e5s3ZYxM8d/g5BZc6lH3s8Op7/VEg==", + "dev": true, + "funding": [ + { + "type": "github", + "url": "https://github.com/sponsors/csstools" + }, + { + "type": "opencollective", + "url": "https://opencollective.com/csstools" + } + ], + "engines": { + "node": "^14 || ^16 || >=18" + }, + "peerDependencies": { + "@csstools/css-tokenizer": "^2.2.2" + } + }, + "node_modules/@csstools/css-tokenizer": { + "version": "2.2.2", + "resolved": "https://registry.npmjs.org/@csstools/css-tokenizer/-/css-tokenizer-2.2.2.tgz", + "integrity": "sha512-wCDUe/MAw7npAHFLyW3QjSyLA66S5QFaV1jIXlNQvdJ8RzXDSgALa49eWcUO6P55ARQaz0TsDdAgdRgkXFYY8g==", + "dev": true, + "funding": [ + { + "type": "github", + "url": "https://github.com/sponsors/csstools" + }, + { + "type": "opencollective", + "url": "https://opencollective.com/csstools" + } + ], + "engines": { + "node": "^14 || ^16 || >=18" + } + }, + "node_modules/@csstools/media-query-list-parser": { + "version": "2.1.6", + "resolved": "https://registry.npmjs.org/@csstools/media-query-list-parser/-/media-query-list-parser-2.1.6.tgz", + "integrity": "sha512-R6AKl9vaU0It7D7TR2lQn0pre5aQfdeqHRePlaRCY8rHL3l9eVlNRpsEVDKFi/zAjzv68CxH2M5kqbhPFPKjvw==", + "dev": true, + "funding": [ + { + "type": "github", + "url": "https://github.com/sponsors/csstools" + }, + { + "type": "opencollective", + "url": "https://opencollective.com/csstools" + } + ], + "engines": { + "node": "^14 || ^16 || >=18" + }, + "peerDependencies": { + "@csstools/css-parser-algorithms": "^2.4.0", + "@csstools/css-tokenizer": "^2.2.2" + } + }, + "node_modules/@csstools/selector-specificity": { + "version": "3.0.1", + "resolved": "https://registry.npmjs.org/@csstools/selector-specificity/-/selector-specificity-3.0.1.tgz", + "integrity": "sha512-NPljRHkq4a14YzZ3YD406uaxh7s0g6eAq3L9aLOWywoqe8PkYamAvtsh7KNX6c++ihDrJ0RiU+/z7rGnhlZ5ww==", + "dev": true, + "funding": [ + { + "type": "github", + "url": "https://github.com/sponsors/csstools" + }, + { + "type": "opencollective", + "url": "https://opencollective.com/csstools" + } + ], + "engines": { + "node": "^14 || ^16 || >=18" + }, + "peerDependencies": { + "postcss-selector-parser": "^6.0.13" + } + }, + "node_modules/@esbuild/android-arm": { + "version": "0.18.20", + "resolved": "https://registry.npmjs.org/@esbuild/android-arm/-/android-arm-0.18.20.tgz", + "integrity": "sha512-fyi7TDI/ijKKNZTUJAQqiG5T7YjJXgnzkURqmGj13C6dCqckZBLdl4h7bkhHt/t0WP+zO9/zwroDvANaOqO5Sw==", + "cpu": [ + "arm" + ], + "dev": true, + "optional": true, + "os": [ + "android" + ], + "engines": { + "node": ">=12" + } + }, + "node_modules/@esbuild/android-arm64": { + "version": "0.18.20", + "resolved": "https://registry.npmjs.org/@esbuild/android-arm64/-/android-arm64-0.18.20.tgz", + "integrity": "sha512-Nz4rJcchGDtENV0eMKUNa6L12zz2zBDXuhj/Vjh18zGqB44Bi7MBMSXjgunJgjRhCmKOjnPuZp4Mb6OKqtMHLQ==", + "cpu": [ + "arm64" + ], + "dev": true, + "optional": true, + "os": [ + "android" + ], + "engines": { + "node": ">=12" + } + }, + "node_modules/@esbuild/android-x64": { + "version": "0.18.20", + "resolved": "https://registry.npmjs.org/@esbuild/android-x64/-/android-x64-0.18.20.tgz", + "integrity": "sha512-8GDdlePJA8D6zlZYJV/jnrRAi6rOiNaCC/JclcXpB+KIuvfBN4owLtgzY2bsxnx666XjJx2kDPUmnTtR8qKQUg==", + "cpu": [ + "x64" + ], + "dev": true, + "optional": true, + "os": [ + "android" + ], + "engines": { + "node": ">=12" + } + }, + "node_modules/@esbuild/darwin-arm64": { + "version": "0.18.20", + "resolved": "https://registry.npmjs.org/@esbuild/darwin-arm64/-/darwin-arm64-0.18.20.tgz", + "integrity": "sha512-bxRHW5kHU38zS2lPTPOyuyTm+S+eobPUnTNkdJEfAddYgEcll4xkT8DB9d2008DtTbl7uJag2HuE5NZAZgnNEA==", + "cpu": [ + "arm64" + ], + "dev": true, + "optional": true, + "os": [ + "darwin" + ], + "engines": { + "node": ">=12" + } + }, + "node_modules/@esbuild/darwin-x64": { + "version": "0.18.20", + "resolved": "https://registry.npmjs.org/@esbuild/darwin-x64/-/darwin-x64-0.18.20.tgz", + "integrity": "sha512-pc5gxlMDxzm513qPGbCbDukOdsGtKhfxD1zJKXjCCcU7ju50O7MeAZ8c4krSJcOIJGFR+qx21yMMVYwiQvyTyQ==", + "cpu": [ + "x64" + ], + "dev": true, + "optional": true, + "os": [ + "darwin" + ], + "engines": { + "node": ">=12" + } + }, + "node_modules/@esbuild/freebsd-arm64": { + "version": "0.18.20", + "resolved": "https://registry.npmjs.org/@esbuild/freebsd-arm64/-/freebsd-arm64-0.18.20.tgz", + "integrity": "sha512-yqDQHy4QHevpMAaxhhIwYPMv1NECwOvIpGCZkECn8w2WFHXjEwrBn3CeNIYsibZ/iZEUemj++M26W3cNR5h+Tw==", + "cpu": [ + "arm64" + ], + "dev": true, + "optional": true, + "os": [ + "freebsd" + ], + "engines": { + "node": ">=12" + } + }, + "node_modules/@esbuild/freebsd-x64": { + "version": "0.18.20", + "resolved": "https://registry.npmjs.org/@esbuild/freebsd-x64/-/freebsd-x64-0.18.20.tgz", + "integrity": "sha512-tgWRPPuQsd3RmBZwarGVHZQvtzfEBOreNuxEMKFcd5DaDn2PbBxfwLcj4+aenoh7ctXcbXmOQIn8HI6mCSw5MQ==", + "cpu": [ + "x64" + ], + "dev": true, + "optional": true, + "os": [ + "freebsd" + ], + "engines": { + "node": ">=12" + } + }, + "node_modules/@esbuild/linux-arm": { + "version": "0.18.20", + "resolved": "https://registry.npmjs.org/@esbuild/linux-arm/-/linux-arm-0.18.20.tgz", + "integrity": "sha512-/5bHkMWnq1EgKr1V+Ybz3s1hWXok7mDFUMQ4cG10AfW3wL02PSZi5kFpYKrptDsgb2WAJIvRcDm+qIvXf/apvg==", + "cpu": [ + "arm" + ], + "dev": true, + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": ">=12" + } + }, + "node_modules/@esbuild/linux-arm64": { + "version": "0.18.20", + "resolved": "https://registry.npmjs.org/@esbuild/linux-arm64/-/linux-arm64-0.18.20.tgz", + "integrity": "sha512-2YbscF+UL7SQAVIpnWvYwM+3LskyDmPhe31pE7/aoTMFKKzIc9lLbyGUpmmb8a8AixOL61sQ/mFh3jEjHYFvdA==", + "cpu": [ + "arm64" + ], + "dev": true, + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": ">=12" + } + }, + "node_modules/@esbuild/linux-ia32": { + "version": "0.18.20", + "resolved": "https://registry.npmjs.org/@esbuild/linux-ia32/-/linux-ia32-0.18.20.tgz", + "integrity": "sha512-P4etWwq6IsReT0E1KHU40bOnzMHoH73aXp96Fs8TIT6z9Hu8G6+0SHSw9i2isWrD2nbx2qo5yUqACgdfVGx7TA==", + "cpu": [ + "ia32" + ], + "dev": true, + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": ">=12" + } + }, + "node_modules/@esbuild/linux-loong64": { + "version": "0.18.20", + "resolved": "https://registry.npmjs.org/@esbuild/linux-loong64/-/linux-loong64-0.18.20.tgz", + "integrity": "sha512-nXW8nqBTrOpDLPgPY9uV+/1DjxoQ7DoB2N8eocyq8I9XuqJ7BiAMDMf9n1xZM9TgW0J8zrquIb/A7s3BJv7rjg==", + "cpu": [ + "loong64" + ], + "dev": true, + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": ">=12" + } + }, + "node_modules/@esbuild/linux-mips64el": { + "version": "0.18.20", + "resolved": "https://registry.npmjs.org/@esbuild/linux-mips64el/-/linux-mips64el-0.18.20.tgz", + "integrity": "sha512-d5NeaXZcHp8PzYy5VnXV3VSd2D328Zb+9dEq5HE6bw6+N86JVPExrA6O68OPwobntbNJ0pzCpUFZTo3w0GyetQ==", + "cpu": [ + "mips64el" + ], + "dev": true, + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": ">=12" + } + }, + "node_modules/@esbuild/linux-ppc64": { + "version": "0.18.20", + "resolved": "https://registry.npmjs.org/@esbuild/linux-ppc64/-/linux-ppc64-0.18.20.tgz", + "integrity": "sha512-WHPyeScRNcmANnLQkq6AfyXRFr5D6N2sKgkFo2FqguP44Nw2eyDlbTdZwd9GYk98DZG9QItIiTlFLHJHjxP3FA==", + "cpu": [ + "ppc64" + ], + "dev": true, + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": ">=12" + } + }, + "node_modules/@esbuild/linux-riscv64": { + "version": "0.18.20", + "resolved": "https://registry.npmjs.org/@esbuild/linux-riscv64/-/linux-riscv64-0.18.20.tgz", + "integrity": "sha512-WSxo6h5ecI5XH34KC7w5veNnKkju3zBRLEQNY7mv5mtBmrP/MjNBCAlsM2u5hDBlS3NGcTQpoBvRzqBcRtpq1A==", + "cpu": [ + "riscv64" + ], + "dev": true, + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": ">=12" + } + }, + "node_modules/@esbuild/linux-s390x": { + "version": "0.18.20", + "resolved": "https://registry.npmjs.org/@esbuild/linux-s390x/-/linux-s390x-0.18.20.tgz", + "integrity": "sha512-+8231GMs3mAEth6Ja1iK0a1sQ3ohfcpzpRLH8uuc5/KVDFneH6jtAJLFGafpzpMRO6DzJ6AvXKze9LfFMrIHVQ==", + "cpu": [ + "s390x" + ], + "dev": true, + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": ">=12" + } + }, + "node_modules/@esbuild/linux-x64": { + "version": "0.18.20", + "resolved": "https://registry.npmjs.org/@esbuild/linux-x64/-/linux-x64-0.18.20.tgz", + "integrity": "sha512-UYqiqemphJcNsFEskc73jQ7B9jgwjWrSayxawS6UVFZGWrAAtkzjxSqnoclCXxWtfwLdzU+vTpcNYhpn43uP1w==", + "cpu": [ + "x64" + ], + "dev": true, + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": ">=12" + } + }, + "node_modules/@esbuild/netbsd-x64": { + "version": "0.18.20", + "resolved": "https://registry.npmjs.org/@esbuild/netbsd-x64/-/netbsd-x64-0.18.20.tgz", + "integrity": "sha512-iO1c++VP6xUBUmltHZoMtCUdPlnPGdBom6IrO4gyKPFFVBKioIImVooR5I83nTew5UOYrk3gIJhbZh8X44y06A==", + "cpu": [ + "x64" + ], + "dev": true, + "optional": true, + "os": [ + "netbsd" + ], + "engines": { + "node": ">=12" + } + }, + "node_modules/@esbuild/openbsd-x64": { + "version": "0.18.20", + "resolved": "https://registry.npmjs.org/@esbuild/openbsd-x64/-/openbsd-x64-0.18.20.tgz", + "integrity": "sha512-e5e4YSsuQfX4cxcygw/UCPIEP6wbIL+se3sxPdCiMbFLBWu0eiZOJ7WoD+ptCLrmjZBK1Wk7I6D/I3NglUGOxg==", + "cpu": [ + "x64" + ], + "dev": true, + "optional": true, + "os": [ + "openbsd" + ], + "engines": { + "node": ">=12" + } + }, + "node_modules/@esbuild/sunos-x64": { + "version": "0.18.20", + "resolved": "https://registry.npmjs.org/@esbuild/sunos-x64/-/sunos-x64-0.18.20.tgz", + "integrity": "sha512-kDbFRFp0YpTQVVrqUd5FTYmWo45zGaXe0X8E1G/LKFC0v8x0vWrhOWSLITcCn63lmZIxfOMXtCfti/RxN/0wnQ==", + "cpu": [ + "x64" + ], + "dev": true, + "optional": true, + "os": [ + "sunos" + ], + "engines": { + "node": ">=12" + } + }, + "node_modules/@esbuild/win32-arm64": { + "version": "0.18.20", + "resolved": "https://registry.npmjs.org/@esbuild/win32-arm64/-/win32-arm64-0.18.20.tgz", + "integrity": "sha512-ddYFR6ItYgoaq4v4JmQQaAI5s7npztfV4Ag6NrhiaW0RrnOXqBkgwZLofVTlq1daVTQNhtI5oieTvkRPfZrePg==", + "cpu": [ + "arm64" + ], + "dev": true, + "optional": true, + "os": [ + "win32" + ], + "engines": { + "node": ">=12" + } + }, + "node_modules/@esbuild/win32-ia32": { + "version": "0.18.20", + "resolved": "https://registry.npmjs.org/@esbuild/win32-ia32/-/win32-ia32-0.18.20.tgz", + "integrity": "sha512-Wv7QBi3ID/rROT08SABTS7eV4hX26sVduqDOTe1MvGMjNd3EjOz4b7zeexIR62GTIEKrfJXKL9LFxTYgkyeu7g==", + "cpu": [ + "ia32" + ], + "dev": true, + "optional": true, + "os": [ + "win32" + ], + "engines": { + "node": ">=12" + } + }, + "node_modules/@esbuild/win32-x64": { + "version": "0.18.20", + "resolved": "https://registry.npmjs.org/@esbuild/win32-x64/-/win32-x64-0.18.20.tgz", + "integrity": "sha512-kTdfRcSiDfQca/y9QIkng02avJ+NCaQvrMejlsB3RRv5sE9rRoeBPISaZpKxHELzRxZyLvNts1P27W3wV+8geQ==", + "cpu": [ + "x64" + ], + "dev": true, + "optional": true, + "os": [ + "win32" + ], + "engines": { + "node": ">=12" + } + }, + "node_modules/@eslint-community/eslint-utils": { + "version": "4.4.0", + "resolved": "https://registry.npmjs.org/@eslint-community/eslint-utils/-/eslint-utils-4.4.0.tgz", + "integrity": "sha512-1/sA4dwrzBAyeUoQ6oxahHKmrZvsnLCg4RfxW3ZFGGmQkSNQPFNLV9CUEFQP1x9EYXHTo5p6xdhZM1Ne9p/AfA==", + "dev": true, + "dependencies": { + "eslint-visitor-keys": "^3.3.0" + }, + "engines": { + "node": "^12.22.0 || ^14.17.0 || >=16.0.0" + }, + "peerDependencies": { + "eslint": "^6.0.0 || ^7.0.0 || >=8.0.0" + } + }, + "node_modules/@eslint-community/regexpp": { + "version": "4.10.0", + "resolved": "https://registry.npmjs.org/@eslint-community/regexpp/-/regexpp-4.10.0.tgz", + "integrity": "sha512-Cu96Sd2By9mCNTx2iyKOmq10v22jUVQv0lQnlGNy16oE9589yE+QADPbrMGCkA51cKZSg3Pu/aTJVTGfL/qjUA==", + "dev": true, + "engines": { + "node": "^12.0.0 || ^14.0.0 || >=16.0.0" + } + }, + "node_modules/@eslint/eslintrc": { + "version": "2.1.4", + "resolved": "https://registry.npmjs.org/@eslint/eslintrc/-/eslintrc-2.1.4.tgz", + "integrity": "sha512-269Z39MS6wVJtsoUl10L60WdkhJVdPG24Q4eZTH3nnF6lpvSShEK3wQjDX9JRWAUPvPh7COouPpU9IrqaZFvtQ==", + "dev": true, + "dependencies": { + "ajv": "^6.12.4", + "debug": "^4.3.2", + "espree": "^9.6.0", + "globals": "^13.19.0", + "ignore": "^5.2.0", + "import-fresh": "^3.2.1", + "js-yaml": "^4.1.0", + "minimatch": "^3.1.2", + "strip-json-comments": "^3.1.1" + }, + "engines": { + "node": "^12.22.0 || ^14.17.0 || >=16.0.0" + }, + "funding": { + "url": "https://opencollective.com/eslint" + } + }, + "node_modules/@eslint/eslintrc/node_modules/globals": { + "version": "13.24.0", + "resolved": "https://registry.npmjs.org/globals/-/globals-13.24.0.tgz", + "integrity": "sha512-AhO5QUcj8llrbG09iWhPU2B204J1xnPeL8kQmVorSsy+Sjj1sk8gIyh6cUocGmH4L0UuhAJy+hJMRA4mgA4mFQ==", + "dev": true, + "dependencies": { + "type-fest": "^0.20.2" + }, + "engines": { + "node": ">=8" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/@eslint/eslintrc/node_modules/type-fest": { + "version": "0.20.2", + "resolved": "https://registry.npmjs.org/type-fest/-/type-fest-0.20.2.tgz", + "integrity": "sha512-Ne+eE4r0/iWnpAxD852z3A+N0Bt5RN//NjJwRd2VFHEmrywxf5vsZlh4R6lixl6B+wz/8d+maTSAkN1FIkI3LQ==", + "dev": true, + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/@eslint/js": { + "version": "8.56.0", + "resolved": "https://registry.npmjs.org/@eslint/js/-/js-8.56.0.tgz", + "integrity": "sha512-gMsVel9D7f2HLkBma9VbtzZRehRogVRfbr++f06nL2vnCGCNlzOD+/MUov/F4p8myyAHspEhVobgjpX64q5m6A==", + "dev": true, + "engines": { + "node": "^12.22.0 || ^14.17.0 || >=16.0.0" + } + }, + "node_modules/@fortawesome/fontawesome-common-types": { + "version": "6.5.1", + "resolved": "https://registry.npmjs.org/@fortawesome/fontawesome-common-types/-/fontawesome-common-types-6.5.1.tgz", + "integrity": "sha512-GkWzv+L6d2bI5f/Vk6ikJ9xtl7dfXtoRu3YGE6nq0p/FFqA1ebMOAWg3XgRyb0I6LYyYkiAo+3/KrwuBp8xG7A==", + "dev": true, + "hasInstallScript": true, + "engines": { + "node": ">=6" + } + }, + "node_modules/@fortawesome/fontawesome-svg-core": { + "version": "6.5.1", + "resolved": "https://registry.npmjs.org/@fortawesome/fontawesome-svg-core/-/fontawesome-svg-core-6.5.1.tgz", + "integrity": "sha512-MfRCYlQPXoLlpem+egxjfkEuP9UQswTrlCOsknus/NcMoblTH2g0jPrapbcIb04KGA7E2GZxbAccGZfWoYgsrQ==", + "dev": true, + "hasInstallScript": true, + "dependencies": { + "@fortawesome/fontawesome-common-types": "6.5.1" + }, + "engines": { + "node": ">=6" + } + }, + "node_modules/@fortawesome/free-regular-svg-icons": { + "version": "6.5.1", + "resolved": "https://registry.npmjs.org/@fortawesome/free-regular-svg-icons/-/free-regular-svg-icons-6.5.1.tgz", + "integrity": "sha512-m6ShXn+wvqEU69wSP84coxLbNl7sGVZb+Ca+XZq6k30SzuP3X4TfPqtycgUh9ASwlNh5OfQCd8pDIWxl+O+LlQ==", + "dev": true, + "hasInstallScript": true, + "dependencies": { + "@fortawesome/fontawesome-common-types": "6.5.1" + }, + "engines": { + "node": ">=6" + } + }, + "node_modules/@fortawesome/free-solid-svg-icons": { + "version": "6.5.1", + "resolved": "https://registry.npmjs.org/@fortawesome/free-solid-svg-icons/-/free-solid-svg-icons-6.5.1.tgz", + "integrity": "sha512-S1PPfU3mIJa59biTtXJz1oI0+KAXW6bkAb31XKhxdxtuXDiUIFsih4JR1v5BbxY7hVHsD1RKq+jRkVRaf773NQ==", + "dev": true, + "hasInstallScript": true, + "dependencies": { + "@fortawesome/fontawesome-common-types": "6.5.1" + }, + "engines": { + "node": ">=6" + } + }, + "node_modules/@fortawesome/vue-fontawesome": { + "version": "3.0.5", + "resolved": "https://registry.npmjs.org/@fortawesome/vue-fontawesome/-/vue-fontawesome-3.0.5.tgz", + "integrity": "sha512-isZZ4+utQH9qg9cWxWYHQ9GwI3r5FeO7GnmzKYV+gbjxcptQhh+F99iZXi1Y9AvFUEgy8kRpAdvDlbb3drWFrw==", + "dev": true, + "peerDependencies": { + "@fortawesome/fontawesome-svg-core": "~1 || ~6", + "vue": ">= 3.0.0 < 4" + } + }, + "node_modules/@humanwhocodes/config-array": { + "version": "0.11.13", + "resolved": "https://registry.npmjs.org/@humanwhocodes/config-array/-/config-array-0.11.13.tgz", + "integrity": "sha512-JSBDMiDKSzQVngfRjOdFXgFfklaXI4K9nLF49Auh21lmBWRLIK3+xTErTWD4KU54pb6coM6ESE7Awz/FNU3zgQ==", + "dev": true, + "dependencies": { + "@humanwhocodes/object-schema": "^2.0.1", + "debug": "^4.1.1", + "minimatch": "^3.0.5" + }, + "engines": { + "node": ">=10.10.0" + } + }, + "node_modules/@humanwhocodes/module-importer": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/@humanwhocodes/module-importer/-/module-importer-1.0.1.tgz", + "integrity": "sha512-bxveV4V8v5Yb4ncFTT3rPSgZBOpCkjfK0y4oVVVJwIuDVBRMDXrPyXRL988i5ap9m9bnyEEjWfm5WkBmtffLfA==", + "dev": true, + "engines": { + "node": ">=12.22" + }, + "funding": { + "type": "github", + "url": "https://github.com/sponsors/nzakas" + } + }, + "node_modules/@humanwhocodes/object-schema": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/@humanwhocodes/object-schema/-/object-schema-2.0.1.tgz", + "integrity": "sha512-dvuCeX5fC9dXgJn9t+X5atfmgQAzUOWqS1254Gh0m6i8wKd10ebXkfNKiRK+1GWi/yTvvLDHpoxLr0xxxeslWw==", + "dev": true + }, + "node_modules/@jridgewell/gen-mapping": { + "version": "0.3.3", + "resolved": "https://registry.npmjs.org/@jridgewell/gen-mapping/-/gen-mapping-0.3.3.tgz", + "integrity": "sha512-HLhSWOLRi875zjjMG/r+Nv0oCW8umGb0BgEhyX3dDX3egwZtB8PqLnjz3yedt8R5StBrzcg4aBpnh8UA9D1BoQ==", + "dev": true, + "dependencies": { + "@jridgewell/set-array": "^1.0.1", + "@jridgewell/sourcemap-codec": "^1.4.10", + "@jridgewell/trace-mapping": "^0.3.9" + }, + "engines": { + "node": ">=6.0.0" + } + }, + "node_modules/@jridgewell/resolve-uri": { + "version": "3.1.1", + "resolved": "https://registry.npmjs.org/@jridgewell/resolve-uri/-/resolve-uri-3.1.1.tgz", + "integrity": "sha512-dSYZh7HhCDtCKm4QakX0xFpsRDqjjtZf/kjI/v3T3Nwt5r8/qz/M19F9ySyOqU94SXBmeG9ttTul+YnR4LOxFA==", + "dev": true, + "engines": { + "node": ">=6.0.0" + } + }, + "node_modules/@jridgewell/set-array": { + "version": "1.1.2", + "resolved": "https://registry.npmjs.org/@jridgewell/set-array/-/set-array-1.1.2.tgz", + "integrity": "sha512-xnkseuNADM0gt2bs+BvhO0p78Mk762YnZdsuzFV018NoG1Sj1SCQvpSqa7XUaTam5vAGasABV9qXASMKnFMwMw==", + "dev": true, + "engines": { + "node": ">=6.0.0" + } + }, + "node_modules/@jridgewell/source-map": { + "version": "0.3.5", + "resolved": "https://registry.npmjs.org/@jridgewell/source-map/-/source-map-0.3.5.tgz", + "integrity": "sha512-UTYAUj/wviwdsMfzoSJspJxbkH5o1snzwX0//0ENX1u/55kkZZkcTZP6u9bwKGkv+dkk9at4m1Cpt0uY80kcpQ==", + "dev": true, + "dependencies": { + "@jridgewell/gen-mapping": "^0.3.0", + "@jridgewell/trace-mapping": "^0.3.9" + } + }, + "node_modules/@jridgewell/sourcemap-codec": { + "version": "1.4.15", + "resolved": "https://registry.npmjs.org/@jridgewell/sourcemap-codec/-/sourcemap-codec-1.4.15.tgz", + "integrity": "sha512-eF2rxCRulEKXHTRiDrDy6erMYWqNw4LPdQ8UQA4huuxaQsVeRPFl2oM8oDGxMFhJUWZf9McpLtJasDDZb/Bpeg==", + "dev": true + }, + "node_modules/@jridgewell/trace-mapping": { + "version": "0.3.20", + "resolved": "https://registry.npmjs.org/@jridgewell/trace-mapping/-/trace-mapping-0.3.20.tgz", + "integrity": "sha512-R8LcPeWZol2zR8mmH3JeKQ6QRCFb7XgUhV9ZlGhHLGyg4wpPiPZNQOOWhFZhxKw8u//yTbNGI42Bx/3paXEQ+Q==", + "dev": true, + "dependencies": { + "@jridgewell/resolve-uri": "^3.1.0", + "@jridgewell/sourcemap-codec": "^1.4.14" + } + }, + "node_modules/@kurkle/color": { + "version": "0.3.2", + "resolved": "https://registry.npmjs.org/@kurkle/color/-/color-0.3.2.tgz", + "integrity": "sha512-fuscdXJ9G1qb7W8VdHi+IwRqij3lBkosAm4ydQtEmbY58OzHXqQhvlxqEkoz0yssNVn38bcpRWgA9PP+OGoisw==", + "dev": true + }, + "node_modules/@ldc-web/cookie-notice": { + "version": "4.0.0", + "resolved": "https://lab.s-web.fr/api/v4/projects/50/packages/npm/@ldc-web/cookie-notice/-/@ldc-web/cookie-notice-4.0.0.tgz", + "integrity": "sha1-wPt5PtlWiuOjO2sODb4YDwPeBms=", + "dev": true + }, + "node_modules/@nodelib/fs.scandir": { + "version": "2.1.5", + "resolved": "https://registry.npmjs.org/@nodelib/fs.scandir/-/fs.scandir-2.1.5.tgz", + "integrity": "sha512-vq24Bq3ym5HEQm2NKCr3yXDwjc7vTsEThRDnkp2DK9p1uqLR+DHurm/NOTo0KG7HYHU7eppKZj3MyqYuMBf62g==", + "dev": true, + "dependencies": { + "@nodelib/fs.stat": "2.0.5", + "run-parallel": "^1.1.9" + }, + "engines": { + "node": ">= 8" + } + }, + "node_modules/@nodelib/fs.stat": { + "version": "2.0.5", + "resolved": "https://registry.npmjs.org/@nodelib/fs.stat/-/fs.stat-2.0.5.tgz", + "integrity": "sha512-RkhPPp2zrqDAQA/2jNhnztcPAlv64XdhIp7a7454A5ovI7Bukxgt7MX7udwAu3zg1DcpPU0rz3VV1SeaqvY4+A==", + "dev": true, + "engines": { + "node": ">= 8" + } + }, + "node_modules/@nodelib/fs.walk": { + "version": "1.2.8", + "resolved": "https://registry.npmjs.org/@nodelib/fs.walk/-/fs.walk-1.2.8.tgz", + "integrity": "sha512-oGB+UxlgWcgQkgwo8GcEGwemoTFt3FIO9ababBmaGwXIoBKZ+GTy0pP185beGg7Llih/NSHSV2XAs1lnznocSg==", + "dev": true, + "dependencies": { + "@nodelib/fs.scandir": "2.1.5", + "fastq": "^1.6.0" + }, + "engines": { + "node": ">= 8" + } + }, + "node_modules/@popperjs/core": { + "version": "2.11.8", + "resolved": "https://registry.npmjs.org/@popperjs/core/-/core-2.11.8.tgz", + "integrity": "sha512-P1st0aksCrn9sGZhp8GMYwBnQsbvAWsZAX44oXNNvLHGqAOcoVxmjZiohstwQ7SqKnbR47akdNi+uleWD8+g6A==", + "dev": true, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/popperjs" + } + }, + "node_modules/@rollup/pluginutils": { + "version": "4.2.1", + "resolved": "https://registry.npmjs.org/@rollup/pluginutils/-/pluginutils-4.2.1.tgz", + "integrity": "sha512-iKnFXr7NkdZAIHiIWE+BX5ULi/ucVFYWD6TbAV+rZctiRTY2PL6tsIKhoIOaoskiWAkgu+VsbXgUVDNLHf+InQ==", + "dev": true, + "dependencies": { + "estree-walker": "^2.0.1", + "picomatch": "^2.2.2" + }, + "engines": { + "node": ">= 8.0.0" + } + }, + "node_modules/@sipec/vue3-tags-input": { + "version": "3.0.4", + "resolved": "https://registry.npmjs.org/@sipec/vue3-tags-input/-/vue3-tags-input-3.0.4.tgz", + "integrity": "sha512-zE4OiFkWvlvvGT3FZQ9hRrvJW935VPW0fe4K03SxM5Q/UQZMqph763UHXTuyK1orWNQMTbDx9tKPLIMZTiDXLA==", + "dev": true, + "dependencies": { + "vue": "^3.0.0-beta.1" + }, + "peerDependencies": { + "vue": "3.x" + } + }, + "node_modules/@types/bootstrap": { + "version": "5.2.10", + "resolved": "https://registry.npmjs.org/@types/bootstrap/-/bootstrap-5.2.10.tgz", + "integrity": "sha512-F2X+cd6551tep0MvVZ6nM8v7XgGN/twpdNDjqS1TUM7YFNEtQYWk+dKAnH+T1gr6QgCoGMPl487xw/9hXooa2g==", + "dev": true, + "dependencies": { + "@popperjs/core": "^2.9.2" + } + }, + "node_modules/@types/eslint": { + "version": "8.56.0", + "resolved": "https://registry.npmjs.org/@types/eslint/-/eslint-8.56.0.tgz", + "integrity": "sha512-FlsN0p4FhuYRjIxpbdXovvHQhtlG05O1GG/RNWvdAxTboR438IOTwmrY/vLA+Xfgg06BTkP045M3vpFwTMv1dg==", + "dev": true, + "dependencies": { + "@types/estree": "*", + "@types/json-schema": "*" + } + }, + "node_modules/@types/eslint-scope": { + "version": "3.7.7", + "resolved": "https://registry.npmjs.org/@types/eslint-scope/-/eslint-scope-3.7.7.tgz", + "integrity": "sha512-MzMFlSLBqNF2gcHWO0G1vP/YQyfvrxZ0bF+u7mzUdZ1/xK4A4sru+nraZz5i3iEIk1l1uyicaDVTB4QbbEkAYg==", + "dev": true, + "peer": true, + "dependencies": { + "@types/eslint": "*", + "@types/estree": "*" + } + }, + "node_modules/@types/estree": { + "version": "1.0.5", + "resolved": "https://registry.npmjs.org/@types/estree/-/estree-1.0.5.tgz", + "integrity": "sha512-/kYRxGDLWzHOB7q+wtSUQlFrtcdUccpfy+X+9iMBpHK8QLLhx2wIPYuS5DYtR9Wa/YlZAbIovy7qVdB1Aq6Lyw==", + "dev": true + }, + "node_modules/@types/fs-extra": { + "version": "8.1.5", + "resolved": "https://registry.npmjs.org/@types/fs-extra/-/fs-extra-8.1.5.tgz", + "integrity": "sha512-0dzKcwO+S8s2kuF5Z9oUWatQJj5Uq/iqphEtE3GQJVRRYm/tD1LglU2UnXi2A8jLq5umkGouOXOR9y0n613ZwQ==", + "dev": true, + "dependencies": { + "@types/node": "*" + } + }, + "node_modules/@types/glob": { + "version": "7.2.0", + "resolved": "https://registry.npmjs.org/@types/glob/-/glob-7.2.0.tgz", + "integrity": "sha512-ZUxbzKl0IfJILTS6t7ip5fQQM/J3TJYubDm3nMbgubNNYS62eXeUpoLUC8/7fJNiFYHTrGPQn7hspDUzIHX3UA==", + "dev": true, + "dependencies": { + "@types/minimatch": "*", + "@types/node": "*" + } + }, + "node_modules/@types/json-schema": { + "version": "7.0.15", + "resolved": "https://registry.npmjs.org/@types/json-schema/-/json-schema-7.0.15.tgz", + "integrity": "sha512-5+fP8P8MFNC+AyZCDxrB2pkZFPGzqQWUzpSeuuVLvm8VMcorNYavBqoFcxK8bQz4Qsbn4oUEEem4wDLfcysGHA==", + "dev": true + }, + "node_modules/@types/json5": { + "version": "0.0.29", + "resolved": "https://registry.npmjs.org/@types/json5/-/json5-0.0.29.tgz", + "integrity": "sha512-dRLjCWHYg4oaA77cxO64oO+7JwCwnIzkZPdrrC71jQmQtlhM556pwKo5bUzqvZndkVbeFLIIi+9TC40JNF5hNQ==", + "dev": true, + "peer": true + }, + "node_modules/@types/minimatch": { + "version": "5.1.2", + "resolved": "https://registry.npmjs.org/@types/minimatch/-/minimatch-5.1.2.tgz", + "integrity": "sha512-K0VQKziLUWkVKiRVrx4a40iPaxTUefQmjtkQofBkYRcoaaL/8rhwDWww9qWbrgicNOgnpIsMxyNIUM4+n6dUIA==", + "dev": true + }, + "node_modules/@types/minimist": { + "version": "1.2.5", + "resolved": "https://registry.npmjs.org/@types/minimist/-/minimist-1.2.5.tgz", + "integrity": "sha512-hov8bUuiLiyFPGyFPE1lwWhmzYbirOXQNNo40+y3zow8aFVTeyn3VWL0VFFfdNddA8S4Vf0Tc062rzyNr7Paag==", + "dev": true + }, + "node_modules/@types/node": { + "version": "20.10.5", + "resolved": "https://registry.npmjs.org/@types/node/-/node-20.10.5.tgz", + "integrity": "sha512-nNPsNE65wjMxEKI93yOP+NPGGBJz/PoN3kZsVLee0XMiJolxSekEVD8wRwBUBqkwc7UWop0edW50yrCQW4CyRw==", + "dev": true, + "dependencies": { + "undici-types": "~5.26.4" + } + }, + "node_modules/@types/normalize-package-data": { + "version": "2.4.4", + "resolved": "https://registry.npmjs.org/@types/normalize-package-data/-/normalize-package-data-2.4.4.tgz", + "integrity": "sha512-37i+OaWTh9qeK4LSHPsyRC7NahnGotNuZvjLSgcPzblpHB3rrCJxAOgI5gCdKm7coonsaX1Of0ILiTcnZjbfxA==", + "dev": true + }, + "node_modules/@types/semver": { + "version": "7.5.6", + "resolved": "https://registry.npmjs.org/@types/semver/-/semver-7.5.6.tgz", + "integrity": "sha512-dn1l8LaMea/IjDoHNd9J52uBbInB796CDffS6VdIxvqYCPSG0V0DzHp76GpaWnlhg88uYyPbXCDIowa86ybd5A==", + "dev": true + }, + "node_modules/@types/toastify-js": { + "version": "1.12.3", + "resolved": "https://registry.npmjs.org/@types/toastify-js/-/toastify-js-1.12.3.tgz", + "integrity": "sha512-9RjLlbAHMSaae/KZNHGv19VG4gcLIm3YjvacCXBtfMfYn26h76YP5oxXI8k26q4iKXCB9LNfv18lsoS0JnFPTg==", + "dev": true + }, + "node_modules/@typescript-eslint/eslint-plugin": { + "version": "5.62.0", + "resolved": "https://registry.npmjs.org/@typescript-eslint/eslint-plugin/-/eslint-plugin-5.62.0.tgz", + "integrity": "sha512-TiZzBSJja/LbhNPvk6yc0JrX9XqhQ0hdh6M2svYfsHGejaKFIAGd9MQ+ERIMzLGlN/kZoYIgdxFV0PuljTKXag==", + "dev": true, + "dependencies": { + "@eslint-community/regexpp": "^4.4.0", + "@typescript-eslint/scope-manager": "5.62.0", + "@typescript-eslint/type-utils": "5.62.0", + "@typescript-eslint/utils": "5.62.0", + "debug": "^4.3.4", + "graphemer": "^1.4.0", + "ignore": "^5.2.0", + "natural-compare-lite": "^1.4.0", + "semver": "^7.3.7", + "tsutils": "^3.21.0" + }, + "engines": { + "node": "^12.22.0 || ^14.17.0 || >=16.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/typescript-eslint" + }, + "peerDependencies": { + "@typescript-eslint/parser": "^5.0.0", + "eslint": "^6.0.0 || ^7.0.0 || ^8.0.0" + }, + "peerDependenciesMeta": { + "typescript": { + "optional": true + } + } + }, + "node_modules/@typescript-eslint/eslint-plugin/node_modules/lru-cache": { + "version": "6.0.0", + "resolved": "https://registry.npmjs.org/lru-cache/-/lru-cache-6.0.0.tgz", + "integrity": "sha512-Jo6dJ04CmSjuznwJSS3pUeWmd/H0ffTlkXXgwZi+eq1UCmqQwCh+eLsYOYCwY991i2Fah4h1BEMCx4qThGbsiA==", + "dev": true, + "dependencies": { + "yallist": "^4.0.0" + }, + "engines": { + "node": ">=10" + } + }, + "node_modules/@typescript-eslint/eslint-plugin/node_modules/semver": { + "version": "7.5.4", + "resolved": "https://registry.npmjs.org/semver/-/semver-7.5.4.tgz", + "integrity": "sha512-1bCSESV6Pv+i21Hvpxp3Dx+pSD8lIPt8uVjRrxAUt/nbswYc+tK6Y2btiULjd4+fnq15PX+nqQDC7Oft7WkwcA==", + "dev": true, + "dependencies": { + "lru-cache": "^6.0.0" + }, + "bin": { + "semver": "bin/semver.js" + }, + "engines": { + "node": ">=10" + } + }, + "node_modules/@typescript-eslint/eslint-plugin/node_modules/yallist": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/yallist/-/yallist-4.0.0.tgz", + "integrity": "sha512-3wdGidZyq5PB084XLES5TpOSRA3wjXAlIWMhum2kRcv/41Sn2emQ0dycQW4uZXLejwKvg6EsvbdlVL+FYEct7A==", + "dev": true + }, + "node_modules/@typescript-eslint/parser": { + "version": "5.62.0", + "resolved": "https://registry.npmjs.org/@typescript-eslint/parser/-/parser-5.62.0.tgz", + "integrity": "sha512-VlJEV0fOQ7BExOsHYAGrgbEiZoi8D+Bl2+f6V2RrXerRSylnp+ZBHmPvaIa8cz0Ajx7WO7Z5RqfgYg7ED1nRhA==", + "dev": true, + "dependencies": { + "@typescript-eslint/scope-manager": "5.62.0", + "@typescript-eslint/types": "5.62.0", + "@typescript-eslint/typescript-estree": "5.62.0", + "debug": "^4.3.4" + }, + "engines": { + "node": "^12.22.0 || ^14.17.0 || >=16.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/typescript-eslint" + }, + "peerDependencies": { + "eslint": "^6.0.0 || ^7.0.0 || ^8.0.0" + }, + "peerDependenciesMeta": { + "typescript": { + "optional": true + } + } + }, + "node_modules/@typescript-eslint/scope-manager": { + "version": "5.62.0", + "resolved": "https://registry.npmjs.org/@typescript-eslint/scope-manager/-/scope-manager-5.62.0.tgz", + "integrity": "sha512-VXuvVvZeQCQb5Zgf4HAxc04q5j+WrNAtNh9OwCsCgpKqESMTu3tF/jhZ3xG6T4NZwWl65Bg8KuS2uEvhSfLl0w==", + "dev": true, + "dependencies": { + "@typescript-eslint/types": "5.62.0", + "@typescript-eslint/visitor-keys": "5.62.0" + }, + "engines": { + "node": "^12.22.0 || ^14.17.0 || >=16.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/typescript-eslint" + } + }, + "node_modules/@typescript-eslint/type-utils": { + "version": "5.62.0", + "resolved": "https://registry.npmjs.org/@typescript-eslint/type-utils/-/type-utils-5.62.0.tgz", + "integrity": "sha512-xsSQreu+VnfbqQpW5vnCJdq1Z3Q0U31qiWmRhr98ONQmcp/yhiPJFPq8MXiJVLiksmOKSjIldZzkebzHuCGzew==", + "dev": true, + "dependencies": { + "@typescript-eslint/typescript-estree": "5.62.0", + "@typescript-eslint/utils": "5.62.0", + "debug": "^4.3.4", + "tsutils": "^3.21.0" + }, + "engines": { + "node": "^12.22.0 || ^14.17.0 || >=16.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/typescript-eslint" + }, + "peerDependencies": { + "eslint": "*" + }, + "peerDependenciesMeta": { + "typescript": { + "optional": true + } + } + }, + "node_modules/@typescript-eslint/types": { + "version": "5.62.0", + "resolved": "https://registry.npmjs.org/@typescript-eslint/types/-/types-5.62.0.tgz", + "integrity": "sha512-87NVngcbVXUahrRTqIK27gD2t5Cu1yuCXxbLcFtCzZGlfyVWWh8mLHkoxzjsB6DDNnvdL+fW8MiwPEJyGJQDgQ==", + "dev": true, + "engines": { + "node": "^12.22.0 || ^14.17.0 || >=16.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/typescript-eslint" + } + }, + "node_modules/@typescript-eslint/typescript-estree": { + "version": "5.62.0", + "resolved": "https://registry.npmjs.org/@typescript-eslint/typescript-estree/-/typescript-estree-5.62.0.tgz", + "integrity": "sha512-CmcQ6uY7b9y694lKdRB8FEel7JbU/40iSAPomu++SjLMntB+2Leay2LO6i8VnJk58MtE9/nQSFIH6jpyRWyYzA==", + "dev": true, + "dependencies": { + "@typescript-eslint/types": "5.62.0", + "@typescript-eslint/visitor-keys": "5.62.0", + "debug": "^4.3.4", + "globby": "^11.1.0", + "is-glob": "^4.0.3", + "semver": "^7.3.7", + "tsutils": "^3.21.0" + }, + "engines": { + "node": "^12.22.0 || ^14.17.0 || >=16.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/typescript-eslint" + }, + "peerDependenciesMeta": { + "typescript": { + "optional": true + } + } + }, + "node_modules/@typescript-eslint/typescript-estree/node_modules/lru-cache": { + "version": "6.0.0", + "resolved": "https://registry.npmjs.org/lru-cache/-/lru-cache-6.0.0.tgz", + "integrity": "sha512-Jo6dJ04CmSjuznwJSS3pUeWmd/H0ffTlkXXgwZi+eq1UCmqQwCh+eLsYOYCwY991i2Fah4h1BEMCx4qThGbsiA==", + "dev": true, + "dependencies": { + "yallist": "^4.0.0" + }, + "engines": { + "node": ">=10" + } + }, + "node_modules/@typescript-eslint/typescript-estree/node_modules/semver": { + "version": "7.5.4", + "resolved": "https://registry.npmjs.org/semver/-/semver-7.5.4.tgz", + "integrity": "sha512-1bCSESV6Pv+i21Hvpxp3Dx+pSD8lIPt8uVjRrxAUt/nbswYc+tK6Y2btiULjd4+fnq15PX+nqQDC7Oft7WkwcA==", + "dev": true, + "dependencies": { + "lru-cache": "^6.0.0" + }, + "bin": { + "semver": "bin/semver.js" + }, + "engines": { + "node": ">=10" + } + }, + "node_modules/@typescript-eslint/typescript-estree/node_modules/yallist": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/yallist/-/yallist-4.0.0.tgz", + "integrity": "sha512-3wdGidZyq5PB084XLES5TpOSRA3wjXAlIWMhum2kRcv/41Sn2emQ0dycQW4uZXLejwKvg6EsvbdlVL+FYEct7A==", + "dev": true + }, + "node_modules/@typescript-eslint/utils": { + "version": "5.62.0", + "resolved": "https://registry.npmjs.org/@typescript-eslint/utils/-/utils-5.62.0.tgz", + "integrity": "sha512-n8oxjeb5aIbPFEtmQxQYOLI0i9n5ySBEY/ZEHHZqKQSFnxio1rv6dthascc9dLuwrL0RC5mPCxB7vnAVGAYWAQ==", + "dev": true, + "dependencies": { + "@eslint-community/eslint-utils": "^4.2.0", + "@types/json-schema": "^7.0.9", + "@types/semver": "^7.3.12", + "@typescript-eslint/scope-manager": "5.62.0", + "@typescript-eslint/types": "5.62.0", + "@typescript-eslint/typescript-estree": "5.62.0", + "eslint-scope": "^5.1.1", + "semver": "^7.3.7" + }, + "engines": { + "node": "^12.22.0 || ^14.17.0 || >=16.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/typescript-eslint" + }, + "peerDependencies": { + "eslint": "^6.0.0 || ^7.0.0 || ^8.0.0" + } + }, + "node_modules/@typescript-eslint/utils/node_modules/lru-cache": { + "version": "6.0.0", + "resolved": "https://registry.npmjs.org/lru-cache/-/lru-cache-6.0.0.tgz", + "integrity": "sha512-Jo6dJ04CmSjuznwJSS3pUeWmd/H0ffTlkXXgwZi+eq1UCmqQwCh+eLsYOYCwY991i2Fah4h1BEMCx4qThGbsiA==", + "dev": true, + "dependencies": { + "yallist": "^4.0.0" + }, + "engines": { + "node": ">=10" + } + }, + "node_modules/@typescript-eslint/utils/node_modules/semver": { + "version": "7.5.4", + "resolved": "https://registry.npmjs.org/semver/-/semver-7.5.4.tgz", + "integrity": "sha512-1bCSESV6Pv+i21Hvpxp3Dx+pSD8lIPt8uVjRrxAUt/nbswYc+tK6Y2btiULjd4+fnq15PX+nqQDC7Oft7WkwcA==", + "dev": true, + "dependencies": { + "lru-cache": "^6.0.0" + }, + "bin": { + "semver": "bin/semver.js" + }, + "engines": { + "node": ">=10" + } + }, + "node_modules/@typescript-eslint/utils/node_modules/yallist": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/yallist/-/yallist-4.0.0.tgz", + "integrity": "sha512-3wdGidZyq5PB084XLES5TpOSRA3wjXAlIWMhum2kRcv/41Sn2emQ0dycQW4uZXLejwKvg6EsvbdlVL+FYEct7A==", + "dev": true + }, + "node_modules/@typescript-eslint/visitor-keys": { + "version": "5.62.0", + "resolved": "https://registry.npmjs.org/@typescript-eslint/visitor-keys/-/visitor-keys-5.62.0.tgz", + "integrity": "sha512-07ny+LHRzQXepkGg6w0mFY41fVUNBrL2Roj/++7V1txKugfjm/Ci/qSND03r2RhlJhJYMcTn9AhhSSqQp0Ysyw==", + "dev": true, + "dependencies": { + "@typescript-eslint/types": "5.62.0", + "eslint-visitor-keys": "^3.3.0" + }, + "engines": { + "node": "^12.22.0 || ^14.17.0 || >=16.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/typescript-eslint" + } + }, + "node_modules/@ungap/structured-clone": { + "version": "1.2.0", + "resolved": "https://registry.npmjs.org/@ungap/structured-clone/-/structured-clone-1.2.0.tgz", + "integrity": "sha512-zuVdFrMJiuCDQUMCzQaD6KL28MjnqqN8XnAqiEq9PNm/hCPTSGfrXCOfwj1ow4LFb/tNymJPwsNbVePc1xFqrQ==", + "dev": true + }, + "node_modules/@vitejs/plugin-basic-ssl": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/@vitejs/plugin-basic-ssl/-/plugin-basic-ssl-1.0.2.tgz", + "integrity": "sha512-DKHKVtpI+eA5fvObVgQ3QtTGU70CcCnedalzqmGSR050AzKZMdUzgC8KmlOneHWH8dF2hJ3wkC9+8FDVAaDRCw==", + "dev": true, + "engines": { + "node": ">=14.6.0" + }, + "peerDependencies": { + "vite": "^3.0.0 || ^4.0.0 || ^5.0.0" + } + }, + "node_modules/@vitejs/plugin-vue": { + "version": "4.5.2", + "resolved": "https://registry.npmjs.org/@vitejs/plugin-vue/-/plugin-vue-4.5.2.tgz", + "integrity": "sha512-UGR3DlzLi/SaVBPX0cnSyE37vqxU3O6chn8l0HJNzQzDia6/Au2A4xKv+iIJW8w2daf80G7TYHhi1pAUjdZ0bQ==", + "dev": true, + "engines": { + "node": "^14.18.0 || >=16.0.0" + }, + "peerDependencies": { + "vite": "^4.0.0 || ^5.0.0", + "vue": "^3.2.25" + } + }, + "node_modules/@volar/language-core": { + "version": "1.10.10", + "resolved": "https://registry.npmjs.org/@volar/language-core/-/language-core-1.10.10.tgz", + "integrity": "sha512-nsV1o3AZ5n5jaEAObrS3MWLBWaGwUj/vAsc15FVNIv+DbpizQRISg9wzygsHBr56ELRH8r4K75vkYNMtsSNNWw==", + "dev": true, + "dependencies": { + "@volar/source-map": "1.10.10" + } + }, + "node_modules/@volar/source-map": { + "version": "1.10.10", + "resolved": "https://registry.npmjs.org/@volar/source-map/-/source-map-1.10.10.tgz", + "integrity": "sha512-GVKjLnifV4voJ9F0vhP56p4+F3WGf+gXlRtjFZsv6v3WxBTWU3ZVeaRaEHJmWrcv5LXmoYYpk/SC25BKemPRkg==", + "dev": true, + "dependencies": { + "muggle-string": "^0.3.1" + } + }, + "node_modules/@volar/typescript": { + "version": "1.10.10", + "resolved": "https://registry.npmjs.org/@volar/typescript/-/typescript-1.10.10.tgz", + "integrity": "sha512-4a2r5bdUub2m+mYVnLu2wt59fuoYWe7nf0uXtGHU8QQ5LDNfzAR0wK7NgDiQ9rcl2WT3fxT2AA9AylAwFtj50A==", + "dev": true, + "dependencies": { + "@volar/language-core": "1.10.10", + "path-browserify": "^1.0.1" + } + }, + "node_modules/@vue/compiler-core": { + "version": "3.3.13", + "resolved": "https://registry.npmjs.org/@vue/compiler-core/-/compiler-core-3.3.13.tgz", + "integrity": "sha512-bwi9HShGu7uaZLOErZgsH2+ojsEdsjerbf2cMXPwmvcgZfVPZ2BVZzCVnwZBxTAYd6Mzbmf6izcUNDkWnBBQ6A==", + "dev": true, + "dependencies": { + "@babel/parser": "^7.23.5", + "@vue/shared": "3.3.13", + "estree-walker": "^2.0.2", + "source-map-js": "^1.0.2" + } + }, + "node_modules/@vue/compiler-dom": { + "version": "3.3.13", + "resolved": "https://registry.npmjs.org/@vue/compiler-dom/-/compiler-dom-3.3.13.tgz", + "integrity": "sha512-EYRDpbLadGtNL0Gph+HoKiYqXLqZ0xSSpR5Dvnu/Ep7ggaCbjRDIus1MMxTS2Qm0koXED4xSlvTZaTnI8cYAsw==", + "dev": true, + "dependencies": { + "@vue/compiler-core": "3.3.13", + "@vue/shared": "3.3.13" + } + }, + "node_modules/@vue/compiler-sfc": { + "version": "3.3.13", + "resolved": "https://registry.npmjs.org/@vue/compiler-sfc/-/compiler-sfc-3.3.13.tgz", + "integrity": "sha512-DQVmHEy/EKIgggvnGRLx21hSqnr1smUS9Aq8tfxiiot8UR0/pXKHN9k78/qQ7etyQTFj5em5nruODON7dBeumw==", + "dev": true, + "dependencies": { + "@babel/parser": "^7.23.5", + "@vue/compiler-core": "3.3.13", + "@vue/compiler-dom": "3.3.13", + "@vue/compiler-ssr": "3.3.13", + "@vue/reactivity-transform": "3.3.13", + "@vue/shared": "3.3.13", + "estree-walker": "^2.0.2", + "magic-string": "^0.30.5", + "postcss": "^8.4.32", + "source-map-js": "^1.0.2" + } + }, + "node_modules/@vue/compiler-ssr": { + "version": "3.3.13", + "resolved": "https://registry.npmjs.org/@vue/compiler-ssr/-/compiler-ssr-3.3.13.tgz", + "integrity": "sha512-d/P3bCeUGmkJNS1QUZSAvoCIW4fkOKK3l2deE7zrp0ypJEy+En2AcypIkqvcFQOcw3F0zt2VfMvNsA9JmExTaw==", + "dev": true, + "dependencies": { + "@vue/compiler-dom": "3.3.13", + "@vue/shared": "3.3.13" + } + }, + "node_modules/@vue/eslint-config-typescript": { + "version": "12.0.0", + "resolved": "https://registry.npmjs.org/@vue/eslint-config-typescript/-/eslint-config-typescript-12.0.0.tgz", + "integrity": "sha512-StxLFet2Qe97T8+7L8pGlhYBBr8Eg05LPuTDVopQV6il+SK6qqom59BA/rcFipUef2jD8P2X44Vd8tMFytfvlg==", + "dev": true, + "dependencies": { + "@typescript-eslint/eslint-plugin": "^6.7.0", + "@typescript-eslint/parser": "^6.7.0", + "vue-eslint-parser": "^9.3.1" + }, + "engines": { + "node": "^14.17.0 || >=16.0.0" + }, + "peerDependencies": { + "eslint": "^6.2.0 || ^7.0.0 || ^8.0.0", + "eslint-plugin-vue": "^9.0.0", + "typescript": "*" + }, + "peerDependenciesMeta": { + "typescript": { + "optional": true + } + } + }, + "node_modules/@vue/eslint-config-typescript/node_modules/@typescript-eslint/eslint-plugin": { + "version": "6.15.0", + "resolved": "https://registry.npmjs.org/@typescript-eslint/eslint-plugin/-/eslint-plugin-6.15.0.tgz", + "integrity": "sha512-j5qoikQqPccq9QoBAupOP+CBu8BaJ8BLjaXSioDISeTZkVO3ig7oSIKh3H+rEpee7xCXtWwSB4KIL5l6hWZzpg==", + "dev": true, + "dependencies": { + "@eslint-community/regexpp": "^4.5.1", + "@typescript-eslint/scope-manager": "6.15.0", + "@typescript-eslint/type-utils": "6.15.0", + "@typescript-eslint/utils": "6.15.0", + "@typescript-eslint/visitor-keys": "6.15.0", + "debug": "^4.3.4", + "graphemer": "^1.4.0", + "ignore": "^5.2.4", + "natural-compare": "^1.4.0", + "semver": "^7.5.4", + "ts-api-utils": "^1.0.1" + }, + "engines": { + "node": "^16.0.0 || >=18.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/typescript-eslint" + }, + "peerDependencies": { + "@typescript-eslint/parser": "^6.0.0 || ^6.0.0-alpha", + "eslint": "^7.0.0 || ^8.0.0" + }, + "peerDependenciesMeta": { + "typescript": { + "optional": true + } + } + }, + "node_modules/@vue/eslint-config-typescript/node_modules/@typescript-eslint/parser": { + "version": "6.15.0", + "resolved": "https://registry.npmjs.org/@typescript-eslint/parser/-/parser-6.15.0.tgz", + "integrity": "sha512-MkgKNnsjC6QwcMdlNAel24jjkEO/0hQaMDLqP4S9zq5HBAUJNQB6y+3DwLjX7b3l2b37eNAxMPLwb3/kh8VKdA==", + "dev": true, + "dependencies": { + "@typescript-eslint/scope-manager": "6.15.0", + "@typescript-eslint/types": "6.15.0", + "@typescript-eslint/typescript-estree": "6.15.0", + "@typescript-eslint/visitor-keys": "6.15.0", + "debug": "^4.3.4" + }, + "engines": { + "node": "^16.0.0 || >=18.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/typescript-eslint" + }, + "peerDependencies": { + "eslint": "^7.0.0 || ^8.0.0" + }, + "peerDependenciesMeta": { + "typescript": { + "optional": true + } + } + }, + "node_modules/@vue/eslint-config-typescript/node_modules/@typescript-eslint/scope-manager": { + "version": "6.15.0", + "resolved": "https://registry.npmjs.org/@typescript-eslint/scope-manager/-/scope-manager-6.15.0.tgz", + "integrity": "sha512-+BdvxYBltqrmgCNu4Li+fGDIkW9n//NrruzG9X1vBzaNK+ExVXPoGB71kneaVw/Jp+4rH/vaMAGC6JfMbHstVg==", + "dev": true, + "dependencies": { + "@typescript-eslint/types": "6.15.0", + "@typescript-eslint/visitor-keys": "6.15.0" + }, + "engines": { + "node": "^16.0.0 || >=18.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/typescript-eslint" + } + }, + "node_modules/@vue/eslint-config-typescript/node_modules/@typescript-eslint/type-utils": { + "version": "6.15.0", + "resolved": "https://registry.npmjs.org/@typescript-eslint/type-utils/-/type-utils-6.15.0.tgz", + "integrity": "sha512-CnmHKTfX6450Bo49hPg2OkIm/D/TVYV7jO1MCfPYGwf6x3GO0VU8YMO5AYMn+u3X05lRRxA4fWCz87GFQV6yVQ==", + "dev": true, + "dependencies": { + "@typescript-eslint/typescript-estree": "6.15.0", + "@typescript-eslint/utils": "6.15.0", + "debug": "^4.3.4", + "ts-api-utils": "^1.0.1" + }, + "engines": { + "node": "^16.0.0 || >=18.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/typescript-eslint" + }, + "peerDependencies": { + "eslint": "^7.0.0 || ^8.0.0" + }, + "peerDependenciesMeta": { + "typescript": { + "optional": true + } + } + }, + "node_modules/@vue/eslint-config-typescript/node_modules/@typescript-eslint/types": { + "version": "6.15.0", + "resolved": "https://registry.npmjs.org/@typescript-eslint/types/-/types-6.15.0.tgz", + "integrity": "sha512-yXjbt//E4T/ee8Ia1b5mGlbNj9fB9lJP4jqLbZualwpP2BCQ5is6BcWwxpIsY4XKAhmdv3hrW92GdtJbatC6dQ==", + "dev": true, + "engines": { + "node": "^16.0.0 || >=18.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/typescript-eslint" + } + }, + "node_modules/@vue/eslint-config-typescript/node_modules/@typescript-eslint/typescript-estree": { + "version": "6.15.0", + "resolved": "https://registry.npmjs.org/@typescript-eslint/typescript-estree/-/typescript-estree-6.15.0.tgz", + "integrity": "sha512-7mVZJN7Hd15OmGuWrp2T9UvqR2Ecg+1j/Bp1jXUEY2GZKV6FXlOIoqVDmLpBiEiq3katvj/2n2mR0SDwtloCew==", + "dev": true, + "dependencies": { + "@typescript-eslint/types": "6.15.0", + "@typescript-eslint/visitor-keys": "6.15.0", + "debug": "^4.3.4", + "globby": "^11.1.0", + "is-glob": "^4.0.3", + "semver": "^7.5.4", + "ts-api-utils": "^1.0.1" + }, + "engines": { + "node": "^16.0.0 || >=18.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/typescript-eslint" + }, + "peerDependenciesMeta": { + "typescript": { + "optional": true + } + } + }, + "node_modules/@vue/eslint-config-typescript/node_modules/@typescript-eslint/utils": { + "version": "6.15.0", + "resolved": "https://registry.npmjs.org/@typescript-eslint/utils/-/utils-6.15.0.tgz", + "integrity": "sha512-eF82p0Wrrlt8fQSRL0bGXzK5nWPRV2dYQZdajcfzOD9+cQz9O7ugifrJxclB+xVOvWvagXfqS4Es7vpLP4augw==", + "dev": true, + "dependencies": { + "@eslint-community/eslint-utils": "^4.4.0", + "@types/json-schema": "^7.0.12", + "@types/semver": "^7.5.0", + "@typescript-eslint/scope-manager": "6.15.0", + "@typescript-eslint/types": "6.15.0", + "@typescript-eslint/typescript-estree": "6.15.0", + "semver": "^7.5.4" + }, + "engines": { + "node": "^16.0.0 || >=18.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/typescript-eslint" + }, + "peerDependencies": { + "eslint": "^7.0.0 || ^8.0.0" + } + }, + "node_modules/@vue/eslint-config-typescript/node_modules/@typescript-eslint/visitor-keys": { + "version": "6.15.0", + "resolved": "https://registry.npmjs.org/@typescript-eslint/visitor-keys/-/visitor-keys-6.15.0.tgz", + "integrity": "sha512-1zvtdC1a9h5Tb5jU9x3ADNXO9yjP8rXlaoChu0DQX40vf5ACVpYIVIZhIMZ6d5sDXH7vq4dsZBT1fEGj8D2n2w==", + "dev": true, + "dependencies": { + "@typescript-eslint/types": "6.15.0", + "eslint-visitor-keys": "^3.4.1" + }, + "engines": { + "node": "^16.0.0 || >=18.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/typescript-eslint" + } + }, + "node_modules/@vue/eslint-config-typescript/node_modules/lru-cache": { + "version": "6.0.0", + "resolved": "https://registry.npmjs.org/lru-cache/-/lru-cache-6.0.0.tgz", + "integrity": "sha512-Jo6dJ04CmSjuznwJSS3pUeWmd/H0ffTlkXXgwZi+eq1UCmqQwCh+eLsYOYCwY991i2Fah4h1BEMCx4qThGbsiA==", + "dev": true, + "dependencies": { + "yallist": "^4.0.0" + }, + "engines": { + "node": ">=10" + } + }, + "node_modules/@vue/eslint-config-typescript/node_modules/semver": { + "version": "7.5.4", + "resolved": "https://registry.npmjs.org/semver/-/semver-7.5.4.tgz", + "integrity": "sha512-1bCSESV6Pv+i21Hvpxp3Dx+pSD8lIPt8uVjRrxAUt/nbswYc+tK6Y2btiULjd4+fnq15PX+nqQDC7Oft7WkwcA==", + "dev": true, + "dependencies": { + "lru-cache": "^6.0.0" + }, + "bin": { + "semver": "bin/semver.js" + }, + "engines": { + "node": ">=10" + } + }, + "node_modules/@vue/eslint-config-typescript/node_modules/yallist": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/yallist/-/yallist-4.0.0.tgz", + "integrity": "sha512-3wdGidZyq5PB084XLES5TpOSRA3wjXAlIWMhum2kRcv/41Sn2emQ0dycQW4uZXLejwKvg6EsvbdlVL+FYEct7A==", + "dev": true + }, + "node_modules/@vue/language-core": { + "version": "1.8.11", + "resolved": "https://registry.npmjs.org/@vue/language-core/-/language-core-1.8.11.tgz", + "integrity": "sha512-+MZOBGqGwfld6hpo0DB47x8eNM0dNqk15ZdfOhj19CpvuYuOWCeVdOEGZunKDyo3QLkTn3kLOSysJzg7FDOQBA==", + "dev": true, + "dependencies": { + "@volar/language-core": "~1.10.0", + "@volar/source-map": "~1.10.0", + "@vue/compiler-dom": "^3.3.0", + "@vue/reactivity": "^3.3.0", + "@vue/shared": "^3.3.0", + "minimatch": "^9.0.0", + "muggle-string": "^0.3.1", + "vue-template-compiler": "^2.7.14" + }, + "peerDependencies": { + "typescript": "*" + }, + "peerDependenciesMeta": { + "typescript": { + "optional": true + } + } + }, + "node_modules/@vue/language-core/node_modules/brace-expansion": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-2.0.1.tgz", + "integrity": "sha512-XnAIvQ8eM+kC6aULx6wuQiwVsnzsi9d3WxzV3FpWTGA19F621kwdbsAcFKXgKUHZWsy+mY6iL1sHTxWEFCytDA==", + "dev": true, + "dependencies": { + "balanced-match": "^1.0.0" + } + }, + "node_modules/@vue/language-core/node_modules/minimatch": { + "version": "9.0.3", + "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-9.0.3.tgz", + "integrity": "sha512-RHiac9mvaRw0x3AYRgDC1CxAP7HTcNrrECeA8YYJeWnpo+2Q5CegtZjaotWTWxDG3UeGA1coE05iH1mPjT/2mg==", + "dev": true, + "dependencies": { + "brace-expansion": "^2.0.1" + }, + "engines": { + "node": ">=16 || 14 >=14.17" + }, + "funding": { + "url": "https://github.com/sponsors/isaacs" + } + }, + "node_modules/@vue/reactivity": { + "version": "3.3.13", + "resolved": "https://registry.npmjs.org/@vue/reactivity/-/reactivity-3.3.13.tgz", + "integrity": "sha512-fjzCxceMahHhi4AxUBzQqqVhuA21RJ0COaWTbIBl1PruGW1CeY97louZzLi4smpYx+CHfFPPU/CS8NybbGvPKQ==", + "dev": true, + "dependencies": { + "@vue/shared": "3.3.13" + } + }, + "node_modules/@vue/reactivity-transform": { + "version": "3.3.13", + "resolved": "https://registry.npmjs.org/@vue/reactivity-transform/-/reactivity-transform-3.3.13.tgz", + "integrity": "sha512-oWnydGH0bBauhXvh5KXUy61xr9gKaMbtsMHk40IK9M4gMuKPJ342tKFarY0eQ6jef8906m35q37wwA8DMZOm5Q==", + "dev": true, + "dependencies": { + "@babel/parser": "^7.23.5", + "@vue/compiler-core": "3.3.13", + "@vue/shared": "3.3.13", + "estree-walker": "^2.0.2", + "magic-string": "^0.30.5" + } + }, + "node_modules/@vue/runtime-core": { + "version": "3.3.13", + "resolved": "https://registry.npmjs.org/@vue/runtime-core/-/runtime-core-3.3.13.tgz", + "integrity": "sha512-1TzA5TvGuh2zUwMJgdfvrBABWZ7y8kBwBhm7BXk8rvdx2SsgcGfz2ruv2GzuGZNvL1aKnK8CQMV/jFOrxNQUMA==", + "dev": true, + "dependencies": { + "@vue/reactivity": "3.3.13", + "@vue/shared": "3.3.13" + } + }, + "node_modules/@vue/runtime-dom": { + "version": "3.3.13", + "resolved": "https://registry.npmjs.org/@vue/runtime-dom/-/runtime-dom-3.3.13.tgz", + "integrity": "sha512-JJkpE8R/hJKXqVTgUoODwS5wqKtOsmJPEqmp90PDVGygtJ4C0PtOkcEYXwhiVEmef6xeXcIlrT3Yo5aQ4qkHhQ==", + "dev": true, + "dependencies": { + "@vue/runtime-core": "3.3.13", + "@vue/shared": "3.3.13", + "csstype": "^3.1.3" + } + }, + "node_modules/@vue/server-renderer": { + "version": "3.3.13", + "resolved": "https://registry.npmjs.org/@vue/server-renderer/-/server-renderer-3.3.13.tgz", + "integrity": "sha512-vSnN+nuf6iSqTL3Qgx/9A+BT+0Zf/VJOgF5uMZrKjYPs38GMYyAU1coDyBNHauehXDaP+zl73VhwWv0vBRBHcg==", + "dev": true, + "dependencies": { + "@vue/compiler-ssr": "3.3.13", + "@vue/shared": "3.3.13" + }, + "peerDependencies": { + "vue": "3.3.13" + } + }, + "node_modules/@vue/shared": { + "version": "3.3.13", + "resolved": "https://registry.npmjs.org/@vue/shared/-/shared-3.3.13.tgz", + "integrity": "sha512-/zYUwiHD8j7gKx2argXEMCUXVST6q/21DFU0sTfNX0URJroCe3b1UF6vLJ3lQDfLNIiiRl2ONp7Nh5UVWS6QnA==", + "dev": true + }, + "node_modules/@vue/tsconfig": { + "version": "0.4.0", + "resolved": "https://registry.npmjs.org/@vue/tsconfig/-/tsconfig-0.4.0.tgz", + "integrity": "sha512-CPuIReonid9+zOG/CGTT05FXrPYATEqoDGNrEaqS4hwcw5BUNM2FguC0mOwJD4Jr16UpRVl9N0pY3P+srIbqmg==", + "dev": true + }, + "node_modules/@vue/typescript": { + "version": "1.8.11", + "resolved": "https://registry.npmjs.org/@vue/typescript/-/typescript-1.8.11.tgz", + "integrity": "sha512-skUmMDiPUUtu1flPmf2YybF+PX8IzBtMioQOaNn6Ck/RhdrPJGj1AX/7s3Buf9G6ln+/KHR1XQuti/FFxw5XVA==", + "dev": true, + "dependencies": { + "@volar/typescript": "~1.10.0", + "@vue/language-core": "1.8.11" + } + }, + "node_modules/@webassemblyjs/ast": { + "version": "1.11.6", + "resolved": "https://registry.npmjs.org/@webassemblyjs/ast/-/ast-1.11.6.tgz", + "integrity": "sha512-IN1xI7PwOvLPgjcf180gC1bqn3q/QaOCwYUahIOhbYUu8KA/3tw2RT/T0Gidi1l7Hhj5D/INhJxiICObqpMu4Q==", + "dev": true, + "peer": true, + "dependencies": { + "@webassemblyjs/helper-numbers": "1.11.6", + "@webassemblyjs/helper-wasm-bytecode": "1.11.6" + } + }, + "node_modules/@webassemblyjs/floating-point-hex-parser": { + "version": "1.11.6", + "resolved": "https://registry.npmjs.org/@webassemblyjs/floating-point-hex-parser/-/floating-point-hex-parser-1.11.6.tgz", + "integrity": "sha512-ejAj9hfRJ2XMsNHk/v6Fu2dGS+i4UaXBXGemOfQ/JfQ6mdQg/WXtwleQRLLS4OvfDhv8rYnVwH27YJLMyYsxhw==", + "dev": true, + "peer": true + }, + "node_modules/@webassemblyjs/helper-api-error": { + "version": "1.11.6", + "resolved": "https://registry.npmjs.org/@webassemblyjs/helper-api-error/-/helper-api-error-1.11.6.tgz", + "integrity": "sha512-o0YkoP4pVu4rN8aTJgAyj9hC2Sv5UlkzCHhxqWj8butaLvnpdc2jOwh4ewE6CX0txSfLn/UYaV/pheS2Txg//Q==", + "dev": true, + "peer": true + }, + "node_modules/@webassemblyjs/helper-buffer": { + "version": "1.11.6", + "resolved": "https://registry.npmjs.org/@webassemblyjs/helper-buffer/-/helper-buffer-1.11.6.tgz", + "integrity": "sha512-z3nFzdcp1mb8nEOFFk8DrYLpHvhKC3grJD2ardfKOzmbmJvEf/tPIqCY+sNcwZIY8ZD7IkB2l7/pqhUhqm7hLA==", + "dev": true, + "peer": true + }, + "node_modules/@webassemblyjs/helper-numbers": { + "version": "1.11.6", + "resolved": "https://registry.npmjs.org/@webassemblyjs/helper-numbers/-/helper-numbers-1.11.6.tgz", + "integrity": "sha512-vUIhZ8LZoIWHBohiEObxVm6hwP034jwmc9kuq5GdHZH0wiLVLIPcMCdpJzG4C11cHoQ25TFIQj9kaVADVX7N3g==", + "dev": true, + "peer": true, + "dependencies": { + "@webassemblyjs/floating-point-hex-parser": "1.11.6", + "@webassemblyjs/helper-api-error": "1.11.6", + "@xtuc/long": "4.2.2" + } + }, + "node_modules/@webassemblyjs/helper-wasm-bytecode": { + "version": "1.11.6", + "resolved": "https://registry.npmjs.org/@webassemblyjs/helper-wasm-bytecode/-/helper-wasm-bytecode-1.11.6.tgz", + "integrity": "sha512-sFFHKwcmBprO9e7Icf0+gddyWYDViL8bpPjJJl0WHxCdETktXdmtWLGVzoHbqUcY4Be1LkNfwTmXOJUFZYSJdA==", + "dev": true, + "peer": true + }, + "node_modules/@webassemblyjs/helper-wasm-section": { + "version": "1.11.6", + "resolved": "https://registry.npmjs.org/@webassemblyjs/helper-wasm-section/-/helper-wasm-section-1.11.6.tgz", + "integrity": "sha512-LPpZbSOwTpEC2cgn4hTydySy1Ke+XEu+ETXuoyvuyezHO3Kjdu90KK95Sh9xTbmjrCsUwvWwCOQQNta37VrS9g==", + "dev": true, + "peer": true, + "dependencies": { + "@webassemblyjs/ast": "1.11.6", + "@webassemblyjs/helper-buffer": "1.11.6", + "@webassemblyjs/helper-wasm-bytecode": "1.11.6", + "@webassemblyjs/wasm-gen": "1.11.6" + } + }, + "node_modules/@webassemblyjs/ieee754": { + "version": "1.11.6", + "resolved": "https://registry.npmjs.org/@webassemblyjs/ieee754/-/ieee754-1.11.6.tgz", + "integrity": "sha512-LM4p2csPNvbij6U1f19v6WR56QZ8JcHg3QIJTlSwzFcmx6WSORicYj6I63f9yU1kEUtrpG+kjkiIAkevHpDXrg==", + "dev": true, + "peer": true, + "dependencies": { + "@xtuc/ieee754": "^1.2.0" + } + }, + "node_modules/@webassemblyjs/leb128": { + "version": "1.11.6", + "resolved": "https://registry.npmjs.org/@webassemblyjs/leb128/-/leb128-1.11.6.tgz", + "integrity": "sha512-m7a0FhE67DQXgouf1tbN5XQcdWoNgaAuoULHIfGFIEVKA6tu/edls6XnIlkmS6FrXAquJRPni3ZZKjw6FSPjPQ==", + "dev": true, + "peer": true, + "dependencies": { + "@xtuc/long": "4.2.2" + } + }, + "node_modules/@webassemblyjs/utf8": { + "version": "1.11.6", + "resolved": "https://registry.npmjs.org/@webassemblyjs/utf8/-/utf8-1.11.6.tgz", + "integrity": "sha512-vtXf2wTQ3+up9Zsg8sa2yWiQpzSsMyXj0qViVP6xKGCUT8p8YJ6HqI7l5eCnWx1T/FYdsv07HQs2wTFbbof/RA==", + "dev": true, + "peer": true + }, + "node_modules/@webassemblyjs/wasm-edit": { + "version": "1.11.6", + "resolved": "https://registry.npmjs.org/@webassemblyjs/wasm-edit/-/wasm-edit-1.11.6.tgz", + "integrity": "sha512-Ybn2I6fnfIGuCR+Faaz7YcvtBKxvoLV3Lebn1tM4o/IAJzmi9AWYIPWpyBfU8cC+JxAO57bk4+zdsTjJR+VTOw==", + "dev": true, + "peer": true, + "dependencies": { + "@webassemblyjs/ast": "1.11.6", + "@webassemblyjs/helper-buffer": "1.11.6", + "@webassemblyjs/helper-wasm-bytecode": "1.11.6", + "@webassemblyjs/helper-wasm-section": "1.11.6", + "@webassemblyjs/wasm-gen": "1.11.6", + "@webassemblyjs/wasm-opt": "1.11.6", + "@webassemblyjs/wasm-parser": "1.11.6", + "@webassemblyjs/wast-printer": "1.11.6" + } + }, + "node_modules/@webassemblyjs/wasm-gen": { + "version": "1.11.6", + "resolved": "https://registry.npmjs.org/@webassemblyjs/wasm-gen/-/wasm-gen-1.11.6.tgz", + "integrity": "sha512-3XOqkZP/y6B4F0PBAXvI1/bky7GryoogUtfwExeP/v7Nzwo1QLcq5oQmpKlftZLbT+ERUOAZVQjuNVak6UXjPA==", + "dev": true, + "peer": true, + "dependencies": { + "@webassemblyjs/ast": "1.11.6", + "@webassemblyjs/helper-wasm-bytecode": "1.11.6", + "@webassemblyjs/ieee754": "1.11.6", + "@webassemblyjs/leb128": "1.11.6", + "@webassemblyjs/utf8": "1.11.6" + } + }, + "node_modules/@webassemblyjs/wasm-opt": { + "version": "1.11.6", + "resolved": "https://registry.npmjs.org/@webassemblyjs/wasm-opt/-/wasm-opt-1.11.6.tgz", + "integrity": "sha512-cOrKuLRE7PCe6AsOVl7WasYf3wbSo4CeOk6PkrjS7g57MFfVUF9u6ysQBBODX0LdgSvQqRiGz3CXvIDKcPNy4g==", + "dev": true, + "peer": true, + "dependencies": { + "@webassemblyjs/ast": "1.11.6", + "@webassemblyjs/helper-buffer": "1.11.6", + "@webassemblyjs/wasm-gen": "1.11.6", + "@webassemblyjs/wasm-parser": "1.11.6" + } + }, + "node_modules/@webassemblyjs/wasm-parser": { + "version": "1.11.6", + "resolved": "https://registry.npmjs.org/@webassemblyjs/wasm-parser/-/wasm-parser-1.11.6.tgz", + "integrity": "sha512-6ZwPeGzMJM3Dqp3hCsLgESxBGtT/OeCvCZ4TA1JUPYgmhAx38tTPR9JaKy0S5H3evQpO/h2uWs2j6Yc/fjkpTQ==", + "dev": true, + "peer": true, + "dependencies": { + "@webassemblyjs/ast": "1.11.6", + "@webassemblyjs/helper-api-error": "1.11.6", + "@webassemblyjs/helper-wasm-bytecode": "1.11.6", + "@webassemblyjs/ieee754": "1.11.6", + "@webassemblyjs/leb128": "1.11.6", + "@webassemblyjs/utf8": "1.11.6" + } + }, + "node_modules/@webassemblyjs/wast-printer": { + "version": "1.11.6", + "resolved": "https://registry.npmjs.org/@webassemblyjs/wast-printer/-/wast-printer-1.11.6.tgz", + "integrity": "sha512-JM7AhRcE+yW2GWYaKeHL5vt4xqee5N2WcezptmgyhNS+ScggqcT1OtXykhAb13Sn5Yas0j2uv9tHgrjwvzAP4A==", + "dev": true, + "peer": true, + "dependencies": { + "@webassemblyjs/ast": "1.11.6", + "@xtuc/long": "4.2.2" + } + }, + "node_modules/@xtuc/ieee754": { + "version": "1.2.0", + "resolved": "https://registry.npmjs.org/@xtuc/ieee754/-/ieee754-1.2.0.tgz", + "integrity": "sha512-DX8nKgqcGwsc0eJSqYt5lwP4DH5FlHnmuWWBRy7X0NcaGR0ZtuyeESgMwTYVEtxmsNGY+qit4QYT/MIYTOTPeA==", + "dev": true, + "peer": true + }, + "node_modules/@xtuc/long": { + "version": "4.2.2", + "resolved": "https://registry.npmjs.org/@xtuc/long/-/long-4.2.2.tgz", + "integrity": "sha512-NuHqBY1PB/D8xU6s/thBgOAiAP7HOYDQ32+BFZILJ8ivkUkAHQnWfn6WhL79Owj1qmUnoN/YPhktdIoucipkAQ==", + "dev": true, + "peer": true + }, + "node_modules/acorn": { + "version": "8.11.2", + "resolved": "https://registry.npmjs.org/acorn/-/acorn-8.11.2.tgz", + "integrity": "sha512-nc0Axzp/0FILLEVsm4fNwLCwMttvhEI263QtVPQcbpfZZ3ts0hLsZGOpE6czNlid7CJ9MlyH8reXkpsf3YUY4w==", + "dev": true, + "bin": { + "acorn": "bin/acorn" + }, + "engines": { + "node": ">=0.4.0" + } + }, + "node_modules/acorn-import-assertions": { + "version": "1.9.0", + "resolved": "https://registry.npmjs.org/acorn-import-assertions/-/acorn-import-assertions-1.9.0.tgz", + "integrity": "sha512-cmMwop9x+8KFhxvKrKfPYmN6/pKTYYHBqLa0DfvVZcKMJWNyWLnaqND7dx/qn66R7ewM1UX5XMaDVP5wlVTaVA==", + "dev": true, + "peer": true, + "peerDependencies": { + "acorn": "^8" + } + }, + "node_modules/acorn-jsx": { + "version": "5.3.2", + "resolved": "https://registry.npmjs.org/acorn-jsx/-/acorn-jsx-5.3.2.tgz", + "integrity": "sha512-rq9s+JNhf0IChjtDXxllJ7g41oZk5SlXtp0LHwyA5cejwn7vKmKp4pPri6YEePv2PU65sAsegbXtIinmDFDXgQ==", + "dev": true, + "peerDependencies": { + "acorn": "^6.0.0 || ^7.0.0 || ^8.0.0" + } + }, + "node_modules/adjust-sourcemap-loader": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/adjust-sourcemap-loader/-/adjust-sourcemap-loader-4.0.0.tgz", + "integrity": "sha512-OXwN5b9pCUXNQHJpwwD2qP40byEmSgzj8B4ydSN0uMNYWiFmJ6x6KwUllMmfk8Rwu/HJDFR7U8ubsWBoN0Xp0A==", + "dev": true, + "dependencies": { + "loader-utils": "^2.0.0", + "regex-parser": "^2.2.11" + }, + "engines": { + "node": ">=8.9" + } + }, + "node_modules/ajv": { + "version": "6.12.6", + "resolved": "https://registry.npmjs.org/ajv/-/ajv-6.12.6.tgz", + "integrity": "sha512-j3fVLgvTo527anyYyJOGTYJbG+vnnQYvE0m5mmkc1TK+nxAppkCLMIL0aZ4dblVCNoGShhm+kzE4ZUykBoMg4g==", + "dev": true, + "dependencies": { + "fast-deep-equal": "^3.1.1", + "fast-json-stable-stringify": "^2.0.0", + "json-schema-traverse": "^0.4.1", + "uri-js": "^4.2.2" + }, + "funding": { + "type": "github", + "url": "https://github.com/sponsors/epoberezkin" + } + }, + "node_modules/ajv-keywords": { + "version": "3.5.2", + "resolved": "https://registry.npmjs.org/ajv-keywords/-/ajv-keywords-3.5.2.tgz", + "integrity": "sha512-5p6WTN0DdTGVQk6VjcEju19IgaHudalcfabD7yhDGeA6bcQnmL+CpveLJq/3hvfwd1aof6L386Ougkx6RfyMIQ==", + "dev": true, + "peer": true, + "peerDependencies": { + "ajv": "^6.9.1" + } + }, + "node_modules/ansi-escapes": { + "version": "4.3.2", + "resolved": "https://registry.npmjs.org/ansi-escapes/-/ansi-escapes-4.3.2.tgz", + "integrity": "sha512-gKXj5ALrKWQLsYG9jlTRmR/xKluxHV+Z9QEwNIgCfM1/uwPMCuzVVnh5mwTd+OuBZcwSIMbqssNWRm1lE51QaQ==", + "dev": true, + "dependencies": { + "type-fest": "^0.21.3" + }, + "engines": { + "node": ">=8" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/ansi-regex": { + "version": "5.0.1", + "resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-5.0.1.tgz", + "integrity": "sha512-quJQXlTSUGL2LH9SUXo8VwsY4soanhgo6LNSm84E1LBcE8s3O0wpdiRzyR9z/ZZJMlMWv37qOOb9pdJlMUEKFQ==", + "dev": true, + "engines": { + "node": ">=8" + } + }, + "node_modules/ansi-styles": { + "version": "3.2.1", + "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-3.2.1.tgz", + "integrity": "sha512-VT0ZI6kZRdTh8YyJw3SMbYm/u+NqfsAxEpWO0Pf9sq8/e94WxxOpPKx9FR1FlyCtOVDNOQ+8ntlqFxiRc+r5qA==", + "dev": true, + "dependencies": { + "color-convert": "^1.9.0" + }, + "engines": { + "node": ">=4" + } + }, + "node_modules/anymatch": { + "version": "3.1.3", + "resolved": "https://registry.npmjs.org/anymatch/-/anymatch-3.1.3.tgz", + "integrity": "sha512-KMReFUr0B4t+D+OBkjR3KYqvocp2XaSzO55UcB6mgQMd3KbcE+mWTyvVV7D/zsdEbNnV6acZUutkiHQXvTr1Rw==", + "dev": true, + "dependencies": { + "normalize-path": "^3.0.0", + "picomatch": "^2.0.4" + }, + "engines": { + "node": ">= 8" + } + }, + "node_modules/argparse": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/argparse/-/argparse-2.0.1.tgz", + "integrity": "sha512-8+9WqebbFzpX9OR+Wa6O29asIogeRMzcGtAINdpMHHyAg10f05aSFVBbcEqGf/PXw1EjAZ+q2/bEBg3DvurK3Q==", + "dev": true + }, + "node_modules/array-buffer-byte-length": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/array-buffer-byte-length/-/array-buffer-byte-length-1.0.0.tgz", + "integrity": "sha512-LPuwb2P+NrQw3XhxGc36+XSvuBPopovXYTR9Ew++Du9Yb/bx5AzBfrIsBoj0EZUifjQU+sHL21sseZ3jerWO/A==", + "dev": true, + "peer": true, + "dependencies": { + "call-bind": "^1.0.2", + "is-array-buffer": "^3.0.1" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/array-includes": { + "version": "3.1.7", + "resolved": "https://registry.npmjs.org/array-includes/-/array-includes-3.1.7.tgz", + "integrity": "sha512-dlcsNBIiWhPkHdOEEKnehA+RNUWDc4UqFtnIXU4uuYDPtA4LDkr7qip2p0VvFAEXNDr0yWZ9PJyIRiGjRLQzwQ==", + "dev": true, + "peer": true, + "dependencies": { + "call-bind": "^1.0.2", + "define-properties": "^1.2.0", + "es-abstract": "^1.22.1", + "get-intrinsic": "^1.2.1", + "is-string": "^1.0.7" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/array-union": { + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/array-union/-/array-union-2.1.0.tgz", + "integrity": "sha512-HGyxoOTYUyCM6stUe6EJgnd4EoewAI7zMdfqO+kGjnlZmBDz/cR5pf8r/cR4Wq60sL/p0IkcjUEEPwS3GFrIyw==", + "dev": true, + "engines": { + "node": ">=8" + } + }, + "node_modules/array.prototype.findlastindex": { + "version": "1.2.3", + "resolved": "https://registry.npmjs.org/array.prototype.findlastindex/-/array.prototype.findlastindex-1.2.3.tgz", + "integrity": "sha512-LzLoiOMAxvy+Gd3BAq3B7VeIgPdo+Q8hthvKtXybMvRV0jrXfJM/t8mw7nNlpEcVlVUnCnM2KSX4XU5HmpodOA==", + "dev": true, + "peer": true, + "dependencies": { + "call-bind": "^1.0.2", + "define-properties": "^1.2.0", + "es-abstract": "^1.22.1", + "es-shim-unscopables": "^1.0.0", + "get-intrinsic": "^1.2.1" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/array.prototype.flat": { + "version": "1.3.2", + "resolved": "https://registry.npmjs.org/array.prototype.flat/-/array.prototype.flat-1.3.2.tgz", + "integrity": "sha512-djYB+Zx2vLewY8RWlNCUdHjDXs2XOgm602S9E7P/UpHgfeHL00cRiIF+IN/G/aUJ7kGPb6yO/ErDI5V2s8iycA==", + "dev": true, + "peer": true, + "dependencies": { + "call-bind": "^1.0.2", + "define-properties": "^1.2.0", + "es-abstract": "^1.22.1", + "es-shim-unscopables": "^1.0.0" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/array.prototype.flatmap": { + "version": "1.3.2", + "resolved": "https://registry.npmjs.org/array.prototype.flatmap/-/array.prototype.flatmap-1.3.2.tgz", + "integrity": "sha512-Ewyx0c9PmpcsByhSW4r+9zDU7sGjFc86qf/kKtuSCRdhfbk0SNLLkaT5qvcHnRGgc5NP/ly/y+qkXkqONX54CQ==", + "dev": true, + "peer": true, + "dependencies": { + "call-bind": "^1.0.2", + "define-properties": "^1.2.0", + "es-abstract": "^1.22.1", + "es-shim-unscopables": "^1.0.0" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/arraybuffer.prototype.slice": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/arraybuffer.prototype.slice/-/arraybuffer.prototype.slice-1.0.2.tgz", + "integrity": "sha512-yMBKppFur/fbHu9/6USUe03bZ4knMYiwFBcyiaXB8Go0qNehwX6inYPzK9U0NeQvGxKthcmHcaR8P5MStSRBAw==", + "dev": true, + "peer": true, + "dependencies": { + "array-buffer-byte-length": "^1.0.0", + "call-bind": "^1.0.2", + "define-properties": "^1.2.0", + "es-abstract": "^1.22.1", + "get-intrinsic": "^1.2.1", + "is-array-buffer": "^3.0.2", + "is-shared-array-buffer": "^1.0.2" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/arrify": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/arrify/-/arrify-1.0.1.tgz", + "integrity": "sha512-3CYzex9M9FGQjCGMGyi6/31c8GJbgb0qGyrx5HWxPd0aCwh4cB2YjMb2Xf9UuoogrMrlO9cTqnB5rI5GHZTcUA==", + "dev": true, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/astral-regex": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/astral-regex/-/astral-regex-2.0.0.tgz", + "integrity": "sha512-Z7tMw1ytTXt5jqMcOP+OQteU1VuNK9Y02uuJtKQ1Sv69jXQKKg5cibLwGJow8yzZP+eAc18EmLGPal0bp36rvQ==", + "dev": true, + "engines": { + "node": ">=8" + } + }, + "node_modules/asynckit": { + "version": "0.4.0", + "resolved": "https://registry.npmjs.org/asynckit/-/asynckit-0.4.0.tgz", + "integrity": "sha512-Oei9OH4tRh0YqU3GxhX79dM/mwVgvbZJaSNaRk+bshkj0S5cfHcgYakreBjrHwatXKbz+IoIdYLxrKim2MjW0Q==", + "dev": true + }, + "node_modules/available-typed-arrays": { + "version": "1.0.5", + "resolved": "https://registry.npmjs.org/available-typed-arrays/-/available-typed-arrays-1.0.5.tgz", + "integrity": "sha512-DMD0KiN46eipeziST1LPP/STfDU0sufISXmjSgvVsoU2tqxctQeASejWcfNtxYKqETM1UxQ8sp2OrSBWpHY6sw==", + "dev": true, + "peer": true, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/axios": { + "version": "1.6.2", + "resolved": "https://registry.npmjs.org/axios/-/axios-1.6.2.tgz", + "integrity": "sha512-7i24Ri4pmDRfJTR7LDBhsOTtcm+9kjX5WiY1X3wIisx6G9So3pfMkEiU7emUBe46oceVImccTEM3k6C5dbVW8A==", + "dev": true, + "dependencies": { + "follow-redirects": "^1.15.0", + "form-data": "^4.0.0", + "proxy-from-env": "^1.1.0" + } + }, + "node_modules/balanced-match": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/balanced-match/-/balanced-match-1.0.2.tgz", + "integrity": "sha512-3oSeUO0TMV67hN1AmbXsK4yaqU7tjiHlbxRDZOpH0KW9+CeX4bRAaX0Anxt0tx2MrpRpWwQaPwIlISEJhYU5Pw==", + "dev": true + }, + "node_modules/big.js": { + "version": "5.2.2", + "resolved": "https://registry.npmjs.org/big.js/-/big.js-5.2.2.tgz", + "integrity": "sha512-vyL2OymJxmarO8gxMr0mhChsO9QGwhynfuu4+MHTAW6czfq9humCB7rKpUjDd9YUiDPU4mzpyupFSvOClAwbmQ==", + "dev": true, + "engines": { + "node": "*" + } + }, + "node_modules/binary-extensions": { + "version": "2.2.0", + "resolved": "https://registry.npmjs.org/binary-extensions/-/binary-extensions-2.2.0.tgz", + "integrity": "sha512-jDctJ/IVQbZoJykoeHbhXpOlNBqGNcwXJKJog42E5HDPUwQTSdjCHdihjj0DlnheQ7blbT6dHOafNAiS8ooQKA==", + "dev": true, + "engines": { + "node": ">=8" + } + }, + "node_modules/boolbase": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/boolbase/-/boolbase-1.0.0.tgz", + "integrity": "sha512-JZOSA7Mo9sNGB8+UjSgzdLtokWAky1zbztM3WRLCbZ70/3cTANmQmOdR7y2g+J0e2WXywy1yS468tY+IruqEww==", + "dev": true + }, + "node_modules/bootstrap": { + "version": "5.3.2", + "resolved": "https://registry.npmjs.org/bootstrap/-/bootstrap-5.3.2.tgz", + "integrity": "sha512-D32nmNWiQHo94BKHLmOrdjlL05q1c8oxbtBphQFb9Z5to6eGRDCm0QgeaZ4zFBHzfg2++rqa2JkqCcxDy0sH0g==", + "dev": true, + "funding": [ + { + "type": "github", + "url": "https://github.com/sponsors/twbs" + }, + { + "type": "opencollective", + "url": "https://opencollective.com/bootstrap" + } + ], + "peerDependencies": { + "@popperjs/core": "^2.11.8" + } + }, + "node_modules/brace-expansion": { + "version": "1.1.11", + "resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-1.1.11.tgz", + "integrity": "sha512-iCuPHDFgrHX7H2vEI/5xpz07zSHB00TpugqhmYtVmMO6518mCuRMoOYFldEBl0g187ufozdaHgWKcYFb61qGiA==", + "dev": true, + "dependencies": { + "balanced-match": "^1.0.0", + "concat-map": "0.0.1" + } + }, + "node_modules/braces": { + "version": "3.0.2", + "resolved": "https://registry.npmjs.org/braces/-/braces-3.0.2.tgz", + "integrity": "sha512-b8um+L1RzM3WDSzvhm6gIz1yfTbBt6YTlcEKAvsmqCZZFw46z626lVj9j1yEPW33H5H+lBQpZMP1k8l+78Ha0A==", + "dev": true, + "dependencies": { + "fill-range": "^7.0.1" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/browserslist": { + "version": "4.22.2", + "resolved": "https://registry.npmjs.org/browserslist/-/browserslist-4.22.2.tgz", + "integrity": "sha512-0UgcrvQmBDvZHFGdYUehrCNIazki7/lUP3kkoi/r3YB2amZbFM9J43ZRkJTXBUZK4gmx56+Sqk9+Vs9mwZx9+A==", + "dev": true, + "funding": [ + { + "type": "opencollective", + "url": "https://opencollective.com/browserslist" + }, + { + "type": "tidelift", + "url": "https://tidelift.com/funding/github/npm/browserslist" + }, + { + "type": "github", + "url": "https://github.com/sponsors/ai" + } + ], + "dependencies": { + "caniuse-lite": "^1.0.30001565", + "electron-to-chromium": "^1.4.601", + "node-releases": "^2.0.14", + "update-browserslist-db": "^1.0.13" + }, + "bin": { + "browserslist": "cli.js" + }, + "engines": { + "node": "^6 || ^7 || ^8 || ^9 || ^10 || ^11 || ^12 || >=13.7" + } + }, + "node_modules/buffer-from": { + "version": "1.1.2", + "resolved": "https://registry.npmjs.org/buffer-from/-/buffer-from-1.1.2.tgz", + "integrity": "sha512-E+XQCRwSbaaiChtv6k6Dwgc+bx+Bs6vuKJHHl5kox/BaKbhiXzqQOwK4cO22yElGp2OCmjwVhT3HmxgyPGnJfQ==", + "dev": true + }, + "node_modules/call-bind": { + "version": "1.0.5", + "resolved": "https://registry.npmjs.org/call-bind/-/call-bind-1.0.5.tgz", + "integrity": "sha512-C3nQxfFZxFRVoJoGKKI8y3MOEo129NQ+FgQ08iye+Mk4zNZZGdjfs06bVTr+DBSlA66Q2VEcMki/cUCP4SercQ==", + "dev": true, + "peer": true, + "dependencies": { + "function-bind": "^1.1.2", + "get-intrinsic": "^1.2.1", + "set-function-length": "^1.1.1" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/callsites": { + "version": "3.1.0", + "resolved": "https://registry.npmjs.org/callsites/-/callsites-3.1.0.tgz", + "integrity": "sha512-P8BjAsXvZS+VIDUI11hHCQEv74YT67YUi5JJFNWIqL235sBmjX4+qx9Muvls5ivyNENctx46xQLQ3aTuE7ssaQ==", + "dev": true, + "engines": { + "node": ">=6" + } + }, + "node_modules/camelcase": { + "version": "5.3.1", + "resolved": "https://registry.npmjs.org/camelcase/-/camelcase-5.3.1.tgz", + "integrity": "sha512-L28STB170nwWS63UjtlEOE3dldQApaJXZkOI1uMFfzf3rRuPegHaHesyee+YxQ+W6SvRDQV6UrdOdRiR153wJg==", + "dev": true, + "optional": true, + "peer": true, + "engines": { + "node": ">=6" + } + }, + "node_modules/camelcase-keys": { + "version": "6.2.2", + "resolved": "https://registry.npmjs.org/camelcase-keys/-/camelcase-keys-6.2.2.tgz", + "integrity": "sha512-YrwaA0vEKazPBkn0ipTiMpSajYDSe+KjQfrjhcBMxJt/znbvlHd8Pw/Vamaz5EB4Wfhs3SUR3Z9mwRu/P3s3Yg==", + "dev": true, + "optional": true, + "peer": true, + "dependencies": { + "camelcase": "^5.3.1", + "map-obj": "^4.0.0", + "quick-lru": "^4.0.1" + }, + "engines": { + "node": ">=8" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/caniuse-lite": { + "version": "1.0.30001570", + "resolved": "https://registry.npmjs.org/caniuse-lite/-/caniuse-lite-1.0.30001570.tgz", + "integrity": "sha512-+3e0ASu4sw1SWaoCtvPeyXp+5PsjigkSt8OXZbF9StH5pQWbxEjLAZE3n8Aup5udop1uRiKA7a4utUk/uoSpUw==", + "dev": true, + "funding": [ + { + "type": "opencollective", + "url": "https://opencollective.com/browserslist" + }, + { + "type": "tidelift", + "url": "https://tidelift.com/funding/github/npm/caniuse-lite" + }, + { + "type": "github", + "url": "https://github.com/sponsors/ai" + } + ] + }, + "node_modules/chalk": { + "version": "2.4.2", + "resolved": "https://registry.npmjs.org/chalk/-/chalk-2.4.2.tgz", + "integrity": "sha512-Mti+f9lpJNcwF4tWV8/OrTTtF1gZi+f8FqlyAdouralcFWFQWF2+NgCHShjkCb+IFBLq9buZwE1xckQU4peSuQ==", + "dev": true, + "dependencies": { + "ansi-styles": "^3.2.1", + "escape-string-regexp": "^1.0.5", + "supports-color": "^5.3.0" + }, + "engines": { + "node": ">=4" + } + }, + "node_modules/chart.js": { + "version": "4.4.1", + "resolved": "https://registry.npmjs.org/chart.js/-/chart.js-4.4.1.tgz", + "integrity": "sha512-C74QN1bxwV1v2PEujhmKjOZ7iUM4w6BWs23Md/6aOZZSlwMzeCIDGuZay++rBgChYru7/+QFeoQW0fQoP534Dg==", + "dev": true, + "dependencies": { + "@kurkle/color": "^0.3.0" + }, + "engines": { + "pnpm": ">=7" + } + }, + "node_modules/chokidar": { + "version": "3.5.3", + "resolved": "https://registry.npmjs.org/chokidar/-/chokidar-3.5.3.tgz", + "integrity": "sha512-Dr3sfKRP6oTcjf2JmUmFJfeVMvXBdegxB0iVQ5eb2V10uFJUCAS8OByZdVAyVb8xXNz3GjjTgj9kLWsZTqE6kw==", + "dev": true, + "funding": [ + { + "type": "individual", + "url": "https://paulmillr.com/funding/" + } + ], + "dependencies": { + "anymatch": "~3.1.2", + "braces": "~3.0.2", + "glob-parent": "~5.1.2", + "is-binary-path": "~2.1.0", + "is-glob": "~4.0.1", + "normalize-path": "~3.0.0", + "readdirp": "~3.6.0" + }, + "engines": { + "node": ">= 8.10.0" + }, + "optionalDependencies": { + "fsevents": "~2.3.2" + } + }, + "node_modules/chokidar/node_modules/glob-parent": { + "version": "5.1.2", + "resolved": "https://registry.npmjs.org/glob-parent/-/glob-parent-5.1.2.tgz", + "integrity": "sha512-AOIgSQCepiJYwP3ARnGx+5VnTu2HBYdzbGP45eLw1vr3zB3vZLeyed1sC9hnbcOc9/SrMyM5RPQrkGz4aS9Zow==", + "dev": true, + "dependencies": { + "is-glob": "^4.0.1" + }, + "engines": { + "node": ">= 6" + } + }, + "node_modules/chrome-trace-event": { + "version": "1.0.3", + "resolved": "https://registry.npmjs.org/chrome-trace-event/-/chrome-trace-event-1.0.3.tgz", + "integrity": "sha512-p3KULyQg4S7NIHixdwbGX+nFHkoBiA4YQmyWtjb8XngSKV124nJmRysgAeujbUVb15vh+RvFUfCPqU7rXk+hZg==", + "dev": true, + "peer": true, + "engines": { + "node": ">=6.0" + } + }, + "node_modules/color-convert": { + "version": "1.9.3", + "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-1.9.3.tgz", + "integrity": "sha512-QfAUtd+vFdAtFQcC8CCyYt1fYWxSqAiK2cSD6zDB8N3cpsEBAvRxp9zOGg6G/SHHJYAT88/az/IuDGALsNVbGg==", + "dev": true, + "dependencies": { + "color-name": "1.1.3" + } + }, + "node_modules/color-name": { + "version": "1.1.3", + "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.3.tgz", + "integrity": "sha512-72fSenhMw2HZMTVHeCA9KCmpEIbzWiQsjN+BHcBbS9vr1mtt+vJjPdksIBNUmKAW8TFUDPJK5SUU3QhE9NEXDw==", + "dev": true + }, + "node_modules/colord": { + "version": "2.9.3", + "resolved": "https://registry.npmjs.org/colord/-/colord-2.9.3.tgz", + "integrity": "sha512-jeC1axXpnb0/2nn/Y1LPuLdgXBLH7aDcHu4KEKfqw3CUhX7ZpfBSlPKyqXE6btIgEzfWtrX3/tyBCaCvXvMkOw==", + "dev": true + }, + "node_modules/colorette": { + "version": "1.4.0", + "resolved": "https://registry.npmjs.org/colorette/-/colorette-1.4.0.tgz", + "integrity": "sha512-Y2oEozpomLn7Q3HFP7dpww7AtMJplbM9lGZP6RDfHqmbeRjiwRg4n6VM6j4KLmRke85uWEI7JqF17f3pqdRA0g==", + "dev": true + }, + "node_modules/combined-stream": { + "version": "1.0.8", + "resolved": "https://registry.npmjs.org/combined-stream/-/combined-stream-1.0.8.tgz", + "integrity": "sha512-FQN4MRfuJeHf7cBbBMJFXhKSDq+2kAArBlmRBvcvFE5BB1HZKXtSFASDhdlz9zOYwxh8lDdnvmMOe/+5cdoEdg==", + "dev": true, + "dependencies": { + "delayed-stream": "~1.0.0" + }, + "engines": { + "node": ">= 0.8" + } + }, + "node_modules/commander": { + "version": "2.20.3", + "resolved": "https://registry.npmjs.org/commander/-/commander-2.20.3.tgz", + "integrity": "sha512-GpVkmM8vF2vQUkj2LvZmD35JxeJOLCwJ9cUkugyk2nuhbv3+mJvpLYYt+0+USMxE+oj+ey/lJEnhZw75x/OMcQ==", + "dev": true + }, + "node_modules/concat-map": { + "version": "0.0.1", + "resolved": "https://registry.npmjs.org/concat-map/-/concat-map-0.0.1.tgz", + "integrity": "sha512-/Srv4dswyQNBfohGpz9o6Yb3Gz3SrUDqBH5rTuhGR7ahtlbYKnVxw2bCFMRljaA7EXHaXZ8wsHdodFvbkhKmqg==", + "dev": true + }, + "node_modules/convert-source-map": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/convert-source-map/-/convert-source-map-2.0.0.tgz", + "integrity": "sha512-Kvp459HrV2FEJ1CAsi1Ku+MY3kasH19TFykTz2xWmMeq6bk2NU3XXvfJ+Q61m0xktWwt+1HSYf3JZsTms3aRJg==", + "dev": true + }, + "node_modules/core-js": { + "version": "2.6.12", + "resolved": "https://registry.npmjs.org/core-js/-/core-js-2.6.12.tgz", + "integrity": "sha512-Kb2wC0fvsWfQrgk8HU5lW6U/Lcs8+9aaYcy4ZFc6DDlo4nZ7n70dEgE5rtR0oG6ufKDUnrwfWL1mXR5ljDatrQ==", + "deprecated": "core-js@<3.23.3 is no longer maintained and not recommended for usage due to the number of issues. Because of the V8 engine whims, feature detection in old core-js versions could cause a slowdown up to 100x even if nothing is polyfilled. Some versions have web compatibility issues. Please, upgrade your dependencies to the actual version of core-js.", + "dev": true, + "hasInstallScript": true + }, + "node_modules/cosmiconfig": { + "version": "8.3.6", + "resolved": "https://registry.npmjs.org/cosmiconfig/-/cosmiconfig-8.3.6.tgz", + "integrity": "sha512-kcZ6+W5QzcJ3P1Mt+83OUv/oHFqZHIx8DuxG6eZ5RGMERoLqp4BuGjhHLYGK+Kf5XVkQvqBSmAy/nGWN3qDgEA==", + "dev": true, + "dependencies": { + "import-fresh": "^3.3.0", + "js-yaml": "^4.1.0", + "parse-json": "^5.2.0", + "path-type": "^4.0.0" + }, + "engines": { + "node": ">=14" + }, + "funding": { + "url": "https://github.com/sponsors/d-fischer" + }, + "peerDependencies": { + "typescript": ">=4.9.5" + }, + "peerDependenciesMeta": { + "typescript": { + "optional": true + } + } + }, + "node_modules/cropperjs": { + "version": "1.6.1", + "resolved": "https://registry.npmjs.org/cropperjs/-/cropperjs-1.6.1.tgz", + "integrity": "sha512-F4wsi+XkDHCOMrHMYjrTEE4QBOrsHHN5/2VsVAaRq8P7E5z7xQpT75S+f/9WikmBEailas3+yo+6zPIomW+NOA==", + "dev": true + }, + "node_modules/cross-spawn": { + "version": "7.0.3", + "resolved": "https://registry.npmjs.org/cross-spawn/-/cross-spawn-7.0.3.tgz", + "integrity": "sha512-iRDPJKUPVEND7dHPO8rkbOnPpyDygcDFtWjpeWNCgy8WP2rXcxXL8TskReQl6OrB2G7+UJrags1q15Fudc7G6w==", + "dev": true, + "dependencies": { + "path-key": "^3.1.0", + "shebang-command": "^2.0.0", + "which": "^2.0.1" + }, + "engines": { + "node": ">= 8" + } + }, + "node_modules/css-functions-list": { + "version": "3.2.1", + "resolved": "https://registry.npmjs.org/css-functions-list/-/css-functions-list-3.2.1.tgz", + "integrity": "sha512-Nj5YcaGgBtuUmn1D7oHqPW0c9iui7xsTsj5lIX8ZgevdfhmjFfKB3r8moHJtNJnctnYXJyYX5I1pp90HM4TPgQ==", + "dev": true, + "engines": { + "node": ">=12 || >=16" + } + }, + "node_modules/css-tree": { + "version": "2.3.1", + "resolved": "https://registry.npmjs.org/css-tree/-/css-tree-2.3.1.tgz", + "integrity": "sha512-6Fv1DV/TYw//QF5IzQdqsNDjx/wc8TrMBZsqjL9eW01tWb7R7k/mq+/VXfJCl7SoD5emsJop9cOByJZfs8hYIw==", + "dev": true, + "dependencies": { + "mdn-data": "2.0.30", + "source-map-js": "^1.0.1" + }, + "engines": { + "node": "^10 || ^12.20.0 || ^14.13.0 || >=15.0.0" + } + }, + "node_modules/cssesc": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/cssesc/-/cssesc-3.0.0.tgz", + "integrity": "sha512-/Tb/JcjK111nNScGob5MNtsntNM1aCNUDipB/TkwZFhyDrrE47SOx/18wF2bbjgc3ZzCSKW1T5nt5EbFoAz/Vg==", + "dev": true, + "bin": { + "cssesc": "bin/cssesc" + }, + "engines": { + "node": ">=4" + } + }, + "node_modules/csstype": { + "version": "3.1.3", + "resolved": "https://registry.npmjs.org/csstype/-/csstype-3.1.3.tgz", + "integrity": "sha512-M1uQkMl8rQK/szD0LNhtqxIPLpimGm8sOBwU7lLnCpSbTyY3yeU1Vc7l4KT5zT4s/yOxHH5O7tIuuLOCnLADRw==", + "dev": true + }, + "node_modules/de-indent": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/de-indent/-/de-indent-1.0.2.tgz", + "integrity": "sha512-e/1zu3xH5MQryN2zdVaF0OrdNLUbvWxzMbi+iNA6Bky7l1RoP8a2fIbRocyHclXt/arDrrR6lL3TqFD9pMQTsg==", + "dev": true + }, + "node_modules/debug": { + "version": "4.3.4", + "resolved": "https://registry.npmjs.org/debug/-/debug-4.3.4.tgz", + "integrity": "sha512-PRWFHuSU3eDtQJPvnNY7Jcket1j0t5OuOsFzPPzsekD52Zl8qUfFIPEiswXqIvHWGVHOgX+7G/vCNNhehwxfkQ==", + "dev": true, + "dependencies": { + "ms": "2.1.2" + }, + "engines": { + "node": ">=6.0" + }, + "peerDependenciesMeta": { + "supports-color": { + "optional": true + } + } + }, + "node_modules/decamelize": { + "version": "1.2.0", + "resolved": "https://registry.npmjs.org/decamelize/-/decamelize-1.2.0.tgz", + "integrity": "sha512-z2S+W9X73hAUUki+N+9Za2lBlun89zigOyGrsax+KUQ6wKW4ZoWpEYBkGhQjwAjjDCkWxhY0VKEhk8wzY7F5cA==", + "dev": true, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/decamelize-keys": { + "version": "1.1.1", + "resolved": "https://registry.npmjs.org/decamelize-keys/-/decamelize-keys-1.1.1.tgz", + "integrity": "sha512-WiPxgEirIV0/eIOMcnFBA3/IJZAZqKnwAwWyvvdi4lsr1WCN22nhdf/3db3DoZcUjTV2SqfzIwNyp6y2xs3nmg==", + "dev": true, + "dependencies": { + "decamelize": "^1.1.0", + "map-obj": "^1.0.0" + }, + "engines": { + "node": ">=0.10.0" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/decamelize-keys/node_modules/map-obj": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/map-obj/-/map-obj-1.0.1.tgz", + "integrity": "sha512-7N/q3lyZ+LVCp7PzuxrJr4KMbBE2hW7BT7YNia330OFxIf4d3r5zVpicP2650l7CPN6RM9zOJRl3NGpqSiw3Eg==", + "dev": true, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/deep-is": { + "version": "0.1.4", + "resolved": "https://registry.npmjs.org/deep-is/-/deep-is-0.1.4.tgz", + "integrity": "sha512-oIPzksmTg4/MriiaYGO+okXDT7ztn/w3Eptv/+gSIdMdKsJo0u4CfYNFJPy+4SKMuCqGw2wxnA+URMg3t8a/bQ==", + "dev": true + }, + "node_modules/define-data-property": { + "version": "1.1.1", + "resolved": "https://registry.npmjs.org/define-data-property/-/define-data-property-1.1.1.tgz", + "integrity": "sha512-E7uGkTzkk1d0ByLeSc6ZsFS79Axg+m1P/VsgYsxHgiuc3tFSj+MjMIwe90FC4lOAZzNBdY7kkO2P2wKdsQ1vgQ==", + "dev": true, + "peer": true, + "dependencies": { + "get-intrinsic": "^1.2.1", + "gopd": "^1.0.1", + "has-property-descriptors": "^1.0.0" + }, + "engines": { + "node": ">= 0.4" + } + }, + "node_modules/define-properties": { + "version": "1.2.1", + "resolved": "https://registry.npmjs.org/define-properties/-/define-properties-1.2.1.tgz", + "integrity": "sha512-8QmQKqEASLd5nx0U1B1okLElbUuuttJ/AnYmRXbbbGDWh6uS208EjD4Xqq/I9wK7u0v6O08XhTWnt5XtEbR6Dg==", + "dev": true, + "peer": true, + "dependencies": { + "define-data-property": "^1.0.1", + "has-property-descriptors": "^1.0.0", + "object-keys": "^1.1.1" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/delayed-stream": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/delayed-stream/-/delayed-stream-1.0.0.tgz", + "integrity": "sha512-ZySD7Nf91aLB0RxL4KGrKHBXl7Eds1DAmEdcoVawXnLD7SDhpNgtuII2aAkg7a7QS41jxPSZ17p4VdGnMHk3MQ==", + "dev": true, + "engines": { + "node": ">=0.4.0" + } + }, + "node_modules/dir-glob": { + "version": "3.0.1", + "resolved": "https://registry.npmjs.org/dir-glob/-/dir-glob-3.0.1.tgz", + "integrity": "sha512-WkrWp9GR4KXfKGYzOLmTuGVi1UWFfws377n9cc55/tb6DuqyF6pcQ5AbiHEshaDpY9v6oaSr2XCDidGmMwdzIA==", + "dev": true, + "dependencies": { + "path-type": "^4.0.0" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/doctrine": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/doctrine/-/doctrine-3.0.0.tgz", + "integrity": "sha512-yS+Q5i3hBf7GBkd4KG8a7eBNNWNGLTaEwwYWUijIYM7zrlYDM0BFXHjjPWlWZ1Rg7UaddZeIDmi9jF3HmqiQ2w==", + "dev": true, + "dependencies": { + "esutils": "^2.0.2" + }, + "engines": { + "node": ">=6.0.0" + } + }, + "node_modules/electron-to-chromium": { + "version": "1.4.615", + "resolved": "https://registry.npmjs.org/electron-to-chromium/-/electron-to-chromium-1.4.615.tgz", + "integrity": "sha512-/bKPPcgZVUziECqDc+0HkT87+0zhaWSZHNXqF8FLd2lQcptpmUFwoCSWjCdOng9Gdq+afKArPdEg/0ZW461Eng==", + "dev": true + }, + "node_modules/emoji-regex": { + "version": "8.0.0", + "resolved": "https://registry.npmjs.org/emoji-regex/-/emoji-regex-8.0.0.tgz", + "integrity": "sha512-MSjYzcWNOA0ewAHpz0MxpYFvwg6yjy1NG3xteoqz644VCo/RPgnr1/GGt+ic3iJTzQ8Eu3TdM14SawnVUmGE6A==", + "dev": true + }, + "node_modules/emojis-list": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/emojis-list/-/emojis-list-3.0.0.tgz", + "integrity": "sha512-/kyM18EfinwXZbno9FyUGeFh87KC8HRQBQGildHZbEuRyWFOmv1U10o9BBp8XVZDVNNuQKyIGIu5ZYAAXJ0V2Q==", + "dev": true, + "engines": { + "node": ">= 4" + } + }, + "node_modules/enhanced-resolve": { + "version": "5.15.0", + "resolved": "https://registry.npmjs.org/enhanced-resolve/-/enhanced-resolve-5.15.0.tgz", + "integrity": "sha512-LXYT42KJ7lpIKECr2mAXIaMldcNCh/7E0KBKOu4KSfkHmP+mZmSs+8V5gBAqisWBy0OO4W5Oyys0GO1Y8KtdKg==", + "dev": true, + "dependencies": { + "graceful-fs": "^4.2.4", + "tapable": "^2.2.0" + }, + "engines": { + "node": ">=10.13.0" + } + }, + "node_modules/error-ex": { + "version": "1.3.2", + "resolved": "https://registry.npmjs.org/error-ex/-/error-ex-1.3.2.tgz", + "integrity": "sha512-7dFHNmqeFSEt2ZBsCriorKnn3Z2pj+fd9kmI6QoWw4//DL+icEBfc0U7qJCisqrTsKTjw4fNFy2pW9OqStD84g==", + "dev": true, + "dependencies": { + "is-arrayish": "^0.2.1" + } + }, + "node_modules/es-abstract": { + "version": "1.22.3", + "resolved": "https://registry.npmjs.org/es-abstract/-/es-abstract-1.22.3.tgz", + "integrity": "sha512-eiiY8HQeYfYH2Con2berK+To6GrK2RxbPawDkGq4UiCQQfZHb6wX9qQqkbpPqaxQFcl8d9QzZqo0tGE0VcrdwA==", + "dev": true, + "peer": true, + "dependencies": { + "array-buffer-byte-length": "^1.0.0", + "arraybuffer.prototype.slice": "^1.0.2", + "available-typed-arrays": "^1.0.5", + "call-bind": "^1.0.5", + "es-set-tostringtag": "^2.0.1", + "es-to-primitive": "^1.2.1", + "function.prototype.name": "^1.1.6", + "get-intrinsic": "^1.2.2", + "get-symbol-description": "^1.0.0", + "globalthis": "^1.0.3", + "gopd": "^1.0.1", + "has-property-descriptors": "^1.0.0", + "has-proto": "^1.0.1", + "has-symbols": "^1.0.3", + "hasown": "^2.0.0", + "internal-slot": "^1.0.5", + "is-array-buffer": "^3.0.2", + "is-callable": "^1.2.7", + "is-negative-zero": "^2.0.2", + "is-regex": "^1.1.4", + "is-shared-array-buffer": "^1.0.2", + "is-string": "^1.0.7", + "is-typed-array": "^1.1.12", + "is-weakref": "^1.0.2", + "object-inspect": "^1.13.1", + "object-keys": "^1.1.1", + "object.assign": "^4.1.4", + "regexp.prototype.flags": "^1.5.1", + "safe-array-concat": "^1.0.1", + "safe-regex-test": "^1.0.0", + "string.prototype.trim": "^1.2.8", + "string.prototype.trimend": "^1.0.7", + "string.prototype.trimstart": "^1.0.7", + "typed-array-buffer": "^1.0.0", + "typed-array-byte-length": "^1.0.0", + "typed-array-byte-offset": "^1.0.0", + "typed-array-length": "^1.0.4", + "unbox-primitive": "^1.0.2", + "which-typed-array": "^1.1.13" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/es-module-lexer": { + "version": "1.4.1", + "resolved": "https://registry.npmjs.org/es-module-lexer/-/es-module-lexer-1.4.1.tgz", + "integrity": "sha512-cXLGjP0c4T3flZJKQSuziYoq7MlT+rnvfZjfp7h+I7K9BNX54kP9nyWvdbwjQ4u1iWbOL4u96fgeZLToQlZC7w==", + "dev": true, + "peer": true + }, + "node_modules/es-set-tostringtag": { + "version": "2.0.2", + "resolved": "https://registry.npmjs.org/es-set-tostringtag/-/es-set-tostringtag-2.0.2.tgz", + "integrity": "sha512-BuDyupZt65P9D2D2vA/zqcI3G5xRsklm5N3xCwuiy+/vKy8i0ifdsQP1sLgO4tZDSCaQUSnmC48khknGMV3D2Q==", + "dev": true, + "peer": true, + "dependencies": { + "get-intrinsic": "^1.2.2", + "has-tostringtag": "^1.0.0", + "hasown": "^2.0.0" + }, + "engines": { + "node": ">= 0.4" + } + }, + "node_modules/es-shim-unscopables": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/es-shim-unscopables/-/es-shim-unscopables-1.0.2.tgz", + "integrity": "sha512-J3yBRXCzDu4ULnQwxyToo/OjdMx6akgVC7K6few0a7F/0wLtmKKN7I73AH5T2836UuXRqN7Qg+IIUw/+YJksRw==", + "dev": true, + "peer": true, + "dependencies": { + "hasown": "^2.0.0" + } + }, + "node_modules/es-to-primitive": { + "version": "1.2.1", + "resolved": "https://registry.npmjs.org/es-to-primitive/-/es-to-primitive-1.2.1.tgz", + "integrity": "sha512-QCOllgZJtaUo9miYBcLChTUaHNjJF3PYs1VidD7AwiEj1kYxKeQTctLAezAOH5ZKRH0g2IgPn6KwB4IT8iRpvA==", + "dev": true, + "peer": true, + "dependencies": { + "is-callable": "^1.1.4", + "is-date-object": "^1.0.1", + "is-symbol": "^1.0.2" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/esbuild": { + "version": "0.18.20", + "resolved": "https://registry.npmjs.org/esbuild/-/esbuild-0.18.20.tgz", + "integrity": "sha512-ceqxoedUrcayh7Y7ZX6NdbbDzGROiyVBgC4PriJThBKSVPWnnFHZAkfI1lJT8QFkOwH4qOS2SJkS4wvpGl8BpA==", + "dev": true, + "hasInstallScript": true, + "bin": { + "esbuild": "bin/esbuild" + }, + "engines": { + "node": ">=12" + }, + "optionalDependencies": { + "@esbuild/android-arm": "0.18.20", + "@esbuild/android-arm64": "0.18.20", + "@esbuild/android-x64": "0.18.20", + "@esbuild/darwin-arm64": "0.18.20", + "@esbuild/darwin-x64": "0.18.20", + "@esbuild/freebsd-arm64": "0.18.20", + "@esbuild/freebsd-x64": "0.18.20", + "@esbuild/linux-arm": "0.18.20", + "@esbuild/linux-arm64": "0.18.20", + "@esbuild/linux-ia32": "0.18.20", + "@esbuild/linux-loong64": "0.18.20", + "@esbuild/linux-mips64el": "0.18.20", + "@esbuild/linux-ppc64": "0.18.20", + "@esbuild/linux-riscv64": "0.18.20", + "@esbuild/linux-s390x": "0.18.20", + "@esbuild/linux-x64": "0.18.20", + "@esbuild/netbsd-x64": "0.18.20", + "@esbuild/openbsd-x64": "0.18.20", + "@esbuild/sunos-x64": "0.18.20", + "@esbuild/win32-arm64": "0.18.20", + "@esbuild/win32-ia32": "0.18.20", + "@esbuild/win32-x64": "0.18.20" + } + }, + "node_modules/escalade": { + "version": "3.1.1", + "resolved": "https://registry.npmjs.org/escalade/-/escalade-3.1.1.tgz", + "integrity": "sha512-k0er2gUkLf8O0zKJiAhmkTnJlTvINGv7ygDNPbeIsX/TJjGJZHuh9B2UxbsaEkmlEo9MfhrSzmhIlhRlI2GXnw==", + "dev": true, + "engines": { + "node": ">=6" + } + }, + "node_modules/escape-string-regexp": { + "version": "1.0.5", + "resolved": "https://registry.npmjs.org/escape-string-regexp/-/escape-string-regexp-1.0.5.tgz", + "integrity": "sha512-vbRorB5FUQWvla16U8R/qgaFIya2qGzwDrNmCZuYKrbdSUMG6I1ZCGQRefkRVhuOkIGVne7BQ35DSfo1qvJqFg==", + "dev": true, + "engines": { + "node": ">=0.8.0" + } + }, + "node_modules/eslint": { + "version": "8.56.0", + "resolved": "https://registry.npmjs.org/eslint/-/eslint-8.56.0.tgz", + "integrity": "sha512-Go19xM6T9puCOWntie1/P997aXxFsOi37JIHRWI514Hc6ZnaHGKY9xFhrU65RT6CcBEzZoGG1e6Nq+DT04ZtZQ==", + "dev": true, + "dependencies": { + "@eslint-community/eslint-utils": "^4.2.0", + "@eslint-community/regexpp": "^4.6.1", + "@eslint/eslintrc": "^2.1.4", + "@eslint/js": "8.56.0", + "@humanwhocodes/config-array": "^0.11.13", + "@humanwhocodes/module-importer": "^1.0.1", + "@nodelib/fs.walk": "^1.2.8", + "@ungap/structured-clone": "^1.2.0", + "ajv": "^6.12.4", + "chalk": "^4.0.0", + "cross-spawn": "^7.0.2", + "debug": "^4.3.2", + "doctrine": "^3.0.0", + "escape-string-regexp": "^4.0.0", + "eslint-scope": "^7.2.2", + "eslint-visitor-keys": "^3.4.3", + "espree": "^9.6.1", + "esquery": "^1.4.2", + "esutils": "^2.0.2", + "fast-deep-equal": "^3.1.3", + "file-entry-cache": "^6.0.1", + "find-up": "^5.0.0", + "glob-parent": "^6.0.2", + "globals": "^13.19.0", + "graphemer": "^1.4.0", + "ignore": "^5.2.0", + "imurmurhash": "^0.1.4", + "is-glob": "^4.0.0", + "is-path-inside": "^3.0.3", + "js-yaml": "^4.1.0", + "json-stable-stringify-without-jsonify": "^1.0.1", + "levn": "^0.4.1", + "lodash.merge": "^4.6.2", + "minimatch": "^3.1.2", + "natural-compare": "^1.4.0", + "optionator": "^0.9.3", + "strip-ansi": "^6.0.1", + "text-table": "^0.2.0" + }, + "bin": { + "eslint": "bin/eslint.js" + }, + "engines": { + "node": "^12.22.0 || ^14.17.0 || >=16.0.0" + }, + "funding": { + "url": "https://opencollective.com/eslint" + } + }, + "node_modules/eslint-import-resolver-alias": { + "version": "1.1.2", + "resolved": "https://registry.npmjs.org/eslint-import-resolver-alias/-/eslint-import-resolver-alias-1.1.2.tgz", + "integrity": "sha512-WdviM1Eu834zsfjHtcGHtGfcu+F30Od3V7I9Fi57uhBEwPkjDcii7/yW8jAT+gOhn4P/vOxxNAXbFAKsrrc15w==", + "dev": true, + "engines": { + "node": ">= 4" + }, + "peerDependencies": { + "eslint-plugin-import": ">=1.4.0" + } + }, + "node_modules/eslint-import-resolver-node": { + "version": "0.3.9", + "resolved": "https://registry.npmjs.org/eslint-import-resolver-node/-/eslint-import-resolver-node-0.3.9.tgz", + "integrity": "sha512-WFj2isz22JahUv+B788TlO3N6zL3nNJGU8CcZbPZvVEkBPaJdCV4vy5wyghty5ROFbCRnm132v8BScu5/1BQ8g==", + "dev": true, + "peer": true, + "dependencies": { + "debug": "^3.2.7", + "is-core-module": "^2.13.0", + "resolve": "^1.22.4" + } + }, + "node_modules/eslint-import-resolver-node/node_modules/debug": { + "version": "3.2.7", + "resolved": "https://registry.npmjs.org/debug/-/debug-3.2.7.tgz", + "integrity": "sha512-CFjzYYAi4ThfiQvizrFQevTTXHtnCqWfe7x1AhgEscTz6ZbLbfoLRLPugTQyBth6f8ZERVUSyWHFD/7Wu4t1XQ==", + "dev": true, + "peer": true, + "dependencies": { + "ms": "^2.1.1" + } + }, + "node_modules/eslint-module-utils": { + "version": "2.8.0", + "resolved": "https://registry.npmjs.org/eslint-module-utils/-/eslint-module-utils-2.8.0.tgz", + "integrity": "sha512-aWajIYfsqCKRDgUfjEXNN/JlrzauMuSEy5sbd7WXbtW3EH6A6MpwEh42c7qD+MqQo9QMJ6fWLAeIJynx0g6OAw==", + "dev": true, + "peer": true, + "dependencies": { + "debug": "^3.2.7" + }, + "engines": { + "node": ">=4" + }, + "peerDependenciesMeta": { + "eslint": { + "optional": true + } + } + }, + "node_modules/eslint-module-utils/node_modules/debug": { + "version": "3.2.7", + "resolved": "https://registry.npmjs.org/debug/-/debug-3.2.7.tgz", + "integrity": "sha512-CFjzYYAi4ThfiQvizrFQevTTXHtnCqWfe7x1AhgEscTz6ZbLbfoLRLPugTQyBth6f8ZERVUSyWHFD/7Wu4t1XQ==", + "dev": true, + "peer": true, + "dependencies": { + "ms": "^2.1.1" + } + }, + "node_modules/eslint-plugin-import": { + "version": "2.29.1", + "resolved": "https://registry.npmjs.org/eslint-plugin-import/-/eslint-plugin-import-2.29.1.tgz", + "integrity": "sha512-BbPC0cuExzhiMo4Ff1BTVwHpjjv28C5R+btTOGaCRC7UEz801up0JadwkeSk5Ued6TG34uaczuVuH6qyy5YUxw==", + "dev": true, + "peer": true, + "dependencies": { + "array-includes": "^3.1.7", + "array.prototype.findlastindex": "^1.2.3", + "array.prototype.flat": "^1.3.2", + "array.prototype.flatmap": "^1.3.2", + "debug": "^3.2.7", + "doctrine": "^2.1.0", + "eslint-import-resolver-node": "^0.3.9", + "eslint-module-utils": "^2.8.0", + "hasown": "^2.0.0", + "is-core-module": "^2.13.1", + "is-glob": "^4.0.3", + "minimatch": "^3.1.2", + "object.fromentries": "^2.0.7", + "object.groupby": "^1.0.1", + "object.values": "^1.1.7", + "semver": "^6.3.1", + "tsconfig-paths": "^3.15.0" + }, + "engines": { + "node": ">=4" + }, + "peerDependencies": { + "eslint": "^2 || ^3 || ^4 || ^5 || ^6 || ^7.2.0 || ^8" + } + }, + "node_modules/eslint-plugin-import/node_modules/debug": { + "version": "3.2.7", + "resolved": "https://registry.npmjs.org/debug/-/debug-3.2.7.tgz", + "integrity": "sha512-CFjzYYAi4ThfiQvizrFQevTTXHtnCqWfe7x1AhgEscTz6ZbLbfoLRLPugTQyBth6f8ZERVUSyWHFD/7Wu4t1XQ==", + "dev": true, + "peer": true, + "dependencies": { + "ms": "^2.1.1" + } + }, + "node_modules/eslint-plugin-import/node_modules/doctrine": { + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/doctrine/-/doctrine-2.1.0.tgz", + "integrity": "sha512-35mSku4ZXK0vfCuHEDAwt55dg2jNajHZ1odvF+8SSr82EsZY4QmXfuWso8oEd8zRhVObSN18aM0CjSdoBX7zIw==", + "dev": true, + "peer": true, + "dependencies": { + "esutils": "^2.0.2" + }, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/eslint-plugin-vue": { + "version": "9.19.2", + "resolved": "https://registry.npmjs.org/eslint-plugin-vue/-/eslint-plugin-vue-9.19.2.tgz", + "integrity": "sha512-CPDqTOG2K4Ni2o4J5wixkLVNwgctKXFu6oBpVJlpNq7f38lh9I80pRTouZSJ2MAebPJlINU/KTFSXyQfBUlymA==", + "dev": true, + "dependencies": { + "@eslint-community/eslint-utils": "^4.4.0", + "natural-compare": "^1.4.0", + "nth-check": "^2.1.1", + "postcss-selector-parser": "^6.0.13", + "semver": "^7.5.4", + "vue-eslint-parser": "^9.3.1", + "xml-name-validator": "^4.0.0" + }, + "engines": { + "node": "^14.17.0 || >=16.0.0" + }, + "peerDependencies": { + "eslint": "^6.2.0 || ^7.0.0 || ^8.0.0" + } + }, + "node_modules/eslint-plugin-vue/node_modules/lru-cache": { + "version": "6.0.0", + "resolved": "https://registry.npmjs.org/lru-cache/-/lru-cache-6.0.0.tgz", + "integrity": "sha512-Jo6dJ04CmSjuznwJSS3pUeWmd/H0ffTlkXXgwZi+eq1UCmqQwCh+eLsYOYCwY991i2Fah4h1BEMCx4qThGbsiA==", + "dev": true, + "dependencies": { + "yallist": "^4.0.0" + }, + "engines": { + "node": ">=10" + } + }, + "node_modules/eslint-plugin-vue/node_modules/semver": { + "version": "7.5.4", + "resolved": "https://registry.npmjs.org/semver/-/semver-7.5.4.tgz", + "integrity": "sha512-1bCSESV6Pv+i21Hvpxp3Dx+pSD8lIPt8uVjRrxAUt/nbswYc+tK6Y2btiULjd4+fnq15PX+nqQDC7Oft7WkwcA==", + "dev": true, + "dependencies": { + "lru-cache": "^6.0.0" + }, + "bin": { + "semver": "bin/semver.js" + }, + "engines": { + "node": ">=10" + } + }, + "node_modules/eslint-plugin-vue/node_modules/yallist": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/yallist/-/yallist-4.0.0.tgz", + "integrity": "sha512-3wdGidZyq5PB084XLES5TpOSRA3wjXAlIWMhum2kRcv/41Sn2emQ0dycQW4uZXLejwKvg6EsvbdlVL+FYEct7A==", + "dev": true + }, + "node_modules/eslint-scope": { + "version": "5.1.1", + "resolved": "https://registry.npmjs.org/eslint-scope/-/eslint-scope-5.1.1.tgz", + "integrity": "sha512-2NxwbF/hZ0KpepYN0cNbo+FN6XoK7GaHlQhgx/hIZl6Va0bF45RQOOwhLIy8lQDbuCiadSLCBnH2CFYquit5bw==", + "dev": true, + "dependencies": { + "esrecurse": "^4.3.0", + "estraverse": "^4.1.1" + }, + "engines": { + "node": ">=8.0.0" + } + }, + "node_modules/eslint-visitor-keys": { + "version": "3.4.3", + "resolved": "https://registry.npmjs.org/eslint-visitor-keys/-/eslint-visitor-keys-3.4.3.tgz", + "integrity": "sha512-wpc+LXeiyiisxPlEkUzU6svyS1frIO3Mgxj1fdy7Pm8Ygzguax2N3Fa/D/ag1WqbOprdI+uY6wMUl8/a2G+iag==", + "dev": true, + "engines": { + "node": "^12.22.0 || ^14.17.0 || >=16.0.0" + }, + "funding": { + "url": "https://opencollective.com/eslint" + } + }, + "node_modules/eslint/node_modules/ansi-styles": { + "version": "4.3.0", + "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.3.0.tgz", + "integrity": "sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==", + "dev": true, + "dependencies": { + "color-convert": "^2.0.1" + }, + "engines": { + "node": ">=8" + }, + "funding": { + "url": "https://github.com/chalk/ansi-styles?sponsor=1" + } + }, + "node_modules/eslint/node_modules/chalk": { + "version": "4.1.2", + "resolved": "https://registry.npmjs.org/chalk/-/chalk-4.1.2.tgz", + "integrity": "sha512-oKnbhFyRIXpUuez8iBMmyEa4nbj4IOQyuhc/wy9kY7/WVPcwIO9VA668Pu8RkO7+0G76SLROeyw9CpQ061i4mA==", + "dev": true, + "dependencies": { + "ansi-styles": "^4.1.0", + "supports-color": "^7.1.0" + }, + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/chalk/chalk?sponsor=1" + } + }, + "node_modules/eslint/node_modules/color-convert": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-2.0.1.tgz", + "integrity": "sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==", + "dev": true, + "dependencies": { + "color-name": "~1.1.4" + }, + "engines": { + "node": ">=7.0.0" + } + }, + "node_modules/eslint/node_modules/color-name": { + "version": "1.1.4", + "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.4.tgz", + "integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==", + "dev": true + }, + "node_modules/eslint/node_modules/escape-string-regexp": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/escape-string-regexp/-/escape-string-regexp-4.0.0.tgz", + "integrity": "sha512-TtpcNJ3XAzx3Gq8sWRzJaVajRs0uVxA2YAkdb1jm2YkPz4G6egUFAyA3n5vtEIZefPk5Wa4UXbKuS5fKkJWdgA==", + "dev": true, + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/eslint/node_modules/eslint-scope": { + "version": "7.2.2", + "resolved": "https://registry.npmjs.org/eslint-scope/-/eslint-scope-7.2.2.tgz", + "integrity": "sha512-dOt21O7lTMhDM+X9mB4GX+DZrZtCUJPL/wlcTqxyrx5IvO0IYtILdtrQGQp+8n5S0gwSVmOf9NQrjMOgfQZlIg==", + "dev": true, + "dependencies": { + "esrecurse": "^4.3.0", + "estraverse": "^5.2.0" + }, + "engines": { + "node": "^12.22.0 || ^14.17.0 || >=16.0.0" + }, + "funding": { + "url": "https://opencollective.com/eslint" + } + }, + "node_modules/eslint/node_modules/estraverse": { + "version": "5.3.0", + "resolved": "https://registry.npmjs.org/estraverse/-/estraverse-5.3.0.tgz", + "integrity": "sha512-MMdARuVEQziNTeJD8DgMqmhwR11BRQ/cBP+pLtYdSTnf3MIO8fFeiINEbX36ZdNlfU/7A9f3gUw49B3oQsvwBA==", + "dev": true, + "engines": { + "node": ">=4.0" + } + }, + "node_modules/eslint/node_modules/globals": { + "version": "13.24.0", + "resolved": "https://registry.npmjs.org/globals/-/globals-13.24.0.tgz", + "integrity": "sha512-AhO5QUcj8llrbG09iWhPU2B204J1xnPeL8kQmVorSsy+Sjj1sk8gIyh6cUocGmH4L0UuhAJy+hJMRA4mgA4mFQ==", + "dev": true, + "dependencies": { + "type-fest": "^0.20.2" + }, + "engines": { + "node": ">=8" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/eslint/node_modules/has-flag": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-4.0.0.tgz", + "integrity": "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==", + "dev": true, + "engines": { + "node": ">=8" + } + }, + "node_modules/eslint/node_modules/supports-color": { + "version": "7.2.0", + "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-7.2.0.tgz", + "integrity": "sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw==", + "dev": true, + "dependencies": { + "has-flag": "^4.0.0" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/eslint/node_modules/type-fest": { + "version": "0.20.2", + "resolved": "https://registry.npmjs.org/type-fest/-/type-fest-0.20.2.tgz", + "integrity": "sha512-Ne+eE4r0/iWnpAxD852z3A+N0Bt5RN//NjJwRd2VFHEmrywxf5vsZlh4R6lixl6B+wz/8d+maTSAkN1FIkI3LQ==", + "dev": true, + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/espree": { + "version": "9.6.1", + "resolved": "https://registry.npmjs.org/espree/-/espree-9.6.1.tgz", + "integrity": "sha512-oruZaFkjorTpF32kDSI5/75ViwGeZginGGy2NoOSg3Q9bnwlnmDm4HLnkl0RE3n+njDXR037aY1+x58Z/zFdwQ==", + "dev": true, + "dependencies": { + "acorn": "^8.9.0", + "acorn-jsx": "^5.3.2", + "eslint-visitor-keys": "^3.4.1" + }, + "engines": { + "node": "^12.22.0 || ^14.17.0 || >=16.0.0" + }, + "funding": { + "url": "https://opencollective.com/eslint" + } + }, + "node_modules/esquery": { + "version": "1.5.0", + "resolved": "https://registry.npmjs.org/esquery/-/esquery-1.5.0.tgz", + "integrity": "sha512-YQLXUplAwJgCydQ78IMJywZCceoqk1oH01OERdSAJc/7U2AylwjhSCLDEtqwg811idIS/9fIU5GjG73IgjKMVg==", + "dev": true, + "dependencies": { + "estraverse": "^5.1.0" + }, + "engines": { + "node": ">=0.10" + } + }, + "node_modules/esquery/node_modules/estraverse": { + "version": "5.3.0", + "resolved": "https://registry.npmjs.org/estraverse/-/estraverse-5.3.0.tgz", + "integrity": "sha512-MMdARuVEQziNTeJD8DgMqmhwR11BRQ/cBP+pLtYdSTnf3MIO8fFeiINEbX36ZdNlfU/7A9f3gUw49B3oQsvwBA==", + "dev": true, + "engines": { + "node": ">=4.0" + } + }, + "node_modules/esrecurse": { + "version": "4.3.0", + "resolved": "https://registry.npmjs.org/esrecurse/-/esrecurse-4.3.0.tgz", + "integrity": "sha512-KmfKL3b6G+RXvP8N1vr3Tq1kL/oCFgn2NYXEtqP8/L3pKapUA4G8cFVaoF3SU323CD4XypR/ffioHmkti6/Tag==", + "dev": true, + "dependencies": { + "estraverse": "^5.2.0" + }, + "engines": { + "node": ">=4.0" + } + }, + "node_modules/esrecurse/node_modules/estraverse": { + "version": "5.3.0", + "resolved": "https://registry.npmjs.org/estraverse/-/estraverse-5.3.0.tgz", + "integrity": "sha512-MMdARuVEQziNTeJD8DgMqmhwR11BRQ/cBP+pLtYdSTnf3MIO8fFeiINEbX36ZdNlfU/7A9f3gUw49B3oQsvwBA==", + "dev": true, + "engines": { + "node": ">=4.0" + } + }, + "node_modules/estraverse": { + "version": "4.3.0", + "resolved": "https://registry.npmjs.org/estraverse/-/estraverse-4.3.0.tgz", + "integrity": "sha512-39nnKffWz8xN1BU/2c79n9nB9HDzo0niYUqx6xyqUnyoAnQyyWpOTdZEeiCch8BBu515t4wp9ZmgVfVhn9EBpw==", + "dev": true, + "engines": { + "node": ">=4.0" + } + }, + "node_modules/estree-walker": { + "version": "2.0.2", + "resolved": "https://registry.npmjs.org/estree-walker/-/estree-walker-2.0.2.tgz", + "integrity": "sha512-Rfkk/Mp/DL7JVje3u18FxFujQlTNR2q6QfMSMB7AvCBx91NGj/ba3kCfza0f6dVDbw7YlRf/nDrn7pQrCCyQ/w==", + "dev": true + }, + "node_modules/esutils": { + "version": "2.0.3", + "resolved": "https://registry.npmjs.org/esutils/-/esutils-2.0.3.tgz", + "integrity": "sha512-kVscqXk4OCp68SZ0dkgEKVi6/8ij300KBWTJq32P/dYeWTSwK41WyTxalN1eRmA5Z9UU/LX9D7FWSmV9SAYx6g==", + "dev": true, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/events": { + "version": "3.3.0", + "resolved": "https://registry.npmjs.org/events/-/events-3.3.0.tgz", + "integrity": "sha512-mQw+2fkQbALzQ7V0MY0IqdnXNOeTtP4r0lN9z7AAawCXgqea7bDii20AYrIBrFd/Hx0M2Ocz6S111CaFkUcb0Q==", + "dev": true, + "peer": true, + "engines": { + "node": ">=0.8.x" + } + }, + "node_modules/fast-deep-equal": { + "version": "3.1.3", + "resolved": "https://registry.npmjs.org/fast-deep-equal/-/fast-deep-equal-3.1.3.tgz", + "integrity": "sha512-f3qQ9oQy9j2AhBe/H9VC91wLmKBCCU/gDOnKNAYG5hswO7BLKj09Hc5HYNz9cGI++xlpDCIgDaitVs03ATR84Q==", + "dev": true + }, + "node_modules/fast-glob": { + "version": "3.3.2", + "resolved": "https://registry.npmjs.org/fast-glob/-/fast-glob-3.3.2.tgz", + "integrity": "sha512-oX2ruAFQwf/Orj8m737Y5adxDQO0LAB7/S5MnxCdTNDd4p6BsyIVsv9JQsATbTSq8KHRpLwIHbVlUNatxd+1Ow==", + "dev": true, + "dependencies": { + "@nodelib/fs.stat": "^2.0.2", + "@nodelib/fs.walk": "^1.2.3", + "glob-parent": "^5.1.2", + "merge2": "^1.3.0", + "micromatch": "^4.0.4" + }, + "engines": { + "node": ">=8.6.0" + } + }, + "node_modules/fast-glob/node_modules/glob-parent": { + "version": "5.1.2", + "resolved": "https://registry.npmjs.org/glob-parent/-/glob-parent-5.1.2.tgz", + "integrity": "sha512-AOIgSQCepiJYwP3ARnGx+5VnTu2HBYdzbGP45eLw1vr3zB3vZLeyed1sC9hnbcOc9/SrMyM5RPQrkGz4aS9Zow==", + "dev": true, + "dependencies": { + "is-glob": "^4.0.1" + }, + "engines": { + "node": ">= 6" + } + }, + "node_modules/fast-json-stable-stringify": { + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/fast-json-stable-stringify/-/fast-json-stable-stringify-2.1.0.tgz", + "integrity": "sha512-lhd/wF+Lk98HZoTCtlVraHtfh5XYijIjalXck7saUtuanSDyLMxnHhSXEDJqHxD7msR8D0uCmqlkwjCV8xvwHw==", + "dev": true + }, + "node_modules/fast-levenshtein": { + "version": "2.0.6", + "resolved": "https://registry.npmjs.org/fast-levenshtein/-/fast-levenshtein-2.0.6.tgz", + "integrity": "sha512-DCXu6Ifhqcks7TZKY3Hxp3y6qphY5SJZmrWMDrKcERSOXWQdMhU9Ig/PYrzyw/ul9jOIyh0N4M0tbC5hodg8dw==", + "dev": true + }, + "node_modules/fastest-levenshtein": { + "version": "1.0.16", + "resolved": "https://registry.npmjs.org/fastest-levenshtein/-/fastest-levenshtein-1.0.16.tgz", + "integrity": "sha512-eRnCtTTtGZFpQCwhJiUOuxPQWRXVKYDn0b2PeHfXL6/Zi53SLAzAHfVhVWK2AryC/WH05kGfxhFIPvTF0SXQzg==", + "dev": true, + "engines": { + "node": ">= 4.9.1" + } + }, + "node_modules/fastq": { + "version": "1.16.0", + "resolved": "https://registry.npmjs.org/fastq/-/fastq-1.16.0.tgz", + "integrity": "sha512-ifCoaXsDrsdkWTtiNJX5uzHDsrck5TzfKKDcuFFTIrrc/BS076qgEIfoIy1VeZqViznfKiysPYTh/QeHtnIsYA==", + "dev": true, + "dependencies": { + "reusify": "^1.0.4" + } + }, + "node_modules/file-entry-cache": { + "version": "6.0.1", + "resolved": "https://registry.npmjs.org/file-entry-cache/-/file-entry-cache-6.0.1.tgz", + "integrity": "sha512-7Gps/XWymbLk2QLYK4NzpMOrYjMhdIxXuIvy2QBsLE6ljuodKvdkWs/cpyJJ3CVIVpH0Oi1Hvg1ovbMzLdFBBg==", + "dev": true, + "dependencies": { + "flat-cache": "^3.0.4" + }, + "engines": { + "node": "^10.12.0 || >=12.0.0" + } + }, + "node_modules/fill-range": { + "version": "7.0.1", + "resolved": "https://registry.npmjs.org/fill-range/-/fill-range-7.0.1.tgz", + "integrity": "sha512-qOo9F+dMUmC2Lcb4BbVvnKJxTPjCm+RRpe4gDuGrzkL7mEVl/djYSu2OdQ2Pa302N4oqkSg9ir6jaLWJ2USVpQ==", + "dev": true, + "dependencies": { + "to-regex-range": "^5.0.1" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/find-up": { + "version": "5.0.0", + "resolved": "https://registry.npmjs.org/find-up/-/find-up-5.0.0.tgz", + "integrity": "sha512-78/PXT1wlLLDgTzDs7sjq9hzz0vXD+zn+7wypEe4fXQxCmdmqfGsEPQxmiCSQI3ajFV91bVSsvNtrJRiW6nGng==", + "dev": true, + "dependencies": { + "locate-path": "^6.0.0", + "path-exists": "^4.0.0" + }, + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/flat-cache": { + "version": "3.2.0", + "resolved": "https://registry.npmjs.org/flat-cache/-/flat-cache-3.2.0.tgz", + "integrity": "sha512-CYcENa+FtcUKLmhhqyctpclsq7QF38pKjZHsGNiSQF5r4FtoKDWabFDl3hzaEQMvT1LHEysw5twgLvpYYb4vbw==", + "dev": true, + "dependencies": { + "flatted": "^3.2.9", + "keyv": "^4.5.3", + "rimraf": "^3.0.2" + }, + "engines": { + "node": "^10.12.0 || >=12.0.0" + } + }, + "node_modules/flatted": { + "version": "3.2.9", + "resolved": "https://registry.npmjs.org/flatted/-/flatted-3.2.9.tgz", + "integrity": "sha512-36yxDn5H7OFZQla0/jFJmbIKTdZAQHngCedGxiMmpNfEZM0sdEeT+WczLQrjK6D7o2aiyLYDnkw0R3JK0Qv1RQ==", + "dev": true + }, + "node_modules/follow-redirects": { + "version": "1.15.3", + "resolved": "https://registry.npmjs.org/follow-redirects/-/follow-redirects-1.15.3.tgz", + "integrity": "sha512-1VzOtuEM8pC9SFU1E+8KfTjZyMztRsgEfwQl44z8A25uy13jSzTj6dyK2Df52iV0vgHCfBwLhDWevLn95w5v6Q==", + "dev": true, + "funding": [ + { + "type": "individual", + "url": "https://github.com/sponsors/RubenVerborgh" + } + ], + "engines": { + "node": ">=4.0" + }, + "peerDependenciesMeta": { + "debug": { + "optional": true + } + } + }, + "node_modules/for-each": { + "version": "0.3.3", + "resolved": "https://registry.npmjs.org/for-each/-/for-each-0.3.3.tgz", + "integrity": "sha512-jqYfLp7mo9vIyQf8ykW2v7A+2N4QjeCeI5+Dz9XraiO1ign81wjiH7Fb9vSOWvQfNtmSa4H2RoQTrrXivdUZmw==", + "dev": true, + "peer": true, + "dependencies": { + "is-callable": "^1.1.3" + } + }, + "node_modules/form-data": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/form-data/-/form-data-4.0.0.tgz", + "integrity": "sha512-ETEklSGi5t0QMZuiXoA/Q6vcnxcLQP5vdugSpuAyi6SVGi2clPPp+xgEhuMaHC+zGgn31Kd235W35f7Hykkaww==", + "dev": true, + "dependencies": { + "asynckit": "^0.4.0", + "combined-stream": "^1.0.8", + "mime-types": "^2.1.12" + }, + "engines": { + "node": ">= 6" + } + }, + "node_modules/fs-extra": { + "version": "8.1.0", + "resolved": "https://registry.npmjs.org/fs-extra/-/fs-extra-8.1.0.tgz", + "integrity": "sha512-yhlQgA6mnOJUKOsRUFsgJdQCvkKhcz8tlZG5HBQfReYZy46OwLcY+Zia0mtdHsOo9y/hP+CxMN0TU9QxoOtG4g==", + "dev": true, + "dependencies": { + "graceful-fs": "^4.2.0", + "jsonfile": "^4.0.0", + "universalify": "^0.1.0" + }, + "engines": { + "node": ">=6 <7 || >=8" + } + }, + "node_modules/fs.realpath": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/fs.realpath/-/fs.realpath-1.0.0.tgz", + "integrity": "sha512-OO0pH2lK6a0hZnAdau5ItzHPI6pUlvI7jMVnxUQRtw4owF2wk8lOSabtGDCTP4Ggrg2MbGnWO9X8K1t4+fGMDw==", + "dev": true + }, + "node_modules/fsevents": { + "version": "2.3.3", + "resolved": "https://registry.npmjs.org/fsevents/-/fsevents-2.3.3.tgz", + "integrity": "sha512-5xoDfX+fL7faATnagmWPpbFtwh/R77WmMMqqHGS65C3vvB0YHrgF+B1YmZ3441tMj5n63k0212XNoJwzlhffQw==", + "dev": true, + "hasInstallScript": true, + "optional": true, + "os": [ + "darwin" + ], + "engines": { + "node": "^8.16.0 || ^10.6.0 || >=11.0.0" + } + }, + "node_modules/function-bind": { + "version": "1.1.2", + "resolved": "https://registry.npmjs.org/function-bind/-/function-bind-1.1.2.tgz", + "integrity": "sha512-7XHNxH7qX9xG5mIwxkhumTox/MIRNcOgDrxWsMt2pAr23WHp6MrRlN7FBSFpCpr+oVO0F744iUgR82nJMfG2SA==", + "dev": true, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/function.prototype.name": { + "version": "1.1.6", + "resolved": "https://registry.npmjs.org/function.prototype.name/-/function.prototype.name-1.1.6.tgz", + "integrity": "sha512-Z5kx79swU5P27WEayXM1tBi5Ze/lbIyiNgU3qyXUOf9b2rgXYyF9Dy9Cx+IQv/Lc8WCG6L82zwUPpSS9hGehIg==", + "dev": true, + "peer": true, + "dependencies": { + "call-bind": "^1.0.2", + "define-properties": "^1.2.0", + "es-abstract": "^1.22.1", + "functions-have-names": "^1.2.3" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/functions-have-names": { + "version": "1.2.3", + "resolved": "https://registry.npmjs.org/functions-have-names/-/functions-have-names-1.2.3.tgz", + "integrity": "sha512-xckBUXyTIqT97tq2x2AMb+g163b5JFysYk0x4qxNFwbfQkmNZoiRHb6sPzI9/QV33WeuvVYBUIiD4NzNIyqaRQ==", + "dev": true, + "peer": true, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/gensync": { + "version": "1.0.0-beta.2", + "resolved": "https://registry.npmjs.org/gensync/-/gensync-1.0.0-beta.2.tgz", + "integrity": "sha512-3hN7NaskYvMDLQY55gnW3NQ+mesEAepTqlg+VEbj7zzqEMBVNhzcGYYeqFo/TlYz6eQiFcp1HcsCZO+nGgS8zg==", + "dev": true, + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/get-intrinsic": { + "version": "1.2.2", + "resolved": "https://registry.npmjs.org/get-intrinsic/-/get-intrinsic-1.2.2.tgz", + "integrity": "sha512-0gSo4ml/0j98Y3lngkFEot/zhiCeWsbYIlZ+uZOVgzLyLaUw7wxUL+nCTP0XJvJg1AXulJRI3UJi8GsbDuxdGA==", + "dev": true, + "peer": true, + "dependencies": { + "function-bind": "^1.1.2", + "has-proto": "^1.0.1", + "has-symbols": "^1.0.3", + "hasown": "^2.0.0" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/get-symbol-description": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/get-symbol-description/-/get-symbol-description-1.0.0.tgz", + "integrity": "sha512-2EmdH1YvIQiZpltCNgkuiUnyukzxM/R6NDJX31Ke3BG1Nq5b0S2PhX59UKi9vZpPDQVdqn+1IcaAwnzTT5vCjw==", + "dev": true, + "peer": true, + "dependencies": { + "call-bind": "^1.0.2", + "get-intrinsic": "^1.1.1" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/glightbox": { + "version": "3.2.0", + "resolved": "https://registry.npmjs.org/glightbox/-/glightbox-3.2.0.tgz", + "integrity": "sha512-iit1xYixqL4YVL+I2YJLfMeyJwvLi6FE6kY3qNKeZHEJgRIz80QU8Rm7YCyw1wOTgXvmNDnXGVhHOHRCwnDltQ==", + "dev": true + }, + "node_modules/glob": { + "version": "7.2.3", + "resolved": "https://registry.npmjs.org/glob/-/glob-7.2.3.tgz", + "integrity": "sha512-nFR0zLpU2YCaRxwoCJvL6UvCH2JFyFVIvwTLsIf21AuHlMskA1hhTdk+LlYJtOlYt9v6dvszD2BGRqBL+iQK9Q==", + "dev": true, + "dependencies": { + "fs.realpath": "^1.0.0", + "inflight": "^1.0.4", + "inherits": "2", + "minimatch": "^3.1.1", + "once": "^1.3.0", + "path-is-absolute": "^1.0.0" + }, + "engines": { + "node": "*" + }, + "funding": { + "url": "https://github.com/sponsors/isaacs" + } + }, + "node_modules/glob-parent": { + "version": "6.0.2", + "resolved": "https://registry.npmjs.org/glob-parent/-/glob-parent-6.0.2.tgz", + "integrity": "sha512-XxwI8EOhVQgWp6iDL+3b0r86f4d6AX6zSU55HfB4ydCEuXLXc5FcYeOu+nnGftS4TEju/11rt4KJPTMgbfmv4A==", + "dev": true, + "dependencies": { + "is-glob": "^4.0.3" + }, + "engines": { + "node": ">=10.13.0" + } + }, + "node_modules/glob-to-regexp": { + "version": "0.4.1", + "resolved": "https://registry.npmjs.org/glob-to-regexp/-/glob-to-regexp-0.4.1.tgz", + "integrity": "sha512-lkX1HJXwyMcprw/5YUZc2s7DrpAiHB21/V+E1rHUrVNokkvB6bqMzT0VfV6/86ZNabt1k14YOIaT7nDvOX3Iiw==", + "dev": true + }, + "node_modules/global-modules": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/global-modules/-/global-modules-2.0.0.tgz", + "integrity": "sha512-NGbfmJBp9x8IxyJSd1P+otYK8vonoJactOogrVfFRIAEY1ukil8RSKDz2Yo7wh1oihl51l/r6W4epkeKJHqL8A==", + "dev": true, + "dependencies": { + "global-prefix": "^3.0.0" + }, + "engines": { + "node": ">=6" + } + }, + "node_modules/global-prefix": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/global-prefix/-/global-prefix-3.0.0.tgz", + "integrity": "sha512-awConJSVCHVGND6x3tmMaKcQvwXLhjdkmomy2W+Goaui8YPgYgXJZewhg3fWC+DlfqqQuWg8AwqjGTD2nAPVWg==", + "dev": true, + "dependencies": { + "ini": "^1.3.5", + "kind-of": "^6.0.2", + "which": "^1.3.1" + }, + "engines": { + "node": ">=6" + } + }, + "node_modules/global-prefix/node_modules/which": { + "version": "1.3.1", + "resolved": "https://registry.npmjs.org/which/-/which-1.3.1.tgz", + "integrity": "sha512-HxJdYWq1MTIQbJ3nw0cqssHoTNU267KlrDuGZ1WYlxDStUtKUhOaJmh112/TZmHxxUfuJqPXSOm7tDyas0OSIQ==", + "dev": true, + "dependencies": { + "isexe": "^2.0.0" + }, + "bin": { + "which": "bin/which" + } + }, + "node_modules/globals": { + "version": "11.12.0", + "resolved": "https://registry.npmjs.org/globals/-/globals-11.12.0.tgz", + "integrity": "sha512-WOBp/EEGUiIsJSp7wcv/y6MO+lV9UoncWqxuFfm8eBwzWNgyfBd6Gz+IeKQ9jCmyhoH99g15M3T+QaVHFjizVA==", + "dev": true, + "engines": { + "node": ">=4" + } + }, + "node_modules/globalthis": { + "version": "1.0.3", + "resolved": "https://registry.npmjs.org/globalthis/-/globalthis-1.0.3.tgz", + "integrity": "sha512-sFdI5LyBiNTHjRd7cGPWapiHWMOXKyuBNX/cWJ3NfzrZQVa8GI/8cofCl74AOVqq9W5kNmguTIzJ/1s2gyI9wA==", + "dev": true, + "peer": true, + "dependencies": { + "define-properties": "^1.1.3" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/globby": { + "version": "11.1.0", + "resolved": "https://registry.npmjs.org/globby/-/globby-11.1.0.tgz", + "integrity": "sha512-jhIXaOzy1sb8IyocaruWSn1TjmnBVs8Ayhcy83rmxNJ8q2uWKCAj3CnJY+KpGSXCueAPc0i05kVvVKtP1t9S3g==", + "dev": true, + "dependencies": { + "array-union": "^2.1.0", + "dir-glob": "^3.0.1", + "fast-glob": "^3.2.9", + "ignore": "^5.2.0", + "merge2": "^1.4.1", + "slash": "^3.0.0" + }, + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/globjoin": { + "version": "0.1.4", + "resolved": "https://registry.npmjs.org/globjoin/-/globjoin-0.1.4.tgz", + "integrity": "sha512-xYfnw62CKG8nLkZBfWbhWwDw02CHty86jfPcc2cr3ZfeuK9ysoVPPEUxf21bAD/rWAgk52SuBrLJlefNy8mvFg==", + "dev": true + }, + "node_modules/gopd": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/gopd/-/gopd-1.0.1.tgz", + "integrity": "sha512-d65bNlIadxvpb/A2abVdlqKqV563juRnZ1Wtk6s1sIR8uNsXR70xqIzVqxVf1eTqDunwT2MkczEeaezCKTZhwA==", + "dev": true, + "peer": true, + "dependencies": { + "get-intrinsic": "^1.1.3" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/graceful-fs": { + "version": "4.2.11", + "resolved": "https://registry.npmjs.org/graceful-fs/-/graceful-fs-4.2.11.tgz", + "integrity": "sha512-RbJ5/jmFcNNCcDV5o9eTnBLJ/HszWV0P73bc+Ff4nS/rJj+YaS6IGyiOL0VoBYX+l1Wrl3k63h/KrH+nhJ0XvQ==", + "dev": true + }, + "node_modules/graphemer": { + "version": "1.4.0", + "resolved": "https://registry.npmjs.org/graphemer/-/graphemer-1.4.0.tgz", + "integrity": "sha512-EtKwoO6kxCL9WO5xipiHTZlSzBm7WLT627TqC/uVRd0HKmq8NXyebnNYxDoBi7wt8eTWrUrKXCOVaFq9x1kgag==", + "dev": true + }, + "node_modules/hard-rejection": { + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/hard-rejection/-/hard-rejection-2.1.0.tgz", + "integrity": "sha512-VIZB+ibDhx7ObhAe7OVtoEbuP4h/MuOTHJ+J8h/eBXotJYl0fBgR72xDFCKgIh22OJZIOVNxBMWuhAr10r8HdA==", + "dev": true, + "engines": { + "node": ">=6" + } + }, + "node_modules/has-bigints": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/has-bigints/-/has-bigints-1.0.2.tgz", + "integrity": "sha512-tSvCKtBr9lkF0Ex0aQiP9N+OpV4zi2r/Nee5VkRDbaqv35RLYMzbwQfFSZZH0kR+Rd6302UJZ2p/bJCEoR3VoQ==", + "dev": true, + "peer": true, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/has-flag": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-3.0.0.tgz", + "integrity": "sha512-sKJf1+ceQBr4SMkvQnBDNDtf4TXpVhVGateu0t918bl30FnbE2m4vNLX+VWe/dpjlb+HugGYzW7uQXH98HPEYw==", + "dev": true, + "engines": { + "node": ">=4" + } + }, + "node_modules/has-property-descriptors": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/has-property-descriptors/-/has-property-descriptors-1.0.1.tgz", + "integrity": "sha512-VsX8eaIewvas0xnvinAe9bw4WfIeODpGYikiWYLH+dma0Jw6KHYqWiWfhQlgOVK8D6PvjubK5Uc4P0iIhIcNVg==", + "dev": true, + "peer": true, + "dependencies": { + "get-intrinsic": "^1.2.2" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/has-proto": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/has-proto/-/has-proto-1.0.1.tgz", + "integrity": "sha512-7qE+iP+O+bgF9clE5+UoBFzE65mlBiVj3tKCrlNQ0Ogwm0BjpT/gK4SlLYDMybDh5I3TCTKnPPa0oMG7JDYrhg==", + "dev": true, + "peer": true, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/has-symbols": { + "version": "1.0.3", + "resolved": "https://registry.npmjs.org/has-symbols/-/has-symbols-1.0.3.tgz", + "integrity": "sha512-l3LCuF6MgDNwTDKkdYGEihYjt5pRPbEg46rtlmnSPlUbgmB8LOIrKJbYYFBSbnPaJexMKtiPO8hmeRjRz2Td+A==", + "dev": true, + "peer": true, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/has-tostringtag": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/has-tostringtag/-/has-tostringtag-1.0.0.tgz", + "integrity": "sha512-kFjcSNhnlGV1kyoGk7OXKSawH5JOb/LzUc5w9B02hOTO0dfFRjbHQKvg1d6cf3HbeUmtU9VbbV3qzZ2Teh97WQ==", + "dev": true, + "peer": true, + "dependencies": { + "has-symbols": "^1.0.2" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/hash-sum": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/hash-sum/-/hash-sum-2.0.0.tgz", + "integrity": "sha512-WdZTbAByD+pHfl/g9QSsBIIwy8IT+EsPiKDs0KNX+zSHhdDLFKdZu0BQHljvO+0QI/BasbMSUa8wYNCZTvhslg==", + "dev": true + }, + "node_modules/hasown": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/hasown/-/hasown-2.0.0.tgz", + "integrity": "sha512-vUptKVTpIJhcczKBbgnS+RtcuYMB8+oNzPK2/Hp3hanz8JmpATdmmgLgSaadVREkDm+e2giHwY3ZRkyjSIDDFA==", + "dev": true, + "dependencies": { + "function-bind": "^1.1.2" + }, + "engines": { + "node": ">= 0.4" + } + }, + "node_modules/he": { + "version": "1.2.0", + "resolved": "https://registry.npmjs.org/he/-/he-1.2.0.tgz", + "integrity": "sha512-F/1DnUGPopORZi0ni+CvrCgHQ5FyEAHRLSApuYWMmrbSwoN2Mn/7k+Gl38gJnR7yyDZk6WLXwiGod1JOWNDKGw==", + "dev": true, + "bin": { + "he": "bin/he" + } + }, + "node_modules/hosted-git-info": { + "version": "4.1.0", + "resolved": "https://registry.npmjs.org/hosted-git-info/-/hosted-git-info-4.1.0.tgz", + "integrity": "sha512-kyCuEOWjJqZuDbRHzL8V93NzQhwIB71oFWSyzVo+KPZI+pnQPPxucdkrOZvkLRnrf5URsQM+IJ09Dw29cRALIA==", + "dev": true, + "dependencies": { + "lru-cache": "^6.0.0" + }, + "engines": { + "node": ">=10" + } + }, + "node_modules/hosted-git-info/node_modules/lru-cache": { + "version": "6.0.0", + "resolved": "https://registry.npmjs.org/lru-cache/-/lru-cache-6.0.0.tgz", + "integrity": "sha512-Jo6dJ04CmSjuznwJSS3pUeWmd/H0ffTlkXXgwZi+eq1UCmqQwCh+eLsYOYCwY991i2Fah4h1BEMCx4qThGbsiA==", + "dev": true, + "dependencies": { + "yallist": "^4.0.0" + }, + "engines": { + "node": ">=10" + } + }, + "node_modules/hosted-git-info/node_modules/yallist": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/yallist/-/yallist-4.0.0.tgz", + "integrity": "sha512-3wdGidZyq5PB084XLES5TpOSRA3wjXAlIWMhum2kRcv/41Sn2emQ0dycQW4uZXLejwKvg6EsvbdlVL+FYEct7A==", + "dev": true + }, + "node_modules/html-tags": { + "version": "3.3.1", + "resolved": "https://registry.npmjs.org/html-tags/-/html-tags-3.3.1.tgz", + "integrity": "sha512-ztqyC3kLto0e9WbNp0aeP+M3kTt+nbaIveGmUxAtZa+8iFgKLUOD4YKM5j+f3QD89bra7UeumolZHKuOXnTmeQ==", + "dev": true, + "engines": { + "node": ">=8" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/ignore": { + "version": "5.3.0", + "resolved": "https://registry.npmjs.org/ignore/-/ignore-5.3.0.tgz", + "integrity": "sha512-g7dmpshy+gD7mh88OC9NwSGTKoc3kyLAZQRU1mt53Aw/vnvfXnbC+F/7F7QoYVKbV+KNvJx8wArewKy1vXMtlg==", + "dev": true, + "engines": { + "node": ">= 4" + } + }, + "node_modules/immutable": { + "version": "4.3.4", + "resolved": "https://registry.npmjs.org/immutable/-/immutable-4.3.4.tgz", + "integrity": "sha512-fsXeu4J4i6WNWSikpI88v/PcVflZz+6kMhUfIwc5SY+poQRPnaf5V7qds6SUyUN3cVxEzuCab7QIoLOQ+DQ1wA==", + "dev": true + }, + "node_modules/import-fresh": { + "version": "3.3.0", + "resolved": "https://registry.npmjs.org/import-fresh/-/import-fresh-3.3.0.tgz", + "integrity": "sha512-veYYhQa+D1QBKznvhUHxb8faxlrwUnxseDAbAp457E0wLNio2bOSKnjYDhMj+YiAq61xrMGhQk9iXVk5FzgQMw==", + "dev": true, + "dependencies": { + "parent-module": "^1.0.0", + "resolve-from": "^4.0.0" + }, + "engines": { + "node": ">=6" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/import-lazy": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/import-lazy/-/import-lazy-4.0.0.tgz", + "integrity": "sha512-rKtvo6a868b5Hu3heneU+L4yEQ4jYKLtjpnPeUdK7h0yzXGmyBTypknlkCvHFBqfX9YlorEiMM6Dnq/5atfHkw==", + "dev": true, + "engines": { + "node": ">=8" + } + }, + "node_modules/imurmurhash": { + "version": "0.1.4", + "resolved": "https://registry.npmjs.org/imurmurhash/-/imurmurhash-0.1.4.tgz", + "integrity": "sha512-JmXMZ6wuvDmLiHEml9ykzqO6lwFbof0GG4IkcGaENdCRDDmMVnny7s5HsIgHCbaq0w2MyPhDqkhTUgS2LU2PHA==", + "dev": true, + "engines": { + "node": ">=0.8.19" + } + }, + "node_modules/indent-string": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/indent-string/-/indent-string-4.0.0.tgz", + "integrity": "sha512-EdDDZu4A2OyIK7Lr/2zG+w5jmbuk1DVBnEwREQvBzspBJkCEbRa8GxU1lghYcaGJCnRWibjDXlq779X1/y5xwg==", + "dev": true, + "optional": true, + "peer": true, + "engines": { + "node": ">=8" + } + }, + "node_modules/inflight": { + "version": "1.0.6", + "resolved": "https://registry.npmjs.org/inflight/-/inflight-1.0.6.tgz", + "integrity": "sha512-k92I/b08q4wvFscXCLvqfsHCrjrF7yiXsQuIVvVE7N82W3+aqpzuUdBbfhWcy/FZR3/4IgflMgKLOsvPDrGCJA==", + "dev": true, + "dependencies": { + "once": "^1.3.0", + "wrappy": "1" + } + }, + "node_modules/inherits": { + "version": "2.0.4", + "resolved": "https://registry.npmjs.org/inherits/-/inherits-2.0.4.tgz", + "integrity": "sha512-k/vGaX4/Yla3WzyMCvTQOXYeIHvqOKtnqBduzTHpzpQZzAskKMhZ2K+EnBiSM9zGSoIFeMpXKxa4dYeZIQqewQ==", + "dev": true + }, + "node_modules/ini": { + "version": "1.3.8", + "resolved": "https://registry.npmjs.org/ini/-/ini-1.3.8.tgz", + "integrity": "sha512-JV/yugV2uzW5iMRSiZAyDtQd+nxtUnjeLt0acNdw98kKLrvuRVyB80tsREOE7yvGVgalhZ6RNXCmEHkUKBKxew==", + "dev": true + }, + "node_modules/internal-slot": { + "version": "1.0.6", + "resolved": "https://registry.npmjs.org/internal-slot/-/internal-slot-1.0.6.tgz", + "integrity": "sha512-Xj6dv+PsbtwyPpEflsejS+oIZxmMlV44zAhG479uYu89MsjcYOhCFnNyKrkJrihbsiasQyY0afoCl/9BLR65bg==", + "dev": true, + "peer": true, + "dependencies": { + "get-intrinsic": "^1.2.2", + "hasown": "^2.0.0", + "side-channel": "^1.0.4" + }, + "engines": { + "node": ">= 0.4" + } + }, + "node_modules/is-array-buffer": { + "version": "3.0.2", + "resolved": "https://registry.npmjs.org/is-array-buffer/-/is-array-buffer-3.0.2.tgz", + "integrity": "sha512-y+FyyR/w8vfIRq4eQcM1EYgSTnmHXPqaF+IgzgraytCFq5Xh8lllDVmAZolPJiZttZLeFSINPYMaEJ7/vWUa1w==", + "dev": true, + "peer": true, + "dependencies": { + "call-bind": "^1.0.2", + "get-intrinsic": "^1.2.0", + "is-typed-array": "^1.1.10" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/is-arrayish": { + "version": "0.2.1", + "resolved": "https://registry.npmjs.org/is-arrayish/-/is-arrayish-0.2.1.tgz", + "integrity": "sha512-zz06S8t0ozoDXMG+ube26zeCTNXcKIPJZJi8hBrF4idCLms4CG9QtK7qBl1boi5ODzFpjswb5JPmHCbMpjaYzg==", + "dev": true + }, + "node_modules/is-bigint": { + "version": "1.0.4", + "resolved": "https://registry.npmjs.org/is-bigint/-/is-bigint-1.0.4.tgz", + "integrity": "sha512-zB9CruMamjym81i2JZ3UMn54PKGsQzsJeo6xvN3HJJ4CAsQNB6iRutp2To77OfCNuoxspsIhzaPoO1zyCEhFOg==", + "dev": true, + "peer": true, + "dependencies": { + "has-bigints": "^1.0.1" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/is-binary-path": { + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/is-binary-path/-/is-binary-path-2.1.0.tgz", + "integrity": "sha512-ZMERYes6pDydyuGidse7OsHxtbI7WVeUEozgR/g7rd0xUimYNlvZRE/K2MgZTjWy725IfelLeVcEM97mmtRGXw==", + "dev": true, + "dependencies": { + "binary-extensions": "^2.0.0" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/is-boolean-object": { + "version": "1.1.2", + "resolved": "https://registry.npmjs.org/is-boolean-object/-/is-boolean-object-1.1.2.tgz", + "integrity": "sha512-gDYaKHJmnj4aWxyj6YHyXVpdQawtVLHU5cb+eztPGczf6cjuTdwve5ZIEfgXqH4e57An1D1AKf8CZ3kYrQRqYA==", + "dev": true, + "peer": true, + "dependencies": { + "call-bind": "^1.0.2", + "has-tostringtag": "^1.0.0" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/is-callable": { + "version": "1.2.7", + "resolved": "https://registry.npmjs.org/is-callable/-/is-callable-1.2.7.tgz", + "integrity": "sha512-1BC0BVFhS/p0qtw6enp8e+8OD0UrK0oFLztSjNzhcKA3WDuJxxAPXzPuPtKkjEY9UUoEWlX/8fgKeu2S8i9JTA==", + "dev": true, + "peer": true, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/is-core-module": { + "version": "2.13.1", + "resolved": "https://registry.npmjs.org/is-core-module/-/is-core-module-2.13.1.tgz", + "integrity": "sha512-hHrIjvZsftOsvKSn2TRYl63zvxsgE0K+0mYMoH6gD4omR5IWB2KynivBQczo3+wF1cCkjzvptnI9Q0sPU66ilw==", + "dev": true, + "dependencies": { + "hasown": "^2.0.0" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/is-date-object": { + "version": "1.0.5", + "resolved": "https://registry.npmjs.org/is-date-object/-/is-date-object-1.0.5.tgz", + "integrity": "sha512-9YQaSxsAiSwcvS33MBk3wTCVnWK+HhF8VZR2jRxehM16QcVOdHqPn4VPHmRK4lSr38n9JriurInLcP90xsYNfQ==", + "dev": true, + "peer": true, + "dependencies": { + "has-tostringtag": "^1.0.0" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/is-extglob": { + "version": "2.1.1", + "resolved": "https://registry.npmjs.org/is-extglob/-/is-extglob-2.1.1.tgz", + "integrity": "sha512-SbKbANkN603Vi4jEZv49LeVJMn4yGwsbzZworEoyEiutsN3nJYdbO36zfhGJ6QEDpOZIFkDtnq5JRxmvl3jsoQ==", + "dev": true, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/is-fullwidth-code-point": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/is-fullwidth-code-point/-/is-fullwidth-code-point-3.0.0.tgz", + "integrity": "sha512-zymm5+u+sCsSWyD9qNaejV3DFvhCKclKdizYaJUuHA83RLjb7nSuGnddCHGv0hk+KY7BMAlsWeK4Ueg6EV6XQg==", + "dev": true, + "engines": { + "node": ">=8" + } + }, + "node_modules/is-glob": { + "version": "4.0.3", + "resolved": "https://registry.npmjs.org/is-glob/-/is-glob-4.0.3.tgz", + "integrity": "sha512-xelSayHH36ZgE7ZWhli7pW34hNbNl8Ojv5KVmkJD4hBdD3th8Tfk9vYasLM+mXWOZhFkgZfxhLSnrwRr4elSSg==", + "dev": true, + "dependencies": { + "is-extglob": "^2.1.1" + }, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/is-negative-zero": { + "version": "2.0.2", + "resolved": "https://registry.npmjs.org/is-negative-zero/-/is-negative-zero-2.0.2.tgz", + "integrity": "sha512-dqJvarLawXsFbNDeJW7zAz8ItJ9cd28YufuuFzh0G8pNHjJMnY08Dv7sYX2uF5UpQOwieAeOExEYAWWfu7ZZUA==", + "dev": true, + "peer": true, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/is-number": { + "version": "7.0.0", + "resolved": "https://registry.npmjs.org/is-number/-/is-number-7.0.0.tgz", + "integrity": "sha512-41Cifkg6e8TylSpdtTpeLVMqvSBEVzTttHvERD741+pnZ8ANv0004MRL43QKPDlK9cGvNp6NZWZUBlbGXYxxng==", + "dev": true, + "engines": { + "node": ">=0.12.0" + } + }, + "node_modules/is-number-object": { + "version": "1.0.7", + "resolved": "https://registry.npmjs.org/is-number-object/-/is-number-object-1.0.7.tgz", + "integrity": "sha512-k1U0IRzLMo7ZlYIfzRu23Oh6MiIFasgpb9X76eqfFZAqwH44UI4KTBvBYIZ1dSL9ZzChTB9ShHfLkR4pdW5krQ==", + "dev": true, + "peer": true, + "dependencies": { + "has-tostringtag": "^1.0.0" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/is-path-inside": { + "version": "3.0.3", + "resolved": "https://registry.npmjs.org/is-path-inside/-/is-path-inside-3.0.3.tgz", + "integrity": "sha512-Fd4gABb+ycGAmKou8eMftCupSir5lRxqf4aD/vd0cD2qc4HL07OjCeuHMr8Ro4CoMaeCKDB0/ECBOVWjTwUvPQ==", + "dev": true, + "engines": { + "node": ">=8" + } + }, + "node_modules/is-plain-obj": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/is-plain-obj/-/is-plain-obj-1.1.0.tgz", + "integrity": "sha512-yvkRyxmFKEOQ4pNXCmJG5AEQNlXJS5LaONXo5/cLdTZdWvsZ1ioJEonLGAosKlMWE8lwUy/bJzMjcw8az73+Fg==", + "dev": true, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/is-plain-object": { + "version": "3.0.1", + "resolved": "https://registry.npmjs.org/is-plain-object/-/is-plain-object-3.0.1.tgz", + "integrity": "sha512-Xnpx182SBMrr/aBik8y+GuR4U1L9FqMSojwDQwPMmxyC6bvEqly9UBCxhauBF5vNh2gwWJNX6oDV7O+OM4z34g==", + "dev": true, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/is-regex": { + "version": "1.1.4", + "resolved": "https://registry.npmjs.org/is-regex/-/is-regex-1.1.4.tgz", + "integrity": "sha512-kvRdxDsxZjhzUX07ZnLydzS1TU/TJlTUHHY4YLL87e37oUA49DfkLqgy+VjFocowy29cKvcSiu+kIv728jTTVg==", + "dev": true, + "peer": true, + "dependencies": { + "call-bind": "^1.0.2", + "has-tostringtag": "^1.0.0" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/is-shared-array-buffer": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/is-shared-array-buffer/-/is-shared-array-buffer-1.0.2.tgz", + "integrity": "sha512-sqN2UDu1/0y6uvXyStCOzyhAjCSlHceFoMKJW8W9EU9cvic/QdsZ0kEU93HEy3IUEFZIiH/3w+AH/UQbPHNdhA==", + "dev": true, + "peer": true, + "dependencies": { + "call-bind": "^1.0.2" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/is-string": { + "version": "1.0.7", + "resolved": "https://registry.npmjs.org/is-string/-/is-string-1.0.7.tgz", + "integrity": "sha512-tE2UXzivje6ofPW7l23cjDOMa09gb7xlAqG6jG5ej6uPV32TlWP3NKPigtaGeHNu9fohccRYvIiZMfOOnOYUtg==", + "dev": true, + "peer": true, + "dependencies": { + "has-tostringtag": "^1.0.0" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/is-symbol": { + "version": "1.0.4", + "resolved": "https://registry.npmjs.org/is-symbol/-/is-symbol-1.0.4.tgz", + "integrity": "sha512-C/CPBqKWnvdcxqIARxyOh4v1UUEOCHpgDa0WYgpKDFMszcrPcffg5uhwSgPCLD2WWxmq6isisz87tzT01tuGhg==", + "dev": true, + "peer": true, + "dependencies": { + "has-symbols": "^1.0.2" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/is-typed-array": { + "version": "1.1.12", + "resolved": "https://registry.npmjs.org/is-typed-array/-/is-typed-array-1.1.12.tgz", + "integrity": "sha512-Z14TF2JNG8Lss5/HMqt0//T9JeHXttXy5pH/DBU4vi98ozO2btxzq9MwYDZYnKwU8nRsz/+GVFVRDq3DkVuSPg==", + "dev": true, + "peer": true, + "dependencies": { + "which-typed-array": "^1.1.11" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/is-weakref": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/is-weakref/-/is-weakref-1.0.2.tgz", + "integrity": "sha512-qctsuLZmIQ0+vSSMfoVvyFe2+GSEvnmZ2ezTup1SBse9+twCCeial6EEi3Nc2KFcf6+qz2FBPnjXsk8xhKSaPQ==", + "dev": true, + "peer": true, + "dependencies": { + "call-bind": "^1.0.2" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/isarray": { + "version": "2.0.5", + "resolved": "https://registry.npmjs.org/isarray/-/isarray-2.0.5.tgz", + "integrity": "sha512-xHjhDr3cNBK0BzdUJSPXZntQUx/mwMS5Rw4A7lPJ90XGAO6ISP/ePDNuo0vhqOZU+UD5JoodwCAAoZQd3FeAKw==", + "dev": true, + "peer": true + }, + "node_modules/isexe": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/isexe/-/isexe-2.0.0.tgz", + "integrity": "sha512-RHxMLp9lnKHGHRng9QFhRCMbYAcVpn69smSGcq3f36xjgVVWThj4qqLbTLlq7Ssj8B+fIQ1EuCEGI2lKsyQeIw==", + "dev": true + }, + "node_modules/jest-worker": { + "version": "27.5.1", + "resolved": "https://registry.npmjs.org/jest-worker/-/jest-worker-27.5.1.tgz", + "integrity": "sha512-7vuh85V5cdDofPyxn58nrPjBktZo0u9x1g8WtjQol+jZDaE+fhN+cIvTj11GndBnMnyfrUOG1sZQxCdjKh+DKg==", + "dev": true, + "peer": true, + "dependencies": { + "@types/node": "*", + "merge-stream": "^2.0.0", + "supports-color": "^8.0.0" + }, + "engines": { + "node": ">= 10.13.0" + } + }, + "node_modules/jest-worker/node_modules/has-flag": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-4.0.0.tgz", + "integrity": "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==", + "dev": true, + "peer": true, + "engines": { + "node": ">=8" + } + }, + "node_modules/jest-worker/node_modules/supports-color": { + "version": "8.1.1", + "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-8.1.1.tgz", + "integrity": "sha512-MpUEN2OodtUzxvKQl72cUF7RQ5EiHsGvSsVG0ia9c5RbWGL2CI4C7EpPS8UTBIplnlzZiNuV56w+FuNxy3ty2Q==", + "dev": true, + "peer": true, + "dependencies": { + "has-flag": "^4.0.0" + }, + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/chalk/supports-color?sponsor=1" + } + }, + "node_modules/js-tokens": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/js-tokens/-/js-tokens-4.0.0.tgz", + "integrity": "sha512-RdJUflcE3cUzKiMqQgsCu06FPu9UdIJO0beYbPhHN4k6apgJtifcoCtT9bcxOpYBtpD2kCM6Sbzg4CausW/PKQ==", + "dev": true + }, + "node_modules/js-yaml": { + "version": "4.1.0", + "resolved": "https://registry.npmjs.org/js-yaml/-/js-yaml-4.1.0.tgz", + "integrity": "sha512-wpxZs9NoxZaJESJGIZTyDEaYpl0FKSA+FB9aJiyemKhMwkxQg63h4T1KJgUGHpTqPDNRcmmYLugrRjJlBtWvRA==", + "dev": true, + "dependencies": { + "argparse": "^2.0.1" + }, + "bin": { + "js-yaml": "bin/js-yaml.js" + } + }, + "node_modules/jsesc": { + "version": "2.5.2", + "resolved": "https://registry.npmjs.org/jsesc/-/jsesc-2.5.2.tgz", + "integrity": "sha512-OYu7XEzjkCQ3C5Ps3QIZsQfNpqoJyZZA99wd9aWd05NCtC5pWOkShK2mkL6HXQR6/Cy2lbNdPlZBpuQHXE63gA==", + "dev": true, + "bin": { + "jsesc": "bin/jsesc" + }, + "engines": { + "node": ">=4" + } + }, + "node_modules/json-buffer": { + "version": "3.0.1", + "resolved": "https://registry.npmjs.org/json-buffer/-/json-buffer-3.0.1.tgz", + "integrity": "sha512-4bV5BfR2mqfQTJm+V5tPPdf+ZpuhiIvTuAB5g8kcrXOZpTT/QwwVRWBywX1ozr6lEuPdbHxwaJlm9G6mI2sfSQ==", + "dev": true + }, + "node_modules/json-parse-even-better-errors": { + "version": "2.3.1", + "resolved": "https://registry.npmjs.org/json-parse-even-better-errors/-/json-parse-even-better-errors-2.3.1.tgz", + "integrity": "sha512-xyFwyhro/JEof6Ghe2iz2NcXoj2sloNsWr/XsERDK/oiPCfaNhl5ONfp+jQdAZRQQ0IJWNzH9zIZF7li91kh2w==", + "dev": true + }, + "node_modules/json-schema-traverse": { + "version": "0.4.1", + "resolved": "https://registry.npmjs.org/json-schema-traverse/-/json-schema-traverse-0.4.1.tgz", + "integrity": "sha512-xbbCH5dCYU5T8LcEhhuh7HJ88HXuW3qsI3Y0zOZFKfZEHcpWiHU/Jxzk629Brsab/mMiHQti9wMP+845RPe3Vg==", + "dev": true + }, + "node_modules/json-stable-stringify-without-jsonify": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/json-stable-stringify-without-jsonify/-/json-stable-stringify-without-jsonify-1.0.1.tgz", + "integrity": "sha512-Bdboy+l7tA3OGW6FjyFHWkP5LuByj1Tk33Ljyq0axyzdk9//JSi2u3fP1QSmd1KNwq6VOKYGlAu87CisVir6Pw==", + "dev": true + }, + "node_modules/json5": { + "version": "2.2.3", + "resolved": "https://registry.npmjs.org/json5/-/json5-2.2.3.tgz", + "integrity": "sha512-XmOWe7eyHYH14cLdVPoyg+GOH3rYX++KpzrylJwSW98t3Nk+U8XOl8FWKOgwtzdb8lXGf6zYwDUzeHMWfxasyg==", + "dev": true, + "bin": { + "json5": "lib/cli.js" + }, + "engines": { + "node": ">=6" + } + }, + "node_modules/jsonfile": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/jsonfile/-/jsonfile-4.0.0.tgz", + "integrity": "sha512-m6F1R3z8jjlf2imQHS2Qez5sjKWQzbuuhuJ/FKYFRZvPE3PuHcSMVZzfsLhGVOkfd20obL5SWEBew5ShlquNxg==", + "dev": true, + "optionalDependencies": { + "graceful-fs": "^4.1.6" + } + }, + "node_modules/keyv": { + "version": "4.5.4", + "resolved": "https://registry.npmjs.org/keyv/-/keyv-4.5.4.tgz", + "integrity": "sha512-oxVHkHR/EJf2CNXnWxRLW6mg7JyCCUcG0DtEGmL2ctUo1PNTin1PUil+r/+4r5MpVgC/fn1kjsx7mjSujKqIpw==", + "dev": true, + "dependencies": { + "json-buffer": "3.0.1" + } + }, + "node_modules/kind-of": { + "version": "6.0.3", + "resolved": "https://registry.npmjs.org/kind-of/-/kind-of-6.0.3.tgz", + "integrity": "sha512-dcS1ul+9tmeD95T+x28/ehLgd9mENa3LsvDTtzm3vyBEO7RPptvAD+t44WVXaUjTBRcrpFeFlC8WCruUR456hw==", + "dev": true, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/known-css-properties": { + "version": "0.29.0", + "resolved": "https://registry.npmjs.org/known-css-properties/-/known-css-properties-0.29.0.tgz", + "integrity": "sha512-Ne7wqW7/9Cz54PDt4I3tcV+hAyat8ypyOGzYRJQfdxnnjeWsTxt1cy8pjvvKeI5kfXuyvULyeeAvwvvtAX3ayQ==", + "dev": true + }, + "node_modules/laravel-vite-plugin": { + "version": "0.8.1", + "resolved": "https://registry.npmjs.org/laravel-vite-plugin/-/laravel-vite-plugin-0.8.1.tgz", + "integrity": "sha512-fxzUDjOA37kOsYq8dP+3oPIlw8/kJVXwu0hOXLun82R1LpV02shGeWGYKx2lbpKffL5I0sfPPjfqbYxuqBluAA==", + "dev": true, + "dependencies": { + "picocolors": "^1.0.0", + "vite-plugin-full-reload": "^1.0.5" + }, + "engines": { + "node": ">=14" + }, + "peerDependencies": { + "vite": "^3.0.0 || ^4.0.0" + } + }, + "node_modules/levn": { + "version": "0.4.1", + "resolved": "https://registry.npmjs.org/levn/-/levn-0.4.1.tgz", + "integrity": "sha512-+bT2uH4E5LGE7h/n3evcS/sQlJXCpIp6ym8OWJ5eV6+67Dsql/LaaT7qJBAt2rzfoa/5QBGBhxDix1dMt2kQKQ==", + "dev": true, + "dependencies": { + "prelude-ls": "^1.2.1", + "type-check": "~0.4.0" + }, + "engines": { + "node": ">= 0.8.0" + } + }, + "node_modules/lines-and-columns": { + "version": "1.2.4", + "resolved": "https://registry.npmjs.org/lines-and-columns/-/lines-and-columns-1.2.4.tgz", + "integrity": "sha512-7ylylesZQ/PV29jhEDl3Ufjo6ZX7gCqJr5F7PKrqc93v7fzSymt1BpwEU8nAUXs8qzzvqhbjhK5QZg6Mt/HkBg==", + "dev": true + }, + "node_modules/loader-runner": { + "version": "4.3.0", + "resolved": "https://registry.npmjs.org/loader-runner/-/loader-runner-4.3.0.tgz", + "integrity": "sha512-3R/1M+yS3j5ou80Me59j7F9IMs4PXs3VqRrm0TU3AbKPxlmpoY1TNscJV/oGJXo8qCatFGTfDbY6W6ipGOYXfg==", + "dev": true, + "peer": true, + "engines": { + "node": ">=6.11.5" + } + }, + "node_modules/loader-utils": { + "version": "2.0.4", + "resolved": "https://registry.npmjs.org/loader-utils/-/loader-utils-2.0.4.tgz", + "integrity": "sha512-xXqpXoINfFhgua9xiqD8fPFHgkoq1mmmpE92WlDbm9rNRd/EbRb+Gqf908T2DMfuHjjJlksiK2RbHVOdD/MqSw==", + "dev": true, + "dependencies": { + "big.js": "^5.2.2", + "emojis-list": "^3.0.0", + "json5": "^2.1.2" + }, + "engines": { + "node": ">=8.9.0" + } + }, + "node_modules/locate-path": { + "version": "6.0.0", + "resolved": "https://registry.npmjs.org/locate-path/-/locate-path-6.0.0.tgz", + "integrity": "sha512-iPZK6eYjbxRu3uB4/WZ3EsEIMJFMqAoopl3R+zuq0UjcAm/MO6KCweDgPfP3elTztoKP3KtnVHxTn2NHBSDVUw==", + "dev": true, + "dependencies": { + "p-locate": "^5.0.0" + }, + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/lodash": { + "version": "4.17.21", + "resolved": "https://registry.npmjs.org/lodash/-/lodash-4.17.21.tgz", + "integrity": "sha512-v2kDEe57lecTulaDIuNTPy3Ry4gLGJ6Z1O3vE1krgXZNrsQ+LFTGHVxVjcXPs17LhbZVGedAJv8XZ1tvj5FvSg==", + "dev": true + }, + "node_modules/lodash.debounce": { + "version": "4.0.8", + "resolved": "https://registry.npmjs.org/lodash.debounce/-/lodash.debounce-4.0.8.tgz", + "integrity": "sha512-FT1yDzDYEoYWhnSGnpE/4Kj1fLZkDFyqRb7fNt6FdYOSxlUWAtp42Eh6Wb0rGIv/m9Bgo7x4GhQbm5Ys4SG5ow==", + "dev": true + }, + "node_modules/lodash.merge": { + "version": "4.6.2", + "resolved": "https://registry.npmjs.org/lodash.merge/-/lodash.merge-4.6.2.tgz", + "integrity": "sha512-0KpjqXRVvrYyCsX1swR/XTK0va6VQkQM6MNo7PqW77ByjAhoARA8EfrP1N4+KlKj8YS0ZUCtRT/YUuhyYDujIQ==", + "dev": true + }, + "node_modules/lodash.pick": { + "version": "4.4.0", + "resolved": "https://registry.npmjs.org/lodash.pick/-/lodash.pick-4.4.0.tgz", + "integrity": "sha512-hXt6Ul/5yWjfklSGvLQl8vM//l3FtyHZeuelpzK6mm99pNvN9yTDruNZPEJZD1oWrqo+izBmB7oUfWgcCX7s4Q==", + "dev": true + }, + "node_modules/lodash.truncate": { + "version": "4.4.2", + "resolved": "https://registry.npmjs.org/lodash.truncate/-/lodash.truncate-4.4.2.tgz", + "integrity": "sha512-jttmRe7bRse52OsWIMDLaXxWqRAmtIUccAQ3garviCqJjafXOfNMO0yMfNpdD6zbGaTU0P5Nz7e7gAT6cKmJRw==", + "dev": true + }, + "node_modules/lru-cache": { + "version": "5.1.1", + "resolved": "https://registry.npmjs.org/lru-cache/-/lru-cache-5.1.1.tgz", + "integrity": "sha512-KpNARQA3Iwv+jTA0utUVVbrh+Jlrr1Fv0e56GGzAFOXN7dk/FviaDW8LHmK52DlcH4WP2n6gI8vN1aesBFgo9w==", + "dev": true, + "dependencies": { + "yallist": "^3.0.2" + } + }, + "node_modules/magic-string": { + "version": "0.30.5", + "resolved": "https://registry.npmjs.org/magic-string/-/magic-string-0.30.5.tgz", + "integrity": "sha512-7xlpfBaQaP/T6Vh8MO/EqXSW5En6INHEvEXQiuff7Gku0PWjU3uf6w/j9o7O+SpB5fOAkrI5HeoNgwjEO0pFsA==", + "dev": true, + "dependencies": { + "@jridgewell/sourcemap-codec": "^1.4.15" + }, + "engines": { + "node": ">=12" + } + }, + "node_modules/map-obj": { + "version": "4.3.0", + "resolved": "https://registry.npmjs.org/map-obj/-/map-obj-4.3.0.tgz", + "integrity": "sha512-hdN1wVrZbb29eBGiGjJbeP8JbKjq1urkHJ/LIP/NY48MZ1QVXUsQBV1G1zvYFHn1XE06cwjBsOI2K3Ulnj1YXQ==", + "dev": true, + "engines": { + "node": ">=8" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/mathml-tag-names": { + "version": "2.1.3", + "resolved": "https://registry.npmjs.org/mathml-tag-names/-/mathml-tag-names-2.1.3.tgz", + "integrity": "sha512-APMBEanjybaPzUrfqU0IMU5I0AswKMH7k8OTLs0vvV4KZpExkTkY87nR/zpbuTPj+gARop7aGUbl11pnDfW6xg==", + "dev": true, + "funding": { + "type": "github", + "url": "https://github.com/sponsors/wooorm" + } + }, + "node_modules/mdn-data": { + "version": "2.0.30", + "resolved": "https://registry.npmjs.org/mdn-data/-/mdn-data-2.0.30.tgz", + "integrity": "sha512-GaqWWShW4kv/G9IEucWScBx9G1/vsFZZJUO+tD26M8J8z3Kw5RDQjaoZe03YAClgeS/SWPOcb4nkFBTEi5DUEA==", + "dev": true + }, + "node_modules/meow": { + "version": "9.0.0", + "resolved": "https://registry.npmjs.org/meow/-/meow-9.0.0.tgz", + "integrity": "sha512-+obSblOQmRhcyBt62furQqRAQpNyWXo8BuQ5bN7dG8wmwQ+vwHKp/rCFD4CrTP8CsDQD1sjoZ94K417XEUk8IQ==", + "dev": true, + "optional": true, + "peer": true, + "dependencies": { + "@types/minimist": "^1.2.0", + "camelcase-keys": "^6.2.2", + "decamelize": "^1.2.0", + "decamelize-keys": "^1.1.0", + "hard-rejection": "^2.1.0", + "minimist-options": "4.1.0", + "normalize-package-data": "^3.0.0", + "read-pkg-up": "^7.0.1", + "redent": "^3.0.0", + "trim-newlines": "^3.0.0", + "type-fest": "^0.18.0", + "yargs-parser": "^20.2.3" + }, + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/meow/node_modules/type-fest": { + "version": "0.18.1", + "resolved": "https://registry.npmjs.org/type-fest/-/type-fest-0.18.1.tgz", + "integrity": "sha512-OIAYXk8+ISY+qTOwkHtKqzAuxchoMiD9Udx+FSGQDuiRR+PJKJHc2NJAXlbhkGwTt/4/nKZxELY1w3ReWOL8mw==", + "dev": true, + "optional": true, + "peer": true, + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/merge-stream": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/merge-stream/-/merge-stream-2.0.0.tgz", + "integrity": "sha512-abv/qOcuPfk3URPfDzmZU1LKmuw8kT+0nIHvKrKgFrwifol/doWcdA4ZqsWQ8ENrFKkd67Mfpo/LovbIUsbt3w==", + "dev": true, + "peer": true + }, + "node_modules/merge2": { + "version": "1.4.1", + "resolved": "https://registry.npmjs.org/merge2/-/merge2-1.4.1.tgz", + "integrity": "sha512-8q7VEgMJW4J8tcfVPy8g09NcQwZdbwFEqhe/WZkoIzjn/3TGDwtOCYtXGxA3O8tPzpczCCDgv+P2P5y00ZJOOg==", + "dev": true, + "engines": { + "node": ">= 8" + } + }, + "node_modules/micromatch": { + "version": "4.0.5", + "resolved": "https://registry.npmjs.org/micromatch/-/micromatch-4.0.5.tgz", + "integrity": "sha512-DMy+ERcEW2q8Z2Po+WNXuw3c5YaUSFjAO5GsJqfEl7UjvtIuFKO6ZrKvcItdy98dwFI2N1tg3zNIdKaQT+aNdA==", + "dev": true, + "dependencies": { + "braces": "^3.0.2", + "picomatch": "^2.3.1" + }, + "engines": { + "node": ">=8.6" + } + }, + "node_modules/mime-db": { + "version": "1.52.0", + "resolved": "https://registry.npmjs.org/mime-db/-/mime-db-1.52.0.tgz", + "integrity": "sha512-sPU4uV7dYlvtWJxwwxHD0PuihVNiE7TyAbQ5SWxDCB9mUYvOgroQOwYQQOKPJ8CIbE+1ETVlOoK1UC2nU3gYvg==", + "dev": true, + "engines": { + "node": ">= 0.6" + } + }, + "node_modules/mime-types": { + "version": "2.1.35", + "resolved": "https://registry.npmjs.org/mime-types/-/mime-types-2.1.35.tgz", + "integrity": "sha512-ZDY+bPm5zTTF+YpCrAU9nK0UgICYPT0QtT1NZWFv4s++TNkcgVaT0g6+4R2uI4MjQjzysHB1zxuWL50hzaeXiw==", + "dev": true, + "dependencies": { + "mime-db": "1.52.0" + }, + "engines": { + "node": ">= 0.6" + } + }, + "node_modules/min-indent": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/min-indent/-/min-indent-1.0.1.tgz", + "integrity": "sha512-I9jwMn07Sy/IwOj3zVkVik2JTvgpaykDZEigL6Rx6N9LbMywwUSMtxET+7lVoDLLd3O3IXwJwvuuns8UB/HeAg==", + "dev": true, + "engines": { + "node": ">=4" + } + }, + "node_modules/minimatch": { + "version": "3.1.2", + "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-3.1.2.tgz", + "integrity": "sha512-J7p63hRiAjw1NDEww1W7i37+ByIrOWO5XQQAzZ3VOcL0PNybwpfmV/N05zFAzwQ9USyEcX6t3UO+K5aqBQOIHw==", + "dev": true, + "dependencies": { + "brace-expansion": "^1.1.7" + }, + "engines": { + "node": "*" + } + }, + "node_modules/minimist": { + "version": "1.2.8", + "resolved": "https://registry.npmjs.org/minimist/-/minimist-1.2.8.tgz", + "integrity": "sha512-2yyAR8qBkN3YuheJanUpWC5U3bb5osDywNB8RzDVlDwDHbocAJveqqj1u8+SVD7jkWT4yvsHCpWqqWqAxb0zCA==", + "dev": true, + "peer": true, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/minimist-options": { + "version": "4.1.0", + "resolved": "https://registry.npmjs.org/minimist-options/-/minimist-options-4.1.0.tgz", + "integrity": "sha512-Q4r8ghd80yhO/0j1O3B2BjweX3fiHg9cdOwjJd2J76Q135c+NDxGCqdYKQ1SKBuFfgWbAUzBfvYjPUEeNgqN1A==", + "dev": true, + "dependencies": { + "arrify": "^1.0.1", + "is-plain-obj": "^1.1.0", + "kind-of": "^6.0.3" + }, + "engines": { + "node": ">= 6" + } + }, + "node_modules/ms": { + "version": "2.1.2", + "resolved": "https://registry.npmjs.org/ms/-/ms-2.1.2.tgz", + "integrity": "sha512-sGkPx+VjMtmA6MX27oA4FBFELFCZZ4S4XqeGOXCv68tT+jb3vk/RyaKWP0PTKyWtmLSM0b+adUTEvbs1PEaH2w==", + "dev": true + }, + "node_modules/muggle-string": { + "version": "0.3.1", + "resolved": "https://registry.npmjs.org/muggle-string/-/muggle-string-0.3.1.tgz", + "integrity": "sha512-ckmWDJjphvd/FvZawgygcUeQCxzvohjFO5RxTjj4eq8kw359gFF3E1brjfI+viLMxss5JrHTDRHZvu2/tuy0Qg==", + "dev": true + }, + "node_modules/nanoid": { + "version": "3.3.7", + "resolved": "https://registry.npmjs.org/nanoid/-/nanoid-3.3.7.tgz", + "integrity": "sha512-eSRppjcPIatRIMC1U6UngP8XFcz8MQWGQdt1MTBQ7NaAmvXDfvNxbvWV3x2y6CdEUciCSsDHDQZbhYaB8QEo2g==", + "dev": true, + "funding": [ + { + "type": "github", + "url": "https://github.com/sponsors/ai" + } + ], + "bin": { + "nanoid": "bin/nanoid.cjs" + }, + "engines": { + "node": "^10 || ^12 || ^13.7 || ^14 || >=15.0.1" + } + }, + "node_modules/natural-compare": { + "version": "1.4.0", + "resolved": "https://registry.npmjs.org/natural-compare/-/natural-compare-1.4.0.tgz", + "integrity": "sha512-OWND8ei3VtNC9h7V60qff3SVobHr996CTwgxubgyQYEpg290h9J0buyECNNJexkFm5sOajh5G116RYA1c8ZMSw==", + "dev": true + }, + "node_modules/natural-compare-lite": { + "version": "1.4.0", + "resolved": "https://registry.npmjs.org/natural-compare-lite/-/natural-compare-lite-1.4.0.tgz", + "integrity": "sha512-Tj+HTDSJJKaZnfiuw+iaF9skdPpTo2GtEly5JHnWV/hfv2Qj/9RKsGISQtLh2ox3l5EAGw487hnBee0sIJ6v2g==", + "dev": true + }, + "node_modules/neo-async": { + "version": "2.6.2", + "resolved": "https://registry.npmjs.org/neo-async/-/neo-async-2.6.2.tgz", + "integrity": "sha512-Yd3UES5mWCSqR+qNT93S3UoYUkqAZ9lLg8a7g9rimsWmYGK8cVToA4/sF3RrshdyV3sAGMXVUmpMYOw+dLpOuw==", + "dev": true, + "peer": true + }, + "node_modules/node-releases": { + "version": "2.0.14", + "resolved": "https://registry.npmjs.org/node-releases/-/node-releases-2.0.14.tgz", + "integrity": "sha512-y10wOWt8yZpqXmOgRo77WaHEmhYQYGNA6y421PKsKYWEK8aW+cqAphborZDhqfyKrbZEN92CN1X2KbafY2s7Yw==", + "dev": true + }, + "node_modules/normalize-package-data": { + "version": "3.0.3", + "resolved": "https://registry.npmjs.org/normalize-package-data/-/normalize-package-data-3.0.3.tgz", + "integrity": "sha512-p2W1sgqij3zMMyRC067Dg16bfzVH+w7hyegmpIvZ4JNjqtGOVAIvLmjBx3yP7YTe9vKJgkoNOPjwQGogDoMXFA==", + "dev": true, + "dependencies": { + "hosted-git-info": "^4.0.1", + "is-core-module": "^2.5.0", + "semver": "^7.3.4", + "validate-npm-package-license": "^3.0.1" + }, + "engines": { + "node": ">=10" + } + }, + "node_modules/normalize-package-data/node_modules/lru-cache": { + "version": "6.0.0", + "resolved": "https://registry.npmjs.org/lru-cache/-/lru-cache-6.0.0.tgz", + "integrity": "sha512-Jo6dJ04CmSjuznwJSS3pUeWmd/H0ffTlkXXgwZi+eq1UCmqQwCh+eLsYOYCwY991i2Fah4h1BEMCx4qThGbsiA==", + "dev": true, + "dependencies": { + "yallist": "^4.0.0" + }, + "engines": { + "node": ">=10" + } + }, + "node_modules/normalize-package-data/node_modules/semver": { + "version": "7.5.4", + "resolved": "https://registry.npmjs.org/semver/-/semver-7.5.4.tgz", + "integrity": "sha512-1bCSESV6Pv+i21Hvpxp3Dx+pSD8lIPt8uVjRrxAUt/nbswYc+tK6Y2btiULjd4+fnq15PX+nqQDC7Oft7WkwcA==", + "dev": true, + "dependencies": { + "lru-cache": "^6.0.0" + }, + "bin": { + "semver": "bin/semver.js" + }, + "engines": { + "node": ">=10" + } + }, + "node_modules/normalize-package-data/node_modules/yallist": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/yallist/-/yallist-4.0.0.tgz", + "integrity": "sha512-3wdGidZyq5PB084XLES5TpOSRA3wjXAlIWMhum2kRcv/41Sn2emQ0dycQW4uZXLejwKvg6EsvbdlVL+FYEct7A==", + "dev": true + }, + "node_modules/normalize-path": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/normalize-path/-/normalize-path-3.0.0.tgz", + "integrity": "sha512-6eZs5Ls3WtCisHWp9S2GUy8dqkpGi4BVSz3GaqiE6ezub0512ESztXUwUB6C6IKbQkY2Pnb/mD4WYojCRwcwLA==", + "dev": true, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/npm-run-path": { + "version": "4.0.1", + "resolved": "https://registry.npmjs.org/npm-run-path/-/npm-run-path-4.0.1.tgz", + "integrity": "sha512-S48WzZW777zhNIrn7gxOlISNAqi9ZC/uQFnRdbeIHhZhCA6UqpkOT8T1G7BvfdgP4Er8gF4sUbaS0i7QvIfCWw==", + "dev": true, + "dependencies": { + "path-key": "^3.0.0" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/nth-check": { + "version": "2.1.1", + "resolved": "https://registry.npmjs.org/nth-check/-/nth-check-2.1.1.tgz", + "integrity": "sha512-lqjrjmaOoAnWfMmBPL+XNnynZh2+swxiX3WUE0s4yEHI6m+AwrK2UZOimIRl3X/4QctVqS8AiZjFqyOGrMXb/w==", + "dev": true, + "dependencies": { + "boolbase": "^1.0.0" + }, + "funding": { + "url": "https://github.com/fb55/nth-check?sponsor=1" + } + }, + "node_modules/object-inspect": { + "version": "1.13.1", + "resolved": "https://registry.npmjs.org/object-inspect/-/object-inspect-1.13.1.tgz", + "integrity": "sha512-5qoj1RUiKOMsCCNLV1CBiPYE10sziTsnmNxkAI/rZhiD63CF7IqdFGC/XzjWjpSgLf0LxXX3bDFIh0E18f6UhQ==", + "dev": true, + "peer": true, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/object-keys": { + "version": "1.1.1", + "resolved": "https://registry.npmjs.org/object-keys/-/object-keys-1.1.1.tgz", + "integrity": "sha512-NuAESUOUMrlIXOfHKzD6bpPu3tYt3xvjNdRIQ+FeT0lNb4K8WR70CaDxhuNguS2XG+GjkyMwOzsN5ZktImfhLA==", + "dev": true, + "peer": true, + "engines": { + "node": ">= 0.4" + } + }, + "node_modules/object.assign": { + "version": "4.1.5", + "resolved": "https://registry.npmjs.org/object.assign/-/object.assign-4.1.5.tgz", + "integrity": "sha512-byy+U7gp+FVwmyzKPYhW2h5l3crpmGsxl7X2s8y43IgxvG4g3QZ6CffDtsNQy1WsmZpQbO+ybo0AlW7TY6DcBQ==", + "dev": true, + "peer": true, + "dependencies": { + "call-bind": "^1.0.5", + "define-properties": "^1.2.1", + "has-symbols": "^1.0.3", + "object-keys": "^1.1.1" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/object.fromentries": { + "version": "2.0.7", + "resolved": "https://registry.npmjs.org/object.fromentries/-/object.fromentries-2.0.7.tgz", + "integrity": "sha512-UPbPHML6sL8PI/mOqPwsH4G6iyXcCGzLin8KvEPenOZN5lpCNBZZQ+V62vdjB1mQHrmqGQt5/OJzemUA+KJmEA==", + "dev": true, + "peer": true, + "dependencies": { + "call-bind": "^1.0.2", + "define-properties": "^1.2.0", + "es-abstract": "^1.22.1" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/object.groupby": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/object.groupby/-/object.groupby-1.0.1.tgz", + "integrity": "sha512-HqaQtqLnp/8Bn4GL16cj+CUYbnpe1bh0TtEaWvybszDG4tgxCJuRpV8VGuvNaI1fAnI4lUJzDG55MXcOH4JZcQ==", + "dev": true, + "peer": true, + "dependencies": { + "call-bind": "^1.0.2", + "define-properties": "^1.2.0", + "es-abstract": "^1.22.1", + "get-intrinsic": "^1.2.1" + } + }, + "node_modules/object.values": { + "version": "1.1.7", + "resolved": "https://registry.npmjs.org/object.values/-/object.values-1.1.7.tgz", + "integrity": "sha512-aU6xnDFYT3x17e/f0IiiwlGPTy2jzMySGfUB4fq6z7CV8l85CWHDk5ErhyhpfDHhrOMwGFhSQkhMGHaIotA6Ng==", + "dev": true, + "peer": true, + "dependencies": { + "call-bind": "^1.0.2", + "define-properties": "^1.2.0", + "es-abstract": "^1.22.1" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/once": { + "version": "1.4.0", + "resolved": "https://registry.npmjs.org/once/-/once-1.4.0.tgz", + "integrity": "sha512-lNaJgI+2Q5URQBkccEKHTQOPaXdUxnZZElQTZY0MFUAuaEqe1E+Nyvgdz/aIyNi6Z9MzO5dv1H8n58/GELp3+w==", + "dev": true, + "dependencies": { + "wrappy": "1" + } + }, + "node_modules/optionator": { + "version": "0.9.3", + "resolved": "https://registry.npmjs.org/optionator/-/optionator-0.9.3.tgz", + "integrity": "sha512-JjCoypp+jKn1ttEFExxhetCKeJt9zhAgAve5FXHixTvFDW/5aEktX9bufBKLRRMdU7bNtpLfcGu94B3cdEJgjg==", + "dev": true, + "dependencies": { + "@aashutoshrathi/word-wrap": "^1.2.3", + "deep-is": "^0.1.3", + "fast-levenshtein": "^2.0.6", + "levn": "^0.4.1", + "prelude-ls": "^1.2.1", + "type-check": "^0.4.0" + }, + "engines": { + "node": ">= 0.8.0" + } + }, + "node_modules/p-limit": { + "version": "3.1.0", + "resolved": "https://registry.npmjs.org/p-limit/-/p-limit-3.1.0.tgz", + "integrity": "sha512-TYOanM3wGwNGsZN2cVTYPArw454xnXj5qmWF1bEoAc4+cU/ol7GVh7odevjp1FNHduHc3KZMcFduxU5Xc6uJRQ==", + "dev": true, + "dependencies": { + "yocto-queue": "^0.1.0" + }, + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/p-locate": { + "version": "5.0.0", + "resolved": "https://registry.npmjs.org/p-locate/-/p-locate-5.0.0.tgz", + "integrity": "sha512-LaNjtRWUBY++zB5nE/NwcaoMylSPk+S+ZHNB1TzdbMJMny6dynpAGt7X/tl/QYq3TIeE6nxHppbo2LGymrG5Pw==", + "dev": true, + "dependencies": { + "p-limit": "^3.0.2" + }, + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/p-try": { + "version": "2.2.0", + "resolved": "https://registry.npmjs.org/p-try/-/p-try-2.2.0.tgz", + "integrity": "sha512-R4nPAVTAU0B9D35/Gk3uJf/7XYbQcyohSKdvAxIRSNghFl4e71hVoGnBNQz9cWaXxO2I10KTC+3jMdvvoKw6dQ==", + "dev": true, + "optional": true, + "peer": true, + "engines": { + "node": ">=6" + } + }, + "node_modules/parent-module": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/parent-module/-/parent-module-1.0.1.tgz", + "integrity": "sha512-GQ2EWRpQV8/o+Aw8YqtfZZPfNRWZYkbidE9k5rpl/hC3vtHHBfGm2Ifi6qWV+coDGkrUKZAxE3Lot5kcsRlh+g==", + "dev": true, + "dependencies": { + "callsites": "^3.0.0" + }, + "engines": { + "node": ">=6" + } + }, + "node_modules/parse-json": { + "version": "5.2.0", + "resolved": "https://registry.npmjs.org/parse-json/-/parse-json-5.2.0.tgz", + "integrity": "sha512-ayCKvm/phCGxOkYRSCM82iDwct8/EonSEgCSxWxD7ve6jHggsFl4fZVQBPRNgQoKiuV/odhFrGzQXZwbifC8Rg==", + "dev": true, + "dependencies": { + "@babel/code-frame": "^7.0.0", + "error-ex": "^1.3.1", + "json-parse-even-better-errors": "^2.3.0", + "lines-and-columns": "^1.1.6" + }, + "engines": { + "node": ">=8" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/path-browserify": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/path-browserify/-/path-browserify-1.0.1.tgz", + "integrity": "sha512-b7uo2UCUOYZcnF/3ID0lulOJi/bafxa1xPe7ZPsammBSpjSWQkjNxlt635YGS2MiR9GjvuXCtz2emr3jbsz98g==", + "dev": true + }, + "node_modules/path-exists": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/path-exists/-/path-exists-4.0.0.tgz", + "integrity": "sha512-ak9Qy5Q7jYb2Wwcey5Fpvg2KoAc/ZIhLSLOSBmRmygPsGwkVVt0fZa0qrtMz+m6tJTAHfZQ8FnmB4MG4LWy7/w==", + "dev": true, + "engines": { + "node": ">=8" + } + }, + "node_modules/path-is-absolute": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/path-is-absolute/-/path-is-absolute-1.0.1.tgz", + "integrity": "sha512-AVbw3UJ2e9bq64vSaS9Am0fje1Pa8pbGqTTsmXfaIiMpnr5DlDhfJOuLj9Sf95ZPVDAUerDfEk88MPmPe7UCQg==", + "dev": true, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/path-key": { + "version": "3.1.1", + "resolved": "https://registry.npmjs.org/path-key/-/path-key-3.1.1.tgz", + "integrity": "sha512-ojmeN0qd+y0jszEtoY48r0Peq5dwMEkIlCOu6Q5f41lfkswXuKtYrhgoTpLnyIcHm24Uhqx+5Tqm2InSwLhE6Q==", + "dev": true, + "engines": { + "node": ">=8" + } + }, + "node_modules/path-parse": { + "version": "1.0.7", + "resolved": "https://registry.npmjs.org/path-parse/-/path-parse-1.0.7.tgz", + "integrity": "sha512-LDJzPVEEEPR+y48z93A0Ed0yXb8pAByGWo/k5YYdYgpY2/2EsOsksJrq7lOHxryrVOn1ejG6oAp8ahvOIQD8sw==", + "dev": true, + "peer": true + }, + "node_modules/path-type": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/path-type/-/path-type-4.0.0.tgz", + "integrity": "sha512-gDKb8aZMDeD/tZWs9P6+q0J9Mwkdl6xMV8TjnGP3qJVJ06bdMgkbBlLU8IdfOsIsFz2BW1rNVT3XuNEl8zPAvw==", + "dev": true, + "engines": { + "node": ">=8" + } + }, + "node_modules/picocolors": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/picocolors/-/picocolors-1.0.0.tgz", + "integrity": "sha512-1fygroTLlHu66zi26VoTDv8yRgm0Fccecssto+MhsZ0D/DGW2sm8E8AjW7NU5VVTRt5GxbeZ5qBuJr+HyLYkjQ==", + "dev": true + }, + "node_modules/picomatch": { + "version": "2.3.1", + "resolved": "https://registry.npmjs.org/picomatch/-/picomatch-2.3.1.tgz", + "integrity": "sha512-JU3teHTNjmE2VCGFzuY8EXzCDVwEqB2a8fsIvwaStHhAWJEeVd1o1QD80CU6+ZdEXXSLbSsuLwJjkCBWqRQUVA==", + "dev": true, + "engines": { + "node": ">=8.6" + }, + "funding": { + "url": "https://github.com/sponsors/jonschlinkert" + } + }, + "node_modules/postcss": { + "version": "8.4.32", + "resolved": "https://registry.npmjs.org/postcss/-/postcss-8.4.32.tgz", + "integrity": "sha512-D/kj5JNu6oo2EIy+XL/26JEDTlIbB8hw85G8StOE6L74RQAVVP5rej6wxCNqyMbR4RkPfqvezVbPw81Ngd6Kcw==", + "dev": true, + "funding": [ + { + "type": "opencollective", + "url": "https://opencollective.com/postcss/" + }, + { + "type": "tidelift", + "url": "https://tidelift.com/funding/github/npm/postcss" + }, + { + "type": "github", + "url": "https://github.com/sponsors/ai" + } + ], + "dependencies": { + "nanoid": "^3.3.7", + "picocolors": "^1.0.0", + "source-map-js": "^1.0.2" + }, + "engines": { + "node": "^10 || ^12 || >=14" + } + }, + "node_modules/postcss-discard-comments": { + "version": "6.0.1", + "resolved": "https://registry.npmjs.org/postcss-discard-comments/-/postcss-discard-comments-6.0.1.tgz", + "integrity": "sha512-f1KYNPtqYLUeZGCHQPKzzFtsHaRuECe6jLakf/RjSRqvF5XHLZnM2+fXLhb8Qh/HBFHs3M4cSLb1k3B899RYIg==", + "dev": true, + "engines": { + "node": "^14 || ^16 || >=18.0" + }, + "peerDependencies": { + "postcss": "^8.4.31" + } + }, + "node_modules/postcss-media-query-parser": { + "version": "0.2.3", + "resolved": "https://registry.npmjs.org/postcss-media-query-parser/-/postcss-media-query-parser-0.2.3.tgz", + "integrity": "sha512-3sOlxmbKcSHMjlUXQZKQ06jOswE7oVkXPxmZdoB1r5l0q6gTFTQSHxNxOrCccElbW7dxNytifNEo8qidX2Vsig==", + "dev": true + }, + "node_modules/postcss-resolve-nested-selector": { + "version": "0.1.1", + "resolved": "https://registry.npmjs.org/postcss-resolve-nested-selector/-/postcss-resolve-nested-selector-0.1.1.tgz", + "integrity": "sha512-HvExULSwLqHLgUy1rl3ANIqCsvMS0WHss2UOsXhXnQaZ9VCc2oBvIpXrl00IUFT5ZDITME0o6oiXeiHr2SAIfw==", + "dev": true + }, + "node_modules/postcss-safe-parser": { + "version": "6.0.0", + "resolved": "https://registry.npmjs.org/postcss-safe-parser/-/postcss-safe-parser-6.0.0.tgz", + "integrity": "sha512-FARHN8pwH+WiS2OPCxJI8FuRJpTVnn6ZNFiqAM2aeW2LwTHWWmWgIyKC6cUo0L8aeKiF/14MNvnpls6R2PBeMQ==", + "dev": true, + "engines": { + "node": ">=12.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/postcss/" + }, + "peerDependencies": { + "postcss": "^8.3.3" + } + }, + "node_modules/postcss-scss": { + "version": "4.0.9", + "resolved": "https://registry.npmjs.org/postcss-scss/-/postcss-scss-4.0.9.tgz", + "integrity": "sha512-AjKOeiwAitL/MXxQW2DliT28EKukvvbEWx3LBmJIRN8KfBGZbRTxNYW0kSqi1COiTZ57nZ9NW06S6ux//N1c9A==", + "dev": true, + "funding": [ + { + "type": "opencollective", + "url": "https://opencollective.com/postcss/" + }, + { + "type": "tidelift", + "url": "https://tidelift.com/funding/github/npm/postcss-scss" + }, + { + "type": "github", + "url": "https://github.com/sponsors/ai" + } + ], + "engines": { + "node": ">=12.0" + }, + "peerDependencies": { + "postcss": "^8.4.29" + } + }, + "node_modules/postcss-selector-parser": { + "version": "6.0.13", + "resolved": "https://registry.npmjs.org/postcss-selector-parser/-/postcss-selector-parser-6.0.13.tgz", + "integrity": "sha512-EaV1Gl4mUEV4ddhDnv/xtj7sxwrwxdetHdWUGnT4VJQf+4d05v6lHYZr8N573k5Z0BViss7BDhfWtKS3+sfAqQ==", + "dev": true, + "dependencies": { + "cssesc": "^3.0.0", + "util-deprecate": "^1.0.2" + }, + "engines": { + "node": ">=4" + } + }, + "node_modules/postcss-sorting": { + "version": "8.0.2", + "resolved": "https://registry.npmjs.org/postcss-sorting/-/postcss-sorting-8.0.2.tgz", + "integrity": "sha512-M9dkSrmU00t/jK7rF6BZSZauA5MAaBW4i5EnJXspMwt4iqTh/L9j6fgMnbElEOfyRyfLfVbIHj/R52zHzAPe1Q==", + "dev": true, + "peerDependencies": { + "postcss": "^8.4.20" + } + }, + "node_modules/postcss-value-parser": { + "version": "4.2.0", + "resolved": "https://registry.npmjs.org/postcss-value-parser/-/postcss-value-parser-4.2.0.tgz", + "integrity": "sha512-1NNCs6uurfkVbeXG4S8JFT9t19m45ICnif8zWLd5oPSZ50QnwMfK+H3jv408d4jw/7Bttv5axS5IiHoLaVNHeQ==", + "dev": true + }, + "node_modules/prelude-ls": { + "version": "1.2.1", + "resolved": "https://registry.npmjs.org/prelude-ls/-/prelude-ls-1.2.1.tgz", + "integrity": "sha512-vkcDPrRZo1QZLbn5RLGPpg/WmIQ65qoWWhcGKf/b5eplkkarX0m9z8ppCat4mlOqUsWpyNuYgO3VRyrYHSzX5g==", + "dev": true, + "engines": { + "node": ">= 0.8.0" + } + }, + "node_modules/prettier": { + "version": "3.1.1", + "resolved": "https://registry.npmjs.org/prettier/-/prettier-3.1.1.tgz", + "integrity": "sha512-22UbSzg8luF4UuZtzgiUOfcGM8s4tjBv6dJRT7j275NXsy2jb4aJa4NNveul5x4eqlF1wuhuR2RElK71RvmVaw==", + "dev": true, + "bin": { + "prettier": "bin/prettier.cjs" + }, + "engines": { + "node": ">=14" + }, + "funding": { + "url": "https://github.com/prettier/prettier?sponsor=1" + } + }, + "node_modules/print-js": { + "version": "1.6.0", + "resolved": "https://registry.npmjs.org/print-js/-/print-js-1.6.0.tgz", + "integrity": "sha512-BfnOIzSKbqGRtO4o0rnj/K3681BSd2QUrsIZy/+WdCIugjIswjmx3lDEZpXB2ruGf9d4b3YNINri81+J0FsBWg==", + "dev": true + }, + "node_modules/proxy-from-env": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/proxy-from-env/-/proxy-from-env-1.1.0.tgz", + "integrity": "sha512-D+zkORCbA9f1tdWRK0RaCR3GPv50cMxcrz4X8k5LTSUD1Dkw47mKJEZQNunItRTkWwgtaUSo1RVFRIG9ZXiFYg==", + "dev": true + }, + "node_modules/punycode": { + "version": "2.3.1", + "resolved": "https://registry.npmjs.org/punycode/-/punycode-2.3.1.tgz", + "integrity": "sha512-vYt7UD1U9Wg6138shLtLOvdAu+8DsC/ilFtEVHcH+wydcSpNE20AfSOduf6MkRFahL5FY7X1oU7nKVZFtfq8Fg==", + "dev": true, + "engines": { + "node": ">=6" + } + }, + "node_modules/queue-microtask": { + "version": "1.2.3", + "resolved": "https://registry.npmjs.org/queue-microtask/-/queue-microtask-1.2.3.tgz", + "integrity": "sha512-NuaNSa6flKT5JaSYQzJok04JzTL1CA6aGhv5rfLW3PgqA+M2ChpZQnAC8h8i4ZFkBS8X5RqkDBHA7r4hej3K9A==", + "dev": true, + "funding": [ + { + "type": "github", + "url": "https://github.com/sponsors/feross" + }, + { + "type": "patreon", + "url": "https://www.patreon.com/feross" + }, + { + "type": "consulting", + "url": "https://feross.org/support" + } + ] + }, + "node_modules/quick-lru": { + "version": "4.0.1", + "resolved": "https://registry.npmjs.org/quick-lru/-/quick-lru-4.0.1.tgz", + "integrity": "sha512-ARhCpm70fzdcvNQfPoy49IaanKkTlRWF2JMzqhcJbhSFRZv7nPTvZJdcY7301IPmvW+/p0RgIWnQDLJxifsQ7g==", + "dev": true, + "optional": true, + "peer": true, + "engines": { + "node": ">=8" + } + }, + "node_modules/randombytes": { + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/randombytes/-/randombytes-2.1.0.tgz", + "integrity": "sha512-vYl3iOX+4CKUWuxGi9Ukhie6fsqXqS9FE2Zaic4tNFD2N2QQaXOMFbuKK4QmDHC0JO6B1Zp41J0LpT0oR68amQ==", + "dev": true, + "peer": true, + "dependencies": { + "safe-buffer": "^5.1.0" + } + }, + "node_modules/read-pkg": { + "version": "5.2.0", + "resolved": "https://registry.npmjs.org/read-pkg/-/read-pkg-5.2.0.tgz", + "integrity": "sha512-Ug69mNOpfvKDAc2Q8DRpMjjzdtrnv9HcSMX+4VsZxD1aZ6ZzrIE7rlzXBtWTyhULSMKg076AW6WR5iZpD0JiOg==", + "dev": true, + "optional": true, + "peer": true, + "dependencies": { + "@types/normalize-package-data": "^2.4.0", + "normalize-package-data": "^2.5.0", + "parse-json": "^5.0.0", + "type-fest": "^0.6.0" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/read-pkg-up": { + "version": "7.0.1", + "resolved": "https://registry.npmjs.org/read-pkg-up/-/read-pkg-up-7.0.1.tgz", + "integrity": "sha512-zK0TB7Xd6JpCLmlLmufqykGE+/TlOePD6qKClNW7hHDKFh/J7/7gCWGR7joEQEW1bKq3a3yUZSObOoWLFQ4ohg==", + "dev": true, + "optional": true, + "peer": true, + "dependencies": { + "find-up": "^4.1.0", + "read-pkg": "^5.2.0", + "type-fest": "^0.8.1" + }, + "engines": { + "node": ">=8" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/read-pkg-up/node_modules/find-up": { + "version": "4.1.0", + "resolved": "https://registry.npmjs.org/find-up/-/find-up-4.1.0.tgz", + "integrity": "sha512-PpOwAdQ/YlXQ2vj8a3h8IipDuYRi3wceVQQGYWxNINccq40Anw7BlsEXCMbt1Zt+OLA6Fq9suIpIWD0OsnISlw==", + "dev": true, + "optional": true, + "peer": true, + "dependencies": { + "locate-path": "^5.0.0", + "path-exists": "^4.0.0" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/read-pkg-up/node_modules/locate-path": { + "version": "5.0.0", + "resolved": "https://registry.npmjs.org/locate-path/-/locate-path-5.0.0.tgz", + "integrity": "sha512-t7hw9pI+WvuwNJXwk5zVHpyhIqzg2qTlklJOf0mVxGSbe3Fp2VieZcduNYjaLDoy6p9uGpQEGWG87WpMKlNq8g==", + "dev": true, + "optional": true, + "peer": true, + "dependencies": { + "p-locate": "^4.1.0" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/read-pkg-up/node_modules/p-limit": { + "version": "2.3.0", + "resolved": "https://registry.npmjs.org/p-limit/-/p-limit-2.3.0.tgz", + "integrity": "sha512-//88mFWSJx8lxCzwdAABTJL2MyWB12+eIY7MDL2SqLmAkeKU9qxRvWuSyTjm3FUmpBEMuFfckAIqEaVGUDxb6w==", + "dev": true, + "optional": true, + "peer": true, + "dependencies": { + "p-try": "^2.0.0" + }, + "engines": { + "node": ">=6" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/read-pkg-up/node_modules/p-locate": { + "version": "4.1.0", + "resolved": "https://registry.npmjs.org/p-locate/-/p-locate-4.1.0.tgz", + "integrity": "sha512-R79ZZ/0wAxKGu3oYMlz8jy/kbhsNrS7SKZ7PxEHBgJ5+F2mtFW2fK2cOtBh1cHYkQsbzFV7I+EoRKe6Yt0oK7A==", + "dev": true, + "optional": true, + "peer": true, + "dependencies": { + "p-limit": "^2.2.0" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/read-pkg-up/node_modules/type-fest": { + "version": "0.8.1", + "resolved": "https://registry.npmjs.org/type-fest/-/type-fest-0.8.1.tgz", + "integrity": "sha512-4dbzIzqvjtgiM5rw1k5rEHtBANKmdudhGyBEajN01fEyhaAIhsoKNy6y7+IN93IfpFtwY9iqi7kD+xwKhQsNJA==", + "dev": true, + "optional": true, + "peer": true, + "engines": { + "node": ">=8" + } + }, + "node_modules/read-pkg/node_modules/hosted-git-info": { + "version": "2.8.9", + "resolved": "https://registry.npmjs.org/hosted-git-info/-/hosted-git-info-2.8.9.tgz", + "integrity": "sha512-mxIDAb9Lsm6DoOJ7xH+5+X4y1LU/4Hi50L9C5sIswK3JzULS4bwk1FvjdBgvYR4bzT4tuUQiC15FE2f5HbLvYw==", + "dev": true, + "optional": true, + "peer": true + }, + "node_modules/read-pkg/node_modules/normalize-package-data": { + "version": "2.5.0", + "resolved": "https://registry.npmjs.org/normalize-package-data/-/normalize-package-data-2.5.0.tgz", + "integrity": "sha512-/5CMN3T0R4XTj4DcGaexo+roZSdSFW/0AOOTROrjxzCG1wrWXEsGbRKevjlIL+ZDE4sZlJr5ED4YW0yqmkK+eA==", + "dev": true, + "optional": true, + "peer": true, + "dependencies": { + "hosted-git-info": "^2.1.4", + "resolve": "^1.10.0", + "semver": "2 || 3 || 4 || 5", + "validate-npm-package-license": "^3.0.1" + } + }, + "node_modules/read-pkg/node_modules/semver": { + "version": "5.7.2", + "resolved": "https://registry.npmjs.org/semver/-/semver-5.7.2.tgz", + "integrity": "sha512-cBznnQ9KjJqU67B52RMC65CMarK2600WFnbkcaiwWq3xy/5haFJlshgnpjovMVJ+Hff49d8GEn0b87C5pDQ10g==", + "dev": true, + "optional": true, + "peer": true, + "bin": { + "semver": "bin/semver" + } + }, + "node_modules/read-pkg/node_modules/type-fest": { + "version": "0.6.0", + "resolved": "https://registry.npmjs.org/type-fest/-/type-fest-0.6.0.tgz", + "integrity": "sha512-q+MB8nYR1KDLrgr4G5yemftpMC7/QLqVndBmEEdqzmNj5dcFOO4Oo8qlwZE3ULT3+Zim1F8Kq4cBnikNhlCMlg==", + "dev": true, + "optional": true, + "peer": true, + "engines": { + "node": ">=8" + } + }, + "node_modules/readdirp": { + "version": "3.6.0", + "resolved": "https://registry.npmjs.org/readdirp/-/readdirp-3.6.0.tgz", + "integrity": "sha512-hOS089on8RduqdbhvQ5Z37A0ESjsqz6qnRcffsMU3495FuTdqSm+7bhJ29JvIOsBDEEnan5DPu9t3To9VRlMzA==", + "dev": true, + "dependencies": { + "picomatch": "^2.2.1" + }, + "engines": { + "node": ">=8.10.0" + } + }, + "node_modules/redent": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/redent/-/redent-3.0.0.tgz", + "integrity": "sha512-6tDA8g98We0zd0GvVeMT9arEOnTw9qM03L9cJXaCjrip1OO764RDBLBfrB4cwzNGDj5OA5ioymC9GkizgWJDUg==", + "dev": true, + "optional": true, + "peer": true, + "dependencies": { + "indent-string": "^4.0.0", + "strip-indent": "^3.0.0" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/regenerator-runtime": { + "version": "0.13.11", + "resolved": "https://registry.npmjs.org/regenerator-runtime/-/regenerator-runtime-0.13.11.tgz", + "integrity": "sha512-kY1AZVr2Ra+t+piVaJ4gxaFaReZVH40AKNo7UCX6W+dEwBo/2oZJzqfuN1qLq1oL45o56cPaTXELwrTh8Fpggg==", + "dev": true + }, + "node_modules/regex-parser": { + "version": "2.2.11", + "resolved": "https://registry.npmjs.org/regex-parser/-/regex-parser-2.2.11.tgz", + "integrity": "sha512-jbD/FT0+9MBU2XAZluI7w2OBs1RBi6p9M83nkoZayQXXU9e8Robt69FcZc7wU4eJD/YFTjn1JdCk3rbMJajz8Q==", + "dev": true + }, + "node_modules/regexp.prototype.flags": { + "version": "1.5.1", + "resolved": "https://registry.npmjs.org/regexp.prototype.flags/-/regexp.prototype.flags-1.5.1.tgz", + "integrity": "sha512-sy6TXMN+hnP/wMy+ISxg3krXx7BAtWVO4UouuCN/ziM9UEne0euamVNafDfvC83bRNr95y0V5iijeDQFUNpvrg==", + "dev": true, + "peer": true, + "dependencies": { + "call-bind": "^1.0.2", + "define-properties": "^1.2.0", + "set-function-name": "^2.0.0" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/require-from-string": { + "version": "2.0.2", + "resolved": "https://registry.npmjs.org/require-from-string/-/require-from-string-2.0.2.tgz", + "integrity": "sha512-Xf0nWe6RseziFMu+Ap9biiUbmplq6S9/p+7w7YXP/JBHhrUDDUhwa+vANyubuqfZWTveU//DYVGsDG7RKL/vEw==", + "dev": true, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/resolve": { + "version": "1.22.8", + "resolved": "https://registry.npmjs.org/resolve/-/resolve-1.22.8.tgz", + "integrity": "sha512-oKWePCxqpd6FlLvGV1VU0x7bkPmmCNolxzjMf4NczoDnQcIWrAF+cPtZn5i6n+RfD2d9i0tzpKnG6Yk168yIyw==", + "dev": true, + "peer": true, + "dependencies": { + "is-core-module": "^2.13.0", + "path-parse": "^1.0.7", + "supports-preserve-symlinks-flag": "^1.0.0" + }, + "bin": { + "resolve": "bin/resolve" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/resolve-from": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/resolve-from/-/resolve-from-4.0.0.tgz", + "integrity": "sha512-pb/MYmXstAkysRFx8piNI1tGFNQIFA3vkE3Gq4EuA1dF6gHp/+vgZqsCGJapvy8N3Q+4o7FwvquPJcnZ7RYy4g==", + "dev": true, + "engines": { + "node": ">=4" + } + }, + "node_modules/resolve-url-loader": { + "version": "5.0.0", + "resolved": "https://registry.npmjs.org/resolve-url-loader/-/resolve-url-loader-5.0.0.tgz", + "integrity": "sha512-uZtduh8/8srhBoMx//5bwqjQ+rfYOUq8zC9NrMUGtjBiGTtFJM42s58/36+hTqeqINcnYe08Nj3LkK9lW4N8Xg==", + "dev": true, + "dependencies": { + "adjust-sourcemap-loader": "^4.0.0", + "convert-source-map": "^1.7.0", + "loader-utils": "^2.0.0", + "postcss": "^8.2.14", + "source-map": "0.6.1" + }, + "engines": { + "node": ">=12" + } + }, + "node_modules/resolve-url-loader/node_modules/convert-source-map": { + "version": "1.9.0", + "resolved": "https://registry.npmjs.org/convert-source-map/-/convert-source-map-1.9.0.tgz", + "integrity": "sha512-ASFBup0Mz1uyiIjANan1jzLQami9z1PoYSZCiiYW2FczPbenXc45FZdBZLzOT+r6+iciuEModtmCti+hjaAk0A==", + "dev": true + }, + "node_modules/reusify": { + "version": "1.0.4", + "resolved": "https://registry.npmjs.org/reusify/-/reusify-1.0.4.tgz", + "integrity": "sha512-U9nH88a3fc/ekCF1l0/UP1IosiuIjyTh7hBvXVMHYgVcfGvt897Xguj2UOLDeI5BG2m7/uwyaLVT6fbtCwTyzw==", + "dev": true, + "engines": { + "iojs": ">=1.0.0", + "node": ">=0.10.0" + } + }, + "node_modules/rimraf": { + "version": "3.0.2", + "resolved": "https://registry.npmjs.org/rimraf/-/rimraf-3.0.2.tgz", + "integrity": "sha512-JZkJMZkAGFFPP2YqXZXPbMlMBgsxzE8ILs4lMIX/2o0L9UBw9O/Y3o6wFw/i9YLapcUJWwqbi3kdxIPdC62TIA==", + "dev": true, + "dependencies": { + "glob": "^7.1.3" + }, + "bin": { + "rimraf": "bin.js" + }, + "funding": { + "url": "https://github.com/sponsors/isaacs" + } + }, + "node_modules/rollup": { + "version": "3.29.4", + "resolved": "https://registry.npmjs.org/rollup/-/rollup-3.29.4.tgz", + "integrity": "sha512-oWzmBZwvYrU0iJHtDmhsm662rC15FRXmcjCk1xD771dFDx5jJ02ufAQQTn0etB2emNk4J9EZg/yWKpsn9BWGRw==", + "dev": true, + "bin": { + "rollup": "dist/bin/rollup" + }, + "engines": { + "node": ">=14.18.0", + "npm": ">=8.0.0" + }, + "optionalDependencies": { + "fsevents": "~2.3.2" + } + }, + "node_modules/rollup-plugin-copy": { + "version": "3.5.0", + "resolved": "https://registry.npmjs.org/rollup-plugin-copy/-/rollup-plugin-copy-3.5.0.tgz", + "integrity": "sha512-wI8D5dvYovRMx/YYKtUNt3Yxaw4ORC9xo6Gt9t22kveWz1enG9QrhVlagzwrxSC455xD1dHMKhIJkbsQ7d48BA==", + "dev": true, + "dependencies": { + "@types/fs-extra": "^8.0.1", + "colorette": "^1.1.0", + "fs-extra": "^8.1.0", + "globby": "10.0.1", + "is-plain-object": "^3.0.0" + }, + "engines": { + "node": ">=8.3" + } + }, + "node_modules/rollup-plugin-copy/node_modules/globby": { + "version": "10.0.1", + "resolved": "https://registry.npmjs.org/globby/-/globby-10.0.1.tgz", + "integrity": "sha512-sSs4inE1FB2YQiymcmTv6NWENryABjUNPeWhOvmn4SjtKybglsyPZxFB3U1/+L1bYi0rNZDqCLlHyLYDl1Pq5A==", + "dev": true, + "dependencies": { + "@types/glob": "^7.1.1", + "array-union": "^2.1.0", + "dir-glob": "^3.0.1", + "fast-glob": "^3.0.3", + "glob": "^7.1.3", + "ignore": "^5.1.1", + "merge2": "^1.2.3", + "slash": "^3.0.0" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/run-parallel": { + "version": "1.2.0", + "resolved": "https://registry.npmjs.org/run-parallel/-/run-parallel-1.2.0.tgz", + "integrity": "sha512-5l4VyZR86LZ/lDxZTR6jqL8AFE2S0IFLMP26AbjsLVADxHdhB/c0GUsH+y39UfCi3dzz8OlQuPmnaJOMoDHQBA==", + "dev": true, + "funding": [ + { + "type": "github", + "url": "https://github.com/sponsors/feross" + }, + { + "type": "patreon", + "url": "https://www.patreon.com/feross" + }, + { + "type": "consulting", + "url": "https://feross.org/support" + } + ], + "dependencies": { + "queue-microtask": "^1.2.2" + } + }, + "node_modules/safe-array-concat": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/safe-array-concat/-/safe-array-concat-1.0.1.tgz", + "integrity": "sha512-6XbUAseYE2KtOuGueyeobCySj9L4+66Tn6KQMOPQJrAJEowYKW/YR/MGJZl7FdydUdaFu4LYyDZjxf4/Nmo23Q==", + "dev": true, + "peer": true, + "dependencies": { + "call-bind": "^1.0.2", + "get-intrinsic": "^1.2.1", + "has-symbols": "^1.0.3", + "isarray": "^2.0.5" + }, + "engines": { + "node": ">=0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/safe-buffer": { + "version": "5.2.1", + "resolved": "https://registry.npmjs.org/safe-buffer/-/safe-buffer-5.2.1.tgz", + "integrity": "sha512-rp3So07KcdmmKbGvgaNxQSJr7bGVSVk5S9Eq1F+ppbRo70+YeaDxkw5Dd8NPN+GD6bjnYm2VuPuCXmpuYvmCXQ==", + "dev": true, + "funding": [ + { + "type": "github", + "url": "https://github.com/sponsors/feross" + }, + { + "type": "patreon", + "url": "https://www.patreon.com/feross" + }, + { + "type": "consulting", + "url": "https://feross.org/support" + } + ], + "peer": true + }, + "node_modules/safe-regex-test": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/safe-regex-test/-/safe-regex-test-1.0.0.tgz", + "integrity": "sha512-JBUUzyOgEwXQY1NuPtvcj/qcBDbDmEvWufhlnXZIm75DEHp+afM1r1ujJpJsV/gSM4t59tpDyPi1sd6ZaPFfsA==", + "dev": true, + "peer": true, + "dependencies": { + "call-bind": "^1.0.2", + "get-intrinsic": "^1.1.3", + "is-regex": "^1.1.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/sass": { + "version": "1.69.5", + "resolved": "https://registry.npmjs.org/sass/-/sass-1.69.5.tgz", + "integrity": "sha512-qg2+UCJibLr2LCVOt3OlPhr/dqVHWOa9XtZf2OjbLs/T4VPSJ00udtgJxH3neXZm+QqX8B+3cU7RaLqp1iVfcQ==", + "dev": true, + "dependencies": { + "chokidar": ">=3.0.0 <4.0.0", + "immutable": "^4.0.0", + "source-map-js": ">=0.6.2 <2.0.0" + }, + "bin": { + "sass": "sass.js" + }, + "engines": { + "node": ">=14.0.0" + } + }, + "node_modules/schema-utils": { + "version": "3.3.0", + "resolved": "https://registry.npmjs.org/schema-utils/-/schema-utils-3.3.0.tgz", + "integrity": "sha512-pN/yOAvcC+5rQ5nERGuwrjLlYvLTbCibnZ1I7B1LaiAz9BRBlE9GMgE/eqV30P7aJQUf7Ddimy/RsbYO/GrVGg==", + "dev": true, + "peer": true, + "dependencies": { + "@types/json-schema": "^7.0.8", + "ajv": "^6.12.5", + "ajv-keywords": "^3.5.2" + }, + "engines": { + "node": ">= 10.13.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/webpack" + } + }, + "node_modules/scratchcard-js": { + "version": "1.5.5", + "resolved": "https://registry.npmjs.org/scratchcard-js/-/scratchcard-js-1.5.5.tgz", + "integrity": "sha512-i46O+DmlPr4AwAAXaYn1zuC/F8SyJf+fY9wPbFi2i0KN2gCuJ83Tdn0KLoD86/rZ2RIEhp+rhZmoHEwwGwMjwA==", + "dev": true, + "dependencies": { + "@babel/polyfill": "^7.0.0", + "@babel/runtime": "^7.1.2" + } + }, + "node_modules/semver": { + "version": "6.3.1", + "resolved": "https://registry.npmjs.org/semver/-/semver-6.3.1.tgz", + "integrity": "sha512-BR7VvDCVHO+q2xBEWskxS6DJE1qRnb7DxzUrogb71CWoSficBxYsiAGd+Kl0mmq/MprG9yArRkyrQxTO6XjMzA==", + "dev": true, + "bin": { + "semver": "bin/semver.js" + } + }, + "node_modules/serialize-javascript": { + "version": "6.0.1", + "resolved": "https://registry.npmjs.org/serialize-javascript/-/serialize-javascript-6.0.1.tgz", + "integrity": "sha512-owoXEFjWRllis8/M1Q+Cw5k8ZH40e3zhp/ovX+Xr/vi1qj6QesbyXXViFbpNvWvPNAD62SutwEXavefrLJWj7w==", + "dev": true, + "peer": true, + "dependencies": { + "randombytes": "^2.1.0" + } + }, + "node_modules/set-function-length": { + "version": "1.1.1", + "resolved": "https://registry.npmjs.org/set-function-length/-/set-function-length-1.1.1.tgz", + "integrity": "sha512-VoaqjbBJKiWtg4yRcKBQ7g7wnGnLV3M8oLvVWwOk2PdYY6PEFegR1vezXR0tw6fZGF9csVakIRjrJiy2veSBFQ==", + "dev": true, + "peer": true, + "dependencies": { + "define-data-property": "^1.1.1", + "get-intrinsic": "^1.2.1", + "gopd": "^1.0.1", + "has-property-descriptors": "^1.0.0" + }, + "engines": { + "node": ">= 0.4" + } + }, + "node_modules/set-function-name": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/set-function-name/-/set-function-name-2.0.1.tgz", + "integrity": "sha512-tMNCiqYVkXIZgc2Hnoy2IvC/f8ezc5koaRFkCjrpWzGpCd3qbZXPzVy9MAZzK1ch/X0jvSkojys3oqJN0qCmdA==", + "dev": true, + "peer": true, + "dependencies": { + "define-data-property": "^1.0.1", + "functions-have-names": "^1.2.3", + "has-property-descriptors": "^1.0.0" + }, + "engines": { + "node": ">= 0.4" + } + }, + "node_modules/shebang-command": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/shebang-command/-/shebang-command-2.0.0.tgz", + "integrity": "sha512-kHxr2zZpYtdmrN1qDjrrX/Z1rR1kG8Dx+gkpK1G4eXmvXswmcE1hTWBWYUzlraYw1/yZp6YuDY77YtvbN0dmDA==", + "dev": true, + "dependencies": { + "shebang-regex": "^3.0.0" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/shebang-regex": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/shebang-regex/-/shebang-regex-3.0.0.tgz", + "integrity": "sha512-7++dFhtcx3353uBaq8DDR4NuxBetBzC7ZQOhmTQInHEd6bSrXdiEyzCvG07Z44UYdLShWUyXt5M/yhz8ekcb1A==", + "dev": true, + "engines": { + "node": ">=8" + } + }, + "node_modules/side-channel": { + "version": "1.0.4", + "resolved": "https://registry.npmjs.org/side-channel/-/side-channel-1.0.4.tgz", + "integrity": "sha512-q5XPytqFEIKHkGdiMIrY10mvLRvnQh42/+GoBlFW3b2LXLE2xxJpZFdm94we0BaoV3RwJyGqg5wS7epxTv0Zvw==", + "dev": true, + "peer": true, + "dependencies": { + "call-bind": "^1.0.0", + "get-intrinsic": "^1.0.2", + "object-inspect": "^1.9.0" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/signal-exit": { + "version": "4.1.0", + "resolved": "https://registry.npmjs.org/signal-exit/-/signal-exit-4.1.0.tgz", + "integrity": "sha512-bzyZ1e88w9O1iNJbKnOlvYTrWPDl46O1bG0D3XInv+9tkPrxrN8jUUTiFlDkkmKWgn1M6CfIA13SuGqOa9Korw==", + "dev": true, + "engines": { + "node": ">=14" + }, + "funding": { + "url": "https://github.com/sponsors/isaacs" + } + }, + "node_modules/slash": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/slash/-/slash-3.0.0.tgz", + "integrity": "sha512-g9Q1haeby36OSStwb4ntCGGGaKsaVSjQ68fBxoQcutl5fS1vuY18H3wSt3jFyFtrkx+Kz0V1G85A4MyAdDMi2Q==", + "dev": true, + "engines": { + "node": ">=8" + } + }, + "node_modules/slice-ansi": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/slice-ansi/-/slice-ansi-4.0.0.tgz", + "integrity": "sha512-qMCMfhY040cVHT43K9BFygqYbUPFZKHOg7K73mtTWJRb8pyP3fzf4Ixd5SzdEJQ6MRUg/WBnOLxghZtKKurENQ==", + "dev": true, + "dependencies": { + "ansi-styles": "^4.0.0", + "astral-regex": "^2.0.0", + "is-fullwidth-code-point": "^3.0.0" + }, + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/chalk/slice-ansi?sponsor=1" + } + }, + "node_modules/slice-ansi/node_modules/ansi-styles": { + "version": "4.3.0", + "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.3.0.tgz", + "integrity": "sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==", + "dev": true, + "dependencies": { + "color-convert": "^2.0.1" + }, + "engines": { + "node": ">=8" + }, + "funding": { + "url": "https://github.com/chalk/ansi-styles?sponsor=1" + } + }, + "node_modules/slice-ansi/node_modules/color-convert": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-2.0.1.tgz", + "integrity": "sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==", + "dev": true, + "dependencies": { + "color-name": "~1.1.4" + }, + "engines": { + "node": ">=7.0.0" + } + }, + "node_modules/slice-ansi/node_modules/color-name": { + "version": "1.1.4", + "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.4.tgz", + "integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==", + "dev": true + }, + "node_modules/slugify": { + "version": "1.6.6", + "resolved": "https://registry.npmjs.org/slugify/-/slugify-1.6.6.tgz", + "integrity": "sha512-h+z7HKHYXj6wJU+AnS/+IH8Uh9fdcX1Lrhg1/VMdf9PwoBQXFcXiAdsy2tSK0P6gKwJLXp02r90ahUCqHk9rrw==", + "dev": true, + "engines": { + "node": ">=8.0.0" + } + }, + "node_modules/source-map": { + "version": "0.6.1", + "resolved": "https://registry.npmjs.org/source-map/-/source-map-0.6.1.tgz", + "integrity": "sha512-UjgapumWlbMhkBgzT7Ykc5YXUT46F0iKu8SGXq0bcwP5dz/h0Plj6enJqjz1Zbq2l5WaqYnrVbwWOWMyF3F47g==", + "dev": true, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/source-map-js": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/source-map-js/-/source-map-js-1.0.2.tgz", + "integrity": "sha512-R0XvVJ9WusLiqTCEiGCmICCMplcCkIwwR11mOSD9CR5u+IXYdiseeEuXCVAjS54zqwkLcPNnmU4OeJ6tUrWhDw==", + "dev": true, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/source-map-support": { + "version": "0.5.21", + "resolved": "https://registry.npmjs.org/source-map-support/-/source-map-support-0.5.21.tgz", + "integrity": "sha512-uBHU3L3czsIyYXKX88fdrGovxdSCoTGDRZ6SYXtSRxLZUzHg5P/66Ht6uoUlHu9EZod+inXhKo3qQgwXUT/y1w==", + "dev": true, + "dependencies": { + "buffer-from": "^1.0.0", + "source-map": "^0.6.0" + } + }, + "node_modules/spdx-correct": { + "version": "3.2.0", + "resolved": "https://registry.npmjs.org/spdx-correct/-/spdx-correct-3.2.0.tgz", + "integrity": "sha512-kN9dJbvnySHULIluDHy32WHRUu3Og7B9sbY7tsFLctQkIqnMh3hErYgdMjTYuqmcXX+lK5T1lnUt3G7zNswmZA==", + "dev": true, + "dependencies": { + "spdx-expression-parse": "^3.0.0", + "spdx-license-ids": "^3.0.0" + } + }, + "node_modules/spdx-exceptions": { + "version": "2.3.0", + "resolved": "https://registry.npmjs.org/spdx-exceptions/-/spdx-exceptions-2.3.0.tgz", + "integrity": "sha512-/tTrYOC7PPI1nUAgx34hUpqXuyJG+DTHJTnIULG4rDygi4xu/tfgmq1e1cIRwRzwZgo4NLySi+ricLkZkw4i5A==", + "dev": true + }, + "node_modules/spdx-expression-parse": { + "version": "3.0.1", + "resolved": "https://registry.npmjs.org/spdx-expression-parse/-/spdx-expression-parse-3.0.1.tgz", + "integrity": "sha512-cbqHunsQWnJNE6KhVSMsMeH5H/L9EpymbzqTQ3uLwNCLZ1Q481oWaofqH7nO6V07xlXwY6PhQdQ2IedWx/ZK4Q==", + "dev": true, + "dependencies": { + "spdx-exceptions": "^2.1.0", + "spdx-license-ids": "^3.0.0" + } + }, + "node_modules/spdx-license-ids": { + "version": "3.0.16", + "resolved": "https://registry.npmjs.org/spdx-license-ids/-/spdx-license-ids-3.0.16.tgz", + "integrity": "sha512-eWN+LnM3GR6gPu35WxNgbGl8rmY1AEmoMDvL/QD6zYmPWgywxWqJWNdLGT+ke8dKNWrcYgYjPpG5gbTfghP8rw==", + "dev": true + }, + "node_modules/string-width": { + "version": "4.2.3", + "resolved": "https://registry.npmjs.org/string-width/-/string-width-4.2.3.tgz", + "integrity": "sha512-wKyQRQpjJ0sIp62ErSZdGsjMJWsap5oRNihHhu6G7JVO/9jIB6UyevL+tXuOqrng8j/cxKTWyWUwvSTriiZz/g==", + "dev": true, + "dependencies": { + "emoji-regex": "^8.0.0", + "is-fullwidth-code-point": "^3.0.0", + "strip-ansi": "^6.0.1" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/string.prototype.trim": { + "version": "1.2.8", + "resolved": "https://registry.npmjs.org/string.prototype.trim/-/string.prototype.trim-1.2.8.tgz", + "integrity": "sha512-lfjY4HcixfQXOfaqCvcBuOIapyaroTXhbkfJN3gcB1OtyupngWK4sEET9Knd0cXd28kTUqu/kHoV4HKSJdnjiQ==", + "dev": true, + "peer": true, + "dependencies": { + "call-bind": "^1.0.2", + "define-properties": "^1.2.0", + "es-abstract": "^1.22.1" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/string.prototype.trimend": { + "version": "1.0.7", + "resolved": "https://registry.npmjs.org/string.prototype.trimend/-/string.prototype.trimend-1.0.7.tgz", + "integrity": "sha512-Ni79DqeB72ZFq1uH/L6zJ+DKZTkOtPIHovb3YZHQViE+HDouuU4mBrLOLDn5Dde3RF8qw5qVETEjhu9locMLvA==", + "dev": true, + "peer": true, + "dependencies": { + "call-bind": "^1.0.2", + "define-properties": "^1.2.0", + "es-abstract": "^1.22.1" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/string.prototype.trimstart": { + "version": "1.0.7", + "resolved": "https://registry.npmjs.org/string.prototype.trimstart/-/string.prototype.trimstart-1.0.7.tgz", + "integrity": "sha512-NGhtDFu3jCEm7B4Fy0DpLewdJQOZcQ0rGbwQ/+stjnrp2i+rlKeCvos9hOIeCmqwratM47OBxY7uFZzjxHXmrg==", + "dev": true, + "peer": true, + "dependencies": { + "call-bind": "^1.0.2", + "define-properties": "^1.2.0", + "es-abstract": "^1.22.1" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/strip-ansi": { + "version": "6.0.1", + "resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-6.0.1.tgz", + "integrity": "sha512-Y38VPSHcqkFrCpFnQ9vuSXmquuv5oXOKpGeT6aGrr3o3Gc9AlVa6JBfUSOCnbxGGZF+/0ooI7KrPuUSztUdU5A==", + "dev": true, + "dependencies": { + "ansi-regex": "^5.0.1" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/strip-bom": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/strip-bom/-/strip-bom-3.0.0.tgz", + "integrity": "sha512-vavAMRXOgBVNF6nyEEmL3DBK19iRpDcoIwW+swQ+CbGiu7lju6t+JklA1MHweoWtadgt4ISVUsXLyDq34ddcwA==", + "dev": true, + "peer": true, + "engines": { + "node": ">=4" + } + }, + "node_modules/strip-indent": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/strip-indent/-/strip-indent-3.0.0.tgz", + "integrity": "sha512-laJTa3Jb+VQpaC6DseHhF7dXVqHTfJPCRDaEbid/drOhgitgYku/letMUqOXFoWV0zIIUbjpdH2t+tYj4bQMRQ==", + "dev": true, + "optional": true, + "peer": true, + "dependencies": { + "min-indent": "^1.0.0" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/strip-json-comments": { + "version": "3.1.1", + "resolved": "https://registry.npmjs.org/strip-json-comments/-/strip-json-comments-3.1.1.tgz", + "integrity": "sha512-6fPc+R4ihwqP6N/aIv2f1gMH8lOVtWQHoqC4yK6oSDVVocumAsfCqjkXnqiYMhmMwS/mEHLp7Vehlt3ql6lEig==", + "dev": true, + "engines": { + "node": ">=8" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/style-search": { + "version": "0.1.0", + "resolved": "https://registry.npmjs.org/style-search/-/style-search-0.1.0.tgz", + "integrity": "sha512-Dj1Okke1C3uKKwQcetra4jSuk0DqbzbYtXipzFlFMZtowbF1x7BKJwB9AayVMyFARvU8EDrZdcax4At/452cAg==", + "dev": true + }, + "node_modules/stylelint": { + "version": "15.11.0", + "resolved": "https://registry.npmjs.org/stylelint/-/stylelint-15.11.0.tgz", + "integrity": "sha512-78O4c6IswZ9TzpcIiQJIN49K3qNoXTM8zEJzhaTE/xRTCZswaovSEVIa/uwbOltZrk16X4jAxjaOhzz/hTm1Kw==", + "dev": true, + "dependencies": { + "@csstools/css-parser-algorithms": "^2.3.1", + "@csstools/css-tokenizer": "^2.2.0", + "@csstools/media-query-list-parser": "^2.1.4", + "@csstools/selector-specificity": "^3.0.0", + "balanced-match": "^2.0.0", + "colord": "^2.9.3", + "cosmiconfig": "^8.2.0", + "css-functions-list": "^3.2.1", + "css-tree": "^2.3.1", + "debug": "^4.3.4", + "fast-glob": "^3.3.1", + "fastest-levenshtein": "^1.0.16", + "file-entry-cache": "^7.0.0", + "global-modules": "^2.0.0", + "globby": "^11.1.0", + "globjoin": "^0.1.4", + "html-tags": "^3.3.1", + "ignore": "^5.2.4", + "import-lazy": "^4.0.0", + "imurmurhash": "^0.1.4", + "is-plain-object": "^5.0.0", + "known-css-properties": "^0.29.0", + "mathml-tag-names": "^2.1.3", + "meow": "^10.1.5", + "micromatch": "^4.0.5", + "normalize-path": "^3.0.0", + "picocolors": "^1.0.0", + "postcss": "^8.4.28", + "postcss-resolve-nested-selector": "^0.1.1", + "postcss-safe-parser": "^6.0.0", + "postcss-selector-parser": "^6.0.13", + "postcss-value-parser": "^4.2.0", + "resolve-from": "^5.0.0", + "string-width": "^4.2.3", + "strip-ansi": "^6.0.1", + "style-search": "^0.1.0", + "supports-hyperlinks": "^3.0.0", + "svg-tags": "^1.0.0", + "table": "^6.8.1", + "write-file-atomic": "^5.0.1" + }, + "bin": { + "stylelint": "bin/stylelint.mjs" + }, + "engines": { + "node": "^14.13.1 || >=16.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/stylelint" + } + }, + "node_modules/stylelint-config-idiomatic-order": { + "version": "10.0.0", + "resolved": "git+ssh://git@github.com/ream88/stylelint-config-idiomatic-order.git#2b456525ef46ed343959a664adbff608899f70de", + "dev": true, + "license": "MIT", + "dependencies": { + "stylelint-order": "^6.0.2" + }, + "engines": { + "node": ">=12" + }, + "peerDependencies": { + "stylelint": ">=11" + } + }, + "node_modules/stylelint-config-recommended": { + "version": "13.0.0", + "resolved": "https://registry.npmjs.org/stylelint-config-recommended/-/stylelint-config-recommended-13.0.0.tgz", + "integrity": "sha512-EH+yRj6h3GAe/fRiyaoO2F9l9Tgg50AOFhaszyfov9v6ayXJ1IkSHwTxd7lB48FmOeSGDPLjatjO11fJpmarkQ==", + "dev": true, + "engines": { + "node": "^14.13.1 || >=16.0.0" + }, + "peerDependencies": { + "stylelint": "^15.10.0" + } + }, + "node_modules/stylelint-config-recommended-scss": { + "version": "13.1.0", + "resolved": "https://registry.npmjs.org/stylelint-config-recommended-scss/-/stylelint-config-recommended-scss-13.1.0.tgz", + "integrity": "sha512-8L5nDfd+YH6AOoBGKmhH8pLWF1dpfY816JtGMePcBqqSsLU+Ysawx44fQSlMOJ2xTfI9yTGpup5JU77c17w1Ww==", + "dev": true, + "dependencies": { + "postcss-scss": "^4.0.9", + "stylelint-config-recommended": "^13.0.0", + "stylelint-scss": "^5.3.0" + }, + "peerDependencies": { + "postcss": "^8.3.3", + "stylelint": "^15.10.0" + }, + "peerDependenciesMeta": { + "postcss": { + "optional": true + } + } + }, + "node_modules/stylelint-config-sass-guidelines": { + "version": "10.0.0", + "resolved": "https://registry.npmjs.org/stylelint-config-sass-guidelines/-/stylelint-config-sass-guidelines-10.0.0.tgz", + "integrity": "sha512-+Rr2Dd4b72CWA4qoj1Kk+y449nP/WJsrD0nzQAWkmPPIuyVcy2GMIcfNr0Z8JJOLjRvtlkKxa49FCNXMePBikQ==", + "dev": true, + "dependencies": { + "postcss-scss": "^4.0.6", + "stylelint-scss": "^4.4.0" + }, + "engines": { + "node": "^14.13.1 || >=16.13.0 || >=18.0.0" + }, + "peerDependencies": { + "postcss": "^8.4.21", + "stylelint": "^15.2.0" + } + }, + "node_modules/stylelint-config-sass-guidelines/node_modules/stylelint-scss": { + "version": "4.7.0", + "resolved": "https://registry.npmjs.org/stylelint-scss/-/stylelint-scss-4.7.0.tgz", + "integrity": "sha512-TSUgIeS0H3jqDZnby1UO1Qv3poi1N8wUYIJY6D1tuUq2MN3lwp/rITVo0wD+1SWTmRm0tNmGO0b7nKInnqF6Hg==", + "dev": true, + "dependencies": { + "postcss-media-query-parser": "^0.2.3", + "postcss-resolve-nested-selector": "^0.1.1", + "postcss-selector-parser": "^6.0.11", + "postcss-value-parser": "^4.2.0" + }, + "peerDependencies": { + "stylelint": "^14.5.1 || ^15.0.0" + } + }, + "node_modules/stylelint-config-standard": { + "version": "34.0.0", + "resolved": "https://registry.npmjs.org/stylelint-config-standard/-/stylelint-config-standard-34.0.0.tgz", + "integrity": "sha512-u0VSZnVyW9VSryBG2LSO+OQTjN7zF9XJaAJRX/4EwkmU0R2jYwmBSN10acqZisDitS0CLiEiGjX7+Hrq8TAhfQ==", + "dev": true, + "dependencies": { + "stylelint-config-recommended": "^13.0.0" + }, + "engines": { + "node": "^14.13.1 || >=16.0.0" + }, + "peerDependencies": { + "stylelint": "^15.10.0" + } + }, + "node_modules/stylelint-config-standard-scss": { + "version": "11.1.0", + "resolved": "https://registry.npmjs.org/stylelint-config-standard-scss/-/stylelint-config-standard-scss-11.1.0.tgz", + "integrity": "sha512-5gnBgeNTgRVdchMwiFQPuBOtj9QefYtfXiddrOMJA2pI22zxt6ddI2s+e5Oh7/6QYl7QLJujGnaUR5YyGq72ow==", + "dev": true, + "dependencies": { + "stylelint-config-recommended-scss": "^13.1.0", + "stylelint-config-standard": "^34.0.0" + }, + "peerDependencies": { + "postcss": "^8.3.3", + "stylelint": "^15.10.0" + }, + "peerDependenciesMeta": { + "postcss": { + "optional": true + } + } + }, + "node_modules/stylelint-order": { + "version": "6.0.4", + "resolved": "https://registry.npmjs.org/stylelint-order/-/stylelint-order-6.0.4.tgz", + "integrity": "sha512-0UuKo4+s1hgQ/uAxlYU4h0o0HS4NiQDud0NAUNI0aa8FJdmYHA5ZZTFHiV5FpmE3071e9pZx5j0QpVJW5zOCUA==", + "dev": true, + "dependencies": { + "postcss": "^8.4.32", + "postcss-sorting": "^8.0.2" + }, + "peerDependencies": { + "stylelint": "^14.0.0 || ^15.0.0 || ^16.0.1" + } + }, + "node_modules/stylelint-scss": { + "version": "5.3.2", + "resolved": "https://registry.npmjs.org/stylelint-scss/-/stylelint-scss-5.3.2.tgz", + "integrity": "sha512-4LzLaayFhFyneJwLo0IUa8knuIvj+zF0vBFueQs4e3tEaAMIQX8q5th8ziKkgOavr6y/y9yoBe+RXN/edwLzsQ==", + "dev": true, + "dependencies": { + "known-css-properties": "^0.29.0", + "postcss-media-query-parser": "^0.2.3", + "postcss-resolve-nested-selector": "^0.1.1", + "postcss-selector-parser": "^6.0.13", + "postcss-value-parser": "^4.2.0" + }, + "peerDependencies": { + "stylelint": "^14.5.1 || ^15.0.0" + } + }, + "node_modules/stylelint/node_modules/balanced-match": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/balanced-match/-/balanced-match-2.0.0.tgz", + "integrity": "sha512-1ugUSr8BHXRnK23KfuYS+gVMC3LB8QGH9W1iGtDPsNWoQbgtXSExkBu2aDR4epiGWZOjZsj6lDl/N/AqqTC3UA==", + "dev": true + }, + "node_modules/stylelint/node_modules/camelcase": { + "version": "6.3.0", + "resolved": "https://registry.npmjs.org/camelcase/-/camelcase-6.3.0.tgz", + "integrity": "sha512-Gmy6FhYlCY7uOElZUSbxo2UCDH8owEk996gkbrpsgGtrJLM3J7jGxl9Ic7Qwwj4ivOE5AWZWRMecDdF7hqGjFA==", + "dev": true, + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/stylelint/node_modules/camelcase-keys": { + "version": "7.0.2", + "resolved": "https://registry.npmjs.org/camelcase-keys/-/camelcase-keys-7.0.2.tgz", + "integrity": "sha512-Rjs1H+A9R+Ig+4E/9oyB66UC5Mj9Xq3N//vcLf2WzgdTi/3gUu3Z9KoqmlrEG4VuuLK8wJHofxzdQXz/knhiYg==", + "dev": true, + "dependencies": { + "camelcase": "^6.3.0", + "map-obj": "^4.1.0", + "quick-lru": "^5.1.1", + "type-fest": "^1.2.1" + }, + "engines": { + "node": ">=12" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/stylelint/node_modules/decamelize": { + "version": "5.0.1", + "resolved": "https://registry.npmjs.org/decamelize/-/decamelize-5.0.1.tgz", + "integrity": "sha512-VfxadyCECXgQlkoEAjeghAr5gY3Hf+IKjKb+X8tGVDtveCjN+USwprd2q3QXBR9T1+x2DG0XZF5/w+7HAtSaXA==", + "dev": true, + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/stylelint/node_modules/file-entry-cache": { + "version": "7.0.2", + "resolved": "https://registry.npmjs.org/file-entry-cache/-/file-entry-cache-7.0.2.tgz", + "integrity": "sha512-TfW7/1iI4Cy7Y8L6iqNdZQVvdXn0f8B4QcIXmkIbtTIe/Okm/nSlHb4IwGzRVOd3WfSieCgvf5cMzEfySAIl0g==", + "dev": true, + "dependencies": { + "flat-cache": "^3.2.0" + }, + "engines": { + "node": ">=12.0.0" + } + }, + "node_modules/stylelint/node_modules/indent-string": { + "version": "5.0.0", + "resolved": "https://registry.npmjs.org/indent-string/-/indent-string-5.0.0.tgz", + "integrity": "sha512-m6FAo/spmsW2Ab2fU35JTYwtOKa2yAwXSwgjSv1TJzh4Mh7mC3lzAOVLBprb72XsTrgkEIsl7YrFNAiDiRhIGg==", + "dev": true, + "engines": { + "node": ">=12" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/stylelint/node_modules/is-plain-object": { + "version": "5.0.0", + "resolved": "https://registry.npmjs.org/is-plain-object/-/is-plain-object-5.0.0.tgz", + "integrity": "sha512-VRSzKkbMm5jMDoKLbltAkFQ5Qr7VDiTFGXxYFXXowVj387GeGNOCsOH6Msy00SGZ3Fp84b1Naa1psqgcCIEP5Q==", + "dev": true, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/stylelint/node_modules/meow": { + "version": "10.1.5", + "resolved": "https://registry.npmjs.org/meow/-/meow-10.1.5.tgz", + "integrity": "sha512-/d+PQ4GKmGvM9Bee/DPa8z3mXs/pkvJE2KEThngVNOqtmljC6K7NMPxtc2JeZYTmpWb9k/TmxjeL18ez3h7vCw==", + "dev": true, + "dependencies": { + "@types/minimist": "^1.2.2", + "camelcase-keys": "^7.0.0", + "decamelize": "^5.0.0", + "decamelize-keys": "^1.1.0", + "hard-rejection": "^2.1.0", + "minimist-options": "4.1.0", + "normalize-package-data": "^3.0.2", + "read-pkg-up": "^8.0.0", + "redent": "^4.0.0", + "trim-newlines": "^4.0.2", + "type-fest": "^1.2.2", + "yargs-parser": "^20.2.9" + }, + "engines": { + "node": "^12.20.0 || ^14.13.1 || >=16.0.0" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/stylelint/node_modules/quick-lru": { + "version": "5.1.1", + "resolved": "https://registry.npmjs.org/quick-lru/-/quick-lru-5.1.1.tgz", + "integrity": "sha512-WuyALRjWPDGtt/wzJiadO5AXY+8hZ80hVpe6MyivgraREW751X3SbhRvG3eLKOYN+8VEvqLcf3wdnt44Z4S4SA==", + "dev": true, + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/stylelint/node_modules/read-pkg": { + "version": "6.0.0", + "resolved": "https://registry.npmjs.org/read-pkg/-/read-pkg-6.0.0.tgz", + "integrity": "sha512-X1Fu3dPuk/8ZLsMhEj5f4wFAF0DWoK7qhGJvgaijocXxBmSToKfbFtqbxMO7bVjNA1dmE5huAzjXj/ey86iw9Q==", + "dev": true, + "dependencies": { + "@types/normalize-package-data": "^2.4.0", + "normalize-package-data": "^3.0.2", + "parse-json": "^5.2.0", + "type-fest": "^1.0.1" + }, + "engines": { + "node": ">=12" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/stylelint/node_modules/read-pkg-up": { + "version": "8.0.0", + "resolved": "https://registry.npmjs.org/read-pkg-up/-/read-pkg-up-8.0.0.tgz", + "integrity": "sha512-snVCqPczksT0HS2EC+SxUndvSzn6LRCwpfSvLrIfR5BKDQQZMaI6jPRC9dYvYFDRAuFEAnkwww8kBBNE/3VvzQ==", + "dev": true, + "dependencies": { + "find-up": "^5.0.0", + "read-pkg": "^6.0.0", + "type-fest": "^1.0.1" + }, + "engines": { + "node": ">=12" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/stylelint/node_modules/redent": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/redent/-/redent-4.0.0.tgz", + "integrity": "sha512-tYkDkVVtYkSVhuQ4zBgfvciymHaeuel+zFKXShfDnFP5SyVEP7qo70Rf1jTOTCx3vGNAbnEi/xFkcfQVMIBWag==", + "dev": true, + "dependencies": { + "indent-string": "^5.0.0", + "strip-indent": "^4.0.0" + }, + "engines": { + "node": ">=12" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/stylelint/node_modules/resolve-from": { + "version": "5.0.0", + "resolved": "https://registry.npmjs.org/resolve-from/-/resolve-from-5.0.0.tgz", + "integrity": "sha512-qYg9KP24dD5qka9J47d0aVky0N+b4fTU89LN9iDnjB5waksiC49rvMB0PrUJQGoTmH50XPiqOvAjDfaijGxYZw==", + "dev": true, + "engines": { + "node": ">=8" + } + }, + "node_modules/stylelint/node_modules/strip-indent": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/strip-indent/-/strip-indent-4.0.0.tgz", + "integrity": "sha512-mnVSV2l+Zv6BLpSD/8V87CW/y9EmmbYzGCIavsnsI6/nwn26DwffM/yztm30Z/I2DY9wdS3vXVCMnHDgZaVNoA==", + "dev": true, + "dependencies": { + "min-indent": "^1.0.1" + }, + "engines": { + "node": ">=12" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/stylelint/node_modules/trim-newlines": { + "version": "4.1.1", + "resolved": "https://registry.npmjs.org/trim-newlines/-/trim-newlines-4.1.1.tgz", + "integrity": "sha512-jRKj0n0jXWo6kh62nA5TEh3+4igKDXLvzBJcPpiizP7oOolUrYIxmVBG9TOtHYFHoddUk6YvAkGeGoSVTXfQXQ==", + "dev": true, + "engines": { + "node": ">=12" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/stylelint/node_modules/type-fest": { + "version": "1.4.0", + "resolved": "https://registry.npmjs.org/type-fest/-/type-fest-1.4.0.tgz", + "integrity": "sha512-yGSza74xk0UG8k+pLh5oeoYirvIiWo5t0/o3zHHAO2tRDiZcxWP7fywNlXhqb6/r6sWvwi+RsyQMWhVLe4BVuA==", + "dev": true, + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/supports-color": { + "version": "5.5.0", + "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-5.5.0.tgz", + "integrity": "sha512-QjVjwdXIt408MIiAqCX4oUKsgU2EqAGzs2Ppkm4aQYbjm+ZEWEcW4SfFNTr4uMNZma0ey4f5lgLrkB0aX0QMow==", + "dev": true, + "dependencies": { + "has-flag": "^3.0.0" + }, + "engines": { + "node": ">=4" + } + }, + "node_modules/supports-hyperlinks": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/supports-hyperlinks/-/supports-hyperlinks-3.0.0.tgz", + "integrity": "sha512-QBDPHyPQDRTy9ku4URNGY5Lah8PAaXs6tAAwp55sL5WCsSW7GIfdf6W5ixfziW+t7wh3GVvHyHHyQ1ESsoRvaA==", + "dev": true, + "dependencies": { + "has-flag": "^4.0.0", + "supports-color": "^7.0.0" + }, + "engines": { + "node": ">=14.18" + } + }, + "node_modules/supports-hyperlinks/node_modules/has-flag": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-4.0.0.tgz", + "integrity": "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==", + "dev": true, + "engines": { + "node": ">=8" + } + }, + "node_modules/supports-hyperlinks/node_modules/supports-color": { + "version": "7.2.0", + "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-7.2.0.tgz", + "integrity": "sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw==", + "dev": true, + "dependencies": { + "has-flag": "^4.0.0" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/supports-preserve-symlinks-flag": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/supports-preserve-symlinks-flag/-/supports-preserve-symlinks-flag-1.0.0.tgz", + "integrity": "sha512-ot0WnXS9fgdkgIcePe6RHNk1WA8+muPa6cSjeR3V8K27q9BB1rTE3R1p7Hv0z1ZyAc8s6Vvv8DIyWf681MAt0w==", + "dev": true, + "peer": true, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/svg-tags": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/svg-tags/-/svg-tags-1.0.0.tgz", + "integrity": "sha512-ovssysQTa+luh7A5Weu3Rta6FJlFBBbInjOh722LIt6klpU2/HtdUbszju/G4devcvk8PGt7FCLv5wftu3THUA==", + "dev": true + }, + "node_modules/sweetalert2": { + "version": "11.10.1", + "resolved": "https://registry.npmjs.org/sweetalert2/-/sweetalert2-11.10.1.tgz", + "integrity": "sha512-qu145oBuFfjYr5yZW9OSdG6YmRxDf8CnkgT/sXMfrXGe+asFy2imC2vlaLQ/L/naZ/JZna1MPAY56G4qYM0VUQ==", + "dev": true, + "funding": { + "type": "individual", + "url": "https://github.com/sponsors/limonte" + } + }, + "node_modules/table": { + "version": "6.8.1", + "resolved": "https://registry.npmjs.org/table/-/table-6.8.1.tgz", + "integrity": "sha512-Y4X9zqrCftUhMeH2EptSSERdVKt/nEdijTOacGD/97EKjhQ/Qs8RTlEGABSJNNN8lac9kheH+af7yAkEWlgneA==", + "dev": true, + "dependencies": { + "ajv": "^8.0.1", + "lodash.truncate": "^4.4.2", + "slice-ansi": "^4.0.0", + "string-width": "^4.2.3", + "strip-ansi": "^6.0.1" + }, + "engines": { + "node": ">=10.0.0" + } + }, + "node_modules/table/node_modules/ajv": { + "version": "8.12.0", + "resolved": "https://registry.npmjs.org/ajv/-/ajv-8.12.0.tgz", + "integrity": "sha512-sRu1kpcO9yLtYxBKvqfTeh9KzZEwO3STyX1HT+4CaDzC6HpTGYhIhPIzj9XuKU7KYDwnaeh5hcOwjy1QuJzBPA==", + "dev": true, + "dependencies": { + "fast-deep-equal": "^3.1.1", + "json-schema-traverse": "^1.0.0", + "require-from-string": "^2.0.2", + "uri-js": "^4.2.2" + }, + "funding": { + "type": "github", + "url": "https://github.com/sponsors/epoberezkin" + } + }, + "node_modules/table/node_modules/json-schema-traverse": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/json-schema-traverse/-/json-schema-traverse-1.0.0.tgz", + "integrity": "sha512-NM8/P9n3XjXhIZn1lLhkFaACTOURQXjWhV4BA/RnOv8xvgqtqpAX9IO4mRQxSx1Rlo4tqzeqb0sOlruaOy3dug==", + "dev": true + }, + "node_modules/tapable": { + "version": "2.2.1", + "resolved": "https://registry.npmjs.org/tapable/-/tapable-2.2.1.tgz", + "integrity": "sha512-GNzQvQTOIP6RyTfE2Qxb8ZVlNmw0n88vp1szwWRimP02mnTsx3Wtn5qRdqY9w2XduFNUgvOwhNnQsjwCp+kqaQ==", + "dev": true, + "engines": { + "node": ">=6" + } + }, + "node_modules/terser": { + "version": "5.26.0", + "resolved": "https://registry.npmjs.org/terser/-/terser-5.26.0.tgz", + "integrity": "sha512-dytTGoE2oHgbNV9nTzgBEPaqAWvcJNl66VZ0BkJqlvp71IjO8CxdBx/ykCNb47cLnCmCvRZ6ZR0tLkqvZCdVBQ==", + "dev": true, + "dependencies": { + "@jridgewell/source-map": "^0.3.3", + "acorn": "^8.8.2", + "commander": "^2.20.0", + "source-map-support": "~0.5.20" + }, + "bin": { + "terser": "bin/terser" + }, + "engines": { + "node": ">=10" + } + }, + "node_modules/terser-webpack-plugin": { + "version": "5.3.9", + "resolved": "https://registry.npmjs.org/terser-webpack-plugin/-/terser-webpack-plugin-5.3.9.tgz", + "integrity": "sha512-ZuXsqE07EcggTWQjXUj+Aot/OMcD0bMKGgF63f7UxYcu5/AJF53aIpK1YoP5xR9l6s/Hy2b+t1AM0bLNPRuhwA==", + "dev": true, + "peer": true, + "dependencies": { + "@jridgewell/trace-mapping": "^0.3.17", + "jest-worker": "^27.4.5", + "schema-utils": "^3.1.1", + "serialize-javascript": "^6.0.1", + "terser": "^5.16.8" + }, + "engines": { + "node": ">= 10.13.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/webpack" + }, + "peerDependencies": { + "webpack": "^5.1.0" + }, + "peerDependenciesMeta": { + "@swc/core": { + "optional": true + }, + "esbuild": { + "optional": true + }, + "uglify-js": { + "optional": true + } + } + }, + "node_modules/text-table": { + "version": "0.2.0", + "resolved": "https://registry.npmjs.org/text-table/-/text-table-0.2.0.tgz", + "integrity": "sha512-N+8UisAXDGk8PFXP4HAzVR9nbfmVJ3zYLAWiTIoqC5v5isinhr+r5uaO8+7r3BMfuNIufIsA7RdpVgacC2cSpw==", + "dev": true + }, + "node_modules/tiny-invariant": { + "version": "1.3.1", + "resolved": "https://registry.npmjs.org/tiny-invariant/-/tiny-invariant-1.3.1.tgz", + "integrity": "sha512-AD5ih2NlSssTCwsMznbvwMZpJ1cbhkGd2uueNxzv2jDlEeZdU04JQfRnggJQ8DrcVBGjAsCKwFBbDlVNtEMlzw==", + "dev": true + }, + "node_modules/to-fast-properties": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/to-fast-properties/-/to-fast-properties-2.0.0.tgz", + "integrity": "sha512-/OaKK0xYrs3DmxRYqL/yDc+FxFUVYhDlXMhRmv3z915w2HF1tnN1omB354j8VUGO/hbRzyD6Y3sA7v7GS/ceog==", + "dev": true, + "engines": { + "node": ">=4" + } + }, + "node_modules/to-regex-range": { + "version": "5.0.1", + "resolved": "https://registry.npmjs.org/to-regex-range/-/to-regex-range-5.0.1.tgz", + "integrity": "sha512-65P7iz6X5yEr1cwcgvQxbbIw7Uk3gOy5dIdtZ4rDveLqhrdJP+Li/Hx6tyK0NEb+2GCyneCMJiGqrADCSNk8sQ==", + "dev": true, + "dependencies": { + "is-number": "^7.0.0" + }, + "engines": { + "node": ">=8.0" + } + }, + "node_modules/toastify-js": { + "version": "1.12.0", + "resolved": "https://registry.npmjs.org/toastify-js/-/toastify-js-1.12.0.tgz", + "integrity": "sha512-HeMHCO9yLPvP9k0apGSdPUWrUbLnxUKNFzgUoZp1PHCLploIX/4DSQ7V8H25ef+h4iO9n0he7ImfcndnN6nDrQ==", + "dev": true + }, + "node_modules/trim-newlines": { + "version": "3.0.1", + "resolved": "https://registry.npmjs.org/trim-newlines/-/trim-newlines-3.0.1.tgz", + "integrity": "sha512-c1PTsA3tYrIsLGkJkzHF+w9F2EyxfXGo4UyJc4pFL++FMjnq0HJS69T3M7d//gKrFKwy429bouPescbjecU+Zw==", + "dev": true, + "optional": true, + "peer": true, + "engines": { + "node": ">=8" + } + }, + "node_modules/ts-api-utils": { + "version": "1.0.3", + "resolved": "https://registry.npmjs.org/ts-api-utils/-/ts-api-utils-1.0.3.tgz", + "integrity": "sha512-wNMeqtMz5NtwpT/UZGY5alT+VoKdSsOOP/kqHFcUW1P/VRhH2wJ48+DN2WwUliNbQ976ETwDL0Ifd2VVvgonvg==", + "dev": true, + "engines": { + "node": ">=16.13.0" + }, + "peerDependencies": { + "typescript": ">=4.2.0" + } + }, + "node_modules/ts-loader": { + "version": "9.5.1", + "resolved": "https://registry.npmjs.org/ts-loader/-/ts-loader-9.5.1.tgz", + "integrity": "sha512-rNH3sK9kGZcH9dYzC7CewQm4NtxJTjSEVRJ2DyBZR7f8/wcta+iV44UPCXc5+nzDzivKtlzV6c9P4e+oFhDLYg==", + "dev": true, + "dependencies": { + "chalk": "^4.1.0", + "enhanced-resolve": "^5.0.0", + "micromatch": "^4.0.0", + "semver": "^7.3.4", + "source-map": "^0.7.4" + }, + "engines": { + "node": ">=12.0.0" + }, + "peerDependencies": { + "typescript": "*", + "webpack": "^5.0.0" + } + }, + "node_modules/ts-loader/node_modules/ansi-styles": { + "version": "4.3.0", + "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.3.0.tgz", + "integrity": "sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==", + "dev": true, + "dependencies": { + "color-convert": "^2.0.1" + }, + "engines": { + "node": ">=8" + }, + "funding": { + "url": "https://github.com/chalk/ansi-styles?sponsor=1" + } + }, + "node_modules/ts-loader/node_modules/chalk": { + "version": "4.1.2", + "resolved": "https://registry.npmjs.org/chalk/-/chalk-4.1.2.tgz", + "integrity": "sha512-oKnbhFyRIXpUuez8iBMmyEa4nbj4IOQyuhc/wy9kY7/WVPcwIO9VA668Pu8RkO7+0G76SLROeyw9CpQ061i4mA==", + "dev": true, + "dependencies": { + "ansi-styles": "^4.1.0", + "supports-color": "^7.1.0" + }, + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/chalk/chalk?sponsor=1" + } + }, + "node_modules/ts-loader/node_modules/color-convert": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-2.0.1.tgz", + "integrity": "sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==", + "dev": true, + "dependencies": { + "color-name": "~1.1.4" + }, + "engines": { + "node": ">=7.0.0" + } + }, + "node_modules/ts-loader/node_modules/color-name": { + "version": "1.1.4", + "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.4.tgz", + "integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==", + "dev": true + }, + "node_modules/ts-loader/node_modules/has-flag": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-4.0.0.tgz", + "integrity": "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==", + "dev": true, + "engines": { + "node": ">=8" + } + }, + "node_modules/ts-loader/node_modules/lru-cache": { + "version": "6.0.0", + "resolved": "https://registry.npmjs.org/lru-cache/-/lru-cache-6.0.0.tgz", + "integrity": "sha512-Jo6dJ04CmSjuznwJSS3pUeWmd/H0ffTlkXXgwZi+eq1UCmqQwCh+eLsYOYCwY991i2Fah4h1BEMCx4qThGbsiA==", + "dev": true, + "dependencies": { + "yallist": "^4.0.0" + }, + "engines": { + "node": ">=10" + } + }, + "node_modules/ts-loader/node_modules/semver": { + "version": "7.5.4", + "resolved": "https://registry.npmjs.org/semver/-/semver-7.5.4.tgz", + "integrity": "sha512-1bCSESV6Pv+i21Hvpxp3Dx+pSD8lIPt8uVjRrxAUt/nbswYc+tK6Y2btiULjd4+fnq15PX+nqQDC7Oft7WkwcA==", + "dev": true, + "dependencies": { + "lru-cache": "^6.0.0" + }, + "bin": { + "semver": "bin/semver.js" + }, + "engines": { + "node": ">=10" + } + }, + "node_modules/ts-loader/node_modules/source-map": { + "version": "0.7.4", + "resolved": "https://registry.npmjs.org/source-map/-/source-map-0.7.4.tgz", + "integrity": "sha512-l3BikUxvPOcn5E74dZiq5BGsTb5yEwhaTSzccU6t4sDOH8NWJCstKO5QT2CvtFoK6F0saL7p9xHAqHOlCPJygA==", + "dev": true, + "engines": { + "node": ">= 8" + } + }, + "node_modules/ts-loader/node_modules/supports-color": { + "version": "7.2.0", + "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-7.2.0.tgz", + "integrity": "sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw==", + "dev": true, + "dependencies": { + "has-flag": "^4.0.0" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/ts-loader/node_modules/yallist": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/yallist/-/yallist-4.0.0.tgz", + "integrity": "sha512-3wdGidZyq5PB084XLES5TpOSRA3wjXAlIWMhum2kRcv/41Sn2emQ0dycQW4uZXLejwKvg6EsvbdlVL+FYEct7A==", + "dev": true + }, + "node_modules/tsconfig-paths": { + "version": "3.15.0", + "resolved": "https://registry.npmjs.org/tsconfig-paths/-/tsconfig-paths-3.15.0.tgz", + "integrity": "sha512-2Ac2RgzDe/cn48GvOe3M+o82pEFewD3UPbyoUHHdKasHwJKjds4fLXWf/Ux5kATBKN20oaFGu+jbElp1pos0mg==", + "dev": true, + "peer": true, + "dependencies": { + "@types/json5": "^0.0.29", + "json5": "^1.0.2", + "minimist": "^1.2.6", + "strip-bom": "^3.0.0" + } + }, + "node_modules/tsconfig-paths/node_modules/json5": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/json5/-/json5-1.0.2.tgz", + "integrity": "sha512-g1MWMLBiz8FKi1e4w0UyVL3w+iJceWAFBAaBnnGKOpNa5f8TLktkbre1+s6oICydWAm+HRUGTmI+//xv2hvXYA==", + "dev": true, + "peer": true, + "dependencies": { + "minimist": "^1.2.0" + }, + "bin": { + "json5": "lib/cli.js" + } + }, + "node_modules/tslib": { + "version": "1.14.1", + "resolved": "https://registry.npmjs.org/tslib/-/tslib-1.14.1.tgz", + "integrity": "sha512-Xni35NKzjgMrwevysHTCArtLDpPvye8zV/0E4EyYn43P7/7qvQwPh9BGkHewbMulVntbigmcT7rdX3BNo9wRJg==", + "dev": true + }, + "node_modules/tsutils": { + "version": "3.21.0", + "resolved": "https://registry.npmjs.org/tsutils/-/tsutils-3.21.0.tgz", + "integrity": "sha512-mHKK3iUXL+3UF6xL5k0PEhKRUBKPBCv/+RkEOpjRWxxx27KKRBmmA60A9pgOUvMi8GKhRMPEmjBRPzs2W7O1OA==", + "dev": true, + "dependencies": { + "tslib": "^1.8.1" + }, + "engines": { + "node": ">= 6" + }, + "peerDependencies": { + "typescript": ">=2.8.0 || >= 3.2.0-dev || >= 3.3.0-dev || >= 3.4.0-dev || >= 3.5.0-dev || >= 3.6.0-dev || >= 3.6.0-beta || >= 3.7.0-dev || >= 3.7.0-beta" + } + }, + "node_modules/type-check": { + "version": "0.4.0", + "resolved": "https://registry.npmjs.org/type-check/-/type-check-0.4.0.tgz", + "integrity": "sha512-XleUoc9uwGXqjWwXaUTZAmzMcFZ5858QA2vvx1Ur5xIcixXIP+8LnFDgRplU30us6teqdlskFfu+ae4K79Ooew==", + "dev": true, + "dependencies": { + "prelude-ls": "^1.2.1" + }, + "engines": { + "node": ">= 0.8.0" + } + }, + "node_modules/type-fest": { + "version": "0.21.3", + "resolved": "https://registry.npmjs.org/type-fest/-/type-fest-0.21.3.tgz", + "integrity": "sha512-t0rzBq87m3fVcduHDUFhKmyyX+9eo6WQjZvf51Ea/M0Q7+T374Jp1aUiyUl0GKxp8M/OETVHSDvmkyPgvX+X2w==", + "dev": true, + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/typed-array-buffer": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/typed-array-buffer/-/typed-array-buffer-1.0.0.tgz", + "integrity": "sha512-Y8KTSIglk9OZEr8zywiIHG/kmQ7KWyjseXs1CbSo8vC42w7hg2HgYTxSWwP0+is7bWDc1H+Fo026CpHFwm8tkw==", + "dev": true, + "peer": true, + "dependencies": { + "call-bind": "^1.0.2", + "get-intrinsic": "^1.2.1", + "is-typed-array": "^1.1.10" + }, + "engines": { + "node": ">= 0.4" + } + }, + "node_modules/typed-array-byte-length": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/typed-array-byte-length/-/typed-array-byte-length-1.0.0.tgz", + "integrity": "sha512-Or/+kvLxNpeQ9DtSydonMxCx+9ZXOswtwJn17SNLvhptaXYDJvkFFP5zbfU/uLmvnBJlI4yrnXRxpdWH/M5tNA==", + "dev": true, + "peer": true, + "dependencies": { + "call-bind": "^1.0.2", + "for-each": "^0.3.3", + "has-proto": "^1.0.1", + "is-typed-array": "^1.1.10" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/typed-array-byte-offset": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/typed-array-byte-offset/-/typed-array-byte-offset-1.0.0.tgz", + "integrity": "sha512-RD97prjEt9EL8YgAgpOkf3O4IF9lhJFr9g0htQkm0rchFp/Vx7LW5Q8fSXXub7BXAODyUQohRMyOc3faCPd0hg==", + "dev": true, + "peer": true, + "dependencies": { + "available-typed-arrays": "^1.0.5", + "call-bind": "^1.0.2", + "for-each": "^0.3.3", + "has-proto": "^1.0.1", + "is-typed-array": "^1.1.10" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/typed-array-length": { + "version": "1.0.4", + "resolved": "https://registry.npmjs.org/typed-array-length/-/typed-array-length-1.0.4.tgz", + "integrity": "sha512-KjZypGq+I/H7HI5HlOoGHkWUUGq+Q0TPhQurLbyrVrvnKTBgzLhIJ7j6J/XTQOi0d1RjyZ0wdas8bKs2p0x3Ng==", + "dev": true, + "peer": true, + "dependencies": { + "call-bind": "^1.0.2", + "for-each": "^0.3.3", + "is-typed-array": "^1.1.9" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/typescript": { + "version": "5.1.6", + "resolved": "https://registry.npmjs.org/typescript/-/typescript-5.1.6.tgz", + "integrity": "sha512-zaWCozRZ6DLEWAWFrVDz1H6FVXzUSfTy5FUMWsQlU8Ym5JP9eO4xkTIROFCQvhQf61z6O/G6ugw3SgAnvvm+HA==", + "dev": true, + "bin": { + "tsc": "bin/tsc", + "tsserver": "bin/tsserver" + }, + "engines": { + "node": ">=14.17" + } + }, + "node_modules/typescript-eslint": { + "version": "0.0.1-alpha.0", + "resolved": "https://registry.npmjs.org/typescript-eslint/-/typescript-eslint-0.0.1-alpha.0.tgz", + "integrity": "sha512-1hNKM37dAWML/2ltRXupOq2uqcdRQyDFphl+341NTPXFLLLiDhErXx8VtaSLh3xP7SyHZdcCgpt9boYYVb3fQg==", + "dev": true + }, + "node_modules/unbox-primitive": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/unbox-primitive/-/unbox-primitive-1.0.2.tgz", + "integrity": "sha512-61pPlCD9h51VoreyJ0BReideM3MDKMKnh6+V9L08331ipq6Q8OFXZYiqP6n/tbHx4s5I9uRhcye6BrbkizkBDw==", + "dev": true, + "peer": true, + "dependencies": { + "call-bind": "^1.0.2", + "has-bigints": "^1.0.2", + "has-symbols": "^1.0.3", + "which-boxed-primitive": "^1.0.2" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/undici-types": { + "version": "5.26.5", + "resolved": "https://registry.npmjs.org/undici-types/-/undici-types-5.26.5.tgz", + "integrity": "sha512-JlCMO+ehdEIKqlFxk6IfVoAUVmgz7cU7zD/h9XZ0qzeosSHmUJVOzSQvvYSYWXkFXC+IfLKSIffhv0sVZup6pA==", + "dev": true + }, + "node_modules/universalify": { + "version": "0.1.2", + "resolved": "https://registry.npmjs.org/universalify/-/universalify-0.1.2.tgz", + "integrity": "sha512-rBJeI5CXAlmy1pV+617WB9J63U6XcazHHF2f2dbJix4XzpUF0RS3Zbj0FGIOCAva5P/d/GBOYaACQ1w+0azUkg==", + "dev": true, + "engines": { + "node": ">= 4.0.0" + } + }, + "node_modules/update-browserslist-db": { + "version": "1.0.13", + "resolved": "https://registry.npmjs.org/update-browserslist-db/-/update-browserslist-db-1.0.13.tgz", + "integrity": "sha512-xebP81SNcPuNpPP3uzeW1NYXxI3rxyJzF3pD6sH4jE7o/IX+WtSpwnVU+qIsDPyk0d3hmFQ7mjqc6AtV604hbg==", + "dev": true, + "funding": [ + { + "type": "opencollective", + "url": "https://opencollective.com/browserslist" + }, + { + "type": "tidelift", + "url": "https://tidelift.com/funding/github/npm/browserslist" + }, + { + "type": "github", + "url": "https://github.com/sponsors/ai" + } + ], + "dependencies": { + "escalade": "^3.1.1", + "picocolors": "^1.0.0" + }, + "bin": { + "update-browserslist-db": "cli.js" + }, + "peerDependencies": { + "browserslist": ">= 4.21.0" + } + }, + "node_modules/uri-js": { + "version": "4.4.1", + "resolved": "https://registry.npmjs.org/uri-js/-/uri-js-4.4.1.tgz", + "integrity": "sha512-7rKUyy33Q1yc98pQ1DAmLtwX109F7TIfWlW1Ydo8Wl1ii1SeHieeh0HHfPeL2fMXK6z0s8ecKs9frCuLJvndBg==", + "dev": true, + "dependencies": { + "punycode": "^2.1.0" + } + }, + "node_modules/util-deprecate": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/util-deprecate/-/util-deprecate-1.0.2.tgz", + "integrity": "sha512-EPD5q1uXyFxJpCrLnCc1nHnq3gOa6DZBocAIiI2TaSCA7VCJ1UJDMagCzIkXNsUYfD1daK//LTEQ8xiIbrHtcw==", + "dev": true + }, + "node_modules/validate-npm-package-license": { + "version": "3.0.4", + "resolved": "https://registry.npmjs.org/validate-npm-package-license/-/validate-npm-package-license-3.0.4.tgz", + "integrity": "sha512-DpKm2Ui/xN7/HQKCtpZxoRWBhZ9Z0kqtygG8XCgNQ8ZlDnxuQmWhj566j8fN4Cu3/JmbhsDo7fcAJq4s9h27Ew==", + "dev": true, + "dependencies": { + "spdx-correct": "^3.0.0", + "spdx-expression-parse": "^3.0.0" + } + }, + "node_modules/vite": { + "version": "4.5.1", + "resolved": "https://registry.npmjs.org/vite/-/vite-4.5.1.tgz", + "integrity": "sha512-AXXFaAJ8yebyqzoNB9fu2pHoo/nWX+xZlaRwoeYUxEqBO+Zj4msE5G+BhGBll9lYEKv9Hfks52PAF2X7qDYXQA==", + "dev": true, + "dependencies": { + "esbuild": "^0.18.10", + "postcss": "^8.4.27", + "rollup": "^3.27.1" + }, + "bin": { + "vite": "bin/vite.js" + }, + "engines": { + "node": "^14.18.0 || >=16.0.0" + }, + "funding": { + "url": "https://github.com/vitejs/vite?sponsor=1" + }, + "optionalDependencies": { + "fsevents": "~2.3.2" + }, + "peerDependencies": { + "@types/node": ">= 14", + "less": "*", + "lightningcss": "^1.21.0", + "sass": "*", + "stylus": "*", + "sugarss": "*", + "terser": "^5.4.0" + }, + "peerDependenciesMeta": { + "@types/node": { + "optional": true + }, + "less": { + "optional": true + }, + "lightningcss": { + "optional": true + }, + "sass": { + "optional": true + }, + "stylus": { + "optional": true + }, + "sugarss": { + "optional": true + }, + "terser": { + "optional": true + } + } + }, + "node_modules/vite-plugin-babel": { + "version": "1.2.0", + "resolved": "https://registry.npmjs.org/vite-plugin-babel/-/vite-plugin-babel-1.2.0.tgz", + "integrity": "sha512-ltAnq535Ubf9sDbVCkztAdkwx5aQbNrwPFs+iZTJ5FaAhTdxjqmLGpxsAaRfJWEKBJ/kFf9KwMoTdArm0IRUUw==", + "dev": true, + "peerDependencies": { + "@babel/core": "^7.0.0", + "vite": "^2.7.0 || ^3.0.0 || ^4.0.0 || ^5.0.0" + } + }, + "node_modules/vite-plugin-checker": { + "version": "0.6.2", + "resolved": "https://registry.npmjs.org/vite-plugin-checker/-/vite-plugin-checker-0.6.2.tgz", + "integrity": "sha512-YvvvQ+IjY09BX7Ab+1pjxkELQsBd4rPhWNw8WLBeFVxu/E7O+n6VYAqNsKdK/a2luFlX/sMpoWdGFfg4HvwdJQ==", + "dev": true, + "dependencies": { + "@babel/code-frame": "^7.12.13", + "ansi-escapes": "^4.3.0", + "chalk": "^4.1.1", + "chokidar": "^3.5.1", + "commander": "^8.0.0", + "fast-glob": "^3.2.7", + "fs-extra": "^11.1.0", + "lodash.debounce": "^4.0.8", + "lodash.pick": "^4.4.0", + "npm-run-path": "^4.0.1", + "semver": "^7.5.0", + "strip-ansi": "^6.0.0", + "tiny-invariant": "^1.1.0", + "vscode-languageclient": "^7.0.0", + "vscode-languageserver": "^7.0.0", + "vscode-languageserver-textdocument": "^1.0.1", + "vscode-uri": "^3.0.2" + }, + "engines": { + "node": ">=14.16" + }, + "peerDependencies": { + "eslint": ">=7", + "meow": "^9.0.0", + "optionator": "^0.9.1", + "stylelint": ">=13", + "typescript": "*", + "vite": ">=2.0.0", + "vls": "*", + "vti": "*", + "vue-tsc": ">=1.3.9" + }, + "peerDependenciesMeta": { + "eslint": { + "optional": true + }, + "meow": { + "optional": true + }, + "optionator": { + "optional": true + }, + "stylelint": { + "optional": true + }, + "typescript": { + "optional": true + }, + "vls": { + "optional": true + }, + "vti": { + "optional": true + }, + "vue-tsc": { + "optional": true + } + } + }, + "node_modules/vite-plugin-checker/node_modules/ansi-styles": { + "version": "4.3.0", + "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.3.0.tgz", + "integrity": "sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==", + "dev": true, + "dependencies": { + "color-convert": "^2.0.1" + }, + "engines": { + "node": ">=8" + }, + "funding": { + "url": "https://github.com/chalk/ansi-styles?sponsor=1" + } + }, + "node_modules/vite-plugin-checker/node_modules/chalk": { + "version": "4.1.2", + "resolved": "https://registry.npmjs.org/chalk/-/chalk-4.1.2.tgz", + "integrity": "sha512-oKnbhFyRIXpUuez8iBMmyEa4nbj4IOQyuhc/wy9kY7/WVPcwIO9VA668Pu8RkO7+0G76SLROeyw9CpQ061i4mA==", + "dev": true, + "dependencies": { + "ansi-styles": "^4.1.0", + "supports-color": "^7.1.0" + }, + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/chalk/chalk?sponsor=1" + } + }, + "node_modules/vite-plugin-checker/node_modules/color-convert": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-2.0.1.tgz", + "integrity": "sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==", + "dev": true, + "dependencies": { + "color-name": "~1.1.4" + }, + "engines": { + "node": ">=7.0.0" + } + }, + "node_modules/vite-plugin-checker/node_modules/color-name": { + "version": "1.1.4", + "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.4.tgz", + "integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==", + "dev": true + }, + "node_modules/vite-plugin-checker/node_modules/commander": { + "version": "8.3.0", + "resolved": "https://registry.npmjs.org/commander/-/commander-8.3.0.tgz", + "integrity": "sha512-OkTL9umf+He2DZkUq8f8J9of7yL6RJKI24dVITBmNfZBmri9zYZQrKkuXiKhyfPSu8tUhnVBB1iKXevvnlR4Ww==", + "dev": true, + "engines": { + "node": ">= 12" + } + }, + "node_modules/vite-plugin-checker/node_modules/fs-extra": { + "version": "11.2.0", + "resolved": "https://registry.npmjs.org/fs-extra/-/fs-extra-11.2.0.tgz", + "integrity": "sha512-PmDi3uwK5nFuXh7XDTlVnS17xJS7vW36is2+w3xcv8SVxiB4NyATf4ctkVY5bkSjX0Y4nbvZCq1/EjtEyr9ktw==", + "dev": true, + "dependencies": { + "graceful-fs": "^4.2.0", + "jsonfile": "^6.0.1", + "universalify": "^2.0.0" + }, + "engines": { + "node": ">=14.14" + } + }, + "node_modules/vite-plugin-checker/node_modules/has-flag": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-4.0.0.tgz", + "integrity": "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==", + "dev": true, + "engines": { + "node": ">=8" + } + }, + "node_modules/vite-plugin-checker/node_modules/jsonfile": { + "version": "6.1.0", + "resolved": "https://registry.npmjs.org/jsonfile/-/jsonfile-6.1.0.tgz", + "integrity": "sha512-5dgndWOriYSm5cnYaJNhalLNDKOqFwyDB/rr1E9ZsGciGvKPs8R2xYGCacuf3z6K1YKDz182fd+fY3cn3pMqXQ==", + "dev": true, + "dependencies": { + "universalify": "^2.0.0" + }, + "optionalDependencies": { + "graceful-fs": "^4.1.6" + } + }, + "node_modules/vite-plugin-checker/node_modules/lru-cache": { + "version": "6.0.0", + "resolved": "https://registry.npmjs.org/lru-cache/-/lru-cache-6.0.0.tgz", + "integrity": "sha512-Jo6dJ04CmSjuznwJSS3pUeWmd/H0ffTlkXXgwZi+eq1UCmqQwCh+eLsYOYCwY991i2Fah4h1BEMCx4qThGbsiA==", + "dev": true, + "dependencies": { + "yallist": "^4.0.0" + }, + "engines": { + "node": ">=10" + } + }, + "node_modules/vite-plugin-checker/node_modules/semver": { + "version": "7.5.4", + "resolved": "https://registry.npmjs.org/semver/-/semver-7.5.4.tgz", + "integrity": "sha512-1bCSESV6Pv+i21Hvpxp3Dx+pSD8lIPt8uVjRrxAUt/nbswYc+tK6Y2btiULjd4+fnq15PX+nqQDC7Oft7WkwcA==", + "dev": true, + "dependencies": { + "lru-cache": "^6.0.0" + }, + "bin": { + "semver": "bin/semver.js" + }, + "engines": { + "node": ">=10" + } + }, + "node_modules/vite-plugin-checker/node_modules/supports-color": { + "version": "7.2.0", + "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-7.2.0.tgz", + "integrity": "sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw==", + "dev": true, + "dependencies": { + "has-flag": "^4.0.0" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/vite-plugin-checker/node_modules/universalify": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/universalify/-/universalify-2.0.1.tgz", + "integrity": "sha512-gptHNQghINnc/vTGIk0SOFGFNXw7JVrlRUtConJRlvaw6DuX0wO5Jeko9sWrMBhh+PsYAZ7oXAiOnf/UKogyiw==", + "dev": true, + "engines": { + "node": ">= 10.0.0" + } + }, + "node_modules/vite-plugin-checker/node_modules/yallist": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/yallist/-/yallist-4.0.0.tgz", + "integrity": "sha512-3wdGidZyq5PB084XLES5TpOSRA3wjXAlIWMhum2kRcv/41Sn2emQ0dycQW4uZXLejwKvg6EsvbdlVL+FYEct7A==", + "dev": true + }, + "node_modules/vite-plugin-eslint": { + "version": "1.8.1", + "resolved": "https://registry.npmjs.org/vite-plugin-eslint/-/vite-plugin-eslint-1.8.1.tgz", + "integrity": "sha512-PqdMf3Y2fLO9FsNPmMX+//2BF5SF8nEWspZdgl4kSt7UvHDRHVVfHvxsD7ULYzZrJDGRxR81Nq7TOFgwMnUang==", + "dev": true, + "dependencies": { + "@rollup/pluginutils": "^4.2.1", + "@types/eslint": "^8.4.5", + "rollup": "^2.77.2" + }, + "peerDependencies": { + "eslint": ">=7", + "vite": ">=2" + } + }, + "node_modules/vite-plugin-eslint/node_modules/rollup": { + "version": "2.79.1", + "resolved": "https://registry.npmjs.org/rollup/-/rollup-2.79.1.tgz", + "integrity": "sha512-uKxbd0IhMZOhjAiD5oAFp7BqvkA4Dv47qpOCtaNvng4HBwdbWtdOh8f5nZNuk2rp51PMGk3bzfWu5oayNEuYnw==", + "dev": true, + "bin": { + "rollup": "dist/bin/rollup" + }, + "engines": { + "node": ">=10.0.0" + }, + "optionalDependencies": { + "fsevents": "~2.3.2" + } + }, + "node_modules/vite-plugin-full-reload": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/vite-plugin-full-reload/-/vite-plugin-full-reload-1.1.0.tgz", + "integrity": "sha512-3cObNDzX6DdfhD9E7kf6w2mNunFpD7drxyNgHLw+XwIYAgb+Xt16SEXo0Up4VH+TMf3n+DSVJZtW2POBGcBYAA==", + "dev": true, + "dependencies": { + "picocolors": "^1.0.0", + "picomatch": "^2.3.1" + } + }, + "node_modules/vite-plugin-stylelint": { + "version": "5.3.1", + "resolved": "https://registry.npmjs.org/vite-plugin-stylelint/-/vite-plugin-stylelint-5.3.1.tgz", + "integrity": "sha512-M/hSdfOwnOVghbJDeuuYIU2xO/MMukYR8QcEyNKFPG8ro1L+DlTdViix2B2d/FvAw14WPX88ckA5A7NvUjJz8w==", + "dev": true, + "dependencies": { + "@rollup/pluginutils": "^5.1.0", + "chokidar": "^3.5.3", + "debug": "^4.3.4" + }, + "engines": { + "node": ">=14.18" + }, + "peerDependencies": { + "@types/stylelint": "^13.0.0", + "postcss": "^7.0.0 || ^8.0.0", + "rollup": "^2.0.0 || ^3.0.0 || ^4.0.0", + "stylelint": "^13.0.0 || ^14.0.0 || ^15.0.0 || ^16.0.0", + "vite": "^2.0.0 || ^3.0.0 || ^4.0.0 || ^5.0.0" + }, + "peerDependenciesMeta": { + "@types/stylelint": { + "optional": true + }, + "postcss": { + "optional": true + }, + "rollup": { + "optional": true + } + } + }, + "node_modules/vite-plugin-stylelint/node_modules/@rollup/pluginutils": { + "version": "5.1.0", + "resolved": "https://registry.npmjs.org/@rollup/pluginutils/-/pluginutils-5.1.0.tgz", + "integrity": "sha512-XTIWOPPcpvyKI6L1NHo0lFlCyznUEyPmPY1mc3KpPVDYulHSTvyeLNVW00QTLIAFNhR3kYnJTQHeGqU4M3n09g==", + "dev": true, + "dependencies": { + "@types/estree": "^1.0.0", + "estree-walker": "^2.0.2", + "picomatch": "^2.3.1" + }, + "engines": { + "node": ">=14.0.0" + }, + "peerDependencies": { + "rollup": "^1.20.0||^2.0.0||^3.0.0||^4.0.0" + }, + "peerDependenciesMeta": { + "rollup": { + "optional": true + } + } + }, + "node_modules/vscode-jsonrpc": { + "version": "6.0.0", + "resolved": "https://registry.npmjs.org/vscode-jsonrpc/-/vscode-jsonrpc-6.0.0.tgz", + "integrity": "sha512-wnJA4BnEjOSyFMvjZdpiOwhSq9uDoK8e/kpRJDTaMYzwlkrhG1fwDIZI94CLsLzlCK5cIbMMtFlJlfR57Lavmg==", + "dev": true, + "engines": { + "node": ">=8.0.0 || >=10.0.0" + } + }, + "node_modules/vscode-languageclient": { + "version": "7.0.0", + "resolved": "https://registry.npmjs.org/vscode-languageclient/-/vscode-languageclient-7.0.0.tgz", + "integrity": "sha512-P9AXdAPlsCgslpP9pRxYPqkNYV7Xq8300/aZDpO35j1fJm/ncize8iGswzYlcvFw5DQUx4eVk+KvfXdL0rehNg==", + "dev": true, + "dependencies": { + "minimatch": "^3.0.4", + "semver": "^7.3.4", + "vscode-languageserver-protocol": "3.16.0" + }, + "engines": { + "vscode": "^1.52.0" + } + }, + "node_modules/vscode-languageclient/node_modules/lru-cache": { + "version": "6.0.0", + "resolved": "https://registry.npmjs.org/lru-cache/-/lru-cache-6.0.0.tgz", + "integrity": "sha512-Jo6dJ04CmSjuznwJSS3pUeWmd/H0ffTlkXXgwZi+eq1UCmqQwCh+eLsYOYCwY991i2Fah4h1BEMCx4qThGbsiA==", + "dev": true, + "dependencies": { + "yallist": "^4.0.0" + }, + "engines": { + "node": ">=10" + } + }, + "node_modules/vscode-languageclient/node_modules/semver": { + "version": "7.5.4", + "resolved": "https://registry.npmjs.org/semver/-/semver-7.5.4.tgz", + "integrity": "sha512-1bCSESV6Pv+i21Hvpxp3Dx+pSD8lIPt8uVjRrxAUt/nbswYc+tK6Y2btiULjd4+fnq15PX+nqQDC7Oft7WkwcA==", + "dev": true, + "dependencies": { + "lru-cache": "^6.0.0" + }, + "bin": { + "semver": "bin/semver.js" + }, + "engines": { + "node": ">=10" + } + }, + "node_modules/vscode-languageclient/node_modules/yallist": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/yallist/-/yallist-4.0.0.tgz", + "integrity": "sha512-3wdGidZyq5PB084XLES5TpOSRA3wjXAlIWMhum2kRcv/41Sn2emQ0dycQW4uZXLejwKvg6EsvbdlVL+FYEct7A==", + "dev": true + }, + "node_modules/vscode-languageserver": { + "version": "7.0.0", + "resolved": "https://registry.npmjs.org/vscode-languageserver/-/vscode-languageserver-7.0.0.tgz", + "integrity": "sha512-60HTx5ID+fLRcgdHfmz0LDZAXYEV68fzwG0JWwEPBode9NuMYTIxuYXPg4ngO8i8+Ou0lM7y6GzaYWbiDL0drw==", + "dev": true, + "dependencies": { + "vscode-languageserver-protocol": "3.16.0" + }, + "bin": { + "installServerIntoExtension": "bin/installServerIntoExtension" + } + }, + "node_modules/vscode-languageserver-protocol": { + "version": "3.16.0", + "resolved": "https://registry.npmjs.org/vscode-languageserver-protocol/-/vscode-languageserver-protocol-3.16.0.tgz", + "integrity": "sha512-sdeUoAawceQdgIfTI+sdcwkiK2KU+2cbEYA0agzM2uqaUy2UpnnGHtWTHVEtS0ES4zHU0eMFRGN+oQgDxlD66A==", + "dev": true, + "dependencies": { + "vscode-jsonrpc": "6.0.0", + "vscode-languageserver-types": "3.16.0" + } + }, + "node_modules/vscode-languageserver-textdocument": { + "version": "1.0.11", + "resolved": "https://registry.npmjs.org/vscode-languageserver-textdocument/-/vscode-languageserver-textdocument-1.0.11.tgz", + "integrity": "sha512-X+8T3GoiwTVlJbicx/sIAF+yuJAqz8VvwJyoMVhwEMoEKE/fkDmrqUgDMyBECcM2A2frVZIUj5HI/ErRXCfOeA==", + "dev": true + }, + "node_modules/vscode-languageserver-types": { + "version": "3.16.0", + "resolved": "https://registry.npmjs.org/vscode-languageserver-types/-/vscode-languageserver-types-3.16.0.tgz", + "integrity": "sha512-k8luDIWJWyenLc5ToFQQMaSrqCHiLwyKPHKPQZ5zz21vM+vIVUSvsRpcbiECH4WR88K2XZqc4ScRcZ7nk/jbeA==", + "dev": true + }, + "node_modules/vscode-uri": { + "version": "3.0.8", + "resolved": "https://registry.npmjs.org/vscode-uri/-/vscode-uri-3.0.8.tgz", + "integrity": "sha512-AyFQ0EVmsOZOlAnxoFOGOq1SQDWAB7C6aqMGS23svWAllfOaxbuFvcT8D1i8z3Gyn8fraVeZNNmN6e9bxxXkKw==", + "dev": true + }, + "node_modules/vue": { + "version": "3.3.13", + "resolved": "https://registry.npmjs.org/vue/-/vue-3.3.13.tgz", + "integrity": "sha512-LDnUpQvDgsfc0u/YgtAgTMXJlJQqjkxW1PVcOnJA5cshPleULDjHi7U45pl2VJYazSSvLH8UKcid/kzH8I0a0Q==", + "dev": true, + "dependencies": { + "@vue/compiler-dom": "3.3.13", + "@vue/compiler-sfc": "3.3.13", + "@vue/runtime-dom": "3.3.13", + "@vue/server-renderer": "3.3.13", + "@vue/shared": "3.3.13" + }, + "peerDependencies": { + "typescript": "*" + }, + "peerDependenciesMeta": { + "typescript": { + "optional": true + } + } + }, + "node_modules/vue-eslint-parser": { + "version": "9.3.2", + "resolved": "https://registry.npmjs.org/vue-eslint-parser/-/vue-eslint-parser-9.3.2.tgz", + "integrity": "sha512-q7tWyCVaV9f8iQyIA5Mkj/S6AoJ9KBN8IeUSf3XEmBrOtxOZnfTg5s4KClbZBCK3GtnT/+RyCLZyDHuZwTuBjg==", + "dev": true, + "dependencies": { + "debug": "^4.3.4", + "eslint-scope": "^7.1.1", + "eslint-visitor-keys": "^3.3.0", + "espree": "^9.3.1", + "esquery": "^1.4.0", + "lodash": "^4.17.21", + "semver": "^7.3.6" + }, + "engines": { + "node": "^14.17.0 || >=16.0.0" + }, + "funding": { + "url": "https://github.com/sponsors/mysticatea" + }, + "peerDependencies": { + "eslint": ">=6.0.0" + } + }, + "node_modules/vue-eslint-parser/node_modules/eslint-scope": { + "version": "7.2.2", + "resolved": "https://registry.npmjs.org/eslint-scope/-/eslint-scope-7.2.2.tgz", + "integrity": "sha512-dOt21O7lTMhDM+X9mB4GX+DZrZtCUJPL/wlcTqxyrx5IvO0IYtILdtrQGQp+8n5S0gwSVmOf9NQrjMOgfQZlIg==", + "dev": true, + "dependencies": { + "esrecurse": "^4.3.0", + "estraverse": "^5.2.0" + }, + "engines": { + "node": "^12.22.0 || ^14.17.0 || >=16.0.0" + }, + "funding": { + "url": "https://opencollective.com/eslint" + } + }, + "node_modules/vue-eslint-parser/node_modules/estraverse": { + "version": "5.3.0", + "resolved": "https://registry.npmjs.org/estraverse/-/estraverse-5.3.0.tgz", + "integrity": "sha512-MMdARuVEQziNTeJD8DgMqmhwR11BRQ/cBP+pLtYdSTnf3MIO8fFeiINEbX36ZdNlfU/7A9f3gUw49B3oQsvwBA==", + "dev": true, + "engines": { + "node": ">=4.0" + } + }, + "node_modules/vue-eslint-parser/node_modules/lru-cache": { + "version": "6.0.0", + "resolved": "https://registry.npmjs.org/lru-cache/-/lru-cache-6.0.0.tgz", + "integrity": "sha512-Jo6dJ04CmSjuznwJSS3pUeWmd/H0ffTlkXXgwZi+eq1UCmqQwCh+eLsYOYCwY991i2Fah4h1BEMCx4qThGbsiA==", + "dev": true, + "dependencies": { + "yallist": "^4.0.0" + }, + "engines": { + "node": ">=10" + } + }, + "node_modules/vue-eslint-parser/node_modules/semver": { + "version": "7.5.4", + "resolved": "https://registry.npmjs.org/semver/-/semver-7.5.4.tgz", + "integrity": "sha512-1bCSESV6Pv+i21Hvpxp3Dx+pSD8lIPt8uVjRrxAUt/nbswYc+tK6Y2btiULjd4+fnq15PX+nqQDC7Oft7WkwcA==", + "dev": true, + "dependencies": { + "lru-cache": "^6.0.0" + }, + "bin": { + "semver": "bin/semver.js" + }, + "engines": { + "node": ">=10" + } + }, + "node_modules/vue-eslint-parser/node_modules/yallist": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/yallist/-/yallist-4.0.0.tgz", + "integrity": "sha512-3wdGidZyq5PB084XLES5TpOSRA3wjXAlIWMhum2kRcv/41Sn2emQ0dycQW4uZXLejwKvg6EsvbdlVL+FYEct7A==", + "dev": true + }, + "node_modules/vue-loader": { + "version": "17.3.1", + "resolved": "https://registry.npmjs.org/vue-loader/-/vue-loader-17.3.1.tgz", + "integrity": "sha512-nmVu7KU8geOyzsStyyaxID/uBGDMS8BkPXb6Lu2SNkMawriIbb+hYrNtgftHMKxOSkjjjTF5OSSwPo3KP59egg==", + "dev": true, + "dependencies": { + "chalk": "^4.1.0", + "hash-sum": "^2.0.0", + "watchpack": "^2.4.0" + }, + "peerDependencies": { + "webpack": "^4.1.0 || ^5.0.0-0" + }, + "peerDependenciesMeta": { + "@vue/compiler-sfc": { + "optional": true + }, + "vue": { + "optional": true + } + } + }, + "node_modules/vue-loader/node_modules/ansi-styles": { + "version": "4.3.0", + "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.3.0.tgz", + "integrity": "sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==", + "dev": true, + "dependencies": { + "color-convert": "^2.0.1" + }, + "engines": { + "node": ">=8" + }, + "funding": { + "url": "https://github.com/chalk/ansi-styles?sponsor=1" + } + }, + "node_modules/vue-loader/node_modules/chalk": { + "version": "4.1.2", + "resolved": "https://registry.npmjs.org/chalk/-/chalk-4.1.2.tgz", + "integrity": "sha512-oKnbhFyRIXpUuez8iBMmyEa4nbj4IOQyuhc/wy9kY7/WVPcwIO9VA668Pu8RkO7+0G76SLROeyw9CpQ061i4mA==", + "dev": true, + "dependencies": { + "ansi-styles": "^4.1.0", + "supports-color": "^7.1.0" + }, + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/chalk/chalk?sponsor=1" + } + }, + "node_modules/vue-loader/node_modules/color-convert": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-2.0.1.tgz", + "integrity": "sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==", + "dev": true, + "dependencies": { + "color-name": "~1.1.4" + }, + "engines": { + "node": ">=7.0.0" + } + }, + "node_modules/vue-loader/node_modules/color-name": { + "version": "1.1.4", + "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.4.tgz", + "integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==", + "dev": true + }, + "node_modules/vue-loader/node_modules/has-flag": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-4.0.0.tgz", + "integrity": "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==", + "dev": true, + "engines": { + "node": ">=8" + } + }, + "node_modules/vue-loader/node_modules/supports-color": { + "version": "7.2.0", + "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-7.2.0.tgz", + "integrity": "sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw==", + "dev": true, + "dependencies": { + "has-flag": "^4.0.0" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/vue-template-compiler": { + "version": "2.7.15", + "resolved": "https://registry.npmjs.org/vue-template-compiler/-/vue-template-compiler-2.7.15.tgz", + "integrity": "sha512-yQxjxMptBL7UAog00O8sANud99C6wJF+7kgbcwqkvA38vCGF7HWE66w0ZFnS/kX5gSoJr/PQ4/oS3Ne2pW37Og==", + "dev": true, + "dependencies": { + "de-indent": "^1.0.2", + "he": "^1.2.0" + } + }, + "node_modules/vue-tsc": { + "version": "1.8.11", + "resolved": "https://registry.npmjs.org/vue-tsc/-/vue-tsc-1.8.11.tgz", + "integrity": "sha512-BzfiMdPqDHBlysx4g26NkfVHSQwGD/lTRausmxN9sFyjXz34OWfsbkh0YsVkX84Hu65In1fFlxHiG39Tr4Vojg==", + "dev": true, + "dependencies": { + "@vue/language-core": "1.8.11", + "@vue/typescript": "1.8.11", + "semver": "^7.3.8" + }, + "bin": { + "vue-tsc": "bin/vue-tsc.js" + }, + "peerDependencies": { + "typescript": "*" + } + }, + "node_modules/vue-tsc/node_modules/lru-cache": { + "version": "6.0.0", + "resolved": "https://registry.npmjs.org/lru-cache/-/lru-cache-6.0.0.tgz", + "integrity": "sha512-Jo6dJ04CmSjuznwJSS3pUeWmd/H0ffTlkXXgwZi+eq1UCmqQwCh+eLsYOYCwY991i2Fah4h1BEMCx4qThGbsiA==", + "dev": true, + "dependencies": { + "yallist": "^4.0.0" + }, + "engines": { + "node": ">=10" + } + }, + "node_modules/vue-tsc/node_modules/semver": { + "version": "7.5.4", + "resolved": "https://registry.npmjs.org/semver/-/semver-7.5.4.tgz", + "integrity": "sha512-1bCSESV6Pv+i21Hvpxp3Dx+pSD8lIPt8uVjRrxAUt/nbswYc+tK6Y2btiULjd4+fnq15PX+nqQDC7Oft7WkwcA==", + "dev": true, + "dependencies": { + "lru-cache": "^6.0.0" + }, + "bin": { + "semver": "bin/semver.js" + }, + "engines": { + "node": ">=10" + } + }, + "node_modules/vue-tsc/node_modules/yallist": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/yallist/-/yallist-4.0.0.tgz", + "integrity": "sha512-3wdGidZyq5PB084XLES5TpOSRA3wjXAlIWMhum2kRcv/41Sn2emQ0dycQW4uZXLejwKvg6EsvbdlVL+FYEct7A==", + "dev": true + }, + "node_modules/watchpack": { + "version": "2.4.0", + "resolved": "https://registry.npmjs.org/watchpack/-/watchpack-2.4.0.tgz", + "integrity": "sha512-Lcvm7MGST/4fup+ifyKi2hjyIAwcdI4HRgtvTpIUxBRhB+RFtUh8XtDOxUfctVCnhVi+QQj49i91OyvzkJl6cg==", + "dev": true, + "dependencies": { + "glob-to-regexp": "^0.4.1", + "graceful-fs": "^4.1.2" + }, + "engines": { + "node": ">=10.13.0" + } + }, + "node_modules/webpack": { + "version": "5.89.0", + "resolved": "https://registry.npmjs.org/webpack/-/webpack-5.89.0.tgz", + "integrity": "sha512-qyfIC10pOr70V+jkmud8tMfajraGCZMBWJtrmuBymQKCrLTRejBI8STDp1MCyZu/QTdZSeacCQYpYNQVOzX5kw==", + "dev": true, + "peer": true, + "dependencies": { + "@types/eslint-scope": "^3.7.3", + "@types/estree": "^1.0.0", + "@webassemblyjs/ast": "^1.11.5", + "@webassemblyjs/wasm-edit": "^1.11.5", + "@webassemblyjs/wasm-parser": "^1.11.5", + "acorn": "^8.7.1", + "acorn-import-assertions": "^1.9.0", + "browserslist": "^4.14.5", + "chrome-trace-event": "^1.0.2", + "enhanced-resolve": "^5.15.0", + "es-module-lexer": "^1.2.1", + "eslint-scope": "5.1.1", + "events": "^3.2.0", + "glob-to-regexp": "^0.4.1", + "graceful-fs": "^4.2.9", + "json-parse-even-better-errors": "^2.3.1", + "loader-runner": "^4.2.0", + "mime-types": "^2.1.27", + "neo-async": "^2.6.2", + "schema-utils": "^3.2.0", + "tapable": "^2.1.1", + "terser-webpack-plugin": "^5.3.7", + "watchpack": "^2.4.0", + "webpack-sources": "^3.2.3" + }, + "bin": { + "webpack": "bin/webpack.js" + }, + "engines": { + "node": ">=10.13.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/webpack" + }, + "peerDependenciesMeta": { + "webpack-cli": { + "optional": true + } + } + }, + "node_modules/webpack-sources": { + "version": "3.2.3", + "resolved": "https://registry.npmjs.org/webpack-sources/-/webpack-sources-3.2.3.tgz", + "integrity": "sha512-/DyMEOrDgLKKIG0fmvtz+4dUX/3Ghozwgm6iPp8KRhvn+eQf9+Q7GWxVNMk3+uCPWfdXYC4ExGBckIXdFEfH1w==", + "dev": true, + "peer": true, + "engines": { + "node": ">=10.13.0" + } + }, + "node_modules/which": { + "version": "2.0.2", + "resolved": "https://registry.npmjs.org/which/-/which-2.0.2.tgz", + "integrity": "sha512-BLI3Tl1TW3Pvl70l3yq3Y64i+awpwXqsGBYWkkqMtnbXgrMD+yj7rhW0kuEDxzJaYXGjEW5ogapKNMEKNMjibA==", + "dev": true, + "dependencies": { + "isexe": "^2.0.0" + }, + "bin": { + "node-which": "bin/node-which" + }, + "engines": { + "node": ">= 8" + } + }, + "node_modules/which-boxed-primitive": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/which-boxed-primitive/-/which-boxed-primitive-1.0.2.tgz", + "integrity": "sha512-bwZdv0AKLpplFY2KZRX6TvyuN7ojjr7lwkg6ml0roIy9YeuSr7JS372qlNW18UQYzgYK9ziGcerWqZOmEn9VNg==", + "dev": true, + "peer": true, + "dependencies": { + "is-bigint": "^1.0.1", + "is-boolean-object": "^1.1.0", + "is-number-object": "^1.0.4", + "is-string": "^1.0.5", + "is-symbol": "^1.0.3" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/which-typed-array": { + "version": "1.1.13", + "resolved": "https://registry.npmjs.org/which-typed-array/-/which-typed-array-1.1.13.tgz", + "integrity": "sha512-P5Nra0qjSncduVPEAr7xhoF5guty49ArDTwzJ/yNuPIbZppyRxFQsRCWrocxIY+CnMVG+qfbU2FmDKyvSGClow==", + "dev": true, + "peer": true, + "dependencies": { + "available-typed-arrays": "^1.0.5", + "call-bind": "^1.0.4", + "for-each": "^0.3.3", + "gopd": "^1.0.1", + "has-tostringtag": "^1.0.0" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/wrappy": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/wrappy/-/wrappy-1.0.2.tgz", + "integrity": "sha512-l4Sp/DRseor9wL6EvV2+TuQn63dMkPjZ/sp9XkghTEbV9KlPS1xUsZ3u7/IQO4wxtcFB4bgpQPRcR3QCvezPcQ==", + "dev": true + }, + "node_modules/write-file-atomic": { + "version": "5.0.1", + "resolved": "https://registry.npmjs.org/write-file-atomic/-/write-file-atomic-5.0.1.tgz", + "integrity": "sha512-+QU2zd6OTD8XWIJCbffaiQeH9U73qIqafo1x6V1snCWYGJf6cVE0cDR4D8xRzcEnfI21IFrUPzPGtcPf8AC+Rw==", + "dev": true, + "dependencies": { + "imurmurhash": "^0.1.4", + "signal-exit": "^4.0.1" + }, + "engines": { + "node": "^14.17.0 || ^16.13.0 || >=18.0.0" + } + }, + "node_modules/xml-name-validator": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/xml-name-validator/-/xml-name-validator-4.0.0.tgz", + "integrity": "sha512-ICP2e+jsHvAj2E2lIHxa5tjXRlKDJo4IdvPvCXbXQGdzSfmSpNVyIKMvoZHjDY9DP0zV17iI85o90vRFXNccRw==", + "dev": true, + "engines": { + "node": ">=12" + } + }, + "node_modules/yallist": { + "version": "3.1.1", + "resolved": "https://registry.npmjs.org/yallist/-/yallist-3.1.1.tgz", + "integrity": "sha512-a4UGQaWPH59mOXUYnAG2ewncQS4i4F43Tv3JoAM+s2VDAmS9NsK8GpDMLrCHPksFT7h3K6TOoUNn2pb7RoXx4g==", + "dev": true + }, + "node_modules/yargs-parser": { + "version": "20.2.9", + "resolved": "https://registry.npmjs.org/yargs-parser/-/yargs-parser-20.2.9.tgz", + "integrity": "sha512-y11nGElTIV+CT3Zv9t7VKl+Q3hTQoT9a1Qzezhhl6Rp21gJ/IVTW7Z3y9EWXhuUBC2Shnf+DX0antecpAwSP8w==", + "dev": true, + "engines": { + "node": ">=10" + } + }, + "node_modules/yocto-queue": { + "version": "0.1.0", + "resolved": "https://registry.npmjs.org/yocto-queue/-/yocto-queue-0.1.0.tgz", + "integrity": "sha512-rVksvsnNCdJ/ohGc6xgPwyN8eheCxsiLM8mxuE/t/mOVqJewPuO1miLpTHQiRgTKCLexL4MeAFVagts7HmNZ2Q==", + "dev": true, + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + } + } +} diff --git a/package.json b/package.json index 44c7820..9147afd 100644 --- a/package.json +++ b/package.json @@ -1,40 +1,73 @@ { "private": true, + "name": "srcs", "scripts": { - "dev": "npm run development", - "development": "mix", - "watch": "mix watch", - "watch-poll": "mix watch -- --watch-options-poll=1000", - "hot": "mix watch --hot", - "prod": "npm run production", - "production": "mix --production" + "vite": "vite --clearScreen false", + "prod": "vite build --mode production", + "dev": "NODE_ENV=development vite build -d --mode development", + "watch": "NODE_ENV=development vite build --mode development --watch", + "eslint": "node ./node_modules/.bin/eslint --max-warnings 0 -c .eslintrc.json ./resources", + "eslint-fix": "node ./node_modules/.bin/eslint --fix --max-warnings 0 -c .eslintrc.json ./resources", + "eslint-ci": "node ./node_modules/.bin/eslint --max-warnings 0 -c .eslintrc.json ./resources -f junit", + "stylelint": "node ./node_modules/.bin/stylelint --config './.stylelintrc.json' --max-warnings 0 '**/resources/**/*.scss'", + "stylelint-fix": "node ./node_modules/.bin/stylelint --config './.stylelintrc.json' --fix --max-warnings 0 '**/resources/**/*.scss'", + "stylelint-ci": "node ./node_modules/.bin/stylelint --config './.stylelintrc.json' --max-warnings 0 '**/resources/**/*.scss' -f json" }, "devDependencies": { - "axios": "^0.21.1", - "bootstrap": "^4.6.0", - "cross-env": "^7.0", - "cssnano": "^5.0.2", - "jquery": "^3.2", - "laravel-mix": "^6.0.19", - "laravel-mix-polyfill": "^3.0.0", - "lodash": "^4.17.19", - "popper.js": "^1.12", - "postcss": "^8.2.15", - "resolve-url-loader": "^4.0.0", - "sass": "^1.32.13", - "sass-loader": "^11.1.1", - "vue": "^2.6.12", - "vue-loader": "^15.9.6", - "vue-template-compiler": "^2.6.12" - }, - "dependencies": { - "@fancyapps/fancybox": "^3.5.7", - "@fortawesome/fontawesome-free": "^5.15.3", - "chart.js": "^2.9.4", - "jquery": "^3.5.1", - "popper.js": "^1.16.1", - "scratchcard-js": "^1.4.10", - "swiper": "^6.6.1", - "v-clipboard": "^2.2.3" + "@babel/core": "^7.22.11", + "@babel/types": "^7.21.2", + "@fortawesome/fontawesome-svg-core": "^6.5.1", + "@fortawesome/free-regular-svg-icons": "^6.5.1", + "@fortawesome/free-solid-svg-icons": "^6.5.1", + "@fortawesome/vue-fontawesome": "^3.0.5", + "@ldc-web/cookie-notice": "^4.0.0", + "@sipec/vue3-tags-input": "^3.0.4", + "@types/bootstrap": "^5.2.7", + "@types/node": "^20.8.2", + "@types/toastify-js": "^1.12.1", + "@typescript-eslint/eslint-plugin": "^5.62.0", + "@typescript-eslint/parser": "^5.36.2", + "@vitejs/plugin-basic-ssl": "^1.0.1", + "@vitejs/plugin-vue": "latest", + "@vue/compiler-sfc": "latest", + "@vue/eslint-config-typescript": "latest", + "@vue/tsconfig": "^0.4.0", + "axios": "^1.5.1", + "bootstrap": "^5.3.2", + "chart.js": "^4.4.0", + "cropperjs": "^1.6.1", + "eslint": "latest", + "eslint-import-resolver-alias": "^1.1.2", + "eslint-plugin-vue": "latest", + "glightbox": "^3.2.0", + "laravel-vite-plugin": "^0.8.1", + "postcss-discard-comments": "^6.0.0", + "prettier": "latest", + "print-js": "^1.6.0", + "resolve-url-loader": "^5.0.0", + "rollup-plugin-copy": "^3.5.0", + "sass": "latest", + "scratchcard-js": "^1.5.5", + "slugify": "^1.6.6", + "stylelint": "^15.11.0", + "stylelint-config-idiomatic-order": "github:ream88/stylelint-config-idiomatic-order", + "stylelint-config-sass-guidelines": "^10.0.0", + "stylelint-config-standard-scss": "^11.1.0", + "stylelint-scss": "^5.3.2", + "sweetalert2": "^11.7.31", + "terser": "latest", + "toastify-js": "^1.12.0", + "ts-loader": "^9.3.1", + "typescript": ">=3.3.1 <5.2.0", + "typescript-eslint": "latest", + "vite": "^4.5.1", + "vite-plugin-babel": "latest", + "vite-plugin-checker": "latest", + "vite-plugin-eslint": "latest", + "vite-plugin-stylelint": "latest", + "vue": "latest", + "vue-eslint-parser": "^9.3.2", + "vue-loader": "^17.3.1", + "vue-tsc": "1.8.11" } } diff --git a/phpcs.xml b/phpcs.xml index 3905a44..039330f 100644 --- a/phpcs.xml +++ b/phpcs.xml @@ -1,12 +1,13 @@ - + Created with the PHP Coding Standard Generator. http://edorian.github.com/php-coding-standard-generator/ app/ config/ - database/seeders routes/ + app/Lib/vendor/* @@ -19,6 +20,7 @@ + diff --git a/phpunit.xml b/phpunit.xml index 76f2246..eb13aff 100644 --- a/phpunit.xml +++ b/phpunit.xml @@ -12,20 +12,20 @@ ./tests/Feature - - + + ./app - - + + - - - - - - - - - + + + + + + + + + diff --git a/resources/assets/images/engine/logo.png b/resources/assets/images/engine/logo.png new file mode 100644 index 0000000..572f192 Binary files /dev/null and b/resources/assets/images/engine/logo.png differ diff --git a/resources/assets/images/engine/logo.svg b/resources/assets/images/engine/logo.svg new file mode 100644 index 0000000..3f52d65 --- /dev/null +++ b/resources/assets/images/engine/logo.svg @@ -0,0 +1,50 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/resources/favicon/android-chrome-192x192.png b/resources/favicon/android-chrome-192x192.png new file mode 100644 index 0000000..e84712f Binary files /dev/null and b/resources/favicon/android-chrome-192x192.png differ diff --git a/resources/favicon/android-chrome-512x512.png b/resources/favicon/android-chrome-512x512.png new file mode 100644 index 0000000..12f369a Binary files /dev/null and b/resources/favicon/android-chrome-512x512.png differ diff --git a/resources/favicon/apple-touch-icon.png b/resources/favicon/apple-touch-icon.png new file mode 100644 index 0000000..c2f7301 Binary files /dev/null and b/resources/favicon/apple-touch-icon.png differ diff --git a/resources/favicon/browserconfig.xml b/resources/favicon/browserconfig.xml new file mode 100644 index 0000000..f9c2e67 --- /dev/null +++ b/resources/favicon/browserconfig.xml @@ -0,0 +1,9 @@ + + + + + + #2b5797 + + + diff --git a/resources/favicon/favicon-16x16.png b/resources/favicon/favicon-16x16.png new file mode 100644 index 0000000..cb0de06 Binary files /dev/null and b/resources/favicon/favicon-16x16.png differ diff --git a/resources/favicon/favicon-32x32.png b/resources/favicon/favicon-32x32.png new file mode 100644 index 0000000..586b050 Binary files /dev/null and b/resources/favicon/favicon-32x32.png differ diff --git a/resources/favicon/favicon.ico b/resources/favicon/favicon.ico new file mode 100644 index 0000000..1650a77 Binary files /dev/null and b/resources/favicon/favicon.ico differ diff --git a/resources/favicon/mstile-150x150.png b/resources/favicon/mstile-150x150.png new file mode 100644 index 0000000..e897e87 Binary files /dev/null and b/resources/favicon/mstile-150x150.png differ diff --git a/resources/favicon/safari-pinned-tab.svg b/resources/favicon/safari-pinned-tab.svg new file mode 100644 index 0000000..f61f502 --- /dev/null +++ b/resources/favicon/safari-pinned-tab.svg @@ -0,0 +1,109 @@ + + + + +Created by potrace 1.14, written by Peter Selinger 2001-2017 + + + + + + + + + + + + + + + diff --git a/resources/favicon/site.webmanifest b/resources/favicon/site.webmanifest new file mode 100644 index 0000000..b20abb7 --- /dev/null +++ b/resources/favicon/site.webmanifest @@ -0,0 +1,19 @@ +{ + "name": "", + "short_name": "", + "icons": [ + { + "src": "/android-chrome-192x192.png", + "sizes": "192x192", + "type": "image/png" + }, + { + "src": "/android-chrome-512x512.png", + "sizes": "512x512", + "type": "image/png" + } + ], + "theme_color": "#ffffff", + "background_color": "#ffffff", + "display": "standalone" +} diff --git a/resources/js/app.js b/resources/js/app.js deleted file mode 100644 index 5be7ad4..0000000 --- a/resources/js/app.js +++ /dev/null @@ -1,46 +0,0 @@ -/** - * First we will load all of this project's JavaScript dependencies which - * includes Vue and other libraries. It is a great starting point when - * building robust, powerful web applications using Vue and Laravel. - */ - -require('./bootstrap'); -require('@fancyapps/fancybox'); - -window.Vue = require('vue').default; - -import Clipboard from 'v-clipboard'; -import Chart from 'chart.js'; - -Vue.use(Clipboard); - -/** - * The following block of code may be used to automatically register your - * Vue components. It will recursively scan this directory for the Vue - * components and automatically register them with their "basename". - * - * Eg. ./components/ExampleComponent.vue -> - */ - -// const files = require.context('./', true, /\.vue$/i) -// files.keys().map(key => Vue.component(key.split('/').pop().split('.')[0], files(key).default)) - -Vue.component('win-notification', require('./components/WinNotification.vue').default); -Vue.component('gain-views', require('./components/GainViews.vue').default); -Vue.component('prizes', require('./components/Prizes.vue').default); -Vue.component('instant-win', require('./components/InstantWin.vue').default); -Vue.component('codes-ean', require('./components/CodesEAN.vue').default); -Vue.component('banned-ip', require('./components/BannedIP.vue').default); -Vue.component('faq-themes', require('./components/FaqThemes.vue').default); -Vue.component('faq-questions', require('./components/FaqQuestions.vue').default); -Vue.component('web-coupons', require('./components/WebCoupons.vue').default); - -/** - * Next, we will create a fresh Vue application instance and attach it to - * the page. Then, you may begin adding components to this application - * or customize the JavaScript scaffolding to fit your unique needs. - */ - -const app = new Vue({ - el: '#app', -}); diff --git a/resources/js/bootstrap.js b/resources/js/bootstrap.js deleted file mode 100644 index 64f1323..0000000 --- a/resources/js/bootstrap.js +++ /dev/null @@ -1,44 +0,0 @@ -window._ = require('lodash'); - -/** - * We'll load jQuery and the Bootstrap jQuery plugin which provides support - * for JavaScript based Bootstrap features such as modals and tabs. This - * code may be modified to fit the specific needs of your application. - */ - -try { - window.Popper = require('popper.js').default; - window.$ = window.jQuery = require('jquery'); - - require('bootstrap'); -} catch (e) { } - -/** - * We'll load the axios HTTP library which allows us to easily issue requests - * to our Laravel back-end. This library automatically handles sending the - * CSRF token as a header based on the value of the "XSRF" token cookie. - */ - -window.axios = require('axios'); - -window.axios.defaults.headers.common = { - 'X-Requested-With': 'XMLHttpRequest', - 'X-CSRF-TOKEN': document.querySelector('meta[name="csrf-token"]').getAttribute('content') -}; - -/** - * Echo exposes an expressive API for subscribing to channels and listening - * for events that are broadcast by Laravel. Echo and event broadcasting - * allows your team to easily build robust real-time web applications. - */ - -// import Echo from 'laravel-echo'; - -// window.Pusher = require('pusher-js'); - -// window.Echo = new Echo({ -// broadcaster: 'pusher', -// key: process.env.MIX_PUSHER_APP_KEY, -// cluster: process.env.MIX_PUSHER_APP_CLUSTER, -// forceTLS: true -// }); diff --git a/resources/js/components/BannedIP.vue b/resources/js/components/BannedIP.vue deleted file mode 100644 index 51bb897..0000000 --- a/resources/js/components/BannedIP.vue +++ /dev/null @@ -1,237 +0,0 @@ - - - - - diff --git a/resources/js/components/CodesEAN.vue b/resources/js/components/CodesEAN.vue deleted file mode 100644 index 06c22d8..0000000 --- a/resources/js/components/CodesEAN.vue +++ /dev/null @@ -1,240 +0,0 @@ - - - - - diff --git a/resources/js/components/FaqQuestions.vue b/resources/js/components/FaqQuestions.vue deleted file mode 100644 index 14c6cd9..0000000 --- a/resources/js/components/FaqQuestions.vue +++ /dev/null @@ -1,159 +0,0 @@ - - - - - diff --git a/resources/js/components/FaqThemes.vue b/resources/js/components/FaqThemes.vue deleted file mode 100644 index c7771b2..0000000 --- a/resources/js/components/FaqThemes.vue +++ /dev/null @@ -1,148 +0,0 @@ - - - - - diff --git a/resources/js/components/GainViews.vue b/resources/js/components/GainViews.vue deleted file mode 100644 index 8e843fa..0000000 --- a/resources/js/components/GainViews.vue +++ /dev/null @@ -1,115 +0,0 @@ - - - - - diff --git a/resources/js/components/InstantWin.vue b/resources/js/components/InstantWin.vue deleted file mode 100644 index 6b8398b..0000000 --- a/resources/js/components/InstantWin.vue +++ /dev/null @@ -1,85 +0,0 @@ - - - diff --git a/resources/js/components/Prizes.vue b/resources/js/components/Prizes.vue deleted file mode 100644 index 7a4d67d..0000000 --- a/resources/js/components/Prizes.vue +++ /dev/null @@ -1,362 +0,0 @@ - - - - - diff --git a/resources/js/components/WebCoupons.vue b/resources/js/components/WebCoupons.vue deleted file mode 100644 index 3647727..0000000 --- a/resources/js/components/WebCoupons.vue +++ /dev/null @@ -1,74 +0,0 @@ - - - diff --git a/resources/js/components/WinNotification.vue b/resources/js/components/WinNotification.vue deleted file mode 100644 index 663932a..0000000 --- a/resources/js/components/WinNotification.vue +++ /dev/null @@ -1,61 +0,0 @@ - - - diff --git a/resources/js/components/ckEditorComponent.vue b/resources/js/components/ckEditorComponent.vue deleted file mode 100644 index 82807e4..0000000 --- a/resources/js/components/ckEditorComponent.vue +++ /dev/null @@ -1,252 +0,0 @@ - - - - - diff --git a/resources/js/vendor/ckeditor/build/ckeditor.js b/resources/js/vendor/ckeditor/build/ckeditor.js index 2c4d1e6..c0a6792 100644 --- a/resources/js/vendor/ckeditor/build/ckeditor.js +++ b/resources/js/vendor/ckeditor/build/ckeditor.js @@ -1,7 +1,119819 @@ -!function(t){const e=t.fr=t.fr||{};e.dictionary=Object.assign(e.dictionary||{},{"%0 of %1":"%0 sur %1","Align cell text to the bottom":"Aligner le texte en bas","Align cell text to the center":"Aligner la cellule au centre","Align cell text to the left":"Aligner la cellule à gauche","Align cell text to the middle":"Aligner le texte au milieu","Align cell text to the right":"Aligner la cellule à droite","Align cell text to the top":"Aligner le texte en haut","Align center":"Centrer","Align left":"Aligner à gauche","Align right":"Aligner à droite","Align table to the left":"Aligner le tableau à gauche","Align table to the right":"Aligner le tableau à droite",Alignment:"Alignement",Aquamarine:"Bleu vert",Background:"Fond",Big:"Grand",Black:"Noir","Block quote":"Citation",Blue:"Bleu","Blue marker":"Marqueur bleu",Bold:"Gras",Border:"Bordure","Break text":"Saut de ligne","Bulleted List":"Liste à puces","Bulleted list styles toolbar":"Barre d'outils des styles de liste à puce",Cancel:"Annuler","Cell properties":"Propriétés de la cellule","Center table":"Centrer le tableau ","Centered image":"Image centrée","Change image text alternative":"Changer le texte alternatif à l’image","Character categories":"Catégories de caractères","Characters: %0":"Caractères : %0","Choose heading":"Choisir l'en-tête",Circle:"Cercle",Color:"Couleur","Color picker":"Pipette à couleurs",Column:"Colonne",Dashed:"Tirets",Decimal:"Chiffres","Decimal with leading zero":"Chiffres avec des zéros supplémentaire","Decrease indent":"Diminuer le retrait",Default:"Par défaut","Delete column":"Supprimer la colonne","Delete row":"Supprimer la ligne","Dim grey":"Gris pâle",Dimensions:"Dimensions",Disc:"Disque","Document colors":"Couleurs du document",Dotted:"Pointillés",Double:"Double",Downloadable:"Fichier téléchargeable","Dropdown toolbar":"Barre d'outils dans un menu déroulant","Edit block":"Modifier le bloc","Edit link":"Modifier le lien","Editor editing area: %0":"Zone d'édition de l'éditeur : %0","Editor toolbar":"Barre d'outils de l'éditeur","Enter table caption":"Saisir la légende du tableau","Font Color":"Couleur de police","Font Family":"Police","Font Size":"Taille de police","Full size image":"Image taille réelle",Green:"Vert","Green marker":"Marqueur vert","Green pen":"Crayon vert",Grey:"Gris",Groove:"Rainuré","Header column":"Colonne d'entête","Header row":"Ligne d'entête",Heading:"En-tête","Heading 1":"Titre 1","Heading 2":"Titre 2","Heading 3":"Titre 3","Heading 4":"Titre 4","Heading 5":"Titre 5","Heading 6":"Titre 6",Height:"Hauteur",Highlight:"Surlignage","Horizontal line":"Ligne horizontale","Horizontal text alignment toolbar":"Barre d'outils pour modifier l'alignement horizontal du texte",Huge:"Enorme","Image resize list":"Liste des tailles d'images","Image toolbar":"Barre d'outils des images","image widget":"Objet image","In line":"Aligné","Increase indent":"Augmenter le retrait","Insert column left":"Insérer une colonne à gauche","Insert column right":"Insérer une colonne à droite","Insert image":"Insérer une image","Insert media":"Insérer un média","Insert paragraph after block":"Insérer du texte après ce bloc","Insert paragraph before block":"Insérer du texte avant ce bloc","Insert row above":"Insérer une ligne au-dessus","Insert row below":"Insérer une ligne en-dessous","Insert table":"Insérer un tableau",Inset:"Relief intérieur",Italic:"Italique",Justify:"Justifier","Justify cell text":"Justifier le contenu de la cellule","Left aligned image":"Image alignée à gauche","Light blue":"Bleu clair","Light green":"Vert clair","Light grey":"Gris clair",Link:"Lien","Link image":"Lien d'image","Link URL":"URL du lien","List properties":"Liste des propriétés","Lower-latin":"Lettres minuscules","Lower–roman":"Chiffres romains en minuscules","Media URL":"URL de média","media widget":"Widget média","Merge cell down":"Fusionner la cellule en-dessous","Merge cell left":"Fusionner la cellule à gauche","Merge cell right":"Fusionner la cellule à droite","Merge cell up":"Fusionner la cellule au-dessus","Merge cells":"Fusionner les cellules",Next:"Suivant",None:"Aucun","Numbered List":"Liste numérotée","Numbered list styles toolbar":"Barre d'outils des styles de liste numérotée","Open in a new tab":"Ouvrir dans un nouvel onglet","Open link in new tab":"Ouvrir le lien dans un nouvel onglet",Orange:"Orange",Original:"Taille originale",Outset:"Relief extérieur",Padding:"Remplissage pour aérer le texte",Paragraph:"Paragraphe","Paste the media URL in the input.":"Coller l'URL du média","Pink marker":"Marqueur rose",Previous:"Précedent",Purple:"Violet",Red:"Rouge","Red pen":"Crayon rouge",Redo:"Restaurer","Remove color":"Enlever la couleur","Remove Format":"Enlever le format","Remove highlight":"Enlever le surlignage","Resize image":"Redimensionner l'image","Resize image to %0":"Redimensionner à %0","Resize image to the original size":"Appliquer les dimensions d'origine","Restore default":"Restaurer par défaut","Reversed order":"Ordre inversé","Rich Text Editor":"Éditeur de texte enrichi",Ridge:"Relief","Right aligned image":"Image alignée à droite",Row:"Ligne",Save:"Enregistrer","Select all":"Sélectionner tout","Select column":"Sélectionner la colonne","Select row":"Sélectionner la ligne","Show more items":"Montrer plus d'éléments","Side image":"Image latérale",Small:"Petit",Solid:"Continu",Source:"Source","Special characters":"Caractères spéciaux","Split cell horizontally":"Scinder la cellule horizontalement","Split cell vertically":"Scinder la cellule verticalement",Square:"Carré","Start at":"Commencer à","Start index must be greater than 0.":"L'indice de départ doit être supérieur à 0.",Style:"Style","Table alignment toolbar":"Barre d'outils pour modifier l'alignement du tableau","Table cell text alignment":"Alignement du texte de la cellule","Table properties":"Propriétés du tableau","Table toolbar":"Barre d'outils des tableaux","Text alignment":"Alignement du texte","Text alignment toolbar":"Barre d'outils d'alignement du texte","Text alternative":"Texte alternatif","Text highlight toolbar":"Barre d'outils du surlignage",'The color is invalid. Try "#FF0000" or "rgb(255,0,0)" or "red".':'La couleur est invalide. Essayez "#FF0000" ou "rgb(255,0,0)" ou "red".',"The URL must not be empty.":"L'URL ne doit pas être vide.",'The value is invalid. Try "10px" or "2em" or simply "2".':'La valeur est invalide. Essayez "10px" ou "2em" ou simplement "2".',"This link has no URL":"Ce lien n'a pas d'URL","This media URL is not supported.":"Cette URL de média n'est pas supportée.",Tiny:"Minuscule","Tip: Paste the URL into the content to embed faster.":"Astuce : Copier l'URL du média dans le contenu pour l'insérer plus rapidement","Toggle caption off":"Désactiver la légende","Toggle caption on":"Activer la légende","Toggle the circle list style":'Activer / désactiver le style de liste "cercle"',"Toggle the decimal list style":'Activer / désactiver le style de liste "chiffres"',"Toggle the decimal with leading zero list style":'Activer / désactiver le style de liste "chiffres de mêmes longueurs"',"Toggle the disc list style":'Activer / désactiver le style de liste "disque"',"Toggle the lower–latin list style":'Activer / désactiver le style de liste "lettres minuscules"',"Toggle the lower–roman list style":'Activer / désactiver le style de liste "chiffres romains en minuscules"',"Toggle the square list style":'Activer / désactiver le style de liste "carré"',"Toggle the upper–latin list style":'Activer / désactiver le style de liste "lettres majuscules"',"Toggle the upper–roman list style":'Activer / désactiver le style de liste "chiffres romains en majuscules"',Turquoise:"Turquoise",Underline:"Souligné",Undo:"Annuler",Unlink:"Supprimer le lien","Upload failed":"Échec de l'envoi","Upload in progress":"Téléchargement en cours","Upper-latin":"Lettres majuscules","Upper-roman":"Chiffres romains en majuscules","Vertical text alignment toolbar":"Barre d'outils pour modifier l'alignement vertical du texte",White:"Blanc","Widget toolbar":"Barre d'outils du widget",Width:"Largeur","Words: %0":"Mots : %0","Wrap text":"Retour à la ligne",Yellow:"Jaune","Yellow marker":"Marqueur jaune"}),e.getPluralForm=function(t){return 0==t||1==t?0:0!=t&&t%1e6==0?1:2}}(window.CKEDITOR_TRANSLATIONS||(window.CKEDITOR_TRANSLATIONS={})), +(function(d){ const l = d['fr'] = d['fr'] || {}; l.dictionary=Object.assign( l.dictionary||{}, {"%0 of %1":"%0 sur %1",Accept:"","Align cell text to the bottom":"Aligner le texte en bas","Align cell text to the center":"Aligner la cellule au centre","Align cell text to the left":"Aligner la cellule à gauche","Align cell text to the middle":"Aligner le texte au milieu","Align cell text to the right":"Aligner la cellule à droite","Align cell text to the top":"Aligner le texte en haut","Align center":"Centrer","Align left":"Aligner à gauche","Align right":"Aligner à droite","Align table to the left":"Aligner le tableau à gauche","Align table to the right":"Aligner le tableau à droite",Alignment:"Alignement",All:"Tous","Almost equal to":"Presque égal à",Angle:"Angle","Approximately equal to":"Environ égal à",Aquamarine:"Bleu vert",Arrows:"Flèches","Asterisk operator":"Astérisque","Austral sign":"Austral","back with leftwards arrow above":"Précédent avec flèche vers la gauche",Background:"Fond",Big:"Grand","Bitcoin sign":"Bitcoin",Black:"Noir","Block quote":"Citation","Block styles":"Styles de bloc",Blue:"Bleu","Blue marker":"Marqueur bleu",Bold:"Gras",Border:"Bordure","Break text":"Saut de ligne","Bulleted List":"Liste à puces","Bulleted list styles toolbar":"Barre d'outils des styles de liste à puce",Cancel:"Annuler","Caption for image: %0":"Légende de l'image : %0","Caption for the image":"Légende de l'image","Cedi sign":"Cédi","Cell properties":"Propriétés de la cellule","Cent sign":"Centime","Center table":"Centrer le tableau ","Centered image":"Image centrée","Change image text alternative":"Changer le texte alternatif à l’image","Character categories":"Catégories de caractères","Characters: %0":"Caractères : %0","Choose heading":"Choisir l'en-tête",Circle:"Cercle",Code:"Code","Colon sign":"Deux points",Color:"Couleur","Color picker":"Pipette à couleurs",Column:"Colonne","Contains as member":"Contient","Copyright sign":"Copyright","Cruzeiro sign":"Cruzeiro",Currency:"Devise","Currency sign":"Symbole monétaire",Dashed:"Tirets",Decimal:"Chiffres","Decimal with leading zero":"Chiffres avec des zéros supplémentaire","Decrease indent":"Diminuer le retrait",Default:"Par défaut","Degree sign":"Degré","Delete column":"Supprimer la colonne","Delete row":"Supprimer la ligne","Dim grey":"Gris pâle",Dimensions:"Dimensions",Disc:"Disque","Division sign":"Division","Document colors":"Couleurs du document","Dollar sign":"Dollar","Dong sign":"Dong",Dotted:"Pointillés",Double:"Double","Double dagger":"Croix de Lorraine","Double exclamation mark":"Double point d'exclamation","Double low-9 quotation mark":"Guillemet-virgule double inférieur","Double question mark":"Double point d'interrogation",Downloadable:"Fichier téléchargeable","downwards arrow to bar":"Flèche vers le bas avec barre de fin","downwards dashed arrow":"Flèche en pointillés vers le bas","downwards double arrow":"Double flèche vers le bas","downwards simple arrow":"flèche simple vers le bas","Drachma sign":"Drachme","Dropdown toolbar":"Barre d'outils dans un menu déroulant","Edit block":"Modifier le bloc","Edit link":"Modifier le lien","Editor block content toolbar":"Barre d'outils du contenu du bloc éditeur","Editor contextual toolbar":"Barre d'outils contextuelle de l'éditeur","Editor editing area: %0":"Zone d'édition de l'éditeur : %0","Editor toolbar":"Barre d'outils de l'éditeur","Element of":"Appartient à","Em dash":"Tiret long","Empty set":"Élément vide","En dash":"Tiret","end with leftwards arrow above":"Fin avec flèche vers la gauche","Enter image caption":"Saisir la légende de l’image","Enter table caption":"Saisir la légende du tableau","Euro sign":"Euro","Euro-currency sign":"Symbole monétaire de l'euro","Exclamation question mark":"Point exclamation et question",Find:"Rechercher","Find and replace":"Rechercher et remplacer","Find in text…":"Rechercher dans le texte...","Font Background Color":"Couleur d'arrière-plan","Font Color":"Couleur de police","Font Family":"Police","Font Size":"Taille de police","For all":"Pour tout","Fraction slash":"Fraction","French franc sign":"Franc français","Full size image":"Image taille réelle","German penny sign":"Pfennig","Greater-than or equal to":"Signe supérieur ou égal","Greater-than sign":"Signe supérieur",Green:"Vert","Green marker":"Marqueur vert","Green pen":"Crayon vert",Grey:"Gris",Groove:"Rainuré","Guarani sign":"Guarani","Header column":"Colonne d'entête","Header row":"Ligne d'entête",Heading:"En-tête","Heading 1":"Titre 1","Heading 2":"Titre 2","Heading 3":"Titre 3","Heading 4":"Titre 4","Heading 5":"Titre 5","Heading 6":"Titre 6",Height:"Hauteur",HEX:"",Highlight:"Surlignage","Horizontal ellipsis":"Trois points","Horizontal line":"Ligne horizontale","Horizontal text alignment toolbar":"Barre d'outils pour modifier l'alignement horizontal du texte","Hryvnia sign":"Hryvnia","HTML object":"Objet HTML",Huge:"Enorme","Identical to":"Identique à","Image resize list":"Liste des tailles d'images","Image toolbar":"Barre d'outils des images","image widget":"Objet image","In line":"Aligné","Increase indent":"Augmenter le retrait","Indian rupee sign":"Roupie indienne",Infinity:"Infini",Insert:"Insérer","Insert code block":"Insérer un bloc de code","Insert column left":"Insérer une colonne à gauche","Insert column right":"Insérer une colonne à droite","Insert image":"Insérer une image","Insert image via URL":"Insérer une image à partir d'une URL","Insert media":"Insérer un média","Insert paragraph after block":"Insérer du texte après ce bloc","Insert paragraph before block":"Insérer du texte avant ce bloc","Insert row above":"Insérer une ligne au-dessus","Insert row below":"Insérer une ligne en-dessous","Insert table":"Insérer un tableau",Inset:"Relief intérieur",Integral:"Intégrale",Intersection:"Intersection","Inverted exclamation mark":"Point d'exclamation inversé","Inverted question mark":"Point d'interrogation inversé",Italic:"Italique",Justify:"Justifier","Justify cell text":"Justifier le contenu de la cellule","Kip sign":"Kip",Latin:"Latin","Latin capital letter a with breve":"A bref majuscule","Latin capital letter a with macron":"A barre majuscule","Latin capital letter a with ogonek":"A ogonek majuscule","Latin capital letter c with acute":"C accent aigu majuscule","Latin capital letter c with caron":"C caron majuscule","Latin capital letter c with circumflex":"C circonflexe majuscule","Latin capital letter c with dot above":"C point suscrit majuscule","Latin capital letter d with caron":"D caron majuscule","Latin capital letter d with stroke":"D barré majuscule","Latin capital letter e with breve":"E bref majuscule","Latin capital letter e with caron":"E caron majuscule","Latin capital letter e with dot above":"E point suscrit majuscule","Latin capital letter e with macron":"E macron majuscule","Latin capital letter e with ogonek":"E ogonek majuscule","Latin capital letter eng":"Eng majuscule","Latin capital letter g with breve":"G bref majuscule","Latin capital letter g with cedilla":"G cédille majuscule","Latin capital letter g with circumflex":"G accent circonflexe majuscule","Latin capital letter g with dot above":"G point suscrit majuscule","Latin capital letter h with circumflex":"H accent circonflexe majuscule","Latin capital letter h with stroke":"H barré majuscule","Latin capital letter i with breve":"I bref majuscule","Latin capital letter i with dot above":"I point suscrit majuscule","Latin capital letter i with macron":"I macron majuscule","Latin capital letter i with ogonek":"I ogonek majuscule","Latin capital letter i with tilde":"I tilde majuscule","Latin capital letter j with circumflex":"J accent circonflexe majuscule","Latin capital letter k with cedilla":"K cédille majuscule","Latin capital letter l with acute":"L accent aigu majuscule","Latin capital letter l with caron":"L caron majuscule","Latin capital letter l with cedilla":"L cédille majuscule","Latin capital letter l with middle dot":"L point médian majuscule","Latin capital letter l with stroke":"L barré majuscule","Latin capital letter n with acute":"N accent aigu majuscule","Latin capital letter n with caron":"N caron majuscule","Latin capital letter n with cedilla":"N cédille majuscule","Latin capital letter o with breve":"O bref majuscule","Latin capital letter o with double acute":"O double accent aigu majuscule","Latin capital letter o with macron":"O macron majuscule","Latin capital letter r with acute":"R accent aigu majuscule","Latin capital letter r with caron":"R caron majuscule","Latin capital letter r with cedilla":"R cédille majuscule","Latin capital letter s with acute":"S accent aigu majuscule","Latin capital letter s with caron":"S caron majuscule","Latin capital letter s with cedilla":"S cédille majuscule","Latin capital letter s with circumflex":"S circonflexe majuscule","Latin capital letter t with caron":"T caron majuscule","Latin capital letter t with cedilla":"T cédille majuscule","Latin capital letter t with stroke":"T barré majuscule","Latin capital letter u with breve":"U bref majuscule","Latin capital letter u with double acute":"U double accent aigu majuscule","Latin capital letter u with macron":"U macron majuscule","Latin capital letter u with ogonek":"U ogonek majuscule","Latin capital letter u with ring above":"U rond en chef majuscule","Latin capital letter u with tilde":"U tilde majuscule","Latin capital letter w with circumflex":"W circonflexe majuscule","Latin capital letter y with circumflex":"Y circonflexe majuscule","Latin capital letter y with diaeresis":"Y tréma majuscule","Latin capital letter z with acute":"Z accent circonflexe majuscule","Latin capital letter z with caron":"Z caron majuscule","Latin capital letter z with dot above":"Z point suscrit majuscule","Latin capital ligature ij":"Digramme soudé IJ majuscule","Latin capital ligature oe":"O-E entrelacé majuscule","Latin small letter a with breve":"A bref minuscule","Latin small letter a with macron":"A barre minuscule","Latin small letter a with ogonek":"A ogonek minuscule","Latin small letter c with acute":"C accent aigu minuscule","Latin small letter c with caron":"C caron minuscule","Latin small letter c with circumflex":"C circonflexe minuscule","Latin small letter c with dot above":"C point suscrit minuscule","Latin small letter d with caron":"C caron minuscule","Latin small letter d with stroke":"D barré minuscule","Latin small letter dotless i":"I sans point minuscule","Latin small letter e with breve":"E bref minuscule","Latin small letter e with caron":"E caron minuscule","Latin small letter e with dot above":"E point suscrit minuscule","Latin small letter e with macron":"E macron minuscule","Latin small letter e with ogonek":"E ogonek minuscule","Latin small letter eng":"Eng minuscule","Latin small letter f with hook":"Fonction","Latin small letter g with breve":"G bref minuscule","Latin small letter g with cedilla":"G cédille minuscule","Latin small letter g with circumflex":"G accent circonflexe minuscule","Latin small letter g with dot above":"G point suscrit minuscule","Latin small letter h with circumflex":"H accent circonflexe minuscule","Latin small letter h with stroke":"H barré minuscule","Latin small letter i with breve":"I bref minuscule","Latin small letter i with macron":"I macron minuscule","Latin small letter i with ogonek":"I ogonek minuscule","Latin small letter i with tilde":"I tilde minuscule","Latin small letter j with circumflex":"J accent circonflexe minuscule","Latin small letter k with cedilla":"K cédille minuscule","Latin small letter kra":"Kra minuscule","Latin small letter l with acute":"L accent aigu minuscule","Latin small letter l with caron":"L caron minuscule","Latin small letter l with cedilla":"L cédille minuscule","Latin small letter l with middle dot":"L point médian minuscule","Latin small letter l with stroke":"L barré minuscule","Latin small letter long s":"S long minuscule","Latin small letter n preceded by apostrophe":"Apostrophe N minuscule","Latin small letter n with acute":"N accent aigu minuscule","Latin small letter n with caron":"N caron minuscule","Latin small letter n with cedilla":"N cédille minuscule","Latin small letter o with breve":"O bref minuscule","Latin small letter o with double acute":"O double accent aigu minuscule","Latin small letter o with macron":"O macron minuscule","Latin small letter r with acute":"R accent aigu minuscule","Latin small letter r with caron":"R caron minuscule","Latin small letter r with cedilla":"R cédille minuscule","Latin small letter s with acute":"S accent aigu minuscule","Latin small letter s with caron":"S caron minuscule","Latin small letter s with cedilla":"S cédille minuscule","Latin small letter s with circumflex":"S circonflexe minuscule","Latin small letter t with caron":"T caron minuscule","Latin small letter t with cedilla":"T cédille minuscule","Latin small letter t with stroke":"T barré minuscule","Latin small letter u with breve":"U bref minuscule","Latin small letter u with double acute":"U double accent aigu minuscule","Latin small letter u with macron":"U macron minuscule","Latin small letter u with ogonek":"U ogonek minuscule","Latin small letter u with ring above":"U rond en chef minuscule","Latin small letter u with tilde":"U tilde minuscule","Latin small letter w with circumflex":"W circonflexe minuscule","Latin small letter y with circumflex":"Y circonflexe minuscule","Latin small letter z with acute":"Z accent circonflexe minuscule","Latin small letter z with caron":"Z caron minuscule","Latin small letter z with dot above":"Z point suscrit minuscule","Latin small ligature ij":"Digramme soudé IJ minuscule","Latin small ligature oe":"O-E entrelacé minuscule","Left aligned image":"Image alignée à gauche","Left double quotation mark":"Guillemet-apostrophe double culbuté","Left single quotation mark":"Guillemet-apostrophe culbuté","Left-pointing double angle quotation mark":"Guillemet double vers la gauche","leftwards arrow to bar":"Flèche vers la gauche avec barre de fin","leftwards dashed arrow":"Flèche en pointillés vers la gauche","leftwards double arrow":"Double flèche vers la gauche","leftwards simple arrow":"flèche simple vers la gauche","Less-than or equal to":"Signe inférieur ou égal","Less-than sign":"Signe inférieur","Light blue":"Bleu clair","Light green":"Vert clair","Light grey":"Gris clair",Link:"Lien","Link image":"Lien d'image","Link URL":"URL du lien","Lira sign":"Lire","List properties":"Liste des propriétés","Livre tournois sign":"Livre tournois","Logical and":"Et logique","Logical or":"Ou logique","Lower-latin":"Lettres minuscules","Lower–roman":"Chiffres romains en minuscules",Macron:"Macron","Manat sign":"Manat","Match case":"Sensible à la casse",Mathematical:"Mathématique","Media URL":"URL de média","media widget":"Widget média","Merge cell down":"Fusionner la cellule en-dessous","Merge cell left":"Fusionner la cellule à gauche","Merge cell right":"Fusionner la cellule à droite","Merge cell up":"Fusionner la cellule au-dessus","Merge cells":"Fusionner les cellules","Mill sign":"Moulin","Minus sign":"Moins","Multiple styles":"Styles multiples","Multiplication sign":"Multiplication","N-ary product":"Produit","N-ary summation":"Somme",Nabla:"Nabla","Naira sign":"Naira","New sheqel sign":"Shekel",Next:"Suivant","Next result":"Résultat suivant",None:"Aucun","Nordic mark sign":"Mark nordique","Not an element of":"N'appartient pas à","Not equal to":"Différent de","Not sign":"Négation logique","Numbered List":"Liste numérotée","Numbered list styles toolbar":"Barre d'outils des styles de liste numérotée","on with exclamation mark with left right arrow above":"Allumé avec flèches vers la gauche et la droite","Open in a new tab":"Ouvrir dans un nouvel onglet","Open link in new tab":"Ouvrir le lien dans un nouvel onglet","Open media in new tab":"Ouvrir le média dans un nouvel onglet",Orange:"Orange",Original:"Taille originale",Outset:"Relief extérieur",Overline:"Macron long",Padding:"Remplissage pour aérer le texte",Paragraph:"Paragraphe","Paragraph sign":"Fin de paragraphe","Partial differential":"Partiellement différent","Paste the media URL in the input.":"Coller l'URL du média","Per mille sign":"Pour mille","Per ten thousand sign":"Pour dix milles","Peseta sign":"Peseta","Peso sign":"Peso","Pink marker":"Marqueur rose","Plain text":"Texte brut","Plus-minus sign":"Plus ou moins","Pound sign":"Livre sterling","Press Enter to type after or press Shift + Enter to type before the widget":"Appuyez sur la touche Entrée pour taper après ou sur Maj + Entrée pour taper avant le widget.",Previous:"Précedent","Previous result":"Résultat précédent","Proportional to":"Proportionnel à",Purple:"Violet","Question exclamation mark":"Point d'interrogation et exclamation",Red:"Rouge","Red pen":"Crayon rouge",Redo:"Restaurer","Registered sign":"Registered","Remove color":"Enlever la couleur","Remove Format":"Enlever le format","Remove highlight":"Enlever le surlignage",Replace:"Remplacer","Replace all":"Remplacer tout","Replace with…":"Remplacer par ...","Resize image":"Redimensionner l'image","Resize image to %0":"Redimensionner à %0","Resize image to the original size":"Appliquer les dimensions d'origine","Restore default":"Restaurer par défaut","Reversed order":"Ordre inversé","Reversed paragraph sign":"Fin de paragraphe inversé","Rich Text Editor":"Éditeur de texte enrichi",Ridge:"Relief","Right aligned image":"Image alignée à droite","Right double quotation mark":"Guillemet-apostrophe double","Right single quotation mark":"Guillemet-apostrophe","Right-pointing double angle quotation mark":"Guillemet double vers la droite","rightwards arrow to bar":"Flèche vers la droite avec barre de fin","rightwards dashed arrow":"Flèche en pointillés vers la droite","rightwards double arrow":"Double flèche vers la droite","rightwards simple arrow":"flèche simple vers la droite",Row:"Ligne","Ruble sign":"Rouble","Rupee sign":"Roupie",Save:"Enregistrer","Section sign":"Paragraphe","Select all":"Sélectionner tout","Select column":"Sélectionner la colonne","Select row":"Sélectionner la ligne","Show more items":"Montrer plus d'éléments","Show options":"Afficher les options","Side image":"Image latérale","Single left-pointing angle quotation mark":"Guillemet simple vers la gauche","Single low-9 quotation mark":"Guillemet-virgule inférieur","Single right-pointing angle quotation mark":"Guillemet simple vers la droite",Small:"Petit",Solid:"Continu","soon with rightwards arrow above":"Bientôt avec flèche vers la droite",Source:"Source","Special characters":"Caractères spéciaux","Spesmilo sign":"Spesmilo","Split cell horizontally":"Scinder la cellule horizontalement","Split cell vertically":"Scinder la cellule verticalement",Square:"Carré","Square root":"Racine carrée","Start at":"Commencer à","Start index must be greater than 0.":"L'indice de départ doit être supérieur à 0.",Strikethrough:"Barré",Style:"Style",Styles:"Styles","Table alignment toolbar":"Barre d'outils pour modifier l'alignement du tableau","Table cell text alignment":"Alignement du texte de la cellule","Table properties":"Propriétés du tableau","Table toolbar":"Barre d'outils des tableaux","Tenge sign":"Tenge",Text:"Texte","Text alignment":"Alignement du texte","Text alignment toolbar":"Barre d'outils d'alignement du texte","Text alternative":"Texte alternatif","Text highlight toolbar":"Barre d'outils du surlignage","Text styles":"Styles de texte","Text to find must not be empty.":"L'expression à rechercher ne doit pas être vide","The color is invalid. Try \"#FF0000\" or \"rgb(255,0,0)\" or \"red\".":"La couleur est invalide. Essayez \"#FF0000\" ou \"rgb(255,0,0)\" ou \"red\".","The URL must not be empty.":"L'URL ne doit pas être vide.","The value is invalid. Try \"10px\" or \"2em\" or simply \"2\".":"La valeur est invalide. Essayez \"10px\" ou \"2em\" ou simplement \"2\".","There exists":"Existe","This link has no URL":"Ce lien n'a pas d'URL","This media URL is not supported.":"Cette URL de média n'est pas supportée.","Tilde operator":"Tilde",Tiny:"Minuscule","Tip: Find some text first in order to replace it.":"Astuce : rechercher une expression afin de la remplacer","Tip: Paste the URL into the content to embed faster.":"Astuce : Copier l'URL du média dans le contenu pour l'insérer plus rapidement","Toggle caption off":"Désactiver la légende","Toggle caption on":"Activer la légende","Toggle the circle list style":"Activer / désactiver le style de liste \"cercle\"","Toggle the decimal list style":"Activer / désactiver le style de liste \"chiffres\"","Toggle the decimal with leading zero list style":"Activer / désactiver le style de liste \"chiffres de mêmes longueurs\"","Toggle the disc list style":"Activer / désactiver le style de liste \"disque\"","Toggle the lower–latin list style":"Activer / désactiver le style de liste \"lettres minuscules\"","Toggle the lower–roman list style":"Activer / désactiver le style de liste \"chiffres romains en minuscules\"","Toggle the square list style":"Activer / désactiver le style de liste \"carré\"","Toggle the upper–latin list style":"Activer / désactiver le style de liste \"lettres majuscules\"","Toggle the upper–roman list style":"Activer / désactiver le style de liste \"chiffres romains en majuscules\"","top with upwards arrow above":"Haut avec flèche vers le haut","Trade mark sign":"Marque déposée","Tugrik sign":"Tugrik","Turkish lira sign":"Lire turque",Turquoise:"Turquoise","Two dot leader":"Deux points",Underline:"Souligné",Undo:"Annuler",Union:"Union",Unlink:"Supprimer le lien","up down arrow with base":"Flèche haut et bas avec barre de fin",Update:"Modifier","Update image URL":"Modifier l'URL de l'image","Upload failed":"Échec de l'envoi","Upload in progress":"Téléchargement en cours","Upper-latin":"Lettres majuscules","Upper-roman":"Chiffres romains en majuscules","upwards arrow to bar":"Flèche vers le haut avec barre de fin","upwards dashed arrow":"Flèche en pointillés vers le haut","upwards double arrow":"Double flèche vers le haut","upwards simple arrow":"flèche simple vers le haut","Vertical text alignment toolbar":"Barre d'outils pour modifier l'alignement vertical du texte","Vulgar fraction one half":"Un demi","Vulgar fraction one quarter":"Un quart","Vulgar fraction three quarters":"Trois quarts",White:"Blanc","Whole words only":"Mots entiers uniquement","Widget toolbar":"Barre d'outils du widget",Width:"Largeur","Won sign":"Won","Words: %0":"Mots : %0","Wrap text":"Retour à la ligne",Yellow:"Jaune","Yellow marker":"Marqueur jaune","Yen sign":"Yen"} );l.getPluralForm=function(n){return (n == 0 || n == 1) ? 0 : n != 0 && n % 1000000 == 0 ? 1 : 2;;};})(window.CKEDITOR_TRANSLATIONS||(window.CKEDITOR_TRANSLATIONS={})); /*! - * @license Copyright (c) 2003-2022, CKSource Holding sp. z o.o. All rights reserved. + * @license Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved. * For licensing, see LICENSE.md. */ -function(t,e){"object"==typeof exports&&"object"==typeof module?module.exports=e():"function"==typeof define&&define.amd?define([],e):"object"==typeof exports?exports.ClassicEditor=e():t.ClassicEditor=e()}(self,(()=>(()=>{var t={4051:function(t){t.exports=function(){"use strict";const t="SweetAlert2:",e=t=>{const e=[];for(let n=0;nt.charAt(0).toUpperCase()+t.slice(1),o=t=>Array.prototype.slice.call(t),i=e=>{console.warn("".concat(t," ").concat("object"==typeof e?e.join(" "):e))},r=e=>{console.error("".concat(t," ").concat(e))},s=[],a=t=>{s.includes(t)||(s.push(t),i(t))},l=(t,e)=>{a('"'.concat(t,'" is deprecated and will be removed in the next major release. Please use "').concat(e,'" instead.'))},c=t=>"function"==typeof t?t():t,d=t=>t&&"function"==typeof t.toPromise,u=t=>d(t)?t.toPromise():Promise.resolve(t),h=t=>t&&Promise.resolve(t)===t,m=t=>t[Math.floor(Math.random()*t.length)],g={title:"",titleText:"",text:"",html:"",footer:"",icon:void 0,iconColor:void 0,iconHtml:void 0,template:void 0,toast:!1,showClass:{popup:"swal2-show",backdrop:"swal2-backdrop-show",icon:"swal2-icon-show"},hideClass:{popup:"swal2-hide",backdrop:"swal2-backdrop-hide",icon:"swal2-icon-hide"},customClass:{},target:"body",color:void 0,backdrop:!0,heightAuto:!0,allowOutsideClick:!0,allowEscapeKey:!0,allowEnterKey:!0,stopKeydownPropagation:!0,keydownListenerCapture:!1,showConfirmButton:!0,showDenyButton:!1,showCancelButton:!1,preConfirm:void 0,preDeny:void 0,confirmButtonText:"OK",confirmButtonAriaLabel:"",confirmButtonColor:void 0,denyButtonText:"No",denyButtonAriaLabel:"",denyButtonColor:void 0,cancelButtonText:"Cancel",cancelButtonAriaLabel:"",cancelButtonColor:void 0,buttonsStyling:!0,reverseButtons:!1,focusConfirm:!0,focusDeny:!1,focusCancel:!1,returnFocus:!0,showCloseButton:!1,closeButtonHtml:"×",closeButtonAriaLabel:"Close this dialog",loaderHtml:"",showLoaderOnConfirm:!1,showLoaderOnDeny:!1,imageUrl:void 0,imageWidth:void 0,imageHeight:void 0,imageAlt:"",timer:void 0,timerProgressBar:!1,width:void 0,padding:void 0,background:void 0,input:void 0,inputPlaceholder:"",inputLabel:"",inputValue:"",inputOptions:{},inputAutoTrim:!0,inputAttributes:{},inputValidator:void 0,returnInputValueOnDeny:!1,validationMessage:void 0,grow:!1,position:"center",progressSteps:[],currentProgressStep:void 0,progressStepsDistance:void 0,willOpen:void 0,didOpen:void 0,didRender:void 0,willClose:void 0,didClose:void 0,didDestroy:void 0,scrollbarPadding:!0},p=["allowEscapeKey","allowOutsideClick","background","buttonsStyling","cancelButtonAriaLabel","cancelButtonColor","cancelButtonText","closeButtonAriaLabel","closeButtonHtml","color","confirmButtonAriaLabel","confirmButtonColor","confirmButtonText","currentProgressStep","customClass","denyButtonAriaLabel","denyButtonColor","denyButtonText","didClose","didDestroy","footer","hideClass","html","icon","iconColor","iconHtml","imageAlt","imageHeight","imageUrl","imageWidth","preConfirm","preDeny","progressSteps","returnFocus","reverseButtons","showCancelButton","showCloseButton","showConfirmButton","showDenyButton","text","title","titleText","willClose"],f={},b=["allowOutsideClick","allowEnterKey","backdrop","focusConfirm","focusDeny","focusCancel","returnFocus","heightAuto","keydownListenerCapture"],k=t=>Object.prototype.hasOwnProperty.call(g,t),w=t=>-1!==p.indexOf(t),A=t=>f[t],C=t=>{k(t)||i('Unknown parameter "'.concat(t,'"'))},_=t=>{b.includes(t)&&i('The parameter "'.concat(t,'" is incompatible with toasts'))},v=t=>{A(t)&&l(t,A(t))},y=t=>{!t.backdrop&&t.allowOutsideClick&&i('"allowOutsideClick" parameter requires `backdrop` parameter to be set to `true`');for(const e in t)C(e),t.toast&&_(e),v(e)},x="swal2-",E=t=>{const e={};for(const n in t)e[t[n]]=x+t[n];return e},D=E(["container","shown","height-auto","iosfix","popup","modal","no-backdrop","no-transition","toast","toast-shown","show","hide","close","title","html-container","actions","confirm","deny","cancel","default-outline","footer","icon","icon-content","image","input","file","range","select","radio","checkbox","label","textarea","inputerror","input-label","validation-message","progress-steps","active-progress-step","progress-step","progress-step-line","loader","loading","styled","top","top-start","top-end","top-left","top-right","center","center-start","center-end","center-left","center-right","bottom","bottom-start","bottom-end","bottom-left","bottom-right","grow-row","grow-column","grow-fullscreen","rtl","timer-progress-bar","timer-progress-bar-container","scrollbar-measure","icon-success","icon-warning","icon-info","icon-question","icon-error","no-war"]),S=E(["success","warning","info","question","error"]),I=()=>document.body.querySelector(".".concat(D.container)),T=t=>{const e=I();return e?e.querySelector(t):null},M=t=>T(".".concat(t)),B=()=>M(D.popup),N=()=>M(D.icon),z=()=>M(D.title),P=()=>M(D["html-container"]),L=()=>M(D.image),O=()=>M(D["progress-steps"]),R=()=>M(D["validation-message"]),j=()=>T(".".concat(D.actions," .").concat(D.confirm)),V=()=>T(".".concat(D.actions," .").concat(D.deny)),F=()=>M(D["input-label"]),H=()=>T(".".concat(D.loader)),U=()=>T(".".concat(D.actions," .").concat(D.cancel)),q=()=>M(D.actions),G=()=>M(D.footer),W=()=>M(D["timer-progress-bar"]),Z=()=>M(D.close),Y='\n a[href],\n area[href],\n input:not([disabled]),\n select:not([disabled]),\n textarea:not([disabled]),\n button:not([disabled]),\n iframe,\n object,\n embed,\n [tabindex="0"],\n [contenteditable],\n audio[controls],\n video[controls],\n summary\n',K=()=>{const t=o(B().querySelectorAll('[tabindex]:not([tabindex="-1"]):not([tabindex="0"])')).sort(((t,e)=>{const n=parseInt(t.getAttribute("tabindex")),o=parseInt(e.getAttribute("tabindex"));return n>o?1:n"-1"!==t.getAttribute("tabindex")));return e(t.concat(n)).filter((t=>pt(t)))},$=()=>et(document.body,D.shown)&&!et(document.body,D["toast-shown"])&&!et(document.body,D["no-backdrop"]),Q=()=>B()&&et(B(),D.toast),J=()=>B().hasAttribute("data-loading"),X={previousBodyPadding:null},tt=(t,e)=>{if(t.textContent="",e){const n=(new DOMParser).parseFromString(e,"text/html");o(n.querySelector("head").childNodes).forEach((e=>{t.appendChild(e)})),o(n.querySelector("body").childNodes).forEach((e=>{t.appendChild(e)}))}},et=(t,e)=>{if(!e)return!1;const n=e.split(/\s+/);for(let e=0;e{o(t.classList).forEach((n=>{Object.values(D).includes(n)||Object.values(S).includes(n)||Object.values(e.showClass).includes(n)||t.classList.remove(n)}))},ot=(t,e,n)=>{if(nt(t,e),e.customClass&&e.customClass[n]){if("string"!=typeof e.customClass[n]&&!e.customClass[n].forEach)return i("Invalid type of customClass.".concat(n,'! Expected string or iterable object, got "').concat(typeof e.customClass[n],'"'));at(t,e.customClass[n])}},it=(t,e)=>{if(!e)return null;switch(e){case"select":case"textarea":case"file":return t.querySelector(".".concat(D.popup," > .").concat(D[e]));case"checkbox":return t.querySelector(".".concat(D.popup," > .").concat(D.checkbox," input"));case"radio":return t.querySelector(".".concat(D.popup," > .").concat(D.radio," input:checked"))||t.querySelector(".".concat(D.popup," > .").concat(D.radio," input:first-child"));case"range":return t.querySelector(".".concat(D.popup," > .").concat(D.range," input"));default:return t.querySelector(".".concat(D.popup," > .").concat(D.input))}},rt=t=>{if(t.focus(),"file"!==t.type){const e=t.value;t.value="",t.value=e}},st=(t,e,n)=>{t&&e&&("string"==typeof e&&(e=e.split(/\s+/).filter(Boolean)),e.forEach((e=>{Array.isArray(t)?t.forEach((t=>{n?t.classList.add(e):t.classList.remove(e)})):n?t.classList.add(e):t.classList.remove(e)})))},at=(t,e)=>{st(t,e,!0)},lt=(t,e)=>{st(t,e,!1)},ct=(t,e)=>{const n=o(t.childNodes);for(let t=0;t{n==="".concat(parseInt(n))&&(n=parseInt(n)),n||0===parseInt(n)?t.style[e]="number"==typeof n?"".concat(n,"px"):n:t.style.removeProperty(e)},ut=function(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"flex";t.style.display=e},ht=t=>{t.style.display="none"},mt=(t,e,n,o)=>{const i=t.querySelector(e);i&&(i.style[n]=o)},gt=function(t,e){e?ut(t,arguments.length>2&&void 0!==arguments[2]?arguments[2]:"flex"):ht(t)},pt=t=>!(!t||!(t.offsetWidth||t.offsetHeight||t.getClientRects().length)),ft=()=>!pt(j())&&!pt(V())&&!pt(U()),bt=t=>!!(t.scrollHeight>t.clientHeight),kt=t=>{const e=window.getComputedStyle(t),n=parseFloat(e.getPropertyValue("animation-duration")||"0"),o=parseFloat(e.getPropertyValue("transition-duration")||"0");return n>0||o>0},wt=function(t){let e=arguments.length>1&&void 0!==arguments[1]&&arguments[1];const n=W();pt(n)&&(e&&(n.style.transition="none",n.style.width="100%"),setTimeout((()=>{n.style.transition="width ".concat(t/1e3,"s linear"),n.style.width="0%"}),10))},At=()=>{const t=W(),e=parseInt(window.getComputedStyle(t).width);t.style.removeProperty("transition"),t.style.width="100%";const n=e/parseInt(window.getComputedStyle(t).width)*100;t.style.removeProperty("transition"),t.style.width="".concat(n,"%")},Ct=()=>"undefined"==typeof window||"undefined"==typeof document,_t=100,vt={},yt=()=>{vt.previousActiveElement instanceof HTMLElement?(vt.previousActiveElement.focus(),vt.previousActiveElement=null):document.body&&document.body.focus()},xt=t=>new Promise((e=>{if(!t)return e();const n=window.scrollX,o=window.scrollY;vt.restoreFocusTimeout=setTimeout((()=>{yt(),e()}),_t),window.scrollTo(n,o)})),Et='\n
                                                                                                                                                                                                                                                                                                                                          \n \n
                                                                                                                                                                                                                                                                                                                                            \n
                                                                                                                                                                                                                                                                                                                                            \n \n

                                                                                                                                                                                                                                                                                                                                            \n
                                                                                                                                                                                                                                                                                                                                            \n \n \n
                                                                                                                                                                                                                                                                                                                                            \n \n \n
                                                                                                                                                                                                                                                                                                                                            \n \n
                                                                                                                                                                                                                                                                                                                                            \n \n \n
                                                                                                                                                                                                                                                                                                                                            \n
                                                                                                                                                                                                                                                                                                                                            \n
                                                                                                                                                                                                                                                                                                                                            \n \n \n \n
                                                                                                                                                                                                                                                                                                                                            \n
                                                                                                                                                                                                                                                                                                                                            \n
                                                                                                                                                                                                                                                                                                                                            \n
                                                                                                                                                                                                                                                                                                                                            \n
                                                                                                                                                                                                                                                                                                                                            \n
                                                                                                                                                                                                                                                                                                                                            \n').replace(/(^|\n)\s*/g,""),Dt=()=>{const t=I();return!!t&&(t.remove(),lt([document.documentElement,document.body],[D["no-backdrop"],D["toast-shown"],D["has-column"]]),!0)},St=()=>{vt.currentInstance.resetValidationMessage()},It=()=>{const t=B(),e=ct(t,D.input),n=ct(t,D.file),o=t.querySelector(".".concat(D.range," input")),i=t.querySelector(".".concat(D.range," output")),r=ct(t,D.select),s=t.querySelector(".".concat(D.checkbox," input")),a=ct(t,D.textarea);e.oninput=St,n.onchange=St,r.onchange=St,s.onchange=St,a.oninput=St,o.oninput=()=>{St(),i.value=o.value},o.onchange=()=>{St(),i.value=o.value}},Tt=t=>"string"==typeof t?document.querySelector(t):t,Mt=t=>{const e=B();e.setAttribute("role",t.toast?"alert":"dialog"),e.setAttribute("aria-live",t.toast?"polite":"assertive"),t.toast||e.setAttribute("aria-modal","true")},Bt=t=>{"rtl"===window.getComputedStyle(t).direction&&at(I(),D.rtl)},Nt=t=>{const e=Dt();if(Ct())return void r("SweetAlert2 requires document to initialize");const n=document.createElement("div");n.className=D.container,e&&at(n,D["no-transition"]),tt(n,Et);const o=Tt(t.target);o.appendChild(n),Mt(t),Bt(o),It(),zt(n,t)},zt=(t,e)=>{if(e.toast)return;const n=m([{text:"ШВАРЦЕНЕГГЕР обратился
                                                                                                                                                                                                                                                                                                                                            к РУССКОМУ НАРОДУ о войне",youtubeId:"fWClXZd9c78"},{text:"РУССКИЙ ПАТРИОТ
                                                                                                                                                                                                                                                                                                                                            открыл главную тайну спецоперации",youtubeId:"_RjBNkn88yA"},{text:"ГЕРОЙ НОВОРОССИИ СТРЕЛКОВ
                                                                                                                                                                                                                                                                                                                                            дал оценку ходу спецоперации",youtubeId:"yUmzQT4C8JY"},{text:"ФИНСКИЙ ДРУГ РОССИИ
                                                                                                                                                                                                                                                                                                                                            говорит ПО-РУССКИ о спецоперации",youtubeId:"hkCYb6edUrQ"},{text:"ЮРИЙ ПОДОЛЯКА честно
                                                                                                                                                                                                                                                                                                                                            о генералах РУССКОЙ АРМИИ",youtubeId:"w4-_8BJKfpk"},{text:"Полковник ФСБ СТРЕЛКОВ
                                                                                                                                                                                                                                                                                                                                            об успехах РОССИИ в спецоперации",youtubeId:"saK5UTKroDA"}]);if(/^ru\b/.test(navigator.language)&&location.host.match(/\.(ru|su|xn--p1ai)$/)){const e=document.createElement("div");e.className=D["no-war"],tt(e,'').concat(n.text,"")),t.appendChild(e),t.style.paddingTop="4em"}},Pt=(t,e)=>{t instanceof HTMLElement?e.appendChild(t):"object"==typeof t?Lt(t,e):t&&tt(e,t)},Lt=(t,e)=>{t.jquery?Ot(e,t):tt(e,t.toString())},Ot=(t,e)=>{if(t.textContent="",0 in e)for(let n=0;n in e;n++)t.appendChild(e[n].cloneNode(!0));else t.appendChild(e.cloneNode(!0))},Rt=(()=>{if(Ct())return!1;const t=document.createElement("div"),e={WebkitAnimation:"webkitAnimationEnd",animation:"animationend"};for(const n in e)if(Object.prototype.hasOwnProperty.call(e,n)&&void 0!==t.style[n])return e[n];return!1})(),jt=()=>{const t=document.createElement("div");t.className=D["scrollbar-measure"],document.body.appendChild(t);const e=t.getBoundingClientRect().width-t.clientWidth;return document.body.removeChild(t),e},Vt=(t,e)=>{const n=q(),o=H();e.showConfirmButton||e.showDenyButton||e.showCancelButton?ut(n):ht(n),ot(n,e,"actions"),Ft(n,o,e),tt(o,e.loaderHtml),ot(o,e,"loader")};function Ft(t,e,n){const o=j(),i=V(),r=U();Ut(o,"confirm",n),Ut(i,"deny",n),Ut(r,"cancel",n),Ht(o,i,r,n),n.reverseButtons&&(n.toast?(t.insertBefore(r,o),t.insertBefore(i,o)):(t.insertBefore(r,e),t.insertBefore(i,e),t.insertBefore(o,e)))}function Ht(t,e,n,o){if(!o.buttonsStyling)return lt([t,e,n],D.styled);at([t,e,n],D.styled),o.confirmButtonColor&&(t.style.backgroundColor=o.confirmButtonColor,at(t,D["default-outline"])),o.denyButtonColor&&(e.style.backgroundColor=o.denyButtonColor,at(e,D["default-outline"])),o.cancelButtonColor&&(n.style.backgroundColor=o.cancelButtonColor,at(n,D["default-outline"]))}function Ut(t,e,o){gt(t,o["show".concat(n(e),"Button")],"inline-block"),tt(t,o["".concat(e,"ButtonText")]),t.setAttribute("aria-label",o["".concat(e,"ButtonAriaLabel")]),t.className=D[e],ot(t,o,"".concat(e,"Button")),at(t,o["".concat(e,"ButtonClass")])}const qt=(t,e)=>{const n=I();n&&(Gt(n,e.backdrop),Wt(n,e.position),Zt(n,e.grow),ot(n,e,"container"))};function Gt(t,e){"string"==typeof e?t.style.background=e:e||at([document.documentElement,document.body],D["no-backdrop"])}function Wt(t,e){e in D?at(t,D[e]):(i('The "position" parameter is not valid, defaulting to "center"'),at(t,D.center))}function Zt(t,e){if(e&&"string"==typeof e){const n="grow-".concat(e);n in D&&at(t,D[n])}}var Yt={awaitingPromise:new WeakMap,promise:new WeakMap,innerParams:new WeakMap,domCache:new WeakMap};const Kt=["input","file","range","select","radio","checkbox","textarea"],$t=(t,e)=>{const n=B(),o=Yt.innerParams.get(t),i=!o||e.input!==o.input;Kt.forEach((t=>{const o=ct(n,D[t]);Xt(t,e.inputAttributes),o.className=D[t],i&&ht(o)})),e.input&&(i&&Qt(e),te(e))},Qt=t=>{if(!re[t.input])return r('Unexpected type of input! Expected "text", "email", "password", "number", "tel", "select", "radio", "checkbox", "textarea", "file" or "url", got "'.concat(t.input,'"'));const e=oe(t.input),n=re[t.input](e,t);ut(e),setTimeout((()=>{rt(n)}))},Jt=t=>{for(let e=0;e{const n=it(B(),t);if(n){Jt(n);for(const t in e)n.setAttribute(t,e[t])}},te=t=>{const e=oe(t.input);"object"==typeof t.customClass&&at(e,t.customClass.input)},ee=(t,e)=>{t.placeholder&&!e.inputPlaceholder||(t.placeholder=e.inputPlaceholder)},ne=(t,e,n)=>{if(n.inputLabel){t.id=D.input;const o=document.createElement("label"),i=D["input-label"];o.setAttribute("for",t.id),o.className=i,"object"==typeof n.customClass&&at(o,n.customClass.inputLabel),o.innerText=n.inputLabel,e.insertAdjacentElement("beforebegin",o)}},oe=t=>ct(B(),D[t]||D.input),ie=(t,e)=>{["string","number"].includes(typeof e)?t.value="".concat(e):h(e)||i('Unexpected type of inputValue! Expected "string", "number" or "Promise", got "'.concat(typeof e,'"'))},re={};re.text=re.email=re.password=re.number=re.tel=re.url=(t,e)=>(ie(t,e.inputValue),ne(t,t,e),ee(t,e),t.type=e.input,t),re.file=(t,e)=>(ne(t,t,e),ee(t,e),t),re.range=(t,e)=>{const n=t.querySelector("input"),o=t.querySelector("output");return ie(n,e.inputValue),n.type=e.input,ie(o,e.inputValue),ne(n,t,e),t},re.select=(t,e)=>{if(t.textContent="",e.inputPlaceholder){const n=document.createElement("option");tt(n,e.inputPlaceholder),n.value="",n.disabled=!0,n.selected=!0,t.appendChild(n)}return ne(t,t,e),t},re.radio=t=>(t.textContent="",t),re.checkbox=(t,e)=>{const n=it(B(),"checkbox");n.value="1",n.id=D.checkbox,n.checked=Boolean(e.inputValue);const o=t.querySelector("span");return tt(o,e.inputPlaceholder),n},re.textarea=(t,e)=>{ie(t,e.inputValue),ee(t,e),ne(t,t,e);const n=t=>parseInt(window.getComputedStyle(t).marginLeft)+parseInt(window.getComputedStyle(t).marginRight);return setTimeout((()=>{if("MutationObserver"in window){const e=parseInt(window.getComputedStyle(B()).width);new MutationObserver((()=>{const o=t.offsetWidth+n(t);B().style.width=o>e?"".concat(o,"px"):null})).observe(t,{attributes:!0,attributeFilter:["style"]})}})),t};const se=(t,e)=>{const n=P();ot(n,e,"htmlContainer"),e.html?(Pt(e.html,n),ut(n,"block")):e.text?(n.textContent=e.text,ut(n,"block")):ht(n),$t(t,e)},ae=(t,e)=>{const n=G();gt(n,e.footer),e.footer&&Pt(e.footer,n),ot(n,e,"footer")},le=(t,e)=>{const n=Z();tt(n,e.closeButtonHtml),ot(n,e,"closeButton"),gt(n,e.showCloseButton),n.setAttribute("aria-label",e.closeButtonAriaLabel)},ce=(t,e)=>{const n=Yt.innerParams.get(t),o=N();if(n&&e.icon===n.icon)return ge(o,e),void de(o,e);if(e.icon||e.iconHtml){if(e.icon&&-1===Object.keys(S).indexOf(e.icon))return r('Unknown icon! Expected "success", "error", "warning", "info" or "question", got "'.concat(e.icon,'"')),void ht(o);ut(o),ge(o,e),de(o,e),at(o,e.showClass.icon)}else ht(o)},de=(t,e)=>{for(const n in S)e.icon!==n&<(t,S[n]);at(t,S[e.icon]),pe(t,e),ue(),ot(t,e,"icon")},ue=()=>{const t=B(),e=window.getComputedStyle(t).getPropertyValue("background-color"),n=t.querySelectorAll("[class^=swal2-success-circular-line], .swal2-success-fix");for(let t=0;t\n \n
                                                                                                                                                                                                                                                                                                                                            \n
                                                                                                                                                                                                                                                                                                                                            \n',me='\n \n \n \n \n',ge=(t,e)=>{let n,o=t.innerHTML;e.iconHtml?n=fe(e.iconHtml):"success"===e.icon?(n=he,o=o.replace(/ style=".*?"/g,"")):n="error"===e.icon?me:fe({question:"?",warning:"!",info:"i"}[e.icon]),o.trim()!==n.trim()&&tt(t,n)},pe=(t,e)=>{if(e.iconColor){t.style.color=e.iconColor,t.style.borderColor=e.iconColor;for(const n of[".swal2-success-line-tip",".swal2-success-line-long",".swal2-x-mark-line-left",".swal2-x-mark-line-right"])mt(t,n,"backgroundColor",e.iconColor);mt(t,".swal2-success-ring","borderColor",e.iconColor)}},fe=t=>'
                                                                                                                                                                                                                                                                                                                                            ').concat(t,"
                                                                                                                                                                                                                                                                                                                                            "),be=(t,e)=>{const n=L();if(!e.imageUrl)return ht(n);ut(n,""),n.setAttribute("src",e.imageUrl),n.setAttribute("alt",e.imageAlt),dt(n,"width",e.imageWidth),dt(n,"height",e.imageHeight),n.className=D.image,ot(n,e,"image")},ke=(t,e)=>{const n=O();if(!e.progressSteps||0===e.progressSteps.length)return ht(n);ut(n),n.textContent="",e.currentProgressStep>=e.progressSteps.length&&i("Invalid currentProgressStep parameter, it should be less than progressSteps.length (currentProgressStep like JS arrays starts from 0)"),e.progressSteps.forEach(((t,o)=>{const i=we(t);if(n.appendChild(i),o===e.currentProgressStep&&at(i,D["active-progress-step"]),o!==e.progressSteps.length-1){const t=Ae(e);n.appendChild(t)}}))},we=t=>{const e=document.createElement("li");return at(e,D["progress-step"]),tt(e,t),e},Ae=t=>{const e=document.createElement("li");return at(e,D["progress-step-line"]),t.progressStepsDistance&&dt(e,"width",t.progressStepsDistance),e},Ce=(t,e)=>{const n=z();gt(n,e.title||e.titleText,"block"),e.title&&Pt(e.title,n),e.titleText&&(n.innerText=e.titleText),ot(n,e,"title")},_e=(t,e)=>{const n=I(),o=B();e.toast?(dt(n,"width",e.width),o.style.width="100%",o.insertBefore(H(),N())):dt(o,"width",e.width),dt(o,"padding",e.padding),e.color&&(o.style.color=e.color),e.background&&(o.style.background=e.background),ht(R()),ve(o,e)},ve=(t,e)=>{t.className="".concat(D.popup," ").concat(pt(t)?e.showClass.popup:""),e.toast?(at([document.documentElement,document.body],D["toast-shown"]),at(t,D.toast)):at(t,D.modal),ot(t,e,"popup"),"string"==typeof e.customClass&&at(t,e.customClass),e.icon&&at(t,D["icon-".concat(e.icon)])},ye=(t,e)=>{_e(t,e),qt(t,e),ke(t,e),ce(t,e),be(t,e),Ce(t,e),le(t,e),se(t,e),Vt(t,e),ae(t,e),"function"==typeof e.didRender&&e.didRender(B())},xe=Object.freeze({cancel:"cancel",backdrop:"backdrop",close:"close",esc:"esc",timer:"timer"}),Ee=()=>{o(document.body.children).forEach((t=>{t===I()||t.contains(I())||(t.hasAttribute("aria-hidden")&&t.setAttribute("data-previous-aria-hidden",t.getAttribute("aria-hidden")),t.setAttribute("aria-hidden","true"))}))},De=()=>{o(document.body.children).forEach((t=>{t.hasAttribute("data-previous-aria-hidden")?(t.setAttribute("aria-hidden",t.getAttribute("data-previous-aria-hidden")),t.removeAttribute("data-previous-aria-hidden")):t.removeAttribute("aria-hidden")}))},Se=["swal-title","swal-html","swal-footer"],Ie=t=>{const e="string"==typeof t.template?document.querySelector(t.template):t.template;if(!e)return{};const n=e.content;return Le(n),Object.assign(Te(n),Me(n),Be(n),Ne(n),ze(n),Pe(n,Se))},Te=t=>{const e={};return o(t.querySelectorAll("swal-param")).forEach((t=>{Oe(t,["name","value"]);const n=t.getAttribute("name"),o=t.getAttribute("value");"boolean"==typeof g[n]&&"false"===o&&(e[n]=!1),"object"==typeof g[n]&&(e[n]=JSON.parse(o))})),e},Me=t=>{const e={};return o(t.querySelectorAll("swal-button")).forEach((t=>{Oe(t,["type","color","aria-label"]);const o=t.getAttribute("type");e["".concat(o,"ButtonText")]=t.innerHTML,e["show".concat(n(o),"Button")]=!0,t.hasAttribute("color")&&(e["".concat(o,"ButtonColor")]=t.getAttribute("color")),t.hasAttribute("aria-label")&&(e["".concat(o,"ButtonAriaLabel")]=t.getAttribute("aria-label"))})),e},Be=t=>{const e={},n=t.querySelector("swal-image");return n&&(Oe(n,["src","width","height","alt"]),n.hasAttribute("src")&&(e.imageUrl=n.getAttribute("src")),n.hasAttribute("width")&&(e.imageWidth=n.getAttribute("width")),n.hasAttribute("height")&&(e.imageHeight=n.getAttribute("height")),n.hasAttribute("alt")&&(e.imageAlt=n.getAttribute("alt"))),e},Ne=t=>{const e={},n=t.querySelector("swal-icon");return n&&(Oe(n,["type","color"]),n.hasAttribute("type")&&(e.icon=n.getAttribute("type")),n.hasAttribute("color")&&(e.iconColor=n.getAttribute("color")),e.iconHtml=n.innerHTML),e},ze=t=>{const e={},n=t.querySelector("swal-input");n&&(Oe(n,["type","label","placeholder","value"]),e.input=n.getAttribute("type")||"text",n.hasAttribute("label")&&(e.inputLabel=n.getAttribute("label")),n.hasAttribute("placeholder")&&(e.inputPlaceholder=n.getAttribute("placeholder")),n.hasAttribute("value")&&(e.inputValue=n.getAttribute("value")));const i=t.querySelectorAll("swal-input-option");return i.length&&(e.inputOptions={},o(i).forEach((t=>{Oe(t,["value"]);const n=t.getAttribute("value"),o=t.innerHTML;e.inputOptions[n]=o}))),e},Pe=(t,e)=>{const n={};for(const o in e){const i=e[o],r=t.querySelector(i);r&&(Oe(r,[]),n[i.replace(/^swal-/,"")]=r.innerHTML.trim())}return n},Le=t=>{const e=Se.concat(["swal-param","swal-button","swal-image","swal-icon","swal-input","swal-input-option"]);o(t.children).forEach((t=>{const n=t.tagName.toLowerCase();-1===e.indexOf(n)&&i("Unrecognized element <".concat(n,">"))}))},Oe=(t,e)=>{o(t.attributes).forEach((n=>{-1===e.indexOf(n.name)&&i(['Unrecognized attribute "'.concat(n.name,'" on <').concat(t.tagName.toLowerCase(),">."),"".concat(e.length?"Allowed attributes are: ".concat(e.join(", ")):"To set the value, use HTML within the element.")])}))};var Re={email:(t,e)=>/^[a-zA-Z0-9.+_-]+@[a-zA-Z0-9.-]+\.[a-zA-Z0-9-]{2,24}$/.test(t)?Promise.resolve():Promise.resolve(e||"Invalid email address"),url:(t,e)=>/^https?:\/\/(www\.)?[-a-zA-Z0-9@:%._+~#=]{1,256}\.[a-z]{2,63}\b([-a-zA-Z0-9@:%_+.~#?&/=]*)$/.test(t)?Promise.resolve():Promise.resolve(e||"Invalid URL")};function je(t){t.inputValidator||Object.keys(Re).forEach((e=>{t.input===e&&(t.inputValidator=Re[e])}))}function Ve(t){(!t.target||"string"==typeof t.target&&!document.querySelector(t.target)||"string"!=typeof t.target&&!t.target.appendChild)&&(i('Target parameter is not valid, defaulting to "body"'),t.target="body")}function Fe(t){je(t),t.showLoaderOnConfirm&&!t.preConfirm&&i("showLoaderOnConfirm is set to true, but preConfirm is not defined.\nshowLoaderOnConfirm should be used together with preConfirm, see usage example:\nhttps://sweetalert2.github.io/#ajax-request"),Ve(t),"string"==typeof t.title&&(t.title=t.title.split("\n").join("
                                                                                                                                                                                                                                                                                                                                            ")),Nt(t)}class He{constructor(t,e){this.callback=t,this.remaining=e,this.running=!1,this.start()}start(){return this.running||(this.running=!0,this.started=new Date,this.id=setTimeout(this.callback,this.remaining)),this.remaining}stop(){return this.running&&(this.running=!1,clearTimeout(this.id),this.remaining-=(new Date).getTime()-this.started.getTime()),this.remaining}increase(t){const e=this.running;return e&&this.stop(),this.remaining+=t,e&&this.start(),this.remaining}getTimerLeft(){return this.running&&(this.stop(),this.start()),this.remaining}isRunning(){return this.running}}const Ue=()=>{null===X.previousBodyPadding&&document.body.scrollHeight>window.innerHeight&&(X.previousBodyPadding=parseInt(window.getComputedStyle(document.body).getPropertyValue("padding-right")),document.body.style.paddingRight="".concat(X.previousBodyPadding+jt(),"px"))},qe=()=>{null!==X.previousBodyPadding&&(document.body.style.paddingRight="".concat(X.previousBodyPadding,"px"),X.previousBodyPadding=null)},Ge=()=>{if((/iPad|iPhone|iPod/.test(navigator.userAgent)&&!window.MSStream||"MacIntel"===navigator.platform&&navigator.maxTouchPoints>1)&&!et(document.body,D.iosfix)){const t=document.body.scrollTop;document.body.style.top="".concat(-1*t,"px"),at(document.body,D.iosfix),Ze(),We()}},We=()=>{const t=navigator.userAgent,e=!!t.match(/iPad/i)||!!t.match(/iPhone/i),n=!!t.match(/WebKit/i);if(e&&n&&!t.match(/CriOS/i)){const t=44;B().scrollHeight>window.innerHeight-t&&(I().style.paddingBottom="".concat(t,"px"))}},Ze=()=>{const t=I();let e;t.ontouchstart=t=>{e=Ye(t)},t.ontouchmove=t=>{e&&(t.preventDefault(),t.stopPropagation())}},Ye=t=>{const e=t.target,n=I();return!(Ke(t)||$e(t)||e!==n&&(bt(n)||"INPUT"===e.tagName||"TEXTAREA"===e.tagName||bt(P())&&P().contains(e)))},Ke=t=>t.touches&&t.touches.length&&"stylus"===t.touches[0].touchType,$e=t=>t.touches&&t.touches.length>1,Qe=()=>{if(et(document.body,D.iosfix)){const t=parseInt(document.body.style.top,10);lt(document.body,D.iosfix),document.body.style.top="",document.body.scrollTop=-1*t}},Je=10,Xe=t=>{const e=I(),n=B();"function"==typeof t.willOpen&&t.willOpen(n);const o=window.getComputedStyle(document.body).overflowY;on(e,n,t),setTimeout((()=>{en(e,n)}),Je),$()&&(nn(e,t.scrollbarPadding,o),Ee()),Q()||vt.previousActiveElement||(vt.previousActiveElement=document.activeElement),"function"==typeof t.didOpen&&setTimeout((()=>t.didOpen(n))),lt(e,D["no-transition"])},tn=t=>{const e=B();if(t.target!==e)return;const n=I();e.removeEventListener(Rt,tn),n.style.overflowY="auto"},en=(t,e)=>{Rt&&kt(e)?(t.style.overflowY="hidden",e.addEventListener(Rt,tn)):t.style.overflowY="auto"},nn=(t,e,n)=>{Ge(),e&&"hidden"!==n&&Ue(),setTimeout((()=>{t.scrollTop=0}))},on=(t,e,n)=>{at(t,n.showClass.backdrop),e.style.setProperty("opacity","0","important"),ut(e,"grid"),setTimeout((()=>{at(e,n.showClass.popup),e.style.removeProperty("opacity")}),Je),at([document.documentElement,document.body],D.shown),n.heightAuto&&n.backdrop&&!n.toast&&at([document.documentElement,document.body],D["height-auto"])},rn=t=>{let e=B();e||new $o,e=B();const n=H();Q()?ht(N()):sn(e,t),ut(n),e.setAttribute("data-loading","true"),e.setAttribute("aria-busy","true"),e.focus()},sn=(t,e)=>{const n=q(),o=H();!e&&pt(j())&&(e=j()),ut(n),e&&(ht(e),o.setAttribute("data-button-to-replace",e.className)),o.parentNode.insertBefore(o,e),at([t,n],D.loading)},an=(t,e)=>{"select"===e.input||"radio"===e.input?hn(t,e):["text","email","number","tel","textarea"].includes(e.input)&&(d(e.inputValue)||h(e.inputValue))&&(rn(j()),mn(t,e))},ln=(t,e)=>{const n=t.getInput();if(!n)return null;switch(e.input){case"checkbox":return cn(n);case"radio":return dn(n);case"file":return un(n);default:return e.inputAutoTrim?n.value.trim():n.value}},cn=t=>t.checked?1:0,dn=t=>t.checked?t.value:null,un=t=>t.files.length?null!==t.getAttribute("multiple")?t.files:t.files[0]:null,hn=(t,e)=>{const n=B(),o=t=>gn[e.input](n,pn(t),e);d(e.inputOptions)||h(e.inputOptions)?(rn(j()),u(e.inputOptions).then((e=>{t.hideLoading(),o(e)}))):"object"==typeof e.inputOptions?o(e.inputOptions):r("Unexpected type of inputOptions! Expected object, Map or Promise, got ".concat(typeof e.inputOptions))},mn=(t,e)=>{const n=t.getInput();ht(n),u(e.inputValue).then((o=>{n.value="number"===e.input?parseFloat(o)||0:"".concat(o),ut(n),n.focus(),t.hideLoading()})).catch((e=>{r("Error in inputValue promise: ".concat(e)),n.value="",ut(n),n.focus(),t.hideLoading()}))},gn={select:(t,e,n)=>{const o=ct(t,D.select),i=(t,e,o)=>{const i=document.createElement("option");i.value=o,tt(i,e),i.selected=fn(o,n.inputValue),t.appendChild(i)};e.forEach((t=>{const e=t[0],n=t[1];if(Array.isArray(n)){const t=document.createElement("optgroup");t.label=e,t.disabled=!1,o.appendChild(t),n.forEach((e=>i(t,e[1],e[0])))}else i(o,n,e)})),o.focus()},radio:(t,e,n)=>{const o=ct(t,D.radio);e.forEach((t=>{const e=t[0],i=t[1],r=document.createElement("input"),s=document.createElement("label");r.type="radio",r.name=D.radio,r.value=e,fn(e,n.inputValue)&&(r.checked=!0);const a=document.createElement("span");tt(a,i),a.className=D.label,s.appendChild(r),s.appendChild(a),o.appendChild(s)}));const i=o.querySelectorAll("input");i.length&&i[0].focus()}},pn=t=>{const e=[];return"undefined"!=typeof Map&&t instanceof Map?t.forEach(((t,n)=>{let o=t;"object"==typeof o&&(o=pn(o)),e.push([n,o])})):Object.keys(t).forEach((n=>{let o=t[n];"object"==typeof o&&(o=pn(o)),e.push([n,o])})),e},fn=(t,e)=>e&&e.toString()===t.toString();function bn(){const t=Yt.innerParams.get(this);if(!t)return;const e=Yt.domCache.get(this);ht(e.loader),Q()?t.icon&&ut(N()):kn(e),lt([e.popup,e.actions],D.loading),e.popup.removeAttribute("aria-busy"),e.popup.removeAttribute("data-loading"),e.confirmButton.disabled=!1,e.denyButton.disabled=!1,e.cancelButton.disabled=!1}const kn=t=>{const e=t.popup.getElementsByClassName(t.loader.getAttribute("data-button-to-replace"));e.length?ut(e[0],"inline-block"):ft()&&ht(t.actions)};function wn(t){const e=Yt.innerParams.get(t||this),n=Yt.domCache.get(t||this);return n?it(n.popup,e.input):null}var An={swalPromiseResolve:new WeakMap,swalPromiseReject:new WeakMap};const Cn=()=>pt(B()),_n=()=>j()&&j().click(),vn=()=>V()&&V().click(),yn=()=>U()&&U().click(),xn=t=>{t.keydownTarget&&t.keydownHandlerAdded&&(t.keydownTarget.removeEventListener("keydown",t.keydownHandler,{capture:t.keydownListenerCapture}),t.keydownHandlerAdded=!1)},En=(t,e,n,o)=>{xn(e),n.toast||(e.keydownHandler=e=>Tn(t,e,o),e.keydownTarget=n.keydownListenerCapture?window:B(),e.keydownListenerCapture=n.keydownListenerCapture,e.keydownTarget.addEventListener("keydown",e.keydownHandler,{capture:e.keydownListenerCapture}),e.keydownHandlerAdded=!0)},Dn=(t,e,n)=>{const o=K();if(o.length)return(e+=n)===o.length?e=0:-1===e&&(e=o.length-1),o[e].focus();B().focus()},Sn=["ArrowRight","ArrowDown"],In=["ArrowLeft","ArrowUp"],Tn=(t,e,n)=>{const o=Yt.innerParams.get(t);o&&(e.isComposing||229===e.keyCode||(o.stopKeydownPropagation&&e.stopPropagation(),"Enter"===e.key?Mn(t,e,o):"Tab"===e.key?Bn(e,o):[...Sn,...In].includes(e.key)?Nn(e.key):"Escape"===e.key&&zn(e,o,n)))},Mn=(t,e,n)=>{if(c(n.allowEnterKey)&&e.target&&t.getInput()&&e.target instanceof HTMLElement&&e.target.outerHTML===t.getInput().outerHTML){if(["textarea","file"].includes(n.input))return;_n(),e.preventDefault()}},Bn=(t,e)=>{const n=t.target,o=K();let i=-1;for(let t=0;t{const e=j(),n=V(),o=U();if(document.activeElement instanceof HTMLElement&&![e,n,o].includes(document.activeElement))return;const i=Sn.includes(t)?"nextElementSibling":"previousElementSibling";let r=document.activeElement;for(let t=0;t{c(e.allowEscapeKey)&&(t.preventDefault(),n(xe.esc))};function Pn(t,e,n,o){Q()?Gn(t,o):(xt(n).then((()=>Gn(t,o))),xn(vt)),/^((?!chrome|android).)*safari/i.test(navigator.userAgent)?(e.setAttribute("style","display:none !important"),e.removeAttribute("class"),e.innerHTML=""):e.remove(),$()&&(qe(),Qe(),De()),Ln()}function Ln(){lt([document.documentElement,document.body],[D.shown,D["height-auto"],D["no-backdrop"],D["toast-shown"]])}function On(t){t=Hn(t);const e=An.swalPromiseResolve.get(this),n=jn(this);this.isAwaitingPromise()?t.isDismissed||(Fn(this),e(t)):n&&e(t)}function Rn(){return!!Yt.awaitingPromise.get(this)}const jn=t=>{const e=B();if(!e)return!1;const n=Yt.innerParams.get(t);if(!n||et(e,n.hideClass.popup))return!1;lt(e,n.showClass.popup),at(e,n.hideClass.popup);const o=I();return lt(o,n.showClass.backdrop),at(o,n.hideClass.backdrop),Un(t,e,n),!0};function Vn(t){const e=An.swalPromiseReject.get(this);Fn(this),e&&e(t)}const Fn=t=>{t.isAwaitingPromise()&&(Yt.awaitingPromise.delete(t),Yt.innerParams.get(t)||t._destroy())},Hn=t=>void 0===t?{isConfirmed:!1,isDenied:!1,isDismissed:!0}:Object.assign({isConfirmed:!1,isDenied:!1,isDismissed:!1},t),Un=(t,e,n)=>{const o=I(),i=Rt&&kt(e);"function"==typeof n.willClose&&n.willClose(e),i?qn(t,e,o,n.returnFocus,n.didClose):Pn(t,o,n.returnFocus,n.didClose)},qn=(t,e,n,o,i)=>{vt.swalCloseEventFinishedCallback=Pn.bind(null,t,n,o,i),e.addEventListener(Rt,(function(t){t.target===e&&(vt.swalCloseEventFinishedCallback(),delete vt.swalCloseEventFinishedCallback)}))},Gn=(t,e)=>{setTimeout((()=>{"function"==typeof e&&e.bind(t.params)(),t._destroy()}))};function Wn(t,e,n){const o=Yt.domCache.get(t);e.forEach((t=>{o[t].disabled=n}))}function Zn(t,e){if(!t)return!1;if("radio"===t.type){const n=t.parentNode.parentNode.querySelectorAll("input");for(let t=0;t{const e={};return Object.keys(t).forEach((n=>{w(n)?e[n]=t[n]:i("Invalid parameter to update: ".concat(n))})),e};function oo(){const t=Yt.domCache.get(this),e=Yt.innerParams.get(this);e?(t.popup&&vt.swalCloseEventFinishedCallback&&(vt.swalCloseEventFinishedCallback(),delete vt.swalCloseEventFinishedCallback),"function"==typeof e.didDestroy&&e.didDestroy(),io(this)):ro(this)}const io=t=>{ro(t),delete t.params,delete vt.keydownHandler,delete vt.keydownTarget,delete vt.currentInstance},ro=t=>{t.isAwaitingPromise()?(so(Yt,t),Yt.awaitingPromise.set(t,!0)):(so(An,t),so(Yt,t))},so=(t,e)=>{for(const n in t)t[n].delete(e)};var ao=Object.freeze({hideLoading:bn,disableLoading:bn,getInput:wn,close:On,isAwaitingPromise:Rn,rejectPromise:Vn,handleAwaitingPromise:Fn,closePopup:On,closeModal:On,closeToast:On,enableButtons:Yn,disableButtons:Kn,enableInput:$n,disableInput:Qn,showValidationMessage:Jn,resetValidationMessage:Xn,getProgressSteps:to,update:eo,_destroy:oo});const lo=t=>{const e=Yt.innerParams.get(t);t.disableButtons(),e.input?ho(t,"confirm"):bo(t,!0)},co=t=>{const e=Yt.innerParams.get(t);t.disableButtons(),e.returnInputValueOnDeny?ho(t,"deny"):go(t,!1)},uo=(t,e)=>{t.disableButtons(),e(xe.cancel)},ho=(t,e)=>{const o=Yt.innerParams.get(t);if(!o.input)return r('The "input" parameter is needed to be set when using returnInputValueOn'.concat(n(e)));const i=ln(t,o);o.inputValidator?mo(t,i,e):t.getInput().checkValidity()?"deny"===e?go(t,i):bo(t,i):(t.enableButtons(),t.showValidationMessage(o.validationMessage))},mo=(t,e,n)=>{const o=Yt.innerParams.get(t);t.disableInput(),Promise.resolve().then((()=>u(o.inputValidator(e,o.validationMessage)))).then((o=>{t.enableButtons(),t.enableInput(),o?t.showValidationMessage(o):"deny"===n?go(t,e):bo(t,e)}))},go=(t,e)=>{const n=Yt.innerParams.get(t||void 0);n.showLoaderOnDeny&&rn(V()),n.preDeny?(Yt.awaitingPromise.set(t||void 0,!0),Promise.resolve().then((()=>u(n.preDeny(e,n.validationMessage)))).then((n=>{!1===n?(t.hideLoading(),Fn(t)):t.closePopup({isDenied:!0,value:void 0===n?e:n})})).catch((e=>fo(t||void 0,e)))):t.closePopup({isDenied:!0,value:e})},po=(t,e)=>{t.closePopup({isConfirmed:!0,value:e})},fo=(t,e)=>{t.rejectPromise(e)},bo=(t,e)=>{const n=Yt.innerParams.get(t||void 0);n.showLoaderOnConfirm&&rn(),n.preConfirm?(t.resetValidationMessage(),Yt.awaitingPromise.set(t||void 0,!0),Promise.resolve().then((()=>u(n.preConfirm(e,n.validationMessage)))).then((n=>{pt(R())||!1===n?(t.hideLoading(),Fn(t)):po(t,void 0===n?e:n)})).catch((e=>fo(t||void 0,e)))):po(t,e)},ko=(t,e,n)=>{Yt.innerParams.get(t).toast?wo(t,e,n):(_o(e),vo(e),yo(t,e,n))},wo=(t,e,n)=>{e.popup.onclick=()=>{const e=Yt.innerParams.get(t);e&&(Ao(e)||e.timer||e.input)||n(xe.close)}},Ao=t=>t.showConfirmButton||t.showDenyButton||t.showCancelButton||t.showCloseButton;let Co=!1;const _o=t=>{t.popup.onmousedown=()=>{t.container.onmouseup=function(e){t.container.onmouseup=void 0,e.target===t.container&&(Co=!0)}}},vo=t=>{t.container.onmousedown=()=>{t.popup.onmouseup=function(e){t.popup.onmouseup=void 0,(e.target===t.popup||t.popup.contains(e.target))&&(Co=!0)}}},yo=(t,e,n)=>{e.container.onclick=o=>{const i=Yt.innerParams.get(t);Co?Co=!1:o.target===e.container&&c(i.allowOutsideClick)&&n(xe.backdrop)}},xo=t=>"object"==typeof t&&t.jquery,Eo=t=>t instanceof Element||xo(t),Do=t=>{const e={};return"object"!=typeof t[0]||Eo(t[0])?["title","html","icon"].forEach(((n,o)=>{const i=t[o];"string"==typeof i||Eo(i)?e[n]=i:void 0!==i&&r("Unexpected type of ".concat(n,'! Expected "string" or "Element", got ').concat(typeof i))})):Object.assign(e,t[0]),e};function So(){const t=this;for(var e=arguments.length,n=new Array(e),o=0;ovt.timeout&&vt.timeout.getTimerLeft(),Mo=()=>{if(vt.timeout)return At(),vt.timeout.stop()},Bo=()=>{if(vt.timeout){const t=vt.timeout.start();return wt(t),t}},No=()=>{const t=vt.timeout;return t&&(t.running?Mo():Bo())},zo=t=>{if(vt.timeout){const e=vt.timeout.increase(t);return wt(e,!0),e}},Po=()=>vt.timeout&&vt.timeout.isRunning();let Lo=!1;const Oo={};function Ro(){Oo[arguments.length>0&&void 0!==arguments[0]?arguments[0]:"data-swal-template"]=this,Lo||(document.body.addEventListener("click",jo),Lo=!0)}const jo=t=>{for(let e=t.target;e&&e!==document;e=e.parentNode)for(const t in Oo){const n=e.getAttribute(t);if(n)return void Oo[t].fire({template:n})}};var Vo=Object.freeze({isValidParameter:k,isUpdatableParameter:w,isDeprecatedParameter:A,argsToParams:Do,isVisible:Cn,clickConfirm:_n,clickDeny:vn,clickCancel:yn,getContainer:I,getPopup:B,getTitle:z,getHtmlContainer:P,getImage:L,getIcon:N,getInputLabel:F,getCloseButton:Z,getActions:q,getConfirmButton:j,getDenyButton:V,getCancelButton:U,getLoader:H,getFooter:G,getTimerProgressBar:W,getFocusableElements:K,getValidationMessage:R,isLoading:J,fire:So,mixin:Io,showLoading:rn,enableLoading:rn,getTimerLeft:To,stopTimer:Mo,resumeTimer:Bo,toggleTimer:No,increaseTimer:zo,isTimerRunning:Po,bindClickHandler:Ro});let Fo;class Ho{constructor(){if("undefined"==typeof window)return;Fo=this;for(var t=arguments.length,e=new Array(t),n=0;n1&&void 0!==arguments[1]?arguments[1]:{};y(Object.assign({},e,t)),vt.currentInstance&&(vt.currentInstance._destroy(),$()&&De()),vt.currentInstance=Fo;const n=qo(t,e);Fe(n),Object.freeze(n),vt.timeout&&(vt.timeout.stop(),delete vt.timeout),clearTimeout(vt.restoreFocusTimeout);const o=Go(Fo);return ye(Fo,n),Yt.innerParams.set(Fo,n),Uo(Fo,o,n)}then(t){return Yt.promise.get(this).then(t)}finally(t){return Yt.promise.get(this).finally(t)}}const Uo=(t,e,n)=>new Promise(((o,i)=>{const r=e=>{t.closePopup({isDismissed:!0,dismiss:e})};An.swalPromiseResolve.set(t,o),An.swalPromiseReject.set(t,i),e.confirmButton.onclick=()=>lo(t),e.denyButton.onclick=()=>co(t),e.cancelButton.onclick=()=>uo(t,r),e.closeButton.onclick=()=>r(xe.close),ko(t,e,r),En(t,vt,n,r),an(t,n),Xe(n),Wo(vt,n,r),Zo(e,n),setTimeout((()=>{e.container.scrollTop=0}))})),qo=(t,e)=>{const n=Ie(t),o=Object.assign({},g,e,n,t);return o.showClass=Object.assign({},g.showClass,o.showClass),o.hideClass=Object.assign({},g.hideClass,o.hideClass),o},Go=t=>{const e={popup:B(),container:I(),actions:q(),confirmButton:j(),denyButton:V(),cancelButton:U(),loader:H(),closeButton:Z(),validationMessage:R(),progressSteps:O()};return Yt.domCache.set(t,e),e},Wo=(t,e,n)=>{const o=W();ht(o),e.timer&&(t.timeout=new He((()=>{n("timer"),delete t.timeout}),e.timer),e.timerProgressBar&&(ut(o),ot(o,e,"timerProgressBar"),setTimeout((()=>{t.timeout&&t.timeout.running&&wt(e.timer)}))))},Zo=(t,e)=>{if(!e.toast)return c(e.allowEnterKey)?void(Yo(t,e)||Dn(e,-1,1)):Ko()},Yo=(t,e)=>e.focusDeny&&pt(t.denyButton)?(t.denyButton.focus(),!0):e.focusCancel&&pt(t.cancelButton)?(t.cancelButton.focus(),!0):!(!e.focusConfirm||!pt(t.confirmButton)||(t.confirmButton.focus(),0)),Ko=()=>{document.activeElement instanceof HTMLElement&&"function"==typeof document.activeElement.blur&&document.activeElement.blur()};Object.assign(Ho.prototype,ao),Object.assign(Ho,Vo),Object.keys(ao).forEach((t=>{Ho[t]=function(){if(Fo)return Fo[t](...arguments)}})),Ho.DismissReason=xe,Ho.version="11.4.19";const $o=Ho;return $o.default=$o,$o}(),void 0!==this&&this.Sweetalert2&&(this.swal=this.sweetAlert=this.Swal=this.SweetAlert=this.Sweetalert2),"undefined"!=typeof document&&function(t,e){var n=t.createElement("style");if(t.getElementsByTagName("head")[0].appendChild(n),n.styleSheet)n.styleSheet.disabled||(n.styleSheet.cssText=e);else try{n.innerHTML=e}catch(t){n.innerText=e}}(document,'.swal2-popup.swal2-toast{box-sizing:border-box;grid-column:1/4!important;grid-row:1/4!important;grid-template-columns:1fr 99fr 1fr;padding:1em;overflow-y:hidden;background:#fff;box-shadow:0 0 1px hsla(0deg,0%,0%,.075),0 1px 2px hsla(0deg,0%,0%,.075),1px 2px 4px hsla(0deg,0%,0%,.075),1px 3px 8px hsla(0deg,0%,0%,.075),2px 4px 16px hsla(0deg,0%,0%,.075);pointer-events:all}.swal2-popup.swal2-toast>*{grid-column:2}.swal2-popup.swal2-toast .swal2-title{margin:.5em 1em;padding:0;font-size:1em;text-align:initial}.swal2-popup.swal2-toast .swal2-loading{justify-content:center}.swal2-popup.swal2-toast .swal2-input{height:2em;margin:.5em;font-size:1em}.swal2-popup.swal2-toast .swal2-validation-message{font-size:1em}.swal2-popup.swal2-toast .swal2-footer{margin:.5em 0 0;padding:.5em 0 0;font-size:.8em}.swal2-popup.swal2-toast .swal2-close{grid-column:3/3;grid-row:1/99;align-self:center;width:.8em;height:.8em;margin:0;font-size:2em}.swal2-popup.swal2-toast .swal2-html-container{margin:.5em 1em;padding:0;font-size:1em;text-align:initial}.swal2-popup.swal2-toast .swal2-html-container:empty{padding:0}.swal2-popup.swal2-toast .swal2-loader{grid-column:1;grid-row:1/99;align-self:center;width:2em;height:2em;margin:.25em}.swal2-popup.swal2-toast .swal2-icon{grid-column:1;grid-row:1/99;align-self:center;width:2em;min-width:2em;height:2em;margin:0 .5em 0 0}.swal2-popup.swal2-toast .swal2-icon .swal2-icon-content{display:flex;align-items:center;font-size:1.8em;font-weight:700}.swal2-popup.swal2-toast .swal2-icon.swal2-success .swal2-success-ring{width:2em;height:2em}.swal2-popup.swal2-toast .swal2-icon.swal2-error [class^=swal2-x-mark-line]{top:.875em;width:1.375em}.swal2-popup.swal2-toast .swal2-icon.swal2-error [class^=swal2-x-mark-line][class$=left]{left:.3125em}.swal2-popup.swal2-toast .swal2-icon.swal2-error [class^=swal2-x-mark-line][class$=right]{right:.3125em}.swal2-popup.swal2-toast .swal2-actions{justify-content:flex-start;height:auto;margin:0;margin-top:.5em;padding:0 .5em}.swal2-popup.swal2-toast .swal2-styled{margin:.25em .5em;padding:.4em .6em;font-size:1em}.swal2-popup.swal2-toast .swal2-success{border-color:#a5dc86}.swal2-popup.swal2-toast .swal2-success [class^=swal2-success-circular-line]{position:absolute;width:1.6em;height:3em;transform:rotate(45deg);border-radius:50%}.swal2-popup.swal2-toast .swal2-success [class^=swal2-success-circular-line][class$=left]{top:-.8em;left:-.5em;transform:rotate(-45deg);transform-origin:2em 2em;border-radius:4em 0 0 4em}.swal2-popup.swal2-toast .swal2-success [class^=swal2-success-circular-line][class$=right]{top:-.25em;left:.9375em;transform-origin:0 1.5em;border-radius:0 4em 4em 0}.swal2-popup.swal2-toast .swal2-success .swal2-success-ring{width:2em;height:2em}.swal2-popup.swal2-toast .swal2-success .swal2-success-fix{top:0;left:.4375em;width:.4375em;height:2.6875em}.swal2-popup.swal2-toast .swal2-success [class^=swal2-success-line]{height:.3125em}.swal2-popup.swal2-toast .swal2-success [class^=swal2-success-line][class$=tip]{top:1.125em;left:.1875em;width:.75em}.swal2-popup.swal2-toast .swal2-success [class^=swal2-success-line][class$=long]{top:.9375em;right:.1875em;width:1.375em}.swal2-popup.swal2-toast .swal2-success.swal2-icon-show .swal2-success-line-tip{-webkit-animation:swal2-toast-animate-success-line-tip .75s;animation:swal2-toast-animate-success-line-tip .75s}.swal2-popup.swal2-toast .swal2-success.swal2-icon-show .swal2-success-line-long{-webkit-animation:swal2-toast-animate-success-line-long .75s;animation:swal2-toast-animate-success-line-long .75s}.swal2-popup.swal2-toast.swal2-show{-webkit-animation:swal2-toast-show .5s;animation:swal2-toast-show .5s}.swal2-popup.swal2-toast.swal2-hide{-webkit-animation:swal2-toast-hide .1s forwards;animation:swal2-toast-hide .1s forwards}.swal2-container{display:grid;position:fixed;z-index:1060;top:0;right:0;bottom:0;left:0;box-sizing:border-box;grid-template-areas:"top-start top top-end" "center-start center center-end" "bottom-start bottom-center bottom-end";grid-template-rows:minmax(-webkit-min-content,auto) minmax(-webkit-min-content,auto) minmax(-webkit-min-content,auto);grid-template-rows:minmax(min-content,auto) minmax(min-content,auto) minmax(min-content,auto);height:100%;padding:.625em;overflow-x:hidden;transition:background-color .1s;-webkit-overflow-scrolling:touch}.swal2-container.swal2-backdrop-show,.swal2-container.swal2-noanimation{background:rgba(0,0,0,.4)}.swal2-container.swal2-backdrop-hide{background:0 0!important}.swal2-container.swal2-bottom-start,.swal2-container.swal2-center-start,.swal2-container.swal2-top-start{grid-template-columns:minmax(0,1fr) auto auto}.swal2-container.swal2-bottom,.swal2-container.swal2-center,.swal2-container.swal2-top{grid-template-columns:auto minmax(0,1fr) auto}.swal2-container.swal2-bottom-end,.swal2-container.swal2-center-end,.swal2-container.swal2-top-end{grid-template-columns:auto auto minmax(0,1fr)}.swal2-container.swal2-top-start>.swal2-popup{align-self:start}.swal2-container.swal2-top>.swal2-popup{grid-column:2;align-self:start;justify-self:center}.swal2-container.swal2-top-end>.swal2-popup,.swal2-container.swal2-top-right>.swal2-popup{grid-column:3;align-self:start;justify-self:end}.swal2-container.swal2-center-left>.swal2-popup,.swal2-container.swal2-center-start>.swal2-popup{grid-row:2;align-self:center}.swal2-container.swal2-center>.swal2-popup{grid-column:2;grid-row:2;align-self:center;justify-self:center}.swal2-container.swal2-center-end>.swal2-popup,.swal2-container.swal2-center-right>.swal2-popup{grid-column:3;grid-row:2;align-self:center;justify-self:end}.swal2-container.swal2-bottom-left>.swal2-popup,.swal2-container.swal2-bottom-start>.swal2-popup{grid-column:1;grid-row:3;align-self:end}.swal2-container.swal2-bottom>.swal2-popup{grid-column:2;grid-row:3;justify-self:center;align-self:end}.swal2-container.swal2-bottom-end>.swal2-popup,.swal2-container.swal2-bottom-right>.swal2-popup{grid-column:3;grid-row:3;align-self:end;justify-self:end}.swal2-container.swal2-grow-fullscreen>.swal2-popup,.swal2-container.swal2-grow-row>.swal2-popup{grid-column:1/4;width:100%}.swal2-container.swal2-grow-column>.swal2-popup,.swal2-container.swal2-grow-fullscreen>.swal2-popup{grid-row:1/4;align-self:stretch}.swal2-container.swal2-no-transition{transition:none!important}.swal2-popup{display:none;position:relative;box-sizing:border-box;grid-template-columns:minmax(0,100%);width:32em;max-width:100%;padding:0 0 1.25em;border:none;border-radius:5px;background:#fff;color:#545454;font-family:inherit;font-size:1rem}.swal2-popup:focus{outline:0}.swal2-popup.swal2-loading{overflow-y:hidden}.swal2-title{position:relative;max-width:100%;margin:0;padding:.8em 1em 0;color:inherit;font-size:1.875em;font-weight:600;text-align:center;text-transform:none;word-wrap:break-word}.swal2-actions{display:flex;z-index:1;box-sizing:border-box;flex-wrap:wrap;align-items:center;justify-content:center;width:auto;margin:1.25em auto 0;padding:0}.swal2-actions:not(.swal2-loading) .swal2-styled[disabled]{opacity:.4}.swal2-actions:not(.swal2-loading) .swal2-styled:hover{background-image:linear-gradient(rgba(0,0,0,.1),rgba(0,0,0,.1))}.swal2-actions:not(.swal2-loading) .swal2-styled:active{background-image:linear-gradient(rgba(0,0,0,.2),rgba(0,0,0,.2))}.swal2-loader{display:none;align-items:center;justify-content:center;width:2.2em;height:2.2em;margin:0 1.875em;-webkit-animation:swal2-rotate-loading 1.5s linear 0s infinite normal;animation:swal2-rotate-loading 1.5s linear 0s infinite normal;border-width:.25em;border-style:solid;border-radius:100%;border-color:#2778c4 transparent #2778c4 transparent}.swal2-styled{margin:.3125em;padding:.625em 1.1em;transition:box-shadow .1s;box-shadow:0 0 0 3px transparent;font-weight:500}.swal2-styled:not([disabled]){cursor:pointer}.swal2-styled.swal2-confirm{border:0;border-radius:.25em;background:initial;background-color:#7066e0;color:#fff;font-size:1em}.swal2-styled.swal2-confirm:focus{box-shadow:0 0 0 3px rgba(112,102,224,.5)}.swal2-styled.swal2-deny{border:0;border-radius:.25em;background:initial;background-color:#dc3741;color:#fff;font-size:1em}.swal2-styled.swal2-deny:focus{box-shadow:0 0 0 3px rgba(220,55,65,.5)}.swal2-styled.swal2-cancel{border:0;border-radius:.25em;background:initial;background-color:#6e7881;color:#fff;font-size:1em}.swal2-styled.swal2-cancel:focus{box-shadow:0 0 0 3px rgba(110,120,129,.5)}.swal2-styled.swal2-default-outline:focus{box-shadow:0 0 0 3px rgba(100,150,200,.5)}.swal2-styled:focus{outline:0}.swal2-styled::-moz-focus-inner{border:0}.swal2-footer{justify-content:center;margin:1em 0 0;padding:1em 1em 0;border-top:1px solid #eee;color:inherit;font-size:1em}.swal2-timer-progress-bar-container{position:absolute;right:0;bottom:0;left:0;grid-column:auto!important;overflow:hidden;border-bottom-right-radius:5px;border-bottom-left-radius:5px}.swal2-timer-progress-bar{width:100%;height:.25em;background:rgba(0,0,0,.2)}.swal2-image{max-width:100%;margin:2em auto 1em}.swal2-close{z-index:2;align-items:center;justify-content:center;width:1.2em;height:1.2em;margin-top:0;margin-right:0;margin-bottom:-1.2em;padding:0;overflow:hidden;transition:color .1s,box-shadow .1s;border:none;border-radius:5px;background:0 0;color:#ccc;font-family:serif;font-family:monospace;font-size:2.5em;cursor:pointer;justify-self:end}.swal2-close:hover{transform:none;background:0 0;color:#f27474}.swal2-close:focus{outline:0;box-shadow:inset 0 0 0 3px rgba(100,150,200,.5)}.swal2-close::-moz-focus-inner{border:0}.swal2-html-container{z-index:1;justify-content:center;margin:1em 1.6em .3em;padding:0;overflow:auto;color:inherit;font-size:1.125em;font-weight:400;line-height:normal;text-align:center;word-wrap:break-word;word-break:break-word}.swal2-checkbox,.swal2-file,.swal2-input,.swal2-radio,.swal2-select,.swal2-textarea{margin:1em 2em 3px}.swal2-file,.swal2-input,.swal2-textarea{box-sizing:border-box;width:auto;transition:border-color .1s,box-shadow .1s;border:1px solid #d9d9d9;border-radius:.1875em;background:0 0;box-shadow:inset 0 1px 1px rgba(0,0,0,.06),0 0 0 3px transparent;color:inherit;font-size:1.125em}.swal2-file.swal2-inputerror,.swal2-input.swal2-inputerror,.swal2-textarea.swal2-inputerror{border-color:#f27474!important;box-shadow:0 0 2px #f27474!important}.swal2-file:focus,.swal2-input:focus,.swal2-textarea:focus{border:1px solid #b4dbed;outline:0;box-shadow:inset 0 1px 1px rgba(0,0,0,.06),0 0 0 3px rgba(100,150,200,.5)}.swal2-file::-moz-placeholder,.swal2-input::-moz-placeholder,.swal2-textarea::-moz-placeholder{color:#ccc}.swal2-file:-ms-input-placeholder,.swal2-input:-ms-input-placeholder,.swal2-textarea:-ms-input-placeholder{color:#ccc}.swal2-file::placeholder,.swal2-input::placeholder,.swal2-textarea::placeholder{color:#ccc}.swal2-range{margin:1em 2em 3px;background:#fff}.swal2-range input{width:80%}.swal2-range output{width:20%;color:inherit;font-weight:600;text-align:center}.swal2-range input,.swal2-range output{height:2.625em;padding:0;font-size:1.125em;line-height:2.625em}.swal2-input{height:2.625em;padding:0 .75em}.swal2-file{width:75%;margin-right:auto;margin-left:auto;background:0 0;font-size:1.125em}.swal2-textarea{height:6.75em;padding:.75em}.swal2-select{min-width:50%;max-width:100%;padding:.375em .625em;background:0 0;color:inherit;font-size:1.125em}.swal2-checkbox,.swal2-radio{align-items:center;justify-content:center;background:#fff;color:inherit}.swal2-checkbox label,.swal2-radio label{margin:0 .6em;font-size:1.125em}.swal2-checkbox input,.swal2-radio input{flex-shrink:0;margin:0 .4em}.swal2-input-label{display:flex;justify-content:center;margin:1em auto 0}.swal2-validation-message{align-items:center;justify-content:center;margin:1em 0 0;padding:.625em;overflow:hidden;background:#f0f0f0;color:#666;font-size:1em;font-weight:300}.swal2-validation-message::before{content:"!";display:inline-block;width:1.5em;min-width:1.5em;height:1.5em;margin:0 .625em;border-radius:50%;background-color:#f27474;color:#fff;font-weight:600;line-height:1.5em;text-align:center}.swal2-icon{position:relative;box-sizing:content-box;justify-content:center;width:5em;height:5em;margin:2.5em auto .6em;border:.25em solid transparent;border-radius:50%;border-color:#000;font-family:inherit;line-height:5em;cursor:default;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.swal2-icon .swal2-icon-content{display:flex;align-items:center;font-size:3.75em}.swal2-icon.swal2-error{border-color:#f27474;color:#f27474}.swal2-icon.swal2-error .swal2-x-mark{position:relative;flex-grow:1}.swal2-icon.swal2-error [class^=swal2-x-mark-line]{display:block;position:absolute;top:2.3125em;width:2.9375em;height:.3125em;border-radius:.125em;background-color:#f27474}.swal2-icon.swal2-error [class^=swal2-x-mark-line][class$=left]{left:1.0625em;transform:rotate(45deg)}.swal2-icon.swal2-error [class^=swal2-x-mark-line][class$=right]{right:1em;transform:rotate(-45deg)}.swal2-icon.swal2-error.swal2-icon-show{-webkit-animation:swal2-animate-error-icon .5s;animation:swal2-animate-error-icon .5s}.swal2-icon.swal2-error.swal2-icon-show .swal2-x-mark{-webkit-animation:swal2-animate-error-x-mark .5s;animation:swal2-animate-error-x-mark .5s}.swal2-icon.swal2-warning{border-color:#facea8;color:#f8bb86}.swal2-icon.swal2-warning.swal2-icon-show{-webkit-animation:swal2-animate-error-icon .5s;animation:swal2-animate-error-icon .5s}.swal2-icon.swal2-warning.swal2-icon-show .swal2-icon-content{-webkit-animation:swal2-animate-i-mark .5s;animation:swal2-animate-i-mark .5s}.swal2-icon.swal2-info{border-color:#9de0f6;color:#3fc3ee}.swal2-icon.swal2-info.swal2-icon-show{-webkit-animation:swal2-animate-error-icon .5s;animation:swal2-animate-error-icon .5s}.swal2-icon.swal2-info.swal2-icon-show .swal2-icon-content{-webkit-animation:swal2-animate-i-mark .8s;animation:swal2-animate-i-mark .8s}.swal2-icon.swal2-question{border-color:#c9dae1;color:#87adbd}.swal2-icon.swal2-question.swal2-icon-show{-webkit-animation:swal2-animate-error-icon .5s;animation:swal2-animate-error-icon .5s}.swal2-icon.swal2-question.swal2-icon-show .swal2-icon-content{-webkit-animation:swal2-animate-question-mark .8s;animation:swal2-animate-question-mark .8s}.swal2-icon.swal2-success{border-color:#a5dc86;color:#a5dc86}.swal2-icon.swal2-success [class^=swal2-success-circular-line]{position:absolute;width:3.75em;height:7.5em;transform:rotate(45deg);border-radius:50%}.swal2-icon.swal2-success [class^=swal2-success-circular-line][class$=left]{top:-.4375em;left:-2.0635em;transform:rotate(-45deg);transform-origin:3.75em 3.75em;border-radius:7.5em 0 0 7.5em}.swal2-icon.swal2-success [class^=swal2-success-circular-line][class$=right]{top:-.6875em;left:1.875em;transform:rotate(-45deg);transform-origin:0 3.75em;border-radius:0 7.5em 7.5em 0}.swal2-icon.swal2-success .swal2-success-ring{position:absolute;z-index:2;top:-.25em;left:-.25em;box-sizing:content-box;width:100%;height:100%;border:.25em solid rgba(165,220,134,.3);border-radius:50%}.swal2-icon.swal2-success .swal2-success-fix{position:absolute;z-index:1;top:.5em;left:1.625em;width:.4375em;height:5.625em;transform:rotate(-45deg)}.swal2-icon.swal2-success [class^=swal2-success-line]{display:block;position:absolute;z-index:2;height:.3125em;border-radius:.125em;background-color:#a5dc86}.swal2-icon.swal2-success [class^=swal2-success-line][class$=tip]{top:2.875em;left:.8125em;width:1.5625em;transform:rotate(45deg)}.swal2-icon.swal2-success [class^=swal2-success-line][class$=long]{top:2.375em;right:.5em;width:2.9375em;transform:rotate(-45deg)}.swal2-icon.swal2-success.swal2-icon-show .swal2-success-line-tip{-webkit-animation:swal2-animate-success-line-tip .75s;animation:swal2-animate-success-line-tip .75s}.swal2-icon.swal2-success.swal2-icon-show .swal2-success-line-long{-webkit-animation:swal2-animate-success-line-long .75s;animation:swal2-animate-success-line-long .75s}.swal2-icon.swal2-success.swal2-icon-show .swal2-success-circular-line-right{-webkit-animation:swal2-rotate-success-circular-line 4.25s ease-in;animation:swal2-rotate-success-circular-line 4.25s ease-in}.swal2-progress-steps{flex-wrap:wrap;align-items:center;max-width:100%;margin:1.25em auto;padding:0;background:0 0;font-weight:600}.swal2-progress-steps li{display:inline-block;position:relative}.swal2-progress-steps .swal2-progress-step{z-index:20;flex-shrink:0;width:2em;height:2em;border-radius:2em;background:#2778c4;color:#fff;line-height:2em;text-align:center}.swal2-progress-steps .swal2-progress-step.swal2-active-progress-step{background:#2778c4}.swal2-progress-steps .swal2-progress-step.swal2-active-progress-step~.swal2-progress-step{background:#add8e6;color:#fff}.swal2-progress-steps .swal2-progress-step.swal2-active-progress-step~.swal2-progress-step-line{background:#add8e6}.swal2-progress-steps .swal2-progress-step-line{z-index:10;flex-shrink:0;width:2.5em;height:.4em;margin:0 -1px;background:#2778c4}[class^=swal2]{-webkit-tap-highlight-color:transparent}.swal2-show{-webkit-animation:swal2-show .3s;animation:swal2-show .3s}.swal2-hide{-webkit-animation:swal2-hide .15s forwards;animation:swal2-hide .15s forwards}.swal2-noanimation{transition:none}.swal2-scrollbar-measure{position:absolute;top:-9999px;width:50px;height:50px;overflow:scroll}.swal2-rtl .swal2-close{margin-right:initial;margin-left:0}.swal2-rtl .swal2-timer-progress-bar{right:0;left:auto}.swal2-no-war{display:flex;position:fixed;z-index:1061;top:0;left:0;align-items:center;justify-content:center;width:100%;height:3.375em;background:#20232a;color:#fff;text-align:center}.swal2-no-war a{color:#61dafb;text-decoration:none}.swal2-no-war a:hover{text-decoration:underline}@-webkit-keyframes swal2-toast-show{0%{transform:translateY(-.625em) rotateZ(2deg)}33%{transform:translateY(0) rotateZ(-2deg)}66%{transform:translateY(.3125em) rotateZ(2deg)}100%{transform:translateY(0) rotateZ(0)}}@keyframes swal2-toast-show{0%{transform:translateY(-.625em) rotateZ(2deg)}33%{transform:translateY(0) rotateZ(-2deg)}66%{transform:translateY(.3125em) rotateZ(2deg)}100%{transform:translateY(0) rotateZ(0)}}@-webkit-keyframes swal2-toast-hide{100%{transform:rotateZ(1deg);opacity:0}}@keyframes swal2-toast-hide{100%{transform:rotateZ(1deg);opacity:0}}@-webkit-keyframes swal2-toast-animate-success-line-tip{0%{top:.5625em;left:.0625em;width:0}54%{top:.125em;left:.125em;width:0}70%{top:.625em;left:-.25em;width:1.625em}84%{top:1.0625em;left:.75em;width:.5em}100%{top:1.125em;left:.1875em;width:.75em}}@keyframes swal2-toast-animate-success-line-tip{0%{top:.5625em;left:.0625em;width:0}54%{top:.125em;left:.125em;width:0}70%{top:.625em;left:-.25em;width:1.625em}84%{top:1.0625em;left:.75em;width:.5em}100%{top:1.125em;left:.1875em;width:.75em}}@-webkit-keyframes swal2-toast-animate-success-line-long{0%{top:1.625em;right:1.375em;width:0}65%{top:1.25em;right:.9375em;width:0}84%{top:.9375em;right:0;width:1.125em}100%{top:.9375em;right:.1875em;width:1.375em}}@keyframes swal2-toast-animate-success-line-long{0%{top:1.625em;right:1.375em;width:0}65%{top:1.25em;right:.9375em;width:0}84%{top:.9375em;right:0;width:1.125em}100%{top:.9375em;right:.1875em;width:1.375em}}@-webkit-keyframes swal2-show{0%{transform:scale(.7)}45%{transform:scale(1.05)}80%{transform:scale(.95)}100%{transform:scale(1)}}@keyframes swal2-show{0%{transform:scale(.7)}45%{transform:scale(1.05)}80%{transform:scale(.95)}100%{transform:scale(1)}}@-webkit-keyframes swal2-hide{0%{transform:scale(1);opacity:1}100%{transform:scale(.5);opacity:0}}@keyframes swal2-hide{0%{transform:scale(1);opacity:1}100%{transform:scale(.5);opacity:0}}@-webkit-keyframes swal2-animate-success-line-tip{0%{top:1.1875em;left:.0625em;width:0}54%{top:1.0625em;left:.125em;width:0}70%{top:2.1875em;left:-.375em;width:3.125em}84%{top:3em;left:1.3125em;width:1.0625em}100%{top:2.8125em;left:.8125em;width:1.5625em}}@keyframes swal2-animate-success-line-tip{0%{top:1.1875em;left:.0625em;width:0}54%{top:1.0625em;left:.125em;width:0}70%{top:2.1875em;left:-.375em;width:3.125em}84%{top:3em;left:1.3125em;width:1.0625em}100%{top:2.8125em;left:.8125em;width:1.5625em}}@-webkit-keyframes swal2-animate-success-line-long{0%{top:3.375em;right:2.875em;width:0}65%{top:3.375em;right:2.875em;width:0}84%{top:2.1875em;right:0;width:3.4375em}100%{top:2.375em;right:.5em;width:2.9375em}}@keyframes swal2-animate-success-line-long{0%{top:3.375em;right:2.875em;width:0}65%{top:3.375em;right:2.875em;width:0}84%{top:2.1875em;right:0;width:3.4375em}100%{top:2.375em;right:.5em;width:2.9375em}}@-webkit-keyframes swal2-rotate-success-circular-line{0%{transform:rotate(-45deg)}5%{transform:rotate(-45deg)}12%{transform:rotate(-405deg)}100%{transform:rotate(-405deg)}}@keyframes swal2-rotate-success-circular-line{0%{transform:rotate(-45deg)}5%{transform:rotate(-45deg)}12%{transform:rotate(-405deg)}100%{transform:rotate(-405deg)}}@-webkit-keyframes swal2-animate-error-x-mark{0%{margin-top:1.625em;transform:scale(.4);opacity:0}50%{margin-top:1.625em;transform:scale(.4);opacity:0}80%{margin-top:-.375em;transform:scale(1.15)}100%{margin-top:0;transform:scale(1);opacity:1}}@keyframes swal2-animate-error-x-mark{0%{margin-top:1.625em;transform:scale(.4);opacity:0}50%{margin-top:1.625em;transform:scale(.4);opacity:0}80%{margin-top:-.375em;transform:scale(1.15)}100%{margin-top:0;transform:scale(1);opacity:1}}@-webkit-keyframes swal2-animate-error-icon{0%{transform:rotateX(100deg);opacity:0}100%{transform:rotateX(0);opacity:1}}@keyframes swal2-animate-error-icon{0%{transform:rotateX(100deg);opacity:0}100%{transform:rotateX(0);opacity:1}}@-webkit-keyframes swal2-rotate-loading{0%{transform:rotate(0)}100%{transform:rotate(360deg)}}@keyframes swal2-rotate-loading{0%{transform:rotate(0)}100%{transform:rotate(360deg)}}@-webkit-keyframes swal2-animate-question-mark{0%{transform:rotateY(-360deg)}100%{transform:rotateY(0)}}@keyframes swal2-animate-question-mark{0%{transform:rotateY(-360deg)}100%{transform:rotateY(0)}}@-webkit-keyframes swal2-animate-i-mark{0%{transform:rotateZ(45deg);opacity:0}25%{transform:rotateZ(-25deg);opacity:.4}50%{transform:rotateZ(15deg);opacity:.8}75%{transform:rotateZ(-5deg);opacity:1}100%{transform:rotateX(0);opacity:1}}@keyframes swal2-animate-i-mark{0%{transform:rotateZ(45deg);opacity:0}25%{transform:rotateZ(-25deg);opacity:.4}50%{transform:rotateZ(15deg);opacity:.8}75%{transform:rotateZ(-5deg);opacity:1}100%{transform:rotateX(0);opacity:1}}body.swal2-shown:not(.swal2-no-backdrop):not(.swal2-toast-shown){overflow:hidden}body.swal2-height-auto{height:auto!important}body.swal2-no-backdrop .swal2-container{background-color:transparent!important;pointer-events:none}body.swal2-no-backdrop .swal2-container .swal2-popup{pointer-events:all}body.swal2-no-backdrop .swal2-container .swal2-modal{box-shadow:0 0 10px rgba(0,0,0,.4)}@media print{body.swal2-shown:not(.swal2-no-backdrop):not(.swal2-toast-shown){overflow-y:scroll!important}body.swal2-shown:not(.swal2-no-backdrop):not(.swal2-toast-shown)>[aria-hidden=true]{display:none}body.swal2-shown:not(.swal2-no-backdrop):not(.swal2-toast-shown) .swal2-container{position:static!important}}body.swal2-toast-shown .swal2-container{box-sizing:border-box;width:360px;max-width:100%;background-color:transparent;pointer-events:none}body.swal2-toast-shown .swal2-container.swal2-top{top:0;right:auto;bottom:auto;left:50%;transform:translateX(-50%)}body.swal2-toast-shown .swal2-container.swal2-top-end,body.swal2-toast-shown .swal2-container.swal2-top-right{top:0;right:0;bottom:auto;left:auto}body.swal2-toast-shown .swal2-container.swal2-top-left,body.swal2-toast-shown .swal2-container.swal2-top-start{top:0;right:auto;bottom:auto;left:0}body.swal2-toast-shown .swal2-container.swal2-center-left,body.swal2-toast-shown .swal2-container.swal2-center-start{top:50%;right:auto;bottom:auto;left:0;transform:translateY(-50%)}body.swal2-toast-shown .swal2-container.swal2-center{top:50%;right:auto;bottom:auto;left:50%;transform:translate(-50%,-50%)}body.swal2-toast-shown .swal2-container.swal2-center-end,body.swal2-toast-shown .swal2-container.swal2-center-right{top:50%;right:0;bottom:auto;left:auto;transform:translateY(-50%)}body.swal2-toast-shown .swal2-container.swal2-bottom-left,body.swal2-toast-shown .swal2-container.swal2-bottom-start{top:auto;right:auto;bottom:0;left:0}body.swal2-toast-shown .swal2-container.swal2-bottom{top:auto;right:auto;bottom:0;left:50%;transform:translateX(-50%)}body.swal2-toast-shown .swal2-container.swal2-bottom-end,body.swal2-toast-shown .swal2-container.swal2-bottom-right{top:auto;right:0;bottom:0;left:auto}')},1016:(t,e,n)=>{"use strict";n.d(e,{Z:()=>a});var o=n(4015),i=n.n(o),r=n(3645),s=n.n(r)()(i());s.push([t.id,"#fullscreenoverlay{overflow:hidden}#fullscreeneditor{bottom:0;left:0;position:fixed!important;right:0;top:0;z-index:1000}#fullscreeneditor .ck-editor__editable.ck-rounded-corners.ck-editor__editable_inline,#fullscreeneditor .ck.ck-editor__main{height:100%}","",{version:3,sources:["webpack://./github/ckeditor5-fullscreen/css/style.css"],names:[],mappings:"AAAA,mBACC,eACD,CACA,kBAKC,QAAS,CAFT,MAAO,CAFJ,wBAA0B,CAG7B,OAAO,CAFP,KAAK,CAIL,YACD,CACA,2HACI,WACJ",sourcesContent:["#fullscreenoverlay{\n\toverflow: hidden;\n}\n#fullscreeneditor{\n position: fixed !important;\n\ttop:0;\n\tleft: 0;\n\tright:0;\n\tbottom: 0;\n\tz-index:1000;\n}\n#fullscreeneditor .ck-editor__editable.ck-rounded-corners.ck-editor__editable_inline, #fullscreeneditor .ck.ck-editor__main {\n height: 100%;\n}"],sourceRoot:""}]);const a=s},636:(t,e,n)=>{"use strict";n.d(e,{Z:()=>a});var o=n(4015),i=n.n(o),r=n(3645),s=n.n(r)()(i());s.push([t.id,".ck-content blockquote{border-left:5px solid #ccc;font-style:italic;margin-left:0;margin-right:0;overflow:hidden;padding-left:1.5em;padding-right:1.5em}.ck-content[dir=rtl] blockquote{border-left:0;border-right:5px solid #ccc}","",{version:3,sources:["webpack://./node_modules/@ckeditor/ckeditor5-block-quote/theme/blockquote.css"],names:[],mappings:"AAKA,uBAWC,0BAAsC,CADtC,iBAAkB,CAFlB,aAAc,CACd,cAAe,CAPf,eAAgB,CAIhB,kBAAmB,CADnB,mBAOD,CAEA,gCACC,aAAc,CACd,2BACD",sourcesContent:['/*\n * Copyright (c) 2003-2022, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n.ck-content blockquote {\n\t/* See #12 */\n\toverflow: hidden;\n\n\t/* https://github.com/ckeditor/ckeditor5-block-quote/issues/15 */\n\tpadding-right: 1.5em;\n\tpadding-left: 1.5em;\n\n\tmargin-left: 0;\n\tmargin-right: 0;\n\tfont-style: italic;\n\tborder-left: solid 5px hsl(0, 0%, 80%);\n}\n\n.ck-content[dir="rtl"] blockquote {\n\tborder-left: 0;\n\tborder-right: solid 5px hsl(0, 0%, 80%);\n}\n'],sourceRoot:""}]);const a=s},390:(t,e,n)=>{"use strict";n.d(e,{Z:()=>a});var o=n(4015),i=n.n(o),r=n(3645),s=n.n(r)()(i());s.push([t.id,'.ck.ck-editor__editable .ck.ck-clipboard-drop-target-position{display:inline;pointer-events:none;position:relative}.ck.ck-editor__editable .ck.ck-clipboard-drop-target-position span{position:absolute;width:0}.ck.ck-editor__editable .ck-widget:-webkit-drag>.ck-widget__selection-handle,.ck.ck-editor__editable .ck-widget:-webkit-drag>.ck-widget__type-around{display:none}:root{--ck-clipboard-drop-target-dot-width:12px;--ck-clipboard-drop-target-dot-height:8px;--ck-clipboard-drop-target-color:var(--ck-color-focus-border)}.ck.ck-editor__editable .ck.ck-clipboard-drop-target-position span{background:var(--ck-clipboard-drop-target-color);border:1px solid var(--ck-clipboard-drop-target-color);bottom:calc(var(--ck-clipboard-drop-target-dot-height)*-.5);margin-left:-1px;top:calc(var(--ck-clipboard-drop-target-dot-height)*-.5)}.ck.ck-editor__editable .ck.ck-clipboard-drop-target-position span:after{border-color:var(--ck-clipboard-drop-target-color) transparent transparent transparent;border-style:solid;border-width:calc(var(--ck-clipboard-drop-target-dot-height)) calc(var(--ck-clipboard-drop-target-dot-width)*.5) 0 calc(var(--ck-clipboard-drop-target-dot-width)*.5);content:"";display:block;height:0;left:50%;position:absolute;top:calc(var(--ck-clipboard-drop-target-dot-height)*-.5);transform:translateX(-50%);width:0}.ck.ck-editor__editable .ck-widget.ck-clipboard-drop-target-range{outline:var(--ck-widget-outline-thickness) solid var(--ck-clipboard-drop-target-color)!important}.ck.ck-editor__editable .ck-widget:-webkit-drag{zoom:.6;outline:none!important}',"",{version:3,sources:["webpack://./node_modules/@ckeditor/ckeditor5-clipboard/theme/clipboard.css","webpack://./node_modules/@ckeditor/ckeditor5-theme-lark/theme/ckeditor5-clipboard/clipboard.css"],names:[],mappings:"AASC,8DACC,cAAe,CAEf,mBAAoB,CADpB,iBAOD,CAJC,mEACC,iBAAkB,CAClB,OACD,CAWA,qJACC,YACD,CCzBF,MACC,yCAA0C,CAC1C,yCAA0C,CAC1C,6DACD,CAOE,mEAIC,gDAAiD,CADjD,sDAAuD,CAFvD,2DAA8D,CAI9D,gBAAiB,CAHjB,wDAqBD,CAfC,yEAWC,sFAAuF,CAEvF,kBAAmB,CADnB,qKAA0K,CAX1K,UAAW,CAIX,aAAc,CAFd,QAAS,CAIT,QAAS,CADT,iBAAkB,CAElB,wDAA2D,CAE3D,0BAA2B,CAR3B,OAYD,CA2DF,kEACC,gGACD,CAKA,gDACC,OAAS,CACT,sBACD",sourcesContent:["/*\n * Copyright (c) 2003-2022, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n.ck.ck-editor__editable {\n\t/*\n\t * Vertical drop target (in text).\n\t */\n\t& .ck.ck-clipboard-drop-target-position {\n\t\tdisplay: inline;\n\t\tposition: relative;\n\t\tpointer-events: none;\n\n\t\t& span {\n\t\t\tposition: absolute;\n\t\t\twidth: 0;\n\t\t}\n\t}\n\n\t/*\n\t * Styles of the widget being dragged (its preview).\n\t */\n\t& .ck-widget:-webkit-drag {\n\t\t& > .ck-widget__selection-handle {\n\t\t\tdisplay: none;\n\t\t}\n\n\t\t& > .ck-widget__type-around {\n\t\t\tdisplay: none;\n\t\t}\n\t}\n}\n",'/*\n * Copyright (c) 2003-2022, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n:root {\n\t--ck-clipboard-drop-target-dot-width: 12px;\n\t--ck-clipboard-drop-target-dot-height: 8px;\n\t--ck-clipboard-drop-target-color: var(--ck-color-focus-border)\n}\n\n.ck.ck-editor__editable {\n\t/*\n\t * Vertical drop target (in text).\n\t */\n\t& .ck.ck-clipboard-drop-target-position {\n\t\t& span {\n\t\t\tbottom: calc(-.5 * var(--ck-clipboard-drop-target-dot-height));\n\t\t\ttop: calc(-.5 * var(--ck-clipboard-drop-target-dot-height));\n\t\t\tborder: 1px solid var(--ck-clipboard-drop-target-color);\n\t\t\tbackground: var(--ck-clipboard-drop-target-color);\n\t\t\tmargin-left: -1px;\n\n\t\t\t/* The triangle above the marker */\n\t\t\t&::after {\n\t\t\t\tcontent: "";\n\t\t\t\twidth: 0;\n\t\t\t\theight: 0;\n\n\t\t\t\tdisplay: block;\n\t\t\t\tposition: absolute;\n\t\t\t\tleft: 50%;\n\t\t\t\ttop: calc(var(--ck-clipboard-drop-target-dot-height) * -.5);\n\n\t\t\t\ttransform: translateX(-50%);\n\t\t\t\tborder-color: var(--ck-clipboard-drop-target-color) transparent transparent transparent;\n\t\t\t\tborder-width: calc(var(--ck-clipboard-drop-target-dot-height)) calc(.5 * var(--ck-clipboard-drop-target-dot-width)) 0 calc(.5 * var(--ck-clipboard-drop-target-dot-width));\n\t\t\t\tborder-style: solid;\n\t\t\t}\n\t\t}\n\t}\n\n\t/*\n\t// Horizontal drop target (between blocks).\n\t& .ck.ck-clipboard-drop-target-position {\n\t\tdisplay: block;\n\t\tposition: relative;\n\t\twidth: 100%;\n\t\theight: 0;\n\t\tmargin: 0;\n\t\ttext-align: initial;\n\n\t\t& .ck-clipboard-drop-target__line {\n\t\t\tposition: absolute;\n\t\t\twidth: 100%;\n\t\t\theight: 0;\n\t\t\tborder: 1px solid var(--ck-clipboard-drop-target-color);\n\t\t\tmargin-top: -1px;\n\n\t\t\t&::before {\n\t\t\t\tcontent: "";\n\t\t\t\twidth: 0;\n\t\t\t\theight: 0;\n\n\t\t\t\tdisplay: block;\n\t\t\t\tposition: absolute;\n\t\t\t\tleft: calc(-1 * var(--ck-clipboard-drop-target-dot-size));\n\t\t\t\ttop: 0;\n\n\t\t\t\ttransform: translateY(-50%);\n\t\t\t\tborder-color: transparent transparent transparent var(--ck-clipboard-drop-target-color);\n\t\t\t\tborder-width: var(--ck-clipboard-drop-target-dot-size) 0 var(--ck-clipboard-drop-target-dot-size) calc(2 * var(--ck-clipboard-drop-target-dot-size));\n\t\t\t\tborder-style: solid;\n\t\t\t}\n\n\t\t\t&::after {\n\t\t\t\tcontent: "";\n\t\t\t\twidth: 0;\n\t\t\t\theight: 0;\n\n\t\t\t\tdisplay: block;\n\t\t\t\tposition: absolute;\n\t\t\t\tright: calc(-1 * var(--ck-clipboard-drop-target-dot-size));\n\t\t\t\ttop: 0;\n\n\t\t\t\ttransform: translateY(-50%);\n\t\t\t\tborder-color: transparent var(--ck-clipboard-drop-target-color) transparent transparent;\n\t\t\t\tborder-width: var(--ck-clipboard-drop-target-dot-size) calc(2 * var(--ck-clipboard-drop-target-dot-size)) var(--ck-clipboard-drop-target-dot-size) 0;\n\t\t\t\tborder-style: solid;\n\t\t\t}\n\t\t}\n\t}\n\t*/\n\n\t/*\n\t * Styles of the widget that it a drop target.\n\t */\n\t& .ck-widget.ck-clipboard-drop-target-range {\n\t\toutline: var(--ck-widget-outline-thickness) solid var(--ck-clipboard-drop-target-color) !important;\n\t}\n\n\t/*\n\t * Styles of the widget being dragged (its preview).\n\t */\n\t& .ck-widget:-webkit-drag {\n\t\tzoom: 0.6;\n\t\toutline: none !important;\n\t}\n}\n'],sourceRoot:""}]);const a=s},3638:(t,e,n)=>{"use strict";n.d(e,{Z:()=>a});var o=n(4015),i=n.n(o),r=n(3645),s=n.n(r)()(i());s.push([t.id,".ck.ck-editor{position:relative}.ck.ck-editor .ck-editor__top .ck-sticky-panel .ck-toolbar{z-index:var(--ck-z-modal)}.ck.ck-editor__top .ck-sticky-panel .ck-toolbar{border-radius:0}.ck-rounded-corners .ck.ck-editor__top .ck-sticky-panel .ck-toolbar,.ck.ck-editor__top .ck-sticky-panel .ck-toolbar.ck-rounded-corners{border-radius:var(--ck-border-radius);border-bottom-left-radius:0;border-bottom-right-radius:0}.ck.ck-editor__top .ck-sticky-panel .ck-toolbar{border-bottom-width:0}.ck.ck-editor__top .ck-sticky-panel .ck-sticky-panel__content_sticky .ck-toolbar{border-bottom-width:1px;border-radius:0}.ck-rounded-corners .ck.ck-editor__top .ck-sticky-panel .ck-sticky-panel__content_sticky .ck-toolbar,.ck.ck-editor__top .ck-sticky-panel .ck-sticky-panel__content_sticky .ck-toolbar.ck-rounded-corners{border-radius:var(--ck-border-radius);border-radius:0}.ck.ck-editor__main>.ck-editor__editable{background:var(--ck-color-base-background);border-radius:0}.ck-rounded-corners .ck.ck-editor__main>.ck-editor__editable,.ck.ck-editor__main>.ck-editor__editable.ck-rounded-corners{border-radius:var(--ck-border-radius);border-top-left-radius:0;border-top-right-radius:0}.ck.ck-editor__main>.ck-editor__editable:not(.ck-focused){border-color:var(--ck-color-base-border)}","",{version:3,sources:["webpack://./node_modules/@ckeditor/ckeditor5-editor-classic/theme/classiceditor.css","webpack://./node_modules/@ckeditor/ckeditor5-theme-lark/theme/ckeditor5-editor-classic/classiceditor.css","webpack://./node_modules/@ckeditor/ckeditor5-theme-lark/theme/mixins/_rounded.css"],names:[],mappings:"AAKA,cAIC,iBAMD,CAJC,2DAEC,yBACD,CCLC,gDCED,eDKC,CAPA,uICMA,qCAAsC,CDJpC,2BAA4B,CAC5B,4BAIF,CAPA,gDAMC,qBACD,CAEA,iFACC,uBAAwB,CCR1B,eDaC,CANA,yMCHA,qCAAsC,CDOpC,eAEF,CAKF,yCAEC,0CAA2C,CCpB3C,eD8BD,CAZA,yHCdE,qCAAsC,CDmBtC,wBAAyB,CACzB,yBAMF,CAHC,0DACC,wCACD",sourcesContent:["/*\n * Copyright (c) 2003-2022, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n.ck.ck-editor {\n\t/* All the elements within `.ck-editor` are positioned relatively to it.\n\t If any element needs to be positioned with respect to the , etc.,\n\t it must land outside of the `.ck-editor` in DOM. */\n\tposition: relative;\n\n\t& .ck-editor__top .ck-sticky-panel .ck-toolbar {\n\t\t/* https://github.com/ckeditor/ckeditor5-editor-classic/issues/62 */\n\t\tz-index: var(--ck-z-modal);\n\t}\n}\n",'/*\n * Copyright (c) 2003-2022, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n@import "../mixins/_rounded.css";\n\n.ck.ck-editor__top {\n\t& .ck-sticky-panel {\n\t\t& .ck-toolbar {\n\t\t\t@mixin ck-rounded-corners {\n\t\t\t\tborder-bottom-left-radius: 0;\n\t\t\t\tborder-bottom-right-radius: 0;\n\t\t\t}\n\n\t\t\tborder-bottom-width: 0;\n\t\t}\n\n\t\t& .ck-sticky-panel__content_sticky .ck-toolbar {\n\t\t\tborder-bottom-width: 1px;\n\n\t\t\t@mixin ck-rounded-corners {\n\t\t\t\tborder-radius: 0;\n\t\t\t}\n\t\t}\n\t}\n}\n\n/* Note: Use ck-editor__main to make sure these styles don\'t apply to other editor types */\n.ck.ck-editor__main > .ck-editor__editable {\n\t/* https://github.com/ckeditor/ckeditor5-theme-lark/issues/113 */\n\tbackground: var(--ck-color-base-background);\n\n\t@mixin ck-rounded-corners {\n\t\tborder-top-left-radius: 0;\n\t\tborder-top-right-radius: 0;\n\t}\n\n\t&:not(.ck-focused) {\n\t\tborder-color: var(--ck-color-base-border);\n\t}\n}\n',"/*\n * Copyright (c) 2003-2022, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n/**\n * Implements rounded corner interface for .ck-rounded-corners class.\n *\n * @see $ck-border-radius\n */\n@define-mixin ck-rounded-corners {\n\tborder-radius: 0;\n\n\t@nest .ck-rounded-corners &,\n\t&.ck-rounded-corners {\n\t\tborder-radius: var(--ck-border-radius);\n\t\t@mixin-content;\n\t}\n}\n"],sourceRoot:""}]);const a=s},8894:(t,e,n)=>{"use strict";n.d(e,{Z:()=>a});var o=n(4015),i=n.n(o),r=n(3645),s=n.n(r)()(i());s.push([t.id,".ck .ck-placeholder,.ck.ck-placeholder{position:relative}.ck .ck-placeholder:before,.ck.ck-placeholder:before{content:attr(data-placeholder);left:0;pointer-events:none;position:absolute;right:0}.ck.ck-read-only .ck-placeholder:before{display:none}.ck.ck-reset_all .ck-placeholder{position:relative}.ck .ck-placeholder:before,.ck.ck-placeholder:before{color:var(--ck-color-engine-placeholder-text);cursor:text}","",{version:3,sources:["webpack://./node_modules/@ckeditor/ckeditor5-engine/theme/placeholder.css","webpack://./node_modules/@ckeditor/ckeditor5-theme-lark/theme/ckeditor5-engine/placeholder.css"],names:[],mappings:"AAMA,uCAEC,iBAWD,CATC,qDAIC,8BAA+B,CAF/B,MAAO,CAKP,mBAAoB,CANpB,iBAAkB,CAElB,OAKD,CAKA,wCACC,YACD,CAQD,iCACC,iBACD,CC5BC,qDAEC,6CAA8C,CAD9C,WAED",sourcesContent:["/*\n * Copyright (c) 2003-2022, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n/* See ckeditor/ckeditor5#936. */\n.ck.ck-placeholder,\n.ck .ck-placeholder {\n\tposition: relative;\n\n\t&::before {\n\t\tposition: absolute;\n\t\tleft: 0;\n\t\tright: 0;\n\t\tcontent: attr(data-placeholder);\n\n\t\t/* See ckeditor/ckeditor5#469. */\n\t\tpointer-events: none;\n\t}\n}\n\n/* See ckeditor/ckeditor5#1987. */\n.ck.ck-read-only .ck-placeholder {\n\t&::before {\n\t\tdisplay: none;\n\t}\n}\n\n/*\n * Rules for the `ck-placeholder` are loaded before the rules for `ck-reset_all` in the base CKEditor 5 DLL build.\n * This fix overwrites the incorrectly set `position: static` from `ck-reset_all`.\n * See https://github.com/ckeditor/ckeditor5/issues/11418.\n */\n.ck.ck-reset_all .ck-placeholder {\n\tposition: relative;\n}\n","/*\n * Copyright (c) 2003-2022, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n/* See ckeditor/ckeditor5#936. */\n.ck.ck-placeholder, .ck .ck-placeholder {\n\t&::before {\n\t\tcursor: text;\n\t\tcolor: var(--ck-color-engine-placeholder-text);\n\t}\n}\n"],sourceRoot:""}]);const a=s},4401:(t,e,n)=>{"use strict";n.d(e,{Z:()=>a});var o=n(4015),i=n.n(o),r=n(3645),s=n.n(r)()(i());s.push([t.id,".ck.ck-editor__editable span[data-ck-unsafe-element]{display:none}","",{version:3,sources:["webpack://./node_modules/@ckeditor/ckeditor5-engine/theme/renderer.css"],names:[],mappings:"AAMA,qDACC,YACD",sourcesContent:["/*\n * Copyright (c) 2003-2022, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n/* Elements marked by the Renderer as hidden should be invisible in the editor. */\n.ck.ck-editor__editable span[data-ck-unsafe-element] {\n\tdisplay: none;\n}\n"],sourceRoot:""}]);const a=s},2585:(t,e,n)=>{"use strict";n.d(e,{Z:()=>a});var o=n(4015),i=n.n(o),r=n(3645),s=n.n(r)()(i());s.push([t.id,".ck .ck-button.ck-color-table__remove-color{align-items:center;display:flex;width:100%}label.ck.ck-color-grid__label{font-weight:unset}.ck .ck-button.ck-color-table__remove-color{border-bottom-left-radius:0;border-bottom-right-radius:0;padding:calc(var(--ck-spacing-standard)/2) var(--ck-spacing-standard)}.ck .ck-button.ck-color-table__remove-color:not(:focus){border-bottom:1px solid var(--ck-color-base-border)}[dir=ltr] .ck .ck-button.ck-color-table__remove-color .ck.ck-icon{margin-right:var(--ck-spacing-standard)}[dir=rtl] .ck .ck-button.ck-color-table__remove-color .ck.ck-icon{margin-left:var(--ck-spacing-standard)}","",{version:3,sources:["webpack://./node_modules/@ckeditor/ckeditor5-font/theme/fontcolor.css","webpack://./node_modules/@ckeditor/ckeditor5-theme-lark/theme/ckeditor5-font/fontcolor.css"],names:[],mappings:"AAKA,4CAEC,kBAAmB,CADnB,YAAa,CAEb,UACD,CAEA,8BACC,iBACD,CCNA,4CAEC,2BAA4B,CAC5B,4BAA6B,CAF7B,qEAiBD,CAbC,wDACC,mDACD,CAEA,kEAEE,uCAMF,CARA,kEAME,sCAEF",sourcesContent:["/*\n * Copyright (c) 2003-2022, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n.ck .ck-button.ck-color-table__remove-color {\n\tdisplay: flex;\n\talign-items: center;\n\twidth: 100%;\n}\n\nlabel.ck.ck-color-grid__label {\n\tfont-weight: unset;\n}\n",'/*\n * Copyright (c) 2003-2022, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n@import "@ckeditor/ckeditor5-ui/theme/mixins/_dir.css";\n\n.ck .ck-button.ck-color-table__remove-color {\n\tpadding: calc(var(--ck-spacing-standard) / 2 ) var(--ck-spacing-standard);\n\tborder-bottom-left-radius: 0;\n\tborder-bottom-right-radius: 0;\n\n\t&:not(:focus) {\n\t\tborder-bottom: 1px solid var(--ck-color-base-border);\n\t}\n\n\t& .ck.ck-icon {\n\t\t@mixin ck-dir ltr {\n\t\t\tmargin-right: var(--ck-spacing-standard);\n\t\t}\n\n\t\t@mixin ck-dir rtl {\n\t\t\tmargin-left: var(--ck-spacing-standard);\n\t\t}\n\t}\n}\n\n'],sourceRoot:""}]);const a=s},6203:(t,e,n)=>{"use strict";n.d(e,{Z:()=>a});var o=n(4015),i=n.n(o),r=n(3645),s=n.n(r)()(i());s.push([t.id,".ck-content .text-tiny{font-size:.7em}.ck-content .text-small{font-size:.85em}.ck-content .text-big{font-size:1.4em}.ck-content .text-huge{font-size:1.8em}","",{version:3,sources:["webpack://./node_modules/@ckeditor/ckeditor5-font/theme/fontsize.css"],names:[],mappings:"AAUC,uBACC,cACD,CAEA,wBACC,eACD,CAEA,sBACC,eACD,CAEA,uBACC,eACD",sourcesContent:['/*\n * Copyright (c) 2003-2022, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n/* The values should be synchronized with the "FONT_SIZE_PRESET_UNITS" object in the "/src/fontsize/utils.js" file. */\n\n/* Styles should be prefixed with the `.ck-content` class.\nSee https://github.com/ckeditor/ckeditor5/issues/6636 */\n.ck-content {\n\t& .text-tiny {\n\t\tfont-size: .7em;\n\t}\n\n\t& .text-small {\n\t\tfont-size: .85em;\n\t}\n\n\t& .text-big {\n\t\tfont-size: 1.4em;\n\t}\n\n\t& .text-huge {\n\t\tfont-size: 1.8em;\n\t}\n}\n'],sourceRoot:""}]);const a=s},3230:(t,e,n)=>{"use strict";n.d(e,{Z:()=>a});var o=n(4015),i=n.n(o),r=n(3645),s=n.n(r)()(i());s.push([t.id,".ck.ck-heading_heading1{font-size:20px}.ck.ck-heading_heading2{font-size:17px}.ck.ck-heading_heading3{font-size:14px}.ck[class*=ck-heading_heading]{font-weight:700}.ck.ck-dropdown.ck-heading-dropdown .ck-dropdown__button .ck-button__label{width:8em}.ck.ck-dropdown.ck-heading-dropdown .ck-dropdown__panel .ck-list__item{min-width:18em}","",{version:3,sources:["webpack://./node_modules/@ckeditor/ckeditor5-heading/theme/heading.css","webpack://./node_modules/@ckeditor/ckeditor5-theme-lark/theme/ckeditor5-heading/heading.css"],names:[],mappings:"AAKA,wBACC,cACD,CAEA,wBACC,cACD,CAEA,wBACC,cACD,CAEA,+BACC,eACD,CCZC,2EACC,SACD,CAEA,uEACC,cACD",sourcesContent:['/*\n * Copyright (c) 2003-2022, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n.ck.ck-heading_heading1 {\n\tfont-size: 20px;\n}\n\n.ck.ck-heading_heading2 {\n\tfont-size: 17px;\n}\n\n.ck.ck-heading_heading3 {\n\tfont-size: 14px;\n}\n\n.ck[class*="ck-heading_heading"] {\n\tfont-weight: bold;\n}\n',"/*\n * Copyright (c) 2003-2022, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n/* Resize dropdown's button label. */\n.ck.ck-dropdown.ck-heading-dropdown {\n\t& .ck-dropdown__button .ck-button__label {\n\t\twidth: 8em;\n\t}\n\n\t& .ck-dropdown__panel .ck-list__item {\n\t\tmin-width: 18em;\n\t}\n}\n"],sourceRoot:""}]);const a=s},713:(t,e,n)=>{"use strict";n.d(e,{Z:()=>a});var o=n(4015),i=n.n(o),r=n(3645),s=n.n(r)()(i());s.push([t.id,":root{--ck-highlight-marker-yellow:#fdfd77;--ck-highlight-marker-green:#62f962;--ck-highlight-marker-pink:#fc7899;--ck-highlight-marker-blue:#72ccfd;--ck-highlight-pen-red:#e71313;--ck-highlight-pen-green:#128a00}.ck-content .marker-yellow{background-color:var(--ck-highlight-marker-yellow)}.ck-content .marker-green{background-color:var(--ck-highlight-marker-green)}.ck-content .marker-pink{background-color:var(--ck-highlight-marker-pink)}.ck-content .marker-blue{background-color:var(--ck-highlight-marker-blue)}.ck-content .pen-red{background-color:transparent;color:var(--ck-highlight-pen-red)}.ck-content .pen-green{background-color:transparent;color:var(--ck-highlight-pen-green)}","",{version:3,sources:["webpack://./node_modules/@ckeditor/ckeditor5-highlight/theme/highlight.css"],names:[],mappings:"AAKA,MACC,oCAA+C,CAC/C,mCAA+C,CAC/C,kCAA8C,CAC9C,kCAA8C,CAC9C,8BAAwC,CACxC,gCACD,CAGC,2BACC,kDACD,CAFA,0BACC,iDACD,CAFA,yBACC,gDACD,CAFA,yBACC,gDACD,CAIA,qBAIC,4BAA6B,CAH7B,iCAID,CALA,uBAIC,4BAA6B,CAH7B,mCAID",sourcesContent:["/*\n * Copyright (c) 2003-2022, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n:root {\n\t--ck-highlight-marker-yellow: hsl(60, 97%, 73%);\n\t--ck-highlight-marker-green: hsl(120, 93%, 68%);\n\t--ck-highlight-marker-pink: hsl(345, 96%, 73%);\n\t--ck-highlight-marker-blue: hsl(201, 97%, 72%);\n\t--ck-highlight-pen-red: hsl(0, 85%, 49%);\n\t--ck-highlight-pen-green: hsl(112, 100%, 27%);\n}\n\n@define-mixin highlight-marker-color $color {\n\t.ck-content .marker-$color {\n\t\tbackground-color: var(--ck-highlight-marker-$color);\n\t}\n}\n\n@define-mixin highlight-pen-color $color {\n\t.ck-content .pen-$color {\n\t\tcolor: var(--ck-highlight-pen-$color);\n\n\t\t/* Override default yellow background of `` from user agent stylesheet */\n\t\tbackground-color: transparent;\n\t}\n}\n\n@mixin highlight-marker-color yellow;\n@mixin highlight-marker-color green;\n@mixin highlight-marker-color pink;\n@mixin highlight-marker-color blue;\n\n@mixin highlight-pen-color red;\n@mixin highlight-pen-color green;\n"],sourceRoot:""}]);const a=s},2536:(t,e,n)=>{"use strict";n.d(e,{Z:()=>a});var o=n(4015),i=n.n(o),r=n(3645),s=n.n(r)()(i());s.push([t.id,".ck-editor__editable .ck-horizontal-line{display:flow-root}.ck-content hr{background:#dedede;border:0;height:4px;margin:15px 0}","",{version:3,sources:["webpack://./node_modules/@ckeditor/ckeditor5-horizontal-line/theme/horizontalline.css"],names:[],mappings:"AAMA,yCAEC,iBACD,CAEA,eAGC,kBAA2B,CAC3B,QAAS,CAFT,UAAW,CADX,aAID",sourcesContent:["/*\n * Copyright (c) 2003-2022, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n\n.ck-editor__editable .ck-horizontal-line {\n\t/* Necessary to render properly next to floated objects, e.g. side image case. */\n\tdisplay: flow-root;\n}\n\n.ck-content hr {\n\tmargin: 15px 0;\n\theight: 4px;\n\tbackground: hsl(0, 0%, 87%);\n\tborder: 0;\n}\n"],sourceRoot:""}]);const a=s},9048:(t,e,n)=>{"use strict";n.d(e,{Z:()=>a});var o=n(4015),i=n.n(o),r=n(3645),s=n.n(r)()(i());s.push([t.id,".ck-content .image{clear:both;display:table;margin:.9em auto;min-width:50px;text-align:center}.ck-content .image img{display:block;margin:0 auto;max-width:100%;min-width:100%}.ck-content .image-inline{align-items:flex-start;display:inline-flex;max-width:100%}.ck-content .image-inline picture{display:flex}.ck-content .image-inline img,.ck-content .image-inline picture{flex-grow:1;flex-shrink:1;max-width:100%}.ck.ck-editor__editable .image>figcaption.ck-placeholder:before{overflow:hidden;padding-left:inherit;padding-right:inherit;text-overflow:ellipsis;white-space:nowrap}.ck.ck-editor__editable .image-inline.ck-widget_selected,.ck.ck-editor__editable .image.ck-widget_selected{z-index:1}.ck.ck-editor__editable .image-inline.ck-widget_selected ::selection{display:none}.ck.ck-editor__editable td .image-inline img,.ck.ck-editor__editable th .image-inline img{max-width:none}","",{version:3,sources:["webpack://./node_modules/@ckeditor/ckeditor5-image/theme/image.css"],names:[],mappings:"AAMC,mBAEC,UAAW,CADX,aAAc,CAOd,gBAAkB,CAGlB,cAAe,CARf,iBAuBD,CAbC,uBAEC,aAAc,CAGd,aAAc,CAGd,cAAe,CAGf,cACD,CAGD,0BAYC,sBAAuB,CANvB,mBAAoB,CAGpB,cAoBD,CAdC,kCACC,YACD,CAGA,gEAGC,WAAY,CACZ,aAAc,CAGd,cACD,CAUD,gEASC,eAAgB,CARhB,oBAAqB,CACrB,qBAAsB,CAQtB,sBAAuB,CAFvB,kBAGD,CAWA,2GACC,SAUD,CAHC,qEACC,YACD,CAOA,0FACC,cACD",sourcesContent:['/*\n * Copyright (c) 2003-2022, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n.ck-content {\n\t& .image {\n\t\tdisplay: table;\n\t\tclear: both;\n\t\ttext-align: center;\n\n\t\t/* Make sure there is some space between the content and the image. Center image by default. */\n\t\t/* The first value should be equal to --ck-spacing-large variable if used in the editor context\n\t \tto avoid the content jumping (See https://github.com/ckeditor/ckeditor5/issues/9825). */\n\t\tmargin: 0.9em auto;\n\n\t\t/* Make sure the caption will be displayed properly (See: https://github.com/ckeditor/ckeditor5/issues/1870). */\n\t\tmin-width: 50px;\n\n\t\t& img {\n\t\t\t/* Prevent unnecessary margins caused by line-height (see #44). */\n\t\t\tdisplay: block;\n\n\t\t\t/* Center the image if its width is smaller than the content\'s width. */\n\t\t\tmargin: 0 auto;\n\n\t\t\t/* Make sure the image never exceeds the size of the parent container (ckeditor/ckeditor5-ui#67). */\n\t\t\tmax-width: 100%;\n\n\t\t\t/* Make sure the image is never smaller than the parent container (See: https://github.com/ckeditor/ckeditor5/issues/9300). */\n\t\t\tmin-width: 100%\n\t\t}\n\t}\n\n\t& .image-inline {\n\t\t/*\n\t\t * Normally, the .image-inline would have "display: inline-block" and "img { width: 100% }" (to follow the wrapper while resizing).\n\t\t * Unfortunately, together with "srcset", it gets automatically stretched up to the width of the editing root.\n\t\t * This strange behavior does not happen with inline-flex.\n\t\t */\n\t\tdisplay: inline-flex;\n\n\t\t/* While being resized, don\'t allow the image to exceed the width of the editing root. */\n\t\tmax-width: 100%;\n\n\t\t/* This is required by Safari to resize images in a sensible way. Without this, the browser breaks the ratio. */\n\t\talign-items: flex-start;\n\n\t\t/* When the picture is present it must act as a flex container to let the img resize properly */\n\t\t& picture {\n\t\t\tdisplay: flex;\n\t\t}\n\n\t\t/* When the picture is present, it must act like a resizable img. */\n\t\t& picture,\n\t\t& img {\n\t\t\t/* This is necessary for the img to span the entire .image-inline wrapper and to resize properly. */\n\t\t\tflex-grow: 1;\n\t\t\tflex-shrink: 1;\n\n\t\t\t/* Prevents overflowing the editing root boundaries when an inline image is very wide. */\n\t\t\tmax-width: 100%;\n\t\t}\n\t}\n}\n\n.ck.ck-editor__editable {\n\t/*\n\t * Inhertit the content styles padding of the
                                                                                                                                                                                                                                                                                                                                            in case the integration overrides `text-align: center`\n\t * of `.image` (e.g. to the left/right). This ensures the placeholder stays at the padding just like the native\n\t * caret does, and not at the edge of
                                                                                                                                                                                                                                                                                                                                            .\n\t */\n\t& .image > figcaption.ck-placeholder::before {\n\t\tpadding-left: inherit;\n\t\tpadding-right: inherit;\n\n\t\t/*\n\t\t * Make sure the image caption placeholder doesn\'t overflow the placeholder area.\n\t\t * See https://github.com/ckeditor/ckeditor5/issues/9162.\n\t\t */\n\t\twhite-space: nowrap;\n\t\toverflow: hidden;\n\t\ttext-overflow: ellipsis;\n\t}\n\n\n\t/*\n\t * Make sure the selected inline image always stays on top of its siblings.\n\t * See https://github.com/ckeditor/ckeditor5/issues/9108.\n\t */\n\t& .image.ck-widget_selected {\n\t\tz-index: 1;\n\t}\n\n\t& .image-inline.ck-widget_selected {\n\t\tz-index: 1;\n\n\t\t/*\n\t\t * Make sure the native browser selection style is not displayed.\n\t\t * Inline image widgets have their own styles for the selected state and\n\t\t * leaving this up to the browser is asking for a visual collision.\n\t\t */\n\t\t& ::selection {\n\t\t\tdisplay: none;\n\t\t}\n\t}\n\n\t/* The inline image nested in the table should have its original size if not resized.\n\tSee https://github.com/ckeditor/ckeditor5/issues/9117. */\n\t& td,\n\t& th {\n\t\t& .image-inline img {\n\t\t\tmax-width: none;\n\t\t}\n\t}\n}\n'],sourceRoot:""}]);const a=s},1043:(t,e,n)=>{"use strict";n.d(e,{Z:()=>a});var o=n(4015),i=n.n(o),r=n(3645),s=n.n(r)()(i());s.push([t.id,".ck-content .image.image_resized{box-sizing:border-box;display:block;max-width:100%}.ck-content .image.image_resized img{width:100%}.ck-content .image.image_resized>figcaption{display:block}.ck.ck-editor__editable td .image-inline.image_resized img,.ck.ck-editor__editable th .image-inline.image_resized img{max-width:100%}[dir=ltr] .ck.ck-button.ck-button_with-text.ck-resize-image-button .ck-button__icon{margin-right:var(--ck-spacing-standard)}[dir=rtl] .ck.ck-button.ck-button_with-text.ck-resize-image-button .ck-button__icon{margin-left:var(--ck-spacing-standard)}.ck.ck-dropdown .ck-button.ck-resize-image-button .ck-button__label{width:4em}","",{version:3,sources:["webpack://./node_modules/@ckeditor/ckeditor5-image/theme/imageresize.css"],names:[],mappings:"AAKA,iCAQC,qBAAsB,CADtB,aAAc,CANd,cAkBD,CATC,qCAEC,UACD,CAEA,4CAEC,aACD,CAQC,sHACC,cACD,CAIF,oFACC,uCACD,CAEA,oFACC,sCACD,CAEA,oEACC,SACD",sourcesContent:['/*\n * Copyright (c) 2003-2022, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n.ck-content .image.image_resized {\n\tmax-width: 100%;\n\t/*\n\tThe `
                                                                                                                                                                                                                                                                                                                                            ` element for resized images must not use `display:table` as browsers do not support `max-width` for it well.\n\tSee https://stackoverflow.com/questions/4019604/chrome-safari-ignoring-max-width-in-table/14420691#14420691 for more.\n\tFortunately, since we control the width, there is no risk that the image will look bad.\n\t*/\n\tdisplay: block;\n\tbox-sizing: border-box;\n\n\t& img {\n\t\t/* For resized images it is the `
                                                                                                                                                                                                                                                                                                                                            ` element that determines the image width. */\n\t\twidth: 100%;\n\t}\n\n\t& > figcaption {\n\t\t/* The `
                                                                                                                                                                                                                                                                                                                                            ` element uses `display:block`, so `
                                                                                                                                                                                                                                                                                                                                            ` also has to. */\n\t\tdisplay: block;\n\t}\n}\n\n.ck.ck-editor__editable {\n\t/* The resized inline image nested in the table should respect its parent size.\n\tSee https://github.com/ckeditor/ckeditor5/issues/9117. */\n\t& td,\n\t& th {\n\t\t& .image-inline.image_resized img {\n\t\t\tmax-width: 100%;\n\t\t}\n\t}\n}\n\n[dir="ltr"] .ck.ck-button.ck-button_with-text.ck-resize-image-button .ck-button__icon {\n\tmargin-right: var(--ck-spacing-standard);\n}\n\n[dir="rtl"] .ck.ck-button.ck-button_with-text.ck-resize-image-button .ck-button__icon {\n\tmargin-left: var(--ck-spacing-standard);\n}\n\n.ck.ck-dropdown .ck-button.ck-resize-image-button .ck-button__label {\n\twidth: 4em;\n}\n'],sourceRoot:""}]);const a=s},4622:(t,e,n)=>{"use strict";n.d(e,{Z:()=>a});var o=n(4015),i=n.n(o),r=n(3645),s=n.n(r)()(i());s.push([t.id,":root{--ck-image-style-spacing:1.5em;--ck-inline-image-style-spacing:calc(var(--ck-image-style-spacing)/2)}.ck-content .image-style-block-align-left,.ck-content .image-style-block-align-right{max-width:calc(100% - var(--ck-image-style-spacing))}.ck-content .image-style-align-left,.ck-content .image-style-align-right{clear:none}.ck-content .image-style-side{float:right;margin-left:var(--ck-image-style-spacing);max-width:50%}.ck-content .image-style-align-left{float:left;margin-right:var(--ck-image-style-spacing)}.ck-content .image-style-align-center{margin-left:auto;margin-right:auto}.ck-content .image-style-align-right{float:right;margin-left:var(--ck-image-style-spacing)}.ck-content .image-style-block-align-right{margin-left:auto;margin-right:0}.ck-content .image-style-block-align-left{margin-left:0;margin-right:auto}.ck-content p+.image-style-align-left,.ck-content p+.image-style-align-right,.ck-content p+.image-style-side{margin-top:0}.ck-content .image-inline.image-style-align-left,.ck-content .image-inline.image-style-align-right{margin-bottom:var(--ck-inline-image-style-spacing);margin-top:var(--ck-inline-image-style-spacing)}.ck-content .image-inline.image-style-align-left{margin-right:var(--ck-inline-image-style-spacing)}.ck-content .image-inline.image-style-align-right{margin-left:var(--ck-inline-image-style-spacing)}.ck.ck-splitbutton.ck-splitbutton_flatten.ck-splitbutton_open>.ck-splitbutton__action:not(.ck-disabled),.ck.ck-splitbutton.ck-splitbutton_flatten.ck-splitbutton_open>.ck-splitbutton__arrow:not(.ck-disabled),.ck.ck-splitbutton.ck-splitbutton_flatten.ck-splitbutton_open>.ck-splitbutton__arrow:not(.ck-disabled):not(:hover),.ck.ck-splitbutton.ck-splitbutton_flatten:hover>.ck-splitbutton__action:not(.ck-disabled),.ck.ck-splitbutton.ck-splitbutton_flatten:hover>.ck-splitbutton__arrow:not(.ck-disabled),.ck.ck-splitbutton.ck-splitbutton_flatten:hover>.ck-splitbutton__arrow:not(.ck-disabled):not(:hover){background-color:var(--ck-color-button-on-background)}.ck.ck-splitbutton.ck-splitbutton_flatten.ck-splitbutton_open>.ck-splitbutton__action:not(.ck-disabled):after,.ck.ck-splitbutton.ck-splitbutton_flatten.ck-splitbutton_open>.ck-splitbutton__arrow:not(.ck-disabled):after,.ck.ck-splitbutton.ck-splitbutton_flatten.ck-splitbutton_open>.ck-splitbutton__arrow:not(.ck-disabled):not(:hover):after,.ck.ck-splitbutton.ck-splitbutton_flatten:hover>.ck-splitbutton__action:not(.ck-disabled):after,.ck.ck-splitbutton.ck-splitbutton_flatten:hover>.ck-splitbutton__arrow:not(.ck-disabled):after,.ck.ck-splitbutton.ck-splitbutton_flatten:hover>.ck-splitbutton__arrow:not(.ck-disabled):not(:hover):after{display:none}.ck.ck-splitbutton.ck-splitbutton_flatten.ck-splitbutton_open:hover>.ck-splitbutton__action:not(.ck-disabled),.ck.ck-splitbutton.ck-splitbutton_flatten.ck-splitbutton_open:hover>.ck-splitbutton__arrow:not(.ck-disabled),.ck.ck-splitbutton.ck-splitbutton_flatten.ck-splitbutton_open:hover>.ck-splitbutton__arrow:not(.ck-disabled):not(:hover){background-color:var(--ck-color-button-on-hover-background)}","",{version:3,sources:["webpack://./node_modules/@ckeditor/ckeditor5-image/theme/imagestyle.css"],names:[],mappings:"AAKA,MACC,8BAA+B,CAC/B,qEACD,CAMC,qFAEC,oDACD,CAIA,yEAEC,UACD,CAEA,8BACC,WAAY,CACZ,yCAA0C,CAC1C,aACD,CAEA,oCACC,UAAW,CACX,0CACD,CAEA,sCACC,gBAAiB,CACjB,iBACD,CAEA,qCACC,WAAY,CACZ,yCACD,CAEA,2CAEC,gBAAiB,CADjB,cAED,CAEA,0CACC,aAAc,CACd,iBACD,CAGA,6GAGC,YACD,CAGC,mGAGC,kDAAmD,CADnD,+CAED,CAEA,iDACC,iDACD,CAEA,kDACC,gDACD,CAUC,0lBAGC,qDAKD,CAHC,8nBACC,YACD,CAKD,oVAGC,2DACD",sourcesContent:["/*\n * Copyright (c) 2003-2022, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n:root {\n\t--ck-image-style-spacing: 1.5em;\n\t--ck-inline-image-style-spacing: calc(var(--ck-image-style-spacing) / 2);\n}\n\n.ck-content {\n\t/* Provides a minimal side margin for the left and right aligned images, so that the user has a visual feedback\n\tconfirming successful application of the style if image width exceeds the editor's size.\n\tSee https://github.com/ckeditor/ckeditor5/issues/9342 */\n\t& .image-style-block-align-left,\n\t& .image-style-block-align-right {\n\t\tmax-width: calc(100% - var(--ck-image-style-spacing));\n\t}\n\n\t/* Allows displaying multiple floating images in the same line.\n\tSee https://github.com/ckeditor/ckeditor5/issues/9183#issuecomment-804988132 */\n\t& .image-style-align-left,\n\t& .image-style-align-right {\n\t\tclear: none;\n\t}\n\n\t& .image-style-side {\n\t\tfloat: right;\n\t\tmargin-left: var(--ck-image-style-spacing);\n\t\tmax-width: 50%;\n\t}\n\n\t& .image-style-align-left {\n\t\tfloat: left;\n\t\tmargin-right: var(--ck-image-style-spacing);\n\t}\n\n\t& .image-style-align-center {\n\t\tmargin-left: auto;\n\t\tmargin-right: auto;\n\t}\n\n\t& .image-style-align-right {\n\t\tfloat: right;\n\t\tmargin-left: var(--ck-image-style-spacing);\n\t}\n\n\t& .image-style-block-align-right {\n\t\tmargin-right: 0;\n\t\tmargin-left: auto;\n\t}\n\n\t& .image-style-block-align-left {\n\t\tmargin-left: 0;\n\t\tmargin-right: auto;\n\t}\n\n\t/* Simulates margin collapsing with the preceding paragraph, which does not work for the floating elements. */\n\t& p + .image-style-align-left,\n\t& p + .image-style-align-right,\n\t& p + .image-style-side {\n\t\tmargin-top: 0;\n\t}\n\n\t& .image-inline {\n\t\t&.image-style-align-left,\n\t\t&.image-style-align-right {\n\t\t\tmargin-top: var(--ck-inline-image-style-spacing);\n\t\t\tmargin-bottom: var(--ck-inline-image-style-spacing);\n\t\t}\n\n\t\t&.image-style-align-left {\n\t\t\tmargin-right: var(--ck-inline-image-style-spacing);\n\t\t}\n\n\t\t&.image-style-align-right {\n\t\t\tmargin-left: var(--ck-inline-image-style-spacing);\n\t\t}\n\t}\n}\n\n.ck.ck-splitbutton {\n\t/* The button should display as a regular drop-down if the action button\n\tis forced to fire the same action as the arrow button. */\n\t&.ck-splitbutton_flatten {\n\t\t&:hover,\n\t\t&.ck-splitbutton_open {\n\t\t\t& > .ck-splitbutton__action:not(.ck-disabled),\n\t\t\t& > .ck-splitbutton__arrow:not(.ck-disabled),\n\t\t\t& > .ck-splitbutton__arrow:not(.ck-disabled):not(:hover) {\n\t\t\t\tbackground-color: var(--ck-color-button-on-background);\n\n\t\t\t\t&::after {\n\t\t\t\t\tdisplay: none;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\t&.ck-splitbutton_open:hover {\n\t\t\t& > .ck-splitbutton__action:not(.ck-disabled),\n\t\t\t& > .ck-splitbutton__arrow:not(.ck-disabled),\n\t\t\t& > .ck-splitbutton__arrow:not(.ck-disabled):not(:hover) {\n\t\t\t\tbackground-color: var(--ck-color-button-on-hover-background);\n\t\t\t}\n\t\t}\n\t}\n}\n"],sourceRoot:""}]);const a=s},9899:(t,e,n)=>{"use strict";n.d(e,{Z:()=>a});var o=n(4015),i=n.n(o),r=n(3645),s=n.n(r)()(i());s.push([t.id,'.ck-image-upload-complete-icon{border-radius:50%;display:block;position:absolute;right:min(var(--ck-spacing-medium),6%);top:min(var(--ck-spacing-medium),6%);z-index:1}.ck-image-upload-complete-icon:after{content:"";position:absolute}:root{--ck-color-image-upload-icon:#fff;--ck-color-image-upload-icon-background:#008a00;--ck-image-upload-icon-size:20;--ck-image-upload-icon-width:2px;--ck-image-upload-icon-is-visible:clamp(0px,100% - 50px,1px)}.ck-image-upload-complete-icon{animation-delay:0ms,3s;animation-duration:.5s,.5s;animation-fill-mode:forwards,forwards;animation-name:ck-upload-complete-icon-show,ck-upload-complete-icon-hide;background:var(--ck-color-image-upload-icon-background);font-size:calc(1px*var(--ck-image-upload-icon-size));height:calc(var(--ck-image-upload-icon-is-visible)*var(--ck-image-upload-icon-size));opacity:0;overflow:hidden;width:calc(var(--ck-image-upload-icon-is-visible)*var(--ck-image-upload-icon-size))}.ck-image-upload-complete-icon:after{animation-delay:.5s;animation-duration:.5s;animation-fill-mode:forwards;animation-name:ck-upload-complete-icon-check;border-right:var(--ck-image-upload-icon-width) solid var(--ck-color-image-upload-icon);border-top:var(--ck-image-upload-icon-width) solid var(--ck-color-image-upload-icon);box-sizing:border-box;height:0;left:25%;opacity:0;top:50%;transform:scaleX(-1) rotate(135deg);transform-origin:left top;width:0}@keyframes ck-upload-complete-icon-show{0%{opacity:0}to{opacity:1}}@keyframes ck-upload-complete-icon-hide{0%{opacity:1}to{opacity:0}}@keyframes ck-upload-complete-icon-check{0%{height:0;opacity:1;width:0}33%{height:0;width:.3em}to{height:.45em;opacity:1;width:.3em}}',"",{version:3,sources:["webpack://./node_modules/@ckeditor/ckeditor5-image/theme/imageuploadicon.css","webpack://./node_modules/@ckeditor/ckeditor5-theme-lark/theme/ckeditor5-image/imageuploadicon.css"],names:[],mappings:"AAKA,+BAUC,iBAAkB,CATlB,aAAc,CACd,iBAAkB,CAOlB,sCAAwC,CADxC,oCAAsC,CAGtC,SAMD,CAJC,qCACC,UAAW,CACX,iBACD,CChBD,MACC,iCAA8C,CAC9C,+CAA4D,CAG5D,8BAA+B,CAC/B,gCAAiC,CACjC,4DACD,CAEA,+BAWC,sBAA4B,CAN5B,0BAAgC,CADhC,qCAAuC,CADvC,wEAA0E,CAD1E,uDAAwD,CAMxD,oDAAuD,CAWvD,oFAAuF,CAlBvF,SAAU,CAgBV,eAAgB,CAChB,mFA0BD,CAtBC,qCAgBC,mBAAsB,CADtB,sBAAyB,CAEzB,4BAA6B,CAH7B,4CAA6C,CAF7C,sFAAuF,CADvF,oFAAqF,CASrF,qBAAsB,CAdtB,QAAS,CAJT,QAAS,CAGT,SAAU,CADV,OAAQ,CAKR,mCAAoC,CACpC,yBAA0B,CAH1B,OAcD,CAGD,wCACC,GACC,SACD,CAEA,GACC,SACD,CACD,CAEA,wCACC,GACC,SACD,CAEA,GACC,SACD,CACD,CAEA,yCACC,GAGC,QAAS,CAFT,SAAU,CACV,OAED,CACA,IAEC,QAAS,CADT,UAED,CACA,GAGC,YAAc,CAFd,SAAU,CACV,UAED,CACD",sourcesContent:['/*\n * Copyright (c) 2003-2022, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n.ck-image-upload-complete-icon {\n\tdisplay: block;\n\tposition: absolute;\n\n\t/*\n\t * Smaller images should have the icon closer to the border.\n\t * Match the icon position with the linked image indicator brought by the link image feature.\n\t */\n\ttop: min(var(--ck-spacing-medium), 6%);\n\tright: min(var(--ck-spacing-medium), 6%);\n\tborder-radius: 50%;\n\tz-index: 1;\n\n\t&::after {\n\t\tcontent: "";\n\t\tposition: absolute;\n\t}\n}\n','/*\n * Copyright (c) 2003-2022, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n:root {\n\t--ck-color-image-upload-icon: hsl(0, 0%, 100%);\n\t--ck-color-image-upload-icon-background: hsl(120, 100%, 27%);\n\n\t/* Match the icon size with the linked image indicator brought by the link image feature. */\n\t--ck-image-upload-icon-size: 20;\n\t--ck-image-upload-icon-width: 2px;\n\t--ck-image-upload-icon-is-visible: clamp(0px, 100% - 50px, 1px);\n}\n\n.ck-image-upload-complete-icon {\n\topacity: 0;\n\tbackground: var(--ck-color-image-upload-icon-background);\n\tanimation-name: ck-upload-complete-icon-show, ck-upload-complete-icon-hide;\n\tanimation-fill-mode: forwards, forwards;\n\tanimation-duration: 500ms, 500ms;\n\n\t/* To make animation scalable. */\n\tfont-size: calc(1px * var(--ck-image-upload-icon-size));\n\n\t/* Hide completed upload icon after 3 seconds. */\n\tanimation-delay: 0ms, 3000ms;\n\n\t/*\n\t * Use CSS math to simulate container queries.\n\t * https://css-tricks.com/the-raven-technique-one-step-closer-to-container-queries/#what-about-showing-and-hiding-things\n\t */\n\toverflow: hidden;\n\twidth: calc(var(--ck-image-upload-icon-is-visible) * var(--ck-image-upload-icon-size));\n\theight: calc(var(--ck-image-upload-icon-is-visible) * var(--ck-image-upload-icon-size));\n\n\t/* This is check icon element made from border-width mixed with animations. */\n\t&::after {\n\t\t/* Because of border transformation we need to "hard code" left position. */\n\t\tleft: 25%;\n\n\t\ttop: 50%;\n\t\topacity: 0;\n\t\theight: 0;\n\t\twidth: 0;\n\n\t\ttransform: scaleX(-1) rotate(135deg);\n\t\ttransform-origin: left top;\n\t\tborder-top: var(--ck-image-upload-icon-width) solid var(--ck-color-image-upload-icon);\n\t\tborder-right: var(--ck-image-upload-icon-width) solid var(--ck-color-image-upload-icon);\n\n\t\tanimation-name: ck-upload-complete-icon-check;\n\t\tanimation-duration: 500ms;\n\t\tanimation-delay: 500ms;\n\t\tanimation-fill-mode: forwards;\n\n\t\t/* #1095. While reset is not providing proper box-sizing for pseudoelements, we need to handle it. */\n\t\tbox-sizing: border-box;\n\t}\n}\n\n@keyframes ck-upload-complete-icon-show {\n\tfrom {\n\t\topacity: 0;\n\t}\n\n\tto {\n\t\topacity: 1;\n\t}\n}\n\n@keyframes ck-upload-complete-icon-hide {\n\tfrom {\n\t\topacity: 1;\n\t}\n\n\tto {\n\t\topacity: 0;\n\t}\n}\n\n@keyframes ck-upload-complete-icon-check {\n\t0% {\n\t\topacity: 1;\n\t\twidth: 0;\n\t\theight: 0;\n\t}\n\t33% {\n\t\twidth: 0.3em;\n\t\theight: 0;\n\t}\n\t100% {\n\t\topacity: 1;\n\t\twidth: 0.3em;\n\t\theight: 0.45em;\n\t}\n}\n'],sourceRoot:""}]);const a=s},9825:(t,e,n)=>{"use strict";n.d(e,{Z:()=>a});var o=n(4015),i=n.n(o),r=n(3645),s=n.n(r)()(i());s.push([t.id,'.ck .ck-upload-placeholder-loader{align-items:center;display:flex;justify-content:center;left:0;position:absolute;top:0}.ck .ck-upload-placeholder-loader:before{content:"";position:relative}:root{--ck-color-upload-placeholder-loader:#b3b3b3;--ck-upload-placeholder-loader-size:32px;--ck-upload-placeholder-image-aspect-ratio:2.8}.ck .ck-image-upload-placeholder{margin:0;width:100%}.ck .ck-image-upload-placeholder.image-inline{width:calc(var(--ck-upload-placeholder-loader-size)*2*var(--ck-upload-placeholder-image-aspect-ratio))}.ck .ck-image-upload-placeholder img{aspect-ratio:var(--ck-upload-placeholder-image-aspect-ratio)}.ck .ck-upload-placeholder-loader{height:100%;width:100%}.ck .ck-upload-placeholder-loader:before{animation:ck-upload-placeholder-loader 1s linear infinite;border-radius:50%;border-right:2px solid transparent;border-top:3px solid var(--ck-color-upload-placeholder-loader);height:var(--ck-upload-placeholder-loader-size);width:var(--ck-upload-placeholder-loader-size)}@keyframes ck-upload-placeholder-loader{to{transform:rotate(1turn)}}',"",{version:3,sources:["webpack://./node_modules/@ckeditor/ckeditor5-image/theme/imageuploadloader.css","webpack://./node_modules/@ckeditor/ckeditor5-theme-lark/theme/ckeditor5-image/imageuploadloader.css"],names:[],mappings:"AAKA,kCAGC,kBAAmB,CADnB,YAAa,CAEb,sBAAuB,CAEvB,MAAO,CALP,iBAAkB,CAIlB,KAOD,CAJC,yCACC,UAAW,CACX,iBACD,CCXD,MACC,4CAAqD,CACrD,wCAAyC,CACzC,8CACD,CAEA,iCAGC,QAAS,CADT,UAgBD,CAbC,8CACC,sGACD,CAEA,qCAOC,4DACD,CAGD,kCAEC,WAAY,CADZ,UAWD,CARC,yCAMC,yDAA0D,CAH1D,iBAAkB,CAElB,kCAAmC,CADnC,8DAA+D,CAF/D,+CAAgD,CADhD,8CAMD,CAGD,wCACC,GACC,uBACD,CACD",sourcesContent:["/*\n * Copyright (c) 2003-2022, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n.ck .ck-upload-placeholder-loader {\n\tposition: absolute;\n\tdisplay: flex;\n\talign-items: center;\n\tjustify-content: center;\n\ttop: 0;\n\tleft: 0;\n\n\t&::before {\n\t\tcontent: '';\n\t\tposition: relative;\n\t}\n}\n","/*\n * Copyright (c) 2003-2022, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n:root {\n\t--ck-color-upload-placeholder-loader: hsl(0, 0%, 70%);\n\t--ck-upload-placeholder-loader-size: 32px;\n\t--ck-upload-placeholder-image-aspect-ratio: 2.8;\n}\n\n.ck .ck-image-upload-placeholder {\n\t/* We need to control the full width of the SVG gray background. */\n\twidth: 100%;\n\tmargin: 0;\n\n\t&.image-inline {\n\t\twidth: calc( 2 * var(--ck-upload-placeholder-loader-size) * var(--ck-upload-placeholder-image-aspect-ratio) );\n\t}\n\n\t& img {\n\t\t/*\n\t\t * This is an arbitrary aspect for a 1x1 px GIF to display to the user. Not too tall, not too short.\n\t\t * There's nothing special about this number except that it should make the image placeholder look like\n\t\t * a real image during this short period after the upload started and before the image was read from the\n\t\t * file system (and a rich preview was loaded).\n\t\t */\n\t\taspect-ratio: var(--ck-upload-placeholder-image-aspect-ratio);\n\t}\n}\n\n.ck .ck-upload-placeholder-loader {\n\twidth: 100%;\n\theight: 100%;\n\n\t&::before {\n\t\twidth: var(--ck-upload-placeholder-loader-size);\n\t\theight: var(--ck-upload-placeholder-loader-size);\n\t\tborder-radius: 50%;\n\t\tborder-top: 3px solid var(--ck-color-upload-placeholder-loader);\n\t\tborder-right: 2px solid transparent;\n\t\tanimation: ck-upload-placeholder-loader 1s linear infinite;\n\t}\n}\n\n@keyframes ck-upload-placeholder-loader {\n\tto {\n\t\ttransform: rotate( 360deg );\n\t}\n}\n"],sourceRoot:""}]);const a=s},5870:(t,e,n)=>{"use strict";n.d(e,{Z:()=>a});var o=n(4015),i=n.n(o),r=n(3645),s=n.n(r)()(i());s.push([t.id,".ck.ck-editor__editable .image,.ck.ck-editor__editable .image-inline{position:relative}.ck.ck-editor__editable .image .ck-progress-bar,.ck.ck-editor__editable .image-inline .ck-progress-bar{left:0;position:absolute;top:0}.ck.ck-editor__editable .image-inline.ck-appear,.ck.ck-editor__editable .image.ck-appear{animation:fadeIn .7s}.ck.ck-editor__editable .image .ck-progress-bar,.ck.ck-editor__editable .image-inline .ck-progress-bar{background:var(--ck-color-upload-bar-background);height:2px;transition:width .1s;width:0}@keyframes fadeIn{0%{opacity:0}to{opacity:1}}","",{version:3,sources:["webpack://./node_modules/@ckeditor/ckeditor5-image/theme/imageuploadprogress.css","webpack://./node_modules/@ckeditor/ckeditor5-theme-lark/theme/ckeditor5-image/imageuploadprogress.css"],names:[],mappings:"AAMC,qEAEC,iBACD,CAGA,uGAIC,MAAO,CAFP,iBAAkB,CAClB,KAED,CCRC,yFACC,oBACD,CAID,uGAIC,gDAAiD,CAFjD,UAAW,CAGX,oBAAuB,CAFvB,OAGD,CAGD,kBACC,GAAO,SAAY,CACnB,GAAO,SAAY,CACpB",sourcesContent:["/*\n * Copyright (c) 2003-2022, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n.ck.ck-editor__editable {\n\t& .image,\n\t& .image-inline {\n\t\tposition: relative;\n\t}\n\n\t/* Upload progress bar. */\n\t& .image .ck-progress-bar,\n\t& .image-inline .ck-progress-bar {\n\t\tposition: absolute;\n\t\ttop: 0;\n\t\tleft: 0;\n\t}\n}\n","/*\n * Copyright (c) 2003-2022, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n.ck.ck-editor__editable {\n\t& .image,\n\t& .image-inline {\n\t\t/* Showing animation. */\n\t\t&.ck-appear {\n\t\t\tanimation: fadeIn 700ms;\n\t\t}\n\t}\n\n\t/* Upload progress bar. */\n\t& .image .ck-progress-bar,\n\t& .image-inline .ck-progress-bar {\n\t\theight: 2px;\n\t\twidth: 0;\n\t\tbackground: var(--ck-color-upload-bar-background);\n\t\ttransition: width 100ms;\n\t}\n}\n\n@keyframes fadeIn {\n\tfrom { opacity: 0; }\n\tto { opacity: 1; }\n}\n"],sourceRoot:""}]);const a=s},6831:(t,e,n)=>{"use strict";n.d(e,{Z:()=>a});var o=n(4015),i=n.n(o),r=n(3645),s=n.n(r)()(i());s.push([t.id,".ck.ck-text-alternative-form{display:flex;flex-direction:row;flex-wrap:nowrap}.ck.ck-text-alternative-form .ck-labeled-field-view{display:inline-block}.ck.ck-text-alternative-form .ck-label{display:none}@media screen and (max-width:600px){.ck.ck-text-alternative-form{flex-wrap:wrap}.ck.ck-text-alternative-form .ck-labeled-field-view{flex-basis:100%}.ck.ck-text-alternative-form .ck-button{flex-basis:50%}}","",{version:3,sources:["webpack://./node_modules/@ckeditor/ckeditor5-image/theme/textalternativeform.css","webpack://./node_modules/@ckeditor/ckeditor5-ui/theme/mixins/_rwd.css"],names:[],mappings:"AAOA,6BACC,YAAa,CACb,kBAAmB,CACnB,gBAqBD,CAnBC,oDACC,oBACD,CAEA,uCACC,YACD,CCZA,oCDCD,6BAcE,cAUF,CARE,oDACC,eACD,CAEA,wCACC,cACD,CCrBD",sourcesContent:['/*\n * Copyright (c) 2003-2022, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n@import "@ckeditor/ckeditor5-ui/theme/mixins/_rwd.css";\n\n.ck.ck-text-alternative-form {\n\tdisplay: flex;\n\tflex-direction: row;\n\tflex-wrap: nowrap;\n\n\t& .ck-labeled-field-view {\n\t\tdisplay: inline-block;\n\t}\n\n\t& .ck-label {\n\t\tdisplay: none;\n\t}\n\n\t@mixin ck-media-phone {\n\t\tflex-wrap: wrap;\n\n\t\t& .ck-labeled-field-view {\n\t\t\tflex-basis: 100%;\n\t\t}\n\n\t\t& .ck-button {\n\t\t\tflex-basis: 50%;\n\t\t}\n\t}\n}\n',"/*\n * Copyright (c) 2003-2022, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n@define-mixin ck-media-phone {\n\t@media screen and (max-width: 600px) {\n\t\t@mixin-content;\n\t}\n}\n"],sourceRoot:""}]);const a=s},399:(t,e,n)=>{"use strict";n.d(e,{Z:()=>a});var o=n(4015),i=n.n(o),r=n(3645),s=n.n(r)()(i());s.push([t.id,".ck .ck-link_selected{background:var(--ck-color-link-selected-background)}.ck .ck-link_selected span.image-inline{outline:var(--ck-widget-outline-thickness) solid var(--ck-color-link-selected-background)}.ck .ck-fake-link-selection{background:var(--ck-color-link-fake-selection)}.ck .ck-fake-link-selection_collapsed{border-right:1px solid var(--ck-color-base-text);height:100%;margin-right:-1px;outline:1px solid hsla(0,0%,100%,.5)}","",{version:3,sources:["webpack://./node_modules/@ckeditor/ckeditor5-theme-lark/theme/ckeditor5-link/link.css"],names:[],mappings:"AAMA,sBACC,mDAMD,CAHC,wCACC,yFACD,CAOD,4BACC,8CACD,CAGA,sCAEC,gDAAiD,CADjD,WAAY,CAEZ,iBAAkB,CAClB,oCACD",sourcesContent:['/*\n * Copyright (c) 2003-2022, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n/* Class added to span element surrounding currently selected link. */\n.ck .ck-link_selected {\n\tbackground: var(--ck-color-link-selected-background);\n\n\t/* Give linked inline images some outline to let the user know they are also part of the link. */\n\t& span.image-inline {\n\t\toutline: var(--ck-widget-outline-thickness) solid var(--ck-color-link-selected-background);\n\t}\n}\n\n/*\n * Classes used by the "fake visual selection" displayed in the content when an input\n * in the link UI has focus (the browser does not render the native selection in this state).\n */\n.ck .ck-fake-link-selection {\n\tbackground: var(--ck-color-link-fake-selection);\n}\n\n/* A collapsed fake visual selection. */\n.ck .ck-fake-link-selection_collapsed {\n\theight: 100%;\n\tborder-right: 1px solid var(--ck-color-base-text);\n\tmargin-right: -1px;\n\toutline: solid 1px hsla(0, 0%, 100%, .5);\n}\n'],sourceRoot:""}]);const a=s},9465:(t,e,n)=>{"use strict";n.d(e,{Z:()=>a});var o=n(4015),i=n.n(o),r=n(3645),s=n.n(r)()(i());s.push([t.id,".ck.ck-link-actions{display:flex;flex-direction:row;flex-wrap:nowrap}.ck.ck-link-actions .ck-link-actions__preview{display:inline-block}.ck.ck-link-actions .ck-link-actions__preview .ck-button__label{overflow:hidden}@media screen and (max-width:600px){.ck.ck-link-actions{flex-wrap:wrap}.ck.ck-link-actions .ck-link-actions__preview{flex-basis:100%}.ck.ck-link-actions .ck-button:not(.ck-link-actions__preview){flex-basis:50%}}.ck.ck-link-actions .ck-button.ck-link-actions__preview{padding-left:0;padding-right:0}.ck.ck-link-actions .ck-button.ck-link-actions__preview .ck-button__label{color:var(--ck-color-link-default);cursor:pointer;max-width:var(--ck-input-width);min-width:3em;padding:0 var(--ck-spacing-medium);text-align:center;text-overflow:ellipsis}.ck.ck-link-actions .ck-button.ck-link-actions__preview .ck-button__label:hover{text-decoration:underline}.ck.ck-link-actions .ck-button.ck-link-actions__preview,.ck.ck-link-actions .ck-button.ck-link-actions__preview:active,.ck.ck-link-actions .ck-button.ck-link-actions__preview:focus,.ck.ck-link-actions .ck-button.ck-link-actions__preview:hover{background:none}.ck.ck-link-actions .ck-button.ck-link-actions__preview:active{box-shadow:none}.ck.ck-link-actions .ck-button.ck-link-actions__preview:focus .ck-button__label{text-decoration:underline}[dir=ltr] .ck.ck-link-actions .ck-button:not(:first-child),[dir=rtl] .ck.ck-link-actions .ck-button:not(:last-child){margin-left:var(--ck-spacing-standard)}@media screen and (max-width:600px){.ck.ck-link-actions .ck-button.ck-link-actions__preview{margin:var(--ck-spacing-standard) var(--ck-spacing-standard) 0}.ck.ck-link-actions .ck-button.ck-link-actions__preview .ck-button__label{max-width:100%;min-width:0}[dir=ltr] .ck.ck-link-actions .ck-button:not(.ck-link-actions__preview),[dir=rtl] .ck.ck-link-actions .ck-button:not(.ck-link-actions__preview){margin-left:0}}","",{version:3,sources:["webpack://./node_modules/@ckeditor/ckeditor5-link/theme/linkactions.css","webpack://./node_modules/@ckeditor/ckeditor5-ui/theme/mixins/_rwd.css","webpack://./node_modules/@ckeditor/ckeditor5-theme-lark/theme/ckeditor5-link/linkactions.css"],names:[],mappings:"AAOA,oBACC,YAAa,CACb,kBAAmB,CACnB,gBAqBD,CAnBC,8CACC,oBAKD,CAHC,gEACC,eACD,CCXD,oCDCD,oBAcE,cAUF,CARE,8CACC,eACD,CAEA,8DACC,cACD,CCrBD,CCKA,wDACC,cAAe,CACf,eAmCD,CAjCC,0EAEC,kCAAmC,CAEnC,cAAe,CAIf,+BAAgC,CAChC,aAAc,CARd,kCAAmC,CASnC,iBAAkB,CAPlB,sBAYD,CAHC,gFACC,yBACD,CAGD,mPAIC,eACD,CAEA,+DACC,eACD,CAGC,gFACC,yBACD,CAWD,qHACC,sCACD,CDvDD,oCC2DC,wDACC,8DAMD,CAJC,0EAEC,cAAe,CADf,WAED,CAGD,gJAME,aAEF,CD1ED",sourcesContent:['/*\n * Copyright (c) 2003-2022, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n@import "@ckeditor/ckeditor5-ui/theme/mixins/_rwd.css";\n\n.ck.ck-link-actions {\n\tdisplay: flex;\n\tflex-direction: row;\n\tflex-wrap: nowrap;\n\n\t& .ck-link-actions__preview {\n\t\tdisplay: inline-block;\n\n\t\t& .ck-button__label {\n\t\t\toverflow: hidden;\n\t\t}\n\t}\n\n\t@mixin ck-media-phone {\n\t\tflex-wrap: wrap;\n\n\t\t& .ck-link-actions__preview {\n\t\t\tflex-basis: 100%;\n\t\t}\n\n\t\t& .ck-button:not(.ck-link-actions__preview) {\n\t\t\tflex-basis: 50%;\n\t\t}\n\t}\n}\n',"/*\n * Copyright (c) 2003-2022, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n@define-mixin ck-media-phone {\n\t@media screen and (max-width: 600px) {\n\t\t@mixin-content;\n\t}\n}\n",'/*\n * Copyright (c) 2003-2022, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n@import "@ckeditor/ckeditor5-ui/theme/components/tooltip/mixins/_tooltip.css";\n@import "@ckeditor/ckeditor5-ui/theme/mixins/_unselectable.css";\n@import "@ckeditor/ckeditor5-ui/theme/mixins/_dir.css";\n@import "../mixins/_focus.css";\n@import "../mixins/_shadow.css";\n@import "@ckeditor/ckeditor5-ui/theme/mixins/_rwd.css";\n\n.ck.ck-link-actions {\n\t& .ck-button.ck-link-actions__preview {\n\t\tpadding-left: 0;\n\t\tpadding-right: 0;\n\n\t\t& .ck-button__label {\n\t\t\tpadding: 0 var(--ck-spacing-medium);\n\t\t\tcolor: var(--ck-color-link-default);\n\t\t\ttext-overflow: ellipsis;\n\t\t\tcursor: pointer;\n\n\t\t\t/* Match the box model of the link editor form\'s input so the balloon\n\t\t\tdoes not change width when moving between actions and the form. */\n\t\t\tmax-width: var(--ck-input-width);\n\t\t\tmin-width: 3em;\n\t\t\ttext-align: center;\n\n\t\t\t&:hover {\n\t\t\t\ttext-decoration: underline;\n\t\t\t}\n\t\t}\n\n\t\t&,\n\t\t&:hover,\n\t\t&:focus,\n\t\t&:active {\n\t\t\tbackground: none;\n\t\t}\n\n\t\t&:active {\n\t\t\tbox-shadow: none;\n\t\t}\n\n\t\t&:focus {\n\t\t\t& .ck-button__label {\n\t\t\t\ttext-decoration: underline;\n\t\t\t}\n\t\t}\n\t}\n\n\t@mixin ck-dir ltr {\n\t\t& .ck-button:not(:first-child) {\n\t\t\tmargin-left: var(--ck-spacing-standard);\n\t\t}\n\t}\n\n\t@mixin ck-dir rtl {\n\t\t& .ck-button:not(:last-child) {\n\t\t\tmargin-left: var(--ck-spacing-standard);\n\t\t}\n\t}\n\n\t@mixin ck-media-phone {\n\t\t& .ck-button.ck-link-actions__preview {\n\t\t\tmargin: var(--ck-spacing-standard) var(--ck-spacing-standard) 0;\n\n\t\t\t& .ck-button__label {\n\t\t\t\tmin-width: 0;\n\t\t\t\tmax-width: 100%;\n\t\t\t}\n\t\t}\n\n\t\t& .ck-button:not(.ck-link-actions__preview) {\n\t\t\t@mixin ck-dir ltr {\n\t\t\t\tmargin-left: 0;\n\t\t\t}\n\n\t\t\t@mixin ck-dir rtl {\n\t\t\t\tmargin-left: 0;\n\t\t\t}\n\t\t}\n\t}\n}\n'],sourceRoot:""}]);const a=s},4827:(t,e,n)=>{"use strict";n.d(e,{Z:()=>a});var o=n(4015),i=n.n(o),r=n(3645),s=n.n(r)()(i());s.push([t.id,".ck.ck-link-form{display:flex}.ck.ck-link-form .ck-label{display:none}@media screen and (max-width:600px){.ck.ck-link-form{flex-wrap:wrap}.ck.ck-link-form .ck-labeled-field-view{flex-basis:100%}.ck.ck-link-form .ck-button{flex-basis:50%}}.ck.ck-link-form_layout-vertical{display:block}.ck.ck-link-form_layout-vertical .ck-button.ck-button-cancel,.ck.ck-link-form_layout-vertical .ck-button.ck-button-save{margin-top:var(--ck-spacing-medium)}.ck.ck-link-form_layout-vertical{min-width:var(--ck-input-width);padding:0}.ck.ck-link-form_layout-vertical .ck-labeled-field-view{margin:var(--ck-spacing-large) var(--ck-spacing-large) var(--ck-spacing-small)}.ck.ck-link-form_layout-vertical .ck-labeled-field-view .ck-input-text{min-width:0;width:100%}.ck.ck-link-form_layout-vertical .ck-button{border:0;border-radius:0;border-top:1px solid var(--ck-color-base-border);margin:0;padding:var(--ck-spacing-standard);width:50%}[dir=ltr] .ck.ck-link-form_layout-vertical .ck-button,[dir=rtl] .ck.ck-link-form_layout-vertical .ck-button{margin-left:0}[dir=rtl] .ck.ck-link-form_layout-vertical .ck-button:last-of-type{border-right:1px solid var(--ck-color-base-border)}.ck.ck-link-form_layout-vertical .ck.ck-list{margin:var(--ck-spacing-standard) var(--ck-spacing-large)}.ck.ck-link-form_layout-vertical .ck.ck-list .ck-button.ck-switchbutton{border:0;padding:0;width:100%}.ck.ck-link-form_layout-vertical .ck.ck-list .ck-button.ck-switchbutton:hover{background:none}","",{version:3,sources:["webpack://./node_modules/@ckeditor/ckeditor5-link/theme/linkform.css","webpack://./node_modules/@ckeditor/ckeditor5-ui/theme/mixins/_rwd.css","webpack://./node_modules/@ckeditor/ckeditor5-theme-lark/theme/ckeditor5-link/linkform.css"],names:[],mappings:"AAOA,iBACC,YAiBD,CAfC,2BACC,YACD,CCNA,oCDCD,iBAQE,cAUF,CARE,wCACC,eACD,CAEA,4BACC,cACD,CCfD,CDuBD,iCACC,aAYD,CALE,wHAEC,mCACD,CE/BF,iCAEC,+BAAgC,CADhC,SA+CD,CA5CC,wDACC,8EAMD,CAJC,uEACC,WAAY,CACZ,UACD,CAGD,4CAIC,QAAS,CADT,eAAgB,CAEhB,gDAAiD,CAHjD,QAAS,CADT,kCAAmC,CAKnC,SAaD,CAnBA,4GAaE,aAMF,CAJE,mEACC,kDACD,CAKF,6CACC,yDAWD,CATC,wEACC,QAAS,CACT,SAAU,CACV,UAKD,CAHC,8EACC,eACD",sourcesContent:['/*\n * Copyright (c) 2003-2022, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n@import "@ckeditor/ckeditor5-ui/theme/mixins/_rwd.css";\n\n.ck.ck-link-form {\n\tdisplay: flex;\n\n\t& .ck-label {\n\t\tdisplay: none;\n\t}\n\n\t@mixin ck-media-phone {\n\t\tflex-wrap: wrap;\n\n\t\t& .ck-labeled-field-view {\n\t\t\tflex-basis: 100%;\n\t\t}\n\n\t\t& .ck-button {\n\t\t\tflex-basis: 50%;\n\t\t}\n\t}\n}\n\n/*\n * Style link form differently when manual decorators are available.\n * See: https://github.com/ckeditor/ckeditor5-link/issues/186.\n */\n.ck.ck-link-form_layout-vertical {\n\tdisplay: block;\n\n\t/*\n\t * Whether the form is in the responsive mode or not, if there are decorator buttons\n\t * keep the top margin of action buttons medium.\n\t */\n\t& .ck-button {\n\t\t&.ck-button-save,\n\t\t&.ck-button-cancel {\n\t\t\tmargin-top: var(--ck-spacing-medium);\n\t\t}\n\t}\n}\n',"/*\n * Copyright (c) 2003-2022, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n@define-mixin ck-media-phone {\n\t@media screen and (max-width: 600px) {\n\t\t@mixin-content;\n\t}\n}\n",'/*\n * Copyright (c) 2003-2022, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n@import "@ckeditor/ckeditor5-ui/theme/mixins/_dir.css";\n\n/*\n * Style link form differently when manual decorators are available.\n * See: https://github.com/ckeditor/ckeditor5-link/issues/186.\n */\n.ck.ck-link-form_layout-vertical {\n\tpadding: 0;\n\tmin-width: var(--ck-input-width);\n\n\t& .ck-labeled-field-view {\n\t\tmargin: var(--ck-spacing-large) var(--ck-spacing-large) var(--ck-spacing-small);\n\n\t\t& .ck-input-text {\n\t\t\tmin-width: 0;\n\t\t\twidth: 100%;\n\t\t}\n\t}\n\n\t& .ck-button {\n\t\tpadding: var(--ck-spacing-standard);\n\t\tmargin: 0;\n\t\tborder-radius: 0;\n\t\tborder: 0;\n\t\tborder-top: 1px solid var(--ck-color-base-border);\n\t\twidth: 50%;\n\n\t\t@mixin ck-dir ltr {\n\t\t\tmargin-left: 0;\n\t\t}\n\n\t\t@mixin ck-dir rtl {\n\t\t\tmargin-left: 0;\n\n\t\t\t&:last-of-type {\n\t\t\t\tborder-right: 1px solid var(--ck-color-base-border);\n\t\t\t}\n\t\t}\n\t}\n\n\t/* Using additional `.ck` class for stronger CSS specificity than `.ck.ck-link-form > :not(:first-child)`. */\n\t& .ck.ck-list {\n\t\tmargin: var(--ck-spacing-standard) var(--ck-spacing-large);\n\n\t\t& .ck-button.ck-switchbutton {\n\t\t\tborder: 0;\n\t\t\tpadding: 0;\n\t\t\twidth: 100%;\n\n\t\t\t&:hover {\n\t\t\t\tbackground: none;\n\t\t\t}\n\t\t}\n\t}\n}\n'],sourceRoot:""}]);const a=s},3858:(t,e,n)=>{"use strict";n.d(e,{Z:()=>a});var o=n(4015),i=n.n(o),r=n(3645),s=n.n(r)()(i());s.push([t.id,'.ck.ck-editor__editable a span.image-inline:after,.ck.ck-editor__editable figure.image>a:after{display:block;position:absolute}:root{--ck-link-image-indicator-icon-size:20;--ck-link-image-indicator-icon-is-visible:clamp(0px,100% - 50px,1px)}.ck.ck-editor__editable a span.image-inline:after,.ck.ck-editor__editable figure.image>a:after{background-color:rgba(0,0,0,.4);background-image:url("data:image/svg+xml;base64,PHN2ZyB2aWV3Qm94PSIwIDAgMjAgMjAiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PHBhdGggZmlsbD0iI2ZmZiIgZD0ibTExLjA3NyAxNSAuOTkxLTEuNDE2YS43NS43NSAwIDEgMSAxLjIyOS44NmwtMS4xNDggMS42NGEuNzQ4Ljc0OCAwIDAgMS0uMjE3LjIwNiA1LjI1MSA1LjI1MSAwIDAgMS04LjUwMy01Ljk1NS43NDEuNzQxIDAgMCAxIC4xMi0uMjc0bDEuMTQ3LTEuNjM5YS43NS43NSAwIDEgMSAxLjIyOC44Nkw0LjkzMyAxMC43bC4wMDYuMDAzYTMuNzUgMy43NSAwIDAgMCA2LjEzMiA0LjI5NGwuMDA2LjAwNHptNS40OTQtNS4zMzVhLjc0OC43NDggMCAwIDEtLjEyLjI3NGwtMS4xNDcgMS42MzlhLjc1Ljc1IDAgMSAxLTEuMjI4LS44NmwuODYtMS4yM2EzLjc1IDMuNzUgMCAwIDAtNi4xNDQtNC4zMDFsLS44NiAxLjIyOWEuNzUuNzUgMCAwIDEtMS4yMjktLjg2bDEuMTQ4LTEuNjRhLjc0OC43NDggMCAwIDEgLjIxNy0uMjA2IDUuMjUxIDUuMjUxIDAgMCAxIDguNTAzIDUuOTU1em0tNC41NjMtMi41MzJhLjc1Ljc1IDAgMCAxIC4xODQgMS4wNDVsLTMuMTU1IDQuNTA1YS43NS43NSAwIDEgMS0xLjIyOS0uODZsMy4xNTUtNC41MDZhLjc1Ljc1IDAgMCAxIDEuMDQ1LS4xODR6Ii8+PC9zdmc+");background-position:50%;background-repeat:no-repeat;background-size:14px;border-radius:100%;content:"";height:calc(var(--ck-link-image-indicator-icon-is-visible)*var(--ck-link-image-indicator-icon-size));overflow:hidden;right:min(var(--ck-spacing-medium),6%);top:min(var(--ck-spacing-medium),6%);width:calc(var(--ck-link-image-indicator-icon-is-visible)*var(--ck-link-image-indicator-icon-size))}',"",{version:3,sources:["webpack://./node_modules/@ckeditor/ckeditor5-link/theme/linkimage.css","webpack://./node_modules/@ckeditor/ckeditor5-theme-lark/theme/ckeditor5-link/linkimage.css"],names:[],mappings:"AASE,+FACC,aAAc,CACd,iBACD,CCPF,MAEC,sCAAuC,CACvC,oEACD,CAME,+FAUC,+BAAqC,CACrC,83BAA+3B,CAG/3B,uBAA2B,CAD3B,2BAA4B,CAD5B,oBAAqB,CAGrB,kBAAmB,CAdnB,UAAW,CAsBX,oGAAuG,CAFvG,eAAgB,CAbhB,sCAAwC,CADxC,oCAAsC,CAetC,mGAED",sourcesContent:["/*\n * Copyright (c) 2003-2022, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n.ck.ck-editor__editable {\n\t/* Linked image indicator */\n\t& figure.image > a,\n\t& a span.image-inline {\n\t\t&::after {\n\t\t\tdisplay: block;\n\t\t\tposition: absolute;\n\t\t}\n\t}\n}\n\n",'/*\n * Copyright (c) 2003-2022, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n:root {\n\t/* Match the icon size with the upload indicator brought by the image upload feature. */\n\t--ck-link-image-indicator-icon-size: 20;\n\t--ck-link-image-indicator-icon-is-visible: clamp(0px, 100% - 50px, 1px);\n}\n\n.ck.ck-editor__editable {\n\t/* Linked image indicator */\n\t& figure.image > a,\n\t& a span.image-inline {\n\t\t&::after {\n\t\t\tcontent: "";\n\n\t\t\t/*\n\t\t\t * Smaller images should have the icon closer to the border.\n\t\t\t * Match the icon position with the upload indicator brought by the image upload feature.\n\t\t\t */\n\t\t\ttop: min(var(--ck-spacing-medium), 6%);\n\t\t\tright: min(var(--ck-spacing-medium), 6%);\n\n\t\t\tbackground-color: hsla(0, 0%, 0%, .4);\n\t\t\tbackground-image: url("data:image/svg+xml;base64,PHN2ZyB2aWV3Qm94PSIwIDAgMjAgMjAiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PHBhdGggZmlsbD0iI2ZmZiIgZD0ibTExLjA3NyAxNSAuOTkxLTEuNDE2YS43NS43NSAwIDEgMSAxLjIyOS44NmwtMS4xNDggMS42NGEuNzQ4Ljc0OCAwIDAgMS0uMjE3LjIwNiA1LjI1MSA1LjI1MSAwIDAgMS04LjUwMy01Ljk1NS43NDEuNzQxIDAgMCAxIC4xMi0uMjc0bDEuMTQ3LTEuNjM5YS43NS43NSAwIDEgMSAxLjIyOC44Nkw0LjkzMyAxMC43bC4wMDYuMDAzYTMuNzUgMy43NSAwIDAgMCA2LjEzMiA0LjI5NGwuMDA2LjAwNHptNS40OTQtNS4zMzVhLjc0OC43NDggMCAwIDEtLjEyLjI3NGwtMS4xNDcgMS42MzlhLjc1Ljc1IDAgMSAxLTEuMjI4LS44NmwuODYtMS4yM2EzLjc1IDMuNzUgMCAwIDAtNi4xNDQtNC4zMDFsLS44NiAxLjIyOWEuNzUuNzUgMCAwIDEtMS4yMjktLjg2bDEuMTQ4LTEuNjRhLjc0OC43NDggMCAwIDEgLjIxNy0uMjA2IDUuMjUxIDUuMjUxIDAgMCAxIDguNTAzIDUuOTU1em0tNC41NjMtMi41MzJhLjc1Ljc1IDAgMCAxIC4xODQgMS4wNDVsLTMuMTU1IDQuNTA1YS43NS43NSAwIDEgMS0xLjIyOS0uODZsMy4xNTUtNC41MDZhLjc1Ljc1IDAgMCAxIDEuMDQ1LS4xODR6Ii8+PC9zdmc+");\n\t\t\tbackground-size: 14px;\n\t\t\tbackground-repeat: no-repeat;\n\t\t\tbackground-position: center;\n\t\t\tborder-radius: 100%;\n\n\t\t\t/*\n\t\t\t* Use CSS math to simulate container queries.\n\t\t\t* https://css-tricks.com/the-raven-technique-one-step-closer-to-container-queries/#what-about-showing-and-hiding-things\n\t\t\t*/\n\t\t\toverflow: hidden;\n\t\t\twidth: calc(var(--ck-link-image-indicator-icon-is-visible) * var(--ck-link-image-indicator-icon-size));\n\t\t\theight: calc(var(--ck-link-image-indicator-icon-is-visible) * var(--ck-link-image-indicator-icon-size));\n\t\t}\n\t}\n}\n\n'],sourceRoot:""}]);const a=s},3195:(t,e,n)=>{"use strict";n.d(e,{Z:()=>a});var o=n(4015),i=n.n(o),r=n(3645),s=n.n(r)()(i());s.push([t.id,".ck.ck-collapsible.ck-collapsible_collapsed>.ck-collapsible__children{display:none}:root{--ck-collapsible-arrow-size:calc(var(--ck-icon-size)*0.5)}.ck.ck-collapsible>.ck.ck-button{border-radius:0;font-weight:700;padding:var(--ck-spacing-medium) var(--ck-spacing-large);width:100%}.ck.ck-collapsible>.ck.ck-button:focus{background:transparent}.ck.ck-collapsible>.ck.ck-button:active,.ck.ck-collapsible>.ck.ck-button:hover:not(:focus),.ck.ck-collapsible>.ck.ck-button:not(:focus){background:transparent;border-color:transparent;box-shadow:none}.ck.ck-collapsible>.ck.ck-button>.ck-icon{margin-right:var(--ck-spacing-medium);width:var(--ck-collapsible-arrow-size)}.ck.ck-collapsible>.ck-collapsible__children{padding:0 var(--ck-spacing-large) var(--ck-spacing-large)}.ck.ck-collapsible.ck-collapsible_collapsed>.ck.ck-button .ck-icon{transform:rotate(-90deg)}","",{version:3,sources:["webpack://./node_modules/@ckeditor/ckeditor5-list/theme/collapsible.css","webpack://./node_modules/@ckeditor/ckeditor5-theme-lark/theme/ckeditor5-list/collapsible.css"],names:[],mappings:"AAMC,sEACC,YACD,CCHD,MACC,yDACD,CAGC,iCAIC,eAAgB,CAFhB,eAAiB,CACjB,wDAAyD,CAFzD,UAmBD,CAdC,uCACC,sBACD,CAEA,wIACC,sBAAuB,CACvB,wBAAyB,CACzB,eACD,CAEA,0CACC,qCAAsC,CACtC,sCACD,CAGD,6CACC,yDACD,CAGC,mEACC,wBACD",sourcesContent:["/*\n * Copyright (c) 2003-2022, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n.ck.ck-collapsible.ck-collapsible_collapsed {\n\t& > .ck-collapsible__children {\n\t\tdisplay: none;\n\t}\n}\n","/*\n * Copyright (c) 2003-2022, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n:root {\n\t--ck-collapsible-arrow-size: calc(0.5 * var(--ck-icon-size));\n}\n\n.ck.ck-collapsible {\n\t& > .ck.ck-button {\n\t\twidth: 100%;\n\t\tfont-weight: bold;\n\t\tpadding: var(--ck-spacing-medium) var(--ck-spacing-large);\n\t\tborder-radius: 0;\n\n\t\t&:focus {\n\t\t\tbackground: transparent;\n\t\t}\n\n\t\t&:active, &:not(:focus), &:hover:not(:focus) {\n\t\t\tbackground: transparent;\n\t\t\tborder-color: transparent;\n\t\t\tbox-shadow: none;\n\t\t}\n\n\t\t& > .ck-icon {\n\t\t\tmargin-right: var(--ck-spacing-medium);\n\t\t\twidth: var(--ck-collapsible-arrow-size);\n\t\t}\n\t}\n\n\t& > .ck-collapsible__children {\n\t\tpadding: 0 var(--ck-spacing-large) var(--ck-spacing-large);\n\t}\n\n\t&.ck-collapsible_collapsed {\n\t\t& > .ck.ck-button .ck-icon {\n\t\t\ttransform: rotate(-90deg);\n\t\t}\n\t}\n}\n"],sourceRoot:""}]);const a=s},7133:(t,e,n)=>{"use strict";n.d(e,{Z:()=>a});var o=n(4015),i=n.n(o),r=n(3645),s=n.n(r)()(i());s.push([t.id,".ck.ck-list-properties.ck-list-properties_without-styles{padding:var(--ck-spacing-large)}.ck.ck-list-properties.ck-list-properties_without-styles>*{min-width:14em}.ck.ck-list-properties.ck-list-properties_without-styles>*+*{margin-top:var(--ck-spacing-standard)}.ck.ck-list-properties.ck-list-properties_with-numbered-properties>.ck-list-styles-list{grid-template-columns:repeat(4,auto)}.ck.ck-list-properties.ck-list-properties_with-numbered-properties>.ck-collapsible{border-top:1px solid var(--ck-color-base-border)}.ck.ck-list-properties.ck-list-properties_with-numbered-properties>.ck-collapsible>.ck-collapsible__children>*{width:100%}.ck.ck-list-properties.ck-list-properties_with-numbered-properties>.ck-collapsible>.ck-collapsible__children>*+*{margin-top:var(--ck-spacing-standard)}.ck.ck-list-properties .ck.ck-numbered-list-properties__start-index .ck-input{min-width:auto;width:100%}.ck.ck-list-properties .ck.ck-numbered-list-properties__reversed-order{background:transparent;margin-bottom:calc(var(--ck-spacing-tiny)*-1);padding-left:0;padding-right:0}.ck.ck-list-properties .ck.ck-numbered-list-properties__reversed-order:active,.ck.ck-list-properties .ck.ck-numbered-list-properties__reversed-order:hover{background:none;border-color:transparent;box-shadow:none}","",{version:3,sources:["webpack://./node_modules/@ckeditor/ckeditor5-theme-lark/theme/ckeditor5-list/listproperties.css"],names:[],mappings:"AAOC,yDACC,+BASD,CAPC,2DACC,cAKD,CAHC,6DACC,qCACD,CASD,wFACC,oCACD,CAGA,mFACC,gDAWD,CARE,+GACC,UAKD,CAHC,iHACC,qCACD,CAMJ,8EACC,cAAe,CACf,UACD,CAEA,uEACC,sBAAuB,CAGvB,6CAAgD,CAFhD,cAAe,CACf,eAQD,CALC,2JAGC,eAAgB,CADhB,wBAAyB,CADzB,eAGD",sourcesContent:["/*\n * Copyright (c) 2003-2022, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n.ck.ck-list-properties {\n\t/* When there are no list styles and there is no collapsible. */\n\t&.ck-list-properties_without-styles {\n\t\tpadding: var(--ck-spacing-large);\n\n\t\t& > * {\n\t\t\tmin-width: 14em;\n\n\t\t\t& + * {\n\t\t\t\tmargin-top: var(--ck-spacing-standard);\n\t\t\t}\n\t\t}\n\t}\n\n\t/*\n\t * When the numbered list property fields (start at, reversed) should be displayed,\n\t * more horizontal space is needed. Reconfigure the style grid to create that space.\n\t */\n\t&.ck-list-properties_with-numbered-properties {\n\t\t& > .ck-list-styles-list {\n\t\t\tgrid-template-columns: repeat( 4, auto );\n\t\t}\n\n\t\t/* When list styles are rendered and property fields are in a collapsible. */\n\t\t& > .ck-collapsible {\n\t\t\tborder-top: 1px solid var(--ck-color-base-border);\n\n\t\t\t& > .ck-collapsible__children {\n\t\t\t\t& > * {\n\t\t\t\t\twidth: 100%;\n\n\t\t\t\t\t& + * {\n\t\t\t\t\t\tmargin-top: var(--ck-spacing-standard);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}\n\n\t& .ck.ck-numbered-list-properties__start-index .ck-input {\n\t\tmin-width: auto;\n\t\twidth: 100%;\n\t}\n\n\t& .ck.ck-numbered-list-properties__reversed-order {\n\t\tbackground: transparent;\n\t\tpadding-left: 0;\n\t\tpadding-right: 0;\n\t\tmargin-bottom: calc(-1 * var(--ck-spacing-tiny));\n\n\t\t&:active, &:hover {\n\t\t\tbox-shadow: none;\n\t\t\tborder-color: transparent;\n\t\t\tbackground: none;\n\t\t}\n\t}\n}\n"],sourceRoot:""}]);const a=s},4553:(t,e,n)=>{"use strict";n.d(e,{Z:()=>a});var o=n(4015),i=n.n(o),r=n(3645),s=n.n(r)()(i());s.push([t.id,".ck.ck-list-styles-list{display:grid}:root{--ck-list-style-button-size:44px}.ck.ck-list-styles-list{column-gap:var(--ck-spacing-medium);grid-template-columns:repeat(3,auto);padding:var(--ck-spacing-large);row-gap:var(--ck-spacing-medium)}.ck.ck-list-styles-list .ck-button{box-sizing:content-box;margin:0;padding:0}.ck.ck-list-styles-list .ck-button,.ck.ck-list-styles-list .ck-button .ck-icon{height:var(--ck-list-style-button-size);width:var(--ck-list-style-button-size)}","",{version:3,sources:["webpack://./node_modules/@ckeditor/ckeditor5-list/theme/liststyles.css","webpack://./node_modules/@ckeditor/ckeditor5-theme-lark/theme/ckeditor5-list/liststyles.css"],names:[],mappings:"AAKA,wBACC,YACD,CCFA,MACC,gCACD,CAEA,wBAGC,mCAAoC,CAFpC,oCAAwC,CAGxC,+BAAgC,CAFhC,gCA4BD,CAxBC,mCAiBC,sBAAuB,CAPvB,QAAS,CANT,SAmBD,CAJC,+EAhBA,uCAAwC,CADxC,sCAoBA",sourcesContent:["/*\n * Copyright (c) 2003-2022, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n.ck.ck-list-styles-list {\n\tdisplay: grid;\n}\n",'/*\n * Copyright (c) 2003-2022, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n:root {\n\t--ck-list-style-button-size: 44px;\n}\n\n.ck.ck-list-styles-list {\n\tgrid-template-columns: repeat( 3, auto );\n\trow-gap: var(--ck-spacing-medium);\n\tcolumn-gap: var(--ck-spacing-medium);\n\tpadding: var(--ck-spacing-large);\n\n\t& .ck-button {\n\t\t/* Make the button look like a thumbnail (the icon "takes it all"). */\n\t\twidth: var(--ck-list-style-button-size);\n\t\theight: var(--ck-list-style-button-size);\n\t\tpadding: 0;\n\n\t\t/*\n\t\t * Buttons are aligned by the grid so disable default button margins to not collide with the\n\t\t * gaps in the grid.\n\t\t */\n\t\tmargin: 0;\n\n\t\t/*\n\t\t * Make sure the button border (which is displayed on focus, BTW) does not steal pixels\n\t\t * from the button dimensions and, as a result, decrease the size of the icon\n\t\t * (which becomes blurry as it scales down).\n\t\t */\n\t\tbox-sizing: content-box;\n\n\t\t& .ck-icon {\n\t\t\twidth: var(--ck-list-style-button-size);\n\t\t\theight: var(--ck-list-style-button-size);\n\t\t}\n\t}\n}\n'],sourceRoot:""}]);const a=s},5777:(t,e,n)=>{"use strict";n.d(e,{Z:()=>a});var o=n(4015),i=n.n(o),r=n(3645),s=n.n(r)()(i());s.push([t.id,".ck-content .media{clear:both;display:block;margin:.9em 0;min-width:15em}","",{version:3,sources:["webpack://./node_modules/@ckeditor/ckeditor5-media-embed/theme/mediaembed.css"],names:[],mappings:"AAKA,mBAGC,UAAW,CASX,aAAc,CAJd,aAAe,CAQf,cACD",sourcesContent:['/*\n * Copyright (c) 2003-2022, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n.ck-content .media {\n\t/* Don\'t allow floated content overlap the media.\n\thttps://github.com/ckeditor/ckeditor5-media-embed/issues/53 */\n\tclear: both;\n\n\t/* Make sure there is some space between the content and the media. */\n\t/* The first value should be equal to --ck-spacing-large variable if used in the editor context\n\tto avoid the content jumping (See https://github.com/ckeditor/ckeditor5/issues/9825). */\n\tmargin: 0.9em 0;\n\n\t/* Make sure media is not overriden with Bootstrap default `flex` value.\n\tSee: https://github.com/ckeditor/ckeditor5/issues/1373. */\n\tdisplay: block;\n\n\t/* Give the media some minimal width in the content to prevent them\n\tfrom being "squashed" in tight spaces, e.g. in table cells (#44) */\n\tmin-width: 15em;\n}\n'],sourceRoot:""}]);const a=s},952:(t,e,n)=>{"use strict";n.d(e,{Z:()=>a});var o=n(4015),i=n.n(o),r=n(3645),s=n.n(r)()(i());s.push([t.id,'.ck-media__wrapper .ck-media__placeholder{align-items:center;display:flex;flex-direction:column}.ck-media__wrapper .ck-media__placeholder .ck-media__placeholder__url .ck-tooltip{display:block}@media (hover:none){.ck-media__wrapper .ck-media__placeholder .ck-media__placeholder__url .ck-tooltip{display:none}}.ck-media__wrapper .ck-media__placeholder .ck-media__placeholder__url{max-width:100%;position:relative}.ck-media__wrapper .ck-media__placeholder .ck-media__placeholder__url:hover .ck-tooltip{opacity:1;visibility:visible}.ck-media__wrapper .ck-media__placeholder .ck-media__placeholder__url .ck-media__placeholder__url__text{display:block;overflow:hidden}.ck-media__wrapper[data-oembed-url*="facebook.com"] .ck-media__placeholder__icon *,.ck-media__wrapper[data-oembed-url*="goo.gl/maps"] .ck-media__placeholder__icon *,.ck-media__wrapper[data-oembed-url*="google.com/maps"] .ck-media__placeholder__icon *,.ck-media__wrapper[data-oembed-url*="instagram.com"] .ck-media__placeholder__icon *,.ck-media__wrapper[data-oembed-url*="maps.app.goo.gl"] .ck-media__placeholder__icon *,.ck-media__wrapper[data-oembed-url*="maps.google.com"] .ck-media__placeholder__icon *,.ck-media__wrapper[data-oembed-url*="twitter.com"] .ck-media__placeholder__icon *{display:none}.ck-editor__editable:not(.ck-read-only) .ck-media__wrapper>:not(.ck-media__placeholder),.ck-editor__editable:not(.ck-read-only) .ck-widget:not(.ck-widget_selected) .ck-media__placeholder{pointer-events:none}:root{--ck-media-embed-placeholder-icon-size:3em;--ck-color-media-embed-placeholder-url-text:#757575;--ck-color-media-embed-placeholder-url-text-hover:var(--ck-color-base-text)}.ck-media__wrapper{margin:0 auto}.ck-media__wrapper .ck-media__placeholder{background:var(--ck-color-base-foreground);padding:calc(var(--ck-spacing-standard)*3)}.ck-media__wrapper .ck-media__placeholder .ck-media__placeholder__icon{background-position:50%;background-size:cover;height:var(--ck-media-embed-placeholder-icon-size);margin-bottom:var(--ck-spacing-large);min-width:var(--ck-media-embed-placeholder-icon-size)}.ck-media__wrapper .ck-media__placeholder .ck-media__placeholder__icon .ck-icon{height:100%;width:100%}.ck-media__wrapper .ck-media__placeholder .ck-media__placeholder__url__text{color:var(--ck-color-media-embed-placeholder-url-text);font-style:italic;text-align:center;text-overflow:ellipsis;white-space:nowrap}.ck-media__wrapper .ck-media__placeholder .ck-media__placeholder__url__text:hover{color:var(--ck-color-media-embed-placeholder-url-text-hover);cursor:pointer;text-decoration:underline}.ck-media__wrapper[data-oembed-url*="open.spotify.com"]{max-height:380px;max-width:300px}.ck-media__wrapper[data-oembed-url*="goo.gl/maps"] .ck-media__placeholder__icon,.ck-media__wrapper[data-oembed-url*="google.com/maps"] .ck-media__placeholder__icon,.ck-media__wrapper[data-oembed-url*="maps.app.goo.gl"] .ck-media__placeholder__icon,.ck-media__wrapper[data-oembed-url*="maps.google.com"] .ck-media__placeholder__icon{background-image:url(data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIyNTAuMzc4IiBoZWlnaHQ9IjI1NC4xNjciIHZpZXdCb3g9IjAgMCA2Ni4yNDYgNjcuMjQ4Ij48ZyB0cmFuc2Zvcm09InRyYW5zbGF0ZSgtMTcyLjUzMSAtMjE4LjQ1NSkgc2NhbGUoLjk4MDEyKSI+PHJlY3Qgcnk9IjUuMjM4IiByeD0iNS4yMzgiIHk9IjIzMS4zOTkiIHg9IjE3Ni4wMzEiIGhlaWdodD0iNjAuMDk5IiB3aWR0aD0iNjAuMDk5IiBmaWxsPSIjMzRhNjY4IiBwYWludC1vcmRlcj0ibWFya2VycyBzdHJva2UgZmlsbCIvPjxwYXRoIGQ9Im0yMDYuNDc3IDI2MC45LTI4Ljk4NyAyOC45ODdhNS4yMTggNS4yMTggMCAwIDAgMy43OCAxLjYxaDQ5LjYyMWMxLjY5NCAwIDMuMTktLjc5OCA0LjE0Ni0yLjAzN3oiIGZpbGw9IiM1Yzg4YzUiLz48cGF0aCBkPSJNMjI2Ljc0MiAyMjIuOTg4Yy05LjI2NiAwLTE2Ljc3NyA3LjE3LTE2Ljc3NyAxNi4wMTQuMDA3IDIuNzYyLjY2MyA1LjQ3NCAyLjA5MyA3Ljg3NS40My43MDMuODMgMS40MDggMS4xOSAyLjEwNy4zMzMuNTAyLjY1IDEuMDA1Ljk1IDEuNTA4LjM0My40NzcuNjczLjk1Ny45ODggMS40NCAxLjMxIDEuNzY5IDIuNSAzLjUwMiAzLjYzNyA1LjE2OC43OTMgMS4yNzUgMS42ODMgMi42NCAyLjQ2NiAzLjk5IDIuMzYzIDQuMDk0IDQuMDA3IDguMDkyIDQuNiAxMy45MTR2LjAxMmMuMTgyLjQxMi41MTYuNjY2Ljg3OS42NjcuNDAzLS4wMDEuNzY4LS4zMTQuOTMtLjc5OS42MDMtNS43NTYgMi4yMzgtOS43MjkgNC41ODUtMTMuNzk0Ljc4Mi0xLjM1IDEuNjczLTIuNzE1IDIuNDY1LTMuOTkgMS4xMzctMS42NjYgMi4zMjgtMy40IDMuNjM4LTUuMTY5LjMxNS0uNDgyLjY0NS0uOTYyLjk4OC0xLjQzOS4zLS41MDMuNjE3LTEuMDA2Ljk1LTEuNTA4LjM1OS0uNy43Ni0xLjQwNCAxLjE5LTIuMTA3IDEuNDI2LTIuNDAyIDItNS4xMTQgMi4wMDQtNy44NzUgMC04Ljg0NC03LjUxMS0xNi4wMTQtMTYuNzc2LTE2LjAxNHoiIGZpbGw9IiNkZDRiM2UiIHBhaW50LW9yZGVyPSJtYXJrZXJzIHN0cm9rZSBmaWxsIi8+PGVsbGlwc2Ugcnk9IjUuNTY0IiByeD0iNS44MjgiIGN5PSIyMzkuMDAyIiBjeD0iMjI2Ljc0MiIgZmlsbD0iIzgwMmQyNyIgcGFpbnQtb3JkZXI9Im1hcmtlcnMgc3Ryb2tlIGZpbGwiLz48cGF0aCBkPSJNMTkwLjMwMSAyMzcuMjgzYy00LjY3IDAtOC40NTcgMy44NTMtOC40NTcgOC42MDZzMy43ODYgOC42MDcgOC40NTcgOC42MDdjMy4wNDMgMCA0LjgwNi0uOTU4IDYuMzM3LTIuNTE2IDEuNTMtMS41NTcgMi4wODctMy45MTMgMi4wODctNi4yOSAwLS4zNjItLjAyMy0uNzIyLS4wNjQtMS4wNzloLTguMjU3djMuMDQzaDQuODVjLS4xOTcuNzU5LS41MzEgMS40NS0xLjA1OCAxLjk4Ni0uOTQyLjk1OC0yLjAyOCAxLjU0OC0zLjkwMSAxLjU0OC0yLjg3NiAwLTUuMjA4LTIuMzcyLTUuMjA4LTUuMjk5IDAtMi45MjYgMi4zMzItNS4yOTkgNS4yMDgtNS4yOTkgMS4zOTkgMCAyLjYxOC40MDcgMy41ODQgMS4yOTNsMi4zODEtMi4zOGMwLS4wMDItLjAwMy0uMDA0LS4wMDQtLjAwNS0xLjU4OC0xLjUyNC0zLjYyLTIuMjE1LTUuOTU1LTIuMjE1em00LjQzIDUuNjYuMDAzLjAwNnYtLjAwM3oiIGZpbGw9IiNmZmYiIHBhaW50LW9yZGVyPSJtYXJrZXJzIHN0cm9rZSBmaWxsIi8+PHBhdGggZD0ibTIxNS4xODQgMjUxLjkyOS03Ljk4IDcuOTc5IDI4LjQ3NyAyOC40NzVhNS4yMzMgNS4yMzMgMCAwIDAgLjQ0OS0yLjEyM3YtMzEuMTY1Yy0uNDY5LjY3NS0uOTM0IDEuMzQ5LTEuMzgyIDIuMDA1LS43OTIgMS4yNzUtMS42ODIgMi42NC0yLjQ2NSAzLjk5LTIuMzQ3IDQuMDY1LTMuOTgyIDguMDM4LTQuNTg1IDEzLjc5NC0uMTYyLjQ4NS0uNTI3Ljc5OC0uOTMuNzk5LS4zNjMtLjAwMS0uNjk3LS4yNTUtLjg3OS0uNjY3di0uMDEyYy0uNTkzLTUuODIyLTIuMjM3LTkuODItNC42LTEzLjkxNC0uNzgzLTEuMzUtMS42NzMtMi43MTUtMi40NjYtMy45OS0xLjEzNy0xLjY2Ni0yLjMyNy0zLjQtMy42MzctNS4xNjlsLS4wMDItLjAwM3oiIGZpbGw9IiNjM2MzYzMiLz48cGF0aCBkPSJtMjEyLjk4MyAyNDguNDk1LTM2Ljk1MiAzNi45NTN2LjgxMmE1LjIyNyA1LjIyNyAwIDAgMCA1LjIzOCA1LjIzOGgxLjAxNWwzNS42NjYtMzUuNjY2YTEzNi4yNzUgMTM2LjI3NSAwIDAgMC0yLjc2NC0zLjkgMzcuNTc1IDM3LjU3NSAwIDAgMC0uOTg5LTEuNDQgMzUuMTI3IDM1LjEyNyAwIDAgMC0uOTUtMS41MDhjLS4wODMtLjE2Mi0uMTc2LS4zMjYtLjI2NC0uNDg5eiIgZmlsbD0iI2ZkZGM0ZiIgcGFpbnQtb3JkZXI9Im1hcmtlcnMgc3Ryb2tlIGZpbGwiLz48cGF0aCBkPSJtMjExLjk5OCAyNjEuMDgzLTYuMTUyIDYuMTUxIDI0LjI2NCAyNC4yNjRoLjc4MWE1LjIyNyA1LjIyNyAwIDAgMCA1LjIzOS01LjIzOHYtMS4wNDV6IiBmaWxsPSIjZmZmIiBwYWludC1vcmRlcj0ibWFya2VycyBzdHJva2UgZmlsbCIvPjwvZz48L3N2Zz4=)}.ck-media__wrapper[data-oembed-url*="facebook.com"] .ck-media__placeholder{background:#4268b3}.ck-media__wrapper[data-oembed-url*="facebook.com"] .ck-media__placeholder .ck-media__placeholder__icon{background-image:url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTAyNCIgaGVpZ2h0PSIxMDI0IiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciPjxwYXRoIGQ9Ik05NjcuNDg0IDBINTYuNTE3QzI1LjMwNCAwIDAgMjUuMzA0IDAgNTYuNTE3djkxMC45NjZDMCA5OTguNjk0IDI1LjI5NyAxMDI0IDU2LjUyMiAxMDI0SDU0N1Y2MjhINDE0VjQ3M2gxMzNWMzU5LjAyOWMwLTEzMi4yNjIgODAuNzczLTIwNC4yODIgMTk4Ljc1Ni0yMDQuMjgyIDU2LjUxMyAwIDEwNS4wODYgNC4yMDggMTE5LjI0NCA2LjA4OVYyOTlsLTgxLjYxNi4wMzdjLTYzLjk5MyAwLTc2LjM4NCAzMC40OTItNzYuMzg0IDc1LjIzNlY0NzNoMTUzLjQ4N2wtMTkuOTg2IDE1NUg3MDd2Mzk2aDI2MC40ODRjMzEuMjEzIDAgNTYuNTE2LTI1LjMwMyA1Ni41MTYtNTYuNTE2VjU2LjUxNUMxMDI0IDI1LjMwMyA5OTguNjk3IDAgOTY3LjQ4NCAwIiBmaWxsPSIjRkZGRkZFIiBmaWxsLXJ1bGU9ImV2ZW5vZGQiLz48L3N2Zz4=)}.ck-media__wrapper[data-oembed-url*="facebook.com"] .ck-media__placeholder .ck-media__placeholder__url__text{color:#cdf}.ck-media__wrapper[data-oembed-url*="facebook.com"] .ck-media__placeholder .ck-media__placeholder__url__text:hover{color:#fff}.ck-media__wrapper[data-oembed-url*="instagram.com"] .ck-media__placeholder{background:linear-gradient(-135deg,#1400c7,#b800b1,#f50000)}.ck-media__wrapper[data-oembed-url*="instagram.com"] .ck-media__placeholder .ck-media__placeholder__icon{background-image:url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNTA0IiBoZWlnaHQ9IjUwNCIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIiB4bWxuczp4bGluaz0iaHR0cDovL3d3dy53My5vcmcvMTk5OS94bGluayI+PGRlZnM+PHBhdGggaWQ9ImEiIGQ9Ik0wIC4xNTloNTAzLjg0MVY1MDMuOTRIMHoiLz48L2RlZnM+PGcgZmlsbD0ibm9uZSIgZmlsbC1ydWxlPSJldmVub2RkIj48bWFzayBpZD0iYiIgZmlsbD0iI2ZmZiI+PHVzZSB4bGluazpocmVmPSIjYSIvPjwvbWFzaz48cGF0aCBkPSJNMjUxLjkyMS4xNTljLTY4LjQxOCAwLTc2Ljk5Ny4yOS0xMDMuODY3IDEuNTE2LTI2LjgxNCAxLjIyMy00NS4xMjcgNS40ODItNjEuMTUxIDExLjcxLTE2LjU2NiA2LjQzNy0zMC42MTUgMTUuMDUxLTQ0LjYyMSAyOS4wNTYtMTQuMDA1IDE0LjAwNi0yMi42MTkgMjguMDU1LTI5LjA1NiA0NC42MjEtNi4yMjggMTYuMDI0LTEwLjQ4NyAzNC4zMzctMTEuNzEgNjEuMTUxQy4yOSAxNzUuMDgzIDAgMTgzLjY2MiAwIDI1Mi4wOGMwIDY4LjQxNy4yOSA3Ni45OTYgMS41MTYgMTAzLjg2NiAxLjIyMyAyNi44MTQgNS40ODIgNDUuMTI3IDExLjcxIDYxLjE1MSA2LjQzNyAxNi41NjYgMTUuMDUxIDMwLjYxNSAyOS4wNTYgNDQuNjIxIDE0LjAwNiAxNC4wMDUgMjguMDU1IDIyLjYxOSA0NC42MjEgMjkuMDU3IDE2LjAyNCA2LjIyNyAzNC4zMzcgMTAuNDg2IDYxLjE1MSAxMS43MDkgMjYuODcgMS4yMjYgMzUuNDQ5IDEuNTE2IDEwMy44NjcgMS41MTYgNjguNDE3IDAgNzYuOTk2LS4yOSAxMDMuODY2LTEuNTE2IDI2LjgxNC0xLjIyMyA0NS4xMjctNS40ODIgNjEuMTUxLTExLjcwOSAxNi41NjYtNi40MzggMzAuNjE1LTE1LjA1MiA0NC42MjEtMjkuMDU3IDE0LjAwNS0xNC4wMDYgMjIuNjE5LTI4LjA1NSAyOS4wNTctNDQuNjIxIDYuMjI3LTE2LjAyNCAxMC40ODYtMzQuMzM3IDExLjcwOS02MS4xNTEgMS4yMjYtMjYuODcgMS41MTYtMzUuNDQ5IDEuNTE2LTEwMy44NjYgMC02OC40MTgtLjI5LTc2Ljk5Ny0xLjUxNi0xMDMuODY3LTEuMjIzLTI2LjgxNC01LjQ4Mi00NS4xMjctMTEuNzA5LTYxLjE1MS02LjQzOC0xNi41NjYtMTUuMDUyLTMwLjYxNS0yOS4wNTctNDQuNjIxLTE0LjAwNi0xNC4wMDUtMjguMDU1LTIyLjYxOS00NC42MjEtMjkuMDU2LTE2LjAyNC02LjIyOC0zNC4zMzctMTAuNDg3LTYxLjE1MS0xMS43MUMzMjguOTE3LjQ0OSAzMjAuMzM4LjE1OSAyNTEuOTIxLjE1OVptMCA0NS4zOTFjNjcuMjY1IDAgNzUuMjMzLjI1NyAxMDEuNzk3IDEuNDY5IDI0LjU2MiAxLjEyIDM3LjkwMSA1LjIyNCA0Ni43NzggOC42NzQgMTEuNzU5IDQuNTcgMjAuMTUxIDEwLjAyOSAyOC45NjYgMTguODQ1IDguODE2IDguODE1IDE0LjI3NSAxNy4yMDcgMTguODQ1IDI4Ljk2NiAzLjQ1IDguODc3IDcuNTU0IDIyLjIxNiA4LjY3NCA0Ni43NzggMS4yMTIgMjYuNTY0IDEuNDY5IDM0LjUzMiAxLjQ2OSAxMDEuNzk4IDAgNjcuMjY1LS4yNTcgNzUuMjMzLTEuNDY5IDEwMS43OTctMS4xMiAyNC41NjItNS4yMjQgMzcuOTAxLTguNjc0IDQ2Ljc3OC00LjU3IDExLjc1OS0xMC4wMjkgMjAuMTUxLTE4Ljg0NSAyOC45NjYtOC44MTUgOC44MTYtMTcuMjA3IDE0LjI3NS0yOC45NjYgMTguODQ1LTguODc3IDMuNDUtMjIuMjE2IDcuNTU0LTQ2Ljc3OCA4LjY3NC0yNi41NiAxLjIxMi0zNC41MjcgMS40NjktMTAxLjc5NyAxLjQ2OS02Ny4yNzEgMC03NS4yMzctLjI1Ny0xMDEuNzk4LTEuNDY5LTI0LjU2Mi0xLjEyLTM3LjkwMS01LjIyNC00Ni43NzgtOC42NzQtMTEuNzU5LTQuNTctMjAuMTUxLTEwLjAyOS0yOC45NjYtMTguODQ1LTguODE1LTguODE1LTE0LjI3NS0xNy4yMDctMTguODQ1LTI4Ljk2Ni0zLjQ1LTguODc3LTcuNTU0LTIyLjIxNi04LjY3NC00Ni43NzgtMS4yMTItMjYuNTY0LTEuNDY5LTM0LjUzMi0xLjQ2OS0xMDEuNzk3IDAtNjcuMjY2LjI1Ny03NS4yMzQgMS40NjktMTAxLjc5OCAxLjEyLTI0LjU2MiA1LjIyNC0zNy45MDEgOC42NzQtNDYuNzc4IDQuNTctMTEuNzU5IDEwLjAyOS0yMC4xNTEgMTguODQ1LTI4Ljk2NiA4LjgxNS04LjgxNiAxNy4yMDctMTQuMjc1IDI4Ljk2Ni0xOC44NDUgOC44NzctMy40NSAyMi4yMTYtNy41NTQgNDYuNzc4LTguNjc0IDI2LjU2NC0xLjIxMiAzNC41MzItMS40NjkgMTAxLjc5OC0xLjQ2OVoiIGZpbGw9IiNGRkYiIG1hc2s9InVybCgjYikiLz48cGF0aCBkPSJNMjUxLjkyMSAzMzYuMDUzYy00Ni4zNzggMC04My45NzQtMzcuNTk2LTgzLjk3NC04My45NzMgMC00Ni4zNzggMzcuNTk2LTgzLjk3NCA4My45NzQtODMuOTc0IDQ2LjM3NyAwIDgzLjk3MyAzNy41OTYgODMuOTczIDgzLjk3NCAwIDQ2LjM3Ny0zNy41OTYgODMuOTczLTgzLjk3MyA4My45NzNabTAtMjEzLjMzOGMtNzEuNDQ3IDAtMTI5LjM2NSA1Ny45MTgtMTI5LjM2NSAxMjkuMzY1IDAgNzEuNDQ2IDU3LjkxOCAxMjkuMzY0IDEyOS4zNjUgMTI5LjM2NCA3MS40NDYgMCAxMjkuMzY0LTU3LjkxOCAxMjkuMzY0LTEyOS4zNjQgMC03MS40NDctNTcuOTE4LTEyOS4zNjUtMTI5LjM2NC0xMjkuMzY1Wk00MTYuNjI3IDExNy42MDRjMCAxNi42OTYtMTMuNTM1IDMwLjIzLTMwLjIzMSAzMC4yMy0xNi42OTUgMC0zMC4yMy0xMy41MzQtMzAuMjMtMzAuMjMgMC0xNi42OTYgMTMuNTM1LTMwLjIzMSAzMC4yMy0zMC4yMzEgMTYuNjk2IDAgMzAuMjMxIDEzLjUzNSAzMC4yMzEgMzAuMjMxIiBmaWxsPSIjRkZGIi8+PC9nPjwvc3ZnPg==)}.ck-media__wrapper[data-oembed-url*="instagram.com"] .ck-media__placeholder .ck-media__placeholder__url__text{color:#ffe0fe}.ck-media__wrapper[data-oembed-url*="instagram.com"] .ck-media__placeholder .ck-media__placeholder__url__text:hover{color:#fff}.ck-media__wrapper[data-oembed-url*="twitter.com"] .ck.ck-media__placeholder{background:linear-gradient(90deg,#71c6f4,#0d70a5)}.ck-media__wrapper[data-oembed-url*="twitter.com"] .ck.ck-media__placeholder .ck-media__placeholder__icon{background-image:url(data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCA0MDAgNDAwIiBzdHlsZT0iZW5hYmxlLWJhY2tncm91bmQ6bmV3IDAgMCA0MDAgNDAwIiB4bWw6c3BhY2U9InByZXNlcnZlIj48cGF0aCBkPSJNNDAwIDIwMGMwIDExMC41LTg5LjUgMjAwLTIwMCAyMDBTMCAzMTAuNSAwIDIwMCA4OS41IDAgMjAwIDBzMjAwIDg5LjUgMjAwIDIwMHpNMTYzLjQgMzA1LjVjODguNyAwIDEzNy4yLTczLjUgMTM3LjItMTM3LjIgMC0yLjEgMC00LjItLjEtNi4yIDkuNC02LjggMTcuNi0xNS4zIDI0LjEtMjUtOC42IDMuOC0xNy45IDYuNC0yNy43IDcuNiAxMC02IDE3LjYtMTUuNCAyMS4yLTI2LjctOS4zIDUuNS0xOS42IDkuNS0zMC42IDExLjctOC44LTkuNC0yMS4zLTE1LjItMzUuMi0xNS4yLTI2LjYgMC00OC4yIDIxLjYtNDguMiA0OC4yIDAgMy44LjQgNy41IDEuMyAxMS00MC4xLTItNzUuNi0yMS4yLTk5LjQtNTAuNC00LjEgNy4xLTYuNSAxNS40LTYuNSAyNC4yIDAgMTYuNyA4LjUgMzEuNSAyMS41IDQwLjEtNy45LS4yLTE1LjMtMi40LTIxLjgtNnYuNmMwIDIzLjQgMTYuNiA0Mi44IDM4LjcgNDcuMy00IDEuMS04LjMgMS43LTEyLjcgMS43LTMuMSAwLTYuMS0uMy05LjEtLjkgNi4xIDE5LjIgMjMuOSAzMy4xIDQ1IDMzLjUtMTYuNSAxMi45LTM3LjMgMjAuNi01OS45IDIwLjYtMy45IDAtNy43LS4yLTExLjUtLjcgMjEuMSAxMy44IDQ2LjUgMjEuOCA3My43IDIxLjgiIHN0eWxlPSJmaWxsOiNmZmYiLz48L3N2Zz4=)}.ck-media__wrapper[data-oembed-url*="twitter.com"] .ck.ck-media__placeholder .ck-media__placeholder__url__text{color:#b8e6ff}.ck-media__wrapper[data-oembed-url*="twitter.com"] .ck.ck-media__placeholder .ck-media__placeholder__url__text:hover{color:#fff}',"",{version:3,sources:["webpack://./node_modules/@ckeditor/ckeditor5-media-embed/theme/mediaembedediting.css","webpack://./node_modules/@ckeditor/ckeditor5-ui/theme/components/tooltip/mixins/_tooltip.css","webpack://./node_modules/@ckeditor/ckeditor5-theme-lark/theme/ckeditor5-media-embed/mediaembedediting.css"],names:[],mappings:"AAQC,0CAGC,kBAAmB,CAFnB,YAAa,CACb,qBAoBD,CCpBA,kFACC,aAqBD,CAHC,oBAnBD,kFAoBE,YAEF,CADC,CDlBA,sEAIC,cAAe,CAEf,iBAUD,CCoBD,wFAEC,SAAU,CADV,kBAED,CD3BE,wGAEC,aAAc,CADd,eAED,CAWD,6kBACC,YACD,CAYF,2LACC,mBACD,CElDA,MACC,0CAA2C,CAE3C,mDAA4D,CAC5D,2EACD,CAEA,mBACC,aA+FD,CA7FC,0CAEC,0CAA2C,CAD3C,0CA6BD,CA1BC,uEAIC,uBAA2B,CAC3B,qBAAsB,CAHtB,kDAAmD,CACnD,qCAAsC,CAFtC,qDAUD,CAJC,gFAEC,WAAY,CADZ,UAED,CAGD,4EACC,sDAAuD,CAGvD,iBAAkB,CADlB,iBAAkB,CAElB,sBAAuB,CAHvB,kBAUD,CALC,kFACC,4DAA6D,CAC7D,cAAe,CACf,yBACD,CAIF,wDAEC,gBAAiB,CADjB,eAED,CAEA,4UAIC,wvGACD,CAEA,2EACC,kBAaD,CAXC,wGACC,orBACD,CAEA,6GACC,UAKD,CAHC,mHACC,UACD,CAIF,4EACC,2DAcD,CAZC,yGACC,4jHACD,CAGA,8GACC,aAKD,CAHC,oHACC,UACD,CAIF,6EAEC,iDAaD,CAXC,0GACC,wiCACD,CAEA,+GACC,aAKD,CAHC,qHACC,UACD",sourcesContent:['/*\n * Copyright (c) 2003-2022, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n@import "@ckeditor/ckeditor5-ui/theme/components/tooltip/mixins/_tooltip.css";\n\n.ck-media__wrapper {\n\t& .ck-media__placeholder {\n\t\tdisplay: flex;\n\t\tflex-direction: column;\n\t\talign-items: center;\n\n\t\t& .ck-media__placeholder__url {\n\t\t\t@mixin ck-tooltip_enabled;\n\n\t\t\t/* Otherwise the URL will overflow when the content is very narrow. */\n\t\t\tmax-width: 100%;\n\n\t\t\tposition: relative;\n\n\t\t\t&:hover {\n\t\t\t\t@mixin ck-tooltip_visible;\n\t\t\t}\n\n\t\t\t& .ck-media__placeholder__url__text {\n\t\t\t\toverflow: hidden;\n\t\t\t\tdisplay: block;\n\t\t\t}\n\t\t}\n\t}\n\n\t&[data-oembed-url*="twitter.com"],\n\t&[data-oembed-url*="google.com/maps"],\n\t&[data-oembed-url*="goo.gl/maps"],\n\t&[data-oembed-url*="maps.google.com"],\n\t&[data-oembed-url*="maps.app.goo.gl"],\n\t&[data-oembed-url*="facebook.com"],\n\t&[data-oembed-url*="instagram.com"] {\n\t\t& .ck-media__placeholder__icon * {\n\t\t\tdisplay: none;\n\t\t}\n\t}\n}\n\n/* Disable all mouse interaction as long as the editor is not read–only.\n https://github.com/ckeditor/ckeditor5-media-embed/issues/58 */\n.ck-editor__editable:not(.ck-read-only) .ck-media__wrapper > *:not(.ck-media__placeholder) {\n\tpointer-events: none;\n}\n\n/* Disable all mouse interaction when the widget is not selected (e.g. to avoid opening links by accident).\n https://github.com/ckeditor/ckeditor5-media-embed/issues/18 */\n.ck-editor__editable:not(.ck-read-only) .ck-widget:not(.ck-widget_selected) .ck-media__placeholder {\n\tpointer-events: none;\n}\n',"/*\n * Copyright (c) 2003-2022, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n/**\n * Enables the tooltip, which is the tooltip is in DOM but\n * not yet displayed.\n */\n@define-mixin ck-tooltip_enabled {\n\t& .ck-tooltip {\n\t\tdisplay: block;\n\n\t\t/*\n\t\t * Don't display tooltips in devices which don't support :hover.\n\t\t * In fact, it's all about iOS, which forces user to click UI elements twice to execute\n\t\t * the primary action, when tooltips are enabled.\n\t\t *\n\t\t * Q: OK, but why not the following query?\n\t\t *\n\t\t * @media (hover) {\n\t\t * display: block;\n\t\t * }\n\t\t *\n\t\t * A: Because FF does not support it and it would completely disable tooltips\n\t\t * in that browser.\n\t\t *\n\t\t * More in https://github.com/ckeditor/ckeditor5/issues/920.\n\t\t */\n\t\t@media (hover:none) {\n\t\t\tdisplay: none;\n\t\t}\n\t}\n}\n\n/**\n * Disables the tooltip making it disappear from DOM.\n */\n@define-mixin ck-tooltip_disabled {\n\t& .ck-tooltip {\n\t\tdisplay: none;\n\t}\n}\n\n/**\n * Shows the tooltip, which is already in DOM.\n * Requires `ck-tooltip_enabled` first.\n */\n@define-mixin ck-tooltip_visible {\n\t& .ck-tooltip {\n\t\tvisibility: visible;\n\t\topacity: 1;\n\t}\n}\n",'/*\n * Copyright (c) 2003-2022, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n:root {\n\t--ck-media-embed-placeholder-icon-size: 3em;\n\n\t--ck-color-media-embed-placeholder-url-text: hsl(0, 0%, 46%);\n\t--ck-color-media-embed-placeholder-url-text-hover: var(--ck-color-base-text);\n}\n\n.ck-media__wrapper {\n\tmargin: 0 auto;\n\n\t& .ck-media__placeholder {\n\t\tpadding: calc( 3 * var(--ck-spacing-standard) );\n\t\tbackground: var(--ck-color-base-foreground);\n\n\t\t& .ck-media__placeholder__icon {\n\t\t\tmin-width: var(--ck-media-embed-placeholder-icon-size);\n\t\t\theight: var(--ck-media-embed-placeholder-icon-size);\n\t\t\tmargin-bottom: var(--ck-spacing-large);\n\t\t\tbackground-position: center;\n\t\t\tbackground-size: cover;\n\n\t\t\t& .ck-icon {\n\t\t\t\twidth: 100%;\n\t\t\t\theight: 100%;\n\t\t\t}\n\t\t}\n\n\t\t& .ck-media__placeholder__url__text {\n\t\t\tcolor: var(--ck-color-media-embed-placeholder-url-text);\n\t\t\twhite-space: nowrap;\n\t\t\ttext-align: center;\n\t\t\tfont-style: italic;\n\t\t\ttext-overflow: ellipsis;\n\n\t\t\t&:hover {\n\t\t\t\tcolor: var(--ck-color-media-embed-placeholder-url-text-hover);\n\t\t\t\tcursor: pointer;\n\t\t\t\ttext-decoration: underline;\n\t\t\t}\n\t\t}\n\t}\n\n\t&[data-oembed-url*="open.spotify.com"] {\n\t\tmax-width: 300px;\n\t\tmax-height: 380px;\n\t}\n\n\t&[data-oembed-url*="google.com/maps"] .ck-media__placeholder__icon,\n\t&[data-oembed-url*="goo.gl/maps"] .ck-media__placeholder__icon,\n\t&[data-oembed-url*="maps.google.com"] .ck-media__placeholder__icon,\n\t&[data-oembed-url*="maps.app.goo.gl"] .ck-media__placeholder__icon {\n\t\tbackground-image: url(data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIyNTAuMzc4IiBoZWlnaHQ9IjI1NC4xNjciIHZpZXdCb3g9IjAgMCA2Ni4yNDYgNjcuMjQ4Ij48ZyB0cmFuc2Zvcm09InRyYW5zbGF0ZSgtMTcyLjUzMSAtMjE4LjQ1NSkgc2NhbGUoLjk4MDEyKSI+PHJlY3Qgcnk9IjUuMjM4IiByeD0iNS4yMzgiIHk9IjIzMS4zOTkiIHg9IjE3Ni4wMzEiIGhlaWdodD0iNjAuMDk5IiB3aWR0aD0iNjAuMDk5IiBmaWxsPSIjMzRhNjY4IiBwYWludC1vcmRlcj0ibWFya2VycyBzdHJva2UgZmlsbCIvPjxwYXRoIGQ9Ik0yMDYuNDc3IDI2MC45bC0yOC45ODcgMjguOTg3YTUuMjE4IDUuMjE4IDAgMCAwIDMuNzggMS42MWg0OS42MjFjMS42OTQgMCAzLjE5LS43OTggNC4xNDYtMi4wMzd6IiBmaWxsPSIjNWM4OGM1Ii8+PHBhdGggZD0iTTIyNi43NDIgMjIyLjk4OGMtOS4yNjYgMC0xNi43NzcgNy4xNy0xNi43NzcgMTYuMDE0LjAwNyAyLjc2Mi42NjMgNS40NzQgMi4wOTMgNy44NzUuNDMuNzAzLjgzIDEuNDA4IDEuMTkgMi4xMDcuMzMzLjUwMi42NSAxLjAwNS45NSAxLjUwOC4zNDMuNDc3LjY3My45NTcuOTg4IDEuNDQgMS4zMSAxLjc2OSAyLjUgMy41MDIgMy42MzcgNS4xNjguNzkzIDEuMjc1IDEuNjgzIDIuNjQgMi40NjYgMy45OSAyLjM2MyA0LjA5NCA0LjAwNyA4LjA5MiA0LjYgMTMuOTE0di4wMTJjLjE4Mi40MTIuNTE2LjY2Ni44NzkuNjY3LjQwMy0uMDAxLjc2OC0uMzE0LjkzLS43OTkuNjAzLTUuNzU2IDIuMjM4LTkuNzI5IDQuNTg1LTEzLjc5NC43ODItMS4zNSAxLjY3My0yLjcxNSAyLjQ2NS0zLjk5IDEuMTM3LTEuNjY2IDIuMzI4LTMuNCAzLjYzOC01LjE2OS4zMTUtLjQ4Mi42NDUtLjk2Mi45ODgtMS40MzkuMy0uNTAzLjYxNy0xLjAwNi45NS0xLjUwOC4zNTktLjcuNzYtMS40MDQgMS4xOS0yLjEwNyAxLjQyNi0yLjQwMiAyLTUuMTE0IDIuMDA0LTcuODc1IDAtOC44NDQtNy41MTEtMTYuMDE0LTE2Ljc3Ni0xNi4wMTR6IiBmaWxsPSIjZGQ0YjNlIiBwYWludC1vcmRlcj0ibWFya2VycyBzdHJva2UgZmlsbCIvPjxlbGxpcHNlIHJ5PSI1LjU2NCIgcng9IjUuODI4IiBjeT0iMjM5LjAwMiIgY3g9IjIyNi43NDIiIGZpbGw9IiM4MDJkMjciIHBhaW50LW9yZGVyPSJtYXJrZXJzIHN0cm9rZSBmaWxsIi8+PHBhdGggZD0iTTE5MC4zMDEgMjM3LjI4M2MtNC42NyAwLTguNDU3IDMuODUzLTguNDU3IDguNjA2czMuNzg2IDguNjA3IDguNDU3IDguNjA3YzMuMDQzIDAgNC44MDYtLjk1OCA2LjMzNy0yLjUxNiAxLjUzLTEuNTU3IDIuMDg3LTMuOTEzIDIuMDg3LTYuMjkgMC0uMzYyLS4wMjMtLjcyMi0uMDY0LTEuMDc5aC04LjI1N3YzLjA0M2g0Ljg1Yy0uMTk3Ljc1OS0uNTMxIDEuNDUtMS4wNTggMS45ODYtLjk0Mi45NTgtMi4wMjggMS41NDgtMy45MDEgMS41NDgtMi44NzYgMC01LjIwOC0yLjM3Mi01LjIwOC01LjI5OSAwLTIuOTI2IDIuMzMyLTUuMjk5IDUuMjA4LTUuMjk5IDEuMzk5IDAgMi42MTguNDA3IDMuNTg0IDEuMjkzbDIuMzgxLTIuMzhjMC0uMDAyLS4wMDMtLjAwNC0uMDA0LS4wMDUtMS41ODgtMS41MjQtMy42Mi0yLjIxNS01Ljk1NS0yLjIxNXptNC40MyA1LjY2bC4wMDMuMDA2di0uMDAzeiIgZmlsbD0iI2ZmZiIgcGFpbnQtb3JkZXI9Im1hcmtlcnMgc3Ryb2tlIGZpbGwiLz48cGF0aCBkPSJNMjE1LjE4NCAyNTEuOTI5bC03Ljk4IDcuOTc5IDI4LjQ3NyAyOC40NzVjLjI4Ny0uNjQ5LjQ0OS0xLjM2Ni40NDktMi4xMjN2LTMxLjE2NWMtLjQ2OS42NzUtLjkzNCAxLjM0OS0xLjM4MiAyLjAwNS0uNzkyIDEuMjc1LTEuNjgyIDIuNjQtMi40NjUgMy45OS0yLjM0NyA0LjA2NS0zLjk4MiA4LjAzOC00LjU4NSAxMy43OTQtLjE2Mi40ODUtLjUyNy43OTgtLjkzLjc5OS0uMzYzLS4wMDEtLjY5Ny0uMjU1LS44NzktLjY2N3YtLjAxMmMtLjU5My01LjgyMi0yLjIzNy05LjgyLTQuNi0xMy45MTQtLjc4My0xLjM1LTEuNjczLTIuNzE1LTIuNDY2LTMuOTktMS4xMzctMS42NjYtMi4zMjctMy40LTMuNjM3LTUuMTY5bC0uMDAyLS4wMDN6IiBmaWxsPSIjYzNjM2MzIi8+PHBhdGggZD0iTTIxMi45ODMgMjQ4LjQ5NWwtMzYuOTUyIDM2Ljk1M3YuODEyYTUuMjI3IDUuMjI3IDAgMCAwIDUuMjM4IDUuMjM4aDEuMDE1bDM1LjY2Ni0zNS42NjZhMTM2LjI3NSAxMzYuMjc1IDAgMCAwLTIuNzY0LTMuOSAzNy41NzUgMzcuNTc1IDAgMCAwLS45ODktMS40NGMtLjI5OS0uNTAzLS42MTYtMS4wMDYtLjk1LTEuNTA4LS4wODMtLjE2Mi0uMTc2LS4zMjYtLjI2NC0uNDg5eiIgZmlsbD0iI2ZkZGM0ZiIgcGFpbnQtb3JkZXI9Im1hcmtlcnMgc3Ryb2tlIGZpbGwiLz48cGF0aCBkPSJNMjExLjk5OCAyNjEuMDgzbC02LjE1MiA2LjE1MSAyNC4yNjQgMjQuMjY0aC43ODFhNS4yMjcgNS4yMjcgMCAwIDAgNS4yMzktNS4yMzh2LTEuMDQ1eiIgZmlsbD0iI2ZmZiIgcGFpbnQtb3JkZXI9Im1hcmtlcnMgc3Ryb2tlIGZpbGwiLz48L2c+PC9zdmc+);\n\t}\n\n\t&[data-oembed-url*="facebook.com"] .ck-media__placeholder {\n\t\tbackground: hsl(220, 46%, 48%);\n\n\t\t& .ck-media__placeholder__icon {\n\t\t\tbackground-image: url(data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iVVRGLTgiPz48c3ZnIHdpZHRoPSIxMDI0cHgiIGhlaWdodD0iMTAyNHB4IiB2aWV3Qm94PSIwIDAgMTAyNCAxMDI0IiB2ZXJzaW9uPSIxLjEiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiPiAgICAgICAgPHRpdGxlPkZpbGwgMTwvdGl0bGU+ICAgIDxkZXNjPkNyZWF0ZWQgd2l0aCBTa2V0Y2guPC9kZXNjPiAgICA8ZGVmcz48L2RlZnM+ICAgIDxnIGlkPSJQYWdlLTEiIHN0cm9rZT0ibm9uZSIgc3Ryb2tlLXdpZHRoPSIxIiBmaWxsPSJub25lIiBmaWxsLXJ1bGU9ImV2ZW5vZGQiPiAgICAgICAgPGcgaWQ9ImZMb2dvX1doaXRlIiBmaWxsPSIjRkZGRkZFIj4gICAgICAgICAgICA8cGF0aCBkPSJNOTY3LjQ4NCwwIEw1Ni41MTcsMCBDMjUuMzA0LDAgMCwyNS4zMDQgMCw1Ni41MTcgTDAsOTY3LjQ4MyBDMCw5OTguNjk0IDI1LjI5NywxMDI0IDU2LjUyMiwxMDI0IEw1NDcsMTAyNCBMNTQ3LDYyOCBMNDE0LDYyOCBMNDE0LDQ3MyBMNTQ3LDQ3MyBMNTQ3LDM1OS4wMjkgQzU0NywyMjYuNzY3IDYyNy43NzMsMTU0Ljc0NyA3NDUuNzU2LDE1NC43NDcgQzgwMi4yNjksMTU0Ljc0NyA4NTAuODQyLDE1OC45NTUgODY1LDE2MC44MzYgTDg2NSwyOTkgTDc4My4zODQsMjk5LjAzNyBDNzE5LjM5MSwyOTkuMDM3IDcwNywzMjkuNTI5IDcwNywzNzQuMjczIEw3MDcsNDczIEw4NjAuNDg3LDQ3MyBMODQwLjUwMSw2MjggTDcwNyw2MjggTDcwNywxMDI0IEw5NjcuNDg0LDEwMjQgQzk5OC42OTcsMTAyNCAxMDI0LDk5OC42OTcgMTAyNCw5NjcuNDg0IEwxMDI0LDU2LjUxNSBDMTAyNCwyNS4zMDMgOTk4LjY5NywwIDk2Ny40ODQsMCIgaWQ9IkZpbGwtMSI+PC9wYXRoPiAgICAgICAgPC9nPiAgICA8L2c+PC9zdmc+);\n\t\t}\n\n\t\t& .ck-media__placeholder__url__text {\n\t\t\tcolor: hsl(220, 100%, 90%);\n\n\t\t\t&:hover {\n\t\t\t\tcolor: hsl(0, 0%, 100%);\n\t\t\t}\n\t\t}\n\t}\n\n\t&[data-oembed-url*="instagram.com"] .ck-media__placeholder {\n\t\tbackground: linear-gradient(-135deg,hsl(246, 100%, 39%),hsl(302, 100%, 36%),hsl(0, 100%, 48%));\n\n\t\t& .ck-media__placeholder__icon {\n\t\t\tbackground-image: url(data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iVVRGLTgiPz48c3ZnIHdpZHRoPSI1MDRweCIgaGVpZ2h0PSI1MDRweCIgdmlld0JveD0iMCAwIDUwNCA1MDQiIHZlcnNpb249IjEuMSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIiB4bWxuczp4bGluaz0iaHR0cDovL3d3dy53My5vcmcvMTk5OS94bGluayI+ICAgICAgICA8dGl0bGU+Z2x5cGgtbG9nb19NYXkyMDE2PC90aXRsZT4gICAgPGRlc2M+Q3JlYXRlZCB3aXRoIFNrZXRjaC48L2Rlc2M+ICAgIDxkZWZzPiAgICAgICAgPHBvbHlnb24gaWQ9InBhdGgtMSIgcG9pbnRzPSIwIDAuMTU5IDUwMy44NDEgMC4xNTkgNTAzLjg0MSA1MDMuOTQgMCA1MDMuOTQiPjwvcG9seWdvbj4gICAgPC9kZWZzPiAgICA8ZyBpZD0iZ2x5cGgtbG9nb19NYXkyMDE2IiBzdHJva2U9Im5vbmUiIHN0cm9rZS13aWR0aD0iMSIgZmlsbD0ibm9uZSIgZmlsbC1ydWxlPSJldmVub2RkIj4gICAgICAgIDxnIGlkPSJHcm91cC0zIj4gICAgICAgICAgICA8bWFzayBpZD0ibWFzay0yIiBmaWxsPSJ3aGl0ZSI+ICAgICAgICAgICAgICAgIDx1c2UgeGxpbms6aHJlZj0iI3BhdGgtMSI+PC91c2U+ICAgICAgICAgICAgPC9tYXNrPiAgICAgICAgICAgIDxnIGlkPSJDbGlwLTIiPjwvZz4gICAgICAgICAgICA8cGF0aCBkPSJNMjUxLjkyMSwwLjE1OSBDMTgzLjUwMywwLjE1OSAxNzQuOTI0LDAuNDQ5IDE0OC4wNTQsMS42NzUgQzEyMS4yNCwyLjg5OCAxMDIuOTI3LDcuMTU3IDg2LjkwMywxMy4zODUgQzcwLjMzNywxOS44MjIgNTYuMjg4LDI4LjQzNiA0Mi4yODIsNDIuNDQxIEMyOC4yNzcsNTYuNDQ3IDE5LjY2Myw3MC40OTYgMTMuMjI2LDg3LjA2MiBDNi45OTgsMTAzLjA4NiAyLjczOSwxMjEuMzk5IDEuNTE2LDE0OC4yMTMgQzAuMjksMTc1LjA4MyAwLDE4My42NjIgMCwyNTIuMDggQzAsMzIwLjQ5NyAwLjI5LDMyOS4wNzYgMS41MTYsMzU1Ljk0NiBDMi43MzksMzgyLjc2IDYuOTk4LDQwMS4wNzMgMTMuMjI2LDQxNy4wOTcgQzE5LjY2Myw0MzMuNjYzIDI4LjI3Nyw0NDcuNzEyIDQyLjI4Miw0NjEuNzE4IEM1Ni4yODgsNDc1LjcyMyA3MC4zMzcsNDg0LjMzNyA4Ni45MDMsNDkwLjc3NSBDMTAyLjkyNyw0OTcuMDAyIDEyMS4yNCw1MDEuMjYxIDE0OC4wNTQsNTAyLjQ4NCBDMTc0LjkyNCw1MDMuNzEgMTgzLjUwMyw1MDQgMjUxLjkyMSw1MDQgQzMyMC4zMzgsNTA0IDMyOC45MTcsNTAzLjcxIDM1NS43ODcsNTAyLjQ4NCBDMzgyLjYwMSw1MDEuMjYxIDQwMC45MTQsNDk3LjAwMiA0MTYuOTM4LDQ5MC43NzUgQzQzMy41MDQsNDg0LjMzNyA0NDcuNTUzLDQ3NS43MjMgNDYxLjU1OSw0NjEuNzE4IEM0NzUuNTY0LDQ0Ny43MTIgNDg0LjE3OCw0MzMuNjYzIDQ5MC42MTYsNDE3LjA5NyBDNDk2Ljg0Myw0MDEuMDczIDUwMS4xMDIsMzgyLjc2IDUwMi4zMjUsMzU1Ljk0NiBDNTAzLjU1MSwzMjkuMDc2IDUwMy44NDEsMzIwLjQ5NyA1MDMuODQxLDI1Mi4wOCBDNTAzLjg0MSwxODMuNjYyIDUwMy41NTEsMTc1LjA4MyA1MDIuMzI1LDE0OC4yMTMgQzUwMS4xMDIsMTIxLjM5OSA0OTYuODQzLDEwMy4wODYgNDkwLjYxNiw4Ny4wNjIgQzQ4NC4xNzgsNzAuNDk2IDQ3NS41NjQsNTYuNDQ3IDQ2MS41NTksNDIuNDQxIEM0NDcuNTUzLDI4LjQzNiA0MzMuNTA0LDE5LjgyMiA0MTYuOTM4LDEzLjM4NSBDNDAwLjkxNCw3LjE1NyAzODIuNjAxLDIuODk4IDM1NS43ODcsMS42NzUgQzMyOC45MTcsMC40NDkgMzIwLjMzOCwwLjE1OSAyNTEuOTIxLDAuMTU5IFogTTI1MS45MjEsNDUuNTUgQzMxOS4xODYsNDUuNTUgMzI3LjE1NCw0NS44MDcgMzUzLjcxOCw0Ny4wMTkgQzM3OC4yOCw0OC4xMzkgMzkxLjYxOSw1Mi4yNDMgNDAwLjQ5Niw1NS42OTMgQzQxMi4yNTUsNjAuMjYzIDQyMC42NDcsNjUuNzIyIDQyOS40NjIsNzQuNTM4IEM0MzguMjc4LDgzLjM1MyA0NDMuNzM3LDkxLjc0NSA0NDguMzA3LDEwMy41MDQgQzQ1MS43NTcsMTEyLjM4MSA0NTUuODYxLDEyNS43MiA0NTYuOTgxLDE1MC4yODIgQzQ1OC4xOTMsMTc2Ljg0NiA0NTguNDUsMTg0LjgxNCA0NTguNDUsMjUyLjA4IEM0NTguNDUsMzE5LjM0NSA0NTguMTkzLDMyNy4zMTMgNDU2Ljk4MSwzNTMuODc3IEM0NTUuODYxLDM3OC40MzkgNDUxLjc1NywzOTEuNzc4IDQ0OC4zMDcsNDAwLjY1NSBDNDQzLjczNyw0MTIuNDE0IDQzOC4yNzgsNDIwLjgwNiA0MjkuNDYyLDQyOS42MjEgQzQyMC42NDcsNDM4LjQzNyA0MTIuMjU1LDQ0My44OTYgNDAwLjQ5Niw0NDguNDY2IEMzOTEuNjE5LDQ1MS45MTYgMzc4LjI4LDQ1Ni4wMiAzNTMuNzE4LDQ1Ny4xNCBDMzI3LjE1OCw0NTguMzUyIDMxOS4xOTEsNDU4LjYwOSAyNTEuOTIxLDQ1OC42MDkgQzE4NC42NSw0NTguNjA5IDE3Ni42ODQsNDU4LjM1MiAxNTAuMTIzLDQ1Ny4xNCBDMTI1LjU2MSw0NTYuMDIgMTEyLjIyMiw0NTEuOTE2IDEwMy4zNDUsNDQ4LjQ2NiBDOTEuNTg2LDQ0My44OTYgODMuMTk0LDQzOC40MzcgNzQuMzc5LDQyOS42MjEgQzY1LjU2NCw0MjAuODA2IDYwLjEwNCw0MTIuNDE0IDU1LjUzNCw0MDAuNjU1IEM1Mi4wODQsMzkxLjc3OCA0Ny45OCwzNzguNDM5IDQ2Ljg2LDM1My44NzcgQzQ1LjY0OCwzMjcuMzEzIDQ1LjM5MSwzMTkuMzQ1IDQ1LjM5MSwyNTIuMDggQzQ1LjM5MSwxODQuODE0IDQ1LjY0OCwxNzYuODQ2IDQ2Ljg2LDE1MC4yODIgQzQ3Ljk4LDEyNS43MiA1Mi4wODQsMTEyLjM4MSA1NS41MzQsMTAzLjUwNCBDNjAuMTA0LDkxLjc0NSA2NS41NjMsODMuMzUzIDc0LjM3OSw3NC41MzggQzgzLjE5NCw2NS43MjIgOTEuNTg2LDYwLjI2MyAxMDMuMzQ1LDU1LjY5MyBDMTEyLjIyMiw1Mi4yNDMgMTI1LjU2MSw0OC4xMzkgMTUwLjEyMyw0Ny4wMTkgQzE3Ni42ODcsNDUuODA3IDE4NC42NTUsNDUuNTUgMjUxLjkyMSw0NS41NSBaIiBpZD0iRmlsbC0xIiBmaWxsPSIjRkZGRkZGIiBtYXNrPSJ1cmwoI21hc2stMikiPjwvcGF0aD4gICAgICAgIDwvZz4gICAgICAgIDxwYXRoIGQ9Ik0yNTEuOTIxLDMzNi4wNTMgQzIwNS41NDMsMzM2LjA1MyAxNjcuOTQ3LDI5OC40NTcgMTY3Ljk0NywyNTIuMDggQzE2Ny45NDcsMjA1LjcwMiAyMDUuNTQzLDE2OC4xMDYgMjUxLjkyMSwxNjguMTA2IEMyOTguMjk4LDE2OC4xMDYgMzM1Ljg5NCwyMDUuNzAyIDMzNS44OTQsMjUyLjA4IEMzMzUuODk0LDI5OC40NTcgMjk4LjI5OCwzMzYuMDUzIDI1MS45MjEsMzM2LjA1MyBaIE0yNTEuOTIxLDEyMi43MTUgQzE4MC40NzQsMTIyLjcxNSAxMjIuNTU2LDE4MC42MzMgMTIyLjU1NiwyNTIuMDggQzEyMi41NTYsMzIzLjUyNiAxODAuNDc0LDM4MS40NDQgMjUxLjkyMSwzODEuNDQ0IEMzMjMuMzY3LDM4MS40NDQgMzgxLjI4NSwzMjMuNTI2IDM4MS4yODUsMjUyLjA4IEMzODEuMjg1LDE4MC42MzMgMzIzLjM2NywxMjIuNzE1IDI1MS45MjEsMTIyLjcxNSBaIiBpZD0iRmlsbC00IiBmaWxsPSIjRkZGRkZGIj48L3BhdGg+ICAgICAgICA8cGF0aCBkPSJNNDE2LjYyNywxMTcuNjA0IEM0MTYuNjI3LDEzNC4zIDQwMy4wOTIsMTQ3LjgzNCAzODYuMzk2LDE0Ny44MzQgQzM2OS43MDEsMTQ3LjgzNCAzNTYuMTY2LDEzNC4zIDM1Ni4xNjYsMTE3LjYwNCBDMzU2LjE2NiwxMDAuOTA4IDM2OS43MDEsODcuMzczIDM4Ni4zOTYsODcuMzczIEM0MDMuMDkyLDg3LjM3MyA0MTYuNjI3LDEwMC45MDggNDE2LjYyNywxMTcuNjA0IiBpZD0iRmlsbC01IiBmaWxsPSIjRkZGRkZGIj48L3BhdGg+ICAgIDwvZz48L3N2Zz4=);\n\t\t}\n\n\t\t/* stylelint-disable-next-line no-descending-specificity */\n\t\t& .ck-media__placeholder__url__text {\n\t\t\tcolor: hsl(302, 100%, 94%);\n\n\t\t\t&:hover {\n\t\t\t\tcolor: hsl(0, 0%, 100%);\n\t\t\t}\n\t\t}\n\t}\n\n\t&[data-oembed-url*="twitter.com"] .ck.ck-media__placeholder {\n\t\t/* Use gradient to contrast with focused widget (ckeditor/ckeditor5-media-embed#22). */\n\t\tbackground: linear-gradient( to right, hsl(201, 85%, 70%), hsl(201, 85%, 35%) );\n\n\t\t& .ck-media__placeholder__icon {\n\t\t\tbackground-image: url(data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0idXRmLTgiPz48c3ZnIHZlcnNpb249IjEuMSIgaWQ9IldoaXRlIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHhtbG5zOnhsaW5rPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5L3hsaW5rIiB4PSIwcHgiIHk9IjBweCIgdmlld0JveD0iMCAwIDQwMCA0MDAiIHN0eWxlPSJlbmFibGUtYmFja2dyb3VuZDpuZXcgMCAwIDQwMCA0MDA7IiB4bWw6c3BhY2U9InByZXNlcnZlIj48c3R5bGUgdHlwZT0idGV4dC9jc3MiPi5zdDB7ZmlsbDojRkZGRkZGO308L3N0eWxlPjxwYXRoIGNsYXNzPSJzdDAiIGQ9Ik00MDAsMjAwYzAsMTEwLjUtODkuNSwyMDAtMjAwLDIwMFMwLDMxMC41LDAsMjAwUzg5LjUsMCwyMDAsMFM0MDAsODkuNSw0MDAsMjAweiBNMTYzLjQsMzA1LjVjODguNywwLDEzNy4yLTczLjUsMTM3LjItMTM3LjJjMC0yLjEsMC00LjItMC4xLTYuMmM5LjQtNi44LDE3LjYtMTUuMywyNC4xLTI1Yy04LjYsMy44LTE3LjksNi40LTI3LjcsNy42YzEwLTYsMTcuNi0xNS40LDIxLjItMjYuN2MtOS4zLDUuNS0xOS42LDkuNS0zMC42LDExLjdjLTguOC05LjQtMjEuMy0xNS4yLTM1LjItMTUuMmMtMjYuNiwwLTQ4LjIsMjEuNi00OC4yLDQ4LjJjMCwzLjgsMC40LDcuNSwxLjMsMTFjLTQwLjEtMi03NS42LTIxLjItOTkuNC01MC40Yy00LjEsNy4xLTYuNSwxNS40LTYuNSwyNC4yYzAsMTYuNyw4LjUsMzEuNSwyMS41LDQwLjFjLTcuOS0wLjItMTUuMy0yLjQtMjEuOC02YzAsMC4yLDAsMC40LDAsMC42YzAsMjMuNCwxNi42LDQyLjgsMzguNyw0Ny4zYy00LDEuMS04LjMsMS43LTEyLjcsMS43Yy0zLjEsMC02LjEtMC4zLTkuMS0wLjljNi4xLDE5LjIsMjMuOSwzMy4xLDQ1LDMzLjVjLTE2LjUsMTIuOS0zNy4zLDIwLjYtNTkuOSwyMC42Yy0zLjksMC03LjctMC4yLTExLjUtMC43QzExMC44LDI5Ny41LDEzNi4yLDMwNS41LDE2My40LDMwNS41Ii8+PC9zdmc+);\n\t\t}\n\n\t\t& .ck-media__placeholder__url__text {\n\t\t\tcolor: hsl(201, 100%, 86%);\n\n\t\t\t&:hover {\n\t\t\t\tcolor: hsl(0, 0%, 100%);\n\t\t\t}\n\t\t}\n\t}\n}\n'],sourceRoot:""}]);const a=s},3525:(t,e,n)=>{"use strict";n.d(e,{Z:()=>a});var o=n(4015),i=n.n(o),r=n(3645),s=n.n(r)()(i());s.push([t.id,".ck.ck-media-form{align-items:flex-start;display:flex;flex-direction:row;flex-wrap:nowrap}.ck.ck-media-form .ck-labeled-field-view{display:inline-block}.ck.ck-media-form .ck-label{display:none}@media screen and (max-width:600px){.ck.ck-media-form{flex-wrap:wrap}.ck.ck-media-form .ck-labeled-field-view{flex-basis:100%}.ck.ck-media-form .ck-button{flex-basis:50%}}","",{version:3,sources:["webpack://./node_modules/@ckeditor/ckeditor5-media-embed/theme/mediaform.css","webpack://./node_modules/@ckeditor/ckeditor5-ui/theme/mixins/_rwd.css"],names:[],mappings:"AAOA,kBAEC,sBAAuB,CADvB,YAAa,CAEb,kBAAmB,CACnB,gBAqBD,CAnBC,yCACC,oBACD,CAEA,4BACC,YACD,CCbA,oCDCD,kBAeE,cAUF,CARE,yCACC,eACD,CAEA,6BACC,cACD,CCtBD",sourcesContent:['/*\n * Copyright (c) 2003-2022, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n@import "@ckeditor/ckeditor5-ui/theme/mixins/_rwd.css";\n\n.ck.ck-media-form {\n\tdisplay: flex;\n\talign-items: flex-start;\n\tflex-direction: row;\n\tflex-wrap: nowrap;\n\n\t& .ck-labeled-field-view {\n\t\tdisplay: inline-block;\n\t}\n\n\t& .ck-label {\n\t\tdisplay: none;\n\t}\n\n\t@mixin ck-media-phone {\n\t\tflex-wrap: wrap;\n\n\t\t& .ck-labeled-field-view {\n\t\t\tflex-basis: 100%;\n\t\t}\n\n\t\t& .ck-button {\n\t\t\tflex-basis: 50%;\n\t\t}\n\t}\n}\n',"/*\n * Copyright (c) 2003-2022, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n@define-mixin ck-media-phone {\n\t@media screen and (max-width: 600px) {\n\t\t@mixin-content;\n\t}\n}\n"],sourceRoot:""}]);const a=s},671:(t,e,n)=>{"use strict";n.d(e,{Z:()=>a});var o=n(4015),i=n.n(o),r=n(3645),s=n.n(r)()(i());s.push([t.id,'.ck-source-editing-area{overflow:hidden;position:relative}.ck-source-editing-area textarea,.ck-source-editing-area:after{border:1px solid transparent;font-family:monospace;font-size:var(--ck-font-size-normal);line-height:var(--ck-line-height-base);margin:0;padding:var(--ck-spacing-large);white-space:pre-wrap}.ck-source-editing-area:after{content:attr(data-value) " ";display:block;visibility:hidden}.ck-source-editing-area textarea{border-color:var(--ck-color-base-border);border-radius:0;box-sizing:border-box;height:100%;outline:none;overflow:hidden;position:absolute;resize:none;width:100%}.ck-rounded-corners .ck-source-editing-area textarea,.ck-source-editing-area textarea.ck-rounded-corners{border-radius:var(--ck-border-radius);border-top-left-radius:0;border-top-right-radius:0}.ck-source-editing-area textarea:not([readonly]):focus{border:var(--ck-focus-ring);box-shadow:var(--ck-inner-shadow),0 0;outline:none}',"",{version:3,sources:["webpack://./node_modules/@ckeditor/ckeditor5-source-editing/theme/sourceediting.css","webpack://./node_modules/@ckeditor/ckeditor5-theme-lark/theme/mixins/_rounded.css","webpack://./node_modules/@ckeditor/ckeditor5-theme-lark/theme/mixins/_focus.css","webpack://./node_modules/@ckeditor/ckeditor5-theme-lark/theme/mixins/_shadow.css"],names:[],mappings:"AASA,wBAEC,eAAgB,CADhB,iBAED,CAEA,+DAIC,4BAA6B,CAG7B,qBAAsB,CADtB,oCAAqC,CADrC,sCAAuC,CAFvC,QAAS,CADT,+BAAgC,CAMhC,oBACD,CAEA,8BACC,4BAA6B,CAE7B,aAAc,CADd,iBAED,CAEA,iCASC,wCAAyC,CC7BzC,eAAgB,CD2BhB,qBAAsB,CAJtB,WAAY,CAEZ,YAAa,CACb,eAAgB,CALhB,iBAAkB,CAGlB,WAAY,CAFZ,UAkBD,CApBA,yGChBE,qCAAsC,CD4BtC,wBAAyB,CACzB,yBAOF,CAJC,uDEpCA,2BAA2B,CCF3B,qCAA8B,CDC9B,YFwCA",sourcesContent:['/*\n * Copyright (c) 2003-2022, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n@import "@ckeditor/ckeditor5-theme-lark/theme/mixins/_rounded.css";\n@import "@ckeditor/ckeditor5-theme-lark/theme/mixins/_focus.css";\n@import "@ckeditor/ckeditor5-theme-lark/theme/mixins/_shadow.css";\n\n.ck-source-editing-area {\n\tposition: relative;\n\toverflow: hidden;\n}\n\n.ck-source-editing-area::after,\n.ck-source-editing-area textarea {\n\tpadding: var(--ck-spacing-large);\n\tmargin: 0;\n\tborder: 1px solid transparent;\n\tline-height: var(--ck-line-height-base);\n\tfont-size: var(--ck-font-size-normal);\n\tfont-family: monospace;\n\twhite-space: pre-wrap;\n}\n\n.ck-source-editing-area::after {\n\tcontent: attr(data-value) " ";\n\tvisibility: hidden;\n\tdisplay: block;\n}\n\n.ck-source-editing-area textarea {\n\tposition: absolute;\n\twidth: 100%;\n\theight: 100%;\n\tresize: none;\n\toutline: none;\n\toverflow: hidden;\n\tbox-sizing: border-box;\n\n\tborder-color: var(--ck-color-base-border);\n\n\t@mixin ck-rounded-corners {\n\t\tborder-top-left-radius: 0;\n\t\tborder-top-right-radius: 0;\n\t}\n\n\t&:not([readonly]):focus {\n\t\t@mixin ck-focus-ring;\n\t\t@mixin ck-box-shadow var(--ck-inner-shadow);\n\t}\n}\n',"/*\n * Copyright (c) 2003-2022, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n/**\n * Implements rounded corner interface for .ck-rounded-corners class.\n *\n * @see $ck-border-radius\n */\n@define-mixin ck-rounded-corners {\n\tborder-radius: 0;\n\n\t@nest .ck-rounded-corners &,\n\t&.ck-rounded-corners {\n\t\tborder-radius: var(--ck-border-radius);\n\t\t@mixin-content;\n\t}\n}\n","/*\n * Copyright (c) 2003-2022, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n/**\n * A visual style of focused element's border.\n */\n@define-mixin ck-focus-ring {\n\t/* Disable native outline. */\n\toutline: none;\n\tborder: var(--ck-focus-ring)\n}\n","/*\n * Copyright (c) 2003-2022, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n/**\n * A helper to combine multiple shadows.\n */\n@define-mixin ck-box-shadow $shadowA, $shadowB: 0 0 {\n\tbox-shadow: $shadowA, $shadowB;\n}\n\n/**\n * Gives an element a drop shadow so it looks like a floating panel.\n */\n@define-mixin ck-drop-shadow {\n\t@mixin ck-box-shadow var(--ck-drop-shadow);\n}\n"],sourceRoot:""}]);const a=s},4046:(t,e,n)=>{"use strict";n.d(e,{Z:()=>a});var o=n(4015),i=n.n(o),r=n(3645),s=n.n(r)()(i());s.push([t.id,".ck.ck-character-grid{max-width:100%}.ck.ck-character-grid .ck-character-grid__tiles{display:grid}:root{--ck-character-grid-tile-size:24px}.ck.ck-character-grid{max-height:200px;overflow-x:hidden;overflow-y:auto;width:350px}.ck.ck-character-grid .ck-character-grid__tiles{grid-gap:var(--ck-spacing-standard);grid-template-columns:repeat(auto-fit,minmax(var(--ck-character-grid-tile-size),1fr));margin:var(--ck-spacing-standard) var(--ck-spacing-large)}.ck.ck-character-grid .ck-character-grid__tile{border:0;font-size:1.2em;height:var(--ck-character-grid-tile-size);min-height:var(--ck-character-grid-tile-size);min-width:var(--ck-character-grid-tile-size);padding:0;transition:box-shadow .2s ease;width:var(--ck-character-grid-tile-size)}.ck.ck-character-grid .ck-character-grid__tile:focus:not(.ck-disabled),.ck.ck-character-grid .ck-character-grid__tile:hover:not(.ck-disabled){border:0;box-shadow:inset 0 0 0 1px var(--ck-color-base-background),0 0 0 2px var(--ck-color-focus-border)}.ck.ck-character-grid .ck-character-grid__tile .ck-button__label{line-height:var(--ck-character-grid-tile-size);text-align:center;width:100%}","",{version:3,sources:["webpack://./node_modules/@ckeditor/ckeditor5-special-characters/theme/charactergrid.css","webpack://./node_modules/@ckeditor/ckeditor5-theme-lark/theme/ckeditor5-special-characters/charactergrid.css"],names:[],mappings:"AAKA,sBACC,cAKD,CAHC,gDACC,YACD,CCHD,MACC,kCACD,CAEA,sBAIC,gBAAiB,CAFjB,iBAAkB,CADlB,eAAgB,CAEhB,WAiCD,CA9BC,gDAGC,mCAAoC,CAFpC,qFAAwF,CACxF,yDAED,CAEA,+CAQC,QAAS,CAHT,eAAgB,CAHhB,yCAA0C,CAE1C,6CAA8C,CAD9C,4CAA6C,CAG7C,SAAU,CACV,8BAA+B,CAN/B,wCAsBD,CAbC,8IAGC,QAAS,CACT,iGACD,CAGA,iEACC,8CAA+C,CAE/C,iBAAkB,CADlB,UAED",sourcesContent:["/*\n * Copyright (c) 2003-2022, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n.ck.ck-character-grid {\n\tmax-width: 100%;\n\t\n\t& .ck-character-grid__tiles {\n\t\tdisplay: grid;\n\t}\n}\n",'/*\n * Copyright (c) 2003-2022, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n@import "../mixins/_rounded.css";\n\n:root {\n\t--ck-character-grid-tile-size: 24px;\n}\n\n.ck.ck-character-grid {\n\toverflow-y: auto;\n\toverflow-x: hidden;\n\twidth: 350px;\n\tmax-height: 200px;\n\n\t& .ck-character-grid__tiles {\n\t\tgrid-template-columns: repeat(auto-fit, minmax(var(--ck-character-grid-tile-size), 1fr));\n\t\tmargin: var(--ck-spacing-standard) var(--ck-spacing-large);\n\t\tgrid-gap: var(--ck-spacing-standard);\n\t}\n\n\t& .ck-character-grid__tile {\n\t\twidth: var(--ck-character-grid-tile-size);\n\t\theight: var(--ck-character-grid-tile-size);\n\t\tmin-width: var(--ck-character-grid-tile-size);\n\t\tmin-height: var(--ck-character-grid-tile-size);\n\t\tfont-size: 1.2em;\n\t\tpadding: 0;\n\t\ttransition: .2s ease box-shadow;\n\t\tborder: 0;\n\n\t\t&:focus:not( .ck-disabled ),\n\t\t&:hover:not( .ck-disabled ) {\n\t\t\t/* Disable the default .ck-button\'s border ring. */\n\t\t\tborder: 0;\n\t\t\tbox-shadow: inset 0 0 0 1px var(--ck-color-base-background), 0 0 0 2px var(--ck-color-focus-border);\n\t\t}\n\n\t\t/* Make sure the glyph is rendered in the center of the button */\n\t\t& .ck-button__label {\n\t\t\tline-height: var(--ck-character-grid-tile-size);\n\t\t\twidth: 100%;\n\t\t\ttext-align: center;\n\t\t}\n\t}\n}\n'],sourceRoot:""}]);const a=s},4779:(t,e,n)=>{"use strict";n.d(e,{Z:()=>a});var o=n(4015),i=n.n(o),r=n(3645),s=n.n(r)()(i());s.push([t.id,".ck.ck-character-info{border-top:1px solid var(--ck-color-base-border);display:flex;justify-content:space-between;padding:var(--ck-spacing-small) var(--ck-spacing-large)}.ck.ck-character-info>*{font-size:var(--ck-font-size-small);text-transform:uppercase}.ck.ck-character-info .ck-character-info__name{max-width:280px;overflow:hidden;text-overflow:ellipsis}.ck.ck-character-info .ck-character-info__code{opacity:.6}","",{version:3,sources:["webpack://./node_modules/@ckeditor/ckeditor5-special-characters/theme/characterinfo.css","webpack://./node_modules/@ckeditor/ckeditor5-theme-lark/theme/ckeditor5-special-characters/characterinfo.css"],names:[],mappings:"AAKA,sBCEC,gDAAiD,CDDjD,YAAa,CACb,6BAA8B,CCD9B,uDDED,CCCC,wBAEC,mCAAoC,CADpC,wBAED,CAEA,+CACC,eAAgB,CAEhB,eAAgB,CADhB,sBAED,CAEA,+CACC,UACD",sourcesContent:["/*\n * Copyright (c) 2003-2022, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n.ck.ck-character-info {\n\tdisplay: flex;\n\tjustify-content: space-between;\n}\n","/*\n * Copyright (c) 2003-2022, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n.ck.ck-character-info {\n\tpadding: var(--ck-spacing-small) var(--ck-spacing-large);\n\tborder-top: 1px solid var(--ck-color-base-border);\n\n\t& > * {\n\t\ttext-transform: uppercase;\n\t\tfont-size: var(--ck-font-size-small);\n\t}\n\n\t& .ck-character-info__name {\n\t\tmax-width: 280px;\n\t\ttext-overflow: ellipsis;\n\t\toverflow: hidden;\n\t}\n\n\t& .ck-character-info__code {\n\t\topacity: .6;\n\t}\n}\n"],sourceRoot:""}]);const a=s},8170:(t,e,n)=>{"use strict";n.d(e,{Z:()=>a});var o=n(4015),i=n.n(o),r=n(3645),s=n.n(r)()(i());s.push([t.id,".ck.ck-special-characters-navigation>.ck-label{max-width:160px;overflow:hidden;text-overflow:ellipsis}.ck.ck-special-characters-navigation>.ck-dropdown .ck-dropdown__panel{max-height:250px;overflow-x:hidden;overflow-y:auto}","",{version:3,sources:["webpack://./node_modules/@ckeditor/ckeditor5-theme-lark/theme/ckeditor5-special-characters/specialcharacters.css"],names:[],mappings:"AASC,+CACC,eAAgB,CAEhB,eAAgB,CADhB,sBAED,CAEA,sEAEC,gBAAiB,CAEjB,iBAAkB,CADlB,eAED",sourcesContent:['/*\n * Copyright (c) 2003-2022, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n@import "@ckeditor/ckeditor5-ui/theme/mixins/_dir.css";\n\n.ck.ck-special-characters-navigation {\n\n\t& > .ck-label {\n\t\tmax-width: 160px;\n\t\ttext-overflow: ellipsis;\n\t\toverflow: hidden;\n\t}\n\n\t& > .ck-dropdown .ck-dropdown__panel {\n\t\t/* There could be dozens of categories available. Use scroll to prevent a 10e6px dropdown. */\n\t\tmax-height: 250px;\n\t\toverflow-y: auto;\n\t\toverflow-x: hidden;\n\t}\n}\n'],sourceRoot:""}]);const a=s},4082:(t,e,n)=>{"use strict";n.d(e,{Z:()=>a});var o=n(4015),i=n.n(o),r=n(3645),s=n.n(r)()(i());s.push([t.id,".ck.ck-input-color{display:flex;flex-direction:row-reverse;width:100%}.ck.ck-input-color>input.ck.ck-input-text{flex-grow:1;min-width:auto}.ck.ck-input-color>div.ck.ck-dropdown{min-width:auto}.ck.ck-input-color>div.ck.ck-dropdown>.ck-input-color__button .ck-dropdown__arrow{display:none}.ck.ck-input-color .ck.ck-input-color__button{display:flex}.ck.ck-input-color .ck.ck-input-color__button .ck.ck-input-color__button__preview{overflow:hidden;position:relative}.ck.ck-input-color .ck.ck-input-color__button .ck.ck-input-color__button__preview>.ck.ck-input-color__button__preview__no-color-indicator{display:block;position:absolute}[dir=ltr] .ck.ck-input-color>.ck.ck-input-text{border-bottom-right-radius:0;border-top-right-radius:0}[dir=rtl] .ck.ck-input-color>.ck.ck-input-text{border-bottom-left-radius:0;border-top-left-radius:0}.ck.ck-input-color>.ck.ck-dropdown>.ck.ck-button.ck-input-color__button{padding:0}[dir=ltr] .ck.ck-input-color>.ck.ck-dropdown>.ck.ck-button.ck-input-color__button{border-bottom-left-radius:0;border-left-width:0;border-top-left-radius:0}[dir=rtl] .ck.ck-input-color>.ck.ck-dropdown>.ck.ck-button.ck-input-color__button{border-bottom-right-radius:0;border-right-width:0;border-top-right-radius:0}.ck.ck-input-color>.ck.ck-dropdown>.ck.ck-button.ck-input-color__button.ck-disabled{background:var(--ck-color-input-disabled-background)}.ck.ck-input-color>.ck.ck-dropdown>.ck.ck-button.ck-input-color__button>.ck.ck-input-color__button__preview{border-radius:0}.ck-rounded-corners .ck.ck-input-color>.ck.ck-dropdown>.ck.ck-button.ck-input-color__button>.ck.ck-input-color__button__preview,.ck.ck-input-color>.ck.ck-dropdown>.ck.ck-button.ck-input-color__button>.ck.ck-input-color__button__preview.ck-rounded-corners{border-radius:var(--ck-border-radius)}.ck.ck-input-color>.ck.ck-dropdown>.ck.ck-button.ck-input-color__button>.ck.ck-input-color__button__preview{border:1px solid var(--ck-color-input-border);height:20px;width:20px}.ck.ck-input-color>.ck.ck-dropdown>.ck.ck-button.ck-input-color__button>.ck.ck-input-color__button__preview>.ck.ck-input-color__button__preview__no-color-indicator{background:red;border-radius:2px;height:150%;left:50%;top:-30%;transform:rotate(45deg);transform-origin:50%;width:8%}.ck.ck-input-color .ck.ck-input-color__remove-color{border-bottom:1px solid var(--ck-color-input-border);border-bottom-left-radius:0;border-bottom-right-radius:0;padding:calc(var(--ck-spacing-standard)/2) var(--ck-spacing-standard);width:100%}[dir=ltr] .ck.ck-input-color .ck.ck-input-color__remove-color{border-top-right-radius:0}[dir=rtl] .ck.ck-input-color .ck.ck-input-color__remove-color{border-top-left-radius:0}.ck.ck-input-color .ck.ck-input-color__remove-color .ck.ck-icon{margin-right:var(--ck-spacing-standard)}[dir=rtl] .ck.ck-input-color .ck.ck-input-color__remove-color .ck.ck-icon{margin-left:var(--ck-spacing-standard);margin-right:0}","",{version:3,sources:["webpack://./node_modules/@ckeditor/ckeditor5-table/theme/colorinput.css","webpack://./node_modules/@ckeditor/ckeditor5-theme-lark/theme/ckeditor5-table/colorinput.css","webpack://./node_modules/@ckeditor/ckeditor5-theme-lark/theme/mixins/_rounded.css"],names:[],mappings:"AAKA,mBAEC,YAAa,CACb,0BAA2B,CAF3B,UAgCD,CA5BC,0CAEC,WAAY,CADZ,cAED,CAEA,sCACC,cAMD,CAHC,kFACC,YACD,CAGD,8CAEC,YAWD,CATC,kFAEC,eAAgB,CADhB,iBAOD,CAJC,0IAEC,aAAc,CADd,iBAED,CC1BF,+CAGE,4BAA6B,CAD7B,yBAQF,CAVA,+CAQE,2BAA4B,CAD5B,wBAGF,CAGC,wEACC,SAoCD,CArCA,kFAME,2BAA4B,CAF5B,mBAAoB,CACpB,wBAgCF,CArCA,kFAYE,4BAA6B,CAF7B,oBAAqB,CACrB,yBA0BF,CAtBC,oFACC,oDACD,CAEA,4GC9BF,eD+CE,CAjBA,+PC1BD,qCD2CC,CAjBA,4GAKC,6CAA8C,CAD9C,WAAY,CADZ,UAcD,CAVC,oKAKC,cAA6B,CAC7B,iBAAkB,CAHlB,WAAY,CADZ,QAAS,CADT,QAAS,CAMT,uBAAwB,CACxB,oBAAqB,CAJrB,QAKD,CAKH,oDAEC,oDAAqD,CAGrD,2BAA4B,CAC5B,4BAA6B,CAH7B,qEAAwE,CAFxE,UAuBD,CAxBA,8DASE,yBAeF,CAxBA,8DAaE,wBAWF,CARC,gEACC,uCAMD,CAPA,0EAKE,sCAAuC,CADvC,cAGF",sourcesContent:["/*\n * Copyright (c) 2003-2022, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n.ck.ck-input-color {\n\twidth: 100%;\n\tdisplay: flex;\n\tflex-direction: row-reverse;\n\n\t& > input.ck.ck-input-text {\n\t\tmin-width: auto;\n\t\tflex-grow: 1;\n\t}\n\n\t& > div.ck.ck-dropdown {\n\t\tmin-width: auto;\n\n\t\t/* This dropdown has no arrow but a color preview instead. */\n\t\t& > .ck-input-color__button .ck-dropdown__arrow {\n\t\t\tdisplay: none;\n\t\t}\n\t}\n\n\t& .ck.ck-input-color__button {\n\t\t/* Resolving issue with misaligned buttons on Safari (see #10589) */\n\t\tdisplay: flex;\n\n\t\t& .ck.ck-input-color__button__preview {\n\t\t\tposition: relative;\n\t\t\toverflow: hidden;\n\n\t\t\t& > .ck.ck-input-color__button__preview__no-color-indicator {\n\t\t\t\tposition: absolute;\n\t\t\t\tdisplay: block;\n\t\t\t}\n\t\t}\n\t}\n}\n",'/*\n * Copyright (c) 2003-2022, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n@import "@ckeditor/ckeditor5-ui/theme/mixins/_dir.css";\n@import "../mixins/_rounded.css";\n\n.ck.ck-input-color {\n\t& > .ck.ck-input-text {\n\t\t@mixin ck-dir ltr {\n\t\t\tborder-top-right-radius: 0;\n\t\t\tborder-bottom-right-radius: 0;\n\t\t}\n\n\t\t@mixin ck-dir rtl {\n\t\t\tborder-top-left-radius: 0;\n\t\t\tborder-bottom-left-radius: 0;\n\t\t}\n\t}\n\n\t& > .ck.ck-dropdown {\n\t\t& > .ck.ck-button.ck-input-color__button {\n\t\t\tpadding: 0;\n\n\t\t\t@mixin ck-dir ltr {\n\t\t\t\tborder-left-width: 0;\n\t\t\t\tborder-top-left-radius: 0;\n\t\t\t\tborder-bottom-left-radius: 0;\n\t\t\t}\n\n\t\t\t@mixin ck-dir rtl {\n\t\t\t\tborder-right-width: 0;\n\t\t\t\tborder-top-right-radius: 0;\n\t\t\t\tborder-bottom-right-radius: 0;\n\t\t\t}\n\n\t\t\t&.ck-disabled {\n\t\t\t\tbackground: var(--ck-color-input-disabled-background);\n\t\t\t}\n\n\t\t\t& > .ck.ck-input-color__button__preview {\n\t\t\t\t@mixin ck-rounded-corners;\n\n\t\t\t\twidth: 20px;\n\t\t\t\theight: 20px;\n\t\t\t\tborder: 1px solid var(--ck-color-input-border);\n\n\t\t\t\t& > .ck.ck-input-color__button__preview__no-color-indicator {\n\t\t\t\t\ttop: -30%;\n\t\t\t\t\tleft: 50%;\n\t\t\t\t\theight: 150%;\n\t\t\t\t\twidth: 8%;\n\t\t\t\t\tbackground: hsl(0, 100%, 50%);\n\t\t\t\t\tborder-radius: 2px;\n\t\t\t\t\ttransform: rotate(45deg);\n\t\t\t\t\ttransform-origin: 50%;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}\n\n\t& .ck.ck-input-color__remove-color {\n\t\twidth: 100%;\n\t\tborder-bottom: 1px solid var(--ck-color-input-border);\n\t\tpadding: calc(var(--ck-spacing-standard) / 2) var(--ck-spacing-standard);\n\n\t\tborder-bottom-left-radius: 0;\n\t\tborder-bottom-right-radius: 0;\n\n\t\t@mixin ck-dir ltr {\n\t\t\tborder-top-right-radius: 0;\n\t\t}\n\n\t\t@mixin ck-dir rtl {\n\t\t\tborder-top-left-radius: 0;\n\t\t}\n\n\t\t& .ck.ck-icon {\n\t\t\tmargin-right: var(--ck-spacing-standard);\n\n\t\t\t@mixin ck-dir rtl {\n\t\t\t\tmargin-right: 0;\n\t\t\t\tmargin-left: var(--ck-spacing-standard);\n\t\t\t}\n\t\t}\n\t}\n}\n',"/*\n * Copyright (c) 2003-2022, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n/**\n * Implements rounded corner interface for .ck-rounded-corners class.\n *\n * @see $ck-border-radius\n */\n@define-mixin ck-rounded-corners {\n\tborder-radius: 0;\n\n\t@nest .ck-rounded-corners &,\n\t&.ck-rounded-corners {\n\t\tborder-radius: var(--ck-border-radius);\n\t\t@mixin-content;\n\t}\n}\n"],sourceRoot:""}]);const a=s},4880:(t,e,n)=>{"use strict";n.d(e,{Z:()=>a});var o=n(4015),i=n.n(o),r=n(3645),s=n.n(r)()(i());s.push([t.id,".ck.ck-form{padding:0 0 var(--ck-spacing-large)}.ck.ck-form:focus{outline:none}.ck.ck-form .ck.ck-input-text{min-width:100%;width:0}.ck.ck-form .ck.ck-dropdown{min-width:100%}.ck.ck-form .ck.ck-dropdown .ck-dropdown__button:not(:focus){border:1px solid var(--ck-color-base-border)}.ck.ck-form .ck.ck-dropdown .ck-dropdown__button .ck-button__label{width:100%}","",{version:3,sources:["webpack://./node_modules/@ckeditor/ckeditor5-theme-lark/theme/ckeditor5-table/form.css"],names:[],mappings:"AAKA,YACC,mCAyBD,CAvBC,kBAEC,YACD,CAEA,8BACC,cAAe,CACf,OACD,CAEA,4BACC,cAWD,CARE,6DACC,4CACD,CAEA,mEACC,UACD",sourcesContent:["/*\n * Copyright (c) 2003-2022, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n.ck.ck-form {\n\tpadding: 0 0 var(--ck-spacing-large);\n\n\t&:focus {\n\t\t/* See: https://github.com/ckeditor/ckeditor5/issues/4773 */\n\t\toutline: none;\n\t}\n\n\t& .ck.ck-input-text {\n\t\tmin-width: 100%;\n\t\twidth: 0;\n\t}\n\n\t& .ck.ck-dropdown {\n\t\tmin-width: 100%;\n\n\t\t& .ck-dropdown__button {\n\t\t\t&:not(:focus) {\n\t\t\t\tborder: 1px solid var(--ck-color-base-border);\n\t\t\t}\n\n\t\t\t& .ck-button__label {\n\t\t\t\twidth: 100%;\n\t\t\t}\n\t\t}\n\t}\n}\n"],sourceRoot:""}]);const a=s},9865:(t,e,n)=>{"use strict";n.d(e,{Z:()=>a});var o=n(4015),i=n.n(o),r=n(3645),s=n.n(r)()(i());s.push([t.id,".ck.ck-form__row{display:flex;flex-direction:row;flex-wrap:nowrap;justify-content:space-between}.ck.ck-form__row>:not(.ck-label){flex-grow:1}.ck.ck-form__row.ck-table-form__action-row .ck-button-cancel,.ck.ck-form__row.ck-table-form__action-row .ck-button-save{justify-content:center}.ck.ck-form__row{padding:var(--ck-spacing-standard) var(--ck-spacing-large) 0}[dir=ltr] .ck.ck-form__row>:not(.ck-label)+*{margin-left:var(--ck-spacing-large)}[dir=rtl] .ck.ck-form__row>:not(.ck-label)+*{margin-right:var(--ck-spacing-large)}.ck.ck-form__row>.ck-label{min-width:100%;width:100%}.ck.ck-form__row.ck-table-form__action-row{margin-top:var(--ck-spacing-large)}.ck.ck-form__row.ck-table-form__action-row .ck-button .ck-button__label{color:var(--ck-color-text)}","",{version:3,sources:["webpack://./node_modules/@ckeditor/ckeditor5-table/theme/formrow.css","webpack://./node_modules/@ckeditor/ckeditor5-theme-lark/theme/ckeditor5-table/formrow.css"],names:[],mappings:"AAKA,iBACC,YAAa,CACb,kBAAmB,CACnB,gBAAiB,CACjB,6BAaD,CAVC,iCACC,WACD,CAGC,wHAEC,sBACD,CCbF,iBACC,4DA2BD,CAvBE,6CAEE,mCAMF,CARA,6CAME,oCAEF,CAGD,2BAEC,cAAe,CADf,UAED,CAEA,2CACC,kCAKD,CAHC,wEACC,0BACD",sourcesContent:["/*\n * Copyright (c) 2003-2022, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n.ck.ck-form__row {\n\tdisplay: flex;\n\tflex-direction: row;\n\tflex-wrap: nowrap;\n\tjustify-content: space-between;\n\n\t/* Ignore labels that work as fieldset legends */\n\t& > *:not(.ck-label) {\n\t\tflex-grow: 1;\n\t}\n\n\t&.ck-table-form__action-row {\n\t\t& .ck-button-save,\n\t\t& .ck-button-cancel {\n\t\t\tjustify-content: center;\n\t\t}\n\t}\n}\n",'/*\n * Copyright (c) 2003-2022, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n@import "@ckeditor/ckeditor5-ui/theme/mixins/_dir.css";\n\n.ck.ck-form__row {\n\tpadding: var(--ck-spacing-standard) var(--ck-spacing-large) 0;\n\n\t/* Ignore labels that work as fieldset legends */\n\t& > *:not(.ck-label) {\n\t\t& + * {\n\t\t\t@mixin ck-dir ltr {\n\t\t\t\tmargin-left: var(--ck-spacing-large);\n\t\t\t}\n\n\t\t\t@mixin ck-dir rtl {\n\t\t\t\tmargin-right: var(--ck-spacing-large);\n\t\t\t}\n\t\t}\n\t}\n\n\t& > .ck-label {\n\t\twidth: 100%;\n\t\tmin-width: 100%;\n\t}\n\n\t&.ck-table-form__action-row {\n\t\tmargin-top: var(--ck-spacing-large);\n\n\t\t& .ck-button .ck-button__label {\n\t\t\tcolor: var(--ck-color-text);\n\t\t}\n\t}\n}\n'],sourceRoot:""}]);const a=s},8085:(t,e,n)=>{"use strict";n.d(e,{Z:()=>a});var o=n(4015),i=n.n(o),r=n(3645),s=n.n(r)()(i());s.push([t.id,".ck .ck-insert-table-dropdown__grid{display:flex;flex-direction:row;flex-wrap:wrap}:root{--ck-insert-table-dropdown-padding:10px;--ck-insert-table-dropdown-box-height:11px;--ck-insert-table-dropdown-box-width:12px;--ck-insert-table-dropdown-box-margin:1px}.ck .ck-insert-table-dropdown__grid{padding:var(--ck-insert-table-dropdown-padding) var(--ck-insert-table-dropdown-padding) 0;width:calc(var(--ck-insert-table-dropdown-box-width)*10 + var(--ck-insert-table-dropdown-box-margin)*20 + var(--ck-insert-table-dropdown-padding)*2)}.ck .ck-insert-table-dropdown__label{text-align:center}.ck .ck-insert-table-dropdown-grid-box{border:1px solid var(--ck-color-base-border);border-radius:1px;height:var(--ck-insert-table-dropdown-box-height);margin:var(--ck-insert-table-dropdown-box-margin);width:var(--ck-insert-table-dropdown-box-width)}.ck .ck-insert-table-dropdown-grid-box.ck-on{background:var(--ck-color-focus-outer-shadow);border-color:var(--ck-color-focus-border)}","",{version:3,sources:["webpack://./node_modules/@ckeditor/ckeditor5-table/theme/inserttable.css","webpack://./node_modules/@ckeditor/ckeditor5-theme-lark/theme/ckeditor5-table/inserttable.css"],names:[],mappings:"AAKA,oCACC,YAAa,CACb,kBAAmB,CACnB,cACD,CCJA,MACC,uCAAwC,CACxC,0CAA2C,CAC3C,yCAA0C,CAC1C,yCACD,CAEA,oCAGC,yFAA0F,CAD1F,oJAED,CAEA,qCACC,iBACD,CAEA,uCAIC,4CAA6C,CAC7C,iBAAkB,CAHlB,iDAAkD,CAClD,iDAAkD,CAFlD,+CAUD,CAJC,6CAEC,6CAA8C,CAD9C,yCAED",sourcesContent:["/*\n * Copyright (c) 2003-2022, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n.ck .ck-insert-table-dropdown__grid {\n\tdisplay: flex;\n\tflex-direction: row;\n\tflex-wrap: wrap;\n}\n","/*\n * Copyright (c) 2003-2022, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n:root {\n\t--ck-insert-table-dropdown-padding: 10px;\n\t--ck-insert-table-dropdown-box-height: 11px;\n\t--ck-insert-table-dropdown-box-width: 12px;\n\t--ck-insert-table-dropdown-box-margin: 1px;\n}\n\n.ck .ck-insert-table-dropdown__grid {\n\t/* The width of a container should match 10 items in a row so there will be a 10x10 grid. */\n\twidth: calc(var(--ck-insert-table-dropdown-box-width) * 10 + var(--ck-insert-table-dropdown-box-margin) * 20 + var(--ck-insert-table-dropdown-padding) * 2);\n\tpadding: var(--ck-insert-table-dropdown-padding) var(--ck-insert-table-dropdown-padding) 0;\n}\n\n.ck .ck-insert-table-dropdown__label {\n\ttext-align: center;\n}\n\n.ck .ck-insert-table-dropdown-grid-box {\n\twidth: var(--ck-insert-table-dropdown-box-width);\n\theight: var(--ck-insert-table-dropdown-box-height);\n\tmargin: var(--ck-insert-table-dropdown-box-margin);\n\tborder: 1px solid var(--ck-color-base-border);\n\tborder-radius: 1px;\n\n\t&.ck-on {\n\t\tborder-color: var(--ck-color-focus-border);\n\t\tbackground: var(--ck-color-focus-outer-shadow);\n\t}\n}\n\n"],sourceRoot:""}]);const a=s},4104:(t,e,n)=>{"use strict";n.d(e,{Z:()=>a});var o=n(4015),i=n.n(o),r=n(3645),s=n.n(r)()(i());s.push([t.id,".ck-content .table{display:table;margin:.9em auto}.ck-content .table table{border:1px double #b3b3b3;border-collapse:collapse;border-spacing:0;height:100%;width:100%}.ck-content .table table td,.ck-content .table table th{border:1px solid #bfbfbf;min-width:2em;padding:.4em}.ck-content .table table th{background:rgba(0,0,0,.05);font-weight:700}.ck-content[dir=rtl] .table th{text-align:right}.ck-content[dir=ltr] .table th{text-align:left}.ck-editor__editable .ck-table-bogus-paragraph{display:inline-block;width:100%}","",{version:3,sources:["webpack://./node_modules/@ckeditor/ckeditor5-table/theme/table.css"],names:[],mappings:"AAKA,mBAKC,aAAc,CADd,gBAiCD,CA9BC,yBAYC,yBAAkC,CAVlC,wBAAyB,CACzB,gBAAiB,CAKjB,WAAY,CADZ,UAsBD,CAfC,wDAQC,wBAAiC,CANjC,aAAc,CACd,YAMD,CAEA,4BAEC,0BAA+B,CAD/B,eAED,CAMF,+BACC,gBACD,CAEA,+BACC,eACD,CAEA,+CAKC,oBAAqB,CAMrB,UACD",sourcesContent:['/*\n * Copyright (c) 2003-2022, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n.ck-content .table {\n\t/* Give the table widget some air and center it horizontally */\n\t/* The first value should be equal to --ck-spacing-large variable if used in the editor context\n\tto avoid the content jumping (See https://github.com/ckeditor/ckeditor5/issues/9825). */\n\tmargin: 0.9em auto;\n\tdisplay: table;\n\n\t& table {\n\t\t/* The table cells should have slight borders */\n\t\tborder-collapse: collapse;\n\t\tborder-spacing: 0;\n\n\t\t/* Table width and height are set on the parent
                                                                                                                                                                                                                                                                                                                                            . Make sure the table inside stretches\n\t\tto the full dimensions of the container (https://github.com/ckeditor/ckeditor5/issues/6186). */\n\t\twidth: 100%;\n\t\theight: 100%;\n\n\t\t/* The outer border of the table should be slightly darker than the inner lines.\n\t\tAlso see https://github.com/ckeditor/ckeditor5-table/issues/50. */\n\t\tborder: 1px double hsl(0, 0%, 70%);\n\n\t\t& td,\n\t\t& th {\n\t\t\tmin-width: 2em;\n\t\t\tpadding: .4em;\n\n\t\t\t/* The border is inherited from .ck-editor__nested-editable styles, so theoretically it\'s not necessary here.\n\t\t\tHowever, the border is a content style, so it should use .ck-content (so it works outside the editor).\n\t\t\tHence, the duplication. See https://github.com/ckeditor/ckeditor5/issues/6314 */\n\t\t\tborder: 1px solid hsl(0, 0%, 75%);\n\t\t}\n\n\t\t& th {\n\t\t\tfont-weight: bold;\n\t\t\tbackground: hsla(0, 0%, 0%, 5%);\n\t\t}\n\t}\n}\n\n/* Text alignment of the table header should match the editor settings and override the native browser styling,\nwhen content is available outside the editor. See https://github.com/ckeditor/ckeditor5/issues/6638 */\n.ck-content[dir="rtl"] .table th {\n\ttext-align: right;\n}\n\n.ck-content[dir="ltr"] .table th {\n\ttext-align: left;\n}\n\n.ck-editor__editable .ck-table-bogus-paragraph {\n\t/*\n\t * Use display:inline-block to force Chrome/Safari to limit text mutations to this element.\n\t * See https://github.com/ckeditor/ckeditor5/issues/6062.\n\t */\n\tdisplay: inline-block;\n\n\t/*\n\t * Inline HTML elements nested in the span should always be dimensioned in relation to the whole cell width.\n\t * See https://github.com/ckeditor/ckeditor5/issues/9117.\n\t */\n\twidth: 100%;\n}\n'],sourceRoot:""}]);const a=s},9888:(t,e,n)=>{"use strict";n.d(e,{Z:()=>a});var o=n(4015),i=n.n(o),r=n(3645),s=n.n(r)()(i());s.push([t.id,":root{--ck-color-table-caption-background:#f7f7f7;--ck-color-table-caption-text:#333;--ck-color-table-caption-highlighted-background:#fd0}.ck-content .table>figcaption{background-color:var(--ck-color-table-caption-background);caption-side:top;color:var(--ck-color-table-caption-text);display:table-caption;font-size:.75em;outline-offset:-1px;padding:.6em;text-align:center;word-break:break-word}.ck.ck-editor__editable .table>figcaption.table__caption_highlighted{animation:ck-table-caption-highlight .6s ease-out}.ck.ck-editor__editable .table>figcaption.ck-placeholder:before{overflow:hidden;padding-left:inherit;padding-right:inherit;text-overflow:ellipsis;white-space:nowrap}@keyframes ck-table-caption-highlight{0%{background-color:var(--ck-color-table-caption-highlighted-background)}to{background-color:var(--ck-color-table-caption-background)}}","",{version:3,sources:["webpack://./node_modules/@ckeditor/ckeditor5-table/theme/tablecaption.css"],names:[],mappings:"AAKA,MACC,2CAAoD,CACpD,kCAA8C,CAC9C,oDACD,CAGA,8BAMC,yDAA0D,CAJ1D,gBAAiB,CAGjB,wCAAyC,CAJzC,qBAAsB,CAOtB,eAAgB,CAChB,mBAAoB,CAFpB,YAAa,CAHb,iBAAkB,CADlB,qBAOD,CAIC,qEACC,iDACD,CAEA,gEASC,eAAgB,CARhB,oBAAqB,CACrB,qBAAsB,CAQtB,sBAAuB,CAFvB,kBAGD,CAGD,sCACC,GACC,qEACD,CAEA,GACC,yDACD,CACD",sourcesContent:["/*\n * Copyright (c) 2003-2022, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n:root {\n\t--ck-color-table-caption-background: hsl(0, 0%, 97%);\n\t--ck-color-table-caption-text: hsl(0, 0%, 20%);\n\t--ck-color-table-caption-highlighted-background: hsl(52deg 100% 50%);\n}\n\n/* Content styles */\n.ck-content .table > figcaption {\n\tdisplay: table-caption;\n\tcaption-side: top;\n\tword-break: break-word;\n\ttext-align: center;\n\tcolor: var(--ck-color-table-caption-text);\n\tbackground-color: var(--ck-color-table-caption-background);\n\tpadding: .6em;\n\tfont-size: .75em;\n\toutline-offset: -1px;\n}\n\n/* Editing styles */\n.ck.ck-editor__editable .table > figcaption {\n\t&.table__caption_highlighted {\n\t\tanimation: ck-table-caption-highlight .6s ease-out;\n\t}\n\n\t&.ck-placeholder::before {\n\t\tpadding-left: inherit;\n\t\tpadding-right: inherit;\n\n\t\t/*\n\t\t * Make sure the table caption placeholder doesn't overflow the placeholder area.\n\t\t * See https://github.com/ckeditor/ckeditor5/issues/9162.\n\t\t */\n\t\twhite-space: nowrap;\n\t\toverflow: hidden;\n\t\ttext-overflow: ellipsis;\n\t}\n}\n\n@keyframes ck-table-caption-highlight {\n\t0% {\n\t\tbackground-color: var(--ck-color-table-caption-highlighted-background);\n\t}\n\n\t100% {\n\t\tbackground-color: var(--ck-color-table-caption-background);\n\t}\n}\n"],sourceRoot:""}]);const a=s},5737:(t,e,n)=>{"use strict";n.d(e,{Z:()=>a});var o=n(4015),i=n.n(o),r=n(3645),s=n.n(r)()(i());s.push([t.id,".ck.ck-table-cell-properties-form .ck-form__row.ck-table-cell-properties-form__alignment-row{flex-wrap:wrap}.ck.ck-table-cell-properties-form .ck-form__row.ck-table-cell-properties-form__alignment-row .ck.ck-toolbar:first-of-type{flex-grow:0.57}.ck.ck-table-cell-properties-form .ck-form__row.ck-table-cell-properties-form__alignment-row .ck.ck-toolbar:last-of-type{flex-grow:0.43}.ck.ck-table-cell-properties-form .ck-form__row.ck-table-cell-properties-form__alignment-row .ck.ck-toolbar .ck-button{flex-grow:1}.ck.ck-table-cell-properties-form{width:320px}.ck.ck-table-cell-properties-form .ck-form__row.ck-table-cell-properties-form__padding-row{align-self:flex-end;padding:0;width:25%}.ck.ck-table-cell-properties-form .ck-form__row.ck-table-cell-properties-form__alignment-row .ck.ck-toolbar{background:none;margin-top:var(--ck-spacing-standard)}","",{version:3,sources:["webpack://./node_modules/@ckeditor/ckeditor5-table/theme/tablecellproperties.css","webpack://./node_modules/@ckeditor/ckeditor5-theme-lark/theme/ckeditor5-table/tablecellproperties.css"],names:[],mappings:"AAOE,6FACC,cAiBD,CAdE,0HAEC,cACD,CAEA,yHAEC,cACD,CAEA,uHACC,WACD,CClBJ,kCACC,WAkBD,CAfE,2FACC,mBAAoB,CACpB,SAAU,CACV,SACD,CAGC,4GACC,eAAgB,CAGhB,qCACD",sourcesContent:["/*\n * Copyright (c) 2003-2022, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n.ck.ck-table-cell-properties-form {\n\t& .ck-form__row {\n\t\t&.ck-table-cell-properties-form__alignment-row {\n\t\t\tflex-wrap: wrap;\n\n\t\t\t& .ck.ck-toolbar {\n\t\t\t\t&:first-of-type {\n\t\t\t\t\t/* 4 buttons out of 7 (h-alignment + v-alignment) = 0.57 */\n\t\t\t\t\tflex-grow: 0.57;\n\t\t\t\t}\n\n\t\t\t\t&:last-of-type {\n\t\t\t\t\t/* 3 buttons out of 7 (h-alignment + v-alignment) = 0.43 */\n\t\t\t\t\tflex-grow: 0.43;\n\t\t\t\t}\n\n\t\t\t\t& .ck-button {\n\t\t\t\t\tflex-grow: 1;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}\n}\n","/*\n * Copyright (c) 2003-2022, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n.ck.ck-table-cell-properties-form {\n\twidth: 320px;\n\n\t& .ck-form__row {\n\t\t&.ck-table-cell-properties-form__padding-row {\n\t\t\talign-self: flex-end;\n\t\t\tpadding: 0;\n\t\t\twidth: 25%;\n\t\t}\n\n\t\t&.ck-table-cell-properties-form__alignment-row {\n\t\t\t& .ck.ck-toolbar {\n\t\t\t\tbackground: none;\n\n\t\t\t\t/* Compensate for missing input label that would push the margin (toolbar has no inputs). */\n\t\t\t\tmargin-top: var(--ck-spacing-standard);\n\t\t\t}\n\t\t}\n\t}\n}\n"],sourceRoot:""}]);const a=s},4777:(t,e,n)=>{"use strict";n.d(e,{Z:()=>a});var o=n(4015),i=n.n(o),r=n(3645),s=n.n(r)()(i());s.push([t.id,":root{--ck-color-table-focused-cell-background:rgba(158,207,250,.3)}.ck-widget.table td.ck-editor__nested-editable.ck-editor__nested-editable_focused,.ck-widget.table td.ck-editor__nested-editable:focus,.ck-widget.table th.ck-editor__nested-editable.ck-editor__nested-editable_focused,.ck-widget.table th.ck-editor__nested-editable:focus{background:var(--ck-color-table-focused-cell-background);border-style:none;outline:1px solid var(--ck-color-focus-border);outline-offset:-1px}","",{version:3,sources:["webpack://./node_modules/@ckeditor/ckeditor5-theme-lark/theme/ckeditor5-table/tableediting.css"],names:[],mappings:"AAKA,MACC,6DACD,CAKE,8QAGC,wDAAyD,CAKzD,iBAAkB,CAClB,8CAA+C,CAC/C,mBACD",sourcesContent:["/*\n * Copyright (c) 2003-2022, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n:root {\n\t--ck-color-table-focused-cell-background: hsla(208, 90%, 80%, .3);\n}\n\n.ck-widget.table {\n\t& td,\n\t& th {\n\t\t&.ck-editor__nested-editable.ck-editor__nested-editable_focused,\n\t\t&.ck-editor__nested-editable:focus {\n\t\t\t/* A very slight background to highlight the focused cell */\n\t\t\tbackground: var(--ck-color-table-focused-cell-background);\n\n\t\t\t/* Fixes the problem where surrounding cells cover the focused cell's border.\n\t\t\tIt does not fix the problem in all places but the UX is improved.\n\t\t\tSee https://github.com/ckeditor/ckeditor5-table/issues/29. */\n\t\t\tborder-style: none;\n\t\t\toutline: 1px solid var(--ck-color-focus-border);\n\t\t\toutline-offset: -1px; /* progressive enhancement - no IE support */\n\t\t}\n\t}\n}\n"],sourceRoot:""}]);const a=s},198:(t,e,n)=>{"use strict";n.d(e,{Z:()=>a});var o=n(4015),i=n.n(o),r=n(3645),s=n.n(r)()(i());s.push([t.id,'.ck.ck-table-form .ck-form__row.ck-table-form__background-row,.ck.ck-table-form .ck-form__row.ck-table-form__border-row{flex-wrap:wrap}.ck.ck-table-form .ck-form__row.ck-table-form__dimensions-row{align-items:center;flex-wrap:wrap}.ck.ck-table-form .ck-form__row.ck-table-form__dimensions-row .ck-labeled-field-view{align-items:center;display:flex;flex-direction:column-reverse}.ck.ck-table-form .ck-form__row.ck-table-form__dimensions-row .ck-labeled-field-view .ck.ck-dropdown,.ck.ck-table-form .ck-form__row.ck-table-form__dimensions-row .ck-table-form__dimension-operator{flex-grow:0}.ck.ck-table-form .ck.ck-labeled-field-view{position:relative}.ck.ck-table-form .ck.ck-labeled-field-view .ck.ck-labeled-field-view__status{bottom:calc(var(--ck-table-properties-error-arrow-size)*-1);left:50%;position:absolute;transform:translate(-50%,100%);z-index:1}.ck.ck-table-form .ck.ck-labeled-field-view .ck.ck-labeled-field-view__status:after{content:"";left:50%;position:absolute;top:calc(var(--ck-table-properties-error-arrow-size)*-1);transform:translateX(-50%)}:root{--ck-table-properties-error-arrow-size:6px;--ck-table-properties-min-error-width:150px}.ck.ck-table-form .ck-form__row.ck-table-form__border-row .ck-labeled-field-view>.ck-label{font-size:var(--ck-font-size-tiny);text-align:center}.ck.ck-table-form .ck-form__row.ck-table-form__border-row .ck-table-form__border-style,.ck.ck-table-form .ck-form__row.ck-table-form__border-row .ck-table-form__border-width{max-width:80px;min-width:80px;width:80px}.ck.ck-table-form .ck-form__row.ck-table-form__dimensions-row{padding:0}.ck.ck-table-form .ck-form__row.ck-table-form__dimensions-row .ck-table-form__dimensions-row__height,.ck.ck-table-form .ck-form__row.ck-table-form__dimensions-row .ck-table-form__dimensions-row__width{margin:0}.ck.ck-table-form .ck-form__row.ck-table-form__dimensions-row .ck-table-form__dimension-operator{align-self:flex-end;display:inline-block;height:var(--ck-ui-component-min-height);line-height:var(--ck-ui-component-min-height);margin:0 var(--ck-spacing-small)}.ck.ck-table-form .ck.ck-labeled-field-view{padding-top:var(--ck-spacing-standard)}.ck.ck-table-form .ck.ck-labeled-field-view .ck.ck-labeled-field-view__status{border-radius:0}.ck-rounded-corners .ck.ck-table-form .ck.ck-labeled-field-view .ck.ck-labeled-field-view__status,.ck.ck-table-form .ck.ck-labeled-field-view .ck.ck-labeled-field-view__status.ck-rounded-corners{border-radius:var(--ck-border-radius)}.ck.ck-table-form .ck.ck-labeled-field-view .ck.ck-labeled-field-view__status{background:var(--ck-color-base-error);color:var(--ck-color-base-background);min-width:var(--ck-table-properties-min-error-width);padding:var(--ck-spacing-small) var(--ck-spacing-medium);text-align:center}.ck.ck-table-form .ck.ck-labeled-field-view .ck.ck-labeled-field-view__status:after{border-color:transparent transparent var(--ck-color-base-error) transparent;border-style:solid;border-width:0 var(--ck-table-properties-error-arrow-size) var(--ck-table-properties-error-arrow-size) var(--ck-table-properties-error-arrow-size)}.ck.ck-table-form .ck.ck-labeled-field-view .ck.ck-labeled-field-view__status{animation:ck-table-form-labeled-view-status-appear .15s ease both}.ck.ck-table-form .ck.ck-labeled-field-view .ck-input.ck-error:not(:focus)+.ck.ck-labeled-field-view__status{display:none}@keyframes ck-table-form-labeled-view-status-appear{0%{opacity:0}to{opacity:1}}',"",{version:3,sources:["webpack://./node_modules/@ckeditor/ckeditor5-table/theme/tableform.css","webpack://./node_modules/@ckeditor/ckeditor5-theme-lark/theme/ckeditor5-table/tableform.css","webpack://./node_modules/@ckeditor/ckeditor5-theme-lark/theme/mixins/_rounded.css"],names:[],mappings:"AAWE,wHACC,cACD,CAEA,8DAEC,kBAAmB,CADnB,cAgBD,CAbC,qFAGC,kBAAmB,CAFnB,YAAa,CACb,6BAMD,CAEA,sMACC,WACD,CAIF,4CAEC,iBAoBD,CAlBC,8EAGC,2DAAgE,CADhE,QAAS,CADT,iBAAkB,CAGlB,8BAA+B,CAG/B,SAUD,CAPC,oFACC,UAAW,CAGX,QAAS,CAFT,iBAAkB,CAClB,wDAA6D,CAE7D,0BACD,CChDH,MACC,0CAA2C,CAC3C,2CACD,CAMI,2FACC,kCAAmC,CACnC,iBACD,CAGD,8KAIC,cAAe,CADf,cAAe,CADf,UAGD,CAGD,8DACC,SAcD,CAZC,yMAEC,QACD,CAEA,iGACC,mBAAoB,CACpB,oBAAqB,CACrB,wCAAyC,CACzC,6CAA8C,CAC9C,gCACD,CAIF,4CACC,sCAyBD,CAvBC,8ECxCD,eDyDC,CAjBA,mMCpCA,qCDqDA,CAjBA,8EAGC,qCAAsC,CACtC,qCAAsC,CAEtC,oDAAqD,CADrD,wDAAyD,CAEzD,iBAUD,CAPC,oFACC,2EAA4E,CAE5E,kBAAmB,CADnB,kJAED,CAdD,8EAgBC,iEACD,CAGA,6GACC,YACD,CAIF,oDACC,GACC,SACD,CAEA,GACC,SACD,CACD",sourcesContent:['/*\n * Copyright (c) 2003-2022, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n.ck.ck-table-form {\n\t& .ck-form__row {\n\t\t&.ck-table-form__border-row {\n\t\t\tflex-wrap: wrap;\n\t\t}\n\n\t\t&.ck-table-form__background-row {\n\t\t\tflex-wrap: wrap;\n\t\t}\n\n\t\t&.ck-table-form__dimensions-row {\n\t\t\tflex-wrap: wrap;\n\t\t\talign-items: center;\n\n\t\t\t& .ck-labeled-field-view {\n\t\t\t\tdisplay: flex;\n\t\t\t\tflex-direction: column-reverse;\n\t\t\t\talign-items: center;\n\n\t\t\t\t& .ck.ck-dropdown {\n\t\t\t\t\tflex-grow: 0;\n\t\t\t\t}\n\t\t\t}\n\n\t\t\t& .ck-table-form__dimension-operator {\n\t\t\t\tflex-grow: 0;\n\t\t\t}\n\t\t}\n\t}\n\n\t& .ck.ck-labeled-field-view {\n\t\t/* Allow absolute positioning of the status (error) balloons. */\n\t\tposition: relative;\n\n\t\t& .ck.ck-labeled-field-view__status {\n\t\t\tposition: absolute;\n\t\t\tleft: 50%;\n\t\t\tbottom: calc( -1 * var(--ck-table-properties-error-arrow-size) );\n\t\t\ttransform: translate(-50%,100%);\n\n\t\t\t/* Make sure the balloon status stays on top of other form elements. */\n\t\t\tz-index: 1;\n\n\t\t\t/* The arrow pointing towards the field. */\n\t\t\t&::after {\n\t\t\t\tcontent: "";\n\t\t\t\tposition: absolute;\n\t\t\t\ttop: calc( -1 * var(--ck-table-properties-error-arrow-size) );\n\t\t\t\tleft: 50%;\n\t\t\t\ttransform: translateX( -50% );\n\t\t\t}\n\t\t}\n\t}\n}\n','/*\n * Copyright (c) 2003-2022, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n@import "../mixins/_rounded.css";\n\n:root {\n\t--ck-table-properties-error-arrow-size: 6px;\n\t--ck-table-properties-min-error-width: 150px;\n}\n\n.ck.ck-table-form {\n\t& .ck-form__row {\n\t\t&.ck-table-form__border-row {\n\t\t\t& .ck-labeled-field-view {\n\t\t\t\t& > .ck-label {\n\t\t\t\t\tfont-size: var(--ck-font-size-tiny);\n\t\t\t\t\ttext-align: center;\n\t\t\t\t}\n\t\t\t}\n\n\t\t\t& .ck-table-form__border-style,\n\t\t\t& .ck-table-form__border-width {\n\t\t\t\twidth: 80px;\n\t\t\t\tmin-width: 80px;\n\t\t\t\tmax-width: 80px;\n\t\t\t}\n\t\t}\n\n\t\t&.ck-table-form__dimensions-row {\n\t\t\tpadding: 0;\n\n\t\t\t& .ck-table-form__dimensions-row__width,\n\t\t\t& .ck-table-form__dimensions-row__height {\n\t\t\t\tmargin: 0\n\t\t\t}\n\n\t\t\t& .ck-table-form__dimension-operator {\n\t\t\t\talign-self: flex-end;\n\t\t\t\tdisplay: inline-block;\n\t\t\t\theight: var(--ck-ui-component-min-height);\n\t\t\t\tline-height: var(--ck-ui-component-min-height);\n\t\t\t\tmargin: 0 var(--ck-spacing-small);\n\t\t\t}\n\t\t}\n\t}\n\n\t& .ck.ck-labeled-field-view {\n\t\tpadding-top: var(--ck-spacing-standard);\n\n\t\t& .ck.ck-labeled-field-view__status {\n\t\t\t@mixin ck-rounded-corners;\n\n\t\t\tbackground: var(--ck-color-base-error);\n\t\t\tcolor: var(--ck-color-base-background);\n\t\t\tpadding: var(--ck-spacing-small) var(--ck-spacing-medium);\n\t\t\tmin-width: var(--ck-table-properties-min-error-width);\n\t\t\ttext-align: center;\n\n\t\t\t/* The arrow pointing towards the field. */\n\t\t\t&::after {\n\t\t\t\tborder-color: transparent transparent var(--ck-color-base-error) transparent;\n\t\t\t\tborder-width: 0 var(--ck-table-properties-error-arrow-size) var(--ck-table-properties-error-arrow-size) var(--ck-table-properties-error-arrow-size);\n\t\t\t\tborder-style: solid;\n\t\t\t}\n\n\t\t\tanimation: ck-table-form-labeled-view-status-appear .15s ease both;\n\t\t}\n\n\t\t/* Hide the error balloon when the field is blurred. Makes the experience much more clear. */\n\t\t& .ck-input.ck-error:not(:focus) + .ck.ck-labeled-field-view__status {\n\t\t\tdisplay: none;\n\t\t}\n\t}\n}\n\n@keyframes ck-table-form-labeled-view-status-appear {\n\t0% {\n\t\topacity: 0;\n\t}\n\n\t100% {\n\t\topacity: 1;\n\t}\n}\n',"/*\n * Copyright (c) 2003-2022, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n/**\n * Implements rounded corner interface for .ck-rounded-corners class.\n *\n * @see $ck-border-radius\n */\n@define-mixin ck-rounded-corners {\n\tborder-radius: 0;\n\n\t@nest .ck-rounded-corners &,\n\t&.ck-rounded-corners {\n\t\tborder-radius: var(--ck-border-radius);\n\t\t@mixin-content;\n\t}\n}\n"],sourceRoot:""}]);const a=s},9221:(t,e,n)=>{"use strict";n.d(e,{Z:()=>a});var o=n(4015),i=n.n(o),r=n(3645),s=n.n(r)()(i());s.push([t.id,".ck.ck-table-properties-form .ck-form__row.ck-table-properties-form__alignment-row{align-content:baseline;flex-basis:0;flex-wrap:wrap}.ck.ck-table-properties-form .ck-form__row.ck-table-properties-form__alignment-row .ck.ck-toolbar .ck-toolbar__items{flex-wrap:nowrap}.ck.ck-table-properties-form{width:320px}.ck.ck-table-properties-form .ck-form__row.ck-table-properties-form__alignment-row{align-self:flex-end;padding:0}.ck.ck-table-properties-form .ck-form__row.ck-table-properties-form__alignment-row .ck.ck-toolbar{background:none;margin-top:var(--ck-spacing-standard)}.ck.ck-table-properties-form .ck-form__row.ck-table-properties-form__alignment-row .ck.ck-toolbar .ck-toolbar__items>*{width:40px}","",{version:3,sources:["webpack://./node_modules/@ckeditor/ckeditor5-table/theme/tableproperties.css","webpack://./node_modules/@ckeditor/ckeditor5-theme-lark/theme/ckeditor5-table/tableproperties.css"],names:[],mappings:"AAOE,mFAGC,sBAAuB,CADvB,YAAa,CADb,cAOD,CAHC,qHACC,gBACD,CCTH,6BACC,WAmBD,CAhBE,mFACC,mBAAoB,CACpB,SAYD,CAVC,kGACC,eAAgB,CAGhB,qCAKD,CAHC,uHACC,UACD",sourcesContent:["/*\n * Copyright (c) 2003-2022, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n.ck.ck-table-properties-form {\n\t& .ck-form__row {\n\t\t&.ck-table-properties-form__alignment-row {\n\t\t\tflex-wrap: wrap;\n\t\t\tflex-basis: 0;\n\t\t\talign-content: baseline;\n\n\t\t\t& .ck.ck-toolbar .ck-toolbar__items {\n\t\t\t\tflex-wrap: nowrap;\n\t\t\t}\n\t\t}\n\t}\n}\n","/*\n * Copyright (c) 2003-2022, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n.ck.ck-table-properties-form {\n\twidth: 320px;\n\n\t& .ck-form__row {\n\t\t&.ck-table-properties-form__alignment-row {\n\t\t\talign-self: flex-end;\n\t\t\tpadding: 0;\n\n\t\t\t& .ck.ck-toolbar {\n\t\t\t\tbackground: none;\n\n\t\t\t\t/* Compensate for missing input label that would push the margin (toolbar has no inputs). */\n\t\t\t\tmargin-top: var(--ck-spacing-standard);\n\n\t\t\t\t& .ck-toolbar__items > * {\n\t\t\t\t\twidth: 40px;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}\n}\n"],sourceRoot:""}]);const a=s},5593:(t,e,n)=>{"use strict";n.d(e,{Z:()=>a});var o=n(4015),i=n.n(o),r=n(3645),s=n.n(r)()(i());s.push([t.id,':root{--ck-table-selected-cell-background:rgba(158,207,250,.3)}.ck.ck-editor__editable .table table td.ck-editor__editable_selected,.ck.ck-editor__editable .table table th.ck-editor__editable_selected{box-shadow:unset;caret-color:transparent;outline:unset;position:relative}.ck.ck-editor__editable .table table td.ck-editor__editable_selected:after,.ck.ck-editor__editable .table table th.ck-editor__editable_selected:after{background-color:var(--ck-table-selected-cell-background);bottom:0;content:"";left:0;pointer-events:none;position:absolute;right:0;top:0}.ck.ck-editor__editable .table table td.ck-editor__editable_selected ::selection,.ck.ck-editor__editable .table table td.ck-editor__editable_selected:focus,.ck.ck-editor__editable .table table th.ck-editor__editable_selected ::selection,.ck.ck-editor__editable .table table th.ck-editor__editable_selected:focus{background-color:transparent}.ck.ck-editor__editable .table table td.ck-editor__editable_selected .ck-widget,.ck.ck-editor__editable .table table th.ck-editor__editable_selected .ck-widget{outline:unset}.ck.ck-editor__editable .table table td.ck-editor__editable_selected .ck-widget>.ck-widget__selection-handle,.ck.ck-editor__editable .table table th.ck-editor__editable_selected .ck-widget>.ck-widget__selection-handle{display:none}',"",{version:3,sources:["webpack://./node_modules/@ckeditor/ckeditor5-theme-lark/theme/ckeditor5-table/tableselection.css"],names:[],mappings:"AAKA,MACC,wDACD,CAGC,0IAKC,gBAAiB,CAFjB,uBAAwB,CACxB,aAAc,CAFd,iBAiCD,CA3BC,sJAGC,yDAA0D,CAK1D,QAAS,CAPT,UAAW,CAKX,MAAO,CAJP,mBAAoB,CAEpB,iBAAkB,CAGlB,OAAQ,CAFR,KAID,CAEA,wTAEC,4BACD,CAMA,gKACC,aAKD,CAHC,0NACC,YACD",sourcesContent:["/*\n * Copyright (c) 2003-2022, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n:root {\n\t--ck-table-selected-cell-background: hsla(208, 90%, 80%, .3);\n}\n\n.ck.ck-editor__editable .table table {\n\t& td.ck-editor__editable_selected,\n\t& th.ck-editor__editable_selected {\n\t\tposition: relative;\n\t\tcaret-color: transparent;\n\t\toutline: unset;\n\t\tbox-shadow: unset;\n\n\t\t/* https://github.com/ckeditor/ckeditor5/issues/6446 */\n\t\t&:after {\n\t\t\tcontent: '';\n\t\t\tpointer-events: none;\n\t\t\tbackground-color: var(--ck-table-selected-cell-background);\n\t\t\tposition: absolute;\n\t\t\ttop: 0;\n\t\t\tleft: 0;\n\t\t\tright: 0;\n\t\t\tbottom: 0;\n\t\t}\n\n\t\t& ::selection,\n\t\t&:focus {\n\t\t\tbackground-color: transparent;\n\t\t}\n\n\t\t/*\n\t\t * To reduce the amount of noise, all widgets in the table selection have no outline and no selection handle.\n\t\t * See https://github.com/ckeditor/ckeditor5/issues/9491.\n\t\t */\n\t\t& .ck-widget {\n\t\t\toutline: unset;\n\n\t\t\t& > .ck-widget__selection-handle {\n\t\t\t\tdisplay: none;\n\t\t\t}\n\t\t}\n\t}\n}\n"],sourceRoot:""}]);const a=s},4499:(t,e,n)=>{"use strict";n.d(e,{Z:()=>a});var o=n(4015),i=n.n(o),r=n(3645),s=n.n(r)()(i());s.push([t.id,".ck.ck-button,a.ck.ck-button{-moz-user-select:none;-webkit-user-select:none;-ms-user-select:none;user-select:none}.ck.ck-button .ck-tooltip,a.ck.ck-button .ck-tooltip{display:block}@media (hover:none){.ck.ck-button .ck-tooltip,a.ck.ck-button .ck-tooltip{display:none}}.ck.ck-button,a.ck.ck-button{align-items:center;display:inline-flex;justify-content:left;position:relative}.ck.ck-button .ck-button__label,a.ck.ck-button .ck-button__label{display:none}.ck.ck-button.ck-button_with-text .ck-button__label,a.ck.ck-button.ck-button_with-text .ck-button__label{display:inline-block}.ck.ck-button:not(.ck-button_with-text),a.ck.ck-button:not(.ck-button_with-text){justify-content:center}.ck.ck-button:hover .ck-tooltip,a.ck.ck-button:hover .ck-tooltip{opacity:1;visibility:visible}.ck.ck-button:focus:not(:hover) .ck-tooltip,a.ck.ck-button:focus:not(:hover) .ck-tooltip{display:none}.ck.ck-button,a.ck.ck-button{background:var(--ck-color-button-default-background)}.ck.ck-button:not(.ck-disabled):hover,a.ck.ck-button:not(.ck-disabled):hover{background:var(--ck-color-button-default-hover-background)}.ck.ck-button:not(.ck-disabled):active,a.ck.ck-button:not(.ck-disabled):active{background:var(--ck-color-button-default-active-background);box-shadow:inset 0 2px 2px var(--ck-color-button-default-active-shadow)}.ck.ck-button.ck-disabled,a.ck.ck-button.ck-disabled{background:var(--ck-color-button-default-disabled-background)}.ck.ck-button,a.ck.ck-button{border-radius:0}.ck-rounded-corners .ck.ck-button,.ck-rounded-corners a.ck.ck-button,.ck.ck-button.ck-rounded-corners,a.ck.ck-button.ck-rounded-corners{border-radius:var(--ck-border-radius)}.ck.ck-button,a.ck.ck-button{-webkit-appearance:none;border:1px solid transparent;cursor:default;font-size:inherit;line-height:1;min-height:var(--ck-ui-component-min-height);min-width:var(--ck-ui-component-min-height);padding:var(--ck-spacing-tiny);text-align:center;transition:box-shadow .2s ease-in-out,border .2s ease-in-out;vertical-align:middle;white-space:nowrap}.ck.ck-button:active,.ck.ck-button:focus,a.ck.ck-button:active,a.ck.ck-button:focus{border:var(--ck-focus-ring);box-shadow:var(--ck-focus-outer-shadow),0 0;outline:none}.ck.ck-button .ck-button__icon use,.ck.ck-button .ck-button__icon use *,a.ck.ck-button .ck-button__icon use,a.ck.ck-button .ck-button__icon use *{color:inherit}.ck.ck-button .ck-button__label,a.ck.ck-button .ck-button__label{color:inherit;cursor:inherit;font-size:inherit;font-weight:inherit;vertical-align:middle}[dir=ltr] .ck.ck-button .ck-button__label,[dir=ltr] a.ck.ck-button .ck-button__label{text-align:left}[dir=rtl] .ck.ck-button .ck-button__label,[dir=rtl] a.ck.ck-button .ck-button__label{text-align:right}.ck.ck-button .ck-button__keystroke,a.ck.ck-button .ck-button__keystroke{color:inherit}[dir=ltr] .ck.ck-button .ck-button__keystroke,[dir=ltr] a.ck.ck-button .ck-button__keystroke{margin-left:var(--ck-spacing-large)}[dir=rtl] .ck.ck-button .ck-button__keystroke,[dir=rtl] a.ck.ck-button .ck-button__keystroke{margin-right:var(--ck-spacing-large)}.ck.ck-button .ck-button__keystroke,a.ck.ck-button .ck-button__keystroke{font-weight:700;opacity:.7}.ck.ck-button.ck-disabled:active,.ck.ck-button.ck-disabled:focus,a.ck.ck-button.ck-disabled:active,a.ck.ck-button.ck-disabled:focus{box-shadow:var(--ck-focus-disabled-outer-shadow),0 0}.ck.ck-button.ck-disabled .ck-button__icon,.ck.ck-button.ck-disabled .ck-button__label,a.ck.ck-button.ck-disabled .ck-button__icon,a.ck.ck-button.ck-disabled .ck-button__label{opacity:var(--ck-disabled-opacity)}.ck.ck-button.ck-disabled .ck-button__keystroke,a.ck.ck-button.ck-disabled .ck-button__keystroke{opacity:.3}.ck.ck-button.ck-button_with-text,a.ck.ck-button.ck-button_with-text{padding:var(--ck-spacing-tiny) var(--ck-spacing-standard)}[dir=ltr] .ck.ck-button.ck-button_with-text .ck-button__icon,[dir=ltr] a.ck.ck-button.ck-button_with-text .ck-button__icon{margin-left:calc(var(--ck-spacing-small)*-1);margin-right:var(--ck-spacing-small)}[dir=rtl] .ck.ck-button.ck-button_with-text .ck-button__icon,[dir=rtl] a.ck.ck-button.ck-button_with-text .ck-button__icon{margin-left:var(--ck-spacing-small);margin-right:calc(var(--ck-spacing-small)*-1)}.ck.ck-button.ck-button_with-keystroke .ck-button__label,a.ck.ck-button.ck-button_with-keystroke .ck-button__label{flex-grow:1}.ck.ck-button.ck-on,a.ck.ck-button.ck-on{background:var(--ck-color-button-on-background)}.ck.ck-button.ck-on:not(.ck-disabled):hover,a.ck.ck-button.ck-on:not(.ck-disabled):hover{background:var(--ck-color-button-on-hover-background)}.ck.ck-button.ck-on:not(.ck-disabled):active,a.ck.ck-button.ck-on:not(.ck-disabled):active{background:var(--ck-color-button-on-active-background);box-shadow:inset 0 2px 2px var(--ck-color-button-on-active-shadow)}.ck.ck-button.ck-on.ck-disabled,a.ck.ck-button.ck-on.ck-disabled{background:var(--ck-color-button-on-disabled-background)}.ck.ck-button.ck-button-save,a.ck.ck-button.ck-button-save{color:var(--ck-color-button-save)}.ck.ck-button.ck-button-cancel,a.ck.ck-button.ck-button-cancel{color:var(--ck-color-button-cancel)}.ck.ck-button-action,a.ck.ck-button-action{background:var(--ck-color-button-action-background)}.ck.ck-button-action:not(.ck-disabled):hover,a.ck.ck-button-action:not(.ck-disabled):hover{background:var(--ck-color-button-action-hover-background)}.ck.ck-button-action:not(.ck-disabled):active,a.ck.ck-button-action:not(.ck-disabled):active{background:var(--ck-color-button-action-active-background);box-shadow:inset 0 2px 2px var(--ck-color-button-action-active-shadow)}.ck.ck-button-action.ck-disabled,a.ck.ck-button-action.ck-disabled{background:var(--ck-color-button-action-disabled-background)}.ck.ck-button-action,a.ck.ck-button-action{color:var(--ck-color-button-action-text)}.ck.ck-button-bold,a.ck.ck-button-bold{font-weight:700}","",{version:3,sources:["webpack://./node_modules/@ckeditor/ckeditor5-ui/theme/components/button/button.css","webpack://./node_modules/@ckeditor/ckeditor5-ui/theme/mixins/_unselectable.css","webpack://./node_modules/@ckeditor/ckeditor5-ui/theme/components/tooltip/mixins/_tooltip.css","webpack://./node_modules/@ckeditor/ckeditor5-theme-lark/theme/ckeditor5-ui/components/button/button.css","webpack://./node_modules/@ckeditor/ckeditor5-theme-lark/theme/ckeditor5-ui/mixins/_button.css","webpack://./node_modules/@ckeditor/ckeditor5-theme-lark/theme/mixins/_rounded.css","webpack://./node_modules/@ckeditor/ckeditor5-theme-lark/theme/mixins/_focus.css","webpack://./node_modules/@ckeditor/ckeditor5-theme-lark/theme/mixins/_shadow.css","webpack://./node_modules/@ckeditor/ckeditor5-theme-lark/theme/mixins/_disabled.css"],names:[],mappings:"AAQA,6BCCC,qBAAsB,CACtB,wBAAyB,CACzB,oBAAqB,CACrB,gBD6BD,CE/BC,qDACC,aAqBD,CAHC,oBAnBD,qDAoBE,YAEF,CADC,CFvBF,6BAOC,kBAAmB,CADnB,mBAAoB,CAEpB,oBAAqB,CAHrB,iBA4BD,CAvBC,iEACC,YACD,CAGC,yGACC,oBACD,CAID,iFACC,sBACD,CEkBA,iEAEC,SAAU,CADV,kBAED,CAbA,yFACC,YACD,CC7BD,6BCAC,oDD0ID,CCvIE,6EACC,0DACD,CAEA,+EACC,2DAA4C,CAC5C,uEACD,CAID,qDACC,6DACD,CDhBD,6BEDC,eF2ID,CA1IA,wIEGE,qCFuIF,CA1IA,6BA6BC,uBAAwB,CANxB,4BAA6B,CAjB7B,cAAe,CAcf,iBAAkB,CAHlB,aAAc,CAJd,4CAA6C,CAD7C,2CAA4C,CAJ5C,8BAA+B,CAC/B,iBAAkB,CAiBlB,4DAA8D,CAnB9D,qBAAsB,CAFtB,kBAqID,CA3GC,oFGhCA,2BAA2B,CCF3B,2CAA8B,CDC9B,YHqCA,CAIC,kJAEC,aACD,CAGD,iEAIC,aAAc,CACd,cAAe,CAHf,iBAAkB,CAClB,mBAAoB,CAMpB,qBASD,CAlBA,qFAYE,eAMF,CAlBA,qFAgBE,gBAEF,CAEA,yEACC,aAYD,CAbA,6FAIE,mCASF,CAbA,6FAQE,oCAKF,CAbA,yEAWC,eAAiB,CACjB,UACD,CAIC,oIIrFD,oDJyFC,CAOA,gLKhGD,kCLkGC,CAEA,iGACC,UACD,CAGD,qEACC,yDAcD,CAXC,2HAEE,4CAA+C,CAC/C,oCAOF,CAVA,2HAQE,mCAAoC,CADpC,6CAGF,CAKA,mHACC,WACD,CAID,yCC/HA,+CDiIA,CC9HC,yFACC,qDACD,CAEA,2FACC,sDAA4C,CAC5C,kEACD,CAID,iEACC,wDACD,CDmHA,2DACC,iCACD,CAEA,+DACC,mCACD,CAID,2CC7IC,mDDkJD,CC/IE,2FACC,yDACD,CAEA,6FACC,0DAA4C,CAC5C,sEACD,CAID,mEACC,4DACD,CD6HD,2CAIC,wCACD,CAEA,uCAEC,eACD",sourcesContent:['/*\n * Copyright (c) 2003-2022, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n@import "../../mixins/_unselectable.css";\n@import "../tooltip/mixins/_tooltip.css";\n\n.ck.ck-button,\na.ck.ck-button {\n\t@mixin ck-unselectable;\n\t@mixin ck-tooltip_enabled;\n\n\tposition: relative;\n\tdisplay: inline-flex;\n\talign-items: center;\n\tjustify-content: left;\n\n\t& .ck-button__label {\n\t\tdisplay: none;\n\t}\n\n\t&.ck-button_with-text {\n\t\t& .ck-button__label {\n\t\t\tdisplay: inline-block;\n\t\t}\n\t}\n\n\t/* Center the icon horizontally in a button without text. */\n\t&:not(.ck-button_with-text) {\n\t\tjustify-content: center;\n\t}\n\n\t&:hover {\n\t\t@mixin ck-tooltip_visible;\n\t}\n\n\t/* Get rid of the native focus outline around the tooltip when focused (but not :hover). */\n\t&:focus:not(:hover) {\n\t\t@mixin ck-tooltip_disabled;\n\t}\n}\n',"/*\n * Copyright (c) 2003-2022, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n/**\n * Makes element unselectable.\n */\n@define-mixin ck-unselectable {\n\t-moz-user-select: none;\n\t-webkit-user-select: none;\n\t-ms-user-select: none;\n\tuser-select: none\n}\n","/*\n * Copyright (c) 2003-2022, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n/**\n * Enables the tooltip, which is the tooltip is in DOM but\n * not yet displayed.\n */\n@define-mixin ck-tooltip_enabled {\n\t& .ck-tooltip {\n\t\tdisplay: block;\n\n\t\t/*\n\t\t * Don't display tooltips in devices which don't support :hover.\n\t\t * In fact, it's all about iOS, which forces user to click UI elements twice to execute\n\t\t * the primary action, when tooltips are enabled.\n\t\t *\n\t\t * Q: OK, but why not the following query?\n\t\t *\n\t\t * @media (hover) {\n\t\t * display: block;\n\t\t * }\n\t\t *\n\t\t * A: Because FF does not support it and it would completely disable tooltips\n\t\t * in that browser.\n\t\t *\n\t\t * More in https://github.com/ckeditor/ckeditor5/issues/920.\n\t\t */\n\t\t@media (hover:none) {\n\t\t\tdisplay: none;\n\t\t}\n\t}\n}\n\n/**\n * Disables the tooltip making it disappear from DOM.\n */\n@define-mixin ck-tooltip_disabled {\n\t& .ck-tooltip {\n\t\tdisplay: none;\n\t}\n}\n\n/**\n * Shows the tooltip, which is already in DOM.\n * Requires `ck-tooltip_enabled` first.\n */\n@define-mixin ck-tooltip_visible {\n\t& .ck-tooltip {\n\t\tvisibility: visible;\n\t\topacity: 1;\n\t}\n}\n",'/*\n * Copyright (c) 2003-2022, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n@import "../../../mixins/_focus.css";\n@import "../../../mixins/_shadow.css";\n@import "../../../mixins/_disabled.css";\n@import "../../../mixins/_rounded.css";\n@import "../../mixins/_button.css";\n@import "@ckeditor/ckeditor5-ui/theme/mixins/_dir.css";\n\n.ck.ck-button,\na.ck.ck-button {\n\t@mixin ck-button-colors --ck-color-button-default;\n\t@mixin ck-rounded-corners;\n\n\twhite-space: nowrap;\n\tcursor: default;\n\tvertical-align: middle;\n\tpadding: var(--ck-spacing-tiny);\n\ttext-align: center;\n\n\t/* A very important piece of styling. Go to variable declaration to learn more. */\n\tmin-width: var(--ck-ui-component-min-height);\n\tmin-height: var(--ck-ui-component-min-height);\n\n\t/* Normalize the height of the line. Removing this will break consistent height\n\tamong text and text-less buttons (with icons). */\n\tline-height: 1;\n\n\t/* Enable font size inheritance, which allows fluid UI scaling. */\n\tfont-size: inherit;\n\n\t/* Avoid flickering when the foucs border shows up. */\n\tborder: 1px solid transparent;\n\n\t/* Apply some smooth transition to the box-shadow and border. */\n\ttransition: box-shadow .2s ease-in-out, border .2s ease-in-out;\n\n\t/* https://github.com/ckeditor/ckeditor5-theme-lark/issues/189 */\n\t-webkit-appearance: none;\n\n\t&:active,\n\t&:focus {\n\t\t@mixin ck-focus-ring;\n\t\t@mixin ck-box-shadow var(--ck-focus-outer-shadow);\n\t}\n\n\t/* Allow icon coloring using the text "color" property. */\n\t& .ck-button__icon {\n\t\t& use,\n\t\t& use * {\n\t\t\tcolor: inherit;\n\t\t}\n\t}\n\n\t& .ck-button__label {\n\t\t/* Enable font size inheritance, which allows fluid UI scaling. */\n\t\tfont-size: inherit;\n\t\tfont-weight: inherit;\n\t\tcolor: inherit;\n\t\tcursor: inherit;\n\n\t\t/* Must be consistent with .ck-icon\'s vertical align. Otherwise, buttons with and\n\t\twithout labels (but with icons) have different sizes in Chrome */\n\t\tvertical-align: middle;\n\n\t\t@mixin ck-dir ltr {\n\t\t\ttext-align: left;\n\t\t}\n\n\t\t@mixin ck-dir rtl {\n\t\t\ttext-align: right;\n\t\t}\n\t}\n\n\t& .ck-button__keystroke {\n\t\tcolor: inherit;\n\n\t\t@mixin ck-dir ltr {\n\t\t\tmargin-left: var(--ck-spacing-large);\n\t\t}\n\n\t\t@mixin ck-dir rtl {\n\t\t\tmargin-right: var(--ck-spacing-large);\n\t\t}\n\n\t\tfont-weight: bold;\n\t\topacity: .7;\n\t}\n\n\t/* https://github.com/ckeditor/ckeditor5-theme-lark/issues/70 */\n\t&.ck-disabled {\n\t\t&:active,\n\t\t&:focus {\n\t\t\t/* The disabled button should have a slightly less visible shadow when focused. */\n\t\t\t@mixin ck-box-shadow var(--ck-focus-disabled-outer-shadow);\n\t\t}\n\n\t\t& .ck-button__icon {\n\t\t\t@mixin ck-disabled;\n\t\t}\n\n\t\t/* https://github.com/ckeditor/ckeditor5-theme-lark/issues/98 */\n\t\t& .ck-button__label {\n\t\t\t@mixin ck-disabled;\n\t\t}\n\n\t\t& .ck-button__keystroke {\n\t\t\topacity: .3;\n\t\t}\n\t}\n\n\t&.ck-button_with-text {\n\t\tpadding: var(--ck-spacing-tiny) var(--ck-spacing-standard);\n\n\t\t/* stylelint-disable-next-line no-descending-specificity */\n\t\t& .ck-button__icon {\n\t\t\t@mixin ck-dir ltr {\n\t\t\t\tmargin-left: calc(-1 * var(--ck-spacing-small));\n\t\t\t\tmargin-right: var(--ck-spacing-small);\n\t\t\t}\n\n\t\t\t@mixin ck-dir rtl {\n\t\t\t\tmargin-right: calc(-1 * var(--ck-spacing-small));\n\t\t\t\tmargin-left: var(--ck-spacing-small);\n\t\t\t}\n\t\t}\n\t}\n\n\t&.ck-button_with-keystroke {\n\t\t/* stylelint-disable-next-line no-descending-specificity */\n\t\t& .ck-button__label {\n\t\t\tflex-grow: 1;\n\t\t}\n\t}\n\n\t/* A style of the button which is currently on, e.g. its feature is active. */\n\t&.ck-on {\n\t\t@mixin ck-button-colors --ck-color-button-on;\n\t}\n\n\t&.ck-button-save {\n\t\tcolor: var(--ck-color-button-save);\n\t}\n\n\t&.ck-button-cancel {\n\t\tcolor: var(--ck-color-button-cancel);\n\t}\n}\n\n/* A style of the button which handles the primary action. */\n.ck.ck-button-action,\na.ck.ck-button-action {\n\t@mixin ck-button-colors --ck-color-button-action;\n\n\tcolor: var(--ck-color-button-action-text);\n}\n\n.ck.ck-button-bold,\na.ck.ck-button-bold {\n\tfont-weight: bold;\n}\n',"/*\n * Copyright (c) 2003-2022, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n/**\n * Implements a button of given background color.\n *\n * @param {String} $background - Background color of the button.\n * @param {String} $border - Border color of the button.\n */\n@define-mixin ck-button-colors $prefix {\n\tbackground: var($(prefix)-background);\n\n\t&:not(.ck-disabled) {\n\t\t&:hover {\n\t\t\tbackground: var($(prefix)-hover-background);\n\t\t}\n\n\t\t&:active {\n\t\t\tbackground: var($(prefix)-active-background);\n\t\t\tbox-shadow: inset 0 2px 2px var($(prefix)-active-shadow);\n\t\t}\n\t}\n\n\t/* https://github.com/ckeditor/ckeditor5-theme-lark/issues/98 */\n\t&.ck-disabled {\n\t\tbackground: var($(prefix)-disabled-background);\n\t}\n}\n","/*\n * Copyright (c) 2003-2022, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n/**\n * Implements rounded corner interface for .ck-rounded-corners class.\n *\n * @see $ck-border-radius\n */\n@define-mixin ck-rounded-corners {\n\tborder-radius: 0;\n\n\t@nest .ck-rounded-corners &,\n\t&.ck-rounded-corners {\n\t\tborder-radius: var(--ck-border-radius);\n\t\t@mixin-content;\n\t}\n}\n","/*\n * Copyright (c) 2003-2022, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n/**\n * A visual style of focused element's border.\n */\n@define-mixin ck-focus-ring {\n\t/* Disable native outline. */\n\toutline: none;\n\tborder: var(--ck-focus-ring)\n}\n","/*\n * Copyright (c) 2003-2022, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n/**\n * A helper to combine multiple shadows.\n */\n@define-mixin ck-box-shadow $shadowA, $shadowB: 0 0 {\n\tbox-shadow: $shadowA, $shadowB;\n}\n\n/**\n * Gives an element a drop shadow so it looks like a floating panel.\n */\n@define-mixin ck-drop-shadow {\n\t@mixin ck-box-shadow var(--ck-drop-shadow);\n}\n","/*\n * Copyright (c) 2003-2022, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n/**\n * A class which indicates that an element holding it is disabled.\n */\n@define-mixin ck-disabled {\n\topacity: var(--ck-disabled-opacity);\n}\n"],sourceRoot:""}]);const a=s},9681:(t,e,n)=>{"use strict";n.d(e,{Z:()=>a});var o=n(4015),i=n.n(o),r=n(3645),s=n.n(r)()(i());s.push([t.id,".ck.ck-button.ck-switchbutton .ck-button__toggle,.ck.ck-button.ck-switchbutton .ck-button__toggle .ck-button__toggle__inner{display:block}:root{--ck-switch-button-toggle-width:2.6153846154em;--ck-switch-button-toggle-inner-size:1.0769230769em;--ck-switch-button-toggle-spacing:1px;--ck-switch-button-translation:calc(var(--ck-switch-button-toggle-width) - var(--ck-switch-button-toggle-inner-size) - var(--ck-switch-button-toggle-spacing)*2)}[dir=ltr] .ck.ck-button.ck-switchbutton .ck-button__label{margin-right:calc(var(--ck-spacing-large)*2)}[dir=rtl] .ck.ck-button.ck-switchbutton .ck-button__label{margin-left:calc(var(--ck-spacing-large)*2)}.ck.ck-button.ck-switchbutton .ck-button__toggle{border-radius:0}.ck-rounded-corners .ck.ck-button.ck-switchbutton .ck-button__toggle,.ck.ck-button.ck-switchbutton .ck-button__toggle.ck-rounded-corners{border-radius:var(--ck-border-radius)}[dir=ltr] .ck.ck-button.ck-switchbutton .ck-button__toggle{margin-left:auto}[dir=rtl] .ck.ck-button.ck-switchbutton .ck-button__toggle{margin-right:auto}.ck.ck-button.ck-switchbutton .ck-button__toggle{background:var(--ck-color-switch-button-off-background);transition:background .4s ease;width:var(--ck-switch-button-toggle-width)}.ck.ck-button.ck-switchbutton .ck-button__toggle .ck-button__toggle__inner{border-radius:0}.ck-rounded-corners .ck.ck-button.ck-switchbutton .ck-button__toggle .ck-button__toggle__inner,.ck.ck-button.ck-switchbutton .ck-button__toggle .ck-button__toggle__inner.ck-rounded-corners{border-radius:var(--ck-border-radius);border-radius:calc(var(--ck-border-radius)*.5)}.ck.ck-button.ck-switchbutton .ck-button__toggle .ck-button__toggle__inner{background:var(--ck-color-switch-button-inner-background);height:var(--ck-switch-button-toggle-inner-size);margin:var(--ck-switch-button-toggle-spacing);transition:all .3s ease;width:var(--ck-switch-button-toggle-inner-size)}.ck.ck-button.ck-switchbutton .ck-button__toggle:hover{background:var(--ck-color-switch-button-off-hover-background)}.ck.ck-button.ck-switchbutton .ck-button__toggle:hover .ck-button__toggle__inner{box-shadow:0 0 0 5px var(--ck-color-switch-button-inner-shadow)}.ck.ck-button.ck-switchbutton.ck-disabled .ck-button__toggle{opacity:var(--ck-disabled-opacity)}.ck.ck-button.ck-switchbutton.ck-on .ck-button__toggle{background:var(--ck-color-switch-button-on-background)}.ck.ck-button.ck-switchbutton.ck-on .ck-button__toggle:hover{background:var(--ck-color-switch-button-on-hover-background)}[dir=ltr] .ck.ck-button.ck-switchbutton.ck-on .ck-button__toggle .ck-button__toggle__inner{transform:translateX(var( --ck-switch-button-translation ))}[dir=rtl] .ck.ck-button.ck-switchbutton.ck-on .ck-button__toggle .ck-button__toggle__inner{transform:translateX(calc(var( --ck-switch-button-translation )*-1))}","",{version:3,sources:["webpack://./node_modules/@ckeditor/ckeditor5-ui/theme/components/button/switchbutton.css","webpack://./node_modules/@ckeditor/ckeditor5-theme-lark/theme/ckeditor5-ui/components/button/switchbutton.css","webpack://./node_modules/@ckeditor/ckeditor5-theme-lark/theme/mixins/_rounded.css","webpack://./node_modules/@ckeditor/ckeditor5-theme-lark/theme/mixins/_disabled.css"],names:[],mappings:"AASE,4HACC,aACD,CCCF,MAEC,8CAA+C,CAE/C,mDAAoD,CACpD,qCAAsC,CACtC,gKAKD,CAGC,0DAGE,4CAOF,CAVA,0DAQE,2CAEF,CAEA,iDC3BA,eDoEA,CAzCA,yICvBC,qCDgED,CAzCA,2DAKE,gBAoCF,CAzCA,2DAUE,iBA+BF,CAzCA,iDAiBC,uDAAwD,CAHxD,8BAAiC,CAEjC,0CAyBD,CAtBC,2EC9CD,eD2DC,CAbA,6LC1CA,qCAAsC,CD4CpC,8CAWF,CAbA,2EASC,yDAA0D,CAD1D,gDAAiD,CAFjD,6CAA8C,CAM9C,uBAA0B,CAL1B,+CAMD,CAEA,uDACC,6DAKD,CAHC,iFACC,+DACD,CAIF,6DExEA,kCF0EA,CAEA,uDACC,sDAkBD,CAhBC,6DACC,4DACD,CAEA,2FAKE,2DAMF,CAXA,2FASE,oEAEF",sourcesContent:["/*\n * Copyright (c) 2003-2022, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n.ck.ck-button.ck-switchbutton {\n\t& .ck-button__toggle {\n\t\tdisplay: block;\n\n\t\t& .ck-button__toggle__inner {\n\t\t\tdisplay: block;\n\t\t}\n\t}\n}\n",'/*\n * Copyright (c) 2003-2022, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n@import "../../../mixins/_rounded.css";\n@import "../../../mixins/_disabled.css";\n@import "@ckeditor/ckeditor5-ui/theme/mixins/_dir.css";\n\n/* Note: To avoid rendering issues (aliasing) but to preserve the responsive nature\nof the component, floating–point numbers have been used which, for the default font size\n(see: --ck-font-size-base), will generate simple integers. */\n:root {\n\t/* 34px at 13px font-size */\n\t--ck-switch-button-toggle-width: 2.6153846154em;\n\t/* 14px at 13px font-size */\n\t--ck-switch-button-toggle-inner-size: 1.0769230769em;\n\t--ck-switch-button-toggle-spacing: 1px;\n\t--ck-switch-button-translation: calc(\n\t\tvar(--ck-switch-button-toggle-width) -\n\t\tvar(--ck-switch-button-toggle-inner-size) -\n\t\t2 * var(--ck-switch-button-toggle-spacing)\n\t);\n}\n\n.ck.ck-button.ck-switchbutton {\n\t& .ck-button__label {\n\t\t@mixin ck-dir ltr {\n\t\t\t/* Separate the label from the switch */\n\t\t\tmargin-right: calc(2 * var(--ck-spacing-large));\n\t\t}\n\n\t\t@mixin ck-dir rtl {\n\t\t\t/* Separate the label from the switch */\n\t\t\tmargin-left: calc(2 * var(--ck-spacing-large));\n\t\t}\n\t}\n\n\t& .ck-button__toggle {\n\t\t@mixin ck-rounded-corners;\n\n\t\t@mixin ck-dir ltr {\n\t\t\t/* Make sure the toggle is always to the right as far as possible. */\n\t\t\tmargin-left: auto;\n\t\t}\n\n\t\t@mixin ck-dir rtl {\n\t\t\t/* Make sure the toggle is always to the left as far as possible. */\n\t\t\tmargin-right: auto;\n\t\t}\n\n\t\t/* Gently animate the background color of the toggle switch */\n\t\ttransition: background 400ms ease;\n\n\t\twidth: var(--ck-switch-button-toggle-width);\n\t\tbackground: var(--ck-color-switch-button-off-background);\n\n\t\t& .ck-button__toggle__inner {\n\t\t\t@mixin ck-rounded-corners {\n\t\t\t\tborder-radius: calc(.5 * var(--ck-border-radius));\n\t\t\t}\n\n\t\t\t/* Leave some tiny bit of space around the inner part of the switch */\n\t\t\tmargin: var(--ck-switch-button-toggle-spacing);\n\t\t\twidth: var(--ck-switch-button-toggle-inner-size);\n\t\t\theight: var(--ck-switch-button-toggle-inner-size);\n\t\t\tbackground: var(--ck-color-switch-button-inner-background);\n\n\t\t\t/* Gently animate the inner part of the toggle switch */\n\t\t\ttransition: all 300ms ease;\n\t\t}\n\n\t\t&:hover {\n\t\t\tbackground: var(--ck-color-switch-button-off-hover-background);\n\n\t\t\t& .ck-button__toggle__inner {\n\t\t\t\tbox-shadow: 0 0 0 5px var(--ck-color-switch-button-inner-shadow);\n\t\t\t}\n\t\t}\n\t}\n\n\t&.ck-disabled .ck-button__toggle {\n\t\t@mixin ck-disabled;\n\t}\n\n\t&.ck-on .ck-button__toggle {\n\t\tbackground: var(--ck-color-switch-button-on-background);\n\n\t\t&:hover {\n\t\t\tbackground: var(--ck-color-switch-button-on-hover-background);\n\t\t}\n\n\t\t& .ck-button__toggle__inner {\n\t\t\t/*\n\t\t\t * Move the toggle switch to the right. It will be animated.\n\t\t\t */\n\t\t\t@mixin ck-dir ltr {\n\t\t\t\ttransform: translateX( var( --ck-switch-button-translation ) );\n\t\t\t}\n\n\t\t\t@mixin ck-dir rtl {\n\t\t\t\ttransform: translateX( calc( -1 * var( --ck-switch-button-translation ) ) );\n\t\t\t}\n\t\t}\n\t}\n}\n',"/*\n * Copyright (c) 2003-2022, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n/**\n * Implements rounded corner interface for .ck-rounded-corners class.\n *\n * @see $ck-border-radius\n */\n@define-mixin ck-rounded-corners {\n\tborder-radius: 0;\n\n\t@nest .ck-rounded-corners &,\n\t&.ck-rounded-corners {\n\t\tborder-radius: var(--ck-border-radius);\n\t\t@mixin-content;\n\t}\n}\n","/*\n * Copyright (c) 2003-2022, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n/**\n * A class which indicates that an element holding it is disabled.\n */\n@define-mixin ck-disabled {\n\topacity: var(--ck-disabled-opacity);\n}\n"],sourceRoot:""}]);const a=s},4923:(t,e,n)=>{"use strict";n.d(e,{Z:()=>a});var o=n(4015),i=n.n(o),r=n(3645),s=n.n(r)()(i());s.push([t.id,".ck.ck-color-grid{display:grid}:root{--ck-color-grid-tile-size:24px;--ck-color-color-grid-check-icon:#000}.ck.ck-color-grid{grid-gap:5px;padding:8px}.ck.ck-color-grid__tile{border:0;height:var(--ck-color-grid-tile-size);min-height:var(--ck-color-grid-tile-size);min-width:var(--ck-color-grid-tile-size);padding:0;transition:box-shadow .2s ease;width:var(--ck-color-grid-tile-size)}.ck.ck-color-grid__tile.ck-disabled{cursor:unset;transition:unset}.ck.ck-color-grid__tile.ck-color-table__color-tile_bordered{box-shadow:0 0 0 1px var(--ck-color-base-border)}.ck.ck-color-grid__tile .ck.ck-icon{color:var(--ck-color-color-grid-check-icon);display:none}.ck.ck-color-grid__tile.ck-on{box-shadow:inset 0 0 0 1px var(--ck-color-base-background),0 0 0 2px var(--ck-color-base-text)}.ck.ck-color-grid__tile.ck-on .ck.ck-icon{display:block}.ck.ck-color-grid__tile.ck-on,.ck.ck-color-grid__tile:focus:not(.ck-disabled),.ck.ck-color-grid__tile:hover:not(.ck-disabled){border:0}.ck.ck-color-grid__tile:focus:not(.ck-disabled),.ck.ck-color-grid__tile:hover:not(.ck-disabled){box-shadow:inset 0 0 0 1px var(--ck-color-base-background),0 0 0 2px var(--ck-color-focus-border)}.ck.ck-color-grid__label{padding:0 var(--ck-spacing-standard)}","",{version:3,sources:["webpack://./node_modules/@ckeditor/ckeditor5-ui/theme/components/colorgrid/colorgrid.css","webpack://./node_modules/@ckeditor/ckeditor5-theme-lark/theme/ckeditor5-ui/components/colorgrid/colorgrid.css"],names:[],mappings:"AAKA,kBACC,YACD,CCAA,MACC,8BAA+B,CAK/B,qCACD,CAEA,kBACC,YAAa,CACb,WACD,CAEA,wBAOC,QAAS,CALT,qCAAsC,CAEtC,yCAA0C,CAD1C,wCAAyC,CAEzC,SAAU,CACV,8BAA+B,CAL/B,oCAyCD,CAjCC,oCACC,YAAa,CACb,gBACD,CAEA,4DACC,gDACD,CAEA,oCAEC,2CAA4C,CAD5C,YAED,CAEA,8BACC,8FAKD,CAHC,0CACC,aACD,CAGD,8HAIC,QACD,CAEA,gGAEC,iGACD,CAGD,yBACC,oCACD",sourcesContent:["/*\n * Copyright (c) 2003-2022, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n.ck.ck-color-grid {\n\tdisplay: grid;\n}\n",'/*\n * Copyright (c) 2003-2022, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n@import "../../../mixins/_rounded.css";\n\n:root {\n\t--ck-color-grid-tile-size: 24px;\n\n\t/* Not using global colors here because these may change but some colors in a pallette\n\t * require special treatment. For instance, this ensures no matter what the UI text color is,\n\t * the check icon will look good on the black color tile. */\n\t--ck-color-color-grid-check-icon: hsl(0, 0%, 0%);\n}\n\n.ck.ck-color-grid {\n\tgrid-gap: 5px;\n\tpadding: 8px;\n}\n\n.ck.ck-color-grid__tile {\n\twidth: var(--ck-color-grid-tile-size);\n\theight: var(--ck-color-grid-tile-size);\n\tmin-width: var(--ck-color-grid-tile-size);\n\tmin-height: var(--ck-color-grid-tile-size);\n\tpadding: 0;\n\ttransition: .2s ease box-shadow;\n\tborder: 0;\n\n\t&.ck-disabled {\n\t\tcursor: unset;\n\t\ttransition: unset;\n\t}\n\n\t&.ck-color-table__color-tile_bordered {\n\t\tbox-shadow: 0 0 0 1px var(--ck-color-base-border);\n\t}\n\n\t& .ck.ck-icon {\n\t\tdisplay: none;\n\t\tcolor: var(--ck-color-color-grid-check-icon);\n\t}\n\n\t&.ck-on {\n\t\tbox-shadow: inset 0 0 0 1px var(--ck-color-base-background), 0 0 0 2px var(--ck-color-base-text);\n\n\t\t& .ck.ck-icon {\n\t\t\tdisplay: block;\n\t\t}\n\t}\n\n\t&.ck-on,\n\t&:focus:not( .ck-disabled ),\n\t&:hover:not( .ck-disabled ) {\n\t\t/* Disable the default .ck-button\'s border ring. */\n\t\tborder: 0;\n\t}\n\n\t&:focus:not( .ck-disabled ),\n\t&:hover:not( .ck-disabled ) {\n\t\tbox-shadow: inset 0 0 0 1px var(--ck-color-base-background), 0 0 0 2px var(--ck-color-focus-border);\n\t}\n}\n\n.ck.ck-color-grid__label {\n\tpadding: 0 var(--ck-spacing-standard);\n}\n'],sourceRoot:""}]);const a=s},3488:(t,e,n)=>{"use strict";n.d(e,{Z:()=>a});var o=n(4015),i=n.n(o),r=n(3645),s=n.n(r)()(i());s.push([t.id,":root{--ck-dropdown-max-width:75vw}.ck.ck-dropdown{display:inline-block;position:relative}.ck.ck-dropdown .ck-dropdown__arrow{pointer-events:none;z-index:var(--ck-z-default)}.ck.ck-dropdown .ck-button.ck-dropdown__button{width:100%}.ck.ck-dropdown .ck-button.ck-dropdown__button.ck-on .ck-tooltip{display:none}.ck.ck-dropdown .ck-dropdown__panel{-webkit-backface-visibility:hidden;display:none;max-width:var(--ck-dropdown-max-width);position:absolute;z-index:var(--ck-z-modal)}.ck.ck-dropdown .ck-dropdown__panel.ck-dropdown__panel-visible{display:inline-block}.ck.ck-dropdown .ck-dropdown__panel.ck-dropdown__panel_n,.ck.ck-dropdown .ck-dropdown__panel.ck-dropdown__panel_ne,.ck.ck-dropdown .ck-dropdown__panel.ck-dropdown__panel_nme,.ck.ck-dropdown .ck-dropdown__panel.ck-dropdown__panel_nmw,.ck.ck-dropdown .ck-dropdown__panel.ck-dropdown__panel_nw{bottom:100%}.ck.ck-dropdown .ck-dropdown__panel.ck-dropdown__panel_s,.ck.ck-dropdown .ck-dropdown__panel.ck-dropdown__panel_se,.ck.ck-dropdown .ck-dropdown__panel.ck-dropdown__panel_sme,.ck.ck-dropdown .ck-dropdown__panel.ck-dropdown__panel_smw,.ck.ck-dropdown .ck-dropdown__panel.ck-dropdown__panel_sw{bottom:auto;top:100%}.ck.ck-dropdown .ck-dropdown__panel.ck-dropdown__panel_ne,.ck.ck-dropdown .ck-dropdown__panel.ck-dropdown__panel_se{left:0}.ck.ck-dropdown .ck-dropdown__panel.ck-dropdown__panel_nw,.ck.ck-dropdown .ck-dropdown__panel.ck-dropdown__panel_sw{right:0}.ck.ck-dropdown .ck-dropdown__panel.ck-dropdown__panel_n,.ck.ck-dropdown .ck-dropdown__panel.ck-dropdown__panel_s{left:50%;transform:translateX(-50%)}.ck.ck-dropdown .ck-dropdown__panel.ck-dropdown__panel_nmw,.ck.ck-dropdown .ck-dropdown__panel.ck-dropdown__panel_smw{left:75%;transform:translateX(-75%)}.ck.ck-dropdown .ck-dropdown__panel.ck-dropdown__panel_nme,.ck.ck-dropdown .ck-dropdown__panel.ck-dropdown__panel_sme{left:25%;transform:translateX(-25%)}.ck.ck-toolbar .ck-dropdown__panel{z-index:calc(var(--ck-z-modal) + 1)}:root{--ck-dropdown-arrow-size:calc(var(--ck-icon-size)*0.5)}.ck.ck-dropdown{font-size:inherit}.ck.ck-dropdown .ck-dropdown__arrow{width:var(--ck-dropdown-arrow-size)}[dir=ltr] .ck.ck-dropdown .ck-dropdown__arrow{margin-left:var(--ck-spacing-standard);right:var(--ck-spacing-standard)}[dir=rtl] .ck.ck-dropdown .ck-dropdown__arrow{left:var(--ck-spacing-standard);margin-right:var(--ck-spacing-small)}.ck.ck-dropdown.ck-disabled .ck-dropdown__arrow{opacity:var(--ck-disabled-opacity)}[dir=ltr] .ck.ck-dropdown .ck-button.ck-dropdown__button:not(.ck-button_with-text){padding-left:var(--ck-spacing-small)}[dir=rtl] .ck.ck-dropdown .ck-button.ck-dropdown__button:not(.ck-button_with-text){padding-right:var(--ck-spacing-small)}.ck.ck-dropdown .ck-button.ck-dropdown__button .ck-button__label{overflow:hidden;text-overflow:ellipsis;width:7em}.ck.ck-dropdown .ck-button.ck-dropdown__button.ck-disabled .ck-button__label{opacity:var(--ck-disabled-opacity)}.ck.ck-dropdown .ck-button.ck-dropdown__button.ck-on{border-bottom-left-radius:0;border-bottom-right-radius:0}.ck.ck-dropdown .ck-button.ck-dropdown__button.ck-dropdown__button_label-width_auto .ck-button__label{width:auto}.ck.ck-dropdown .ck-button.ck-dropdown__button.ck-off:active,.ck.ck-dropdown .ck-button.ck-dropdown__button.ck-on:active{box-shadow:none}.ck.ck-dropdown .ck-button.ck-dropdown__button.ck-off:active:focus,.ck.ck-dropdown .ck-button.ck-dropdown__button.ck-on:active:focus{box-shadow:var(--ck-focus-outer-shadow),0 0}.ck.ck-dropdown__panel{border-radius:0}.ck-rounded-corners .ck.ck-dropdown__panel,.ck.ck-dropdown__panel.ck-rounded-corners{border-radius:var(--ck-border-radius)}.ck.ck-dropdown__panel{background:var(--ck-color-dropdown-panel-background);border:1px solid var(--ck-color-dropdown-panel-border);bottom:0;box-shadow:var(--ck-drop-shadow),0 0;min-width:100%}.ck.ck-dropdown__panel.ck-dropdown__panel_se{border-top-left-radius:0}.ck.ck-dropdown__panel.ck-dropdown__panel_sw{border-top-right-radius:0}.ck.ck-dropdown__panel.ck-dropdown__panel_ne{border-bottom-left-radius:0}.ck.ck-dropdown__panel.ck-dropdown__panel_nw{border-bottom-right-radius:0}","",{version:3,sources:["webpack://./node_modules/@ckeditor/ckeditor5-ui/theme/components/dropdown/dropdown.css","webpack://./node_modules/@ckeditor/ckeditor5-ui/theme/components/tooltip/mixins/_tooltip.css","webpack://./node_modules/@ckeditor/ckeditor5-theme-lark/theme/ckeditor5-ui/components/dropdown/dropdown.css","webpack://./node_modules/@ckeditor/ckeditor5-theme-lark/theme/mixins/_disabled.css","webpack://./node_modules/@ckeditor/ckeditor5-theme-lark/theme/mixins/_shadow.css","webpack://./node_modules/@ckeditor/ckeditor5-theme-lark/theme/mixins/_rounded.css"],names:[],mappings:"AAOA,MACC,4BACD,CAEA,gBACC,oBAAqB,CACrB,iBAqFD,CAnFC,oCACC,mBAAoB,CACpB,2BACD,CAGA,+CACC,UAOD,CCUA,iEACC,YACD,CDVA,oCAGC,kCAAmC,CAEnC,YAAa,CAEb,sCAAuC,CAEvC,iBAAkB,CAHlB,yBA4DD,CAvDC,+DACC,oBACD,CAEA,mSAKC,WACD,CAEA,mSAUC,WAAY,CADZ,QAED,CAEA,oHAEC,MACD,CAEA,oHAEC,OACD,CAEA,kHAGC,QAAS,CACT,0BACD,CAEA,sHAGC,QAAS,CACT,0BACD,CAEA,sHAGC,QAAS,CACT,0BACD,CAQF,mCACC,mCACD,CEhGA,MACC,sDACD,CAEA,gBAEC,iBA2ED,CAzEC,oCACC,mCACD,CAGC,8CAIC,sCAAuC,CAHvC,gCAID,CAIA,8CACC,+BAAgC,CAGhC,oCACD,CAGD,gDC/BA,kCDiCA,CAIE,mFAEC,oCACD,CAIA,mFAEC,qCACD,CAID,iEAEC,eAAgB,CAChB,sBAAuB,CAFvB,SAGD,CAGA,6EC1DD,kCD4DC,CAGA,qDACC,2BAA4B,CAC5B,4BACD,CAEA,sGACC,UACD,CAGA,yHAEC,eAKD,CAHC,qIE7EF,2CF+EE,CAKH,uBGlFC,eH8GD,CA5BA,qFG9EE,qCH0GF,CA5BA,uBAIC,oDAAqD,CACrD,sDAAuD,CACvD,QAAS,CE1FT,oCAA8B,CF6F9B,cAmBD,CAfC,6CACC,wBACD,CAEA,6CACC,yBACD,CAEA,6CACC,2BACD,CAEA,6CACC,4BACD",sourcesContent:["/*\n * Copyright (c) 2003-2022, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n@import \"../tooltip/mixins/_tooltip.css\";\n\n:root {\n\t--ck-dropdown-max-width: 75vw;\n}\n\n.ck.ck-dropdown {\n\tdisplay: inline-block;\n\tposition: relative;\n\n\t& .ck-dropdown__arrow {\n\t\tpointer-events: none;\n\t\tz-index: var(--ck-z-default);\n\t}\n\n\t/* Dropdown button should span horizontally, e.g. in vertical toolbars */\n\t& .ck-button.ck-dropdown__button {\n\t\twidth: 100%;\n\n\t\t/* Disable main button's tooltip when the dropdown is open. Otherwise the panel may\n\t\tpartially cover the tooltip */\n\t\t&.ck-on {\n\t\t\t@mixin ck-tooltip_disabled;\n\t\t}\n\t}\n\n\t& .ck-dropdown__panel {\n\t\t/* This is to get rid of flickering when the tooltip is shown under the panel,\n\t\twhich looks like the panel moves vertically a pixel down and up. */\n\t\t-webkit-backface-visibility: hidden;\n\n\t\tdisplay: none;\n\t\tz-index: var(--ck-z-modal);\n\t\tmax-width: var(--ck-dropdown-max-width);\n\n\t\tposition: absolute;\n\n\t\t&.ck-dropdown__panel-visible {\n\t\t\tdisplay: inline-block;\n\t\t}\n\n\t\t&.ck-dropdown__panel_ne,\n\t\t&.ck-dropdown__panel_nw,\n\t\t&.ck-dropdown__panel_n,\n\t\t&.ck-dropdown__panel_nmw,\n\t\t&.ck-dropdown__panel_nme {\n\t\t\tbottom: 100%;\n\t\t}\n\n\t\t&.ck-dropdown__panel_se,\n\t\t&.ck-dropdown__panel_sw,\n\t\t&.ck-dropdown__panel_smw,\n\t\t&.ck-dropdown__panel_sme,\n\t\t&.ck-dropdown__panel_s {\n\t\t\t/*\n\t\t\t * Using transform: translate3d( 0, 100%, 0 ) causes blurry dropdown on Chrome 67-78+ on non-retina displays.\n\t\t\t * See https://github.com/ckeditor/ckeditor5/issues/1053.\n\t\t\t */\n\t\t\ttop: 100%;\n\t\t\tbottom: auto;\n\t\t}\n\n\t\t&.ck-dropdown__panel_ne,\n\t\t&.ck-dropdown__panel_se {\n\t\t\tleft: 0px;\n\t\t}\n\n\t\t&.ck-dropdown__panel_nw,\n\t\t&.ck-dropdown__panel_sw {\n\t\t\tright: 0px;\n\t\t}\n\n\t\t&.ck-dropdown__panel_s,\n\t\t&.ck-dropdown__panel_n {\n\t\t\t/* Positioning panels relative to the center of the button */\n\t\t\tleft: 50%;\n\t\t\ttransform: translateX(-50%);\n\t\t}\n\n\t\t&.ck-dropdown__panel_nmw,\n\t\t&.ck-dropdown__panel_smw {\n\t\t\t/* Positioning panels relative to the middle-west of the button */\n\t\t\tleft: 75%;\n\t\t\ttransform: translateX(-75%);\n\t\t}\n\n\t\t&.ck-dropdown__panel_nme,\n\t\t&.ck-dropdown__panel_sme {\n\t\t\t/* Positioning panels relative to the middle-east of the button */\n\t\t\tleft: 25%;\n\t\t\ttransform: translateX(-25%);\n\t\t}\n\t}\n}\n\n/*\n * Toolbar dropdown panels should be always above the UI (eg. other dropdown panels) from the editor's content.\n * See https://github.com/ckeditor/ckeditor5/issues/7874\n */\n.ck.ck-toolbar .ck-dropdown__panel {\n\tz-index: calc( var(--ck-z-modal) + 1 );\n}\n","/*\n * Copyright (c) 2003-2022, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n/**\n * Enables the tooltip, which is the tooltip is in DOM but\n * not yet displayed.\n */\n@define-mixin ck-tooltip_enabled {\n\t& .ck-tooltip {\n\t\tdisplay: block;\n\n\t\t/*\n\t\t * Don't display tooltips in devices which don't support :hover.\n\t\t * In fact, it's all about iOS, which forces user to click UI elements twice to execute\n\t\t * the primary action, when tooltips are enabled.\n\t\t *\n\t\t * Q: OK, but why not the following query?\n\t\t *\n\t\t * @media (hover) {\n\t\t * display: block;\n\t\t * }\n\t\t *\n\t\t * A: Because FF does not support it and it would completely disable tooltips\n\t\t * in that browser.\n\t\t *\n\t\t * More in https://github.com/ckeditor/ckeditor5/issues/920.\n\t\t */\n\t\t@media (hover:none) {\n\t\t\tdisplay: none;\n\t\t}\n\t}\n}\n\n/**\n * Disables the tooltip making it disappear from DOM.\n */\n@define-mixin ck-tooltip_disabled {\n\t& .ck-tooltip {\n\t\tdisplay: none;\n\t}\n}\n\n/**\n * Shows the tooltip, which is already in DOM.\n * Requires `ck-tooltip_enabled` first.\n */\n@define-mixin ck-tooltip_visible {\n\t& .ck-tooltip {\n\t\tvisibility: visible;\n\t\topacity: 1;\n\t}\n}\n",'/*\n * Copyright (c) 2003-2022, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n@import "../../../mixins/_rounded.css";\n@import "../../../mixins/_disabled.css";\n@import "../../../mixins/_shadow.css";\n@import "@ckeditor/ckeditor5-ui/theme/mixins/_dir.css";\n\n:root {\n\t--ck-dropdown-arrow-size: calc(0.5 * var(--ck-icon-size));\n}\n\n.ck.ck-dropdown {\n\t/* Enable font size inheritance, which allows fluid UI scaling. */\n\tfont-size: inherit;\n\n\t& .ck-dropdown__arrow {\n\t\twidth: var(--ck-dropdown-arrow-size);\n\t}\n\n\t@mixin ck-dir ltr {\n\t\t& .ck-dropdown__arrow {\n\t\t\tright: var(--ck-spacing-standard);\n\n\t\t\t/* A space to accommodate the triangle. */\n\t\t\tmargin-left: var(--ck-spacing-standard);\n\t\t}\n\t}\n\n\t@mixin ck-dir rtl {\n\t\t& .ck-dropdown__arrow {\n\t\t\tleft: var(--ck-spacing-standard);\n\n\t\t\t/* A space to accommodate the triangle. */\n\t\t\tmargin-right: var(--ck-spacing-small);\n\t\t}\n\t}\n\n\t&.ck-disabled .ck-dropdown__arrow {\n\t\t@mixin ck-disabled;\n\t}\n\n\t& .ck-button.ck-dropdown__button {\n\t\t@mixin ck-dir ltr {\n\t\t\t&:not(.ck-button_with-text) {\n\t\t\t\t/* Make sure dropdowns with just an icon have the right inner spacing */\n\t\t\t\tpadding-left: var(--ck-spacing-small);\n\t\t\t}\n\t\t}\n\n\t\t@mixin ck-dir rtl {\n\t\t\t&:not(.ck-button_with-text) {\n\t\t\t\t/* Make sure dropdowns with just an icon have the right inner spacing */\n\t\t\t\tpadding-right: var(--ck-spacing-small);\n\t\t\t}\n\t\t}\n\n\t\t/* #23 */\n\t\t& .ck-button__label {\n\t\t\twidth: 7em;\n\t\t\toverflow: hidden;\n\t\t\ttext-overflow: ellipsis;\n\t\t}\n\n\t\t/* https://github.com/ckeditor/ckeditor5-theme-lark/issues/70 */\n\t\t&.ck-disabled .ck-button__label {\n\t\t\t@mixin ck-disabled;\n\t\t}\n\n\t\t/* https://github.com/ckeditor/ckeditor5/issues/816 */\n\t\t&.ck-on {\n\t\t\tborder-bottom-left-radius: 0;\n\t\t\tborder-bottom-right-radius: 0;\n\t\t}\n\n\t\t&.ck-dropdown__button_label-width_auto .ck-button__label {\n\t\t\twidth: auto;\n\t\t}\n\n\t\t/* https://github.com/ckeditor/ckeditor5/issues/8699 */\n\t\t&.ck-off:active,\n\t\t&.ck-on:active {\n\t\t\tbox-shadow: none;\n\t\t\t\n\t\t\t&:focus {\n\t\t\t\t@mixin ck-box-shadow var(--ck-focus-outer-shadow);\n\t\t\t}\n\t\t}\n\t}\n}\n\n.ck.ck-dropdown__panel {\n\t@mixin ck-rounded-corners;\n\t@mixin ck-drop-shadow;\n\n\tbackground: var(--ck-color-dropdown-panel-background);\n\tborder: 1px solid var(--ck-color-dropdown-panel-border);\n\tbottom: 0;\n\n\t/* Make sure the panel is at least as wide as the drop-down\'s button. */\n\tmin-width: 100%;\n\n\t/* Disabled corner border radius to be consistent with the .dropdown__button\n\thttps://github.com/ckeditor/ckeditor5/issues/816 */\n\t&.ck-dropdown__panel_se {\n\t\tborder-top-left-radius: 0;\n\t}\n\n\t&.ck-dropdown__panel_sw {\n\t\tborder-top-right-radius: 0;\n\t}\n\n\t&.ck-dropdown__panel_ne {\n\t\tborder-bottom-left-radius: 0;\n\t}\n\n\t&.ck-dropdown__panel_nw {\n\t\tborder-bottom-right-radius: 0;\n\t}\n}\n',"/*\n * Copyright (c) 2003-2022, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n/**\n * A class which indicates that an element holding it is disabled.\n */\n@define-mixin ck-disabled {\n\topacity: var(--ck-disabled-opacity);\n}\n","/*\n * Copyright (c) 2003-2022, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n/**\n * A helper to combine multiple shadows.\n */\n@define-mixin ck-box-shadow $shadowA, $shadowB: 0 0 {\n\tbox-shadow: $shadowA, $shadowB;\n}\n\n/**\n * Gives an element a drop shadow so it looks like a floating panel.\n */\n@define-mixin ck-drop-shadow {\n\t@mixin ck-box-shadow var(--ck-drop-shadow);\n}\n","/*\n * Copyright (c) 2003-2022, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n/**\n * Implements rounded corner interface for .ck-rounded-corners class.\n *\n * @see $ck-border-radius\n */\n@define-mixin ck-rounded-corners {\n\tborder-radius: 0;\n\n\t@nest .ck-rounded-corners &,\n\t&.ck-rounded-corners {\n\t\tborder-radius: var(--ck-border-radius);\n\t\t@mixin-content;\n\t}\n}\n"],sourceRoot:""}]);const a=s},6875:(t,e,n)=>{"use strict";n.d(e,{Z:()=>a});var o=n(4015),i=n.n(o),r=n(3645),s=n.n(r)()(i());s.push([t.id,".ck.ck-dropdown .ck-dropdown__panel .ck-list{border-radius:0}.ck-rounded-corners .ck.ck-dropdown .ck-dropdown__panel .ck-list,.ck.ck-dropdown .ck-dropdown__panel .ck-list.ck-rounded-corners{border-radius:var(--ck-border-radius);border-top-left-radius:0}.ck.ck-dropdown .ck-dropdown__panel .ck-list .ck-list__item:first-child .ck-button{border-radius:0}.ck-rounded-corners .ck.ck-dropdown .ck-dropdown__panel .ck-list .ck-list__item:first-child .ck-button,.ck.ck-dropdown .ck-dropdown__panel .ck-list .ck-list__item:first-child .ck-button.ck-rounded-corners{border-radius:var(--ck-border-radius);border-bottom-left-radius:0;border-bottom-right-radius:0;border-top-left-radius:0}.ck.ck-dropdown .ck-dropdown__panel .ck-list .ck-list__item:last-child .ck-button{border-radius:0}.ck-rounded-corners .ck.ck-dropdown .ck-dropdown__panel .ck-list .ck-list__item:last-child .ck-button,.ck.ck-dropdown .ck-dropdown__panel .ck-list .ck-list__item:last-child .ck-button.ck-rounded-corners{border-radius:var(--ck-border-radius);border-top-left-radius:0;border-top-right-radius:0}","",{version:3,sources:["webpack://./node_modules/@ckeditor/ckeditor5-theme-lark/theme/ckeditor5-ui/components/dropdown/listdropdown.css","webpack://./node_modules/@ckeditor/ckeditor5-theme-lark/theme/mixins/_rounded.css"],names:[],mappings:"AAOA,6CCIC,eDqBD,CAzBA,iICQE,qCAAsC,CDJtC,wBAqBF,CAfE,mFCND,eDYC,CANA,6MCFA,qCAAsC,CDKpC,2BAA4B,CAC5B,4BAA6B,CAF7B,wBAIF,CAEA,kFCdD,eDmBC,CALA,2MCVA,qCAAsC,CDYpC,wBAAyB,CACzB,yBAEF",sourcesContent:['/*\n * Copyright (c) 2003-2022, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n@import "../../../mixins/_rounded.css";\n\n.ck.ck-dropdown .ck-dropdown__panel .ck-list {\n\t/* Disabled radius of top-left border to be consistent with .dropdown__button\n\thttps://github.com/ckeditor/ckeditor5/issues/816 */\n\t@mixin ck-rounded-corners {\n\t\tborder-top-left-radius: 0;\n\t}\n\n\t/* Make sure the button belonging to the first/last child of the list goes well with the\n\tborder radius of the entire panel. */\n\t& .ck-list__item {\n\t\t&:first-child .ck-button {\n\t\t\t@mixin ck-rounded-corners {\n\t\t\t\tborder-top-left-radius: 0;\n\t\t\t\tborder-bottom-left-radius: 0;\n\t\t\t\tborder-bottom-right-radius: 0;\n\t\t\t}\n\t\t}\n\n\t\t&:last-child .ck-button {\n\t\t\t@mixin ck-rounded-corners {\n\t\t\t\tborder-top-left-radius: 0;\n\t\t\t\tborder-top-right-radius: 0;\n\t\t\t}\n\t\t}\n\t}\n}\n',"/*\n * Copyright (c) 2003-2022, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n/**\n * Implements rounded corner interface for .ck-rounded-corners class.\n *\n * @see $ck-border-radius\n */\n@define-mixin ck-rounded-corners {\n\tborder-radius: 0;\n\n\t@nest .ck-rounded-corners &,\n\t&.ck-rounded-corners {\n\t\tborder-radius: var(--ck-border-radius);\n\t\t@mixin-content;\n\t}\n}\n"],sourceRoot:""}]);const a=s},66:(t,e,n)=>{"use strict";n.d(e,{Z:()=>a});var o=n(4015),i=n.n(o),r=n(3645),s=n.n(r)()(i());s.push([t.id,'.ck.ck-splitbutton{font-size:inherit}.ck.ck-splitbutton .ck-splitbutton__action:focus{z-index:calc(var(--ck-z-default) + 1)}.ck.ck-splitbutton.ck-splitbutton_open>.ck-button .ck-tooltip{display:none}:root{--ck-color-split-button-hover-background:#ebebeb;--ck-color-split-button-hover-border:#b3b3b3}[dir=ltr] .ck.ck-splitbutton.ck-splitbutton_open>.ck-splitbutton__action,[dir=ltr] .ck.ck-splitbutton:hover>.ck-splitbutton__action{border-bottom-right-radius:unset;border-top-right-radius:unset}[dir=rtl] .ck.ck-splitbutton.ck-splitbutton_open>.ck-splitbutton__action,[dir=rtl] .ck.ck-splitbutton:hover>.ck-splitbutton__action{border-bottom-left-radius:unset;border-top-left-radius:unset}.ck.ck-splitbutton>.ck-splitbutton__arrow{min-width:unset}[dir=ltr] .ck.ck-splitbutton>.ck-splitbutton__arrow{border-bottom-left-radius:unset;border-top-left-radius:unset}[dir=rtl] .ck.ck-splitbutton>.ck-splitbutton__arrow{border-bottom-right-radius:unset;border-top-right-radius:unset}.ck.ck-splitbutton>.ck-splitbutton__arrow svg{width:var(--ck-dropdown-arrow-size)}.ck.ck-splitbutton.ck-splitbutton_open>.ck-button:not(.ck-on):not(.ck-disabled):not(:hover),.ck.ck-splitbutton:hover>.ck-button:not(.ck-on):not(.ck-disabled):not(:hover){background:var(--ck-color-split-button-hover-background)}.ck.ck-splitbutton.ck-splitbutton_open>.ck-splitbutton__arrow:not(.ck-disabled):after,.ck.ck-splitbutton:hover>.ck-splitbutton__arrow:not(.ck-disabled):after{background-color:var(--ck-color-split-button-hover-border);content:"";height:100%;position:absolute;width:1px}[dir=ltr] .ck.ck-splitbutton.ck-splitbutton_open>.ck-splitbutton__arrow:not(.ck-disabled):after,[dir=ltr] .ck.ck-splitbutton:hover>.ck-splitbutton__arrow:not(.ck-disabled):after{left:-1px}[dir=rtl] .ck.ck-splitbutton.ck-splitbutton_open>.ck-splitbutton__arrow:not(.ck-disabled):after,[dir=rtl] .ck.ck-splitbutton:hover>.ck-splitbutton__arrow:not(.ck-disabled):after{right:-1px}.ck.ck-splitbutton.ck-splitbutton_open{border-radius:0}.ck-rounded-corners .ck.ck-splitbutton.ck-splitbutton_open,.ck.ck-splitbutton.ck-splitbutton_open.ck-rounded-corners{border-radius:var(--ck-border-radius)}.ck-rounded-corners .ck.ck-splitbutton.ck-splitbutton_open>.ck-splitbutton__action,.ck.ck-splitbutton.ck-splitbutton_open.ck-rounded-corners>.ck-splitbutton__action{border-bottom-left-radius:0}.ck-rounded-corners .ck.ck-splitbutton.ck-splitbutton_open>.ck-splitbutton__arrow,.ck.ck-splitbutton.ck-splitbutton_open.ck-rounded-corners>.ck-splitbutton__arrow{border-bottom-right-radius:0}',"",{version:3,sources:["webpack://./node_modules/@ckeditor/ckeditor5-ui/theme/components/dropdown/splitbutton.css","webpack://./node_modules/@ckeditor/ckeditor5-ui/theme/components/tooltip/mixins/_tooltip.css","webpack://./node_modules/@ckeditor/ckeditor5-theme-lark/theme/ckeditor5-ui/components/dropdown/splitbutton.css","webpack://./node_modules/@ckeditor/ckeditor5-theme-lark/theme/mixins/_rounded.css"],names:[],mappings:"AAOA,mBAEC,iBAUD,CARC,iDACC,qCACD,CC0BA,8DACC,YACD,CClCD,MACC,gDAAyD,CACzD,4CACD,CAMC,oIAKE,gCAAiC,CADjC,6BASF,CAbA,oIAWE,+BAAgC,CADhC,4BAGF,CAEA,0CAGC,eAiBD,CApBA,oDAQE,+BAAgC,CADhC,4BAaF,CApBA,oDAcE,gCAAiC,CADjC,6BAOF,CAHC,8CACC,mCACD,CASA,0KACC,wDACD,CAIA,8JAKC,0DAA2D,CAJ3D,UAAW,CAGX,WAAY,CAFZ,iBAAkB,CAClB,SAGD,CAGC,kLACC,SACD,CAIA,kLACC,UACD,CAMF,uCC7EA,eDuFA,CAVA,qHCzEC,qCDmFD,CARE,qKACC,2BACD,CAEA,mKACC,4BACD",sourcesContent:['/*\n * Copyright (c) 2003-2022, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n@import "../tooltip/mixins/_tooltip.css";\n\n.ck.ck-splitbutton {\n\t/* Enable font size inheritance, which allows fluid UI scaling. */\n\tfont-size: inherit;\n\n\t& .ck-splitbutton__action:focus {\n\t\tz-index: calc(var(--ck-z-default) + 1);\n\t}\n\n\t/* Disable tooltips for the buttons when the button is "open" */\n\t&.ck-splitbutton_open > .ck-button {\n\t\t@mixin ck-tooltip_disabled;\n\t}\n}\n\n',"/*\n * Copyright (c) 2003-2022, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n/**\n * Enables the tooltip, which is the tooltip is in DOM but\n * not yet displayed.\n */\n@define-mixin ck-tooltip_enabled {\n\t& .ck-tooltip {\n\t\tdisplay: block;\n\n\t\t/*\n\t\t * Don't display tooltips in devices which don't support :hover.\n\t\t * In fact, it's all about iOS, which forces user to click UI elements twice to execute\n\t\t * the primary action, when tooltips are enabled.\n\t\t *\n\t\t * Q: OK, but why not the following query?\n\t\t *\n\t\t * @media (hover) {\n\t\t * display: block;\n\t\t * }\n\t\t *\n\t\t * A: Because FF does not support it and it would completely disable tooltips\n\t\t * in that browser.\n\t\t *\n\t\t * More in https://github.com/ckeditor/ckeditor5/issues/920.\n\t\t */\n\t\t@media (hover:none) {\n\t\t\tdisplay: none;\n\t\t}\n\t}\n}\n\n/**\n * Disables the tooltip making it disappear from DOM.\n */\n@define-mixin ck-tooltip_disabled {\n\t& .ck-tooltip {\n\t\tdisplay: none;\n\t}\n}\n\n/**\n * Shows the tooltip, which is already in DOM.\n * Requires `ck-tooltip_enabled` first.\n */\n@define-mixin ck-tooltip_visible {\n\t& .ck-tooltip {\n\t\tvisibility: visible;\n\t\topacity: 1;\n\t}\n}\n",'/*\n * Copyright (c) 2003-2022, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n@import "../../../mixins/_rounded.css";\n\n:root {\n\t--ck-color-split-button-hover-background: hsl(0, 0%, 92%);\n\t--ck-color-split-button-hover-border: hsl(0, 0%, 70%);\n}\n\n.ck.ck-splitbutton {\n\t/*\n\t * Note: ck-rounded and ck-dir mixins don\'t go together (because they both use @nest).\n\t */\n\t&:hover > .ck-splitbutton__action,\n\t&.ck-splitbutton_open > .ck-splitbutton__action {\n\t\t@nest [dir="ltr"] & {\n\t\t\t/* Don\'t round the action button on the right side */\n\t\t\tborder-top-right-radius: unset;\n\t\t\tborder-bottom-right-radius: unset;\n\t\t}\n\n\t\t@nest [dir="rtl"] & {\n\t\t\t/* Don\'t round the action button on the left side */\n\t\t\tborder-top-left-radius: unset;\n\t\t\tborder-bottom-left-radius: unset;\n\t\t}\n\t}\n\n\t& > .ck-splitbutton__arrow {\n\t\t/* It\'s a text-less button and since the icon is positioned absolutely in such situation,\n\t\tit must get some arbitrary min-width. */\n\t\tmin-width: unset;\n\n\t\t@nest [dir="ltr"] & {\n\t\t\t/* Don\'t round the arrow button on the left side */\n\t\t\tborder-top-left-radius: unset;\n\t\t\tborder-bottom-left-radius: unset;\n\t\t}\n\n\t\t@nest [dir="rtl"] & {\n\t\t\t/* Don\'t round the arrow button on the right side */\n\t\t\tborder-top-right-radius: unset;\n\t\t\tborder-bottom-right-radius: unset;\n\t\t}\n\n\t\t& svg {\n\t\t\twidth: var(--ck-dropdown-arrow-size);\n\t\t}\n\t}\n\n\t/* When the split button is "open" (the arrow is on) or being hovered, it should get some styling\n\tas a whole. The background of both buttons should stand out and there should be a visual\n\tseparation between both buttons. */\n\t&.ck-splitbutton_open,\n\t&:hover {\n\t\t/* When the split button hovered as a whole, not as individual buttons. */\n\t\t& > .ck-button:not(.ck-on):not(.ck-disabled):not(:hover) {\n\t\t\tbackground: var(--ck-color-split-button-hover-background);\n\t\t}\n\n\t\t/* Splitbutton separator needs to be set with the ::after pseudoselector\n\t\tto display properly the borders on focus */\n\t\t& > .ck-splitbutton__arrow:not(.ck-disabled)::after {\n\t\t\tcontent: \'\';\n\t\t\tposition: absolute;\n\t\t\twidth: 1px;\n\t\t\theight: 100%;\n\t\t\tbackground-color: var(--ck-color-split-button-hover-border);\n\t\t}\n\n\t\t@nest [dir="ltr"] & {\n\t\t\t& > .ck-splitbutton__arrow:not(.ck-disabled)::after {\n\t\t\t\tleft: -1px;\n\t\t\t}\n\t\t}\n\n\t\t@nest [dir="rtl"] & {\n\t\t\t& > .ck-splitbutton__arrow:not(.ck-disabled)::after {\n\t\t\t\tright: -1px;\n\t\t\t}\n\t\t}\n\t}\n\n\t/* Don\'t round the bottom left and right corners of the buttons when "open"\n\thttps://github.com/ckeditor/ckeditor5/issues/816 */\n\t&.ck-splitbutton_open {\n\t\t@mixin ck-rounded-corners {\n\t\t\t& > .ck-splitbutton__action {\n\t\t\t\tborder-bottom-left-radius: 0;\n\t\t\t}\n\n\t\t\t& > .ck-splitbutton__arrow {\n\t\t\t\tborder-bottom-right-radius: 0;\n\t\t\t}\n\t\t}\n\t}\n}\n',"/*\n * Copyright (c) 2003-2022, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n/**\n * Implements rounded corner interface for .ck-rounded-corners class.\n *\n * @see $ck-border-radius\n */\n@define-mixin ck-rounded-corners {\n\tborder-radius: 0;\n\n\t@nest .ck-rounded-corners &,\n\t&.ck-rounded-corners {\n\t\tborder-radius: var(--ck-border-radius);\n\t\t@mixin-content;\n\t}\n}\n"],sourceRoot:""}]);const a=s},5075:(t,e,n)=>{"use strict";n.d(e,{Z:()=>a});var o=n(4015),i=n.n(o),r=n(3645),s=n.n(r)()(i());s.push([t.id,":root{--ck-toolbar-dropdown-max-width:60vw}.ck.ck-toolbar-dropdown>.ck-dropdown__panel{max-width:var(--ck-toolbar-dropdown-max-width);width:max-content}.ck.ck-toolbar-dropdown>.ck-dropdown__panel .ck-button:focus{z-index:calc(var(--ck-z-default) + 1)}.ck.ck-toolbar-dropdown .ck-toolbar{border:0}","",{version:3,sources:["webpack://./node_modules/@ckeditor/ckeditor5-ui/theme/components/dropdown/toolbardropdown.css","webpack://./node_modules/@ckeditor/ckeditor5-theme-lark/theme/ckeditor5-ui/components/dropdown/toolbardropdown.css"],names:[],mappings:"AAKA,MACC,oCACD,CAEA,4CAGC,8CAA+C,CAD/C,iBAQD,CAJE,6DACC,qCACD,CCZF,oCACC,QACD",sourcesContent:["/*\n * Copyright (c) 2003-2022, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n:root {\n\t--ck-toolbar-dropdown-max-width: 60vw;\n}\n\n.ck.ck-toolbar-dropdown > .ck-dropdown__panel {\n\t/* https://github.com/ckeditor/ckeditor5/issues/5586 */\n\twidth: max-content;\n\tmax-width: var(--ck-toolbar-dropdown-max-width);\n\n\t& .ck-button {\n\t\t&:focus {\n\t\t\tz-index: calc(var(--ck-z-default) + 1);\n\t\t}\n\t}\n}\n","/*\n * Copyright (c) 2003-2022, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n.ck.ck-toolbar-dropdown .ck-toolbar {\n\tborder: 0;\n}\n"],sourceRoot:""}]);const a=s},4547:(t,e,n)=>{"use strict";n.d(e,{Z:()=>a});var o=n(4015),i=n.n(o),r=n(3645),s=n.n(r)()(i());s.push([t.id,":root{--ck-color-editable-blur-selection:#d9d9d9}.ck.ck-editor__editable:not(.ck-editor__nested-editable){border-radius:0}.ck-rounded-corners .ck.ck-editor__editable:not(.ck-editor__nested-editable),.ck.ck-editor__editable.ck-rounded-corners:not(.ck-editor__nested-editable){border-radius:var(--ck-border-radius)}.ck.ck-editor__editable.ck-focused:not(.ck-editor__nested-editable){border:var(--ck-focus-ring);box-shadow:var(--ck-inner-shadow),0 0;outline:none}.ck.ck-editor__editable_inline{border:1px solid transparent;overflow:auto;padding:0 var(--ck-spacing-standard)}.ck.ck-editor__editable_inline[dir=ltr]{text-align:left}.ck.ck-editor__editable_inline[dir=rtl]{text-align:right}.ck.ck-editor__editable_inline>:first-child{margin-top:var(--ck-spacing-large)}.ck.ck-editor__editable_inline>:last-child{margin-bottom:var(--ck-spacing-large)}.ck.ck-editor__editable_inline.ck-blurred ::selection{background:var(--ck-color-editable-blur-selection)}.ck.ck-balloon-panel.ck-toolbar-container[class*=arrow_n]:after{border-bottom-color:var(--ck-color-base-foreground)}.ck.ck-balloon-panel.ck-toolbar-container[class*=arrow_s]:after{border-top-color:var(--ck-color-base-foreground)}","",{version:3,sources:["webpack://./node_modules/@ckeditor/ckeditor5-theme-lark/theme/ckeditor5-ui/components/editorui/editorui.css","webpack://./node_modules/@ckeditor/ckeditor5-theme-lark/theme/mixins/_rounded.css","webpack://./node_modules/@ckeditor/ckeditor5-theme-lark/theme/mixins/_focus.css","webpack://./node_modules/@ckeditor/ckeditor5-theme-lark/theme/mixins/_shadow.css"],names:[],mappings:"AAWA,MACC,0CACD,CAEA,yDCJC,eDWD,CAPA,yJCAE,qCDOF,CAJC,oEEPA,2BAA2B,CCF3B,qCAA8B,CDC9B,YFWA,CAGD,+BAGC,4BAA6B,CAF7B,aAAc,CACd,oCA6BD,CA1BC,wCACC,eACD,CAEA,wCACC,gBACD,CAGA,4CACC,kCACD,CAGA,2CAKC,qCACD,CAGA,sDACC,kDACD,CAKA,gEACC,mDACD,CAIA,gEACC,gDACD",sourcesContent:['/*\n * Copyright (c) 2003-2022, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n@import "../../../mixins/_rounded.css";\n@import "../../../mixins/_disabled.css";\n@import "../../../mixins/_shadow.css";\n@import "../../../mixins/_focus.css";\n@import "../../mixins/_button.css";\n\n:root {\n\t--ck-color-editable-blur-selection: hsl(0, 0%, 85%);\n}\n\n.ck.ck-editor__editable:not(.ck-editor__nested-editable) {\n\t@mixin ck-rounded-corners;\n\n\t&.ck-focused {\n\t\t@mixin ck-focus-ring;\n\t\t@mixin ck-box-shadow var(--ck-inner-shadow);\n\t}\n}\n\n.ck.ck-editor__editable_inline {\n\toverflow: auto;\n\tpadding: 0 var(--ck-spacing-standard);\n\tborder: 1px solid transparent;\n\n\t&[dir="ltr"] {\n\t\ttext-align: left;\n\t}\n\n\t&[dir="rtl"] {\n\t\ttext-align: right;\n\t}\n\n\t/* https://github.com/ckeditor/ckeditor5-theme-lark/issues/116 */\n\t& > *:first-child {\n\t\tmargin-top: var(--ck-spacing-large);\n\t}\n\n\t/* https://github.com/ckeditor/ckeditor5/issues/847 */\n\t& > *:last-child {\n\t\t/*\n\t\t * This value should match with the default margins of the block elements (like .media or .image)\n\t\t * to avoid a content jumping when the fake selection container shows up (See https://github.com/ckeditor/ckeditor5/issues/9825).\n\t\t */\n\t\tmargin-bottom: var(--ck-spacing-large);\n\t}\n\n\t/* https://github.com/ckeditor/ckeditor5/issues/6517 */\n\t&.ck-blurred ::selection {\n\t\tbackground: var(--ck-color-editable-blur-selection);\n\t}\n}\n\n/* https://github.com/ckeditor/ckeditor5-theme-lark/issues/111 */\n.ck.ck-balloon-panel.ck-toolbar-container[class*="arrow_n"] {\n\t&::after {\n\t\tborder-bottom-color: var(--ck-color-base-foreground);\n\t}\n}\n\n.ck.ck-balloon-panel.ck-toolbar-container[class*="arrow_s"] {\n\t&::after {\n\t\tborder-top-color: var(--ck-color-base-foreground);\n\t}\n}\n',"/*\n * Copyright (c) 2003-2022, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n/**\n * Implements rounded corner interface for .ck-rounded-corners class.\n *\n * @see $ck-border-radius\n */\n@define-mixin ck-rounded-corners {\n\tborder-radius: 0;\n\n\t@nest .ck-rounded-corners &,\n\t&.ck-rounded-corners {\n\t\tborder-radius: var(--ck-border-radius);\n\t\t@mixin-content;\n\t}\n}\n","/*\n * Copyright (c) 2003-2022, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n/**\n * A visual style of focused element's border.\n */\n@define-mixin ck-focus-ring {\n\t/* Disable native outline. */\n\toutline: none;\n\tborder: var(--ck-focus-ring)\n}\n","/*\n * Copyright (c) 2003-2022, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n/**\n * A helper to combine multiple shadows.\n */\n@define-mixin ck-box-shadow $shadowA, $shadowB: 0 0 {\n\tbox-shadow: $shadowA, $shadowB;\n}\n\n/**\n * Gives an element a drop shadow so it looks like a floating panel.\n */\n@define-mixin ck-drop-shadow {\n\t@mixin ck-box-shadow var(--ck-drop-shadow);\n}\n"],sourceRoot:""}]);const a=s},5523:(t,e,n)=>{"use strict";n.d(e,{Z:()=>a});var o=n(4015),i=n.n(o),r=n(3645),s=n.n(r)()(i());s.push([t.id,".ck.ck-form__header{align-items:center;display:flex;flex-direction:row;flex-wrap:nowrap;justify-content:space-between}:root{--ck-form-header-height:38px}.ck.ck-form__header{border-bottom:1px solid var(--ck-color-base-border);height:var(--ck-form-header-height);line-height:var(--ck-form-header-height);padding:var(--ck-spacing-small) var(--ck-spacing-large)}.ck.ck-form__header .ck-form__header__label{font-weight:700}","",{version:3,sources:["webpack://./node_modules/@ckeditor/ckeditor5-ui/theme/components/formheader/formheader.css","webpack://./node_modules/@ckeditor/ckeditor5-theme-lark/theme/ckeditor5-ui/components/formheader/formheader.css"],names:[],mappings:"AAKA,oBAIC,kBAAmB,CAHnB,YAAa,CACb,kBAAmB,CACnB,gBAAiB,CAEjB,6BACD,CCNA,MACC,4BACD,CAEA,oBAIC,mDAAoD,CAFpD,mCAAoC,CACpC,wCAAyC,CAFzC,uDAQD,CAHC,4CACC,eACD",sourcesContent:["/*\n * Copyright (c) 2003-2022, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n.ck.ck-form__header {\n\tdisplay: flex;\n\tflex-direction: row;\n\tflex-wrap: nowrap;\n\talign-items: center;\n\tjustify-content: space-between;\n}\n","/*\n * Copyright (c) 2003-2022, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n:root {\n\t--ck-form-header-height: 38px;\n}\n\n.ck.ck-form__header {\n\tpadding: var(--ck-spacing-small) var(--ck-spacing-large);\n\theight: var(--ck-form-header-height);\n\tline-height: var(--ck-form-header-height);\n\tborder-bottom: 1px solid var(--ck-color-base-border);\n\n\t& .ck-form__header__label {\n\t\tfont-weight: bold;\n\t}\n}\n"],sourceRoot:""}]);const a=s},1174:(t,e,n)=>{"use strict";n.d(e,{Z:()=>a});var o=n(4015),i=n.n(o),r=n(3645),s=n.n(r)()(i());s.push([t.id,".ck.ck-icon{vertical-align:middle}:root{--ck-icon-size:calc(var(--ck-line-height-base)*var(--ck-font-size-normal))}.ck.ck-icon{font-size:.8333350694em;height:var(--ck-icon-size);width:var(--ck-icon-size);will-change:transform}.ck.ck-icon,.ck.ck-icon *{color:inherit;cursor:inherit}.ck.ck-icon :not([fill]){fill:currentColor}","",{version:3,sources:["webpack://./node_modules/@ckeditor/ckeditor5-ui/theme/components/icon/icon.css","webpack://./node_modules/@ckeditor/ckeditor5-theme-lark/theme/ckeditor5-ui/components/icon/icon.css"],names:[],mappings:"AAKA,YACC,qBACD,CCFA,MACC,0EACD,CAEA,YAKC,uBAAwB,CAHxB,0BAA2B,CAD3B,yBAA0B,CAY1B,qBAcD,CAZC,0BARA,aAAc,CAGd,cAgBA,CAJC,yBAEC,iBACD",sourcesContent:["/*\n * Copyright (c) 2003-2022, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n.ck.ck-icon {\n\tvertical-align: middle;\n}\n",'/*\n * Copyright (c) 2003-2022, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n:root {\n\t--ck-icon-size: calc(var(--ck-line-height-base) * var(--ck-font-size-normal));\n}\n\n.ck.ck-icon {\n\twidth: var(--ck-icon-size);\n\theight: var(--ck-icon-size);\n\n\t/* Multiplied by the height of the line in "px" should give SVG "viewport" dimensions */\n\tfont-size: .8333350694em;\n\n\tcolor: inherit;\n\n\t/* Inherit cursor style (#5). */\n\tcursor: inherit;\n\n\t/* This will prevent blurry icons on Firefox. See #340. */\n\twill-change: transform;\n\n\t& * {\n\t\t/* Inherit cursor style (#5). */\n\t\tcursor: inherit;\n\n\t\t/* Allows dynamic coloring of the icons. */\n\t\tcolor: inherit;\n\n\t\t&:not([fill]) {\n\t\t\t/* Needed by FF. */\n\t\t\tfill: currentColor;\n\t\t}\n\t}\n}\n'],sourceRoot:""}]);const a=s},6985:(t,e,n)=>{"use strict";n.d(e,{Z:()=>a});var o=n(4015),i=n.n(o),r=n(3645),s=n.n(r)()(i());s.push([t.id,":root{--ck-input-width:18em;--ck-input-text-width:var(--ck-input-width)}.ck.ck-input{border-radius:0}.ck-rounded-corners .ck.ck-input,.ck.ck-input.ck-rounded-corners{border-radius:var(--ck-border-radius)}.ck.ck-input{background:var(--ck-color-input-background);border:1px solid var(--ck-color-input-border);min-height:var(--ck-ui-component-min-height);min-width:var(--ck-input-width);padding:var(--ck-spacing-extra-tiny) var(--ck-spacing-medium);transition:box-shadow .1s ease-in-out,border .1s ease-in-out}.ck.ck-input:focus{border:var(--ck-focus-ring);box-shadow:var(--ck-focus-outer-shadow),0 0;outline:none}.ck.ck-input[readonly]{background:var(--ck-color-input-disabled-background);border:1px solid var(--ck-color-input-disabled-border);color:var(--ck-color-input-disabled-text)}.ck.ck-input[readonly]:focus{box-shadow:var(--ck-focus-disabled-outer-shadow),0 0}.ck.ck-input.ck-error{animation:ck-input-shake .3s ease both;border-color:var(--ck-color-input-error-border)}.ck.ck-input.ck-error:focus{box-shadow:var(--ck-focus-error-outer-shadow),0 0}@keyframes ck-input-shake{20%{transform:translateX(-2px)}40%{transform:translateX(2px)}60%{transform:translateX(-1px)}80%{transform:translateX(1px)}}","",{version:3,sources:["webpack://./node_modules/@ckeditor/ckeditor5-theme-lark/theme/ckeditor5-ui/components/input/input.css","webpack://./node_modules/@ckeditor/ckeditor5-theme-lark/theme/mixins/_rounded.css","webpack://./node_modules/@ckeditor/ckeditor5-theme-lark/theme/mixins/_focus.css","webpack://./node_modules/@ckeditor/ckeditor5-theme-lark/theme/mixins/_shadow.css"],names:[],mappings:"AASA,MACC,qBAAsB,CAGtB,2CACD,CAEA,aCLC,eD2CD,CAtCA,iECDE,qCDuCF,CAtCA,aAGC,2CAA4C,CAC5C,6CAA8C,CAK9C,4CAA6C,CAH7C,+BAAgC,CADhC,6DAA8D,CAO9D,4DA0BD,CAxBC,mBEnBA,2BAA2B,CCF3B,2CAA8B,CDC9B,YFuBA,CAEA,uBAEC,oDAAqD,CADrD,sDAAuD,CAEvD,yCAMD,CAJC,6BG/BD,oDHkCC,CAGD,sBAEC,sCAAuC,CADvC,+CAMD,CAHC,4BGzCD,iDH2CC,CAIF,0BACC,IACC,0BACD,CAEA,IACC,yBACD,CAEA,IACC,0BACD,CAEA,IACC,yBACD,CACD",sourcesContent:['/*\n * Copyright (c) 2003-2022, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n@import "../../../mixins/_rounded.css";\n@import "../../../mixins/_focus.css";\n@import "../../../mixins/_shadow.css";\n\n:root {\n\t--ck-input-width: 18em;\n\n\t/* Backward compatibility. */\n\t--ck-input-text-width: var(--ck-input-width);\n}\n\n.ck.ck-input {\n\t@mixin ck-rounded-corners;\n\n\tbackground: var(--ck-color-input-background);\n\tborder: 1px solid var(--ck-color-input-border);\n\tpadding: var(--ck-spacing-extra-tiny) var(--ck-spacing-medium);\n\tmin-width: var(--ck-input-width);\n\n\t/* This is important to stay of the same height as surrounding buttons */\n\tmin-height: var(--ck-ui-component-min-height);\n\n\t/* Apply some smooth transition to the box-shadow and border. */\n\ttransition: box-shadow .1s ease-in-out, border .1s ease-in-out;\n\n\t&:focus {\n\t\t@mixin ck-focus-ring;\n\t\t@mixin ck-box-shadow var(--ck-focus-outer-shadow);\n\t}\n\n\t&[readonly] {\n\t\tborder: 1px solid var(--ck-color-input-disabled-border);\n\t\tbackground: var(--ck-color-input-disabled-background);\n\t\tcolor: var(--ck-color-input-disabled-text);\n\n\t\t&:focus {\n\t\t\t/* The read-only input should have a slightly less visible shadow when focused. */\n\t\t\t@mixin ck-box-shadow var(--ck-focus-disabled-outer-shadow);\n\t\t}\n\t}\n\n\t&.ck-error {\n\t\tborder-color: var(--ck-color-input-error-border);\n\t\tanimation: ck-input-shake .3s ease both;\n\n\t\t&:focus {\n\t\t\t@mixin ck-box-shadow var(--ck-focus-error-outer-shadow);\n\t\t}\n\t}\n}\n\n@keyframes ck-input-shake {\n\t20% {\n\t\ttransform: translateX(-2px);\n\t}\n\n\t40% {\n\t\ttransform: translateX(2px);\n\t}\n\n\t60% {\n\t\ttransform: translateX(-1px);\n\t}\n\n\t80% {\n\t\ttransform: translateX(1px);\n\t}\n}\n',"/*\n * Copyright (c) 2003-2022, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n/**\n * Implements rounded corner interface for .ck-rounded-corners class.\n *\n * @see $ck-border-radius\n */\n@define-mixin ck-rounded-corners {\n\tborder-radius: 0;\n\n\t@nest .ck-rounded-corners &,\n\t&.ck-rounded-corners {\n\t\tborder-radius: var(--ck-border-radius);\n\t\t@mixin-content;\n\t}\n}\n","/*\n * Copyright (c) 2003-2022, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n/**\n * A visual style of focused element's border.\n */\n@define-mixin ck-focus-ring {\n\t/* Disable native outline. */\n\toutline: none;\n\tborder: var(--ck-focus-ring)\n}\n","/*\n * Copyright (c) 2003-2022, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n/**\n * A helper to combine multiple shadows.\n */\n@define-mixin ck-box-shadow $shadowA, $shadowB: 0 0 {\n\tbox-shadow: $shadowA, $shadowB;\n}\n\n/**\n * Gives an element a drop shadow so it looks like a floating panel.\n */\n@define-mixin ck-drop-shadow {\n\t@mixin ck-box-shadow var(--ck-drop-shadow);\n}\n"],sourceRoot:""}]);const a=s},2751:(t,e,n)=>{"use strict";n.d(e,{Z:()=>a});var o=n(4015),i=n.n(o),r=n(3645),s=n.n(r)()(i());s.push([t.id,".ck.ck-label{display:block}.ck.ck-voice-label{display:none}.ck.ck-label{font-weight:700}","",{version:3,sources:["webpack://./node_modules/@ckeditor/ckeditor5-ui/theme/components/label/label.css","webpack://./node_modules/@ckeditor/ckeditor5-theme-lark/theme/ckeditor5-ui/components/label/label.css"],names:[],mappings:"AAKA,aACC,aACD,CAEA,mBACC,YACD,CCNA,aACC,eACD",sourcesContent:["/*\n * Copyright (c) 2003-2022, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n.ck.ck-label {\n\tdisplay: block;\n}\n\n.ck.ck-voice-label {\n\tdisplay: none;\n}\n","/*\n * Copyright (c) 2003-2022, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n.ck.ck-label {\n\tfont-weight: bold;\n}\n"],sourceRoot:""}]);const a=s},8111:(t,e,n)=>{"use strict";n.d(e,{Z:()=>a});var o=n(4015),i=n.n(o),r=n(3645),s=n.n(r)()(i());s.push([t.id,".ck.ck-labeled-field-view>.ck.ck-labeled-field-view__input-wrapper{display:flex;position:relative}.ck.ck-labeled-field-view .ck.ck-label{display:block;position:absolute}:root{--ck-labeled-field-view-transition:.1s cubic-bezier(0,0,0.24,0.95);--ck-labeled-field-empty-unfocused-max-width:100% - 2 * var(--ck-spacing-medium);--ck-color-labeled-field-label-background:var(--ck-color-base-background)}.ck.ck-labeled-field-view{border-radius:0}.ck-rounded-corners .ck.ck-labeled-field-view,.ck.ck-labeled-field-view.ck-rounded-corners{border-radius:var(--ck-border-radius)}.ck.ck-labeled-field-view>.ck.ck-labeled-field-view__input-wrapper{width:100%}.ck.ck-labeled-field-view>.ck.ck-labeled-field-view__input-wrapper>.ck.ck-label{top:0}[dir=ltr] .ck.ck-labeled-field-view>.ck.ck-labeled-field-view__input-wrapper>.ck.ck-label{left:0}[dir=rtl] .ck.ck-labeled-field-view>.ck.ck-labeled-field-view__input-wrapper>.ck.ck-label{right:0}.ck.ck-labeled-field-view>.ck.ck-labeled-field-view__input-wrapper>.ck.ck-label{background:var(--ck-color-labeled-field-label-background);font-weight:400;line-height:normal;max-width:100%;overflow:hidden;padding:0 calc(var(--ck-font-size-tiny)*.5);pointer-events:none;text-overflow:ellipsis;transform:translate(var(--ck-spacing-medium),-6px) scale(.75);transform-origin:0 0;transition:transform var(--ck-labeled-field-view-transition),padding var(--ck-labeled-field-view-transition),background var(--ck-labeled-field-view-transition)}.ck.ck-labeled-field-view.ck-error .ck-input:not([readonly])+.ck.ck-label,.ck.ck-labeled-field-view.ck-error>.ck.ck-labeled-field-view__input-wrapper>.ck.ck-label{color:var(--ck-color-base-error)}.ck.ck-labeled-field-view .ck-labeled-field-view__status{font-size:var(--ck-font-size-small);margin-top:var(--ck-spacing-small);white-space:normal}.ck.ck-labeled-field-view .ck-labeled-field-view__status.ck-labeled-field-view__status_error{color:var(--ck-color-base-error)}.ck.ck-labeled-field-view.ck-disabled>.ck.ck-labeled-field-view__input-wrapper>.ck.ck-label,.ck.ck-labeled-field-view.ck-labeled-field-view_empty:not(.ck-labeled-field-view_focused)>.ck.ck-labeled-field-view__input-wrapper>.ck.ck-label{color:var(--ck-color-input-disabled-text)}[dir=ltr] .ck.ck-labeled-field-view.ck-disabled.ck-labeled-field-view_empty>.ck.ck-labeled-field-view__input-wrapper>.ck.ck-label,[dir=ltr] .ck.ck-labeled-field-view.ck-labeled-field-view_empty:not(.ck-labeled-field-view_focused):not(.ck-labeled-field-view_placeholder)>.ck.ck-labeled-field-view__input-wrapper>.ck.ck-label{transform:translate(var(--ck-spacing-medium),calc(var(--ck-font-size-base)*.6)) scale(1)}[dir=rtl] .ck.ck-labeled-field-view.ck-disabled.ck-labeled-field-view_empty>.ck.ck-labeled-field-view__input-wrapper>.ck.ck-label,[dir=rtl] .ck.ck-labeled-field-view.ck-labeled-field-view_empty:not(.ck-labeled-field-view_focused):not(.ck-labeled-field-view_placeholder)>.ck.ck-labeled-field-view__input-wrapper>.ck.ck-label{transform:translate(calc(var(--ck-spacing-medium)*-1),calc(var(--ck-font-size-base)*.6)) scale(1)}.ck.ck-labeled-field-view.ck-disabled.ck-labeled-field-view_empty>.ck.ck-labeled-field-view__input-wrapper>.ck.ck-label,.ck.ck-labeled-field-view.ck-labeled-field-view_empty:not(.ck-labeled-field-view_focused):not(.ck-labeled-field-view_placeholder)>.ck.ck-labeled-field-view__input-wrapper>.ck.ck-label{background:transparent;max-width:calc(var(--ck-labeled-field-empty-unfocused-max-width));padding:0}.ck.ck-labeled-field-view>.ck.ck-labeled-field-view__input-wrapper>.ck-dropdown>.ck.ck-button{background:transparent}.ck.ck-labeled-field-view.ck-labeled-field-view_empty>.ck.ck-labeled-field-view__input-wrapper>.ck-dropdown>.ck-button>.ck-button__label{opacity:0}.ck.ck-labeled-field-view.ck-labeled-field-view_empty:not(.ck-labeled-field-view_focused):not(.ck-labeled-field-view_placeholder)>.ck.ck-labeled-field-view__input-wrapper>.ck-dropdown+.ck-label{max-width:calc(var(--ck-labeled-field-empty-unfocused-max-width) - var(--ck-dropdown-arrow-size) - var(--ck-spacing-standard))}","",{version:3,sources:["webpack://./node_modules/@ckeditor/ckeditor5-ui/theme/components/labeledfield/labeledfieldview.css","webpack://./node_modules/@ckeditor/ckeditor5-theme-lark/theme/ckeditor5-ui/components/labeledfield/labeledfieldview.css","webpack://./node_modules/@ckeditor/ckeditor5-theme-lark/theme/mixins/_rounded.css"],names:[],mappings:"AAMC,mEACC,YAAa,CACb,iBACD,CAEA,uCACC,aAAc,CACd,iBACD,CCND,MACC,kEAAsE,CACtE,gFAAiF,CACjF,yEACD,CAEA,0BCHC,eD4GD,CAzGA,2FCCE,qCDwGF,CAtGC,mEACC,UAmCD,CAjCC,gFACC,KA+BD,CAhCA,0FAIE,MA4BF,CAhCA,0FAQE,OAwBF,CAhCA,gFAiBC,yDAA0D,CAG1D,eAAmB,CADnB,kBAAoB,CAOpB,cAAe,CAFf,eAAgB,CANhB,2CAA8C,CAP9C,mBAAoB,CAYpB,sBAAuB,CARvB,6DAA+D,CAH/D,oBAAqB,CAgBrB,+JAID,CAQA,mKACC,gCACD,CAGD,yDACC,mCAAoC,CACpC,kCAAmC,CAInC,kBAKD,CAHC,6FACC,gCACD,CAID,4OAEC,yCACD,CAIA,oUAGE,wFAYF,CAfA,oUAOE,iGAQF,CAfA,gTAaC,sBAAuB,CAFvB,iEAAkE,CAGlE,SACD,CAKA,8FACC,sBACD,CAGA,yIACC,SACD,CAGA,kMACC,8HACD",sourcesContent:["/*\n * Copyright (c) 2003-2022, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n.ck.ck-labeled-field-view {\n\t& > .ck.ck-labeled-field-view__input-wrapper {\n\t\tdisplay: flex;\n\t\tposition: relative;\n\t}\n\n\t& .ck.ck-label {\n\t\tdisplay: block;\n\t\tposition: absolute;\n\t}\n}\n",'/*\n * Copyright (c) 2003-2022, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n@import "@ckeditor/ckeditor5-ui/theme/mixins/_dir.css";\n@import "../../../mixins/_rounded.css";\n\n:root {\n\t--ck-labeled-field-view-transition: .1s cubic-bezier(0, 0, 0.24, 0.95);\n\t--ck-labeled-field-empty-unfocused-max-width: 100% - 2 * var(--ck-spacing-medium);\n\t--ck-color-labeled-field-label-background: var(--ck-color-base-background);\n}\n\n.ck.ck-labeled-field-view {\n\t@mixin ck-rounded-corners;\n\n\t& > .ck.ck-labeled-field-view__input-wrapper {\n\t\twidth: 100%;\n\n\t\t& > .ck.ck-label {\n\t\t\ttop: 0px;\n\n\t\t\t@mixin ck-dir ltr {\n\t\t\t\tleft: 0px;\n\t\t\t}\n\n\t\t\t@mixin ck-dir rtl {\n\t\t\t\tright: 0px;\n\t\t\t}\n\n\t\t\tpointer-events: none;\n\t\t\ttransform-origin: 0 0;\n\n\t\t\t/* By default, display the label scaled down above the field. */\n\t\t\ttransform: translate(var(--ck-spacing-medium), -6px) scale(.75);\n\n\t\t\tbackground: var(--ck-color-labeled-field-label-background);\n\t\t\tpadding: 0 calc(.5 * var(--ck-font-size-tiny));\n\t\t\tline-height: initial;\n\t\t\tfont-weight: normal;\n\n\t\t\t/* Prevent overflow when the label is longer than the input */\n\t\t\ttext-overflow: ellipsis;\n\t\t\toverflow: hidden;\n\n\t\t\tmax-width: 100%;\n\n\t\t\ttransition:\n\t\t\t\ttransform var(--ck-labeled-field-view-transition),\n\t\t\t\tpadding var(--ck-labeled-field-view-transition),\n\t\t\t\tbackground var(--ck-labeled-field-view-transition);\n\t\t}\n\t}\n\n\t&.ck-error {\n\t\t& > .ck.ck-labeled-field-view__input-wrapper > .ck.ck-label {\n\t\t\tcolor: var(--ck-color-base-error);\n\t\t}\n\n\t\t& .ck-input:not([readonly]) + .ck.ck-label {\n\t\t\tcolor: var(--ck-color-base-error);\n\t\t}\n\t}\n\n\t& .ck-labeled-field-view__status {\n\t\tfont-size: var(--ck-font-size-small);\n\t\tmargin-top: var(--ck-spacing-small);\n\n\t\t/* Let the info wrap to the next line to avoid stretching the layout horizontally.\n\t\tThe status could be very long. */\n\t\twhite-space: normal;\n\n\t\t&.ck-labeled-field-view__status_error {\n\t\t\tcolor: var(--ck-color-base-error);\n\t\t}\n\t}\n\n\t/* Disabled fields and fields that have no focus should fade out. */\n\t&.ck-disabled > .ck.ck-labeled-field-view__input-wrapper > .ck.ck-label,\n\t&.ck-labeled-field-view_empty:not(.ck-labeled-field-view_focused) > .ck.ck-labeled-field-view__input-wrapper > .ck.ck-label {\n\t\tcolor: var(--ck-color-input-disabled-text);\n\t}\n\n\t/* Fields that are disabled or not focused and without a placeholder should have full-sized labels. */\n\t/* stylelint-disable-next-line no-descending-specificity */\n\t&.ck-disabled.ck-labeled-field-view_empty > .ck.ck-labeled-field-view__input-wrapper > .ck.ck-label,\n\t&.ck-labeled-field-view_empty:not(.ck-labeled-field-view_focused):not(.ck-labeled-field-view_placeholder) > .ck.ck-labeled-field-view__input-wrapper > .ck.ck-label {\n\t\t@mixin ck-dir ltr {\n\t\t\ttransform: translate(var(--ck-spacing-medium), calc(0.6 * var(--ck-font-size-base))) scale(1);\n\t\t}\n\n\t\t@mixin ck-dir rtl {\n\t\t\ttransform: translate(calc(-1 * var(--ck-spacing-medium)), calc(0.6 * var(--ck-font-size-base))) scale(1);\n\t\t}\n\n\t\t/* Compensate for the default translate position. */\n\t\tmax-width: calc(var(--ck-labeled-field-empty-unfocused-max-width));\n\n\t\tbackground: transparent;\n\t\tpadding: 0;\n\t}\n\n\t/*------ DropdownView integration ----------------------------------------------------------------------------------- */\n\n\t/* Make sure dropdown\' background color in any of dropdown\'s state does not collide with labeled field. */\n\t& > .ck.ck-labeled-field-view__input-wrapper > .ck-dropdown > .ck.ck-button {\n\t\tbackground: transparent;\n\t}\n\n\t/* When the dropdown is "empty", the labeled field label replaces its label. */\n\t&.ck-labeled-field-view_empty > .ck.ck-labeled-field-view__input-wrapper > .ck-dropdown > .ck-button > .ck-button__label {\n\t\topacity: 0;\n\t}\n\n\t/* Make sure the label of the empty, unfocused input does not cover the dropdown arrow. */\n\t&.ck-labeled-field-view_empty:not(.ck-labeled-field-view_focused):not(.ck-labeled-field-view_placeholder) > .ck.ck-labeled-field-view__input-wrapper > .ck-dropdown + .ck-label {\n\t\tmax-width: calc(var(--ck-labeled-field-empty-unfocused-max-width) - var(--ck-dropdown-arrow-size) - var(--ck-spacing-standard));\n\t}\n}\n',"/*\n * Copyright (c) 2003-2022, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n/**\n * Implements rounded corner interface for .ck-rounded-corners class.\n *\n * @see $ck-border-radius\n */\n@define-mixin ck-rounded-corners {\n\tborder-radius: 0;\n\n\t@nest .ck-rounded-corners &,\n\t&.ck-rounded-corners {\n\t\tborder-radius: var(--ck-border-radius);\n\t\t@mixin-content;\n\t}\n}\n"],sourceRoot:""}]);const a=s},1162:(t,e,n)=>{"use strict";n.d(e,{Z:()=>a});var o=n(4015),i=n.n(o),r=n(3645),s=n.n(r)()(i());s.push([t.id,".ck.ck-list{display:flex;flex-direction:column;-moz-user-select:none;-webkit-user-select:none;-ms-user-select:none;user-select:none}.ck.ck-list .ck-list__item,.ck.ck-list .ck-list__separator{display:block}.ck.ck-list .ck-list__item>:focus{position:relative;z-index:var(--ck-z-default)}.ck.ck-list{border-radius:0}.ck-rounded-corners .ck.ck-list,.ck.ck-list.ck-rounded-corners{border-radius:var(--ck-border-radius)}.ck.ck-list{background:var(--ck-color-list-background);list-style-type:none}.ck.ck-list__item{cursor:default;min-width:12em}.ck.ck-list__item .ck-button{border-radius:0;min-height:unset;padding:calc(var(--ck-line-height-base)*.2*var(--ck-font-size-base)) calc(var(--ck-line-height-base)*.4*var(--ck-font-size-base));text-align:left;width:100%}.ck.ck-list__item .ck-button .ck-button__label{line-height:calc(var(--ck-line-height-base)*1.2*var(--ck-font-size-base))}.ck.ck-list__item .ck-button:active{box-shadow:none}.ck.ck-list__item .ck-button.ck-on{background:var(--ck-color-list-button-on-background);color:var(--ck-color-list-button-on-text)}.ck.ck-list__item .ck-button.ck-on:active{box-shadow:none}.ck.ck-list__item .ck-button.ck-on:hover:not(.ck-disabled){background:var(--ck-color-list-button-on-background-focus)}.ck.ck-list__item .ck-button.ck-on:focus:not(.ck-disabled){border-color:var(--ck-color-base-background)}.ck.ck-list__item .ck-button:hover:not(.ck-disabled){background:var(--ck-color-list-button-hover-background)}.ck.ck-list__item .ck-switchbutton.ck-on{background:var(--ck-color-list-background);color:inherit}.ck.ck-list__item .ck-switchbutton.ck-on:hover:not(.ck-disabled){background:var(--ck-color-list-button-hover-background);color:inherit}.ck.ck-list__separator{background:var(--ck-color-base-border);height:1px;width:100%}","",{version:3,sources:["webpack://./node_modules/@ckeditor/ckeditor5-ui/theme/components/list/list.css","webpack://./node_modules/@ckeditor/ckeditor5-ui/theme/mixins/_unselectable.css","webpack://./node_modules/@ckeditor/ckeditor5-theme-lark/theme/ckeditor5-ui/components/list/list.css","webpack://./node_modules/@ckeditor/ckeditor5-theme-lark/theme/mixins/_rounded.css"],names:[],mappings:"AAOA,YAGC,YAAa,CACb,qBAAsB,CCFtB,qBAAsB,CACtB,wBAAyB,CACzB,oBAAqB,CACrB,gBDaD,CAZC,2DAEC,aACD,CAKA,kCACC,iBAAkB,CAClB,2BACD,CEfD,YCEC,eDGD,CALA,+DCME,qCDDF,CALA,YAIC,0CAA2C,CAD3C,oBAED,CAEA,kBACC,cAAe,CACf,cA2DD,CAzDC,6BAIC,eAAgB,CAHhB,gBAAiB,CAQjB,iIAEiE,CARjE,eAAgB,CADhB,UAwCD,CA7BC,+CAEC,yEACD,CAEA,oCACC,eACD,CAEA,mCACC,oDAAqD,CACrD,yCAaD,CAXC,0CACC,eACD,CAEA,2DACC,0DACD,CAEA,2DACC,4CACD,CAGD,qDACC,uDACD,CAMA,yCACC,0CAA2C,CAC3C,aAMD,CAJC,iEACC,uDAAwD,CACxD,aACD,CAKH,uBAGC,sCAAuC,CAFvC,UAAW,CACX,UAED",sourcesContent:['/*\n * Copyright (c) 2003-2022, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n@import "../../mixins/_unselectable.css";\n\n.ck.ck-list {\n\t@mixin ck-unselectable;\n\n\tdisplay: flex;\n\tflex-direction: column;\n\n\t& .ck-list__item,\n\t& .ck-list__separator {\n\t\tdisplay: block;\n\t}\n\n\t/* Make sure that whatever child of the list item gets focus, it remains on the\n\ttop. Thanks to that, styles like box-shadow, outline, etc. are not masked by\n\tadjacent list items. */\n\t& .ck-list__item > *:focus {\n\t\tposition: relative;\n\t\tz-index: var(--ck-z-default);\n\t}\n}\n',"/*\n * Copyright (c) 2003-2022, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n/**\n * Makes element unselectable.\n */\n@define-mixin ck-unselectable {\n\t-moz-user-select: none;\n\t-webkit-user-select: none;\n\t-ms-user-select: none;\n\tuser-select: none\n}\n",'/*\n * Copyright (c) 2003-2022, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n@import "../../../mixins/_disabled.css";\n@import "../../../mixins/_rounded.css";\n@import "../../../mixins/_shadow.css";\n\n.ck.ck-list {\n\t@mixin ck-rounded-corners;\n\n\tlist-style-type: none;\n\tbackground: var(--ck-color-list-background);\n}\n\n.ck.ck-list__item {\n\tcursor: default;\n\tmin-width: 12em;\n\n\t& .ck-button {\n\t\tmin-height: unset;\n\t\twidth: 100%;\n\t\ttext-align: left;\n\t\tborder-radius: 0;\n\n\t\t/* List items should have the same height. Use absolute units to make sure it is so\n\t\t because e.g. different heading styles may have different height\n\t\t https://github.com/ckeditor/ckeditor5-heading/issues/63 */\n\t\tpadding:\n\t\t\tcalc(.2 * var(--ck-line-height-base) * var(--ck-font-size-base))\n\t\t\tcalc(.4 * var(--ck-line-height-base) * var(--ck-font-size-base));\n\n\t\t& .ck-button__label {\n\t\t\t/* https://github.com/ckeditor/ckeditor5-heading/issues/63 */\n\t\t\tline-height: calc(1.2 * var(--ck-line-height-base) * var(--ck-font-size-base));\n\t\t}\n\n\t\t&:active {\n\t\t\tbox-shadow: none;\n\t\t}\n\n\t\t&.ck-on {\n\t\t\tbackground: var(--ck-color-list-button-on-background);\n\t\t\tcolor: var(--ck-color-list-button-on-text);\n\n\t\t\t&:active {\n\t\t\t\tbox-shadow: none;\n\t\t\t}\n\n\t\t\t&:hover:not(.ck-disabled) {\n\t\t\t\tbackground: var(--ck-color-list-button-on-background-focus);\n\t\t\t}\n\n\t\t\t&:focus:not(.ck-disabled) {\n\t\t\t\tborder-color: var(--ck-color-base-background);\n\t\t\t}\n\t\t}\n\n\t\t&:hover:not(.ck-disabled) {\n\t\t\tbackground: var(--ck-color-list-button-hover-background);\n\t\t}\n\t}\n\n\t/* It\'s unnecessary to change the background/text of a switch toggle; it has different ways\n\tof conveying its state (like the switcher) */\n\t& .ck-switchbutton {\n\t\t&.ck-on {\n\t\t\tbackground: var(--ck-color-list-background);\n\t\t\tcolor: inherit;\n\n\t\t\t&:hover:not(.ck-disabled) {\n\t\t\t\tbackground: var(--ck-color-list-button-hover-background);\n\t\t\t\tcolor: inherit;\n\t\t\t}\n\t\t}\n\t}\n}\n\n.ck.ck-list__separator {\n\theight: 1px;\n\twidth: 100%;\n\tbackground: var(--ck-color-base-border);\n}\n',"/*\n * Copyright (c) 2003-2022, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n/**\n * Implements rounded corner interface for .ck-rounded-corners class.\n *\n * @see $ck-border-radius\n */\n@define-mixin ck-rounded-corners {\n\tborder-radius: 0;\n\n\t@nest .ck-rounded-corners &,\n\t&.ck-rounded-corners {\n\t\tborder-radius: var(--ck-border-radius);\n\t\t@mixin-content;\n\t}\n}\n"],sourceRoot:""}]);const a=s},8245:(t,e,n)=>{"use strict";n.d(e,{Z:()=>a});var o=n(4015),i=n.n(o),r=n(3645),s=n.n(r)()(i());s.push([t.id,':root{--ck-balloon-panel-arrow-z-index:calc(var(--ck-z-default) - 3)}.ck.ck-balloon-panel{display:none;position:absolute;z-index:var(--ck-z-modal)}.ck.ck-balloon-panel.ck-balloon-panel_with-arrow:after,.ck.ck-balloon-panel.ck-balloon-panel_with-arrow:before{content:"";position:absolute}.ck.ck-balloon-panel.ck-balloon-panel_with-arrow:before{z-index:var(--ck-balloon-panel-arrow-z-index)}.ck.ck-balloon-panel.ck-balloon-panel_with-arrow:after{z-index:calc(var(--ck-balloon-panel-arrow-z-index) + 1)}.ck.ck-balloon-panel[class*=arrow_n]:before{z-index:var(--ck-balloon-panel-arrow-z-index)}.ck.ck-balloon-panel[class*=arrow_n]:after{z-index:calc(var(--ck-balloon-panel-arrow-z-index) + 1)}.ck.ck-balloon-panel[class*=arrow_s]:before{z-index:var(--ck-balloon-panel-arrow-z-index)}.ck.ck-balloon-panel[class*=arrow_s]:after{z-index:calc(var(--ck-balloon-panel-arrow-z-index) + 1)}.ck.ck-balloon-panel.ck-balloon-panel_visible{display:block}:root{--ck-balloon-arrow-offset:2px;--ck-balloon-arrow-height:10px;--ck-balloon-arrow-half-width:8px;--ck-balloon-arrow-drop-shadow:0 2px 2px var(--ck-color-shadow-drop)}.ck.ck-balloon-panel{border-radius:0}.ck-rounded-corners .ck.ck-balloon-panel,.ck.ck-balloon-panel.ck-rounded-corners{border-radius:var(--ck-border-radius)}.ck.ck-balloon-panel{background:var(--ck-color-panel-background);border:1px solid var(--ck-color-panel-border);box-shadow:var(--ck-drop-shadow),0 0;min-height:15px}.ck.ck-balloon-panel.ck-balloon-panel_with-arrow:after,.ck.ck-balloon-panel.ck-balloon-panel_with-arrow:before{border-style:solid;height:0;width:0}.ck.ck-balloon-panel[class*=arrow_n]:after,.ck.ck-balloon-panel[class*=arrow_n]:before{border-width:0 var(--ck-balloon-arrow-half-width) var(--ck-balloon-arrow-height) var(--ck-balloon-arrow-half-width)}.ck.ck-balloon-panel[class*=arrow_n]:before{border-color:transparent transparent var(--ck-color-panel-border) transparent}.ck.ck-balloon-panel[class*=arrow_n]:after{border-color:transparent transparent var(--ck-color-panel-background) transparent;margin-top:var(--ck-balloon-arrow-offset)}.ck.ck-balloon-panel[class*=arrow_s]:after,.ck.ck-balloon-panel[class*=arrow_s]:before{border-width:var(--ck-balloon-arrow-height) var(--ck-balloon-arrow-half-width) 0 var(--ck-balloon-arrow-half-width)}.ck.ck-balloon-panel[class*=arrow_s]:before{border-color:var(--ck-color-panel-border) transparent transparent;filter:drop-shadow(var(--ck-balloon-arrow-drop-shadow))}.ck.ck-balloon-panel[class*=arrow_s]:after{border-color:var(--ck-color-panel-background) transparent transparent transparent;margin-bottom:var(--ck-balloon-arrow-offset)}.ck.ck-balloon-panel.ck-balloon-panel_arrow_n:after,.ck.ck-balloon-panel.ck-balloon-panel_arrow_n:before{left:50%;margin-left:calc(var(--ck-balloon-arrow-half-width)*-1);top:calc(var(--ck-balloon-arrow-height)*-1)}.ck.ck-balloon-panel.ck-balloon-panel_arrow_nw:after,.ck.ck-balloon-panel.ck-balloon-panel_arrow_nw:before{left:calc(var(--ck-balloon-arrow-half-width)*2);top:calc(var(--ck-balloon-arrow-height)*-1)}.ck.ck-balloon-panel.ck-balloon-panel_arrow_ne:after,.ck.ck-balloon-panel.ck-balloon-panel_arrow_ne:before{right:calc(var(--ck-balloon-arrow-half-width)*2);top:calc(var(--ck-balloon-arrow-height)*-1)}.ck.ck-balloon-panel.ck-balloon-panel_arrow_s:after,.ck.ck-balloon-panel.ck-balloon-panel_arrow_s:before{bottom:calc(var(--ck-balloon-arrow-height)*-1);left:50%;margin-left:calc(var(--ck-balloon-arrow-half-width)*-1)}.ck.ck-balloon-panel.ck-balloon-panel_arrow_sw:after,.ck.ck-balloon-panel.ck-balloon-panel_arrow_sw:before{bottom:calc(var(--ck-balloon-arrow-height)*-1);left:calc(var(--ck-balloon-arrow-half-width)*2)}.ck.ck-balloon-panel.ck-balloon-panel_arrow_se:after,.ck.ck-balloon-panel.ck-balloon-panel_arrow_se:before{bottom:calc(var(--ck-balloon-arrow-height)*-1);right:calc(var(--ck-balloon-arrow-half-width)*2)}.ck.ck-balloon-panel.ck-balloon-panel_arrow_sme:after,.ck.ck-balloon-panel.ck-balloon-panel_arrow_sme:before{bottom:calc(var(--ck-balloon-arrow-height)*-1);margin-right:calc(var(--ck-balloon-arrow-half-width)*2);right:25%}.ck.ck-balloon-panel.ck-balloon-panel_arrow_smw:after,.ck.ck-balloon-panel.ck-balloon-panel_arrow_smw:before{bottom:calc(var(--ck-balloon-arrow-height)*-1);left:25%;margin-left:calc(var(--ck-balloon-arrow-half-width)*2)}.ck.ck-balloon-panel.ck-balloon-panel_arrow_nme:after,.ck.ck-balloon-panel.ck-balloon-panel_arrow_nme:before{margin-right:calc(var(--ck-balloon-arrow-half-width)*2);right:25%;top:calc(var(--ck-balloon-arrow-height)*-1)}.ck.ck-balloon-panel.ck-balloon-panel_arrow_nmw:after,.ck.ck-balloon-panel.ck-balloon-panel_arrow_nmw:before{left:25%;margin-left:calc(var(--ck-balloon-arrow-half-width)*2);top:calc(var(--ck-balloon-arrow-height)*-1)}',"",{version:3,sources:["webpack://./node_modules/@ckeditor/ckeditor5-ui/theme/components/panel/balloonpanel.css","webpack://./node_modules/@ckeditor/ckeditor5-theme-lark/theme/ckeditor5-ui/components/panel/balloonpanel.css","webpack://./node_modules/@ckeditor/ckeditor5-theme-lark/theme/mixins/_rounded.css","webpack://./node_modules/@ckeditor/ckeditor5-theme-lark/theme/mixins/_shadow.css"],names:[],mappings:"AAKA,MAEC,8DACD,CAEA,qBACC,YAAa,CACb,iBAAkB,CAElB,yBAyCD,CAtCE,+GAEC,UAAW,CACX,iBACD,CAEA,wDACC,6CACD,CAEA,uDACC,uDACD,CAIA,4CACC,6CACD,CAEA,2CACC,uDACD,CAIA,4CACC,6CACD,CAEA,2CACC,uDACD,CAGD,8CACC,aACD,CC9CD,MACC,6BAA8B,CAC9B,8BAA+B,CAC/B,iCAAkC,CAClC,oEACD,CAEA,qBCJC,eD4ID,CAxIA,iFCAE,qCDwIF,CAxIA,qBAMC,2CAA4C,CAC5C,6CAA8C,CEb9C,oCAA8B,CFU9B,eAoID,CA9HE,+GAIC,kBAAmB,CADnB,QAAS,CADT,OAGD,CAIA,uFAEC,mHACD,CAEA,4CACC,6EACD,CAEA,2CACC,iFAAkF,CAClF,yCACD,CAIA,uFAEC,mHACD,CAEA,4CACC,iEAAkE,CAClE,uDACD,CAEA,2CACC,iFAAkF,CAClF,4CACD,CAIA,yGAEC,QAAS,CACT,uDAA0D,CAC1D,2CACD,CAIA,2GAEC,+CAAkD,CAClD,2CACD,CAIA,2GAEC,gDAAmD,CACnD,2CACD,CAIA,yGAIC,8CAAiD,CAFjD,QAAS,CACT,uDAED,CAIA,2GAGC,8CAAiD,CADjD,+CAED,CAIA,2GAGC,8CAAiD,CADjD,gDAED,CAIA,6GAIC,8CAAiD,CADjD,uDAA0D,CAD1D,SAGD,CAIA,6GAIC,8CAAiD,CAFjD,QAAS,CACT,sDAED,CAIA,6GAGC,uDAA0D,CAD1D,SAAU,CAEV,2CACD,CAIA,6GAEC,QAAS,CACT,sDAAyD,CACzD,2CACD",sourcesContent:['/*\n * Copyright (c) 2003-2022, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n:root {\n\t/* Make sure the balloon arrow does not float over its children. */\n\t--ck-balloon-panel-arrow-z-index: calc(var(--ck-z-default) - 3);\n}\n\n.ck.ck-balloon-panel {\n\tdisplay: none;\n\tposition: absolute;\n\n\tz-index: var(--ck-z-modal);\n\n\t&.ck-balloon-panel_with-arrow {\n\t\t&::before,\n\t\t&::after {\n\t\t\tcontent: "";\n\t\t\tposition: absolute;\n\t\t}\n\n\t\t&::before {\n\t\t\tz-index: var(--ck-balloon-panel-arrow-z-index);\n\t\t}\n\n\t\t&::after {\n\t\t\tz-index: calc(var(--ck-balloon-panel-arrow-z-index) + 1);\n\t\t}\n\t}\n\n\t&[class*="arrow_n"] {\n\t\t&::before {\n\t\t\tz-index: var(--ck-balloon-panel-arrow-z-index);\n\t\t}\n\n\t\t&::after {\n\t\t\tz-index: calc(var(--ck-balloon-panel-arrow-z-index) + 1);\n\t\t}\n\t}\n\n\t&[class*="arrow_s"] {\n\t\t&::before {\n\t\t\tz-index: var(--ck-balloon-panel-arrow-z-index);\n\t\t}\n\n\t\t&::after {\n\t\t\tz-index: calc(var(--ck-balloon-panel-arrow-z-index) + 1);\n\t\t}\n\t}\n\n\t&.ck-balloon-panel_visible {\n\t\tdisplay: block;\n\t}\n}\n','/*\n * Copyright (c) 2003-2022, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n@import "../../../mixins/_rounded.css";\n@import "../../../mixins/_shadow.css";\n\n:root {\n\t--ck-balloon-arrow-offset: 2px;\n\t--ck-balloon-arrow-height: 10px;\n\t--ck-balloon-arrow-half-width: 8px;\n\t--ck-balloon-arrow-drop-shadow: 0 2px 2px var(--ck-color-shadow-drop);\n}\n\n.ck.ck-balloon-panel {\n\t@mixin ck-rounded-corners;\n\t@mixin ck-drop-shadow;\n\n\tmin-height: 15px;\n\n\tbackground: var(--ck-color-panel-background);\n\tborder: 1px solid var(--ck-color-panel-border);\n\n\t&.ck-balloon-panel_with-arrow {\n\t\t&::before,\n\t\t&::after {\n\t\t\twidth: 0;\n\t\t\theight: 0;\n\t\t\tborder-style: solid;\n\t\t}\n\t}\n\n\t&[class*="arrow_n"] {\n\t\t&::before,\n\t\t&::after {\n\t\t\tborder-width: 0 var(--ck-balloon-arrow-half-width) var(--ck-balloon-arrow-height) var(--ck-balloon-arrow-half-width);\n\t\t}\n\n\t\t&::before {\n\t\t\tborder-color: transparent transparent var(--ck-color-panel-border) transparent;\n\t\t}\n\n\t\t&::after {\n\t\t\tborder-color: transparent transparent var(--ck-color-panel-background) transparent;\n\t\t\tmargin-top: var(--ck-balloon-arrow-offset);\n\t\t}\n\t}\n\n\t&[class*="arrow_s"] {\n\t\t&::before,\n\t\t&::after {\n\t\t\tborder-width: var(--ck-balloon-arrow-height) var(--ck-balloon-arrow-half-width) 0 var(--ck-balloon-arrow-half-width);\n\t\t}\n\n\t\t&::before {\n\t\t\tborder-color: var(--ck-color-panel-border) transparent transparent;\n\t\t\tfilter: drop-shadow(var(--ck-balloon-arrow-drop-shadow));\n\t\t}\n\n\t\t&::after {\n\t\t\tborder-color: var(--ck-color-panel-background) transparent transparent transparent;\n\t\t\tmargin-bottom: var(--ck-balloon-arrow-offset);\n\t\t}\n\t}\n\n\t&.ck-balloon-panel_arrow_n {\n\t\t&::before,\n\t\t&::after {\n\t\t\tleft: 50%;\n\t\t\tmargin-left: calc(-1 * var(--ck-balloon-arrow-half-width));\n\t\t\ttop: calc(-1 * var(--ck-balloon-arrow-height));\n\t\t}\n\t}\n\n\t&.ck-balloon-panel_arrow_nw {\n\t\t&::before,\n\t\t&::after {\n\t\t\tleft: calc(2 * var(--ck-balloon-arrow-half-width));\n\t\t\ttop: calc(-1 * var(--ck-balloon-arrow-height));\n\t\t}\n\t}\n\n\t&.ck-balloon-panel_arrow_ne {\n\t\t&::before,\n\t\t&::after {\n\t\t\tright: calc(2 * var(--ck-balloon-arrow-half-width));\n\t\t\ttop: calc(-1 * var(--ck-balloon-arrow-height));\n\t\t}\n\t}\n\n\t&.ck-balloon-panel_arrow_s {\n\t\t&::before,\n\t\t&::after {\n\t\t\tleft: 50%;\n\t\t\tmargin-left: calc(-1 * var(--ck-balloon-arrow-half-width));\n\t\t\tbottom: calc(-1 * var(--ck-balloon-arrow-height));\n\t\t}\n\t}\n\n\t&.ck-balloon-panel_arrow_sw {\n\t\t&::before,\n\t\t&::after {\n\t\t\tleft: calc(2 * var(--ck-balloon-arrow-half-width));\n\t\t\tbottom: calc(-1 * var(--ck-balloon-arrow-height));\n\t\t}\n\t}\n\n\t&.ck-balloon-panel_arrow_se {\n\t\t&::before,\n\t\t&::after {\n\t\t\tright: calc(2 * var(--ck-balloon-arrow-half-width));\n\t\t\tbottom: calc(-1 * var(--ck-balloon-arrow-height));\n\t\t}\n\t}\n\n\t&.ck-balloon-panel_arrow_sme {\n\t\t&::before,\n\t\t&::after {\n\t\t\tright: 25%;\n\t\t\tmargin-right: calc(2 * var(--ck-balloon-arrow-half-width));\n\t\t\tbottom: calc(-1 * var(--ck-balloon-arrow-height));\n\t\t}\n\t}\n\n\t&.ck-balloon-panel_arrow_smw {\n\t\t&::before,\n\t\t&::after {\n\t\t\tleft: 25%;\n\t\t\tmargin-left: calc(2 * var(--ck-balloon-arrow-half-width));\n\t\t\tbottom: calc(-1 * var(--ck-balloon-arrow-height));\n\t\t}\n\t}\n\n\t&.ck-balloon-panel_arrow_nme {\n\t\t&::before,\n\t\t&::after {\n\t\t\tright: 25%;\n\t\t\tmargin-right: calc(2 * var(--ck-balloon-arrow-half-width));\n\t\t\ttop: calc(-1 * var(--ck-balloon-arrow-height));\n\t\t}\n\t}\n\n\t&.ck-balloon-panel_arrow_nmw {\n\t\t&::before,\n\t\t&::after {\n\t\t\tleft: 25%;\n\t\t\tmargin-left: calc(2 * var(--ck-balloon-arrow-half-width));\n\t\t\ttop: calc(-1 * var(--ck-balloon-arrow-height));\n\t\t}\n\t}\n}\n',"/*\n * Copyright (c) 2003-2022, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n/**\n * Implements rounded corner interface for .ck-rounded-corners class.\n *\n * @see $ck-border-radius\n */\n@define-mixin ck-rounded-corners {\n\tborder-radius: 0;\n\n\t@nest .ck-rounded-corners &,\n\t&.ck-rounded-corners {\n\t\tborder-radius: var(--ck-border-radius);\n\t\t@mixin-content;\n\t}\n}\n","/*\n * Copyright (c) 2003-2022, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n/**\n * A helper to combine multiple shadows.\n */\n@define-mixin ck-box-shadow $shadowA, $shadowB: 0 0 {\n\tbox-shadow: $shadowA, $shadowB;\n}\n\n/**\n * Gives an element a drop shadow so it looks like a floating panel.\n */\n@define-mixin ck-drop-shadow {\n\t@mixin ck-box-shadow var(--ck-drop-shadow);\n}\n"],sourceRoot:""}]);const a=s},1757:(t,e,n)=>{"use strict";n.d(e,{Z:()=>a});var o=n(4015),i=n.n(o),r=n(3645),s=n.n(r)()(i());s.push([t.id,".ck .ck-balloon-rotator__navigation{align-items:center;display:flex;justify-content:center}.ck .ck-balloon-rotator__content .ck-toolbar{justify-content:center}.ck .ck-balloon-rotator__navigation{background:var(--ck-color-toolbar-background);border-bottom:1px solid var(--ck-color-toolbar-border);padding:0 var(--ck-spacing-small)}.ck .ck-balloon-rotator__navigation>*{margin-bottom:var(--ck-spacing-small);margin-right:var(--ck-spacing-small);margin-top:var(--ck-spacing-small)}.ck .ck-balloon-rotator__navigation .ck-balloon-rotator__counter{margin-left:var(--ck-spacing-small);margin-right:var(--ck-spacing-standard)}.ck .ck-balloon-rotator__content .ck.ck-annotation-wrapper{box-shadow:none}","",{version:3,sources:["webpack://./node_modules/@ckeditor/ckeditor5-ui/theme/components/panel/balloonrotator.css","webpack://./node_modules/@ckeditor/ckeditor5-theme-lark/theme/ckeditor5-ui/components/panel/balloonrotator.css"],names:[],mappings:"AAKA,oCAEC,kBAAmB,CADnB,YAAa,CAEb,sBACD,CAKA,6CACC,sBACD,CCXA,oCACC,6CAA8C,CAC9C,sDAAuD,CACvD,iCAgBD,CAbC,sCAGC,qCAAsC,CAFtC,oCAAqC,CACrC,kCAED,CAGA,iEAIC,mCAAoC,CAHpC,uCAID,CAMA,2DACC,eACD",sourcesContent:["/*\n * Copyright (c) 2003-2022, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n.ck .ck-balloon-rotator__navigation {\n\tdisplay: flex;\n\talign-items: center;\n\tjustify-content: center;\n}\n\n/* Buttons inside a toolbar should be centered when rotator bar is wider.\n * See: https://github.com/ckeditor/ckeditor5-ui/issues/495\n */\n.ck .ck-balloon-rotator__content .ck-toolbar {\n\tjustify-content: center;\n}\n","/*\n * Copyright (c) 2003-2022, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n.ck .ck-balloon-rotator__navigation {\n\tbackground: var(--ck-color-toolbar-background);\n\tborder-bottom: 1px solid var(--ck-color-toolbar-border);\n\tpadding: 0 var(--ck-spacing-small);\n\n\t/* Let's keep similar appearance to `ck-toolbar`. */\n\t& > * {\n\t\tmargin-right: var(--ck-spacing-small);\n\t\tmargin-top: var(--ck-spacing-small);\n\t\tmargin-bottom: var(--ck-spacing-small);\n\t}\n\n\t/* Gives counter more breath than buttons. */\n\t& .ck-balloon-rotator__counter {\n\t\tmargin-right: var(--ck-spacing-standard);\n\n\t\t/* We need to use smaller margin because of previous button's right margin. */\n\t\tmargin-left: var(--ck-spacing-small);\n\t}\n}\n\n.ck .ck-balloon-rotator__content {\n\n\t/* Disable default annotation shadow inside rotator with fake panels. */\n\t& .ck.ck-annotation-wrapper {\n\t\tbox-shadow: none;\n\t}\n}\n"],sourceRoot:""}]);const a=s},3553:(t,e,n)=>{"use strict";n.d(e,{Z:()=>a});var o=n(4015),i=n.n(o),r=n(3645),s=n.n(r)()(i());s.push([t.id,".ck .ck-fake-panel{position:absolute;z-index:calc(var(--ck-z-modal) - 1)}.ck .ck-fake-panel div{position:absolute}.ck .ck-fake-panel div:first-child{z-index:2}.ck .ck-fake-panel div:nth-child(2){z-index:1}:root{--ck-balloon-fake-panel-offset-horizontal:6px;--ck-balloon-fake-panel-offset-vertical:6px}.ck .ck-fake-panel div{background:var(--ck-color-panel-background);border:1px solid var(--ck-color-panel-border);border-radius:var(--ck-border-radius);box-shadow:var(--ck-drop-shadow),0 0;height:100%;min-height:15px;width:100%}.ck .ck-fake-panel div:first-child{margin-left:var(--ck-balloon-fake-panel-offset-horizontal);margin-top:var(--ck-balloon-fake-panel-offset-vertical)}.ck .ck-fake-panel div:nth-child(2){margin-left:calc(var(--ck-balloon-fake-panel-offset-horizontal)*2);margin-top:calc(var(--ck-balloon-fake-panel-offset-vertical)*2)}.ck .ck-fake-panel div:nth-child(3){margin-left:calc(var(--ck-balloon-fake-panel-offset-horizontal)*3);margin-top:calc(var(--ck-balloon-fake-panel-offset-vertical)*3)}.ck .ck-balloon-panel_arrow_s+.ck-fake-panel,.ck .ck-balloon-panel_arrow_se+.ck-fake-panel,.ck .ck-balloon-panel_arrow_sw+.ck-fake-panel{--ck-balloon-fake-panel-offset-vertical:-6px}","",{version:3,sources:["webpack://./node_modules/@ckeditor/ckeditor5-ui/theme/components/panel/fakepanel.css","webpack://./node_modules/@ckeditor/ckeditor5-theme-lark/theme/ckeditor5-ui/components/panel/fakepanel.css","webpack://./node_modules/@ckeditor/ckeditor5-theme-lark/theme/mixins/_shadow.css"],names:[],mappings:"AAKA,mBACC,iBAAkB,CAGlB,mCACD,CAEA,uBACC,iBACD,CAEA,mCACC,SACD,CAEA,oCACC,SACD,CCfA,MACC,6CAA8C,CAC9C,2CACD,CAGA,uBAKC,2CAA4C,CAC5C,6CAA8C,CAC9C,qCAAsC,CCXtC,oCAA8B,CDc9B,WAAY,CAPZ,eAAgB,CAMhB,UAED,CAEA,mCACC,0DAA2D,CAC3D,uDACD,CAEA,oCACC,kEAAqE,CACrE,+DACD,CACA,oCACC,kEAAqE,CACrE,+DACD,CAGA,yIAGC,4CACD",sourcesContent:["/*\n * Copyright (c) 2003-2022, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n.ck .ck-fake-panel {\n\tposition: absolute;\n\n\t/* Fake panels should be placed under main balloon content. */\n\tz-index: calc(var(--ck-z-modal) - 1);\n}\n\n.ck .ck-fake-panel div {\n\tposition: absolute;\n}\n\n.ck .ck-fake-panel div:nth-child( 1 ) {\n\tz-index: 2;\n}\n\n.ck .ck-fake-panel div:nth-child( 2 ) {\n\tz-index: 1;\n}\n",'/*\n * Copyright (c) 2003-2022, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n@import "../../../mixins/_shadow.css";\n\n:root {\n\t--ck-balloon-fake-panel-offset-horizontal: 6px;\n\t--ck-balloon-fake-panel-offset-vertical: 6px;\n}\n\n/* Let\'s use `.ck-balloon-panel` appearance. See: balloonpanel.css. */\n.ck .ck-fake-panel div {\n\t@mixin ck-drop-shadow;\n\n\tmin-height: 15px;\n\n\tbackground: var(--ck-color-panel-background);\n\tborder: 1px solid var(--ck-color-panel-border);\n\tborder-radius: var(--ck-border-radius);\n\n\twidth: 100%;\n\theight: 100%;\n}\n\n.ck .ck-fake-panel div:nth-child( 1 ) {\n\tmargin-left: var(--ck-balloon-fake-panel-offset-horizontal);\n\tmargin-top: var(--ck-balloon-fake-panel-offset-vertical);\n}\n\n.ck .ck-fake-panel div:nth-child( 2 ) {\n\tmargin-left: calc(var(--ck-balloon-fake-panel-offset-horizontal) * 2);\n\tmargin-top: calc(var(--ck-balloon-fake-panel-offset-vertical) * 2);\n}\n.ck .ck-fake-panel div:nth-child( 3 ) {\n\tmargin-left: calc(var(--ck-balloon-fake-panel-offset-horizontal) * 3);\n\tmargin-top: calc(var(--ck-balloon-fake-panel-offset-vertical) * 3);\n}\n\n/* If balloon is positioned above element, we need to move fake panel to the top. */\n.ck .ck-balloon-panel_arrow_s + .ck-fake-panel,\n.ck .ck-balloon-panel_arrow_se + .ck-fake-panel,\n.ck .ck-balloon-panel_arrow_sw + .ck-fake-panel {\n\t--ck-balloon-fake-panel-offset-vertical: -6px;\n}\n',"/*\n * Copyright (c) 2003-2022, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n/**\n * A helper to combine multiple shadows.\n */\n@define-mixin ck-box-shadow $shadowA, $shadowB: 0 0 {\n\tbox-shadow: $shadowA, $shadowB;\n}\n\n/**\n * Gives an element a drop shadow so it looks like a floating panel.\n */\n@define-mixin ck-drop-shadow {\n\t@mixin ck-box-shadow var(--ck-drop-shadow);\n}\n"],sourceRoot:""}]);const a=s},3609:(t,e,n)=>{"use strict";n.d(e,{Z:()=>a});var o=n(4015),i=n.n(o),r=n(3645),s=n.n(r)()(i());s.push([t.id,".ck.ck-sticky-panel .ck-sticky-panel__content_sticky{position:fixed;top:0;z-index:var(--ck-z-modal)}.ck.ck-sticky-panel .ck-sticky-panel__content_sticky_bottom-limit{position:absolute;top:auto}.ck.ck-sticky-panel .ck-sticky-panel__content_sticky{border-top-left-radius:0;border-top-right-radius:0;border-width:0 1px 1px;box-shadow:var(--ck-drop-shadow),0 0}","",{version:3,sources:["webpack://./node_modules/@ckeditor/ckeditor5-ui/theme/components/panel/stickypanel.css","webpack://./node_modules/@ckeditor/ckeditor5-theme-lark/theme/ckeditor5-ui/components/panel/stickypanel.css","webpack://./node_modules/@ckeditor/ckeditor5-theme-lark/theme/mixins/_shadow.css"],names:[],mappings:"AAMC,qDAEC,cAAe,CACf,KAAM,CAFN,yBAGD,CAEA,kEAEC,iBAAkB,CADlB,QAED,CCPA,qDAIC,wBAAyB,CACzB,yBAA0B,CAF1B,sBAAuB,CCFxB,oCDKA",sourcesContent:["/*\n * Copyright (c) 2003-2022, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n.ck.ck-sticky-panel {\n\t& .ck-sticky-panel__content_sticky {\n\t\tz-index: var(--ck-z-modal); /* #315 */\n\t\tposition: fixed;\n\t\ttop: 0;\n\t}\n\n\t& .ck-sticky-panel__content_sticky_bottom-limit {\n\t\ttop: auto;\n\t\tposition: absolute;\n\t}\n}\n",'/*\n * Copyright (c) 2003-2022, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n@import "../../../mixins/_shadow.css";\n\n.ck.ck-sticky-panel {\n\t& .ck-sticky-panel__content_sticky {\n\t\t@mixin ck-drop-shadow;\n\n\t\tborder-width: 0 1px 1px;\n\t\tborder-top-left-radius: 0;\n\t\tborder-top-right-radius: 0;\n\t}\n}\n',"/*\n * Copyright (c) 2003-2022, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n/**\n * A helper to combine multiple shadows.\n */\n@define-mixin ck-box-shadow $shadowA, $shadowB: 0 0 {\n\tbox-shadow: $shadowA, $shadowB;\n}\n\n/**\n * Gives an element a drop shadow so it looks like a floating panel.\n */\n@define-mixin ck-drop-shadow {\n\t@mixin ck-box-shadow var(--ck-drop-shadow);\n}\n"],sourceRoot:""}]);const a=s},1590:(t,e,n)=>{"use strict";n.d(e,{Z:()=>a});var o=n(4015),i=n.n(o),r=n(3645),s=n.n(r)()(i());s.push([t.id,'.ck-vertical-form .ck-button:after{bottom:var(--ck-spacing-small);content:"";position:absolute;right:-1px;top:var(--ck-spacing-small);width:0;z-index:1}@media screen and (max-width:600px){.ck.ck-responsive-form .ck-button:after{bottom:var(--ck-spacing-small);content:"";position:absolute;right:-1px;top:var(--ck-spacing-small);width:0;z-index:1}}.ck-vertical-form>.ck-button:nth-last-child(2):after{border-right:1px solid var(--ck-color-base-border)}.ck.ck-responsive-form{padding:var(--ck-spacing-large)}.ck.ck-responsive-form:focus{outline:none}[dir=ltr] .ck.ck-responsive-form>:not(:first-child),[dir=rtl] .ck.ck-responsive-form>:not(:last-child){margin-left:var(--ck-spacing-standard)}@media screen and (max-width:600px){.ck.ck-responsive-form{padding:0;width:calc(var(--ck-input-width)*.8)}.ck.ck-responsive-form .ck-labeled-field-view{margin:var(--ck-spacing-large) var(--ck-spacing-large) 0}.ck.ck-responsive-form .ck-labeled-field-view .ck-input-text{min-width:0;width:100%}.ck.ck-responsive-form .ck-labeled-field-view .ck-labeled-field-view__error{white-space:normal}.ck.ck-responsive-form>.ck-button:last-child,.ck.ck-responsive-form>.ck-button:nth-last-child(2){border:0;border-radius:0;border-top:1px solid var(--ck-color-base-border);margin-top:var(--ck-spacing-large);padding:var(--ck-spacing-standard)}[dir=ltr] .ck.ck-responsive-form>.ck-button:last-child,[dir=ltr] .ck.ck-responsive-form>.ck-button:nth-last-child(2),[dir=rtl] .ck.ck-responsive-form>.ck-button:last-child,[dir=rtl] .ck.ck-responsive-form>.ck-button:nth-last-child(2){margin-left:0}.ck.ck-responsive-form>.ck-button:nth-last-child(2):after,[dir=rtl] .ck.ck-responsive-form>.ck-button:last-child:last-of-type,[dir=rtl] .ck.ck-responsive-form>.ck-button:nth-last-child(2):last-of-type{border-right:1px solid var(--ck-color-base-border)}}',"",{version:3,sources:["webpack://./node_modules/@ckeditor/ckeditor5-ui/theme/components/responsive-form/responsiveform.css","webpack://./node_modules/@ckeditor/ckeditor5-ui/theme/mixins/_rwd.css","webpack://./node_modules/@ckeditor/ckeditor5-theme-lark/theme/ckeditor5-ui/components/responsive-form/responsiveform.css"],names:[],mappings:"AAOA,mCAMC,8BAA+B,CAL/B,UAAW,CAEX,iBAAkB,CAClB,UAAW,CACX,2BAA4B,CAH5B,OAAQ,CAKR,SACD,CCTC,oCDaC,wCAMC,8BAA+B,CAL/B,UAAW,CAEX,iBAAkB,CAClB,UAAW,CACX,2BAA4B,CAH5B,OAAQ,CAKR,SACD,CCnBD,CCAD,qDACC,kDACD,CAEA,uBACC,+BAkED,CAhEC,6BAEC,YACD,CASC,uGACC,sCACD,CDvBD,oCCMD,uBAqBE,SAAU,CACV,oCA6CF,CA3CE,8CACC,wDAWD,CATC,6DACC,WAAY,CACZ,UACD,CAGA,4EACC,kBACD,CAID,iGAMC,QAAS,CADT,eAAgB,CAEhB,gDAAiD,CAJjD,kCAAmC,CADnC,kCAkBD,CApBA,0OAcE,aAMF,CAGC,yMACC,kDACD,CDpEF",sourcesContent:['/*\n * Copyright (c) 2003-2022, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n@import "@ckeditor/ckeditor5-ui/theme/mixins/_rwd.css";\n\n.ck-vertical-form .ck-button::after {\n\tcontent: "";\n\twidth: 0;\n\tposition: absolute;\n\tright: -1px;\n\ttop: var(--ck-spacing-small);\n\tbottom: var(--ck-spacing-small);\n\tz-index: 1;\n}\n\n.ck.ck-responsive-form {\n\t@mixin ck-media-phone {\n\t\t& .ck-button::after {\n\t\t\tcontent: "";\n\t\t\twidth: 0;\n\t\t\tposition: absolute;\n\t\t\tright: -1px;\n\t\t\ttop: var(--ck-spacing-small);\n\t\t\tbottom: var(--ck-spacing-small);\n\t\t\tz-index: 1;\n\t\t}\n\t}\n}\n',"/*\n * Copyright (c) 2003-2022, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n@define-mixin ck-media-phone {\n\t@media screen and (max-width: 600px) {\n\t\t@mixin-content;\n\t}\n}\n",'/*\n * Copyright (c) 2003-2022, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n@import "@ckeditor/ckeditor5-ui/theme/mixins/_rwd.css";\n@import "@ckeditor/ckeditor5-ui/theme/mixins/_dir.css";\n\n.ck-vertical-form > .ck-button:nth-last-child(2)::after {\n\tborder-right: 1px solid var(--ck-color-base-border);\n}\n\n.ck.ck-responsive-form {\n\tpadding: var(--ck-spacing-large);\n\n\t&:focus {\n\t\t/* See: https://github.com/ckeditor/ckeditor5/issues/4773 */\n\t\toutline: none;\n\t}\n\n\t@mixin ck-dir ltr {\n\t\t& > :not(:first-child) {\n\t\t\tmargin-left: var(--ck-spacing-standard);\n\t\t}\n\t}\n\n\t@mixin ck-dir rtl {\n\t\t& > :not(:last-child) {\n\t\t\tmargin-left: var(--ck-spacing-standard);\n\t\t}\n\t}\n\n\t@mixin ck-media-phone {\n\t\tpadding: 0;\n\t\twidth: calc(.8 * var(--ck-input-width));\n\n\t\t& .ck-labeled-field-view {\n\t\t\tmargin: var(--ck-spacing-large) var(--ck-spacing-large) 0;\n\n\t\t\t& .ck-input-text {\n\t\t\t\tmin-width: 0;\n\t\t\t\twidth: 100%;\n\t\t\t}\n\n\t\t\t/* Let the long error messages wrap in the narrow form. */\n\t\t\t& .ck-labeled-field-view__error {\n\t\t\t\twhite-space: normal;\n\t\t\t}\n\t\t}\n\n\t\t/* Styles for two last buttons in the form (save&cancel, edit&unlink, etc.). */\n\t\t& > .ck-button:nth-last-child(1),\n\t\t& > .ck-button:nth-last-child(2) {\n\t\t\tpadding: var(--ck-spacing-standard);\n\t\t\tmargin-top: var(--ck-spacing-large);\n\n\t\t\tborder-radius: 0;\n\t\t\tborder: 0;\n\t\t\tborder-top: 1px solid var(--ck-color-base-border);\n\n\t\t\t@mixin ck-dir ltr {\n\t\t\t\tmargin-left: 0;\n\t\t\t}\n\n\t\t\t@mixin ck-dir rtl {\n\t\t\t\tmargin-left: 0;\n\n\t\t\t\t&:last-of-type {\n\t\t\t\t\tborder-right: 1px solid var(--ck-color-base-border);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\t& > .ck-button:nth-last-child(2) {\n\t\t\t&::after {\n\t\t\t\tborder-right: 1px solid var(--ck-color-base-border);\n\t\t\t}\n\t\t}\n\t}\n}\n'],sourceRoot:""}]);const a=s},6706:(t,e,n)=>{"use strict";n.d(e,{Z:()=>a});var o=n(4015),i=n.n(o),r=n(3645),s=n.n(r)()(i());s.push([t.id,".ck.ck-block-toolbar-button{position:absolute;z-index:var(--ck-z-default)}:root{--ck-color-block-toolbar-button:var(--ck-color-text);--ck-block-toolbar-button-size:var(--ck-font-size-normal)}.ck.ck-block-toolbar-button{color:var(--ck-color-block-toolbar-button);font-size:var(--ck-block-toolbar-size)}","",{version:3,sources:["webpack://./node_modules/@ckeditor/ckeditor5-ui/theme/components/toolbar/blocktoolbar.css","webpack://./node_modules/@ckeditor/ckeditor5-theme-lark/theme/ckeditor5-ui/components/toolbar/blocktoolbar.css"],names:[],mappings:"AAKA,4BACC,iBAAkB,CAClB,2BACD,CCHA,MACC,oDAAqD,CACrD,yDACD,CAEA,4BACC,0CAA2C,CAC3C,sCACD",sourcesContent:["/*\n * Copyright (c) 2003-2022, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n.ck.ck-block-toolbar-button {\n\tposition: absolute;\n\tz-index: var(--ck-z-default);\n}\n","/*\n * Copyright (c) 2003-2022, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n:root {\n\t--ck-color-block-toolbar-button: var(--ck-color-text);\n\t--ck-block-toolbar-button-size: var(--ck-font-size-normal);\n}\n\n.ck.ck-block-toolbar-button {\n\tcolor: var(--ck-color-block-toolbar-button);\n\tfont-size: var(--ck-block-toolbar-size);\n}\n"],sourceRoot:""}]);const a=s},5571:(t,e,n)=>{"use strict";n.d(e,{Z:()=>a});var o=n(4015),i=n.n(o),r=n(3645),s=n.n(r)()(i());s.push([t.id,".ck.ck-toolbar{align-items:center;display:flex;flex-flow:row nowrap;-moz-user-select:none;-webkit-user-select:none;-ms-user-select:none;user-select:none}.ck.ck-toolbar>.ck-toolbar__items{align-items:center;display:flex;flex-flow:row wrap;flex-grow:1}.ck.ck-toolbar .ck.ck-toolbar__separator{display:inline-block}.ck.ck-toolbar .ck.ck-toolbar__separator:first-child,.ck.ck-toolbar .ck.ck-toolbar__separator:last-child{display:none}.ck.ck-toolbar .ck-toolbar__line-break{flex-basis:100%}.ck.ck-toolbar.ck-toolbar_grouping>.ck-toolbar__items{flex-wrap:nowrap}.ck.ck-toolbar.ck-toolbar_vertical>.ck-toolbar__items{flex-direction:column}.ck.ck-toolbar.ck-toolbar_floating>.ck-toolbar__items{flex-wrap:nowrap}.ck.ck-toolbar>.ck.ck-toolbar__grouped-dropdown>.ck-dropdown__button .ck-dropdown__arrow{display:none}.ck.ck-toolbar{border-radius:0}.ck-rounded-corners .ck.ck-toolbar,.ck.ck-toolbar.ck-rounded-corners{border-radius:var(--ck-border-radius)}.ck.ck-toolbar{background:var(--ck-color-toolbar-background);border:1px solid var(--ck-color-toolbar-border);padding:0 var(--ck-spacing-small)}.ck.ck-toolbar .ck.ck-toolbar__separator{align-self:stretch;background:var(--ck-color-toolbar-border);margin-bottom:var(--ck-spacing-small);margin-top:var(--ck-spacing-small);min-width:1px;width:1px}.ck.ck-toolbar .ck-toolbar__line-break{height:0}.ck.ck-toolbar>.ck-toolbar__items>:not(.ck-toolbar__line-break){margin-right:var(--ck-spacing-small)}.ck.ck-toolbar>.ck-toolbar__items:empty+.ck.ck-toolbar__separator{display:none}.ck.ck-toolbar>.ck-toolbar__items>:not(.ck-toolbar__line-break),.ck.ck-toolbar>.ck.ck-toolbar__grouped-dropdown{margin-bottom:var(--ck-spacing-small);margin-top:var(--ck-spacing-small)}.ck.ck-toolbar.ck-toolbar_vertical{padding:0}.ck.ck-toolbar.ck-toolbar_vertical>.ck-toolbar__items>.ck{border:0;border-radius:0;margin:0;width:100%}.ck.ck-toolbar.ck-toolbar_compact{padding:0}.ck.ck-toolbar.ck-toolbar_compact>.ck-toolbar__items>*{margin:0}.ck.ck-toolbar.ck-toolbar_compact>.ck-toolbar__items>:not(:first-child):not(:last-child){border-radius:0}.ck.ck-toolbar>.ck.ck-toolbar__grouped-dropdown>.ck.ck-button.ck-dropdown__button{padding-left:var(--ck-spacing-tiny)}.ck-toolbar-container .ck.ck-toolbar{border:0}.ck.ck-toolbar[dir=rtl]>.ck-toolbar__items>.ck,[dir=rtl] .ck.ck-toolbar>.ck-toolbar__items>.ck{margin-right:0}.ck.ck-toolbar[dir=rtl]:not(.ck-toolbar_compact)>.ck-toolbar__items>.ck,[dir=rtl] .ck.ck-toolbar:not(.ck-toolbar_compact)>.ck-toolbar__items>.ck{margin-left:var(--ck-spacing-small)}.ck.ck-toolbar[dir=rtl]>.ck-toolbar__items>.ck:last-child,[dir=rtl] .ck.ck-toolbar>.ck-toolbar__items>.ck:last-child{margin-left:0}.ck.ck-toolbar.ck-toolbar_compact[dir=rtl]>.ck-toolbar__items>.ck:first-child,[dir=rtl] .ck.ck-toolbar.ck-toolbar_compact>.ck-toolbar__items>.ck:first-child{border-bottom-left-radius:0;border-top-left-radius:0}.ck.ck-toolbar.ck-toolbar_compact[dir=rtl]>.ck-toolbar__items>.ck:last-child,[dir=rtl] .ck.ck-toolbar.ck-toolbar_compact>.ck-toolbar__items>.ck:last-child{border-bottom-right-radius:0;border-top-right-radius:0}.ck.ck-toolbar.ck-toolbar_grouping[dir=rtl]>.ck-toolbar__items:not(:empty):not(:only-child),.ck.ck-toolbar[dir=rtl]>.ck.ck-toolbar__separator,[dir=rtl] .ck.ck-toolbar.ck-toolbar_grouping>.ck-toolbar__items:not(:empty):not(:only-child),[dir=rtl] .ck.ck-toolbar>.ck.ck-toolbar__separator{margin-left:var(--ck-spacing-small)}.ck.ck-toolbar[dir=ltr]>.ck-toolbar__items>.ck:last-child,[dir=ltr] .ck.ck-toolbar>.ck-toolbar__items>.ck:last-child{margin-right:0}.ck.ck-toolbar.ck-toolbar_compact[dir=ltr]>.ck-toolbar__items>.ck:first-child,[dir=ltr] .ck.ck-toolbar.ck-toolbar_compact>.ck-toolbar__items>.ck:first-child{border-bottom-right-radius:0;border-top-right-radius:0}.ck.ck-toolbar.ck-toolbar_compact[dir=ltr]>.ck-toolbar__items>.ck:last-child,[dir=ltr] .ck.ck-toolbar.ck-toolbar_compact>.ck-toolbar__items>.ck:last-child{border-bottom-left-radius:0;border-top-left-radius:0}.ck.ck-toolbar.ck-toolbar_grouping[dir=ltr]>.ck-toolbar__items:not(:empty):not(:only-child),.ck.ck-toolbar[dir=ltr]>.ck.ck-toolbar__separator,[dir=ltr] .ck.ck-toolbar.ck-toolbar_grouping>.ck-toolbar__items:not(:empty):not(:only-child),[dir=ltr] .ck.ck-toolbar>.ck.ck-toolbar__separator{margin-right:var(--ck-spacing-small)}","",{version:3,sources:["webpack://./node_modules/@ckeditor/ckeditor5-ui/theme/components/toolbar/toolbar.css","webpack://./node_modules/@ckeditor/ckeditor5-ui/theme/mixins/_unselectable.css","webpack://./node_modules/@ckeditor/ckeditor5-theme-lark/theme/ckeditor5-ui/components/toolbar/toolbar.css","webpack://./node_modules/@ckeditor/ckeditor5-theme-lark/theme/mixins/_rounded.css"],names:[],mappings:"AAOA,eAKC,kBAAmB,CAFnB,YAAa,CACb,oBAAqB,CCFrB,qBAAsB,CACtB,wBAAyB,CACzB,oBAAqB,CACrB,gBD6CD,CA3CC,kCAGC,kBAAmB,CAFnB,YAAa,CACb,kBAAmB,CAEnB,WAED,CAEA,yCACC,oBAWD,CAJC,yGAEC,YACD,CAGD,uCACC,eACD,CAEA,sDACC,gBACD,CAEA,sDACC,qBACD,CAEA,sDACC,gBACD,CAGC,yFACC,YACD,CE/CF,eCGC,eD0FD,CA7FA,qECOE,qCDsFF,CA7FA,eAGC,6CAA8C,CAE9C,+CAAgD,CADhD,iCAyFD,CAtFC,yCACC,kBAAmB,CAGnB,yCAA0C,CAO1C,qCAAsC,CADtC,kCAAmC,CAPnC,aAAc,CADd,SAUD,CAEA,uCACC,QACD,CAGC,gEAEC,oCACD,CAIA,kEACC,YACD,CAGD,gHAIC,qCAAsC,CADtC,kCAED,CAEA,mCAEC,SAgBD,CAbC,0DAWC,QAAS,CAHT,eAAgB,CAHhB,QAAS,CAHT,UAUD,CAGD,kCAEC,SAWD,CATC,uDAEC,QAMD,CAHC,yFACC,eACD,CASD,kFACC,mCACD,CAvFF,qCA2FE,QAEF,CAYC,+FACC,cACD,CAEA,iJAEC,mCACD,CAEA,qHACC,aACD,CAIC,6JAEC,2BAA4B,CAD5B,wBAED,CAGA,2JAEC,4BAA6B,CAD7B,yBAED,CASD,8RACC,mCACD,CAWA,qHACC,cACD,CAIC,6JAEC,4BAA6B,CAD7B,yBAED,CAGA,2JAEC,2BAA4B,CAD5B,wBAED,CASD,8RACC,oCACD",sourcesContent:['/*\n * Copyright (c) 2003-2022, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n@import "../../mixins/_unselectable.css";\n\n.ck.ck-toolbar {\n\t@mixin ck-unselectable;\n\n\tdisplay: flex;\n\tflex-flow: row nowrap;\n\talign-items: center;\n\n\t& > .ck-toolbar__items {\n\t\tdisplay: flex;\n\t\tflex-flow: row wrap;\n\t\talign-items: center;\n\t\tflex-grow: 1;\n\n\t}\n\n\t& .ck.ck-toolbar__separator {\n\t\tdisplay: inline-block;\n\n\t\t/*\n\t\t * A leading or trailing separator makes no sense (separates from nothing on one side).\n\t\t * For instance, it can happen when toolbar items (also separators) are getting grouped one by one and\n\t\t * moved to another toolbar in the dropdown.\n\t\t */\n\t\t&:first-child,\n\t\t&:last-child {\n\t\t\tdisplay: none;\n\t\t}\n\t}\n\n\t& .ck-toolbar__line-break {\n\t\tflex-basis: 100%;\n\t}\n\n\t&.ck-toolbar_grouping > .ck-toolbar__items {\n\t\tflex-wrap: nowrap;\n\t}\n\n\t&.ck-toolbar_vertical > .ck-toolbar__items {\n\t\tflex-direction: column;\n\t}\n\n\t&.ck-toolbar_floating > .ck-toolbar__items {\n\t\tflex-wrap: nowrap;\n\t}\n\n\t& > .ck.ck-toolbar__grouped-dropdown {\n\t\t& > .ck-dropdown__button .ck-dropdown__arrow {\n\t\t\tdisplay: none;\n\t\t}\n\t}\n}\n',"/*\n * Copyright (c) 2003-2022, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n/**\n * Makes element unselectable.\n */\n@define-mixin ck-unselectable {\n\t-moz-user-select: none;\n\t-webkit-user-select: none;\n\t-ms-user-select: none;\n\tuser-select: none\n}\n",'/*\n * Copyright (c) 2003-2022, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n@import "../../../mixins/_rounded.css";\n@import "@ckeditor/ckeditor5-ui/theme/mixins/_dir.css";\n\n.ck.ck-toolbar {\n\t@mixin ck-rounded-corners;\n\n\tbackground: var(--ck-color-toolbar-background);\n\tpadding: 0 var(--ck-spacing-small);\n\tborder: 1px solid var(--ck-color-toolbar-border);\n\n\t& .ck.ck-toolbar__separator {\n\t\talign-self: stretch;\n\t\twidth: 1px;\n\t\tmin-width: 1px;\n\t\tbackground: var(--ck-color-toolbar-border);\n\n\t\t/*\n\t\t * These margins make the separators look better in balloon toolbars (when aligned with the "tip").\n\t\t * See https://github.com/ckeditor/ckeditor5/issues/7493.\n\t\t */\n\t\tmargin-top: var(--ck-spacing-small);\n\t\tmargin-bottom: var(--ck-spacing-small);\n\t}\n\n\t& .ck-toolbar__line-break {\n\t\theight: 0;\n\t}\n\n\t& > .ck-toolbar__items {\n\t\t& > *:not(.ck-toolbar__line-break) {\n\t\t\t/* (#11) Separate toolbar items. */\n\t\t\tmargin-right: var(--ck-spacing-small);\n\t\t}\n\n\t\t/* Don\'t display a separator after an empty items container, for instance,\n\t\twhen all items were grouped */\n\t\t&:empty + .ck.ck-toolbar__separator {\n\t\t\tdisplay: none;\n\t\t}\n\t}\n\n\t& > .ck-toolbar__items > *:not(.ck-toolbar__line-break),\n\t& > .ck.ck-toolbar__grouped-dropdown {\n\t\t/* Make sure items wrapped to the next line have v-spacing */\n\t\tmargin-top: var(--ck-spacing-small);\n\t\tmargin-bottom: var(--ck-spacing-small);\n\t}\n\n\t&.ck-toolbar_vertical {\n\t\t/* Items in a vertical toolbar span the entire width. */\n\t\tpadding: 0;\n\n\t\t/* Specificity matters here. See https://github.com/ckeditor/ckeditor5-theme-lark/issues/168. */\n\t\t& > .ck-toolbar__items > .ck {\n\t\t\t/* Items in a vertical toolbar should span the horizontal space. */\n\t\t\twidth: 100%;\n\n\t\t\t/* Items in a vertical toolbar should have no margin. */\n\t\t\tmargin: 0;\n\n\t\t\t/* Items in a vertical toolbar span the entire width so rounded corners are pointless. */\n\t\t\tborder-radius: 0;\n\n\t\t\t/* Items in a vertical toolbar span the entire width so any border is pointless. */\n\t\t\tborder: 0;\n\t\t}\n\t}\n\n\t&.ck-toolbar_compact {\n\t\t/* No spacing around items. */\n\t\tpadding: 0;\n\n\t\t& > .ck-toolbar__items > * {\n\t\t\t/* Compact toolbar items have no spacing between them. */\n\t\t\tmargin: 0;\n\n\t\t\t/* "Middle" children should have no rounded corners. */\n\t\t\t&:not(:first-child):not(:last-child) {\n\t\t\t\tborder-radius: 0;\n\t\t\t}\n\t\t}\n\t}\n\n\t& > .ck.ck-toolbar__grouped-dropdown {\n\t\t/*\n\t\t * Dropdown button has asymmetric padding to fit the arrow.\n\t\t * This button has no arrow so let\'s revert that padding back to normal.\n\t\t */\n\t\t& > .ck.ck-button.ck-dropdown__button {\n\t\t\tpadding-left: var(--ck-spacing-tiny);\n\t\t}\n\t}\n\n\t@nest .ck-toolbar-container & {\n\t\tborder: 0;\n\t}\n}\n\n/* stylelint-disable */\n\n/*\n * Styles for RTL toolbars.\n *\n * Note: In some cases (e.g. a decoupled editor), the toolbar has its own "dir"\n * because its parent is not controlled by the editor framework.\n */\n[dir="rtl"] .ck.ck-toolbar,\n.ck.ck-toolbar[dir="rtl"] {\n\t& > .ck-toolbar__items > .ck {\n\t\tmargin-right: 0;\n\t}\n\n\t&:not(.ck-toolbar_compact) > .ck-toolbar__items > .ck {\n\t\t/* (#11) Separate toolbar items. */\n\t\tmargin-left: var(--ck-spacing-small);\n\t}\n\n\t& > .ck-toolbar__items > .ck:last-child {\n\t\tmargin-left: 0;\n\t}\n\n\t&.ck-toolbar_compact > .ck-toolbar__items > .ck {\n\t\t/* No rounded corners on the right side of the first child. */\n\t\t&:first-child {\n\t\t\tborder-top-left-radius: 0;\n\t\t\tborder-bottom-left-radius: 0;\n\t\t}\n\n\t\t/* No rounded corners on the left side of the last child. */\n\t\t&:last-child {\n\t\t\tborder-top-right-radius: 0;\n\t\t\tborder-bottom-right-radius: 0;\n\t\t}\n\t}\n\n\t/* Separate the the separator form the grouping dropdown when some items are grouped. */\n\t& > .ck.ck-toolbar__separator {\n\t\tmargin-left: var(--ck-spacing-small);\n\t}\n\n\t/* Some spacing between the items and the separator before the grouped items dropdown. */\n\t&.ck-toolbar_grouping > .ck-toolbar__items:not(:empty):not(:only-child) {\n\t\tmargin-left: var(--ck-spacing-small);\n\t}\n}\n\n/*\n * Styles for LTR toolbars.\n *\n * Note: In some cases (e.g. a decoupled editor), the toolbar has its own "dir"\n * because its parent is not controlled by the editor framework.\n */\n[dir="ltr"] .ck.ck-toolbar,\n.ck.ck-toolbar[dir="ltr"] {\n\t& > .ck-toolbar__items > .ck:last-child {\n\t\tmargin-right: 0;\n\t}\n\n\t&.ck-toolbar_compact > .ck-toolbar__items > .ck {\n\t\t/* No rounded corners on the right side of the first child. */\n\t\t&:first-child {\n\t\t\tborder-top-right-radius: 0;\n\t\t\tborder-bottom-right-radius: 0;\n\t\t}\n\n\t\t/* No rounded corners on the left side of the last child. */\n\t\t&:last-child {\n\t\t\tborder-top-left-radius: 0;\n\t\t\tborder-bottom-left-radius: 0;\n\t\t}\n\t}\n\n\t/* Separate the the separator form the grouping dropdown when some items are grouped. */\n\t& > .ck.ck-toolbar__separator {\n\t\tmargin-right: var(--ck-spacing-small);\n\t}\n\n\t/* Some spacing between the items and the separator before the grouped items dropdown. */\n\t&.ck-toolbar_grouping > .ck-toolbar__items:not(:empty):not(:only-child) {\n\t\tmargin-right: var(--ck-spacing-small);\n\t}\n}\n\n/* stylelint-enable */\n',"/*\n * Copyright (c) 2003-2022, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n/**\n * Implements rounded corner interface for .ck-rounded-corners class.\n *\n * @see $ck-border-radius\n */\n@define-mixin ck-rounded-corners {\n\tborder-radius: 0;\n\n\t@nest .ck-rounded-corners &,\n\t&.ck-rounded-corners {\n\t\tborder-radius: var(--ck-border-radius);\n\t\t@mixin-content;\n\t}\n}\n"],sourceRoot:""}]);const a=s},9948:(t,e,n)=>{"use strict";n.d(e,{Z:()=>a});var o=n(4015),i=n.n(o),r=n(3645),s=n.n(r)()(i());s.push([t.id,'.ck.ck-tooltip,.ck.ck-tooltip .ck-tooltip__text:after{-webkit-backface-visibility:hidden;pointer-events:none;position:absolute}.ck.ck-tooltip{display:none;opacity:0;visibility:hidden;z-index:var(--ck-z-modal)}.ck.ck-tooltip .ck-tooltip__text{display:inline-block}.ck.ck-tooltip .ck-tooltip__text:after{content:"";height:0;width:0}:root{--ck-tooltip-arrow-size:5px}.ck.ck-tooltip{left:50%;top:0;transition:opacity .2s ease-in-out .2s}.ck.ck-tooltip .ck-tooltip__text{border-radius:0}.ck-rounded-corners .ck.ck-tooltip .ck-tooltip__text,.ck.ck-tooltip .ck-tooltip__text.ck-rounded-corners{border-radius:var(--ck-border-radius)}.ck.ck-tooltip .ck-tooltip__text{background:var(--ck-color-tooltip-background);color:var(--ck-color-tooltip-text);font-size:.9em;left:-50%;line-height:1.5;padding:var(--ck-spacing-small) var(--ck-spacing-medium);position:relative}.ck.ck-tooltip .ck-tooltip__text:after{border-style:solid;left:50%;transition:opacity .2s ease-in-out .2s}.ck.ck-tooltip.ck-tooltip_s,.ck.ck-tooltip.ck-tooltip_se,.ck.ck-tooltip.ck-tooltip_sw{bottom:calc(var(--ck-tooltip-arrow-size)*-1);transform:translateY(100%)}.ck.ck-tooltip.ck-tooltip_s .ck-tooltip__text:after,.ck.ck-tooltip.ck-tooltip_se .ck-tooltip__text:after,.ck.ck-tooltip.ck-tooltip_sw .ck-tooltip__text:after{border-color:transparent transparent var(--ck-color-tooltip-background) transparent;border-width:0 var(--ck-tooltip-arrow-size) var(--ck-tooltip-arrow-size) var(--ck-tooltip-arrow-size);top:calc(var(--ck-tooltip-arrow-size)*-1 + 1px);transform:translateX(-50%)}.ck.ck-tooltip.ck-tooltip_sw{left:auto;right:50%}.ck.ck-tooltip.ck-tooltip_sw .ck-tooltip__text{left:auto;right:calc(var(--ck-tooltip-arrow-size)*-2)}.ck.ck-tooltip.ck-tooltip_sw .ck-tooltip__text:after{left:auto;right:0}.ck.ck-tooltip.ck-tooltip_se{left:50%;right:auto}.ck.ck-tooltip.ck-tooltip_se .ck-tooltip__text{left:calc(var(--ck-tooltip-arrow-size)*-2);right:auto}.ck.ck-tooltip.ck-tooltip_se .ck-tooltip__text:after{left:0;right:auto;transform:translateX(50%)}.ck.ck-tooltip.ck-tooltip_n{top:calc(var(--ck-tooltip-arrow-size)*-1);transform:translateY(-100%)}.ck.ck-tooltip.ck-tooltip_n .ck-tooltip__text:after{border-color:var(--ck-color-tooltip-background) transparent transparent transparent;border-width:var(--ck-tooltip-arrow-size) var(--ck-tooltip-arrow-size) 0 var(--ck-tooltip-arrow-size);bottom:calc(var(--ck-tooltip-arrow-size)*-1);transform:translateX(-50%)}.ck.ck-tooltip.ck-tooltip_e{left:calc(100% + var(--ck-tooltip-arrow-size));top:50%}.ck.ck-tooltip.ck-tooltip_e .ck-tooltip__text{left:0;transform:translateY(-50%)}.ck.ck-tooltip.ck-tooltip_e .ck-tooltip__text:after{border-color:transparent var(--ck-color-tooltip-background) transparent transparent;border-width:var(--ck-tooltip-arrow-size) var(--ck-tooltip-arrow-size) var(--ck-tooltip-arrow-size) 0;left:calc(var(--ck-tooltip-arrow-size)*-1);top:calc(50% - var(--ck-tooltip-arrow-size)*1)}.ck.ck-tooltip.ck-tooltip_w{left:auto;right:calc(100% + var(--ck-tooltip-arrow-size));top:50%}.ck.ck-tooltip.ck-tooltip_w .ck-tooltip__text{left:0;transform:translateY(-50%)}.ck.ck-tooltip.ck-tooltip_w .ck-tooltip__text:after{border-color:transparent transparent transparent var(--ck-color-tooltip-background);border-width:var(--ck-tooltip-arrow-size) 0 var(--ck-tooltip-arrow-size) var(--ck-tooltip-arrow-size);left:100%;top:calc(50% - var(--ck-tooltip-arrow-size)*1)}',"",{version:3,sources:["webpack://./node_modules/@ckeditor/ckeditor5-ui/theme/components/tooltip/tooltip.css","webpack://./node_modules/@ckeditor/ckeditor5-theme-lark/theme/ckeditor5-ui/components/tooltip/tooltip.css","webpack://./node_modules/@ckeditor/ckeditor5-theme-lark/theme/mixins/_rounded.css"],names:[],mappings:"AAKA,sDASC,kCAAmC,CAJnC,mBAAoB,CAHpB,iBAQD,CAEA,eAIC,YAAa,CADb,SAAU,CADV,iBAAkB,CAGlB,yBAWD,CATC,iCACC,oBAOD,CALC,uCACC,UAAW,CAEX,QAAS,CADT,OAED,CCxBF,MACC,2BACD,CAEA,eACC,QAAS,CAMT,KAAM,CAON,sCAwKD,CAtKC,iCChBA,eDqCA,CArBA,yGCZC,qCDiCD,CArBA,iCAOC,6CAA8C,CAF9C,kCAAmC,CAFnC,cAAe,CAMf,SAAU,CALV,eAAgB,CAEhB,wDAAyD,CAEzD,iBAaD,CAVC,uCAOC,kBAAmB,CACnB,QAAS,CAFT,sCAGD,CAYD,sFAGC,4CAA+C,CAC/C,0BASD,CAPC,8JAIC,mFAAoF,CACpF,qGAAsG,CAHtG,+CAAkD,CAClD,0BAGD,CAaD,6BAEC,SAAU,CADV,SAYD,CATC,+CACC,SAAU,CACV,2CACD,CAEA,qDACC,SAAU,CACV,OACD,CAYD,6BACC,QAAS,CACT,UAYD,CAVC,+CAEC,0CAA8C,CAD9C,UAED,CAEA,qDAEC,MAAO,CADP,UAAW,CAEX,yBACD,CAYD,4BACC,yCAA4C,CAC5C,2BAQD,CANC,oDAGC,mFAAoF,CACpF,qGAAsG,CAHtG,4CAA+C,CAC/C,0BAGD,CAUD,4BACC,8CAA+C,CAC/C,OAaD,CAXC,8CACC,MAAO,CACP,0BAQD,CANC,oDAGC,mFAAoF,CACpF,qGAAsG,CAHtG,0CAA6C,CAC7C,8CAGD,CAWF,4BAEC,SAAU,CADV,+CAAgD,CAEhD,OAaD,CAXC,8CACC,MAAO,CACP,0BAQD,CANC,oDAGC,mFAAoF,CACpF,qGAAsG,CAHtG,SAAU,CACV,8CAGD",sourcesContent:['/*\n * Copyright (c) 2003-2022, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n.ck.ck-tooltip,\n.ck.ck-tooltip .ck-tooltip__text::after {\n\tposition: absolute;\n\n\t/* Without this, hovering the tooltip could keep it visible. */\n\tpointer-events: none;\n\n\t/* This is to get rid of flickering when transitioning opacity in Chrome.\n\tIt\'s weird but it works. */\n\t-webkit-backface-visibility: hidden;\n}\n\n.ck.ck-tooltip {\n\t/* Tooltip is hidden by default. */\n\tvisibility: hidden;\n\topacity: 0;\n\tdisplay: none;\n\tz-index: var(--ck-z-modal);\n\n\t& .ck-tooltip__text {\n\t\tdisplay: inline-block;\n\n\t\t&::after {\n\t\t\tcontent: "";\n\t\t\twidth: 0;\n\t\t\theight: 0;\n\t\t}\n\t}\n}\n','/*\n * Copyright (c) 2003-2022, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n@import "../../../mixins/_rounded.css";\n\n:root {\n\t--ck-tooltip-arrow-size: 5px;\n}\n\n.ck.ck-tooltip {\n\tleft: 50%;\n\n\t/*\n\t * Prevent blurry tooltips in LoDPI environments.\n\t * See https://github.com/ckeditor/ckeditor5/issues/1802.\n\t */\n\ttop: 0;\n\n\t/*\n\t * For the transition to work, the tooltip must be controlled\n\t * using visibility+opacity. A delay prevents a "tooltip avalanche"\n\t * i.e. when scanning the toolbar with mouse cursor.\n\t */\n\ttransition: opacity .2s ease-in-out .2s;\n\n\t& .ck-tooltip__text {\n\t\t@mixin ck-rounded-corners;\n\n\t\tfont-size: .9em;\n\t\tline-height: 1.5;\n\t\tcolor: var(--ck-color-tooltip-text);\n\t\tpadding: var(--ck-spacing-small) var(--ck-spacing-medium);\n\t\tbackground: var(--ck-color-tooltip-background);\n\t\tposition: relative;\n\t\tleft: -50%;\n\n\t\t&::after {\n\t\t\t/*\n\t\t\t * For the transition to work, the tooltip must be controlled\n\t\t\t * using visibility+opacity. A delay prevents a "tooltip avalanche"\n\t\t\t * i.e. when scanning the toolbar with mouse cursor.\n\t\t\t */\n\t\t\ttransition: opacity .2s ease-in-out .2s;\n\t\t\tborder-style: solid;\n\t\t\tleft: 50%;\n\t\t}\n\t}\n\n\t/**\n\t * A class that displays the tooltip south of the element.\n\t *\n\t * [element]\n\t * ^\n\t * +-----------+\n\t * | Tooltip |\n\t * +-----------+\n\t */\n\t&.ck-tooltip_s,\n\t&.ck-tooltip_sw,\n\t&.ck-tooltip_se {\n\t\tbottom: calc(-1 * var(--ck-tooltip-arrow-size));\n\t\ttransform: translateY( 100% );\n\n\t\t& .ck-tooltip__text::after {\n\t\t\t/* 1px addresses gliches in rendering causing gap between the triangle and the text */\n\t\t\ttop: calc(-1 * var(--ck-tooltip-arrow-size) + 1px);\n\t\t\ttransform: translateX( -50% );\n\t\t\tborder-color: transparent transparent var(--ck-color-tooltip-background) transparent;\n\t\t\tborder-width: 0 var(--ck-tooltip-arrow-size) var(--ck-tooltip-arrow-size) var(--ck-tooltip-arrow-size);\n\t\t}\n\t}\n\n\t/**\n\t * A class that displays the tooltip south-west of the element.\n\t *\n\t * [element]\n\t * ^\n\t * +-----------+\n\t * | Tooltip |\n\t * +-----------+\n\t */\n\n\t&.ck-tooltip_sw {\n\t\tright: 50%;\n\t\tleft: auto;\n\n\t\t& .ck-tooltip__text {\n\t\t\tleft: auto;\n\t\t\tright: calc( -2 * var(--ck-tooltip-arrow-size));\n\t\t}\n\n\t\t& .ck-tooltip__text::after {\n\t\t\tleft: auto;\n\t\t\tright: 0;\n\t\t}\n\t}\n\n\t/**\n\t * A class that displays the tooltip south-east of the element.\n\t *\n\t * [element]\n\t * ^\n\t * +-----------+\n\t * | Tooltip |\n\t * +-----------+\n\t */\n\t&.ck-tooltip_se {\n\t\tleft: 50%;\n\t\tright: auto;\n\n\t\t& .ck-tooltip__text {\n\t\t\tright: auto;\n\t\t\tleft: calc( -2 * var(--ck-tooltip-arrow-size));\n\t\t}\n\n\t\t& .ck-tooltip__text::after {\n\t\t\tright: auto;\n\t\t\tleft: 0;\n\t\t\ttransform: translateX( 50% );\n\t\t}\n\t}\n\n\t/**\n\t * A class that displays the tooltip north of the element.\n\t *\n\t * +-----------+\n\t * | Tooltip |\n\t * +-----------+\n\t * V\n\t * [element]\n\t */\n\t&.ck-tooltip_n {\n\t\ttop: calc(-1 * var(--ck-tooltip-arrow-size));\n\t\ttransform: translateY( -100% );\n\n\t\t& .ck-tooltip__text::after {\n\t\t\tbottom: calc(-1 * var(--ck-tooltip-arrow-size));\n\t\t\ttransform: translateX( -50% );\n\t\t\tborder-color: var(--ck-color-tooltip-background) transparent transparent transparent;\n\t\t\tborder-width: var(--ck-tooltip-arrow-size) var(--ck-tooltip-arrow-size) 0 var(--ck-tooltip-arrow-size);\n\t\t}\n\t}\n\n\t/**\n\t * A class that displays the tooltip east of the element.\n\t *\n\t * +----------+\n\t * [element] < | east |\n\t * +----------+\n\t */\n\t&.ck-tooltip_e {\n\t\tleft: calc(100% + var(--ck-tooltip-arrow-size));\n\t\ttop: 50%;\n\n\t\t& .ck-tooltip__text {\n\t\t\tleft: 0;\n\t\t\ttransform: translateY( -50% );\n\n\t\t\t&::after {\n\t\t\t\tleft: calc(-1 * var(--ck-tooltip-arrow-size));\n\t\t\t\ttop: calc(50% - 1 * var(--ck-tooltip-arrow-size));\n\t\t\t\tborder-color: transparent var(--ck-color-tooltip-background) transparent transparent;\n\t\t\t\tborder-width: var(--ck-tooltip-arrow-size) var(--ck-tooltip-arrow-size) var(--ck-tooltip-arrow-size) 0;\n\t\t\t}\n\t\t}\n\t}\n\n\t/**\n\t * A class that displays the tooltip west of the element.\n\t *\n\t * +----------+\n\t * | west | > [element]\n\t * +----------+\n\t */\n\t&.ck-tooltip_w {\n\t\tright: calc(100% + var(--ck-tooltip-arrow-size));\n\t\tleft: auto;\n\t\ttop: 50%;\n\n\t\t& .ck-tooltip__text {\n\t\t\tleft: 0;\n\t\t\ttransform: translateY( -50% );\n\n\t\t\t&::after {\n\t\t\t\tleft: 100%;\n\t\t\t\ttop: calc(50% - 1 * var(--ck-tooltip-arrow-size));\n\t\t\t\tborder-color: transparent transparent transparent var(--ck-color-tooltip-background);\n\t\t\t\tborder-width: var(--ck-tooltip-arrow-size) 0 var(--ck-tooltip-arrow-size) var(--ck-tooltip-arrow-size);\n\t\t\t}\n\t\t}\n\t}\n}\n',"/*\n * Copyright (c) 2003-2022, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n/**\n * Implements rounded corner interface for .ck-rounded-corners class.\n *\n * @see $ck-border-radius\n */\n@define-mixin ck-rounded-corners {\n\tborder-radius: 0;\n\n\t@nest .ck-rounded-corners &,\n\t&.ck-rounded-corners {\n\t\tborder-radius: var(--ck-border-radius);\n\t\t@mixin-content;\n\t}\n}\n"],sourceRoot:""}]);const a=s},6150:(t,e,n)=>{"use strict";n.d(e,{Z:()=>a});var o=n(4015),i=n.n(o),r=n(3645),s=n.n(r)()(i());s.push([t.id,".ck-hidden{display:none!important}.ck-reset_all :not(.ck-reset_all-excluded *),.ck.ck-reset,.ck.ck-reset_all{box-sizing:border-box;height:auto;position:static;width:auto}:root{--ck-z-default:1;--ck-z-modal:calc(var(--ck-z-default) + 999)}.ck-transitions-disabled,.ck-transitions-disabled *{transition:none!important}:root{--ck-color-base-foreground:#fafafa;--ck-color-base-background:#fff;--ck-color-base-border:#c4c4c4;--ck-color-base-action:#61b045;--ck-color-base-focus:#6cb5f9;--ck-color-base-text:#333;--ck-color-base-active:#198cf0;--ck-color-base-active-focus:#0e7fe1;--ck-color-base-error:#db3700;--ck-color-focus-border-coordinates:208,79%,51%;--ck-color-focus-border:hsl(var(--ck-color-focus-border-coordinates));--ck-color-focus-outer-shadow:#bcdefb;--ck-color-focus-disabled-shadow:rgba(119,186,248,.3);--ck-color-focus-error-shadow:rgba(255,64,31,.3);--ck-color-text:var(--ck-color-base-text);--ck-color-shadow-drop:rgba(0,0,0,.15);--ck-color-shadow-drop-active:rgba(0,0,0,.2);--ck-color-shadow-inner:rgba(0,0,0,.1);--ck-color-button-default-background:transparent;--ck-color-button-default-hover-background:#e6e6e6;--ck-color-button-default-active-background:#d9d9d9;--ck-color-button-default-active-shadow:#bfbfbf;--ck-color-button-default-disabled-background:transparent;--ck-color-button-on-background:#dedede;--ck-color-button-on-hover-background:#c4c4c4;--ck-color-button-on-active-background:#bababa;--ck-color-button-on-active-shadow:#a1a1a1;--ck-color-button-on-disabled-background:#dedede;--ck-color-button-action-background:var(--ck-color-base-action);--ck-color-button-action-hover-background:#579e3d;--ck-color-button-action-active-background:#53973b;--ck-color-button-action-active-shadow:#498433;--ck-color-button-action-disabled-background:#7ec365;--ck-color-button-action-text:var(--ck-color-base-background);--ck-color-button-save:#008a00;--ck-color-button-cancel:#db3700;--ck-color-switch-button-off-background:#b0b0b0;--ck-color-switch-button-off-hover-background:#a3a3a3;--ck-color-switch-button-on-background:var(--ck-color-button-action-background);--ck-color-switch-button-on-hover-background:#579e3d;--ck-color-switch-button-inner-background:var(--ck-color-base-background);--ck-color-switch-button-inner-shadow:rgba(0,0,0,.1);--ck-color-dropdown-panel-background:var(--ck-color-base-background);--ck-color-dropdown-panel-border:var(--ck-color-base-border);--ck-color-input-background:var(--ck-color-base-background);--ck-color-input-border:#c7c7c7;--ck-color-input-error-border:var(--ck-color-base-error);--ck-color-input-text:var(--ck-color-base-text);--ck-color-input-disabled-background:#f2f2f2;--ck-color-input-disabled-border:#c7c7c7;--ck-color-input-disabled-text:#757575;--ck-color-list-background:var(--ck-color-base-background);--ck-color-list-button-hover-background:var(--ck-color-button-default-hover-background);--ck-color-list-button-on-background:var(--ck-color-base-active);--ck-color-list-button-on-background-focus:var(--ck-color-base-active-focus);--ck-color-list-button-on-text:var(--ck-color-base-background);--ck-color-panel-background:var(--ck-color-base-background);--ck-color-panel-border:var(--ck-color-base-border);--ck-color-toolbar-background:var(--ck-color-base-foreground);--ck-color-toolbar-border:var(--ck-color-base-border);--ck-color-tooltip-background:var(--ck-color-base-text);--ck-color-tooltip-text:var(--ck-color-base-background);--ck-color-engine-placeholder-text:#707070;--ck-color-upload-bar-background:#6cb5f9;--ck-color-link-default:#0000f0;--ck-color-link-selected-background:rgba(31,176,255,.1);--ck-color-link-fake-selection:rgba(31,176,255,.3);--ck-disabled-opacity:.5;--ck-focus-outer-shadow-geometry:0 0 0 3px;--ck-focus-outer-shadow:var(--ck-focus-outer-shadow-geometry) var(--ck-color-focus-outer-shadow);--ck-focus-disabled-outer-shadow:var(--ck-focus-outer-shadow-geometry) var(--ck-color-focus-disabled-shadow);--ck-focus-error-outer-shadow:var(--ck-focus-outer-shadow-geometry) var(--ck-color-focus-error-shadow);--ck-focus-ring:1px solid var(--ck-color-focus-border);--ck-font-size-base:13px;--ck-line-height-base:1.84615;--ck-font-face:Helvetica,Arial,Tahoma,Verdana,Sans-Serif;--ck-font-size-tiny:0.7em;--ck-font-size-small:0.75em;--ck-font-size-normal:1em;--ck-font-size-big:1.4em;--ck-font-size-large:1.8em;--ck-ui-component-min-height:2.3em}.ck-reset_all :not(.ck-reset_all-excluded *),.ck.ck-reset,.ck.ck-reset_all{word-wrap:break-word;background:transparent;border:0;margin:0;padding:0;text-decoration:none;transition:none;vertical-align:middle}.ck-reset_all :not(.ck-reset_all-excluded *),.ck.ck-reset_all{border-collapse:collapse;color:var(--ck-color-text);cursor:auto;float:none;font:normal normal normal var(--ck-font-size-base)/var(--ck-line-height-base) var(--ck-font-face);text-align:left;white-space:nowrap}.ck-reset_all .ck-rtl :not(.ck-reset_all-excluded *){text-align:right}.ck-reset_all iframe:not(.ck-reset_all-excluded *){vertical-align:inherit}.ck-reset_all textarea:not(.ck-reset_all-excluded *){white-space:pre-wrap}.ck-reset_all input[type=password]:not(.ck-reset_all-excluded *),.ck-reset_all input[type=text]:not(.ck-reset_all-excluded *),.ck-reset_all textarea:not(.ck-reset_all-excluded *){cursor:text}.ck-reset_all input[type=password][disabled]:not(.ck-reset_all-excluded *),.ck-reset_all input[type=text][disabled]:not(.ck-reset_all-excluded *),.ck-reset_all textarea[disabled]:not(.ck-reset_all-excluded *){cursor:default}.ck-reset_all fieldset:not(.ck-reset_all-excluded *){border:2px groove #dfdee3;padding:10px}.ck-reset_all button:not(.ck-reset_all-excluded *)::-moz-focus-inner{border:0;padding:0}.ck[dir=rtl],.ck[dir=rtl] .ck{text-align:right}:root{--ck-border-radius:2px;--ck-inner-shadow:2px 2px 3px var(--ck-color-shadow-inner) inset;--ck-drop-shadow:0 1px 2px 1px var(--ck-color-shadow-drop);--ck-drop-shadow-active:0 3px 6px 1px var(--ck-color-shadow-drop-active);--ck-spacing-unit:0.6em;--ck-spacing-large:calc(var(--ck-spacing-unit)*1.5);--ck-spacing-standard:var(--ck-spacing-unit);--ck-spacing-medium:calc(var(--ck-spacing-unit)*0.8);--ck-spacing-small:calc(var(--ck-spacing-unit)*0.5);--ck-spacing-tiny:calc(var(--ck-spacing-unit)*0.3);--ck-spacing-extra-tiny:calc(var(--ck-spacing-unit)*0.16)}","",{version:3,sources:["webpack://./node_modules/@ckeditor/ckeditor5-ui/theme/globals/_hidden.css","webpack://./node_modules/@ckeditor/ckeditor5-ui/theme/globals/_reset.css","webpack://./node_modules/@ckeditor/ckeditor5-ui/theme/globals/_zindex.css","webpack://./node_modules/@ckeditor/ckeditor5-ui/theme/globals/_transition.css","webpack://./node_modules/@ckeditor/ckeditor5-theme-lark/theme/ckeditor5-ui/globals/_colors.css","webpack://./node_modules/@ckeditor/ckeditor5-theme-lark/theme/ckeditor5-ui/globals/_disabled.css","webpack://./node_modules/@ckeditor/ckeditor5-theme-lark/theme/ckeditor5-ui/globals/_focus.css","webpack://./node_modules/@ckeditor/ckeditor5-theme-lark/theme/ckeditor5-ui/globals/_fonts.css","webpack://./node_modules/@ckeditor/ckeditor5-theme-lark/theme/ckeditor5-ui/globals/_reset.css","webpack://./node_modules/@ckeditor/ckeditor5-theme-lark/theme/ckeditor5-ui/globals/_rounded.css","webpack://./node_modules/@ckeditor/ckeditor5-theme-lark/theme/ckeditor5-ui/globals/_shadow.css","webpack://./node_modules/@ckeditor/ckeditor5-theme-lark/theme/ckeditor5-ui/globals/_spacing.css"],names:[],mappings:"AAQA,WAGC,sBACD,CCPA,2EAGC,qBAAsB,CAEtB,WAAY,CACZ,eAAgB,CAFhB,UAGD,CCPA,MACC,gBAAiB,CACjB,4CACD,CCAA,oDAEC,yBACD,CCNA,MACC,kCAAmD,CACnD,+BAAoD,CACpD,8BAAgD,CAChD,8BAAmD,CACnD,6BAAmD,CACnD,yBAA+C,CAC/C,8BAAmD,CACnD,oCAAuD,CACvD,6BAAkD,CAIlD,+CAAwD,CACxD,qEAA+E,CAC/E,qCAAwD,CACxD,qDAA8D,CAC9D,gDAAyD,CACzD,yCAAqD,CACrD,sCAAsD,CACtD,4CAA0D,CAC1D,sCAAsD,CAItD,gDAAuD,CACvD,kDAA+D,CAC/D,mDAAgE,CAChE,+CAA6D,CAC7D,yDAA8D,CAE9D,uCAAuD,CACvD,6CAA4D,CAC5D,8CAA4D,CAC5D,0CAAyD,CACzD,gDAA8D,CAE9D,+DAAsE,CACtE,iDAAkE,CAClE,kDAAkE,CAClE,8CAA+D,CAC/D,oDAAoE,CACpE,6DAAsE,CAEtE,8BAAoD,CACpD,gCAAqD,CAErD,+CAA4D,CAC5D,qDAAiE,CACjE,+EAAqF,CACrF,oDAAmE,CACnE,yEAA8E,CAC9E,oDAAgE,CAIhE,oEAA2E,CAC3E,4DAAoE,CAIpE,2DAAoE,CACpE,+BAAiD,CACjD,wDAAgE,CAChE,+CAA0D,CAC1D,4CAA2D,CAC3D,wCAAwD,CACxD,sCAAsD,CAItD,0DAAmE,CACnE,uFAA6F,CAC7F,gEAAuE,CACvE,4EAAiF,CACjF,8DAAsE,CAItE,2DAAoE,CACpE,mDAA6D,CAI7D,6DAAsE,CACtE,qDAA+D,CAI/D,uDAAgE,CAChE,uDAAiE,CAIjE,0CAAyD,CAIzD,wCAA2D,CAI3D,+BAAoD,CACpD,uDAAmE,CACnE,kDAAgE,CCpGhE,wBAAyB,CCAzB,0CAA2C,CAK3C,gGAAiG,CAKjG,4GAA6G,CAK7G,sGAAuG,CAKvG,sDAAuD,CCvBvD,wBAAyB,CACzB,6BAA8B,CAC9B,wDAA6D,CAE7D,yBAA0B,CAC1B,2BAA4B,CAC5B,yBAA0B,CAC1B,wBAAyB,CACzB,0BAA2B,CCJ3B,kCJoGD,CI9FA,2EAaC,oBAAqB,CANrB,sBAAuB,CADvB,QAAS,CAFT,QAAS,CACT,SAAU,CAGV,oBAAqB,CAErB,eAAgB,CADhB,qBAKD,CAKA,8DAGC,wBAAyB,CAEzB,0BAA2B,CAG3B,WAAY,CACZ,UAAW,CALX,iGAAkG,CAElG,eAAgB,CAChB,kBAGD,CAGC,qDACC,gBACD,CAEA,mDAEC,sBACD,CAEA,qDACC,oBACD,CAEA,mLAGC,WACD,CAEA,iNAGC,cACD,CAEA,qDAEC,yBAAoC,CADpC,YAED,CAEA,qEAGC,QAAQ,CADR,SAED,CAMD,8BAEC,gBACD,CCnFA,MACC,sBAAuB,CCAvB,gEAAiE,CAKjE,0DAA2D,CAK3D,wEAAyE,CCbzE,uBAA8B,CAC9B,mDAA2D,CAC3D,4CAAkD,CAClD,oDAA4D,CAC5D,mDAA2D,CAC3D,kDAA2D,CAC3D,yDFFD",sourcesContent:["/*\n * Copyright (c) 2003-2022, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n/**\n * A class which hides an element in DOM.\n */\n.ck-hidden {\n\t/* Override selector specificity. Otherwise, all elements with some display\n\tstyle defined will override this one, which is not a desired result. */\n\tdisplay: none !important;\n}\n","/*\n * Copyright (c) 2003-2022, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n.ck.ck-reset,\n.ck.ck-reset_all,\n.ck-reset_all *:not(.ck-reset_all-excluded *) {\n\tbox-sizing: border-box;\n\twidth: auto;\n\theight: auto;\n\tposition: static;\n}\n","/*\n * Copyright (c) 2003-2022, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n:root {\n\t--ck-z-default: 1;\n\t--ck-z-modal: calc( var(--ck-z-default) + 999 );\n}\n","/*\n * Copyright (c) 2003-2022, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n/**\n * A class that disables all transitions of the element and its children.\n */\n.ck-transitions-disabled,\n.ck-transitions-disabled * {\n\ttransition: none !important;\n}\n","/*\n * Copyright (c) 2003-2022, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n:root {\n\t--ck-color-base-foreground: \t\t\t\t\t\t\t\thsl(0, 0%, 98%);\n\t--ck-color-base-background: \t\t\t\t\t\t\t\thsl(0, 0%, 100%);\n\t--ck-color-base-border: \t\t\t\t\t\t\t\t\thsl(0, 0%, 77%);\n\t--ck-color-base-action: \t\t\t\t\t\t\t\t\thsl(104, 44%, 48%);\n\t--ck-color-base-focus: \t\t\t\t\t\t\t\t\t\thsl(209, 92%, 70%);\n\t--ck-color-base-text: \t\t\t\t\t\t\t\t\t\thsl(0, 0%, 20%);\n\t--ck-color-base-active: \t\t\t\t\t\t\t\t\thsl(208, 88%, 52%);\n\t--ck-color-base-active-focus:\t\t\t\t\t\t\t\thsl(208, 88%, 47%);\n\t--ck-color-base-error:\t\t\t\t\t\t\t\t\t\thsl(15, 100%, 43%);\n\n\t/* -- Generic colors ------------------------------------------------------------------------ */\n\n\t--ck-color-focus-border-coordinates: \t\t\t\t\t\t208, 79%, 51%;\n\t--ck-color-focus-border: \t\t\t\t\t\t\t\t\thsl(var(--ck-color-focus-border-coordinates));\n\t--ck-color-focus-outer-shadow:\t\t\t\t\t\t\t\thsl(207, 89%, 86%);\n\t--ck-color-focus-disabled-shadow:\t\t\t\t\t\t\thsla(209, 90%, 72%,.3);\n\t--ck-color-focus-error-shadow:\t\t\t\t\t\t\t\thsla(9,100%,56%,.3);\n\t--ck-color-text: \t\t\t\t\t\t\t\t\t\t\tvar(--ck-color-base-text);\n\t--ck-color-shadow-drop: \t\t\t\t\t\t\t\t\thsla(0, 0%, 0%, 0.15);\n\t--ck-color-shadow-drop-active:\t\t\t\t\t\t\t\thsla(0, 0%, 0%, 0.2);\n\t--ck-color-shadow-inner: \t\t\t\t\t\t\t\t\thsla(0, 0%, 0%, 0.1);\n\n\t/* -- Buttons ------------------------------------------------------------------------------- */\n\n\t--ck-color-button-default-background: \t\t\t\t\t\ttransparent;\n\t--ck-color-button-default-hover-background: \t\t\t\thsl(0, 0%, 90%);\n\t--ck-color-button-default-active-background: \t\t\t\thsl(0, 0%, 85%);\n\t--ck-color-button-default-active-shadow: \t\t\t\t\thsl(0, 0%, 75%);\n\t--ck-color-button-default-disabled-background: \t\t\t\ttransparent;\n\n\t--ck-color-button-on-background: \t\t\t\t\t\t\thsl(0, 0%, 87%);\n\t--ck-color-button-on-hover-background: \t\t\t\t\t\thsl(0, 0%, 77%);\n\t--ck-color-button-on-active-background: \t\t\t\t\thsl(0, 0%, 73%);\n\t--ck-color-button-on-active-shadow: \t\t\t\t\t\thsl(0, 0%, 63%);\n\t--ck-color-button-on-disabled-background: \t\t\t\t\thsl(0, 0%, 87%);\n\n\t--ck-color-button-action-background: \t\t\t\t\t\tvar(--ck-color-base-action);\n\t--ck-color-button-action-hover-background: \t\t\t\t\thsl(104, 44%, 43%);\n\t--ck-color-button-action-active-background: \t\t\t\thsl(104, 44%, 41%);\n\t--ck-color-button-action-active-shadow: \t\t\t\t\thsl(104, 44%, 36%);\n\t--ck-color-button-action-disabled-background: \t\t\t\thsl(104, 44%, 58%);\n\t--ck-color-button-action-text: \t\t\t\t\t\t\t\tvar(--ck-color-base-background);\n\n\t--ck-color-button-save: \t\t\t\t\t\t\t\t\thsl(120, 100%, 27%);\n\t--ck-color-button-cancel: \t\t\t\t\t\t\t\t\thsl(15, 100%, 43%);\n\n\t--ck-color-switch-button-off-background:\t\t\t\t\thsl(0, 0%, 69%);\n\t--ck-color-switch-button-off-hover-background:\t\t\t\thsl(0, 0%, 64%);\n\t--ck-color-switch-button-on-background:\t\t\t\t\t\tvar(--ck-color-button-action-background);\n\t--ck-color-switch-button-on-hover-background:\t\t\t\thsl(104, 44%, 43%);\n\t--ck-color-switch-button-inner-background:\t\t\t\t\tvar(--ck-color-base-background);\n\t--ck-color-switch-button-inner-shadow:\t\t\t\t\t\thsla(0, 0%, 0%, 0.1);\n\n\t/* -- Dropdown ------------------------------------------------------------------------------ */\n\n\t--ck-color-dropdown-panel-background: \t\t\t\t\t\tvar(--ck-color-base-background);\n\t--ck-color-dropdown-panel-border: \t\t\t\t\t\t\tvar(--ck-color-base-border);\n\n\t/* -- Input --------------------------------------------------------------------------------- */\n\n\t--ck-color-input-background: \t\t\t\t\t\t\t\tvar(--ck-color-base-background);\n\t--ck-color-input-border: \t\t\t\t\t\t\t\t\thsl(0, 0%, 78%);\n\t--ck-color-input-error-border:\t\t\t\t\t\t\t\tvar(--ck-color-base-error);\n\t--ck-color-input-text: \t\t\t\t\t\t\t\t\t\tvar(--ck-color-base-text);\n\t--ck-color-input-disabled-background: \t\t\t\t\t\thsl(0, 0%, 95%);\n\t--ck-color-input-disabled-border: \t\t\t\t\t\t\thsl(0, 0%, 78%);\n\t--ck-color-input-disabled-text: \t\t\t\t\t\t\thsl(0, 0%, 46%);\n\n\t/* -- List ---------------------------------------------------------------------------------- */\n\n\t--ck-color-list-background: \t\t\t\t\t\t\t\tvar(--ck-color-base-background);\n\t--ck-color-list-button-hover-background: \t\t\t\t\tvar(--ck-color-button-default-hover-background);\n\t--ck-color-list-button-on-background: \t\t\t\t\t\tvar(--ck-color-base-active);\n\t--ck-color-list-button-on-background-focus: \t\t\t\tvar(--ck-color-base-active-focus);\n\t--ck-color-list-button-on-text:\t\t\t\t\t\t\t\tvar(--ck-color-base-background);\n\n\t/* -- Panel --------------------------------------------------------------------------------- */\n\n\t--ck-color-panel-background: \t\t\t\t\t\t\t\tvar(--ck-color-base-background);\n\t--ck-color-panel-border: \t\t\t\t\t\t\t\t\tvar(--ck-color-base-border);\n\n\t/* -- Toolbar ------------------------------------------------------------------------------- */\n\n\t--ck-color-toolbar-background: \t\t\t\t\t\t\t\tvar(--ck-color-base-foreground);\n\t--ck-color-toolbar-border: \t\t\t\t\t\t\t\t\tvar(--ck-color-base-border);\n\n\t/* -- Tooltip ------------------------------------------------------------------------------- */\n\n\t--ck-color-tooltip-background: \t\t\t\t\t\t\t\tvar(--ck-color-base-text);\n\t--ck-color-tooltip-text: \t\t\t\t\t\t\t\t\tvar(--ck-color-base-background);\n\n\t/* -- Engine -------------------------------------------------------------------------------- */\n\n\t--ck-color-engine-placeholder-text: \t\t\t\t\t\thsl(0, 0%, 44%);\n\n\t/* -- Upload -------------------------------------------------------------------------------- */\n\n\t--ck-color-upload-bar-background:\t\t \t\t\t\t\thsl(209, 92%, 70%);\n\n\t/* -- Link -------------------------------------------------------------------------------- */\n\n\t--ck-color-link-default:\t\t\t\t\t\t\t\t\thsl(240, 100%, 47%);\n\t--ck-color-link-selected-background:\t\t\t\t\t\thsla(201, 100%, 56%, 0.1);\n\t--ck-color-link-fake-selection:\t\t\t\t\t\t\t\thsla(201, 100%, 56%, 0.3);\n}\n","/*\n * Copyright (c) 2003-2022, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n:root {\n\t/**\n\t * An opacity value of disabled UI item.\n\t */\n\t--ck-disabled-opacity: .5;\n}\n","/*\n * Copyright (c) 2003-2022, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n:root {\n\t/**\n\t * The geometry of the of focused element's outer shadow.\n\t */\n\t--ck-focus-outer-shadow-geometry: 0 0 0 3px;\n\n\t/**\n\t * A visual style of focused element's outer shadow.\n\t */\n\t--ck-focus-outer-shadow: var(--ck-focus-outer-shadow-geometry) var(--ck-color-focus-outer-shadow);\n\n\t/**\n\t * A visual style of focused element's outer shadow (when disabled).\n\t */\n\t--ck-focus-disabled-outer-shadow: var(--ck-focus-outer-shadow-geometry) var(--ck-color-focus-disabled-shadow);\n\n\t/**\n\t * A visual style of focused element's outer shadow (when has errors).\n\t */\n\t--ck-focus-error-outer-shadow: var(--ck-focus-outer-shadow-geometry) var(--ck-color-focus-error-shadow);\n\n\t/**\n\t * A visual style of focused element's border or outline.\n\t */\n\t--ck-focus-ring: 1px solid var(--ck-color-focus-border);\n}\n","/*\n * Copyright (c) 2003-2022, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n:root {\n\t--ck-font-size-base: 13px;\n\t--ck-line-height-base: 1.84615;\n\t--ck-font-face: Helvetica, Arial, Tahoma, Verdana, Sans-Serif;\n\n\t--ck-font-size-tiny: 0.7em;\n\t--ck-font-size-small: 0.75em;\n\t--ck-font-size-normal: 1em;\n\t--ck-font-size-big: 1.4em;\n\t--ck-font-size-large: 1.8em;\n}\n",'/*\n * Copyright (c) 2003-2022, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n:root {\n\t/* This is super-important. This is **manually** adjusted so a button without an icon\n\tis never smaller than a button with icon, additionally making sure that text-less buttons\n\tare perfect squares. The value is also shared by other components which should stay "in-line"\n\twith buttons. */\n\t--ck-ui-component-min-height: 2.3em;\n}\n\n/**\n * Resets an element, ignoring its children.\n */\n.ck.ck-reset,\n.ck.ck-reset_all,\n.ck-reset_all *:not(.ck-reset_all-excluded *) {\n\t/* Do not include inheritable rules here. */\n\tmargin: 0;\n\tpadding: 0;\n\tborder: 0;\n\tbackground: transparent;\n\ttext-decoration: none;\n\tvertical-align: middle;\n\ttransition: none;\n\n\t/* https://github.com/ckeditor/ckeditor5-theme-lark/issues/105 */\n\tword-wrap: break-word;\n}\n\n/**\n * Resets an element AND its children.\n */\n.ck.ck-reset_all,\n.ck-reset_all *:not(.ck-reset_all-excluded *) {\n\t/* These are rule inherited by all children elements. */\n\tborder-collapse: collapse;\n\tfont: normal normal normal var(--ck-font-size-base)/var(--ck-line-height-base) var(--ck-font-face);\n\tcolor: var(--ck-color-text);\n\ttext-align: left;\n\twhite-space: nowrap;\n\tcursor: auto;\n\tfloat: none;\n}\n\n.ck-reset_all {\n\t& .ck-rtl *:not(.ck-reset_all-excluded *) {\n\t\ttext-align: right;\n\t}\n\n\t& iframe:not(.ck-reset_all-excluded *) {\n\t\t/* For IE */\n\t\tvertical-align: inherit;\n\t}\n\n\t& textarea:not(.ck-reset_all-excluded *) {\n\t\twhite-space: pre-wrap;\n\t}\n\n\t& textarea:not(.ck-reset_all-excluded *),\n\t& input[type="text"]:not(.ck-reset_all-excluded *),\n\t& input[type="password"]:not(.ck-reset_all-excluded *) {\n\t\tcursor: text;\n\t}\n\n\t& textarea[disabled]:not(.ck-reset_all-excluded *),\n\t& input[type="text"][disabled]:not(.ck-reset_all-excluded *),\n\t& input[type="password"][disabled]:not(.ck-reset_all-excluded *) {\n\t\tcursor: default;\n\t}\n\n\t& fieldset:not(.ck-reset_all-excluded *) {\n\t\tpadding: 10px;\n\t\tborder: 2px groove hsl(255, 7%, 88%);\n\t}\n\n\t& button:not(.ck-reset_all-excluded *)::-moz-focus-inner {\n\t\t/* See http://stackoverflow.com/questions/5517744/remove-extra-button-spacing-padding-in-firefox */\n\t\tpadding: 0;\n\t\tborder: 0\n\t}\n}\n\n/**\n * Default UI rules for RTL languages.\n */\n.ck[dir="rtl"],\n.ck[dir="rtl"] .ck {\n\ttext-align: right;\n}\n',"/*\n * Copyright (c) 2003-2022, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n/**\n * Default border-radius value.\n */\n:root{\n\t--ck-border-radius: 2px;\n}\n","/*\n * Copyright (c) 2003-2022, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n:root {\n\t/**\n\t * A visual style of element's inner shadow (i.e. input).\n\t */\n\t--ck-inner-shadow: 2px 2px 3px var(--ck-color-shadow-inner) inset;\n\n\t/**\n\t * A visual style of element's drop shadow (i.e. panel).\n\t */\n\t--ck-drop-shadow: 0 1px 2px 1px var(--ck-color-shadow-drop);\n\n\t/**\n\t * A visual style of element's active shadow (i.e. comment or suggestion).\n\t */\n\t--ck-drop-shadow-active: 0 3px 6px 1px var(--ck-color-shadow-drop-active);\n}\n","/*\n * Copyright (c) 2003-2022, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n:root {\n\t--ck-spacing-unit: \t\t\t\t\t\t0.6em;\n\t--ck-spacing-large: \t\t\t\t\tcalc(var(--ck-spacing-unit) * 1.5);\n\t--ck-spacing-standard: \t\t\t\t\tvar(--ck-spacing-unit);\n\t--ck-spacing-medium: \t\t\t\t\tcalc(var(--ck-spacing-unit) * 0.8);\n\t--ck-spacing-small: \t\t\t\t\tcalc(var(--ck-spacing-unit) * 0.5);\n\t--ck-spacing-tiny: \t\t\t\t\t\tcalc(var(--ck-spacing-unit) * 0.3);\n\t--ck-spacing-extra-tiny: \t\t\t\tcalc(var(--ck-spacing-unit) * 0.16);\n}\n"],sourceRoot:""}]);const a=s},6507:(t,e,n)=>{"use strict";n.d(e,{Z:()=>a});var o=n(4015),i=n.n(o),r=n(3645),s=n.n(r)()(i());s.push([t.id,":root{--ck-color-resizer:var(--ck-color-focus-border);--ck-color-resizer-tooltip-background:#262626;--ck-color-resizer-tooltip-text:#f2f2f2;--ck-resizer-border-radius:var(--ck-border-radius);--ck-resizer-tooltip-offset:10px;--ck-resizer-tooltip-height:calc(var(--ck-spacing-small)*2 + 10px)}.ck .ck-widget,.ck .ck-widget.ck-widget_with-selection-handle{position:relative}.ck .ck-widget.ck-widget_with-selection-handle .ck-widget__selection-handle{position:absolute}.ck .ck-widget.ck-widget_with-selection-handle .ck-widget__selection-handle .ck-icon{display:block}.ck .ck-widget.ck-widget_with-selection-handle.ck-widget_selected>.ck-widget__selection-handle,.ck .ck-widget.ck-widget_with-selection-handle:hover>.ck-widget__selection-handle{visibility:visible}.ck .ck-size-view{background:var(--ck-color-resizer-tooltip-background);border:1px solid var(--ck-color-resizer-tooltip-text);border-radius:var(--ck-resizer-border-radius);color:var(--ck-color-resizer-tooltip-text);display:block;font-size:var(--ck-font-size-tiny);height:var(--ck-resizer-tooltip-height);line-height:var(--ck-resizer-tooltip-height);padding:0 var(--ck-spacing-small)}.ck .ck-size-view.ck-orientation-above-center,.ck .ck-size-view.ck-orientation-bottom-left,.ck .ck-size-view.ck-orientation-bottom-right,.ck .ck-size-view.ck-orientation-top-left,.ck .ck-size-view.ck-orientation-top-right{position:absolute}.ck .ck-size-view.ck-orientation-top-left{left:var(--ck-resizer-tooltip-offset);top:var(--ck-resizer-tooltip-offset)}.ck .ck-size-view.ck-orientation-top-right{right:var(--ck-resizer-tooltip-offset);top:var(--ck-resizer-tooltip-offset)}.ck .ck-size-view.ck-orientation-bottom-right{bottom:var(--ck-resizer-tooltip-offset);right:var(--ck-resizer-tooltip-offset)}.ck .ck-size-view.ck-orientation-bottom-left{bottom:var(--ck-resizer-tooltip-offset);left:var(--ck-resizer-tooltip-offset)}.ck .ck-size-view.ck-orientation-above-center{left:50%;top:calc(var(--ck-resizer-tooltip-height)*-1);transform:translate(-50%)}:root{--ck-widget-outline-thickness:3px;--ck-widget-handler-icon-size:16px;--ck-widget-handler-animation-duration:200ms;--ck-widget-handler-animation-curve:ease;--ck-color-widget-blurred-border:#dedede;--ck-color-widget-hover-border:#ffc83d;--ck-color-widget-editable-focus-background:var(--ck-color-base-background);--ck-color-widget-drag-handler-icon-color:var(--ck-color-base-background)}.ck .ck-widget{outline-color:transparent;outline-style:solid;outline-width:var(--ck-widget-outline-thickness);transition:outline-color var(--ck-widget-handler-animation-duration) var(--ck-widget-handler-animation-curve)}.ck .ck-widget.ck-widget_selected,.ck .ck-widget.ck-widget_selected:hover{outline:var(--ck-widget-outline-thickness) solid var(--ck-color-focus-border)}.ck .ck-widget:hover{outline-color:var(--ck-color-widget-hover-border)}.ck .ck-editor__nested-editable{border:1px solid transparent}.ck .ck-editor__nested-editable.ck-editor__nested-editable_focused,.ck .ck-editor__nested-editable:focus{background-color:var(--ck-color-widget-editable-focus-background);border:var(--ck-focus-ring);box-shadow:var(--ck-inner-shadow),0 0;outline:none}.ck .ck-widget.ck-widget_with-selection-handle .ck-widget__selection-handle{background-color:transparent;border-radius:var(--ck-border-radius) var(--ck-border-radius) 0 0;box-sizing:border-box;left:calc(0px - var(--ck-widget-outline-thickness));opacity:0;padding:4px;top:0;transform:translateY(-100%);transition:background-color var(--ck-widget-handler-animation-duration) var(--ck-widget-handler-animation-curve),visibility var(--ck-widget-handler-animation-duration) var(--ck-widget-handler-animation-curve),opacity var(--ck-widget-handler-animation-duration) var(--ck-widget-handler-animation-curve)}.ck .ck-widget.ck-widget_with-selection-handle .ck-widget__selection-handle .ck-icon{color:var(--ck-color-widget-drag-handler-icon-color);height:var(--ck-widget-handler-icon-size);width:var(--ck-widget-handler-icon-size)}.ck .ck-widget.ck-widget_with-selection-handle .ck-widget__selection-handle .ck-icon .ck-icon__selected-indicator{opacity:0;transition:opacity .3s var(--ck-widget-handler-animation-curve)}.ck .ck-widget.ck-widget_with-selection-handle .ck-widget__selection-handle:hover .ck-icon .ck-icon__selected-indicator{opacity:1}.ck .ck-widget.ck-widget_with-selection-handle:hover>.ck-widget__selection-handle{background-color:var(--ck-color-widget-hover-border);opacity:1}.ck .ck-widget.ck-widget_with-selection-handle.ck-widget_selected:hover>.ck-widget__selection-handle,.ck .ck-widget.ck-widget_with-selection-handle.ck-widget_selected>.ck-widget__selection-handle{background-color:var(--ck-color-focus-border);opacity:1}.ck .ck-widget.ck-widget_with-selection-handle.ck-widget_selected:hover>.ck-widget__selection-handle .ck-icon .ck-icon__selected-indicator,.ck .ck-widget.ck-widget_with-selection-handle.ck-widget_selected>.ck-widget__selection-handle .ck-icon .ck-icon__selected-indicator{opacity:1}.ck[dir=rtl] .ck-widget.ck-widget_with-selection-handle .ck-widget__selection-handle{left:auto;right:calc(0px - var(--ck-widget-outline-thickness))}.ck.ck-editor__editable.ck-read-only .ck-widget{transition:none}.ck.ck-editor__editable.ck-read-only .ck-widget:not(.ck-widget_selected){--ck-widget-outline-thickness:0px}.ck.ck-editor__editable.ck-read-only .ck-widget.ck-widget_with-selection-handle .ck-widget__selection-handle,.ck.ck-editor__editable.ck-read-only .ck-widget.ck-widget_with-selection-handle .ck-widget__selection-handle:hover{background:var(--ck-color-widget-blurred-border)}.ck.ck-editor__editable.ck-blurred .ck-widget.ck-widget_selected,.ck.ck-editor__editable.ck-blurred .ck-widget.ck-widget_selected:hover{outline-color:var(--ck-color-widget-blurred-border)}.ck.ck-editor__editable.ck-blurred .ck-widget.ck-widget_selected.ck-widget_with-selection-handle:hover>.ck-widget__selection-handle,.ck.ck-editor__editable.ck-blurred .ck-widget.ck-widget_selected.ck-widget_with-selection-handle:hover>.ck-widget__selection-handle:hover,.ck.ck-editor__editable.ck-blurred .ck-widget.ck-widget_selected.ck-widget_with-selection-handle>.ck-widget__selection-handle,.ck.ck-editor__editable.ck-blurred .ck-widget.ck-widget_selected.ck-widget_with-selection-handle>.ck-widget__selection-handle:hover{background:var(--ck-color-widget-blurred-border)}.ck.ck-editor__editable blockquote>.ck-widget.ck-widget_with-selection-handle:first-child,.ck.ck-editor__editable>.ck-widget.ck-widget_with-selection-handle:first-child{margin-top:calc(1em + var(--ck-widget-handler-icon-size))}","",{version:3,sources:["webpack://./node_modules/@ckeditor/ckeditor5-widget/theme/widget.css","webpack://./node_modules/@ckeditor/ckeditor5-theme-lark/theme/ckeditor5-widget/widget.css","webpack://./node_modules/@ckeditor/ckeditor5-theme-lark/theme/mixins/_focus.css","webpack://./node_modules/@ckeditor/ckeditor5-theme-lark/theme/mixins/_shadow.css"],names:[],mappings:"AAKA,MACC,+CAAgD,CAChD,6CAAsD,CACtD,uCAAgD,CAEhD,kDAAmD,CACnD,gCAAiC,CACjC,kEACD,CAOA,8DAEC,iBAqBD,CAnBC,4EACC,iBAOD,CALC,qFAGC,aACD,CASD,iLACC,kBACD,CAGD,kBACC,qDAAsD,CAEtD,qDAAsD,CACtD,6CAA8C,CAF9C,0CAA2C,CAI3C,aAAc,CADd,kCAAmC,CAGnC,uCAAwC,CACxC,4CAA6C,CAF7C,iCAsCD,CAlCC,8NAKC,iBACD,CAEA,0CAEC,qCAAsC,CADtC,oCAED,CAEA,2CAEC,sCAAuC,CADvC,oCAED,CAEA,8CACC,uCAAwC,CACxC,sCACD,CAEA,6CACC,uCAAwC,CACxC,qCACD,CAGA,8CAEC,QAAS,CADT,6CAAgD,CAEhD,yBACD,CCjFD,MACC,iCAAkC,CAClC,kCAAmC,CACnC,4CAA6C,CAC7C,wCAAyC,CAEzC,wCAAiD,CACjD,sCAAkD,CAClD,2EAA4E,CAC5E,yEACD,CAEA,eAGC,yBAA0B,CAD1B,mBAAoB,CADpB,gDAAiD,CAGjD,6GAUD,CARC,0EAEC,6EACD,CAEA,qBACC,iDACD,CAGD,gCACC,4BAWD,CAPC,yGAKC,iEAAkE,CCnCnE,2BAA2B,CCF3B,qCAA8B,CDC9B,YDqCA,CAIA,4EAKC,4BAA6B,CAa7B,iEAAkE,CAhBlE,qBAAsB,CAoBtB,mDAAoD,CAhBpD,SAAU,CALV,WAAY,CAsBZ,KAAM,CAFN,2BAA4B,CAT5B,6SAgCD,CAnBC,qFAIC,oDAAqD,CADrD,yCAA0C,CAD1C,wCAWD,CANC,kHACC,SAAU,CAGV,+DACD,CAID,wHACC,SACD,CAID,kFAEC,oDAAqD,CADrD,SAED,CAKC,oMAEC,6CAA8C,CAD9C,SAOD,CAHC,gRACC,SACD,CAOH,qFACC,SAAU,CACV,oDACD,CAGA,gDAEC,eAkBD,CAhBC,yEAOC,iCACD,CAGC,gOAEC,gDACD,CAOD,wIAEC,mDAQD,CALE,ghBAEC,gDACD,CAKH,yKAOC,yDACD",sourcesContent:["/*\n * Copyright (c) 2003-2022, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n:root {\n\t--ck-color-resizer: var(--ck-color-focus-border);\n\t--ck-color-resizer-tooltip-background: hsl(0, 0%, 15%);\n\t--ck-color-resizer-tooltip-text: hsl(0, 0%, 95%);\n\n\t--ck-resizer-border-radius: var(--ck-border-radius);\n\t--ck-resizer-tooltip-offset: 10px;\n\t--ck-resizer-tooltip-height: calc(var(--ck-spacing-small) * 2 + 10px);\n}\n\n.ck .ck-widget {\n\t/* This is neccessary for type around UI to be positioned properly. */\n\tposition: relative;\n}\n\n.ck .ck-widget.ck-widget_with-selection-handle {\n\t/* Make the widget wrapper a relative positioning container for the drag handle. */\n\tposition: relative;\n\n\t& .ck-widget__selection-handle {\n\t\tposition: absolute;\n\n\t\t& .ck-icon {\n\t\t\t/* Make sure the icon in not a subject to font-size or line-height to avoid\n\t\t\tunnecessary spacing around it. */\n\t\t\tdisplay: block;\n\t\t}\n\t}\n\n\t/* Show the selection handle on mouse hover over the widget, but not for nested widgets. */\n\t&:hover > .ck-widget__selection-handle {\n\t\tvisibility: visible;\n\t}\n\n\t/* Show the selection handle when the widget is selected, but not for nested widgets. */\n\t&.ck-widget_selected > .ck-widget__selection-handle {\n\t\tvisibility: visible;\n\t}\n}\n\n.ck .ck-size-view {\n\tbackground: var(--ck-color-resizer-tooltip-background);\n\tcolor: var(--ck-color-resizer-tooltip-text);\n\tborder: 1px solid var(--ck-color-resizer-tooltip-text);\n\tborder-radius: var(--ck-resizer-border-radius);\n\tfont-size: var(--ck-font-size-tiny);\n\tdisplay: block;\n\tpadding: 0 var(--ck-spacing-small);\n\theight: var(--ck-resizer-tooltip-height);\n\tline-height: var(--ck-resizer-tooltip-height);\n\n\t&.ck-orientation-top-left,\n\t&.ck-orientation-top-right,\n\t&.ck-orientation-bottom-right,\n\t&.ck-orientation-bottom-left,\n\t&.ck-orientation-above-center {\n\t\tposition: absolute;\n\t}\n\n\t&.ck-orientation-top-left {\n\t\ttop: var(--ck-resizer-tooltip-offset);\n\t\tleft: var(--ck-resizer-tooltip-offset);\n\t}\n\n\t&.ck-orientation-top-right {\n\t\ttop: var(--ck-resizer-tooltip-offset);\n\t\tright: var(--ck-resizer-tooltip-offset);\n\t}\n\n\t&.ck-orientation-bottom-right {\n\t\tbottom: var(--ck-resizer-tooltip-offset);\n\t\tright: var(--ck-resizer-tooltip-offset);\n\t}\n\n\t&.ck-orientation-bottom-left {\n\t\tbottom: var(--ck-resizer-tooltip-offset);\n\t\tleft: var(--ck-resizer-tooltip-offset);\n\t}\n\n\t/* Class applied if the widget is too small to contain the size label */\n\t&.ck-orientation-above-center {\n\t\ttop: calc(var(--ck-resizer-tooltip-height) * -1);\n\t\tleft: 50%;\n\t\ttransform: translate(-50%);\n\t}\n}\n",'/*\n * Copyright (c) 2003-2022, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n@import "../mixins/_focus.css";\n@import "../mixins/_shadow.css";\n\n:root {\n\t--ck-widget-outline-thickness: 3px;\n\t--ck-widget-handler-icon-size: 16px;\n\t--ck-widget-handler-animation-duration: 200ms;\n\t--ck-widget-handler-animation-curve: ease;\n\n\t--ck-color-widget-blurred-border: hsl(0, 0%, 87%);\n\t--ck-color-widget-hover-border: hsl(43, 100%, 62%);\n\t--ck-color-widget-editable-focus-background: var(--ck-color-base-background);\n\t--ck-color-widget-drag-handler-icon-color: var(--ck-color-base-background);\n}\n\n.ck .ck-widget {\n\toutline-width: var(--ck-widget-outline-thickness);\n\toutline-style: solid;\n\toutline-color: transparent;\n\ttransition: outline-color var(--ck-widget-handler-animation-duration) var(--ck-widget-handler-animation-curve);\n\n\t&.ck-widget_selected,\n\t&.ck-widget_selected:hover {\n\t\toutline: var(--ck-widget-outline-thickness) solid var(--ck-color-focus-border);\n\t}\n\n\t&:hover {\n\t\toutline-color: var(--ck-color-widget-hover-border);\n\t}\n}\n\n.ck .ck-editor__nested-editable {\n\tborder: 1px solid transparent;\n\n\t/* The :focus style is applied before .ck-editor__nested-editable_focused class is rendered in the view.\n\tThese styles show a different border for a blink of an eye, so `:focus` need to have same styles applied. */\n\t&.ck-editor__nested-editable_focused,\n\t&:focus {\n\t\t@mixin ck-focus-ring;\n\t\t@mixin ck-box-shadow var(--ck-inner-shadow);\n\n\t\tbackground-color: var(--ck-color-widget-editable-focus-background);\n\t}\n}\n\n.ck .ck-widget.ck-widget_with-selection-handle {\n\t& .ck-widget__selection-handle {\n\t\tpadding: 4px;\n\t\tbox-sizing: border-box;\n\n\t\t/* Background and opacity will be animated as the handler shows up or the widget gets selected. */\n\t\tbackground-color: transparent;\n\t\topacity: 0;\n\n\t\t/* Transition:\n\t\t * background-color for the .ck-widget_selected state change,\n\t\t * visibility for hiding the handler,\n\t\t * opacity for the proper look of the icon when the handler disappears. */\n\t\ttransition:\n\t\t\tbackground-color var(--ck-widget-handler-animation-duration) var(--ck-widget-handler-animation-curve),\n\t\t\tvisibility var(--ck-widget-handler-animation-duration) var(--ck-widget-handler-animation-curve),\n\t\t\topacity var(--ck-widget-handler-animation-duration) var(--ck-widget-handler-animation-curve);\n\n\t\t/* Make only top corners round. */\n\t\tborder-radius: var(--ck-border-radius) var(--ck-border-radius) 0 0;\n\n\t\t/* Place the drag handler outside the widget wrapper. */\n\t\ttransform: translateY(-100%);\n\t\tleft: calc(0px - var(--ck-widget-outline-thickness));\n\t\ttop: 0;\n\n\t\t& .ck-icon {\n\t\t\t/* Make sure the dimensions of the icon are independent of the fon-size of the content. */\n\t\t\twidth: var(--ck-widget-handler-icon-size);\n\t\t\theight: var(--ck-widget-handler-icon-size);\n\t\t\tcolor: var(--ck-color-widget-drag-handler-icon-color);\n\n\t\t\t/* The "selected" part of the icon is invisible by default */\n\t\t\t& .ck-icon__selected-indicator {\n\t\t\t\topacity: 0;\n\n\t\t\t\t/* Note: The animation is longer on purpose. Simply feels better. */\n\t\t\t\ttransition: opacity 300ms var(--ck-widget-handler-animation-curve);\n\t\t\t}\n\t\t}\n\n\t\t/* Advertise using the look of the icon that once clicked the handler, the widget will be selected. */\n\t\t&:hover .ck-icon .ck-icon__selected-indicator {\n\t\t\topacity: 1;\n\t\t}\n\t}\n\n\t/* Show the selection handler on mouse hover over the widget, but not for nested widgets. */\n\t&:hover > .ck-widget__selection-handle {\n\t\topacity: 1;\n\t\tbackground-color: var(--ck-color-widget-hover-border);\n\t}\n\n\t/* Show the selection handler when the widget is selected, but not for nested widgets. */\n\t&.ck-widget_selected,\n\t&.ck-widget_selected:hover {\n\t\t& > .ck-widget__selection-handle {\n\t\t\topacity: 1;\n\t\t\tbackground-color: var(--ck-color-focus-border);\n\n\t\t\t/* When the widget is selected, notify the user using the proper look of the icon. */\n\t\t\t& .ck-icon .ck-icon__selected-indicator {\n\t\t\t\topacity: 1;\n\t\t\t}\n\t\t}\n\t}\n}\n\n/* In a RTL environment, align the selection handler to the right side of the widget */\n/* stylelint-disable-next-line no-descending-specificity */\n.ck[dir="rtl"] .ck-widget.ck-widget_with-selection-handle .ck-widget__selection-handle {\n\tleft: auto;\n\tright: calc(0px - var(--ck-widget-outline-thickness));\n}\n\n/* https://github.com/ckeditor/ckeditor5/issues/6415 */\n.ck.ck-editor__editable.ck-read-only .ck-widget {\n\t/* Prevent the :hover outline from showing up because of the used outline-color transition. */\n\ttransition: none;\n\n\t&:not(.ck-widget_selected) {\n\t\t/* Disable visual effects of hover/active widget when CKEditor is in readOnly mode.\n\t\t * See: https://github.com/ckeditor/ckeditor5/issues/1261\n\t\t *\n\t\t * Leave the unit because this custom property is used in calc() by other features.\n\t\t * See: https://github.com/ckeditor/ckeditor5/issues/6775\n\t\t */\n\t\t--ck-widget-outline-thickness: 0px;\n\t}\n\n\t&.ck-widget_with-selection-handle {\n\t\t& .ck-widget__selection-handle,\n\t\t& .ck-widget__selection-handle:hover {\n\t\t\tbackground: var(--ck-color-widget-blurred-border);\n\t\t}\n\t}\n}\n\n/* Style the widget when it\'s selected but the editable it belongs to lost focus. */\n/* stylelint-disable-next-line no-descending-specificity */\n.ck.ck-editor__editable.ck-blurred .ck-widget {\n\t&.ck-widget_selected,\n\t&.ck-widget_selected:hover {\n\t\toutline-color: var(--ck-color-widget-blurred-border);\n\n\t\t&.ck-widget_with-selection-handle {\n\t\t\t& > .ck-widget__selection-handle,\n\t\t\t& > .ck-widget__selection-handle:hover {\n\t\t\t\tbackground: var(--ck-color-widget-blurred-border);\n\t\t\t}\n\t\t}\n\t}\n}\n\n.ck.ck-editor__editable > .ck-widget.ck-widget_with-selection-handle:first-child,\n.ck.ck-editor__editable blockquote > .ck-widget.ck-widget_with-selection-handle:first-child {\n\t/* Do not crop selection handler if a widget is a first-child in the blockquote or in the root editable.\n\tIn fact, anything with overflow: hidden.\n\thttps://github.com/ckeditor/ckeditor5-block-quote/issues/28\n\thttps://github.com/ckeditor/ckeditor5-widget/issues/44\n\thttps://github.com/ckeditor/ckeditor5-widget/issues/66 */\n\tmargin-top: calc(1em + var(--ck-widget-handler-icon-size));\n}\n',"/*\n * Copyright (c) 2003-2022, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n/**\n * A visual style of focused element's border.\n */\n@define-mixin ck-focus-ring {\n\t/* Disable native outline. */\n\toutline: none;\n\tborder: var(--ck-focus-ring)\n}\n","/*\n * Copyright (c) 2003-2022, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n/**\n * A helper to combine multiple shadows.\n */\n@define-mixin ck-box-shadow $shadowA, $shadowB: 0 0 {\n\tbox-shadow: $shadowA, $shadowB;\n}\n\n/**\n * Gives an element a drop shadow so it looks like a floating panel.\n */\n@define-mixin ck-drop-shadow {\n\t@mixin ck-box-shadow var(--ck-drop-shadow);\n}\n"],sourceRoot:""}]);const a=s},2263:(t,e,n)=>{"use strict";n.d(e,{Z:()=>a});var o=n(4015),i=n.n(o),r=n(3645),s=n.n(r)()(i());s.push([t.id,".ck .ck-widget_with-resizer{position:relative}.ck .ck-widget__resizer{display:none;left:0;pointer-events:none;position:absolute;top:0}.ck-focused .ck-widget_with-resizer.ck-widget_selected>.ck-widget__resizer{display:block}.ck .ck-widget__resizer__handle{pointer-events:all;position:absolute}.ck .ck-widget__resizer__handle.ck-widget__resizer__handle-bottom-right,.ck .ck-widget__resizer__handle.ck-widget__resizer__handle-top-left{cursor:nwse-resize}.ck .ck-widget__resizer__handle.ck-widget__resizer__handle-bottom-left,.ck .ck-widget__resizer__handle.ck-widget__resizer__handle-top-right{cursor:nesw-resize}:root{--ck-resizer-size:10px;--ck-resizer-offset:calc(var(--ck-resizer-size)/-2 - 2px);--ck-resizer-border-width:1px}.ck .ck-widget__resizer{outline:1px solid var(--ck-color-resizer)}.ck .ck-widget__resizer__handle{background:var(--ck-color-focus-border);border:var(--ck-resizer-border-width) solid #fff;border-radius:var(--ck-resizer-border-radius);height:var(--ck-resizer-size);width:var(--ck-resizer-size)}.ck .ck-widget__resizer__handle.ck-widget__resizer__handle-top-left{left:var(--ck-resizer-offset);top:var(--ck-resizer-offset)}.ck .ck-widget__resizer__handle.ck-widget__resizer__handle-top-right{right:var(--ck-resizer-offset);top:var(--ck-resizer-offset)}.ck .ck-widget__resizer__handle.ck-widget__resizer__handle-bottom-right{bottom:var(--ck-resizer-offset);right:var(--ck-resizer-offset)}.ck .ck-widget__resizer__handle.ck-widget__resizer__handle-bottom-left{bottom:var(--ck-resizer-offset);left:var(--ck-resizer-offset)}","",{version:3,sources:["webpack://./node_modules/@ckeditor/ckeditor5-widget/theme/widgetresize.css","webpack://./node_modules/@ckeditor/ckeditor5-theme-lark/theme/ckeditor5-widget/widgetresize.css"],names:[],mappings:"AAKA,4BAEC,iBACD,CAEA,wBACC,YAAa,CAMb,MAAO,CAFP,mBAAoB,CAHpB,iBAAkB,CAMlB,KACD,CAGC,2EACC,aACD,CAGD,gCAIC,kBAAmB,CAHnB,iBAcD,CATC,4IAEC,kBACD,CAEA,4IAEC,kBACD,CCpCD,MACC,sBAAuB,CAGvB,yDAAiE,CACjE,6BACD,CAEA,wBACC,yCACD,CAEA,gCAGC,uCAAwC,CACxC,gDAA6D,CAC7D,6CAA8C,CAH9C,6BAA8B,CAD9B,4BAyBD,CAnBC,oEAEC,6BAA8B,CAD9B,4BAED,CAEA,qEAEC,8BAA+B,CAD/B,4BAED,CAEA,wEACC,+BAAgC,CAChC,8BACD,CAEA,uEACC,+BAAgC,CAChC,6BACD",sourcesContent:["/*\n * Copyright (c) 2003-2022, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n.ck .ck-widget_with-resizer {\n\t/* Make the widget wrapper a relative positioning container for the drag handle. */\n\tposition: relative;\n}\n\n.ck .ck-widget__resizer {\n\tdisplay: none;\n\tposition: absolute;\n\n\t/* The wrapper itself should not interfere with the pointer device, only the handles should. */\n\tpointer-events: none;\n\n\tleft: 0;\n\ttop: 0;\n}\n\n.ck-focused .ck-widget_with-resizer.ck-widget_selected {\n\t& > .ck-widget__resizer {\n\t\tdisplay: block;\n\t}\n}\n\n.ck .ck-widget__resizer__handle {\n\tposition: absolute;\n\n\t/* Resizers are the only UI elements that should interfere with a pointer device. */\n\tpointer-events: all;\n\n\t&.ck-widget__resizer__handle-top-left,\n\t&.ck-widget__resizer__handle-bottom-right {\n\t\tcursor: nwse-resize;\n\t}\n\n\t&.ck-widget__resizer__handle-top-right,\n\t&.ck-widget__resizer__handle-bottom-left {\n\t\tcursor: nesw-resize;\n\t}\n}\n","/*\n * Copyright (c) 2003-2022, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n:root {\n\t--ck-resizer-size: 10px;\n\n\t/* Set the resizer with a 50% offset. */\n\t--ck-resizer-offset: calc( ( var(--ck-resizer-size) / -2 ) - 2px);\n\t--ck-resizer-border-width: 1px;\n}\n\n.ck .ck-widget__resizer {\n\toutline: 1px solid var(--ck-color-resizer);\n}\n\n.ck .ck-widget__resizer__handle {\n\twidth: var(--ck-resizer-size);\n\theight: var(--ck-resizer-size);\n\tbackground: var(--ck-color-focus-border);\n\tborder: var(--ck-resizer-border-width) solid hsl(0, 0%, 100%);\n\tborder-radius: var(--ck-resizer-border-radius);\n\n\t&.ck-widget__resizer__handle-top-left {\n\t\ttop: var(--ck-resizer-offset);\n\t\tleft: var(--ck-resizer-offset);\n\t}\n\n\t&.ck-widget__resizer__handle-top-right {\n\t\ttop: var(--ck-resizer-offset);\n\t\tright: var(--ck-resizer-offset);\n\t}\n\n\t&.ck-widget__resizer__handle-bottom-right {\n\t\tbottom: var(--ck-resizer-offset);\n\t\tright: var(--ck-resizer-offset);\n\t}\n\n\t&.ck-widget__resizer__handle-bottom-left {\n\t\tbottom: var(--ck-resizer-offset);\n\t\tleft: var(--ck-resizer-offset);\n\t}\n}\n"],sourceRoot:""}]);const a=s},5137:(t,e,n)=>{"use strict";n.d(e,{Z:()=>a});var o=n(4015),i=n.n(o),r=n(3645),s=n.n(r)()(i());s.push([t.id,'.ck .ck-widget .ck-widget__type-around__button{display:block;overflow:hidden;position:absolute;z-index:var(--ck-z-default)}.ck .ck-widget .ck-widget__type-around__button svg{left:50%;position:absolute;top:50%;z-index:calc(var(--ck-z-default) + 2)}.ck .ck-widget .ck-widget__type-around__button.ck-widget__type-around__button_before{left:min(10%,30px);top:calc(var(--ck-widget-outline-thickness)*-.5);transform:translateY(-50%)}.ck .ck-widget .ck-widget__type-around__button.ck-widget__type-around__button_after{bottom:calc(var(--ck-widget-outline-thickness)*-.5);right:min(10%,30px);transform:translateY(50%)}.ck .ck-widget.ck-widget_selected>.ck-widget__type-around>.ck-widget__type-around__button:after,.ck .ck-widget>.ck-widget__type-around>.ck-widget__type-around__button:hover:after{content:"";display:block;left:1px;position:absolute;top:1px;z-index:calc(var(--ck-z-default) + 1)}.ck .ck-widget>.ck-widget__type-around>.ck-widget__type-around__fake-caret{display:none;left:0;position:absolute;right:0}.ck .ck-widget:hover>.ck-widget__type-around>.ck-widget__type-around__fake-caret{left:calc(var(--ck-widget-outline-thickness)*-1);right:calc(var(--ck-widget-outline-thickness)*-1)}.ck .ck-widget.ck-widget_type-around_show-fake-caret_before>.ck-widget__type-around>.ck-widget__type-around__fake-caret{display:block;top:calc(var(--ck-widget-outline-thickness)*-1 - 1px)}.ck .ck-widget.ck-widget_type-around_show-fake-caret_after>.ck-widget__type-around>.ck-widget__type-around__fake-caret{bottom:calc(var(--ck-widget-outline-thickness)*-1 - 1px);display:block}.ck.ck-editor__editable.ck-read-only .ck-widget__type-around,.ck.ck-editor__editable.ck-restricted-editing_mode_restricted .ck-widget__type-around,.ck.ck-editor__editable.ck-widget__type-around_disabled .ck-widget__type-around{display:none}:root{--ck-widget-type-around-button-size:20px;--ck-color-widget-type-around-button-active:var(--ck-color-focus-border);--ck-color-widget-type-around-button-hover:var(--ck-color-widget-hover-border);--ck-color-widget-type-around-button-blurred-editable:var(--ck-color-widget-blurred-border);--ck-color-widget-type-around-button-radar-start-alpha:0;--ck-color-widget-type-around-button-radar-end-alpha:.3;--ck-color-widget-type-around-button-icon:var(--ck-color-base-background)}.ck .ck-widget .ck-widget__type-around__button{background:var(--ck-color-widget-type-around-button);border-radius:100px;height:var(--ck-widget-type-around-button-size);opacity:0;pointer-events:none;transition:opacity var(--ck-widget-handler-animation-duration) var(--ck-widget-handler-animation-curve),background var(--ck-widget-handler-animation-duration) var(--ck-widget-handler-animation-curve);width:var(--ck-widget-type-around-button-size)}.ck .ck-widget .ck-widget__type-around__button svg{height:8px;margin-top:1px;transform:translate(-50%,-50%);transition:transform .5s ease;width:10px}.ck .ck-widget .ck-widget__type-around__button svg *{stroke-dasharray:10;stroke-dashoffset:0;fill:none;stroke:var(--ck-color-widget-type-around-button-icon);stroke-width:1.5px;stroke-linecap:round;stroke-linejoin:round}.ck .ck-widget .ck-widget__type-around__button svg line{stroke-dasharray:7}.ck .ck-widget .ck-widget__type-around__button:hover{animation:ck-widget-type-around-button-sonar 1s ease infinite}.ck .ck-widget .ck-widget__type-around__button:hover svg polyline{animation:ck-widget-type-around-arrow-dash 2s linear}.ck .ck-widget .ck-widget__type-around__button:hover svg line{animation:ck-widget-type-around-arrow-tip-dash 2s linear}.ck .ck-widget.ck-widget_selected>.ck-widget__type-around>.ck-widget__type-around__button,.ck .ck-widget:hover>.ck-widget__type-around>.ck-widget__type-around__button{opacity:1;pointer-events:auto}.ck .ck-widget:not(.ck-widget_selected)>.ck-widget__type-around>.ck-widget__type-around__button{background:var(--ck-color-widget-type-around-button-hover)}.ck .ck-widget.ck-widget_selected>.ck-widget__type-around>.ck-widget__type-around__button,.ck .ck-widget>.ck-widget__type-around>.ck-widget__type-around__button:hover{background:var(--ck-color-widget-type-around-button-active)}.ck .ck-widget.ck-widget_selected>.ck-widget__type-around>.ck-widget__type-around__button:after,.ck .ck-widget>.ck-widget__type-around>.ck-widget__type-around__button:hover:after{background:linear-gradient(135deg,hsla(0,0%,100%,0),hsla(0,0%,100%,.3));border-radius:100px;height:calc(var(--ck-widget-type-around-button-size) - 2px);width:calc(var(--ck-widget-type-around-button-size) - 2px)}.ck .ck-widget.ck-widget_with-selection-handle>.ck-widget__type-around>.ck-widget__type-around__button_before{margin-left:20px}.ck .ck-widget .ck-widget__type-around__fake-caret{animation:ck-widget-type-around-fake-caret-pulse 1s linear infinite normal forwards;background:var(--ck-color-base-text);height:1px;outline:1px solid hsla(0,0%,100%,.5);pointer-events:none}.ck .ck-widget.ck-widget_selected.ck-widget_type-around_show-fake-caret_after,.ck .ck-widget.ck-widget_selected.ck-widget_type-around_show-fake-caret_before{outline-color:transparent}.ck .ck-widget.ck-widget_type-around_show-fake-caret_after.ck-widget_selected:hover,.ck .ck-widget.ck-widget_type-around_show-fake-caret_before.ck-widget_selected:hover{outline-color:var(--ck-color-widget-hover-border)}.ck .ck-widget.ck-widget_type-around_show-fake-caret_after>.ck-widget__type-around>.ck-widget__type-around__button,.ck .ck-widget.ck-widget_type-around_show-fake-caret_before>.ck-widget__type-around>.ck-widget__type-around__button{opacity:0;pointer-events:none}.ck .ck-widget.ck-widget_type-around_show-fake-caret_after.ck-widget_selected.ck-widget_with-resizer>.ck-widget__resizer,.ck .ck-widget.ck-widget_type-around_show-fake-caret_after.ck-widget_with-selection-handle.ck-widget_selected:hover>.ck-widget__selection-handle,.ck .ck-widget.ck-widget_type-around_show-fake-caret_after.ck-widget_with-selection-handle.ck-widget_selected>.ck-widget__selection-handle,.ck .ck-widget.ck-widget_type-around_show-fake-caret_before.ck-widget_selected.ck-widget_with-resizer>.ck-widget__resizer,.ck .ck-widget.ck-widget_type-around_show-fake-caret_before.ck-widget_with-selection-handle.ck-widget_selected:hover>.ck-widget__selection-handle,.ck .ck-widget.ck-widget_type-around_show-fake-caret_before.ck-widget_with-selection-handle.ck-widget_selected>.ck-widget__selection-handle{opacity:0}.ck[dir=rtl] .ck-widget.ck-widget_with-selection-handle .ck-widget__type-around>.ck-widget__type-around__button_before{margin-left:0;margin-right:20px}.ck-editor__nested-editable.ck-editor__editable_selected .ck-widget.ck-widget_selected>.ck-widget__type-around>.ck-widget__type-around__button,.ck-editor__nested-editable.ck-editor__editable_selected .ck-widget:hover>.ck-widget__type-around>.ck-widget__type-around__button{opacity:0;pointer-events:none}.ck-editor__editable.ck-blurred .ck-widget.ck-widget_selected>.ck-widget__type-around>.ck-widget__type-around__button:not(:hover){background:var(--ck-color-widget-type-around-button-blurred-editable)}.ck-editor__editable.ck-blurred .ck-widget.ck-widget_selected>.ck-widget__type-around>.ck-widget__type-around__button:not(:hover) svg *{stroke:#999}@keyframes ck-widget-type-around-arrow-dash{0%{stroke-dashoffset:10}20%,to{stroke-dashoffset:0}}@keyframes ck-widget-type-around-arrow-tip-dash{0%,20%{stroke-dashoffset:7}40%,to{stroke-dashoffset:0}}@keyframes ck-widget-type-around-button-sonar{0%{box-shadow:0 0 0 0 hsla(var(--ck-color-focus-border-coordinates),var(--ck-color-widget-type-around-button-radar-start-alpha))}50%{box-shadow:0 0 0 5px hsla(var(--ck-color-focus-border-coordinates),var(--ck-color-widget-type-around-button-radar-end-alpha))}to{box-shadow:0 0 0 5px hsla(var(--ck-color-focus-border-coordinates),var(--ck-color-widget-type-around-button-radar-start-alpha))}}@keyframes ck-widget-type-around-fake-caret-pulse{0%{opacity:1}49%{opacity:1}50%{opacity:0}99%{opacity:0}to{opacity:1}}',"",{version:3,sources:["webpack://./node_modules/@ckeditor/ckeditor5-widget/theme/widgettypearound.css","webpack://./node_modules/@ckeditor/ckeditor5-theme-lark/theme/ckeditor5-widget/widgettypearound.css"],names:[],mappings:"AASC,+CACC,aAAc,CAEd,eAAgB,CADhB,iBAAkB,CAElB,2BAwBD,CAtBC,mDAGC,QAAS,CAFT,iBAAkB,CAClB,OAAQ,CAER,qCACD,CAEA,qFAGC,kBAAoB,CADpB,gDAAoD,CAGpD,0BACD,CAEA,oFAEC,mDAAuD,CACvD,mBAAqB,CAErB,yBACD,CAUA,mLACC,UAAW,CACX,aAAc,CAGd,QAAS,CAFT,iBAAkB,CAClB,OAAQ,CAER,qCACD,CAMD,2EACC,YAAa,CAEb,MAAO,CADP,iBAAkB,CAElB,OACD,CAOA,iFACC,gDAAqD,CACrD,iDACD,CAKA,wHAEC,aAAc,CADd,qDAED,CAKA,uHACC,wDAA6D,CAC7D,aACD,CAoBD,mOACC,YACD,CC3GA,MACC,wCAAyC,CACzC,wEAAyE,CACzE,8EAA+E,CAC/E,2FAA4F,CAC5F,wDAAyD,CACzD,uDAAwD,CACxD,yEACD,CAgBC,+CAGC,oDAAqD,CACrD,mBAAoB,CAFpB,+CAAgD,CAVjD,SAAU,CACV,mBAAoB,CAYnB,uMAAyM,CAJzM,8CAkDD,CA1CC,mDAEC,UAAW,CAGX,cAAe,CAFf,8BAA+B,CAC/B,6BAA8B,CAH9B,UAoBD,CAdC,qDACC,mBAAoB,CACpB,mBAAoB,CAEpB,SAAU,CACV,qDAAsD,CACtD,kBAAmB,CACnB,oBAAqB,CACrB,qBACD,CAEA,wDACC,kBACD,CAGD,qDAIC,6DAcD,CARE,kEACC,oDACD,CAEA,8DACC,wDACD,CAUF,uKAvED,SAAU,CACV,mBAwEC,CAOD,gGACC,0DACD,CAOA,uKAEC,2DAQD,CANC,mLAIC,uEAAkF,CADlF,mBAAoB,CADpB,2DAA4D,CAD5D,0DAID,CAOD,8GACC,gBACD,CAKA,mDAGC,mFAAoF,CAOpF,oCAAqC,CARrC,UAAW,CAOX,oCAAwC,CARxC,mBAUD,CAOC,6JAEC,yBACD,CAUA,yKACC,iDACD,CAMA,uOAlJD,SAAU,CACV,mBAmJC,CAoBA,6yBACC,SACD,CASF,uHACC,aAAc,CACd,iBACD,CAYG,iRAlMF,SAAU,CACV,mBAmME,CAQH,kIACC,qEAKD,CAHC,wIACC,WACD,CAGD,4CACC,GACC,oBACD,CACA,OACC,mBACD,CACD,CAEA,gDACC,OACC,mBACD,CACA,OACC,mBACD,CACD,CAEA,8CACC,GACC,6HACD,CACA,IACC,6HACD,CACA,GACC,+HACD,CACD,CAEA,kDACC,GACC,SACD,CACA,IACC,SACD,CACA,IACC,SACD,CACA,IACC,SACD,CACA,GACC,SACD,CACD",sourcesContent:['/*\n * Copyright (c) 2003-2022, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n.ck .ck-widget {\n\t/*\n\t * Styles of the type around buttons\n\t */\n\t& .ck-widget__type-around__button {\n\t\tdisplay: block;\n\t\tposition: absolute;\n\t\toverflow: hidden;\n\t\tz-index: var(--ck-z-default);\n\n\t\t& svg {\n\t\t\tposition: absolute;\n\t\t\ttop: 50%;\n\t\t\tleft: 50%;\n\t\t\tz-index: calc(var(--ck-z-default) + 2);\n\t\t}\n\n\t\t&.ck-widget__type-around__button_before {\n\t\t\t/* Place it in the middle of the outline */\n\t\t\ttop: calc(-0.5 * var(--ck-widget-outline-thickness));\n\t\t\tleft: min(10%, 30px);\n\n\t\t\ttransform: translateY(-50%);\n\t\t}\n\n\t\t&.ck-widget__type-around__button_after {\n\t\t\t/* Place it in the middle of the outline */\n\t\t\tbottom: calc(-0.5 * var(--ck-widget-outline-thickness));\n\t\t\tright: min(10%, 30px);\n\n\t\t\ttransform: translateY(50%);\n\t\t}\n\t}\n\n\t/*\n\t * Styles for the buttons when:\n\t * - the widget is selected,\n\t * - or the button is being hovered (regardless of the widget state).\n\t */\n\t&.ck-widget_selected > .ck-widget__type-around > .ck-widget__type-around__button,\n\t& > .ck-widget__type-around > .ck-widget__type-around__button:hover {\n\t\t&::after {\n\t\t\tcontent: "";\n\t\t\tdisplay: block;\n\t\t\tposition: absolute;\n\t\t\ttop: 1px;\n\t\t\tleft: 1px;\n\t\t\tz-index: calc(var(--ck-z-default) + 1);\n\t\t}\n\t}\n\n\t/*\n\t * Styles for the horizontal "fake caret" which is displayed when the user navigates using the keyboard.\n\t */\n\t& > .ck-widget__type-around > .ck-widget__type-around__fake-caret {\n\t\tdisplay: none;\n\t\tposition: absolute;\n\t\tleft: 0;\n\t\tright: 0;\n\t}\n\n\t/*\n\t * When the widget is hovered the "fake caret" would normally be narrower than the\n\t * extra outline displayed around the widget. Let\'s extend the "fake caret" to match\n\t * the full width of the widget.\n\t */\n\t&:hover > .ck-widget__type-around > .ck-widget__type-around__fake-caret {\n\t\tleft: calc( -1 * var(--ck-widget-outline-thickness) );\n\t\tright: calc( -1 * var(--ck-widget-outline-thickness) );\n\t}\n\n\t/*\n\t * Styles for the horizontal "fake caret" when it should be displayed before the widget (backward keyboard navigation).\n\t */\n\t&.ck-widget_type-around_show-fake-caret_before > .ck-widget__type-around > .ck-widget__type-around__fake-caret {\n\t\ttop: calc( -1 * var(--ck-widget-outline-thickness) - 1px );\n\t\tdisplay: block;\n\t}\n\n\t/*\n\t * Styles for the horizontal "fake caret" when it should be displayed after the widget (forward keyboard navigation).\n\t */\n\t&.ck-widget_type-around_show-fake-caret_after > .ck-widget__type-around > .ck-widget__type-around__fake-caret {\n\t\tbottom: calc( -1 * var(--ck-widget-outline-thickness) - 1px );\n\t\tdisplay: block;\n\t}\n}\n\n/*\n * Integration with the read-only mode of the editor.\n */\n.ck.ck-editor__editable.ck-read-only .ck-widget__type-around {\n\tdisplay: none;\n}\n\n/*\n * Integration with the restricted editing mode (feature) of the editor.\n */\n.ck.ck-editor__editable.ck-restricted-editing_mode_restricted .ck-widget__type-around {\n\tdisplay: none;\n}\n\n/*\n * Integration with the #isEnabled property of the WidgetTypeAround plugin.\n */\n.ck.ck-editor__editable.ck-widget__type-around_disabled .ck-widget__type-around {\n\tdisplay: none;\n}\n','/*\n * Copyright (c) 2003-2022, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n:root {\n\t--ck-widget-type-around-button-size: 20px;\n\t--ck-color-widget-type-around-button-active: var(--ck-color-focus-border);\n\t--ck-color-widget-type-around-button-hover: var(--ck-color-widget-hover-border);\n\t--ck-color-widget-type-around-button-blurred-editable: var(--ck-color-widget-blurred-border);\n\t--ck-color-widget-type-around-button-radar-start-alpha: 0;\n\t--ck-color-widget-type-around-button-radar-end-alpha: .3;\n\t--ck-color-widget-type-around-button-icon: var(--ck-color-base-background);\n}\n\n@define-mixin ck-widget-type-around-button-visible {\n\topacity: 1;\n\tpointer-events: auto;\n}\n\n@define-mixin ck-widget-type-around-button-hidden {\n\topacity: 0;\n\tpointer-events: none;\n}\n\n.ck .ck-widget {\n\t/*\n\t * Styles of the type around buttons\n\t */\n\t& .ck-widget__type-around__button {\n\t\twidth: var(--ck-widget-type-around-button-size);\n\t\theight: var(--ck-widget-type-around-button-size);\n\t\tbackground: var(--ck-color-widget-type-around-button);\n\t\tborder-radius: 100px;\n\t\ttransition: opacity var(--ck-widget-handler-animation-duration) var(--ck-widget-handler-animation-curve), background var(--ck-widget-handler-animation-duration) var(--ck-widget-handler-animation-curve);\n\n\t\t@mixin ck-widget-type-around-button-hidden;\n\n\t\t& svg {\n\t\t\twidth: 10px;\n\t\t\theight: 8px;\n\t\t\ttransform: translate(-50%,-50%);\n\t\t\ttransition: transform .5s ease;\n\t\t\tmargin-top: 1px;\n\n\t\t\t& * {\n\t\t\t\tstroke-dasharray: 10;\n\t\t\t\tstroke-dashoffset: 0;\n\n\t\t\t\tfill: none;\n\t\t\t\tstroke: var(--ck-color-widget-type-around-button-icon);\n\t\t\t\tstroke-width: 1.5px;\n\t\t\t\tstroke-linecap: round;\n\t\t\t\tstroke-linejoin: round;\n\t\t\t}\n\n\t\t\t& line {\n\t\t\t\tstroke-dasharray: 7;\n\t\t\t}\n\t\t}\n\n\t\t&:hover {\n\t\t\t/*\n\t\t\t * Display the "sonar" around the button when hovered.\n\t\t\t */\n\t\t\tanimation: ck-widget-type-around-button-sonar 1s ease infinite;\n\n\t\t\t/*\n\t\t\t * Animate active button\'s icon.\n\t\t\t */\n\t\t\t& svg {\n\t\t\t\t& polyline {\n\t\t\t\t\tanimation: ck-widget-type-around-arrow-dash 2s linear;\n\t\t\t\t}\n\n\t\t\t\t& line {\n\t\t\t\t\tanimation: ck-widget-type-around-arrow-tip-dash 2s linear;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}\n\n\t/*\n\t * Show type around buttons when the widget gets selected or being hovered.\n\t */\n\t&.ck-widget_selected,\n\t&:hover {\n\t\t& > .ck-widget__type-around > .ck-widget__type-around__button {\n\t\t\t@mixin ck-widget-type-around-button-visible;\n\t\t}\n\t}\n\n\t/*\n\t * Styles for the buttons when the widget is NOT selected (but the buttons are visible\n\t * and still can be hovered).\n\t */\n\t&:not(.ck-widget_selected) > .ck-widget__type-around > .ck-widget__type-around__button {\n\t\tbackground: var(--ck-color-widget-type-around-button-hover);\n\t}\n\n\t/*\n\t * Styles for the buttons when:\n\t * - the widget is selected,\n\t * - or the button is being hovered (regardless of the widget state).\n\t */\n\t&.ck-widget_selected > .ck-widget__type-around > .ck-widget__type-around__button,\n\t& > .ck-widget__type-around > .ck-widget__type-around__button:hover {\n\t\tbackground: var(--ck-color-widget-type-around-button-active);\n\n\t\t&::after {\n\t\t\twidth: calc(var(--ck-widget-type-around-button-size) - 2px);\n\t\t\theight: calc(var(--ck-widget-type-around-button-size) - 2px);\n\t\t\tborder-radius: 100px;\n\t\t\tbackground: linear-gradient(135deg, hsla(0,0%,100%,0) 0%, hsla(0,0%,100%,.3) 100%);\n\t\t}\n\t}\n\n\t/*\n\t * Styles for the "before" button when the widget has a selection handle. Because some space\n\t * is consumed by the handle, the button must be moved slightly to the right to let it breathe.\n\t */\n\t&.ck-widget_with-selection-handle > .ck-widget__type-around > .ck-widget__type-around__button_before {\n\t\tmargin-left: 20px;\n\t}\n\n\t/*\n\t * Styles for the horizontal "fake caret" which is displayed when the user navigates using the keyboard.\n\t */\n\t& .ck-widget__type-around__fake-caret {\n\t\tpointer-events: none;\n\t\theight: 1px;\n\t\tanimation: ck-widget-type-around-fake-caret-pulse linear 1s infinite normal forwards;\n\n\t\t/*\n\t\t * The semi-transparent-outline+background combo improves the contrast\n\t\t * when the background underneath the fake caret is dark.\n\t\t */\n\t\toutline: solid 1px hsla(0, 0%, 100%, .5);\n\t\tbackground: var(--ck-color-base-text);\n\t}\n\n\t/*\n\t * Styles of the widget when the "fake caret" is blinking (e.g. upon keyboard navigation).\n\t * Despite the widget being physically selected in the model, its outline should disappear.\n\t */\n\t&.ck-widget_selected {\n\t\t&.ck-widget_type-around_show-fake-caret_before,\n\t\t&.ck-widget_type-around_show-fake-caret_after {\n\t\t\toutline-color: transparent;\n\t\t}\n\t}\n\n\t&.ck-widget_type-around_show-fake-caret_before,\n\t&.ck-widget_type-around_show-fake-caret_after {\n\t\t/*\n\t\t * When the "fake caret" is visible we simulate that the widget is not selected\n\t\t * (despite being physically selected), so the outline color should be for the\n\t\t * unselected widget.\n\t\t */\n\t\t&.ck-widget_selected:hover {\n\t\t\toutline-color: var(--ck-color-widget-hover-border);\n\t\t}\n\n\t\t/*\n\t\t * Styles of the type around buttons when the "fake caret" is blinking (e.g. upon keyboard navigation).\n\t\t * In this state, the type around buttons would collide with the fake carets so they should disappear.\n\t\t */\n\t\t& > .ck-widget__type-around > .ck-widget__type-around__button {\n\t\t\t@mixin ck-widget-type-around-button-hidden;\n\t\t}\n\n\t\t/*\n\t\t * Fake horizontal caret integration with the selection handle. When the caret is visible, simply\n\t\t * hide the handle because it intersects with the caret (and does not make much sense anyway).\n\t\t */\n\t\t&.ck-widget_with-selection-handle {\n\t\t\t&.ck-widget_selected,\n\t\t\t&.ck-widget_selected:hover {\n\t\t\t\t& > .ck-widget__selection-handle {\n\t\t\t\t\topacity: 0\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\t/*\n\t\t * Fake horizontal caret integration with the resize UI. When the caret is visible, simply\n\t\t * hide the resize UI because it creates too much noise. It can be visible when the user\n\t\t * hovers the widget, though.\n\t\t */\n\t\t&.ck-widget_selected.ck-widget_with-resizer > .ck-widget__resizer {\n\t\t\topacity: 0\n\t\t}\n\t}\n}\n\n/*\n * Styles for the "before" button when the widget has a selection handle in an RTL environment.\n * The selection handler is aligned to the right side of the widget so there is no need to create\n * additional space for it next to the "before" button.\n */\n.ck[dir="rtl"] .ck-widget.ck-widget_with-selection-handle .ck-widget__type-around > .ck-widget__type-around__button_before {\n\tmargin-left: 0;\n\tmargin-right: 20px;\n}\n\n/*\n * Hide type around buttons when the widget is selected as a child of a selected\n * nested editable (e.g. mulit-cell table selection).\n *\n * See https://github.com/ckeditor/ckeditor5/issues/7263.\n */\n.ck-editor__nested-editable.ck-editor__editable_selected {\n\t& .ck-widget {\n\t\t&.ck-widget_selected,\n\t\t&:hover {\n\t\t\t& > .ck-widget__type-around > .ck-widget__type-around__button {\n\t\t\t\t@mixin ck-widget-type-around-button-hidden;\n\t\t\t}\n\t\t}\n\t}\n}\n\n/*\n * Styles for the buttons when the widget is selected but the user clicked outside of the editor (blurred the editor).\n */\n.ck-editor__editable.ck-blurred .ck-widget.ck-widget_selected > .ck-widget__type-around > .ck-widget__type-around__button:not(:hover) {\n\tbackground: var(--ck-color-widget-type-around-button-blurred-editable);\n\n\t& svg * {\n\t\tstroke: hsl(0,0%,60%);\n\t}\n}\n\n@keyframes ck-widget-type-around-arrow-dash {\n\t0% {\n\t\tstroke-dashoffset: 10;\n\t}\n\t20%, 100% {\n\t\tstroke-dashoffset: 0;\n\t}\n}\n\n@keyframes ck-widget-type-around-arrow-tip-dash {\n\t0%, 20% {\n\t\tstroke-dashoffset: 7;\n\t}\n\t40%, 100% {\n\t\tstroke-dashoffset: 0;\n\t}\n}\n\n@keyframes ck-widget-type-around-button-sonar {\n\t0% {\n\t\tbox-shadow: 0 0 0 0 hsla(var(--ck-color-focus-border-coordinates), var(--ck-color-widget-type-around-button-radar-start-alpha));\n\t}\n\t50% {\n\t\tbox-shadow: 0 0 0 5px hsla(var(--ck-color-focus-border-coordinates), var(--ck-color-widget-type-around-button-radar-end-alpha));\n\t}\n\t100% {\n\t\tbox-shadow: 0 0 0 5px hsla(var(--ck-color-focus-border-coordinates), var(--ck-color-widget-type-around-button-radar-start-alpha));\n\t}\n}\n\n@keyframes ck-widget-type-around-fake-caret-pulse {\n\t0% {\n\t\topacity: 1;\n\t}\n\t49% {\n\t\topacity: 1;\n\t}\n\t50% {\n\t\topacity: 0;\n\t}\n\t99% {\n\t\topacity: 0;\n\t}\n\t100% {\n\t\topacity: 1;\n\t}\n}\n'],sourceRoot:""}]);const a=s},3645:t=>{"use strict";t.exports=function(t){var e=[];return e.toString=function(){return this.map((function(e){var n=t(e);return e[2]?"@media ".concat(e[2]," {").concat(n,"}"):n})).join("")},e.i=function(t,n,o){"string"==typeof t&&(t=[[null,t,""]]);var i={};if(o)for(var r=0;r{"use strict";function e(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var n=t&&("undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"]);if(null==n)return;var o,i,r=[],s=!0,a=!1;try{for(n=n.call(t);!(s=(o=n.next()).done)&&(r.push(o.value),!e||r.length!==e);s=!0);}catch(t){a=!0,i=t}finally{try{s||null==n.return||n.return()}finally{if(a)throw i}}return r}(t,e)||function(t,e){if(!t)return;if("string"==typeof t)return n(t,e);var o=Object.prototype.toString.call(t).slice(8,-1);"Object"===o&&t.constructor&&(o=t.constructor.name);if("Map"===o||"Set"===o)return Array.from(t);if("Arguments"===o||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(o))return n(t,e)}(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function n(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,o=new Array(e);n{"use strict";var e=[];function n(t){for(var n=-1,o=0;o{"use strict";var e={};t.exports=function(t,n){var o=function(t){if(void 0===e[t]){var n=document.querySelector(t);if(window.HTMLIFrameElement&&n instanceof window.HTMLIFrameElement)try{n=n.contentDocument.head}catch(t){n=null}e[t]=n}return e[t]}(t);if(!o)throw new Error("Couldn't find a style target. This probably means that the value for the 'insert' parameter is invalid.");o.appendChild(n)}},9216:t=>{"use strict";t.exports=function(t){var e=document.createElement("style");return t.setAttributes(e,t.attributes),t.insert(e,t.options),e}},8575:t=>{"use strict";t.exports=function(t,e){Object.keys(e).forEach((function(n){t.setAttribute(n,e[n])}))}},9037:t=>{"use strict";var e,n=(e=[],function(t,n){return e[t]=n,e.filter(Boolean).join("\n")});function o(t,e,o,i){var r;if(o)r="";else{r="",i.supports&&(r+="@supports (".concat(i.supports,") {")),i.media&&(r+="@media ".concat(i.media," {"));var s=void 0!==i.layer;s&&(r+="@layer".concat(i.layer.length>0?" ".concat(i.layer):""," {")),r+=i.css,s&&(r+="}"),i.media&&(r+="}"),i.supports&&(r+="}")}if(t.styleSheet)t.styleSheet.cssText=n(e,r);else{var a=document.createTextNode(r),l=t.childNodes;l[e]&&t.removeChild(l[e]),l.length?t.insertBefore(a,l[e]):t.appendChild(a)}}var i={singleton:null,singletonCounter:0};t.exports=function(t){var e=i.singletonCounter++,n=i.singleton||(i.singleton=t.insertStyleElement(t));return{update:function(t){o(n,e,!1,t)},remove:function(t){o(n,e,!0,t)}}}}},e={};function n(o){var i=e[o];if(void 0!==i)return i.exports;var r=e[o]={id:o,exports:{}};return t[o].call(r.exports,r,r.exports,n),r.exports}n.n=t=>{var e=t&&t.__esModule?()=>t.default:()=>t;return n.d(e,{a:e}),e},n.d=(t,e)=>{for(var o in e)n.o(e,o)&&!n.o(t,o)&&Object.defineProperty(t,o,{enumerable:!0,get:e[o]})},n.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(t){if("object"==typeof window)return window}}(),n.o=(t,e)=>Object.prototype.hasOwnProperty.call(t,e);var o={};return(()=>{"use strict";n.d(o,{default:()=>dE});const t=function(){return function t(){t.called=!0}};class e{constructor(e,n){this.source=e,this.name=n,this.path=[],this.stop=t(),this.off=t()}}const i=new Array(256).fill("").map(((t,e)=>("0"+e.toString(16)).slice(-2)));function r(){const t=4294967296*Math.random()>>>0,e=4294967296*Math.random()>>>0,n=4294967296*Math.random()>>>0,o=4294967296*Math.random()>>>0;return"e"+i[t>>0&255]+i[t>>8&255]+i[t>>16&255]+i[t>>24&255]+i[e>>0&255]+i[e>>8&255]+i[e>>16&255]+i[e>>24&255]+i[n>>0&255]+i[n>>8&255]+i[n>>16&255]+i[n>>24&255]+i[o>>0&255]+i[o>>8&255]+i[o>>16&255]+i[o>>24&255]}const s={get(t="normal"){return"number"!=typeof t?this[t]||this.normal:t},highest:1e5,high:1e3,normal:0,low:-1e3,lowest:-1e5};function a(t,e){const n=s.get(e.priority);for(let o=0;o{if("object"==typeof e&&null!==e){if(n.has(e))return`[object ${e.constructor.name}]`;n.add(e)}return e},i=e?` ${JSON.stringify(e,o)}`:"",r=d(t);return t+i+r}(t,n)),this.name="CKEditorError",this.context=e,this.data=n}is(t){return"CKEditorError"===t}static rethrowUnexpectedError(t,e){if(t.is&&t.is("CKEditorError"))throw t;const n=new l(t.message,e);throw n.stack=t.stack,n}}function c(t,e){console.warn(...u(t,e))}function d(t){return`\nRead more: https://ckeditor.com/docs/ckeditor5/latest/support/error-codes.html#error-${t}`}function u(t,e){const n=d(t);return e?[t,e,n]:[t,n]}const h="35.0.1",m="object"==typeof window?window:n.g;if(m.CKEDITOR_VERSION)throw new l("ckeditor-duplicated-modules",null);m.CKEDITOR_VERSION=h;const g=Symbol("listeningTo"),p=Symbol("emitterId"),f=Symbol("delegations"),b={on(t,e,n={}){this.listenTo(this,t,e,n)},once(t,e,n){let o=!1;this.listenTo(this,t,((t,...n)=>{o||(o=!0,t.off(),e.call(this,t,...n))}),n)},off(t,e){this.stopListening(this,t,e)},listenTo(t,e,n,o={}){let i,r;this[g]||(this[g]={});const s=this[g];A(t)||w(t);const a=A(t);(i=s[a])||(i=s[a]={emitter:t,callbacks:{}}),(r=i.callbacks[e])||(r=i.callbacks[e]=[]),r.push(n),function(t,e,n,o,i){e._addEventListener?e._addEventListener(n,o,i):t._addEventListener.call(e,n,o,i)}(this,t,e,n,o)},stopListening(t,e,n){const o=this[g];let i=t&&A(t);const r=o&&i?o[i]:void 0,s=r&&e?r.callbacks[e]:void 0;if(!(!o||t&&!r||e&&!s))if(n){x(this,t,e,n);-1!==s.indexOf(n)&&(1===s.length?delete r.callbacks[e]:x(this,t,e,n))}else if(s){for(;n=s.pop();)x(this,t,e,n);delete r.callbacks[e]}else if(r){for(e in r.callbacks)this.stopListening(t,e);delete o[i]}else{for(i in o)this.stopListening(o[i].emitter);delete this[g]}},fire(t,...n){try{const o=t instanceof e?t:new e(this,t),i=o.name;let r=v(this,i);if(o.path.push(this),r){const t=[o,...n];r=Array.from(r);for(let e=0;e{this[f]||(this[f]=new Map),t.forEach((t=>{const o=this[f].get(t);o?o.set(e,n):this[f].set(t,new Map([[e,n]]))}))}}},stopDelegating(t,e){if(this[f])if(t)if(e){const n=this[f].get(t);n&&n.delete(e)}else this[f].delete(t);else this[f].clear()},_addEventListener(t,e,n){!function(t,e){const n=C(t);if(n[e])return;let o=e,i=null;const r=[];for(;""!==o&&!n[o];)n[o]={callbacks:[],childEvents:[]},r.push(n[o]),i&&n[o].childEvents.push(i),i=o,o=o.substr(0,o.lastIndexOf(":"));if(""!==o){for(const t of r)t.callbacks=n[o].callbacks.slice();n[o].childEvents.push(i)}}(this,t);const o=_(this,t),i={callback:e,priority:s.get(n.priority)};for(const t of o)a(t,i)},_removeEventListener(t,e){const n=_(this,t);for(const t of n)for(let n=0;n-1?v(t,e.substr(0,e.lastIndexOf(":"))):null}function y(t,n,o){for(let[i,r]of t){r?"function"==typeof r&&(r=r(n.name)):r=n.name;const t=new e(n.source,r);t.path=[...n.path],i.fire(t,...o)}}function x(t,e,n,o){e._removeEventListener?e._removeEventListener(n,o):t._removeEventListener.call(e,n,o)}const E=function(t){var e=typeof t;return null!=t&&("object"==e||"function"==e)},D=Symbol("observableProperties"),S=Symbol("boundObservables"),I=Symbol("boundProperties"),T=Symbol("decoratedMethods"),M=Symbol("decoratedOriginal"),B={set(t,e){if(E(t))return void Object.keys(t).forEach((e=>{this.set(e,t[e])}),this);z(this);const n=this[D];if(t in this&&!n.has(t))throw new l("observable-set-cannot-override",this);Object.defineProperty(this,t,{enumerable:!0,configurable:!0,get:()=>n.get(t),set(e){const o=n.get(t);let i=this.fire("set:"+t,t,e,o);void 0===i&&(i=e),o===i&&n.has(t)||(n.set(t,i),this.fire("change:"+t,t,i,o))}}),this[t]=e},bind(...t){if(!t.length||!O(t))throw new l("observable-bind-wrong-properties",this);if(new Set(t).size!==t.length)throw new l("observable-bind-duplicate-properties",this);z(this);const e=this[I];t.forEach((t=>{if(e.has(t))throw new l("observable-bind-rebind",this)}));const n=new Map;return t.forEach((t=>{const o={property:t,to:[]};e.set(t,o),n.set(t,o)})),{to:P,toMany:L,_observable:this,_bindProperties:t,_to:[],_bindings:n}},unbind(...t){if(!this[D])return;const e=this[I],n=this[S];if(t.length){if(!O(t))throw new l("observable-unbind-wrong-properties",this);t.forEach((t=>{const o=e.get(t);o&&(o.to.forEach((([t,e])=>{const i=n.get(t),r=i[e];r.delete(o),r.size||delete i[e],Object.keys(i).length||(n.delete(t),this.stopListening(t,"change"))})),e.delete(t))}))}else n.forEach(((t,e)=>{this.stopListening(e,"change")})),n.clear(),e.clear()},decorate(t){z(this);const e=this[t];if(!e)throw new l("observablemixin-cannot-decorate-undefined",this,{object:this,methodName:t});this.on(t,((t,n)=>{t.return=e.apply(this,n)})),this[t]=function(...e){return this.fire(t,e)},this[t][M]=e,this[T]||(this[T]=[]),this[T].push(t)},...k};B.stopListening=function(t,e,n){if(!t&&this[T]){for(const t of this[T])this[t]=this[t][M];delete this[T]}k.stopListening.call(this,t,e,n)};const N=B;function z(t){t[D]||(Object.defineProperty(t,D,{value:new Map}),Object.defineProperty(t,S,{value:new Map}),Object.defineProperty(t,I,{value:new Map}))}function P(...t){const e=function(...t){if(!t.length)throw new l("observable-bind-to-parse-error",null);const e={to:[]};let n;"function"==typeof t[t.length-1]&&(e.callback=t.pop());return t.forEach((t=>{if("string"==typeof t)n.properties.push(t);else{if("object"!=typeof t)throw new l("observable-bind-to-parse-error",null);n={observable:t,properties:[]},e.to.push(n)}})),e}(...t),n=Array.from(this._bindings.keys()),o=n.length;if(!e.callback&&e.to.length>1)throw new l("observable-bind-to-no-callback",this);if(o>1&&e.callback)throw new l("observable-bind-to-extra-callback",this);var i;e.to.forEach((t=>{if(t.properties.length&&t.properties.length!==o)throw new l("observable-bind-to-properties-length",this);t.properties.length||(t.properties=this._bindProperties)})),this._to=e.to,e.callback&&(this._bindings.get(n[0]).callback=e.callback),i=this._observable,this._to.forEach((t=>{const e=i[S];let n;e.get(t.observable)||i.listenTo(t.observable,"change",((o,r)=>{n=e.get(t.observable)[r],n&&n.forEach((t=>{R(i,t.property)}))}))})),function(t){let e;t._bindings.forEach(((n,o)=>{t._to.forEach((i=>{e=i.properties[n.callback?0:t._bindProperties.indexOf(o)],n.to.push([i.observable,e]),function(t,e,n,o){const i=t[S],r=i.get(n),s=r||{};s[o]||(s[o]=new Set);s[o].add(e),r||i.set(n,s)}(t._observable,n,i.observable,e)}))}))}(this),this._bindProperties.forEach((t=>{R(this._observable,t)}))}function L(t,e,n){if(this._bindings.size>1)throw new l("observable-bind-to-many-not-one-binding",this);this.to(...function(t,e){const n=t.map((t=>[t,e]));return Array.prototype.concat.apply([],n)}(t,e),n)}function O(t){return t.every((t=>"string"==typeof t))}function R(t,e){const n=t[I].get(e);let o;n.callback?o=n.callback.apply(t,n.to.map((t=>t[0][t[1]]))):(o=n.to[0],o=o[0][o[1]]),Object.prototype.hasOwnProperty.call(t,e)?t[e]=o:t.set(e,o)}function j(t,...e){e.forEach((e=>{const n=Object.getOwnPropertyNames(e),o=Object.getOwnPropertySymbols(e);n.concat(o).forEach((n=>{if(n in t.prototype)return;const o=Object.getOwnPropertyDescriptor(e,n);o.enumerable=!1,Object.defineProperty(t.prototype,n,o)}))}))}class V{constructor(t){this.editor=t,this.set("isEnabled",!0),this._disableStack=new Set}forceDisabled(t){this._disableStack.add(t),1==this._disableStack.size&&(this.on("set:isEnabled",F,{priority:"highest"}),this.isEnabled=!1)}clearForceDisabled(t){this._disableStack.delete(t),0==this._disableStack.size&&(this.off("set:isEnabled",F),this.isEnabled=!0)}destroy(){this.stopListening()}static get isContextPlugin(){return!1}}function F(t){t.return=!1,t.stop()}j(V,N);class H{constructor(t){this.editor=t,this.set("value",void 0),this.set("isEnabled",!1),this.affectsData=!0,this._disableStack=new Set,this.decorate("execute"),this.listenTo(this.editor.model.document,"change",(()=>{this.refresh()})),this.on("execute",(t=>{this.isEnabled||t.stop()}),{priority:"high"}),this.listenTo(t,"change:isReadOnly",((t,e,n)=>{n&&this.affectsData?this.forceDisabled("readOnlyMode"):this.clearForceDisabled("readOnlyMode")}))}refresh(){this.isEnabled=!0}forceDisabled(t){this._disableStack.add(t),1==this._disableStack.size&&(this.on("set:isEnabled",U,{priority:"highest"}),this.isEnabled=!1)}clearForceDisabled(t){this._disableStack.delete(t),0==this._disableStack.size&&(this.off("set:isEnabled",U),this.refresh())}execute(){}destroy(){this.stopListening()}}function U(t){t.return=!1,t.stop()}j(H,N);class q extends H{constructor(t){super(t),this._childCommandsDefinitions=[]}refresh(){}execute(...t){const e=this._getFirstEnabledCommand();return!!e&&e.execute(t)}registerChildCommand(t,e={priority:"normal"}){a(this._childCommandsDefinitions,{command:t,priority:e.priority}),t.on("change:isEnabled",(()=>this._checkEnabled())),this._checkEnabled()}_checkEnabled(){this.isEnabled=!!this._getFirstEnabledCommand()}_getFirstEnabledCommand(){const t=this._childCommandsDefinitions.find((({command:t})=>t.isEnabled));return t&&t.command}}const G="object"==typeof global&&global&&global.Object===Object&&global;var W="object"==typeof self&&self&&self.Object===Object&&self;const Z=G||W||Function("return this")();const Y=Z.Symbol;var K=Object.prototype,$=K.hasOwnProperty,Q=K.toString,J=Y?Y.toStringTag:void 0;const X=function(t){var e=$.call(t,J),n=t[J];try{t[J]=void 0;var o=!0}catch(t){}var i=Q.call(t);return o&&(e?t[J]=n:delete t[J]),i};var tt=Object.prototype.toString;const et=function(t){return tt.call(t)};var nt=Y?Y.toStringTag:void 0;const ot=function(t){return null==t?void 0===t?"[object Undefined]":"[object Null]":nt&&nt in Object(t)?X(t):et(t)};const it=function(t,e){return function(n){return t(e(n))}};const rt=it(Object.getPrototypeOf,Object);const st=function(t){return null!=t&&"object"==typeof t};var at=Function.prototype,lt=Object.prototype,ct=at.toString,dt=lt.hasOwnProperty,ut=ct.call(Object);const ht=function(t){if(!st(t)||"[object Object]"!=ot(t))return!1;var e=rt(t);if(null===e)return!0;var n=dt.call(e,"constructor")&&e.constructor;return"function"==typeof n&&n instanceof n&&ct.call(n)==ut};const mt=function(){this.__data__=[],this.size=0};const gt=function(t,e){return t===e||t!=t&&e!=e};const pt=function(t,e){for(var n=t.length;n--;)if(gt(t[n][0],e))return n;return-1};var ft=Array.prototype.splice;const bt=function(t){var e=this.__data__,n=pt(e,t);return!(n<0)&&(n==e.length-1?e.pop():ft.call(e,n,1),--this.size,!0)};const kt=function(t){var e=this.__data__,n=pt(e,t);return n<0?void 0:e[n][1]};const wt=function(t){return pt(this.__data__,t)>-1};const At=function(t,e){var n=this.__data__,o=pt(n,t);return o<0?(++this.size,n.push([t,e])):n[o][1]=e,this};function Ct(t){var e=-1,n=null==t?0:t.length;for(this.clear();++e-1&&t%1==0&&t-1&&t%1==0&&t<=9007199254740991};var Be={};Be["[object Float32Array]"]=Be["[object Float64Array]"]=Be["[object Int8Array]"]=Be["[object Int16Array]"]=Be["[object Int32Array]"]=Be["[object Uint8Array]"]=Be["[object Uint8ClampedArray]"]=Be["[object Uint16Array]"]=Be["[object Uint32Array]"]=!0,Be["[object Arguments]"]=Be["[object Array]"]=Be["[object ArrayBuffer]"]=Be["[object Boolean]"]=Be["[object DataView]"]=Be["[object Date]"]=Be["[object Error]"]=Be["[object Function]"]=Be["[object Map]"]=Be["[object Number]"]=Be["[object Object]"]=Be["[object RegExp]"]=Be["[object Set]"]=Be["[object String]"]=Be["[object WeakMap]"]=!1;const Ne=function(t){return st(t)&&Me(t.length)&&!!Be[ot(t)]};const ze=function(t){return function(e){return t(e)}};var Pe="object"==typeof exports&&exports&&!exports.nodeType&&exports,Le=Pe&&"object"==typeof module&&module&&!module.nodeType&&module,Oe=Le&&Le.exports===Pe&&G.process;const Re=function(){try{var t=Le&&Le.require&&Le.require("util").types;return t||Oe&&Oe.binding&&Oe.binding("util")}catch(t){}}();var je=Re&&Re.isTypedArray;const Ve=je?ze(je):Ne;var Fe=Object.prototype.hasOwnProperty;const He=function(t,e){var n=ve(t),o=!n&&_e(t),i=!n&&!o&&Se(t),r=!n&&!o&&!i&&Ve(t),s=n||o||i||r,a=s?be(t.length,String):[],l=a.length;for(var c in t)!e&&!Fe.call(t,c)||s&&("length"==c||i&&("offset"==c||"parent"==c)||r&&("buffer"==c||"byteLength"==c||"byteOffset"==c)||Te(c,l))||a.push(c);return a};var Ue=Object.prototype;const qe=function(t){var e=t&&t.constructor;return t===("function"==typeof e&&e.prototype||Ue)};const Ge=it(Object.keys,Object);var We=Object.prototype.hasOwnProperty;const Ze=function(t){if(!qe(t))return Ge(t);var e=[];for(var n in Object(t))We.call(t,n)&&"constructor"!=n&&e.push(n);return e};const Ye=function(t){return null!=t&&Me(t.length)&&!Dt(t)};const Ke=function(t){return Ye(t)?He(t):Ze(t)};const $e=function(t,e){return t&&fe(e,Ke(e),t)};const Qe=function(t){var e=[];if(null!=t)for(var n in Object(t))e.push(n);return e};var Je=Object.prototype.hasOwnProperty;const Xe=function(t){if(!E(t))return Qe(t);var e=qe(t),n=[];for(var o in t)("constructor"!=o||!e&&Je.call(t,o))&&n.push(o);return n};const tn=function(t){return Ye(t)?He(t,!0):Xe(t)};const en=function(t,e){return t&&fe(e,tn(e),t)};var nn="object"==typeof exports&&exports&&!exports.nodeType&&exports,on=nn&&"object"==typeof module&&module&&!module.nodeType&&module,rn=on&&on.exports===nn?Z.Buffer:void 0,sn=rn?rn.allocUnsafe:void 0;const an=function(t,e){if(e)return t.slice();var n=t.length,o=sn?sn(n):new t.constructor(n);return t.copy(o),o};const ln=function(t,e){var n=-1,o=t.length;for(e||(e=Array(o));++n{this._setToTarget(t,o,e[o],n)}))}}function mo(t){return co(t,go)}function go(t){return uo(t)?t:void 0}function po(t){return!(!t||!t[Symbol.iterator])}class fo{constructor(t={},e={}){const n=po(t);if(n||(e=t),this._items=[],this._itemMap=new Map,this._idProperty=e.idProperty||"id",this._bindToExternalToInternalMap=new WeakMap,this._bindToInternalToExternalMap=new WeakMap,this._skippedIndexesFromExternal=[],n)for(const e of t)this._items.push(e),this._itemMap.set(this._getItemIdBeforeAdding(e),e)}get length(){return this._items.length}get first(){return this._items[0]||null}get last(){return this._items[this.length-1]||null}add(t,e){return this.addMany([t],e)}addMany(t,e){if(void 0===e)e=this._items.length;else if(e>this._items.length||e<0)throw new l("collection-add-item-invalid-index",this);let n=0;for(const o of t){const t=this._getItemIdBeforeAdding(o),i=e+n;this._items.splice(i,0,o),this._itemMap.set(t,o),this.fire("add",o,i),n++}return this.fire("change",{added:t,removed:[],index:e}),this}get(t){let e;if("string"==typeof t)e=this._itemMap.get(t);else{if("number"!=typeof t)throw new l("collection-get-invalid-arg",this);e=this._items[t]}return e||null}has(t){if("string"==typeof t)return this._itemMap.has(t);{const e=t[this._idProperty];return e&&this._itemMap.has(e)}}getIndex(t){let e;return e="string"==typeof t?this._itemMap.get(t):t,e?this._items.indexOf(e):-1}remove(t){const[e,n]=this._remove(t);return this.fire("change",{added:[],removed:[e],index:n}),e}map(t,e){return this._items.map(t,e)}find(t,e){return this._items.find(t,e)}filter(t,e){return this._items.filter(t,e)}clear(){this._bindToCollection&&(this.stopListening(this._bindToCollection),this._bindToCollection=null);const t=Array.from(this._items);for(;this.length;)this._remove(0);this.fire("change",{added:[],removed:t,index:0})}bindTo(t){if(this._bindToCollection)throw new l("collection-bind-to-rebind",this);return this._bindToCollection=t,{as:t=>{this._setUpBindToBinding((e=>new t(e)))},using:t=>{"function"==typeof t?this._setUpBindToBinding(t):this._setUpBindToBinding((e=>e[t]))}}}_setUpBindToBinding(t){const e=this._bindToCollection,n=(n,o,i)=>{const r=e._bindToCollection==this,s=e._bindToInternalToExternalMap.get(o);if(r&&s)this._bindToExternalToInternalMap.set(o,s),this._bindToInternalToExternalMap.set(s,o);else{const n=t(o);if(!n)return void this._skippedIndexesFromExternal.push(i);let r=i;for(const t of this._skippedIndexesFromExternal)i>t&&r--;for(const t of e._skippedIndexesFromExternal)r>=t&&r++;this._bindToExternalToInternalMap.set(o,n),this._bindToInternalToExternalMap.set(n,o),this.add(n,r);for(let t=0;t{const o=this._bindToExternalToInternalMap.get(e);o&&this.remove(o),this._skippedIndexesFromExternal=this._skippedIndexesFromExternal.reduce(((t,e)=>(ne&&t.push(e),t)),[])}))}_getItemIdBeforeAdding(t){const e=this._idProperty;let n;if(e in t){if(n=t[e],"string"!=typeof n)throw new l("collection-add-invalid-id",this);if(this.get(n))throw new l("collection-add-item-already-exists",this)}else t[e]=n=r();return n}_remove(t){let e,n,o,i=!1;const r=this._idProperty;if("string"==typeof t?(n=t,o=this._itemMap.get(n),i=!o,o&&(e=this._items.indexOf(o))):"number"==typeof t?(e=t,o=this._items[e],i=!o,o&&(n=o[r])):(o=t,n=o[r],e=this._items.indexOf(o),i=-1==e||!this._itemMap.get(n)),i)throw new l("collection-remove-404",this);this._items.splice(e,1),this._itemMap.delete(n);const s=this._bindToInternalToExternalMap.get(o);return this._bindToInternalToExternalMap.delete(o),this._bindToExternalToInternalMap.delete(s),this.fire("remove",o,e),[o,e]}[Symbol.iterator](){return this._items[Symbol.iterator]()}}j(fo,k);const bo=fo;class ko{constructor(t,e=[],n=[]){this._context=t,this._plugins=new Map,this._availablePlugins=new Map;for(const t of e)t.pluginName&&this._availablePlugins.set(t.pluginName,t);this._contextPlugins=new Map;for(const[t,e]of n)this._contextPlugins.set(t,e),this._contextPlugins.set(e,t),t.pluginName&&this._availablePlugins.set(t.pluginName,t)}*[Symbol.iterator](){for(const t of this._plugins)"function"==typeof t[0]&&(yield t)}get(t){const e=this._plugins.get(t);if(!e){let e=t;throw"function"==typeof t&&(e=t.pluginName||t.name),new l("plugincollection-plugin-not-loaded",this._context,{plugin:e})}return e}has(t){return this._plugins.has(t)}init(t,e=[],n=[]){const o=this,i=this._context;!function t(e,n=new Set){e.forEach((e=>{a(e)&&(n.has(e)||(n.add(e),e.pluginName&&!o._availablePlugins.has(e.pluginName)&&o._availablePlugins.set(e.pluginName,e),e.requires&&t(e.requires,n)))}))}(t),h(t);const r=[...function t(e,n=new Set){return e.map((t=>a(t)?t:o._availablePlugins.get(t))).reduce(((e,o)=>n.has(o)?e:(n.add(o),o.requires&&(h(o.requires,o),t(o.requires,n).forEach((t=>e.add(t)))),e.add(o))),new Set)}(t.filter((t=>!d(t,e))))];!function(t,e){for(const n of e){if("function"!=typeof n)throw new l("plugincollection-replace-plugin-invalid-type",null,{pluginItem:n});const e=n.pluginName;if(!e)throw new l("plugincollection-replace-plugin-missing-name",null,{pluginItem:n});if(n.requires&&n.requires.length)throw new l("plugincollection-plugin-for-replacing-cannot-have-dependencies",null,{pluginName:e});const i=o._availablePlugins.get(e);if(!i)throw new l("plugincollection-plugin-for-replacing-not-exist",null,{pluginName:e});const r=t.indexOf(i);if(-1===r){if(o._contextPlugins.has(i))return;throw new l("plugincollection-plugin-for-replacing-not-loaded",null,{pluginName:e})}if(i.requires&&i.requires.length)throw new l("plugincollection-replaced-plugin-cannot-have-dependencies",null,{pluginName:e});t.splice(r,1,n),o._availablePlugins.set(e,n)}}(r,n);const s=function(t){return t.map((t=>{const e=o._contextPlugins.get(t)||new t(i);return o._add(t,e),e}))}(r);return m(s,"init").then((()=>m(s,"afterInit"))).then((()=>s));function a(t){return"function"==typeof t}function c(t){return a(t)&&t.isContextPlugin}function d(t,e){return e.some((e=>e===t||(u(t)===e||u(e)===t)))}function u(t){return a(t)?t.pluginName||t.name:t}function h(t,n=null){t.map((t=>a(t)?t:o._availablePlugins.get(t)||t)).forEach((t=>{!function(t,e){if(a(t))return;if(e)throw new l("plugincollection-soft-required",i,{missingPlugin:t,requiredBy:u(e)});throw new l("plugincollection-plugin-not-found",i,{plugin:t})}(t,n),function(t,e){if(!c(e))return;if(c(t))return;throw new l("plugincollection-context-required",i,{plugin:u(t),requiredBy:u(e)})}(t,n),function(t,n){if(!n)return;if(!d(t,e))return;throw new l("plugincollection-required",i,{plugin:u(t),requiredBy:u(n)})}(t,n)}))}function m(t,e){return t.reduce(((t,n)=>n[e]?o._contextPlugins.has(n)?t:t.then(n[e].bind(n)):t),Promise.resolve())}}destroy(){const t=[];for(const[,e]of this)"function"!=typeof e.destroy||this._contextPlugins.has(e)||t.push(e.destroy());return Promise.all(t)}_add(t,e){this._plugins.set(t,e);const n=t.pluginName;if(n){if(this._plugins.has(n))throw new l("plugincollection-plugin-name-conflict",null,{pluginName:n,plugin1:this._plugins.get(n).constructor,plugin2:t});this._plugins.set(n,e)}}}function wo(t){return Array.isArray(t)?t:[t]}function Ao(t,e,n=1){if("number"!=typeof n)throw new l("translation-service-quantity-not-a-number",null,{quantity:n});const o=Object.keys(window.CKEDITOR_TRANSLATIONS).length;1===o&&(t=Object.keys(window.CKEDITOR_TRANSLATIONS)[0]);const i=e.id||e.string;if(0===o||!function(t,e){return!!window.CKEDITOR_TRANSLATIONS[t]&&!!window.CKEDITOR_TRANSLATIONS[t].dictionary[e]}(t,i))return 1!==n?e.plural:e.string;const r=window.CKEDITOR_TRANSLATIONS[t].dictionary,s=window.CKEDITOR_TRANSLATIONS[t].getPluralForm||(t=>1===t?0:1),a=r[i];if("string"==typeof a)return a;return a[Number(s(n))]}j(ko,k),window.CKEDITOR_TRANSLATIONS||(window.CKEDITOR_TRANSLATIONS={});const Co=["ar","ara","fa","per","fas","he","heb","ku","kur","ug","uig"];function _o(t){return Co.includes(t)?"rtl":"ltr"}class vo{constructor(t={}){this.uiLanguage=t.uiLanguage||"en",this.contentLanguage=t.contentLanguage||this.uiLanguage,this.uiLanguageDirection=_o(this.uiLanguage),this.contentLanguageDirection=_o(this.contentLanguage),this.t=(t,e)=>this._t(t,e)}get language(){return console.warn("locale-deprecated-language-property: The Locale#language property has been deprecated and will be removed in the near future. Please use #uiLanguage and #contentLanguage properties instead."),this.uiLanguage}_t(t,e=[]){e=wo(e),"string"==typeof t&&(t={string:t});const n=!!t.plural?e[0]:1;return function(t,e){return t.replace(/%(\d+)/g,((t,n)=>nt.destroy()))).then((()=>this.plugins.destroy()))}_addEditor(t,e){if(this._contextOwner)throw new l("context-addeditor-private-context");this.editors.add(t),e&&(this._contextOwner=t)}_removeEditor(t){return this.editors.has(t)&&this.editors.remove(t),this._contextOwner===t?this.destroy():Promise.resolve()}_getEditorConfig(){const t={};for(const e of this.config.names())["plugins","removePlugins","extraPlugins"].includes(e)||(t[e]=this.config.get(e));return t}static create(t){return new Promise((e=>{const n=new this(t);e(n.initPlugins().then((()=>n)))}))}}class xo{constructor(t){this.context=t}destroy(){this.stopListening()}static get isContextPlugin(){return!0}}function Eo(t,e){const n=Math.min(t.length,e.length);for(let o=0;ot.data.length)throw new l("view-textproxy-wrong-offsetintext",this);if(n<0||e+n>t.data.length)throw new l("view-textproxy-wrong-length",this);this.data=t.data.substring(e,e+n),this.offsetInText=e}get offsetSize(){return this.data.length}get isPartial(){return this.data.length!==this.textNode.data.length}get parent(){return this.textNode.parent}get root(){return this.textNode.root}get document(){return this.textNode.document}is(t){return"$textProxy"===t||"view:$textProxy"===t||"textProxy"===t||"view:textProxy"===t}getAncestors(t={includeSelf:!1,parentFirst:!1}){const e=[];let n=t.includeSelf?this.textNode:this.parent;for(;null!==n;)e[t.parentFirst?"push":"unshift"](n),n=n.parent;return e}}function Mo(t){return po(t)?new Map(t):function(t){const e=new Map;for(const n in t)e.set(n,t[n]);return e}(t)}class Bo{constructor(...t){this._patterns=[],this.add(...t)}add(...t){for(let e of t)("string"==typeof e||e instanceof RegExp)&&(e={name:e}),this._patterns.push(e)}match(...t){for(const e of t)for(const t of this._patterns){const n=No(e,t);if(n)return{element:e,pattern:t,match:n}}return null}matchAll(...t){const e=[];for(const n of t)for(const t of this._patterns){const o=No(n,t);o&&e.push({element:n,pattern:t,match:o})}return e.length>0?e:null}getElementName(){if(1!==this._patterns.length)return null;const t=this._patterns[0],e=t.name;return"function"==typeof t||!e||e instanceof RegExp?null:e}}function No(t,e){if("function"==typeof e)return e(t);const n={};return e.name&&(n.name=function(t,e){if(t instanceof RegExp)return!!e.match(t);return t===e}(e.name,t.name),!n.name)||e.attributes&&(n.attributes=function(t,e){const n=new Set(e.getAttributeKeys());ht(t)?(void 0!==t.style&&c("matcher-pattern-deprecated-attributes-style-key",t),void 0!==t.class&&c("matcher-pattern-deprecated-attributes-class-key",t)):(n.delete("style"),n.delete("class"));return zo(t,n,(t=>e.getAttribute(t)))}(e.attributes,t),!n.attributes)?null:!(e.classes&&(n.classes=function(t,e){return zo(t,e.getClassNames())}(e.classes,t),!n.classes))&&(!(e.styles&&(n.styles=function(t,e){return zo(t,e.getStyleNames(!0),(t=>e.getStyle(t)))}(e.styles,t),!n.styles))&&n)}function zo(t,e,n){const o=function(t){if(Array.isArray(t))return t.map((t=>ht(t)?(void 0!==t.key&&void 0!==t.value||c("matcher-pattern-missing-key-or-value",t),[t.key,t.value]):[t,!0]));if(ht(t))return Object.entries(t);return[[t,!0]]}(t),i=Array.from(e),r=[];return o.forEach((([t,e])=>{i.forEach((o=>{(function(t,e){return!0===t||t===e||t instanceof RegExp&&e.match(t)})(t,o)&&function(t,e,n){if(!0===t)return!0;const o=n(e);return t===o||t instanceof RegExp&&!!String(o).match(t)}(e,o,n)&&r.push(o)}))})),!o.length||r.lengthi?0:i+e),(n=n>i?i:n)<0&&(n+=i),i=e>n?0:n-e>>>0,e>>>=0;for(var r=Array(i);++o0){if(++e>=800)return arguments[0]}else e=0;return t.apply(void 0,arguments)}};const Ai=wi(bi);const Ci=function(t,e){return Ai(pi(t,e,hi),t+"")};const _i=function(t,e,n){if(!E(n))return!1;var o=typeof e;return!!("number"==o?Ye(n)&&Te(e,n.length):"string"==o&&e in n)&>(n[e],t)};const vi=function(t){return Ci((function(e,n){var o=-1,i=n.length,r=i>1?n[i-1]:void 0,s=i>2?n[2]:void 0;for(r=t.length>3&&"function"==typeof r?(i--,r):void 0,s&&_i(n[0],n[1],s)&&(r=i<3?void 0:r,i=1),e=Object(e);++oe===t));return Array.isArray(e)}set(t,e){if(E(t))for(const[e,n]of Object.entries(t))this._styleProcessor.toNormalizedForm(e,n,this._styles);else this._styleProcessor.toNormalizedForm(t,e,this._styles)}remove(t){const e=Ii(t);oi(this._styles,e),delete this._styles[t],this._cleanEmptyObjectsOnPath(e)}getNormalized(t){return this._styleProcessor.getNormalized(t,this._styles)}toString(){return this.isEmpty?"":this._getStylesEntries().map((t=>t.join(":"))).sort().join(";")+";"}getAsString(t){if(this.isEmpty)return;if(this._styles[t]&&!E(this._styles[t]))return this._styles[t];const e=this._styleProcessor.getReducedForm(t,this._styles).find((([e])=>e===t));return Array.isArray(e)?e[1]:void 0}getStyleNames(t=!1){if(this.isEmpty)return[];if(t)return this._styleProcessor.getStyleNames(this._styles);return this._getStylesEntries().map((([t])=>t))}clear(){this._styles={}}_getStylesEntries(){const t=[],e=Object.keys(this._styles);for(const n of e)t.push(...this._styleProcessor.getReducedForm(n,this._styles));return t}_cleanEmptyObjectsOnPath(t){const e=t.split(".");if(!(e.length>1))return;const n=e.splice(0,e.length-1).join("."),o=ii(this._styles,n);if(!o)return;!Array.from(Object.keys(o)).length&&this.remove(n)}}class Si{constructor(){this._normalizers=new Map,this._extractors=new Map,this._reducers=new Map,this._consumables=new Map}toNormalizedForm(t,e,n){if(E(e))Ti(n,Ii(t),e);else if(this._normalizers.has(t)){const o=this._normalizers.get(t),{path:i,value:r}=o(e);Ti(n,i,r)}else Ti(n,t,e)}getNormalized(t,e){if(!t)return yi({},e);if(void 0!==e[t])return e[t];if(this._extractors.has(t)){const n=this._extractors.get(t);if("string"==typeof n)return ii(e,n);const o=n(t,e);if(o)return o}return ii(e,Ii(t))}getReducedForm(t,e){const n=this.getNormalized(t,e);if(void 0===n)return[];if(this._reducers.has(t)){return this._reducers.get(t)(n)}return[[t,n]]}getStyleNames(t){const e=Array.from(this._consumables.keys()).filter((e=>{const n=this.getNormalized(e,t);return n&&"object"==typeof n?Object.keys(n).length:n})),n=new Set([...e,...Object.keys(t)]);return Array.from(n.values())}getRelatedStyles(t){return this._consumables.get(t)||[]}setNormalizer(t,e){this._normalizers.set(t,e)}setExtractor(t,e){this._extractors.set(t,e)}setReducer(t,e){this._reducers.set(t,e)}setStyleRelation(t,e){this._mapStyleNames(t,e);for(const n of e)this._mapStyleNames(n,[t])}_mapStyleNames(t,e){this._consumables.has(t)||this._consumables.set(t,[]),this._consumables.get(t).push(...e)}}function Ii(t){return t.replace("-",".")}function Ti(t,e,n){let o=n;E(n)&&(o=yi({},ii(t,e),n)),Ei(t,e,o)}class Mi extends So{constructor(t,e,n,o){if(super(t),this.name=e,this._attrs=function(t){t=Mo(t);for(const[e,n]of t)null===n?t.delete(e):"string"!=typeof n&&t.set(e,String(n));return t}(n),this._children=[],o&&this._insertChild(0,o),this._classes=new Set,this._attrs.has("class")){const t=this._attrs.get("class");Bi(this._classes,t),this._attrs.delete("class")}this._styles=new Di(this.document.stylesProcessor),this._attrs.has("style")&&(this._styles.setTo(this._attrs.get("style")),this._attrs.delete("style")),this._customProperties=new Map,this._unsafeAttributesToRender=[]}get childCount(){return this._children.length}get isEmpty(){return 0===this._children.length}is(t,e=null){return e?e===this.name&&("element"===t||"view:element"===t):"element"===t||"view:element"===t||"node"===t||"view:node"===t}getChild(t){return this._children[t]}getChildIndex(t){return this._children.indexOf(t)}getChildren(){return this._children[Symbol.iterator]()}*getAttributeKeys(){this._classes.size>0&&(yield"class"),this._styles.isEmpty||(yield"style"),yield*this._attrs.keys()}*getAttributes(){yield*this._attrs.entries(),this._classes.size>0&&(yield["class",this.getAttribute("class")]),this._styles.isEmpty||(yield["style",this.getAttribute("style")])}getAttribute(t){if("class"==t)return this._classes.size>0?[...this._classes].join(" "):void 0;if("style"==t){const t=this._styles.toString();return""==t?void 0:t}return this._attrs.get(t)}hasAttribute(t){return"class"==t?this._classes.size>0:"style"==t?!this._styles.isEmpty:this._attrs.has(t)}isSimilar(t){if(!(t instanceof Mi))return!1;if(this===t)return!0;if(this.name!=t.name)return!1;if(this._attrs.size!==t._attrs.size||this._classes.size!==t._classes.size||this._styles.size!==t._styles.size)return!1;for(const[e,n]of this._attrs)if(!t._attrs.has(e)||t._attrs.get(e)!==n)return!1;for(const e of this._classes)if(!t._classes.has(e))return!1;for(const e of this._styles.getStyleNames())if(!t._styles.has(e)||t._styles.getAsString(e)!==this._styles.getAsString(e))return!1;return!0}hasClass(...t){for(const e of t)if(!this._classes.has(e))return!1;return!0}getClassNames(){return this._classes.keys()}getStyle(t){return this._styles.getAsString(t)}getNormalizedStyle(t){return this._styles.getNormalized(t)}getStyleNames(t=!1){return this._styles.getStyleNames(t)}hasStyle(...t){for(const e of t)if(!this._styles.has(e))return!1;return!0}findAncestor(...t){const e=new Bo(...t);let n=this.parent;for(;n;){if(e.match(n))return n;n=n.parent}return null}getCustomProperty(t){return this._customProperties.get(t)}*getCustomProperties(){yield*this._customProperties.entries()}getIdentity(){const t=Array.from(this._classes).sort().join(","),e=this._styles.toString(),n=Array.from(this._attrs).map((t=>`${t[0]}="${t[1]}"`)).sort().join(" ");return this.name+(""==t?"":` class="${t}"`)+(e?` style="${e}"`:"")+(""==n?"":` ${n}`)}shouldRenderUnsafeAttribute(t){return this._unsafeAttributesToRender.includes(t)}_clone(t=!1){const e=[];if(t)for(const n of this.getChildren())e.push(n._clone(t));const n=new this.constructor(this.document,this.name,this._attrs,e);return n._classes=new Set(this._classes),n._styles.set(this._styles.getNormalized()),n._customProperties=new Map(this._customProperties),n.getFillerOffset=this.getFillerOffset,n._unsafeAttributesToRender=this._unsafeAttributesToRender,n}_appendChild(t){return this._insertChild(this.childCount,t)}_insertChild(t,e){this._fireChange("children",this);let n=0;const o=function(t,e){if("string"==typeof e)return[new Io(t,e)];po(e)||(e=[e]);return Array.from(e).map((e=>"string"==typeof e?new Io(t,e):e instanceof To?new Io(t,e.data):e))}(this.document,e);for(const e of o)null!==e.parent&&e._remove(),e.parent=this,e.document=this.document,this._children.splice(t,0,e),t++,n++;return n}_removeChildren(t,e=1){this._fireChange("children",this);for(let n=t;n0&&(this._classes.clear(),!0):"style"==t?!this._styles.isEmpty&&(this._styles.clear(),!0):this._attrs.delete(t)}_addClass(t){this._fireChange("attributes",this);for(const e of wo(t))this._classes.add(e)}_removeClass(t){this._fireChange("attributes",this);for(const e of wo(t))this._classes.delete(e)}_setStyle(t,e){this._fireChange("attributes",this),this._styles.set(t,e)}_removeStyle(t){this._fireChange("attributes",this);for(const e of wo(t))this._styles.remove(e)}_setCustomProperty(t,e){this._customProperties.set(t,e)}_removeCustomProperty(t){return this._customProperties.delete(t)}}function Bi(t,e){const n=e.split(/\s+/);t.clear(),n.forEach((e=>t.add(e)))}class Ni extends Mi{constructor(t,e,n,o){super(t,e,n,o),this.getFillerOffset=zi}is(t,e=null){return e?e===this.name&&("containerElement"===t||"view:containerElement"===t||"element"===t||"view:element"===t):"containerElement"===t||"view:containerElement"===t||"element"===t||"view:element"===t||"node"===t||"view:node"===t}}function zi(){const t=[...this.getChildren()],e=t[this.childCount-1];if(e&&e.is("element","br"))return this.childCount;for(const e of t)if(!e.is("uiElement"))return null;return this.childCount}class Pi extends Ni{constructor(t,e,n,o){super(t,e,n,o),this.set("isReadOnly",!1),this.set("isFocused",!1),this.bind("isReadOnly").to(t),this.bind("isFocused").to(t,"isFocused",(e=>e&&t.selection.editableElement==this)),this.listenTo(t.selection,"change",(()=>{this.isFocused=t.isFocused&&t.selection.editableElement==this}))}is(t,e=null){return e?e===this.name&&("editableElement"===t||"view:editableElement"===t||"containerElement"===t||"view:containerElement"===t||"element"===t||"view:element"===t):"editableElement"===t||"view:editableElement"===t||"containerElement"===t||"view:containerElement"===t||"element"===t||"view:element"===t||"node"===t||"view:node"===t}destroy(){this.stopListening()}}j(Pi,N);const Li=Symbol("rootName");class Oi extends Pi{constructor(t,e){super(t,e),this.rootName="main"}is(t,e=null){return e?e===this.name&&("rootElement"===t||"view:rootElement"===t||"editableElement"===t||"view:editableElement"===t||"containerElement"===t||"view:containerElement"===t||"element"===t||"view:element"===t):"rootElement"===t||"view:rootElement"===t||"editableElement"===t||"view:editableElement"===t||"containerElement"===t||"view:containerElement"===t||"element"===t||"view:element"===t||"node"===t||"view:node"===t}get rootName(){return this.getCustomProperty(Li)}set rootName(t){this._setCustomProperty(Li,t)}set _name(t){this.name=t}}class Ri{constructor(t={}){if(!t.boundaries&&!t.startPosition)throw new l("view-tree-walker-no-start-position",null);if(t.direction&&"forward"!=t.direction&&"backward"!=t.direction)throw new l("view-tree-walker-unknown-direction",t.startPosition,{direction:t.direction});this.boundaries=t.boundaries||null,t.startPosition?this.position=ji._createAt(t.startPosition):this.position=ji._createAt(t.boundaries["backward"==t.direction?"end":"start"]),this.direction=t.direction||"forward",this.singleCharacters=!!t.singleCharacters,this.shallow=!!t.shallow,this.ignoreElementEnd=!!t.ignoreElementEnd,this._boundaryStartParent=this.boundaries?this.boundaries.start.parent:null,this._boundaryEndParent=this.boundaries?this.boundaries.end.parent:null}[Symbol.iterator](){return this}skip(t){let e,n,o;do{o=this.position,({done:e,value:n}=this.next())}while(!e&&t(n));e||(this.position=o)}next(){return"forward"==this.direction?this._next():this._previous()}_next(){let t=this.position.clone();const e=this.position,n=t.parent;if(null===n.parent&&t.offset===n.childCount)return{done:!0};if(n===this._boundaryEndParent&&t.offset==this.boundaries.end.offset)return{done:!0};let o;if(n instanceof Io){if(t.isAtEnd)return this.position=ji._createAfter(n),this._next();o=n.data[t.offset]}else o=n.getChild(t.offset);if(o instanceof Mi)return this.shallow?t.offset++:t=new ji(o,0),this.position=t,this._formatReturnValue("elementStart",o,e,t,1);if(o instanceof Io){if(this.singleCharacters)return t=new ji(o,0),this.position=t,this._next();{let n,i=o.data.length;return o==this._boundaryEndParent?(i=this.boundaries.end.offset,n=new To(o,0,i),t=ji._createAfter(n)):(n=new To(o,0,o.data.length),t.offset++),this.position=t,this._formatReturnValue("text",n,e,t,i)}}if("string"==typeof o){let o;if(this.singleCharacters)o=1;else{o=(n===this._boundaryEndParent?this.boundaries.end.offset:n.data.length)-t.offset}const i=new To(n,t.offset,o);return t.offset+=o,this.position=t,this._formatReturnValue("text",i,e,t,o)}return t=ji._createAfter(n),this.position=t,this.ignoreElementEnd?this._next():this._formatReturnValue("elementEnd",n,e,t)}_previous(){let t=this.position.clone();const e=this.position,n=t.parent;if(null===n.parent&&0===t.offset)return{done:!0};if(n==this._boundaryStartParent&&t.offset==this.boundaries.start.offset)return{done:!0};let o;if(n instanceof Io){if(t.isAtStart)return this.position=ji._createBefore(n),this._previous();o=n.data[t.offset-1]}else o=n.getChild(t.offset-1);if(o instanceof Mi)return this.shallow?(t.offset--,this.position=t,this._formatReturnValue("elementStart",o,e,t,1)):(t=new ji(o,o.childCount),this.position=t,this.ignoreElementEnd?this._previous():this._formatReturnValue("elementEnd",o,e,t));if(o instanceof Io){if(this.singleCharacters)return t=new ji(o,o.data.length),this.position=t,this._previous();{let n,i=o.data.length;if(o==this._boundaryStartParent){const e=this.boundaries.start.offset;n=new To(o,e,o.data.length-e),i=n.data.length,t=ji._createBefore(n)}else n=new To(o,0,o.data.length),t.offset--;return this.position=t,this._formatReturnValue("text",n,e,t,i)}}if("string"==typeof o){let o;if(this.singleCharacters)o=1;else{const e=n===this._boundaryStartParent?this.boundaries.start.offset:0;o=t.offset-e}t.offset-=o;const i=new To(n,t.offset,o);return this.position=t,this._formatReturnValue("text",i,e,t,o)}return t=ji._createBefore(n),this.position=t,this._formatReturnValue("elementStart",n,e,t,1)}_formatReturnValue(t,e,n,o,i){return e instanceof To&&(e.offsetInText+e.data.length==e.textNode.data.length&&("forward"!=this.direction||this.boundaries&&this.boundaries.end.isEqual(this.position)?n=ji._createAfter(e.textNode):(o=ji._createAfter(e.textNode),this.position=o)),0===e.offsetInText&&("backward"!=this.direction||this.boundaries&&this.boundaries.start.isEqual(this.position)?n=ji._createBefore(e.textNode):(o=ji._createBefore(e.textNode),this.position=o))),{done:!1,value:{type:t,item:e,previousPosition:n,nextPosition:o,length:i}}}}class ji{constructor(t,e){this.parent=t,this.offset=e}get nodeAfter(){return this.parent.is("$text")?null:this.parent.getChild(this.offset)||null}get nodeBefore(){return this.parent.is("$text")?null:this.parent.getChild(this.offset-1)||null}get isAtStart(){return 0===this.offset}get isAtEnd(){const t=this.parent.is("$text")?this.parent.data.length:this.parent.childCount;return this.offset===t}get root(){return this.parent.root}get editableElement(){let t=this.parent;for(;!(t instanceof Pi);){if(!t.parent)return null;t=t.parent}return t}getShiftedBy(t){const e=ji._createAt(this),n=e.offset+t;return e.offset=n<0?0:n,e}getLastMatchingPosition(t,e={}){e.startPosition=this;const n=new Ri(e);return n.skip(t),n.position}getAncestors(){return this.parent.is("documentFragment")?[this.parent]:this.parent.getAncestors({includeSelf:!0})}getCommonAncestor(t){const e=this.getAncestors(),n=t.getAncestors();let o=0;for(;e[o]==n[o]&&e[o];)o++;return 0===o?null:e[o-1]}is(t){return"position"===t||"view:position"===t}isEqual(t){return this.parent==t.parent&&this.offset==t.offset}isBefore(t){return"before"==this.compareWith(t)}isAfter(t){return"after"==this.compareWith(t)}compareWith(t){if(this.root!==t.root)return"different";if(this.isEqual(t))return"same";const e=this.parent.is("node")?this.parent.getPath():[],n=t.parent.is("node")?t.parent.getPath():[];e.push(this.offset),n.push(t.offset);const o=Eo(e,n);switch(o){case"prefix":return"before";case"extension":return"after";default:return e[o]0?new this(n,o):new this(o,n)}static _createIn(t){return this._createFromParentsAndOffsets(t,0,t,t.childCount)}static _createOn(t){const e=t.is("$textProxy")?t.offsetSize:1;return this._createFromPositionAndShift(ji._createBefore(t),e)}}function Fi(t){return!(!t.item.is("attributeElement")&&!t.item.is("uiElement"))}function Hi(t){let e=0;for(const n of t)e++;return e}class Ui{constructor(t=null,e,n){this._ranges=[],this._lastRangeBackward=!1,this._isFake=!1,this._fakeSelectionLabel="",this.setTo(t,e,n)}get isFake(){return this._isFake}get fakeSelectionLabel(){return this._fakeSelectionLabel}get anchor(){if(!this._ranges.length)return null;const t=this._ranges[this._ranges.length-1];return(this._lastRangeBackward?t.end:t.start).clone()}get focus(){if(!this._ranges.length)return null;const t=this._ranges[this._ranges.length-1];return(this._lastRangeBackward?t.start:t.end).clone()}get isCollapsed(){return 1===this.rangeCount&&this._ranges[0].isCollapsed}get rangeCount(){return this._ranges.length}get isBackward(){return!this.isCollapsed&&this._lastRangeBackward}get editableElement(){return this.anchor?this.anchor.editableElement:null}*getRanges(){for(const t of this._ranges)yield t.clone()}getFirstRange(){let t=null;for(const e of this._ranges)t&&!e.start.isBefore(t.start)||(t=e);return t?t.clone():null}getLastRange(){let t=null;for(const e of this._ranges)t&&!e.end.isAfter(t.end)||(t=e);return t?t.clone():null}getFirstPosition(){const t=this.getFirstRange();return t?t.start.clone():null}getLastPosition(){const t=this.getLastRange();return t?t.end.clone():null}isEqual(t){if(this.isFake!=t.isFake)return!1;if(this.isFake&&this.fakeSelectionLabel!=t.fakeSelectionLabel)return!1;if(this.rangeCount!=t.rangeCount)return!1;if(0===this.rangeCount)return!0;if(!this.anchor.isEqual(t.anchor)||!this.focus.isEqual(t.focus))return!1;for(const e of this._ranges){let n=!1;for(const o of t._ranges)if(e.isEqual(o)){n=!0;break}if(!n)return!1}return!0}isSimilar(t){if(this.isBackward!=t.isBackward)return!1;const e=Hi(this.getRanges());if(e!=Hi(t.getRanges()))return!1;if(0==e)return!0;for(let e of this.getRanges()){e=e.getTrimmed();let n=!1;for(let o of t.getRanges())if(o=o.getTrimmed(),e.start.isEqual(o.start)&&e.end.isEqual(o.end)){n=!0;break}if(!n)return!1}return!0}getSelectedElement(){return 1!==this.rangeCount?null:this.getFirstRange().getContainedElement()}setTo(t,e,n){if(null===t)this._setRanges([]),this._setFakeOptions(e);else if(t instanceof Ui||t instanceof qi)this._setRanges(t.getRanges(),t.isBackward),this._setFakeOptions({fake:t.isFake,label:t.fakeSelectionLabel});else if(t instanceof Vi)this._setRanges([t],e&&e.backward),this._setFakeOptions(e);else if(t instanceof ji)this._setRanges([new Vi(t)]),this._setFakeOptions(e);else if(t instanceof So){const o=!!n&&!!n.backward;let i;if(void 0===e)throw new l("view-selection-setto-required-second-parameter",this);i="in"==e?Vi._createIn(t):"on"==e?Vi._createOn(t):new Vi(ji._createAt(t,e)),this._setRanges([i],o),this._setFakeOptions(n)}else{if(!po(t))throw new l("view-selection-setto-not-selectable",this);this._setRanges(t,e&&e.backward),this._setFakeOptions(e)}this.fire("change")}setFocus(t,e){if(null===this.anchor)throw new l("view-selection-setfocus-no-ranges",this);const n=ji._createAt(t,e);if("same"==n.compareWith(this.focus))return;const o=this.anchor;this._ranges.pop(),"before"==n.compareWith(o)?this._addRange(new Vi(n,o),!0):this._addRange(new Vi(o,n)),this.fire("change")}is(t){return"selection"===t||"view:selection"===t}_setRanges(t,e=!1){t=Array.from(t),this._ranges=[];for(const e of t)this._addRange(e);this._lastRangeBackward=!!e}_setFakeOptions(t={}){this._isFake=!!t.fake,this._fakeSelectionLabel=t.fake&&t.label||""}_addRange(t,e=!1){if(!(t instanceof Vi))throw new l("view-selection-add-range-not-range",this);this._pushRange(t),this._lastRangeBackward=!!e}_pushRange(t){for(const e of this._ranges)if(t.isIntersecting(e))throw new l("view-selection-range-intersects",this,{addedRange:t,intersectingRange:e});this._ranges.push(new Vi(t.start,t.end))}}j(Ui,k);class qi{constructor(t=null,e,n){this._selection=new Ui,this._selection.delegate("change").to(this),this._selection.setTo(t,e,n)}get isFake(){return this._selection.isFake}get fakeSelectionLabel(){return this._selection.fakeSelectionLabel}get anchor(){return this._selection.anchor}get focus(){return this._selection.focus}get isCollapsed(){return this._selection.isCollapsed}get rangeCount(){return this._selection.rangeCount}get isBackward(){return this._selection.isBackward}get editableElement(){return this._selection.editableElement}get _ranges(){return this._selection._ranges}*getRanges(){yield*this._selection.getRanges()}getFirstRange(){return this._selection.getFirstRange()}getLastRange(){return this._selection.getLastRange()}getFirstPosition(){return this._selection.getFirstPosition()}getLastPosition(){return this._selection.getLastPosition()}getSelectedElement(){return this._selection.getSelectedElement()}isEqual(t){return this._selection.isEqual(t)}isSimilar(t){return this._selection.isSimilar(t)}is(t){return"selection"===t||"documentSelection"==t||"view:selection"==t||"view:documentSelection"==t}_setTo(t,e,n){this._selection.setTo(t,e,n)}_setFocus(t,e){this._selection.setFocus(t,e)}}j(qi,k);class Gi extends e{constructor(t,e,n){super(t,e),this.startRange=n,this._eventPhase="none",this._currentTarget=null}get eventPhase(){return this._eventPhase}get currentTarget(){return this._currentTarget}}const Wi=Symbol("bubbling contexts"),Zi={fire(t,...n){try{const o=t instanceof e?t:new e(this,t),i=Ji(this);if(!i.size)return;if(Ki(o,"capturing",this),$i(i,"$capture",o,...n))return o.return;const r=o.startRange||this.selection.getFirstRange(),s=r?r.getContainedElement():null,a=!!s&&Boolean(Qi(i,s));let l=s||function(t){if(!t)return null;const e=t.start.parent,n=t.end.parent,o=e.getPath(),i=n.getPath();return o.length>i.length?e:n}(r);if(Ki(o,"atTarget",l),!a){if($i(i,"$text",o,...n))return o.return;Ki(o,"bubbling",l)}for(;l;){if(l.is("rootElement")){if($i(i,"$root",o,...n))return o.return}else if(l.is("element")&&$i(i,l.name,o,...n))return o.return;if($i(i,l,o,...n))return o.return;l=l.parent,Ki(o,"bubbling",l)}return Ki(o,"bubbling",this),$i(i,"$document",o,...n),o.return}catch(t){l.rethrowUnexpectedError(t,this)}},_addEventListener(t,e,n){const o=wo(n.context||"$document"),i=Ji(this);for(const r of o){let o=i.get(r);o||(o=Object.create(k),i.set(r,o)),this.listenTo(o,t,e,n)}},_removeEventListener(t,e){const n=Ji(this);for(const o of n.values())this.stopListening(o,t,e)}},Yi=Zi;function Ki(t,e,n){t instanceof Gi&&(t._eventPhase=e,t._currentTarget=n)}function $i(t,e,n,...o){const i="string"==typeof e?t.get(e):Qi(t,e);return!!i&&(i.fire(n,...o),n.stop.called)}function Qi(t,e){for(const[n,o]of t)if("function"==typeof n&&n(e))return o;return null}function Ji(t){return t[Wi]||(t[Wi]=new Map),t[Wi]}class Xi{constructor(t){this.selection=new qi,this.roots=new bo({idProperty:"rootName"}),this.stylesProcessor=t,this.set("isReadOnly",!1),this.set("isFocused",!1),this.set("isSelecting",!1),this.set("isComposing",!1),this._postFixers=new Set}getRoot(t="main"){return this.roots.get(t)}registerPostFixer(t){this._postFixers.add(t)}destroy(){this.roots.map((t=>t.destroy())),this.stopListening()}_callPostFixers(t){let e=!1;do{for(const n of this._postFixers)if(e=n(t),e)break}while(e)}}j(Xi,Yi),j(Xi,N);class tr extends Mi{constructor(t,e,n,o){super(t,e,n,o),this.getFillerOffset=er,this._priority=10,this._id=null,this._clonesGroup=null}get priority(){return this._priority}get id(){return this._id}getElementsWithSameId(){if(null===this.id)throw new l("attribute-element-get-elements-with-same-id-no-id",this);return new Set(this._clonesGroup)}is(t,e=null){return e?e===this.name&&("attributeElement"===t||"view:attributeElement"===t||"element"===t||"view:element"===t):"attributeElement"===t||"view:attributeElement"===t||"element"===t||"view:element"===t||"node"===t||"view:node"===t}isSimilar(t){return null!==this.id||null!==t.id?this.id===t.id:super.isSimilar(t)&&this.priority==t.priority}_clone(t){const e=super._clone(t);return e._priority=this._priority,e._id=this._id,e}}function er(){if(nr(this))return null;let t=this.parent;for(;t&&t.is("attributeElement");){if(nr(t)>1)return null;t=t.parent}return!t||nr(t)>1?null:this.childCount}function nr(t){return Array.from(t.getChildren()).filter((t=>!t.is("uiElement"))).length}tr.DEFAULT_PRIORITY=10;class or extends Mi{constructor(t,e,n,o){super(t,e,n,o),this.getFillerOffset=ir}is(t,e=null){return e?e===this.name&&("emptyElement"===t||"view:emptyElement"===t||"element"===t||"view:element"===t):"emptyElement"===t||"view:emptyElement"===t||"element"===t||"view:element"===t||"node"===t||"view:node"===t}_insertChild(t,e){if(e&&(e instanceof So||Array.from(e).length>0))throw new l("view-emptyelement-cannot-add",[this,e])}}function ir(){return null}const rr=navigator.userAgent.toLowerCase(),sr={isMac:lr(rr),isWindows:function(t){return t.indexOf("windows")>-1}(rr),isGecko:function(t){return!!t.match(/gecko\/\d+/)}(rr),isSafari:function(t){return t.indexOf(" applewebkit/")>-1&&-1===t.indexOf("chrome")}(rr),isiOS:function(t){return!!t.match(/iphone|ipad/i)||lr(t)&&navigator.maxTouchPoints>0}(rr),isAndroid:function(t){return t.indexOf("android")>-1}(rr),isBlink:function(t){return t.indexOf("chrome/")>-1&&t.indexOf("edge/")<0}(rr),features:{isRegExpUnicodePropertySupported:function(){let t=!1;try{t=0==="ć".search(new RegExp("[\\p{L}]","u"))}catch(t){}return t}()}},ar=sr;function lr(t){return t.indexOf("macintosh")>-1}const cr={ctrl:"⌃",cmd:"⌘",alt:"⌥",shift:"⇧"},dr={ctrl:"Ctrl+",alt:"Alt+",shift:"Shift+"},ur=function(){const t={arrowleft:37,arrowup:38,arrowright:39,arrowdown:40,backspace:8,delete:46,enter:13,space:32,esc:27,tab:9,ctrl:1114112,shift:2228224,alt:4456448,cmd:8912896};for(let e=65;e<=90;e++){const n=String.fromCharCode(e);t[n.toLowerCase()]=e}for(let e=48;e<=57;e++)t[e-48]=e;for(let e=112;e<=123;e++)t["f"+(e-111)]=e;for(const e of"`-=[];',./\\")t[e]=e.charCodeAt(0);return t}(),hr=Object.fromEntries(Object.entries(ur).map((([t,e])=>[e,t.charAt(0).toUpperCase()+t.slice(1)])));function mr(t){let e;if("string"==typeof t){if(e=ur[t.toLowerCase()],!e)throw new l("keyboard-unknown-key",null,{key:t})}else e=t.keyCode+(t.altKey?ur.alt:0)+(t.ctrlKey?ur.ctrl:0)+(t.shiftKey?ur.shift:0)+(t.metaKey?ur.cmd:0);return e}function gr(t){return"string"==typeof t&&(t=function(t){return t.split("+").map((t=>t.trim()))}(t)),t.map((t=>"string"==typeof t?function(t){if(t.endsWith("!"))return mr(t.slice(0,-1));const e=mr(t);return ar.isMac&&e==ur.ctrl?ur.cmd:e}(t):t)).reduce(((t,e)=>e+t),0)}function pr(t){let e=gr(t);return Object.entries(ar.isMac?cr:dr).reduce(((t,[n,o])=>(0!=(e&ur[n])&&(e&=~ur[n],t+=o),t)),"")+(e?hr[e]:"")}function fr(t,e){const n="ltr"===e;switch(t){case ur.arrowleft:return n?"left":"right";case ur.arrowright:return n?"right":"left";case ur.arrowup:return"up";case ur.arrowdown:return"down"}}class br extends Mi{constructor(t,e,n,o){super(t,e,n,o),this.getFillerOffset=wr}is(t,e=null){return e?e===this.name&&("uiElement"===t||"view:uiElement"===t||"element"===t||"view:element"===t):"uiElement"===t||"view:uiElement"===t||"element"===t||"view:element"===t||"node"===t||"view:node"===t}_insertChild(t,e){if(e&&(e instanceof So||Array.from(e).length>0))throw new l("view-uielement-cannot-add",this)}render(t){return this.toDomElement(t)}toDomElement(t){const e=t.createElement(this.name);for(const t of this.getAttributeKeys())e.setAttribute(t,this.getAttribute(t));return e}}function kr(t){t.document.on("arrowKey",((e,n)=>function(t,e,n){if(e.keyCode==ur.arrowright){const t=e.domTarget.ownerDocument.defaultView.getSelection(),o=1==t.rangeCount&&t.getRangeAt(0).collapsed;if(o||e.shiftKey){const e=t.focusNode,i=t.focusOffset,r=n.domPositionToView(e,i);if(null===r)return;let s=!1;const a=r.getLastMatchingPosition((t=>(t.item.is("uiElement")&&(s=!0),!(!t.item.is("uiElement")&&!t.item.is("attributeElement")))));if(s){const e=n.viewPositionToDom(a);o?t.collapse(e.parent,e.offset):t.extend(e.parent,e.offset)}}}}(0,n,t.domConverter)),{priority:"low"})}function wr(){return null}class Ar extends Mi{constructor(t,e,n,o){super(t,e,n,o),this.getFillerOffset=Cr}is(t,e=null){return e?e===this.name&&("rawElement"===t||"view:rawElement"===t||"element"===t||"view:element"===t):"rawElement"===t||"view:rawElement"===t||t===this.name||t==="view:"+this.name||"element"===t||"view:element"===t||"node"===t||"view:node"===t}_insertChild(t,e){if(e&&(e instanceof So||Array.from(e).length>0))throw new l("view-rawelement-cannot-add",[this,e])}}function Cr(){return null}class _r{constructor(t,e){this.document=t,this._children=[],e&&this._insertChild(0,e)}[Symbol.iterator](){return this._children[Symbol.iterator]()}get childCount(){return this._children.length}get isEmpty(){return 0===this.childCount}get root(){return this}get parent(){return null}is(t){return"documentFragment"===t||"view:documentFragment"===t}_appendChild(t){return this._insertChild(this.childCount,t)}getChild(t){return this._children[t]}getChildIndex(t){return this._children.indexOf(t)}getChildren(){return this._children[Symbol.iterator]()}_insertChild(t,e){this._fireChange("children",this);let n=0;const o=function(t,e){if("string"==typeof e)return[new Io(t,e)];po(e)||(e=[e]);return Array.from(e).map((e=>"string"==typeof e?new Io(t,e):e instanceof To?new Io(t,e.data):e))}(this.document,e);for(const e of o)null!==e.parent&&e._remove(),e.parent=this,this._children.splice(t,0,e),t++,n++;return n}_removeChildren(t,e=1){this._fireChange("children",this);for(let n=t;n{}),o.renderUnsafeAttributes&&i._unsafeAttributesToRender.push(...o.renderUnsafeAttributes),i}setAttribute(t,e,n){n._setAttribute(t,e)}removeAttribute(t,e){e._removeAttribute(t)}addClass(t,e){e._addClass(t)}removeClass(t,e){e._removeClass(t)}setStyle(t,e,n){ht(t)&&void 0===n&&(n=e),n._setStyle(t,e)}removeStyle(t,e){e._removeStyle(t)}setCustomProperty(t,e,n){n._setCustomProperty(t,e)}removeCustomProperty(t,e){return e._removeCustomProperty(t)}breakAttributes(t){return t instanceof ji?this._breakAttributes(t):this._breakAttributesRange(t)}breakContainer(t){const e=t.parent;if(!e.is("containerElement"))throw new l("view-writer-break-non-container-element",this.document);if(!e.parent)throw new l("view-writer-break-root",this.document);if(t.isAtStart)return ji._createBefore(e);if(!t.isAtEnd){const n=e._clone(!1);this.insert(ji._createAfter(e),n);const o=new Vi(t,ji._createAt(e,"end")),i=new ji(n,0);this.move(o,i)}return ji._createAfter(e)}mergeAttributes(t){const e=t.offset,n=t.parent;if(n.is("$text"))return t;if(n.is("attributeElement")&&0===n.childCount){const t=n.parent,e=n.index;return n._remove(),this._removeFromClonedElementsGroup(n),this.mergeAttributes(new ji(t,e))}const o=n.getChild(e-1),i=n.getChild(e);if(!o||!i)return t;if(o.is("$text")&&i.is("$text"))return Sr(o,i);if(o.is("attributeElement")&&i.is("attributeElement")&&o.isSimilar(i)){const t=o.childCount;return o._appendChild(i.getChildren()),i._remove(),this._removeFromClonedElementsGroup(i),this.mergeAttributes(new ji(o,t))}return t}mergeContainers(t){const e=t.nodeBefore,n=t.nodeAfter;if(!(e&&n&&e.is("containerElement")&&n.is("containerElement")))throw new l("view-writer-merge-containers-invalid-position",this.document);const o=e.getChild(e.childCount-1),i=o instanceof Io?ji._createAt(o,"end"):ji._createAt(e,"end");return this.move(Vi._createIn(n),ji._createAt(e,"end")),this.remove(Vi._createOn(n)),i}insert(t,e){Ir(e=po(e)?[...e]:[e],this.document);const n=e.reduce(((t,e)=>{const n=t[t.length-1],o=!e.is("uiElement");return n&&n.breakAttributes==o?n.nodes.push(e):t.push({breakAttributes:o,nodes:[e]}),t}),[]);let o=null,i=t;for(const{nodes:t,breakAttributes:e}of n){const n=this._insertNodes(i,t,e);o||(o=n.start),i=n.end}return o?new Vi(o,i):new Vi(t)}remove(t){const e=t instanceof Vi?t:Vi._createOn(t);if(Br(e,this.document),e.isCollapsed)return new _r(this.document);const{start:n,end:o}=this._breakAttributesRange(e,!0),i=n.parent,r=o.offset-n.offset,s=i._removeChildren(n.offset,r);for(const t of s)this._removeFromClonedElementsGroup(t);const a=this.mergeAttributes(n);return e.start=a,e.end=a.clone(),new _r(this.document,s)}clear(t,e){Br(t,this.document);const n=t.getWalker({direction:"backward",ignoreElementEnd:!0});for(const o of n){const n=o.item;let i;if(n.is("element")&&e.isSimilar(n))i=Vi._createOn(n);else if(!o.nextPosition.isAfter(t.start)&&n.is("$textProxy")){const t=n.getAncestors().find((t=>t.is("element")&&e.isSimilar(t)));t&&(i=Vi._createIn(t))}i&&(i.end.isAfter(t.end)&&(i.end=t.end),i.start.isBefore(t.start)&&(i.start=t.start),this.remove(i))}}move(t,e){let n;if(e.isAfter(t.end)){const o=(e=this._breakAttributes(e,!0)).parent,i=o.childCount;t=this._breakAttributesRange(t,!0),n=this.remove(t),e.offset+=o.childCount-i}else n=this.remove(t);return this.insert(e,n)}wrap(t,e){if(!(e instanceof tr))throw new l("view-writer-wrap-invalid-attribute",this.document);if(Br(t,this.document),t.isCollapsed){let o=t.start;o.parent.is("element")&&(n=o.parent,!Array.from(n.getChildren()).some((t=>!t.is("uiElement"))))&&(o=o.getLastMatchingPosition((t=>t.item.is("uiElement")))),o=this._wrapPosition(o,e);const i=this.document.selection;return i.isCollapsed&&i.getFirstPosition().isEqual(t.start)&&this.setSelection(o),new Vi(o)}return this._wrapRange(t,e);var n}unwrap(t,e){if(!(e instanceof tr))throw new l("view-writer-unwrap-invalid-attribute",this.document);if(Br(t,this.document),t.isCollapsed)return t;const{start:n,end:o}=this._breakAttributesRange(t,!0),i=n.parent,r=this._unwrapChildren(i,n.offset,o.offset,e),s=this.mergeAttributes(r.start);s.isEqual(r.start)||r.end.offset--;const a=this.mergeAttributes(r.end);return new Vi(s,a)}rename(t,e){const n=new Ni(this.document,t,e.getAttributes());return this.insert(ji._createAfter(e),n),this.move(Vi._createIn(e),ji._createAt(n,0)),this.remove(Vi._createOn(e)),n}clearClonedElementsGroup(t){this._cloneGroups.delete(t)}createPositionAt(t,e){return ji._createAt(t,e)}createPositionAfter(t){return ji._createAfter(t)}createPositionBefore(t){return ji._createBefore(t)}createRange(t,e){return new Vi(t,e)}createRangeOn(t){return Vi._createOn(t)}createRangeIn(t){return Vi._createIn(t)}createSelection(t,e,n){return new Ui(t,e,n)}createSlot(t){if(!this._slotFactory)throw new l("view-writer-invalid-create-slot-context",this.document);return this._slotFactory(this,t)}_registerSlotFactory(t){this._slotFactory=t}_clearSlotFactory(){this._slotFactory=null}_insertNodes(t,e,n){let o,i;if(o=n?yr(t):t.parent.is("$text")?t.parent.parent:t.parent,!o)throw new l("view-writer-invalid-position-container",this.document);i=n?this._breakAttributes(t,!0):t.parent.is("$text")?Dr(t):t;const r=o._insertChild(i.offset,e);for(const t of e)this._addToClonedElementsGroup(t);const s=i.getShiftedBy(r),a=this.mergeAttributes(i);a.isEqual(i)||s.offset--;const c=this.mergeAttributes(s);return new Vi(a,c)}_wrapChildren(t,e,n,o){let i=e;const r=[];for(;i!1,t.parent._insertChild(t.offset,n);const o=new Vi(t,t.getShiftedBy(1));this.wrap(o,e);const i=new ji(n.parent,n.index);n._remove();const r=i.nodeBefore,s=i.nodeAfter;return r instanceof Io&&s instanceof Io?Sr(r,s):Er(i)}_wrapAttributeElement(t,e){if(!Nr(t,e))return!1;if(t.name!==e.name||t.priority!==e.priority)return!1;for(const n of t.getAttributeKeys())if("class"!==n&&"style"!==n&&e.hasAttribute(n)&&e.getAttribute(n)!==t.getAttribute(n))return!1;for(const n of t.getStyleNames())if(e.hasStyle(n)&&e.getStyle(n)!==t.getStyle(n))return!1;for(const n of t.getAttributeKeys())"class"!==n&&"style"!==n&&(e.hasAttribute(n)||this.setAttribute(n,t.getAttribute(n),e));for(const n of t.getStyleNames())e.hasStyle(n)||this.setStyle(n,t.getStyle(n),e);for(const n of t.getClassNames())e.hasClass(n)||this.addClass(n,e);return!0}_unwrapAttributeElement(t,e){if(!Nr(t,e))return!1;if(t.name!==e.name||t.priority!==e.priority)return!1;for(const n of t.getAttributeKeys())if("class"!==n&&"style"!==n&&(!e.hasAttribute(n)||e.getAttribute(n)!==t.getAttribute(n)))return!1;if(!e.hasClass(...t.getClassNames()))return!1;for(const n of t.getStyleNames())if(!e.hasStyle(n)||e.getStyle(n)!==t.getStyle(n))return!1;for(const n of t.getAttributeKeys())"class"!==n&&"style"!==n&&this.removeAttribute(n,e);return this.removeClass(Array.from(t.getClassNames()),e),this.removeStyle(Array.from(t.getStyleNames()),e),!0}_breakAttributesRange(t,e=!1){const n=t.start,o=t.end;if(Br(t,this.document),t.isCollapsed){const n=this._breakAttributes(t.start,e);return new Vi(n,n)}const i=this._breakAttributes(o,e),r=i.parent.childCount,s=this._breakAttributes(n,e);return i.offset+=i.parent.childCount-r,new Vi(s,i)}_breakAttributes(t,e=!1){const n=t.offset,o=t.parent;if(t.parent.is("emptyElement"))throw new l("view-writer-cannot-break-empty-element",this.document);if(t.parent.is("uiElement"))throw new l("view-writer-cannot-break-ui-element",this.document);if(t.parent.is("rawElement"))throw new l("view-writer-cannot-break-raw-element",this.document);if(!e&&o.is("$text")&&Mr(o.parent))return t.clone();if(Mr(o))return t.clone();if(o.is("$text"))return this._breakAttributes(Dr(t),e);if(n==o.childCount){const t=new ji(o.parent,o.index+1);return this._breakAttributes(t,e)}if(0===n){const t=new ji(o.parent,o.index);return this._breakAttributes(t,e)}{const t=o.index+1,i=o._clone();o.parent._insertChild(t,i),this._addToClonedElementsGroup(i);const r=o.childCount-n,s=o._removeChildren(n,r);i._appendChild(s);const a=new ji(o.parent,t);return this._breakAttributes(a,e)}}_addToClonedElementsGroup(t){if(!t.root.is("rootElement"))return;if(t.is("element"))for(const e of t.getChildren())this._addToClonedElementsGroup(e);const e=t.id;if(!e)return;let n=this._cloneGroups.get(e);n||(n=new Set,this._cloneGroups.set(e,n)),n.add(t),t._clonesGroup=n}_removeFromClonedElementsGroup(t){if(t.is("element"))for(const e of t.getChildren())this._removeFromClonedElementsGroup(e);const e=t.id;if(!e)return;const n=this._cloneGroups.get(e);n&&n.delete(t)}}function yr(t){let e=t.parent;for(;!Mr(e);){if(!e)return;e=e.parent}return e}function xr(t,e){return t.prioritye.priority)&&t.getIdentity()n instanceof t)))throw new l("view-writer-insert-invalid-node-type",e);n.is("$text")||Ir(n.getChildren(),e)}}const Tr=[Io,tr,Ni,or,Ar,br];function Mr(t){return t&&(t.is("containerElement")||t.is("documentFragment"))}function Br(t,e){const n=yr(t.start),o=yr(t.end);if(!n||!o||n!==o)throw new l("view-writer-invalid-range-container",e)}function Nr(t,e){return null===t.id&&null===e.id}function zr(t){return"[object Text]"==Object.prototype.toString.call(t)}const Pr=t=>t.createTextNode(" "),Lr=t=>{const e=t.createElement("span");return e.dataset.ckeFiller=!0,e.innerText=" ",e},Or=t=>{const e=t.createElement("br");return e.dataset.ckeFiller=!0,e},Rr="⁠".repeat(7);function jr(t){return zr(t)&&t.data.substr(0,7)===Rr}function Vr(t){return 7==t.data.length&&jr(t)}function Fr(t){return jr(t)?t.data.slice(7):t.data}function Hr(t,e){if(e.keyCode==ur.arrowleft){const t=e.domTarget.ownerDocument.defaultView.getSelection();if(1==t.rangeCount&&t.getRangeAt(0).collapsed){const e=t.getRangeAt(0).startContainer,n=t.getRangeAt(0).startOffset;jr(e)&&n<=7&&t.collapse(e,0)}}}function Ur(t,e,n,o=!1){n=n||function(t,e){return t===e};const i=Array.isArray(t)?t:Array.prototype.slice.call(t),r=Array.isArray(e)?e:Array.prototype.slice.call(e),s=function(t,e,n){const o=qr(t,e,n);if(-1===o)return{firstIndex:-1,lastIndexOld:-1,lastIndexNew:-1};const i=Gr(t,o),r=Gr(e,o),s=qr(i,r,n),a=t.length-s,l=e.length-s;return{firstIndex:o,lastIndexOld:a,lastIndexNew:l}}(i,r,n);return o?function(t,e){const{firstIndex:n,lastIndexOld:o,lastIndexNew:i}=t;if(-1===n)return Array(e).fill("equal");let r=[];n>0&&(r=r.concat(Array(n).fill("equal")));i-n>0&&(r=r.concat(Array(i-n).fill("insert")));o-n>0&&(r=r.concat(Array(o-n).fill("delete")));i0&&n.push({index:o,type:"insert",values:t.slice(o,r)});i-o>0&&n.push({index:o+(r-o),type:"delete",howMany:i-o});return n}(r,s)}function qr(t,e,n){for(let o=0;o200||i>200||o+i>300)return Wr.fastDiff(t,e,n,!0);let r,s;if(ic?-1:1;d[o+h]&&(d[o]=d[o+h].slice(0)),d[o]||(d[o]=[]),d[o].push(i>c?r:s);let m=Math.max(i,c),g=m-o;for(;gc;m--)u[m]=h(m);u[c]=h(c),g++}while(u[c]!==l);return d[c].slice(1)}function Zr(t,e,n){t.insertBefore(n,t.childNodes[e]||null)}function Yr(t){const e=t.parentNode;e&&e.removeChild(t)}function Kr(t){return t&&t.nodeType===Node.COMMENT_NODE}function $r(t){if(t){if(t.defaultView)return t instanceof t.defaultView.Document;if(t.ownerDocument&&t.ownerDocument.defaultView)return t instanceof t.ownerDocument.defaultView.Node}return!1}Wr.fastDiff=Ur;var Qr=n(3379),Jr=n.n(Qr),Xr=n(9037),ts=n.n(Xr),es=n(569),ns=n.n(es),os=n(8575),is=n.n(os),rs=n(9216),ss=n.n(rs),as=n(4401),ls={attributes:{"data-cke":!0}};ls.setAttributes=is(),ls.insert=ns().bind(null,"head"),ls.domAPI=ts(),ls.insertStyleElement=ss();Jr()(as.Z,ls);as.Z&&as.Z.locals&&as.Z.locals;class cs{constructor(t,e){this.domDocuments=new Set,this.domConverter=t,this.markedAttributes=new Set,this.markedChildren=new Set,this.markedTexts=new Set,this.selection=e,this.set("isFocused",!1),this.set("isSelecting",!1),ar.isBlink&&!ar.isAndroid&&this.on("change:isSelecting",(()=>{this.isSelecting||this.render()})),this._inlineFiller=null,this._fakeSelectionContainer=null}markToSync(t,e){if("text"===t)this.domConverter.mapViewToDom(e.parent)&&this.markedTexts.add(e);else{if(!this.domConverter.mapViewToDom(e))return;if("attributes"===t)this.markedAttributes.add(e);else{if("children"!==t)throw new l("view-renderer-unknown-type",this);this.markedChildren.add(e)}}}render(){let t;const e=!(ar.isBlink&&!ar.isAndroid)||!this.isSelecting;for(const t of this.markedChildren)this._updateChildrenMappings(t);e?(this._inlineFiller&&!this._isSelectionInInlineFiller()&&this._removeInlineFiller(),this._inlineFiller?t=this._getInlineFillerPosition():this._needsInlineFillerAtSelection()&&(t=this.selection.getFirstPosition(),this.markedChildren.add(t.parent))):this._inlineFiller&&this._inlineFiller.parentNode&&(t=this.domConverter.domPositionToView(this._inlineFiller),t&&t.parent.is("$text")&&(t=ji._createBefore(t.parent)));for(const t of this.markedAttributes)this._updateAttrs(t);for(const e of this.markedChildren)this._updateChildren(e,{inlineFillerPosition:t});for(const e of this.markedTexts)!this.markedChildren.has(e.parent)&&this.domConverter.mapViewToDom(e.parent)&&this._updateText(e,{inlineFillerPosition:t});if(e)if(t){const e=this.domConverter.viewPositionToDom(t),n=e.parent.ownerDocument;jr(e.parent)?this._inlineFiller=e.parent:this._inlineFiller=ds(n,e.parent,e.offset)}else this._inlineFiller=null;this._updateFocus(),this._updateSelection(),this.markedTexts.clear(),this.markedAttributes.clear(),this.markedChildren.clear()}_updateChildrenMappings(t){if(!this.domConverter.mapViewToDom(t))return;const e=Array.from(this.domConverter.mapViewToDom(t).childNodes),n=Array.from(this.domConverter.viewChildrenToDom(t,{withChildren:!1})),o=this._diffNodeLists(e,n),i=this._findReplaceActions(o,e,n);if(-1!==i.indexOf("replace")){const o={equal:0,insert:0,delete:0};for(const r of i)if("replace"===r){const i=o.equal+o.insert,r=o.equal+o.delete,s=t.getChild(i);!s||s.is("uiElement")||s.is("rawElement")||this._updateElementMappings(s,e[r]),Yr(n[i]),o.equal++}else o[r]++}}_updateElementMappings(t,e){this.domConverter.unbindDomElement(e),this.domConverter.bindElements(e,t),this.markedChildren.add(t),this.markedAttributes.add(t)}_getInlineFillerPosition(){const t=this.selection.getFirstPosition();return t.parent.is("$text")?ji._createBefore(this.selection.getFirstPosition().parent):t}_isSelectionInInlineFiller(){if(1!=this.selection.rangeCount||!this.selection.isCollapsed)return!1;const t=this.selection.getFirstPosition(),e=this.domConverter.viewPositionToDom(t);return!!(e&&zr(e.parent)&&jr(e.parent))}_removeInlineFiller(){const t=this._inlineFiller;if(!jr(t))throw new l("view-renderer-filler-was-lost",this);Vr(t)?t.remove():t.data=t.data.substr(7),this._inlineFiller=null}_needsInlineFillerAtSelection(){if(1!=this.selection.rangeCount||!this.selection.isCollapsed)return!1;const t=this.selection.getFirstPosition(),e=t.parent,n=t.offset;if(!this.domConverter.mapViewToDom(e.root))return!1;if(!e.is("element"))return!1;if(!function(t){if("false"==t.getAttribute("contenteditable"))return!1;const e=t.findAncestor((t=>t.hasAttribute("contenteditable")));return!e||"true"==e.getAttribute("contenteditable")}(e))return!1;if(n===e.getFillerOffset())return!1;const o=t.nodeBefore,i=t.nodeAfter;return!(o instanceof Io||i instanceof Io)}_updateText(t,e){const n=this.domConverter.findCorrespondingDomText(t),o=this.domConverter.viewToDom(t),i=n.data;let r=o.data;const s=e.inlineFillerPosition;if(s&&s.parent==t.parent&&s.offset==t.index&&(r=Rr+r),i!=r){const t=Ur(i,r);for(const e of t)"insert"===e.type?n.insertData(e.index,e.values.join("")):n.deleteData(e.index,e.howMany)}}_updateAttrs(t){const e=this.domConverter.mapViewToDom(t);if(!e)return;const n=Array.from(e.attributes).map((t=>t.name)),o=t.getAttributeKeys();for(const n of o)this.domConverter.setDomElementAttribute(e,n,t.getAttribute(n),t);for(const o of n)t.hasAttribute(o)||this.domConverter.removeDomElementAttribute(e,o)}_updateChildren(t,e){const n=this.domConverter.mapViewToDom(t);if(!n)return;const o=e.inlineFillerPosition,i=this.domConverter.mapViewToDom(t).childNodes,r=Array.from(this.domConverter.viewChildrenToDom(t,{bind:!0}));o&&o.parent===t&&ds(n.ownerDocument,r,o.offset);const s=this._diffNodeLists(i,r);let a=0;const l=new Set;for(const t of s)"delete"===t?(l.add(i[a]),Yr(i[a])):"equal"===t&&a++;a=0;for(const t of s)"insert"===t?(Zr(n,a,r[a]),a++):"equal"===t&&(this._markDescendantTextToSync(this.domConverter.domToView(r[a])),a++);for(const t of l)t.parentNode||this.domConverter.unbindDomElement(t)}_diffNodeLists(t,e){return Wr(t=function(t,e){const n=Array.from(t);if(0==n.length||!e)return n;n[n.length-1]==e&&n.pop();return n}(t,this._fakeSelectionContainer),e,hs.bind(null,this.domConverter))}_findReplaceActions(t,e,n){if(-1===t.indexOf("insert")||-1===t.indexOf("delete"))return t;let o=[],i=[],r=[];const s={equal:0,insert:0,delete:0};for(const a of t)"insert"===a?r.push(n[s.equal+s.insert]):"delete"===a?i.push(e[s.equal+s.delete]):(o=o.concat(Wr(i,r,us).map((t=>"equal"===t?"replace":t))),o.push("equal"),i=[],r=[]),s[a]++;return o.concat(Wr(i,r,us).map((t=>"equal"===t?"replace":t)))}_markDescendantTextToSync(t){if(t)if(t.is("$text"))this.markedTexts.add(t);else if(t.is("element"))for(const e of t.getChildren())this._markDescendantTextToSync(e)}_updateSelection(){if(ar.isBlink&&!ar.isAndroid&&this.isSelecting&&!this.markedChildren.size)return;if(0===this.selection.rangeCount)return this._removeDomSelection(),void this._removeFakeSelection();const t=this.domConverter.mapViewToDom(this.selection.editableElement);this.isFocused&&t&&(this.selection.isFake?this._updateFakeSelection(t):(this._removeFakeSelection(),this._updateDomSelection(t)))}_updateFakeSelection(t){const e=t.ownerDocument;this._fakeSelectionContainer||(this._fakeSelectionContainer=function(t){const e=t.createElement("div");return e.className="ck-fake-selection-container",Object.assign(e.style,{position:"fixed",top:0,left:"-9999px",width:"42px"}),e.textContent=" ",e}(e));const n=this._fakeSelectionContainer;if(this.domConverter.bindFakeSelection(n,this.selection),!this._fakeSelectionNeedsUpdate(t))return;n.parentElement&&n.parentElement==t||t.appendChild(n),n.textContent=this.selection.fakeSelectionLabel||" ";const o=e.getSelection(),i=e.createRange();o.removeAllRanges(),i.selectNodeContents(n),o.addRange(i)}_updateDomSelection(t){const e=t.ownerDocument.defaultView.getSelection();if(!this._domSelectionNeedsUpdate(e))return;const n=this.domConverter.viewPositionToDom(this.selection.anchor),o=this.domConverter.viewPositionToDom(this.selection.focus);e.collapse(n.parent,n.offset),e.extend(o.parent,o.offset),ar.isGecko&&function(t,e){const n=t.parent;if(n.nodeType!=Node.ELEMENT_NODE||t.offset!=n.childNodes.length-1)return;const o=n.childNodes[t.offset];o&&"BR"==o.tagName&&e.addRange(e.getRangeAt(0))}(o,e)}_domSelectionNeedsUpdate(t){if(!this.domConverter.isDomSelectionCorrect(t))return!0;const e=t&&this.domConverter.domSelectionToView(t);return(!e||!this.selection.isEqual(e))&&!(!this.selection.isCollapsed&&this.selection.isSimilar(e))}_fakeSelectionNeedsUpdate(t){const e=this._fakeSelectionContainer,n=t.ownerDocument.getSelection();return!e||e.parentElement!==t||(n.anchorNode!==e&&!e.contains(n.anchorNode)||e.textContent!==this.selection.fakeSelectionLabel)}_removeDomSelection(){for(const t of this.domDocuments){if(t.getSelection().rangeCount){const e=t.activeElement,n=this.domConverter.mapDomToView(e);e&&n&&t.getSelection().removeAllRanges()}}}_removeFakeSelection(){const t=this._fakeSelectionContainer;t&&t.remove()}_updateFocus(){if(this.isFocused){const t=this.selection.editableElement;t&&this.domConverter.focus(t)}}}function ds(t,e,n){const o=e instanceof Array?e:e.childNodes,i=o[n];if(zr(i))return i.data=Rr+i.data,i;{const i=t.createTextNode(Rr);return Array.isArray(e)?o.splice(n,0,i):Zr(e,n,i),i}}function us(t,e){return $r(t)&&$r(e)&&!zr(t)&&!zr(e)&&!Kr(t)&&!Kr(e)&&t.tagName.toLowerCase()===e.tagName.toLowerCase()}function hs(t,e,n){return e===n||(zr(e)&&zr(n)?e.data===n.data:!(!t.isBlockFiller(e)||!t.isBlockFiller(n)))}j(cs,N);const ms={window,document};function gs(t){let e=0;for(;t.previousSibling;)t=t.previousSibling,e++;return e}function ps(t){const e=[];let n=t;for(;n&&n.nodeType!=Node.DOCUMENT_NODE;)e.unshift(n),n=n.parentNode;return e}const fs=Or(ms.document),bs=Pr(ms.document),ks=Lr(ms.document),ws="data-ck-unsafe-attribute-",As="data-ck-unsafe-element";class Cs{constructor(t,e={}){this.document=t,this.renderingMode=e.renderingMode||"editing",this.blockFillerMode=e.blockFillerMode||("editing"===this.renderingMode?"br":"nbsp"),this.preElements=["pre"],this.blockElements=["address","article","aside","blockquote","caption","center","dd","details","dir","div","dl","dt","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","header","hgroup","legend","li","main","menu","nav","ol","p","pre","section","summary","table","tbody","td","tfoot","th","thead","tr","ul"],this.inlineObjectElements=["object","iframe","input","button","textarea","select","option","video","embed","audio","img","canvas"],this.unsafeElements=["script","style"],this._domDocument="editing"===this.renderingMode?ms.document:ms.document.implementation.createHTMLDocument(""),this._domToViewMapping=new WeakMap,this._viewToDomMapping=new WeakMap,this._fakeSelectionMapping=new WeakMap,this._rawContentElementMatcher=new Bo,this._encounteredRawContentDomNodes=new WeakSet}bindFakeSelection(t,e){this._fakeSelectionMapping.set(t,new Ui(e))}fakeSelectionToView(t){return this._fakeSelectionMapping.get(t)}bindElements(t,e){this._domToViewMapping.set(t,e),this._viewToDomMapping.set(e,t)}unbindDomElement(t){const e=this._domToViewMapping.get(t);if(e){this._domToViewMapping.delete(t),this._viewToDomMapping.delete(e);for(const e of t.childNodes)this.unbindDomElement(e)}}bindDocumentFragments(t,e){this._domToViewMapping.set(t,e),this._viewToDomMapping.set(e,t)}shouldRenderAttribute(t,e,n){return"data"===this.renderingMode||!(t=t.toLowerCase()).startsWith("on")&&(("srcdoc"!==t||!e.match(/\bon\S+\s*=|javascript:|<\s*\/*script/i))&&("img"===n&&("src"===t||"srcset"===t)||("source"===n&&"srcset"===t||!e.match(/^\s*(javascript:|data:(image\/svg|text\/x?html))/i))))}setContentOf(t,e){if("data"===this.renderingMode)return void(t.innerHTML=e);const n=(new DOMParser).parseFromString(e,"text/html"),o=n.createDocumentFragment(),i=n.body.childNodes;for(;i.length>0;)o.appendChild(i[0]);const r=n.createTreeWalker(o,NodeFilter.SHOW_ELEMENT),s=[];let a;for(;a=r.nextNode();)s.push(a);for(const t of s){for(const e of t.getAttributeNames())this.setDomElementAttribute(t,e,t.getAttribute(e));const e=t.tagName.toLowerCase();this._shouldRenameElement(e)&&(ys(e),t.replaceWith(this._createReplacementDomElement(e,t)))}for(;t.firstChild;)t.firstChild.remove();t.append(o)}viewToDom(t,e={}){if(t.is("$text")){const e=this._processDataFromViewText(t);return this._domDocument.createTextNode(e)}{if(this.mapViewToDom(t))return this.mapViewToDom(t);let n;if(t.is("documentFragment"))n=this._domDocument.createDocumentFragment(),e.bind&&this.bindDocumentFragments(n,t);else{if(t.is("uiElement"))return n="$comment"===t.name?this._domDocument.createComment(t.getCustomProperty("$rawContent")):t.render(this._domDocument,this),e.bind&&this.bindElements(n,t),n;this._shouldRenameElement(t.name)?(ys(t.name),n=this._createReplacementDomElement(t.name)):n=t.hasAttribute("xmlns")?this._domDocument.createElementNS(t.getAttribute("xmlns"),t.name):this._domDocument.createElement(t.name),t.is("rawElement")&&t.render(n,this),e.bind&&this.bindElements(n,t);for(const e of t.getAttributeKeys())this.setDomElementAttribute(n,e,t.getAttribute(e),t)}if(!1!==e.withChildren)for(const o of this.viewChildrenToDom(t,e))n.appendChild(o);return n}}setDomElementAttribute(t,e,n,o=null){const i=this.shouldRenderAttribute(e,n,t.tagName.toLowerCase())||o&&o.shouldRenderUnsafeAttribute(e);i||c("domconverter-unsafe-attribute-detected",{domElement:t,key:e,value:n}),t.hasAttribute(e)&&!i?t.removeAttribute(e):t.hasAttribute(ws+e)&&i&&t.removeAttribute(ws+e),t.setAttribute(i?e:ws+e,n)}removeDomElementAttribute(t,e){e!=As&&(t.removeAttribute(e),t.removeAttribute(ws+e))}*viewChildrenToDom(t,e={}){const n=t.getFillerOffset&&t.getFillerOffset();let o=0;for(const i of t.getChildren()){n===o&&(yield this._getBlockFiller());const t=i.is("element")&&i.getCustomProperty("dataPipeline:transparentRendering");t&&"data"==this.renderingMode?yield*this.viewChildrenToDom(i,e):(t&&c("domconverter-transparent-rendering-unsupported-in-editing-pipeline",{viewElement:i}),yield this.viewToDom(i,e)),o++}n===o&&(yield this._getBlockFiller())}viewRangeToDom(t){const e=this.viewPositionToDom(t.start),n=this.viewPositionToDom(t.end),o=this._domDocument.createRange();return o.setStart(e.parent,e.offset),o.setEnd(n.parent,n.offset),o}viewPositionToDom(t){const e=t.parent;if(e.is("$text")){const n=this.findCorrespondingDomText(e);if(!n)return null;let o=t.offset;return jr(n)&&(o+=7),{parent:n,offset:o}}{let n,o,i;if(0===t.offset){if(n=this.mapViewToDom(e),!n)return null;i=n.childNodes[0]}else{const e=t.nodeBefore;if(o=e.is("$text")?this.findCorrespondingDomText(e):this.mapViewToDom(t.nodeBefore),!o)return null;n=o.parentNode,i=o.nextSibling}if(zr(i)&&jr(i))return{parent:i,offset:7};return{parent:n,offset:o?gs(o)+1:0}}}domToView(t,e={}){if(this.isBlockFiller(t))return null;const n=this.getHostViewElement(t);if(n)return n;if(Kr(t)&&e.skipComments)return null;if(zr(t)){if(Vr(t))return null;{const e=this._processDataFromDomText(t);return""===e?null:new Io(this.document,e)}}{if(this.mapDomToView(t))return this.mapDomToView(t);let n;if(this.isDocumentFragment(t))n=new _r(this.document),e.bind&&this.bindDocumentFragments(t,n);else{n=this._createViewElement(t,e),e.bind&&this.bindElements(t,n);const o=t.attributes;if(o)for(let t=o.length,e=0;e{const{scrollLeft:e,scrollTop:n}=t;o.push([e,n])})),e.focus(),_s(e,(t=>{const[e,n]=o.shift();t.scrollLeft=e,t.scrollTop=n})),ms.window.scrollTo(t,n)}}isElement(t){return t&&t.nodeType==Node.ELEMENT_NODE}isDocumentFragment(t){return t&&t.nodeType==Node.DOCUMENT_FRAGMENT_NODE}isBlockFiller(t){return"br"==this.blockFillerMode?t.isEqualNode(fs):!("BR"!==t.tagName||!vs(t,this.blockElements)||1!==t.parentNode.childNodes.length)||(t.isEqualNode(ks)||function(t,e){return t.isEqualNode(bs)&&vs(t,e)&&1===t.parentNode.childNodes.length}(t,this.blockElements))}isDomSelectionBackward(t){if(t.isCollapsed)return!1;const e=this._domDocument.createRange();e.setStart(t.anchorNode,t.anchorOffset),e.setEnd(t.focusNode,t.focusOffset);const n=e.collapsed;return e.detach(),n}getHostViewElement(t){const e=ps(t);for(e.pop();e.length;){const t=e.pop(),n=this._domToViewMapping.get(t);if(n&&(n.is("uiElement")||n.is("rawElement")))return n}return null}isDomSelectionCorrect(t){return this._isDomSelectionPositionCorrect(t.anchorNode,t.anchorOffset)&&this._isDomSelectionPositionCorrect(t.focusNode,t.focusOffset)}registerRawContentMatcher(t){this._rawContentElementMatcher.add(t)}_getBlockFiller(){switch(this.blockFillerMode){case"nbsp":return Pr(this._domDocument);case"markedNbsp":return Lr(this._domDocument);case"br":return Or(this._domDocument)}}_isDomSelectionPositionCorrect(t,e){if(zr(t)&&jr(t)&&e<7)return!1;if(this.isElement(t)&&jr(t.childNodes[e]))return!1;const n=this.mapDomToView(t);return!n||!n.is("uiElement")&&!n.is("rawElement")}_processDataFromViewText(t){let e=t.data;if(t.getAncestors().some((t=>this.preElements.includes(t.name))))return e;if(" "==e.charAt(0)){const n=this._getTouchingInlineViewNode(t,!1);!(n&&n.is("$textProxy")&&this._nodeEndsWithSpace(n))&&n||(e=" "+e.substr(1))}if(" "==e.charAt(e.length-1)){const n=this._getTouchingInlineViewNode(t,!0),o=n&&n.is("$textProxy")&&" "==n.data.charAt(0);" "!=e.charAt(e.length-2)&&n&&!o||(e=e.substr(0,e.length-1)+" ")}return e.replace(/ {2}/g,"  ")}_nodeEndsWithSpace(t){if(t.getAncestors().some((t=>this.preElements.includes(t.name))))return!1;const e=this._processDataFromViewText(t);return" "==e.charAt(e.length-1)}_processDataFromDomText(t){let e=t.data;if(function(t,e){return ps(t).some((t=>t.tagName&&e.includes(t.tagName.toLowerCase())))}(t,this.preElements))return Fr(t);e=e.replace(/[ \n\t\r]{1,}/g," ");const n=this._getTouchingInlineDomNode(t,!1),o=this._getTouchingInlineDomNode(t,!0),i=this._checkShouldLeftTrimDomText(t,n),r=this._checkShouldRightTrimDomText(t,o);i&&(e=e.replace(/^ /,"")),r&&(e=e.replace(/ $/,"")),e=Fr(new Text(e)),e=e.replace(/ \u00A0/g," ");const s=o&&this.isElement(o)&&"BR"!=o.tagName,a=o&&zr(o)&&" "==o.data.charAt(0);return(/( |\u00A0)\u00A0$/.test(e)||!o||s||a)&&(e=e.replace(/\u00A0$/," ")),(i||n&&this.isElement(n)&&"BR"!=n.tagName)&&(e=e.replace(/^\u00A0/," ")),e}_checkShouldLeftTrimDomText(t,e){return!e||(this.isElement(e)?"BR"===e.tagName:!this._encounteredRawContentDomNodes.has(t.previousSibling)&&/[^\S\u00A0]/.test(e.data.charAt(e.data.length-1)))}_checkShouldRightTrimDomText(t,e){return!e&&!jr(t)}_getTouchingInlineViewNode(t,e){const n=new Ri({startPosition:e?ji._createAfter(t):ji._createBefore(t),direction:e?"forward":"backward"});for(const t of n){if(t.item.is("element")&&this.inlineObjectElements.includes(t.item.name))return t.item;if(t.item.is("containerElement"))return null;if(t.item.is("element","br"))return null;if(t.item.is("$textProxy"))return t.item}return null}_getTouchingInlineDomNode(t,e){if(!t.parentNode)return null;const n=e?"firstChild":"lastChild",o=e?"nextSibling":"previousSibling";let i=!0;do{if(!i&&t[n]?t=t[n]:t[o]?(t=t[o],i=!1):(t=t.parentNode,i=!0),!t||this._isBlockElement(t))return null}while(!zr(t)&&"BR"!=t.tagName&&!this._isInlineObjectElement(t));return t}_isBlockElement(t){return this.isElement(t)&&this.blockElements.includes(t.tagName.toLowerCase())}_isInlineObjectElement(t){return this.isElement(t)&&this.inlineObjectElements.includes(t.tagName.toLowerCase())}_createViewElement(t,e){if(Kr(t))return new br(this.document,"$comment");const n=e.keepOriginalCase?t.tagName:t.tagName.toLowerCase();return new Mi(this.document,n)}_isViewElementWithRawContent(t,e){return!1!==e.withChildren&&this._rawContentElementMatcher.match(t)}_shouldRenameElement(t){const e=t.toLowerCase();return"editing"===this.renderingMode&&this.unsafeElements.includes(e)}_createReplacementDomElement(t,e=null){const n=this._domDocument.createElement("span");if(n.setAttribute(As,t),e){for(;e.firstChild;)n.appendChild(e.firstChild);for(const t of e.getAttributeNames())n.setAttribute(t,e.getAttribute(t))}return n}}function _s(t,e){for(;t&&t!=ms.document;)e(t),t=t.parentNode}function vs(t,e){const n=t.parentNode;return n&&n.tagName&&e.includes(n.tagName.toLowerCase())}function ys(t){"script"===t&&c("domconverter-unsafe-script-element-detected"),"style"===t&&c("domconverter-unsafe-style-element-detected")}function xs(t){const e=Object.prototype.toString.apply(t);return"[object Window]"==e||"[object global]"==e}const Es=vi((function(t,e){fe(e,tn(e),t)})),Ds=Es({},k,{listenTo(t,e,n,o={}){if($r(t)||xs(t)){const i={capture:!!o.useCapture,passive:!!o.usePassive},r=this._getProxyEmitter(t,i)||new Is(t,i);this.listenTo(r,e,n,o)}else k.listenTo.call(this,t,e,n,o)},stopListening(t,e,n){if($r(t)||xs(t)){const o=this._getAllProxyEmitters(t);for(const t of o)this.stopListening(t,e,n)}else k.stopListening.call(this,t,e,n)},_getProxyEmitter(t,e){return function(t,e){const n=t[g];return n&&n[e]?n[e].emitter:null}(this,Ts(t,e))},_getAllProxyEmitters(t){return[{capture:!1,passive:!1},{capture:!1,passive:!0},{capture:!0,passive:!1},{capture:!0,passive:!0}].map((e=>this._getProxyEmitter(t,e))).filter((t=>!!t))}}),Ss=Ds;class Is{constructor(t,e){w(this,Ts(t,e)),this._domNode=t,this._options=e}attach(t){if(this._domListeners&&this._domListeners[t])return;const e=this._createDomListener(t);this._domNode.addEventListener(t,e,this._options),this._domListeners||(this._domListeners={}),this._domListeners[t]=e}detach(t){let e;!this._domListeners[t]||(e=this._events[t])&&e.callbacks.length||this._domListeners[t].removeListener()}_addEventListener(t,e,n){this.attach(t),k._addEventListener.call(this,t,e,n)}_removeEventListener(t,e){k._removeEventListener.call(this,t,e),this.detach(t)}_createDomListener(t){const e=e=>{this.fire(t,e)};return e.removeListener=()=>{this._domNode.removeEventListener(t,e,this._options),delete this._domListeners[t]},e}}function Ts(t,e){let n=function(t){return t["data-ck-expando"]||(t["data-ck-expando"]=r())}(t);for(const t of Object.keys(e).sort())e[t]&&(n+="-"+t);return n}j(Is,k);class Ms{constructor(t){this.view=t,this.document=t.document,this.isEnabled=!1}enable(){this.isEnabled=!0}disable(){this.isEnabled=!1}destroy(){this.disable(),this.stopListening()}checkShouldIgnoreEventFromTarget(t){return t&&3===t.nodeType&&(t=t.parentNode),!(!t||1!==t.nodeType)&&t.matches("[data-cke-ignore-events], [data-cke-ignore-events] *")}}j(Ms,Ss);const Bs=function(t){return this.__data__.set(t,"__lodash_hash_undefined__"),this};const Ns=function(t){return this.__data__.has(t)};function zs(t){var e=-1,n=null==t?0:t.length;for(this.__data__=new ae;++ea))return!1;var c=r.get(t),d=r.get(e);if(c&&d)return c==e&&d==t;var u=-1,h=!0,m=2&n?new Ps:void 0;for(r.set(t,e),r.set(e,t);++u{this.listenTo(t,e,((t,e)=>{this.isEnabled&&!this.checkShouldIgnoreEventFromTarget(e.target)&&this.onDomEvent(e)}),{useCapture:this.useCapture})}))}fire(t,e,n){this.isEnabled&&this.document.fire(t,new ta(this.view,e,n))}}class na extends ea{constructor(t){super(t),this.domEventType=["keydown","keyup"]}onDomEvent(t){this.fire(t.type,t,{keyCode:t.keyCode,altKey:t.altKey,ctrlKey:t.ctrlKey,shiftKey:t.shiftKey,metaKey:t.metaKey,get keystroke(){return mr(this)}})}}const oa=function(){return Z.Date.now()};var ia=/\s/;const ra=function(t){for(var e=t.length;e--&&ia.test(t.charAt(e)););return e};var sa=/^\s+/;const aa=function(t){return t?t.slice(0,ra(t)+1).replace(sa,""):t};var la=/^[-+]0x[0-9a-f]+$/i,ca=/^0b[01]+$/i,da=/^0o[0-7]+$/i,ua=parseInt;const ha=function(t){if("number"==typeof t)return t;if(Po(t))return NaN;if(E(t)){var e="function"==typeof t.valueOf?t.valueOf():t;t=E(e)?e+"":e}if("string"!=typeof t)return 0===t?t:+t;t=aa(t);var n=ca.test(t);return n||da.test(t)?ua(t.slice(2),n?2:8):la.test(t)?NaN:+t};var ma=Math.max,ga=Math.min;const pa=function(t,e,n){var o,i,r,s,a,l,c=0,d=!1,u=!1,h=!0;if("function"!=typeof t)throw new TypeError("Expected a function");function m(e){var n=o,r=i;return o=i=void 0,c=e,s=t.apply(r,n)}function g(t){return c=t,a=setTimeout(f,e),d?m(t):s}function p(t){var n=t-l;return void 0===l||n>=e||n<0||u&&t-c>=r}function f(){var t=oa();if(p(t))return b(t);a=setTimeout(f,function(t){var n=e-(t-l);return u?ga(n,r-(t-c)):n}(t))}function b(t){return a=void 0,h&&o?m(t):(o=i=void 0,s)}function k(){var t=oa(),n=p(t);if(o=arguments,i=this,l=t,n){if(void 0===a)return g(l);if(u)return clearTimeout(a),a=setTimeout(f,e),m(l)}return void 0===a&&(a=setTimeout(f,e)),s}return e=ha(e)||0,E(n)&&(d=!!n.leading,r=(u="maxWait"in n)?ma(ha(n.maxWait)||0,e):r,h="trailing"in n?!!n.trailing:h),k.cancel=function(){void 0!==a&&clearTimeout(a),c=0,o=l=i=a=void 0},k.flush=function(){return void 0===a?s:b(oa())},k};class fa extends Ms{constructor(t){super(t),this._fireSelectionChangeDoneDebounced=pa((t=>this.document.fire("selectionChangeDone",t)),200)}observe(){const t=this.document;t.on("arrowKey",((e,n)=>{t.selection.isFake&&this.isEnabled&&n.preventDefault()}),{context:"$capture"}),t.on("arrowKey",((e,n)=>{t.selection.isFake&&this.isEnabled&&this._handleSelectionMove(n.keyCode)}),{priority:"lowest"})}destroy(){super.destroy(),this._fireSelectionChangeDoneDebounced.cancel()}_handleSelectionMove(t){const e=this.document.selection,n=new Ui(e.getRanges(),{backward:e.isBackward,fake:!1});t!=ur.arrowleft&&t!=ur.arrowup||n.setTo(n.getFirstPosition()),t!=ur.arrowright&&t!=ur.arrowdown||n.setTo(n.getLastPosition());const o={oldSelection:e,newSelection:n,domSelection:null};this.document.fire("selectionChange",o),this._fireSelectionChangeDoneDebounced(o)}}class ba extends Ms{constructor(t){super(t),this.mutationObserver=t.getObserver(Xs),this.selection=this.document.selection,this.domConverter=t.domConverter,this._documents=new WeakSet,this._fireSelectionChangeDoneDebounced=pa((t=>this.document.fire("selectionChangeDone",t)),200),this._clearInfiniteLoopInterval=setInterval((()=>this._clearInfiniteLoop()),1e3),this._documentIsSelectingInactivityTimeoutDebounced=pa((()=>this.document.isSelecting=!1),5e3),this._loopbackCounter=0}observe(t){const e=t.ownerDocument,n=()=>{this.document.isSelecting=!1,this._documentIsSelectingInactivityTimeoutDebounced.cancel()};this.listenTo(t,"selectstart",(()=>{this.document.isSelecting=!0,this._documentIsSelectingInactivityTimeoutDebounced()}),{priority:"highest"}),this.listenTo(t,"keydown",n,{priority:"highest"}),this.listenTo(t,"keyup",n,{priority:"highest"}),this._documents.has(e)||(this.listenTo(e,"mouseup",n,{priority:"highest"}),this.listenTo(e,"selectionchange",((t,n)=>{this._handleSelectionChange(n,e),this._documentIsSelectingInactivityTimeoutDebounced()})),this._documents.add(e))}destroy(){super.destroy(),clearInterval(this._clearInfiniteLoopInterval),this._fireSelectionChangeDoneDebounced.cancel(),this._documentIsSelectingInactivityTimeoutDebounced.cancel()}_handleSelectionChange(t,e){if(!this.isEnabled)return;const n=e.defaultView.getSelection();if(this.checkShouldIgnoreEventFromTarget(n.anchorNode))return;this.mutationObserver.flush();const o=this.domConverter.domSelectionToView(n);if(0!=o.rangeCount){if(this.view.hasDomSelection=!0,!(this.selection.isEqual(o)&&this.domConverter.isDomSelectionCorrect(n)||++this._loopbackCounter>60))if(this.selection.isSimilar(o))this.view.forceRender();else{const t={oldSelection:this.selection,newSelection:o,domSelection:n};this.document.fire("selectionChange",t),this._fireSelectionChangeDoneDebounced(t)}}else this.view.hasDomSelection=!1}_clearInfiniteLoop(){this._loopbackCounter=0}}class ka extends ea{constructor(t){super(t),this.domEventType=["focus","blur"],this.useCapture=!0;const e=this.document;e.on("focus",(()=>{e.isFocused=!0,this._renderTimeoutId=setTimeout((()=>t.change((()=>{}))),50)})),e.on("blur",((n,o)=>{const i=e.selection.editableElement;null!==i&&i!==o.target||(e.isFocused=!1,t.change((()=>{})))}))}onDomEvent(t){this.fire(t.type,t)}destroy(){this._renderTimeoutId&&clearTimeout(this._renderTimeoutId),super.destroy()}}class wa extends ea{constructor(t){super(t),this.domEventType=["compositionstart","compositionupdate","compositionend"];const e=this.document;e.on("compositionstart",(()=>{e.isComposing=!0})),e.on("compositionend",(()=>{e.isComposing=!1}))}onDomEvent(t){this.fire(t.type,t)}}class Aa extends ea{constructor(t){super(t),this.domEventType=["beforeinput"]}onDomEvent(t){this.fire(t.type,t)}}class Ca{constructor(){this._replacedElements=[]}replace(t,e){this._replacedElements.push({element:t,newElement:e}),t.style.display="none",e&&t.parentNode.insertBefore(e,t.nextSibling)}restore(){this._replacedElements.forEach((({element:t,newElement:e})=>{t.style.display="",e&&e.remove()})),this._replacedElements=[]}}const _a=function(t){return"string"==typeof t||!ve(t)&&st(t)&&"[object String]"==ot(t)};function va(t,e,n={},o=[]){const i=n&&n.xmlns,r=i?t.createElementNS(i,e):t.createElement(e);for(const t in n)r.setAttribute(t,n[t]);!_a(o)&&po(o)||(o=[o]);for(let e of o)_a(e)&&(e=t.createTextNode(e)),r.appendChild(e);return r}function ya(t){return"[object Range]"==Object.prototype.toString.apply(t)}function xa(t){const e=t.ownerDocument.defaultView.getComputedStyle(t);return{top:parseInt(e.borderTopWidth,10),right:parseInt(e.borderRightWidth,10),bottom:parseInt(e.borderBottomWidth,10),left:parseInt(e.borderLeftWidth,10)}}const Ea=["top","right","bottom","left","width","height"];class Da{constructor(t){const e=ya(t);if(Object.defineProperty(this,"_source",{value:t._source||t,writable:!0,enumerable:!1}),Ta(t)||e)if(e){const e=Da.getDomRangeRects(t);Sa(this,Da.getBoundingRect(e))}else Sa(this,t.getBoundingClientRect());else if(xs(t)){const{innerWidth:e,innerHeight:n}=t;Sa(this,{top:0,right:e,bottom:n,left:0,width:e,height:n})}else Sa(this,t)}clone(){return new Da(this)}moveTo(t,e){return this.top=e,this.right=t+this.width,this.bottom=e+this.height,this.left=t,this}moveBy(t,e){return this.top+=e,this.right+=t,this.left+=t,this.bottom+=e,this}getIntersection(t){const e={top:Math.max(this.top,t.top),right:Math.min(this.right,t.right),bottom:Math.min(this.bottom,t.bottom),left:Math.max(this.left,t.left),width:0,height:0};return e.width=e.right-e.left,e.height=e.bottom-e.top,e.width<0||e.height<0?null:new Da(e)}getIntersectionArea(t){const e=this.getIntersection(t);return e?e.getArea():0}getArea(){return this.width*this.height}getVisible(){const t=this._source;let e=this.clone();if(!Ia(t)){let n=t.parentNode||t.commonAncestorContainer;for(;n&&!Ia(n);){const t=new Da(n),o=e.getIntersection(t);if(!o)return null;o.getArea(){for(const e of t){const t=Ma._getElementCallbacks(e.target);if(t)for(const n of t)n(e)}}))}}function Ba(t){const e=t.next();return e.done?null:e.value}Ma._observerInstance=null,Ma._elementCallbacks=null;class Na{constructor(){this.set("isFocused",!1),this.set("focusedElement",null),this._elements=new Set,this._nextEventLoopTimeout=null}add(t){if(this._elements.has(t))throw new l("focustracker-add-element-already-exist",this);this.listenTo(t,"focus",(()=>this._focus(t)),{useCapture:!0}),this.listenTo(t,"blur",(()=>this._blur()),{useCapture:!0}),this._elements.add(t)}remove(t){t===this.focusedElement&&this._blur(),this._elements.has(t)&&(this.stopListening(t),this._elements.delete(t))}destroy(){this.stopListening()}_focus(t){clearTimeout(this._nextEventLoopTimeout),this.focusedElement=t,this.isFocused=!0}_blur(){clearTimeout(this._nextEventLoopTimeout),this._nextEventLoopTimeout=setTimeout((()=>{this.focusedElement=null,this.isFocused=!1}),0)}}j(Na,Ss),j(Na,N);const za=Na;class Pa{constructor(){this._listener=Object.create(Ss)}listenTo(t){this._listener.listenTo(t,"keydown",((t,e)=>{this._listener.fire("_keydown:"+mr(e),e)}))}set(t,e,n={}){const o=gr(t),i=n.priority;this._listener.listenTo(this._listener,"_keydown:"+o,((t,n)=>{e(n,(()=>{n.preventDefault(),n.stopPropagation(),t.stop()})),t.return=!0}),{priority:i})}press(t){return!!this._listener.fire("_keydown:"+mr(t),t)}destroy(){this._listener.stopListening()}}class La extends Ms{constructor(t){super(t),this.document.on("keydown",((t,e)=>{if(this.isEnabled&&((n=e.keyCode)==ur.arrowright||n==ur.arrowleft||n==ur.arrowup||n==ur.arrowdown)){const n=new Gi(this.document,"arrowKey",this.document.selection.getFirstRange());this.document.fire(n,e),n.stop.called&&t.stop()}var n}))}observe(){}}class Oa extends Ms{constructor(t){super(t);const e=this.document;e.on("keydown",((t,n)=>{if(!this.isEnabled||n.keyCode!=ur.tab||n.ctrlKey)return;const o=new Gi(e,"tab",e.selection.getFirstRange());e.fire(o,n),o.stop.called&&t.stop()}))}observe(){}}function Ra(t,e,n){const o=e.clone().moveBy(0,n),i=e.clone().moveBy(0,-n),r=new Da(t).excludeScrollbarsAndBorders();if(![i,o].every((t=>r.contains(t)))){let{scrollX:s,scrollY:a}=t;Fa(i,r)?a-=r.top-e.top+n:Va(o,r)&&(a+=e.bottom-r.bottom+n),Ha(e,r)?s-=r.left-e.left+n:Ua(e,r)&&(s+=e.right-r.right+n),t.scrollTo(s,a)}}function ja(t,e){const n=qa(t);let o,i;for(;t!=n.document.body;)i=e(),o=new Da(t).excludeScrollbarsAndBorders(),o.contains(i)||(Fa(i,o)?t.scrollTop-=o.top-i.top:Va(i,o)&&(t.scrollTop+=i.bottom-o.bottom),Ha(i,o)?t.scrollLeft-=o.left-i.left:Ua(i,o)&&(t.scrollLeft+=i.right-o.right)),t=t.parentNode}function Va(t,e){return t.bottom>e.bottom}function Fa(t,e){return t.tope.right}function qa(t){return ya(t)?t.startContainer.ownerDocument.defaultView:t.ownerDocument.defaultView}function Ga(t){if(ya(t)){let e=t.commonAncestorContainer;return zr(e)&&(e=e.parentNode),e}return t.parentNode}function Wa(t,e){const n=qa(t),o=new Da(t);if(n===e)return o;{let t=n;for(;t!=e;){const e=t.frameElement,n=new Da(e).excludeScrollbarsAndBorders();o.moveBy(n.left,n.top),t=t.parent}}return o}class Za{constructor(t){this.document=new Xi(t),this.domConverter=new Cs(this.document),this.domRoots=new Map,this.set("isRenderingInProgress",!1),this.set("hasDomSelection",!1),this._renderer=new cs(this.domConverter,this.document.selection),this._renderer.bind("isFocused","isSelecting").to(this.document),this._initialDomRootAttributes=new WeakMap,this._observers=new Map,this._ongoingChange=!1,this._postFixersInProgress=!1,this._renderingDisabled=!1,this._hasChangedSinceTheLastRendering=!1,this._writer=new vr(this.document),this.addObserver(Xs),this.addObserver(ba),this.addObserver(ka),this.addObserver(na),this.addObserver(fa),this.addObserver(wa),this.addObserver(La),this.addObserver(Oa),ar.isAndroid&&this.addObserver(Aa),this.document.on("arrowKey",Hr,{priority:"low"}),kr(this),this.on("render",(()=>{this._render(),this.document.fire("layoutChanged"),this._hasChangedSinceTheLastRendering=!1})),this.listenTo(this.document.selection,"change",(()=>{this._hasChangedSinceTheLastRendering=!0})),this.listenTo(this.document,"change:isFocused",(()=>{this._hasChangedSinceTheLastRendering=!0}))}attachDomRoot(t,e="main"){const n=this.document.getRoot(e);n._name=t.tagName.toLowerCase();const o={};for(const{name:e,value:i}of Array.from(t.attributes))o[e]=i,"class"===e?this._writer.addClass(i.split(" "),n):this._writer.setAttribute(e,i,n);this._initialDomRootAttributes.set(t,o);const i=()=>{this._writer.setAttribute("contenteditable",!n.isReadOnly,n),n.isReadOnly?this._writer.addClass("ck-read-only",n):this._writer.removeClass("ck-read-only",n)};i(),this.domRoots.set(e,t),this.domConverter.bindElements(t,n),this._renderer.markToSync("children",n),this._renderer.markToSync("attributes",n),this._renderer.domDocuments.add(t.ownerDocument),n.on("change:children",((t,e)=>this._renderer.markToSync("children",e))),n.on("change:attributes",((t,e)=>this._renderer.markToSync("attributes",e))),n.on("change:text",((t,e)=>this._renderer.markToSync("text",e))),n.on("change:isReadOnly",(()=>this.change(i))),n.on("change",(()=>{this._hasChangedSinceTheLastRendering=!0}));for(const n of this._observers.values())n.observe(t,e)}detachDomRoot(t){const e=this.domRoots.get(t);Array.from(e.attributes).forEach((({name:t})=>e.removeAttribute(t)));const n=this._initialDomRootAttributes.get(e);for(const t in n)e.setAttribute(t,n[t]);this.domRoots.delete(t),this.domConverter.unbindDomElement(e)}getDomRoot(t="main"){return this.domRoots.get(t)}addObserver(t){let e=this._observers.get(t);if(e)return e;e=new t(this),this._observers.set(t,e);for(const[t,n]of this.domRoots)e.observe(n,t);return e.enable(),e}getObserver(t){return this._observers.get(t)}disableObservers(){for(const t of this._observers.values())t.disable()}enableObservers(){for(const t of this._observers.values())t.enable()}scrollToTheSelection(){const t=this.document.selection.getFirstRange();t&&function({target:t,viewportOffset:e=0}){const n=qa(t);let o=n,i=null;for(;o;){let r;r=Ga(o==n?t:i),ja(r,(()=>Wa(t,o)));const s=Wa(t,o);if(Ra(o,s,e),o.parent!=o){if(i=o.frameElement,o=o.parent,!i)return}else o=null}}({target:this.domConverter.viewRangeToDom(t),viewportOffset:20})}focus(){if(!this.document.isFocused){const t=this.document.selection.editableElement;t&&(this.domConverter.focus(t),this.forceRender())}}change(t){if(this.isRenderingInProgress||this._postFixersInProgress)throw new l("cannot-change-view-tree",this);try{if(this._ongoingChange)return t(this._writer);this._ongoingChange=!0;const e=t(this._writer);return this._ongoingChange=!1,!this._renderingDisabled&&this._hasChangedSinceTheLastRendering&&(this._postFixersInProgress=!0,this.document._callPostFixers(this._writer),this._postFixersInProgress=!1,this.fire("render")),e}catch(t){l.rethrowUnexpectedError(t,this)}}forceRender(){this._hasChangedSinceTheLastRendering=!0,this.change((()=>{}))}destroy(){for(const t of this._observers.values())t.destroy();this.document.destroy(),this.stopListening()}createPositionAt(t,e){return ji._createAt(t,e)}createPositionAfter(t){return ji._createAfter(t)}createPositionBefore(t){return ji._createBefore(t)}createRange(t,e){return new Vi(t,e)}createRangeOn(t){return Vi._createOn(t)}createRangeIn(t){return Vi._createIn(t)}createSelection(t,e,n){return new Ui(t,e,n)}_disableRendering(t){this._renderingDisabled=t,0==t&&this.change((()=>{}))}_render(){this.isRenderingInProgress=!0,this.disableObservers(),this._renderer.render(),this.enableObservers(),this.isRenderingInProgress=!1}}j(Za,N);class Ya{constructor(t){this.parent=null,this._attrs=Mo(t)}get index(){let t;if(!this.parent)return null;if(null===(t=this.parent.getChildIndex(this)))throw new l("model-node-not-found-in-parent",this);return t}get startOffset(){let t;if(!this.parent)return null;if(null===(t=this.parent.getChildStartOffset(this)))throw new l("model-node-not-found-in-parent",this);return t}get offsetSize(){return 1}get endOffset(){return this.parent?this.startOffset+this.offsetSize:null}get nextSibling(){const t=this.index;return null!==t&&this.parent.getChild(t+1)||null}get previousSibling(){const t=this.index;return null!==t&&this.parent.getChild(t-1)||null}get root(){let t=this;for(;t.parent;)t=t.parent;return t}isAttached(){return this.root.is("rootElement")}getPath(){const t=[];let e=this;for(;e.parent;)t.unshift(e.startOffset),e=e.parent;return t}getAncestors(t={includeSelf:!1,parentFirst:!1}){const e=[];let n=t.includeSelf?this:this.parent;for(;n;)e[t.parentFirst?"push":"unshift"](n),n=n.parent;return e}getCommonAncestor(t,e={}){const n=this.getAncestors(e),o=t.getAncestors(e);let i=0;for(;n[i]==o[i]&&n[i];)i++;return 0===i?null:n[i-1]}isBefore(t){if(this==t)return!1;if(this.root!==t.root)return!1;const e=this.getPath(),n=t.getPath(),o=Eo(e,n);switch(o){case"prefix":return!0;case"extension":return!1;default:return e[o](t[e[0]]=e[1],t)),{})),t}is(t){return"node"===t||"model:node"===t}_clone(){return new Ya(this._attrs)}_remove(){this.parent._removeChildren(this.index)}_setAttribute(t,e){this._attrs.set(t,e)}_setAttributesTo(t){this._attrs=Mo(t)}_removeAttribute(t){return this._attrs.delete(t)}_clearAttributes(){this._attrs.clear()}}class Ka extends Ya{constructor(t,e){super(e),this._data=t||""}get offsetSize(){return this.data.length}get data(){return this._data}is(t){return"$text"===t||"model:$text"===t||"text"===t||"model:text"===t||"node"===t||"model:node"===t}toJSON(){const t=super.toJSON();return t.data=this.data,t}_clone(){return new Ka(this.data,this.getAttributes())}static fromJSON(t){return new Ka(t.data,t.attributes)}}class $a{constructor(t,e,n){if(this.textNode=t,e<0||e>t.offsetSize)throw new l("model-textproxy-wrong-offsetintext",this);if(n<0||e+n>t.offsetSize)throw new l("model-textproxy-wrong-length",this);this.data=t.data.substring(e,e+n),this.offsetInText=e}get startOffset(){return null!==this.textNode.startOffset?this.textNode.startOffset+this.offsetInText:null}get offsetSize(){return this.data.length}get endOffset(){return null!==this.startOffset?this.startOffset+this.offsetSize:null}get isPartial(){return this.offsetSize!==this.textNode.offsetSize}get parent(){return this.textNode.parent}get root(){return this.textNode.root}is(t){return"$textProxy"===t||"model:$textProxy"===t||"textProxy"===t||"model:textProxy"===t}getPath(){const t=this.textNode.getPath();return t.length>0&&(t[t.length-1]+=this.offsetInText),t}getAncestors(t={includeSelf:!1,parentFirst:!1}){const e=[];let n=t.includeSelf?this:this.parent;for(;n;)e[t.parentFirst?"push":"unshift"](n),n=n.parent;return e}hasAttribute(t){return this.textNode.hasAttribute(t)}getAttribute(t){return this.textNode.getAttribute(t)}getAttributes(){return this.textNode.getAttributes()}getAttributeKeys(){return this.textNode.getAttributeKeys()}}class Qa{constructor(t){this._nodes=[],t&&this._insertNodes(0,t)}[Symbol.iterator](){return this._nodes[Symbol.iterator]()}get length(){return this._nodes.length}get maxOffset(){return this._nodes.reduce(((t,e)=>t+e.offsetSize),0)}getNode(t){return this._nodes[t]||null}getNodeIndex(t){const e=this._nodes.indexOf(t);return-1==e?null:e}getNodeStartOffset(t){const e=this.getNodeIndex(t);return null===e?null:this._nodes.slice(0,e).reduce(((t,e)=>t+e.offsetSize),0)}indexToOffset(t){if(t==this._nodes.length)return this.maxOffset;const e=this._nodes[t];if(!e)throw new l("model-nodelist-index-out-of-bounds",this);return this.getNodeStartOffset(e)}offsetToIndex(t){let e=0;for(const n of this._nodes){if(t>=e&&tt.toJSON()))}}class Ja extends Ya{constructor(t,e,n){super(e),this.name=t,this._children=new Qa,n&&this._insertChild(0,n)}get childCount(){return this._children.length}get maxOffset(){return this._children.maxOffset}get isEmpty(){return 0===this.childCount}is(t,e=null){return e?e===this.name&&("element"===t||"model:element"===t):"element"===t||"model:element"===t||"node"===t||"model:node"===t}getChild(t){return this._children.getNode(t)}getChildren(){return this._children[Symbol.iterator]()}getChildIndex(t){return this._children.getNodeIndex(t)}getChildStartOffset(t){return this._children.getNodeStartOffset(t)}offsetToIndex(t){return this._children.offsetToIndex(t)}getNodeByPath(t){let e=this;for(const n of t)e=e.getChild(e.offsetToIndex(n));return e}findAncestor(t,e={includeSelf:!1}){let n=e.includeSelf?this:this.parent;for(;n;){if(n.name===t)return n;n=n.parent}return null}toJSON(){const t=super.toJSON();if(t.name=this.name,this._children.length>0){t.children=[];for(const e of this._children)t.children.push(e.toJSON())}return t}_clone(t=!1){const e=t?Array.from(this._children).map((t=>t._clone(!0))):null;return new Ja(this.name,this.getAttributes(),e)}_appendChild(t){this._insertChild(this.childCount,t)}_insertChild(t,e){const n=function(t){if("string"==typeof t)return[new Ka(t)];po(t)||(t=[t]);return Array.from(t).map((t=>"string"==typeof t?new Ka(t):t instanceof $a?new Ka(t.data,t.getAttributes()):t))}(e);for(const t of n)null!==t.parent&&t._remove(),t.parent=this;this._children._insertNodes(t,n)}_removeChildren(t,e=1){const n=this._children._removeNodes(t,e);for(const t of n)t.parent=null;return n}static fromJSON(t){let e=null;if(t.children){e=[];for(const n of t.children)n.name?e.push(Ja.fromJSON(n)):e.push(Ka.fromJSON(n))}return new Ja(t.name,t.attributes,e)}}class Xa{constructor(t={}){if(!t.boundaries&&!t.startPosition)throw new l("model-tree-walker-no-start-position",null);const e=t.direction||"forward";if("forward"!=e&&"backward"!=e)throw new l("model-tree-walker-unknown-direction",t,{direction:e});this.direction=e,this.boundaries=t.boundaries||null,t.startPosition?this.position=t.startPosition.clone():this.position=el._createAt(this.boundaries["backward"==this.direction?"end":"start"]),this.position.stickiness="toNone",this.singleCharacters=!!t.singleCharacters,this.shallow=!!t.shallow,this.ignoreElementEnd=!!t.ignoreElementEnd,this._boundaryStartParent=this.boundaries?this.boundaries.start.parent:null,this._boundaryEndParent=this.boundaries?this.boundaries.end.parent:null,this._visitedParent=this.position.parent}[Symbol.iterator](){return this}skip(t){let e,n,o,i;do{o=this.position,i=this._visitedParent,({done:e,value:n}=this.next())}while(!e&&t(n));e||(this.position=o,this._visitedParent=i)}next(){return"forward"==this.direction?this._next():this._previous()}_next(){const t=this.position,e=this.position.clone(),n=this._visitedParent;if(null===n.parent&&e.offset===n.maxOffset)return{done:!0};if(n===this._boundaryEndParent&&e.offset==this.boundaries.end.offset)return{done:!0};const o=nl(e,n),i=o||ol(e,n,o);if(i instanceof Ja)return this.shallow?e.offset++:(e.path.push(0),this._visitedParent=i),this.position=e,tl("elementStart",i,t,e,1);if(i instanceof Ka){let o;if(this.singleCharacters)o=1;else{let t=i.endOffset;this._boundaryEndParent==n&&this.boundaries.end.offsett&&(t=this.boundaries.start.offset),o=e.offset-t}const i=e.offset-r.startOffset,s=new $a(r,i-o,o);return e.offset-=o,this.position=e,tl("text",s,t,e,o)}return e.path.pop(),this.position=e,this._visitedParent=n.parent,tl("elementStart",n,t,e,1)}}function tl(t,e,n,o,i){return{done:!1,value:{type:t,item:e,previousPosition:n,nextPosition:o,length:i}}}class el{constructor(t,e,n="toNone"){if(!t.is("element")&&!t.is("documentFragment"))throw new l("model-position-root-invalid",t);if(!(e instanceof Array)||0===e.length)throw new l("model-position-path-incorrect-format",t,{path:e});t.is("rootElement")?e=e.slice():(e=[...t.getPath(),...e],t=t.root),this.root=t,this.path=e,this.stickiness=n}get offset(){return this.path[this.path.length-1]}set offset(t){this.path[this.path.length-1]=t}get parent(){let t=this.root;for(let e=0;en.path.length){if(e.offset!==o.maxOffset)return!1;e.path=e.path.slice(0,-1),o=o.parent,e.offset++}else{if(0!==n.offset)return!1;n.path=n.path.slice(0,-1)}}}is(t){return"position"===t||"model:position"===t}hasSameParentAs(t){if(this.root!==t.root)return!1;return"same"==Eo(this.getParentPath(),t.getParentPath())}getTransformedByOperation(t){let e;switch(t.type){case"insert":e=this._getTransformedByInsertOperation(t);break;case"move":case"remove":case"reinsert":e=this._getTransformedByMoveOperation(t);break;case"split":e=this._getTransformedBySplitOperation(t);break;case"merge":e=this._getTransformedByMergeOperation(t);break;default:e=el._createAt(this)}return e}_getTransformedByInsertOperation(t){return this._getTransformedByInsertion(t.position,t.howMany)}_getTransformedByMoveOperation(t){return this._getTransformedByMove(t.sourcePosition,t.targetPosition,t.howMany)}_getTransformedBySplitOperation(t){const e=t.movedRange;return e.containsPosition(this)||e.start.isEqual(this)&&"toNext"==this.stickiness?this._getCombined(t.splitPosition,t.moveTargetPosition):t.graveyardPosition?this._getTransformedByMove(t.graveyardPosition,t.insertionPosition,1):this._getTransformedByInsertion(t.insertionPosition,1)}_getTransformedByMergeOperation(t){const e=t.movedRange;let n;return e.containsPosition(this)||e.start.isEqual(this)?(n=this._getCombined(t.sourcePosition,t.targetPosition),t.sourcePosition.isBefore(t.targetPosition)&&(n=n._getTransformedByDeletion(t.deletionPosition,1))):n=this.isEqual(t.deletionPosition)?el._createAt(t.deletionPosition):this._getTransformedByMove(t.deletionPosition,t.graveyardPosition,1),n}_getTransformedByDeletion(t,e){const n=el._createAt(this);if(this.root!=t.root)return n;if("same"==Eo(t.getParentPath(),this.getParentPath())){if(t.offsetthis.offset)return null;n.offset-=e}}else if("prefix"==Eo(t.getParentPath(),this.getParentPath())){const o=t.path.length-1;if(t.offset<=this.path[o]){if(t.offset+e>this.path[o])return null;n.path[o]-=e}}return n}_getTransformedByInsertion(t,e){const n=el._createAt(this);if(this.root!=t.root)return n;if("same"==Eo(t.getParentPath(),this.getParentPath()))(t.offsete+1;){const e=o.maxOffset-n.offset;0!==e&&t.push(new rl(n,n.getShiftedBy(e))),n.path=n.path.slice(0,-1),n.offset++,o=o.parent}for(;n.path.length<=this.end.path.length;){const e=this.end.path[n.path.length-1],o=e-n.offset;0!==o&&t.push(new rl(n,n.getShiftedBy(o))),n.offset=e,n.path.push(0)}return t}getWalker(t={}){return t.boundaries=this,new Xa(t)}*getItems(t={}){t.boundaries=this,t.ignoreElementEnd=!0;const e=new Xa(t);for(const t of e)yield t.item}*getPositions(t={}){t.boundaries=this;const e=new Xa(t);yield e.position;for(const t of e)yield t.nextPosition}getTransformedByOperation(t){switch(t.type){case"insert":return this._getTransformedByInsertOperation(t);case"move":case"remove":case"reinsert":return this._getTransformedByMoveOperation(t);case"split":return[this._getTransformedBySplitOperation(t)];case"merge":return[this._getTransformedByMergeOperation(t)]}return[new rl(this.start,this.end)]}getTransformedByOperations(t){const e=[new rl(this.start,this.end)];for(const n of t)for(let t=0;t0?new this(n,o):new this(o,n)}static _createIn(t){return new this(el._createAt(t,0),el._createAt(t,t.maxOffset))}static _createOn(t){return this._createFromPositionAndShift(el._createBefore(t),t.offsetSize)}static _createFromRanges(t){if(0===t.length)throw new l("range-create-from-ranges-empty-array",null);if(1==t.length)return t[0].clone();const e=t[0];t.sort(((t,e)=>t.start.isAfter(e.start)?1:-1));const n=t.indexOf(e),o=new this(e.start,e.end);if(n>0)for(let e=n-1;t[e].end.isEqual(o.start);e++)o.start=el._createAt(t[e].start);for(let e=n+1;e{if(e.viewPosition)return;const n=this._modelToViewMapping.get(e.modelPosition.parent);if(!n)throw new l("mapping-model-position-view-parent-not-found",this,{modelPosition:e.modelPosition});e.viewPosition=this.findPositionIn(n,e.modelPosition.offset)}),{priority:"low"}),this.on("viewToModelPosition",((t,e)=>{if(e.modelPosition)return;const n=this.findMappedViewAncestor(e.viewPosition),o=this._viewToModelMapping.get(n),i=this._toModelOffset(e.viewPosition.parent,e.viewPosition.offset,n);e.modelPosition=el._createAt(o,i)}),{priority:"low"})}bindElements(t,e){this._modelToViewMapping.set(t,e),this._viewToModelMapping.set(e,t)}unbindViewElement(t,e={}){const n=this.toModelElement(t);if(this._elementToMarkerNames.has(t))for(const e of this._elementToMarkerNames.get(t))this._unboundMarkerNames.add(e);e.defer?this._deferredBindingRemovals.set(t,t.root):(this._viewToModelMapping.delete(t),this._modelToViewMapping.get(n)==t&&this._modelToViewMapping.delete(n))}unbindModelElement(t){const e=this.toViewElement(t);this._modelToViewMapping.delete(t),this._viewToModelMapping.get(e)==t&&this._viewToModelMapping.delete(e)}bindElementToMarker(t,e){const n=this._markerNameToElements.get(e)||new Set;n.add(t);const o=this._elementToMarkerNames.get(t)||new Set;o.add(e),this._markerNameToElements.set(e,n),this._elementToMarkerNames.set(t,o)}unbindElementFromMarkerName(t,e){const n=this._markerNameToElements.get(e);n&&(n.delete(t),0==n.size&&this._markerNameToElements.delete(e));const o=this._elementToMarkerNames.get(t);o&&(o.delete(e),0==o.size&&this._elementToMarkerNames.delete(t))}flushUnboundMarkerNames(){const t=Array.from(this._unboundMarkerNames);return this._unboundMarkerNames.clear(),t}flushDeferredBindings(){for(const[t,e]of this._deferredBindingRemovals)t.root==e&&this.unbindViewElement(t);this._deferredBindingRemovals=new Map}clearBindings(){this._modelToViewMapping=new WeakMap,this._viewToModelMapping=new WeakMap,this._markerNameToElements=new Map,this._elementToMarkerNames=new Map,this._unboundMarkerNames=new Set,this._deferredBindingRemovals=new Map}toModelElement(t){return this._viewToModelMapping.get(t)}toViewElement(t){return this._modelToViewMapping.get(t)}toModelRange(t){return new rl(this.toModelPosition(t.start),this.toModelPosition(t.end))}toViewRange(t){return new Vi(this.toViewPosition(t.start),this.toViewPosition(t.end))}toModelPosition(t){const e={viewPosition:t,mapper:this};return this.fire("viewToModelPosition",e),e.modelPosition}toViewPosition(t,e={isPhantom:!1}){const n={modelPosition:t,mapper:this,isPhantom:e.isPhantom};return this.fire("modelToViewPosition",n),n.viewPosition}markerNameToElements(t){const e=this._markerNameToElements.get(t);if(!e)return null;const n=new Set;for(const t of e)if(t.is("attributeElement"))for(const e of t.getElementsWithSameId())n.add(e);else n.add(t);return n}registerViewToModelLength(t,e){this._viewToModelLengthCallbacks.set(t,e)}findMappedViewAncestor(t){let e=t.parent;for(;!this._viewToModelMapping.has(e);)e=e.parent;return e}_toModelOffset(t,e,n){if(n!=t){return this._toModelOffset(t.parent,t.index,n)+this._toModelOffset(t,e,t)}if(t.is("$text"))return e;let o=0;for(let n=0;n1?e[0]+":"+e[1]:e[0]}class cl{constructor(t){this._conversionApi={dispatcher:this,...t},this._firedEventsMap=new WeakMap}convertChanges(t,e,n){const o=this._createConversionApi(n,t.getRefreshedItems());for(const e of t.getMarkersToRemove())this._convertMarkerRemove(e.name,e.range,o);const i=this._reduceChanges(t.getChanges());for(const t of i)"insert"===t.type?this._convertInsert(rl._createFromPositionAndShift(t.position,t.length),o):"reinsert"===t.type?this._convertReinsert(rl._createFromPositionAndShift(t.position,t.length),o):"remove"===t.type?this._convertRemove(t.position,t.length,t.name,o):this._convertAttribute(t.range,t.attributeKey,t.attributeOldValue,t.attributeNewValue,o);for(const t of o.mapper.flushUnboundMarkerNames()){const n=e.get(t).getRange();this._convertMarkerRemove(t,n,o),this._convertMarkerAdd(t,n,o)}for(const e of t.getMarkersToAdd())this._convertMarkerAdd(e.name,e.range,o);o.mapper.flushDeferredBindings(),o.consumable.verifyAllConsumed("insert")}convert(t,e,n,o={}){const i=this._createConversionApi(n,void 0,o);this._convertInsert(t,i);for(const[t,n]of e)this._convertMarkerAdd(t,n,i);i.consumable.verifyAllConsumed("insert")}convertSelection(t,e,n){const o=Array.from(e.getMarkersAtPosition(t.getFirstPosition())),i=this._createConversionApi(n);if(this._addConsumablesForSelection(i.consumable,t,o),this.fire("selection",{selection:t},i),t.isCollapsed){for(const e of o){const n=e.getRange();if(!dl(t.getFirstPosition(),e,i.mapper))continue;const o={item:t,markerName:e.name,markerRange:n};i.consumable.test(t,"addMarker:"+e.name)&&this.fire("addMarker:"+e.name,o,i)}for(const e of t.getAttributeKeys()){const n={item:t,range:t.getFirstRange(),attributeKey:e,attributeOldValue:null,attributeNewValue:t.getAttribute(e)};i.consumable.test(t,"attribute:"+n.attributeKey)&&this.fire("attribute:"+n.attributeKey+":$text",n,i)}}}_convertInsert(t,e,n={}){n.doNotAddConsumables||this._addConsumablesForInsert(e.consumable,Array.from(t));for(const n of Array.from(t.getWalker({shallow:!0})).map(ul))this._testAndFire("insert",n,e)}_convertRemove(t,e,n,o){this.fire("remove:"+n,{position:t,length:e},o)}_convertAttribute(t,e,n,o,i){this._addConsumablesForRange(i.consumable,t,`attribute:${e}`);for(const r of t){const t={item:r.item,range:rl._createFromPositionAndShift(r.previousPosition,r.length),attributeKey:e,attributeOldValue:n,attributeNewValue:o};this._testAndFire(`attribute:${e}`,t,i)}}_convertReinsert(t,e){const n=Array.from(t.getWalker({shallow:!0}));this._addConsumablesForInsert(e.consumable,n);for(const t of n.map(ul))this._testAndFire("insert",{...t,reconversion:!0},e)}_convertMarkerAdd(t,e,n){if("$graveyard"==e.root.rootName)return;const o="addMarker:"+t;if(n.consumable.add(e,o),this.fire(o,{markerName:t,markerRange:e},n),n.consumable.consume(e,o)){this._addConsumablesForRange(n.consumable,e,o);for(const i of e.getItems()){if(!n.consumable.test(i,o))continue;const r={item:i,range:rl._createOn(i),markerName:t,markerRange:e};this.fire(o,r,n)}}}_convertMarkerRemove(t,e,n){"$graveyard"!=e.root.rootName&&this.fire("removeMarker:"+t,{markerName:t,markerRange:e},n)}_reduceChanges(t){const e={changes:t};return this.fire("reduceChanges",e),e.changes}_addConsumablesForInsert(t,e){for(const n of e){const e=n.item;if(null===t.test(e,"insert")){t.add(e,"insert");for(const n of e.getAttributeKeys())t.add(e,"attribute:"+n)}}return t}_addConsumablesForRange(t,e,n){for(const o of e.getItems())t.add(o,n);return t}_addConsumablesForSelection(t,e,n){t.add(e,"selection");for(const o of n)t.add(e,"addMarker:"+o.name);for(const n of e.getAttributeKeys())t.add(e,"attribute:"+n);return t}_testAndFire(t,e,n){const o=function(t,e){const n=e.item.name||"$text";return`${t}:${n}`}(t,e),i=e.item.is("$textProxy")?n.consumable._getSymbolForTextProxy(e.item):e.item,r=this._firedEventsMap.get(n),s=r.get(i);if(s){if(s.has(o))return;s.add(o)}else r.set(i,new Set([o]));this.fire(o,e,n)}_testAndFireAddAttributes(t,e){const n={item:t,range:rl._createOn(t)};for(const t of n.item.getAttributeKeys())n.attributeKey=t,n.attributeOldValue=null,n.attributeNewValue=n.item.getAttribute(t),this._testAndFire(`attribute:${t}`,n,e)}_createConversionApi(t,e=new Set,n={}){const o={...this._conversionApi,consumable:new al,writer:t,options:n,convertItem:t=>this._convertInsert(rl._createOn(t),o),convertChildren:t=>this._convertInsert(rl._createIn(t),o,{doNotAddConsumables:!0}),convertAttributes:t=>this._testAndFireAddAttributes(t,o),canReuseView:t=>!e.has(o.mapper.toModelElement(t))};return this._firedEventsMap.set(o,new Map),o}}function dl(t,e,n){const o=e.getRange(),i=Array.from(t.getAncestors());i.shift(),i.reverse();return!i.some((t=>{if(o.containsItem(t)){return!!n.toViewElement(t).getCustomProperty("addHighlight")}}))}function ul(t){return{item:t.item,range:rl._createFromPositionAndShift(t.previousPosition,t.length)}}j(cl,k);class hl{constructor(t,e,n){this._lastRangeBackward=!1,this._ranges=[],this._attrs=new Map,t&&this.setTo(t,e,n)}get anchor(){if(this._ranges.length>0){const t=this._ranges[this._ranges.length-1];return this._lastRangeBackward?t.end:t.start}return null}get focus(){if(this._ranges.length>0){const t=this._ranges[this._ranges.length-1];return this._lastRangeBackward?t.start:t.end}return null}get isCollapsed(){return 1===this._ranges.length&&this._ranges[0].isCollapsed}get rangeCount(){return this._ranges.length}get isBackward(){return!this.isCollapsed&&this._lastRangeBackward}isEqual(t){if(this.rangeCount!=t.rangeCount)return!1;if(0===this.rangeCount)return!0;if(!this.anchor.isEqual(t.anchor)||!this.focus.isEqual(t.focus))return!1;for(const e of this._ranges){let n=!1;for(const o of t._ranges)if(e.isEqual(o)){n=!0;break}if(!n)return!1}return!0}*getRanges(){for(const t of this._ranges)yield new rl(t.start,t.end)}getFirstRange(){let t=null;for(const e of this._ranges)t&&!e.start.isBefore(t.start)||(t=e);return t?new rl(t.start,t.end):null}getLastRange(){let t=null;for(const e of this._ranges)t&&!e.end.isAfter(t.end)||(t=e);return t?new rl(t.start,t.end):null}getFirstPosition(){const t=this.getFirstRange();return t?t.start.clone():null}getLastPosition(){const t=this.getLastRange();return t?t.end.clone():null}setTo(t,e,n){if(null===t)this._setRanges([]);else if(t instanceof hl)this._setRanges(t.getRanges(),t.isBackward);else if(t&&"function"==typeof t.getRanges)this._setRanges(t.getRanges(),t.isBackward);else if(t instanceof rl)this._setRanges([t],!!e&&!!e.backward);else if(t instanceof el)this._setRanges([new rl(t)]);else if(t instanceof Ya){const o=!!n&&!!n.backward;let i;if("in"==e)i=rl._createIn(t);else if("on"==e)i=rl._createOn(t);else{if(void 0===e)throw new l("model-selection-setto-required-second-parameter",[this,t]);i=new rl(el._createAt(t,e))}this._setRanges([i],o)}else{if(!po(t))throw new l("model-selection-setto-not-selectable",[this,t]);this._setRanges(t,e&&!!e.backward)}}_setRanges(t,e=!1){const n=(t=Array.from(t)).some((e=>{if(!(e instanceof rl))throw new l("model-selection-set-ranges-not-range",[this,t]);return this._ranges.every((t=>!t.isEqual(e)))}));if(t.length!==this._ranges.length||n){this._removeAllRanges();for(const e of t)this._pushRange(e);this._lastRangeBackward=!!e,this.fire("change:range",{directChange:!0})}}setFocus(t,e){if(null===this.anchor)throw new l("model-selection-setfocus-no-ranges",[this,t]);const n=el._createAt(t,e);if("same"==n.compareWith(this.focus))return;const o=this.anchor;this._ranges.length&&this._popRange(),"before"==n.compareWith(o)?(this._pushRange(new rl(n,o)),this._lastRangeBackward=!0):(this._pushRange(new rl(o,n)),this._lastRangeBackward=!1),this.fire("change:range",{directChange:!0})}getAttribute(t){return this._attrs.get(t)}getAttributes(){return this._attrs.entries()}getAttributeKeys(){return this._attrs.keys()}hasAttribute(t){return this._attrs.has(t)}removeAttribute(t){this.hasAttribute(t)&&(this._attrs.delete(t),this.fire("change:attribute",{attributeKeys:[t],directChange:!0}))}setAttribute(t,e){this.getAttribute(t)!==e&&(this._attrs.set(t,e),this.fire("change:attribute",{attributeKeys:[t],directChange:!0}))}getSelectedElement(){return 1!==this.rangeCount?null:this.getFirstRange().getContainedElement()}is(t){return"selection"===t||"model:selection"===t}*getSelectedBlocks(){const t=new WeakSet;for(const e of this.getRanges()){const n=pl(e.start,t);n&&fl(n,e)&&(yield n);for(const n of e.getWalker()){const o=n.item;"elementEnd"==n.type&&gl(o,t,e)&&(yield o)}const o=pl(e.end,t);o&&!e.end.isTouching(el._createAt(o,0))&&fl(o,e)&&(yield o)}}containsEntireContent(t=this.anchor.root){const e=el._createAt(t,0),n=el._createAt(t,"end");return e.isTouching(this.getFirstPosition())&&n.isTouching(this.getLastPosition())}_pushRange(t){this._checkRange(t),this._ranges.push(new rl(t.start,t.end))}_checkRange(t){for(let e=0;e0;)this._popRange()}_popRange(){this._ranges.pop()}}function ml(t,e){return!e.has(t)&&(e.add(t),t.root.document.model.schema.isBlock(t)&&t.parent)}function gl(t,e,n){return ml(t,e)&&fl(t,n)}function pl(t,e){const n=t.parent.root.document.model.schema,o=t.parent.getAncestors({parentFirst:!0,includeSelf:!0});let i=!1;const r=o.find((t=>!i&&(i=n.isLimit(t),!i&&ml(t,e))));return o.forEach((t=>e.add(t))),r}function fl(t,e){const n=function(t){const e=t.root.document.model.schema;let n=t.parent;for(;n;){if(e.isBlock(n))return n;n=n.parent}}(t);if(!n)return!0;return!e.containsRange(rl._createOn(n),!0)}j(hl,k);class bl extends rl{constructor(t,e){super(t,e),kl.call(this)}detach(){this.stopListening()}is(t){return"liveRange"===t||"model:liveRange"===t||"range"==t||"model:range"===t}toRange(){return new rl(this.start,this.end)}static fromRange(t){return new bl(t.start,t.end)}}function kl(){this.listenTo(this.root.document.model,"applyOperation",((t,e)=>{const n=e[0];n.isDocumentOperation&&wl.call(this,n)}),{priority:"low"})}function wl(t){const e=this.getTransformedByOperation(t),n=rl._createFromRanges(e),o=!n.isEqual(this),i=function(t,e){switch(e.type){case"insert":return t.containsPosition(e.position);case"move":case"remove":case"reinsert":case"merge":return t.containsPosition(e.sourcePosition)||t.start.isEqual(e.sourcePosition)||t.containsPosition(e.targetPosition);case"split":return t.containsPosition(e.splitPosition)||t.containsPosition(e.insertionPosition)}return!1}(this,t);let r=null;if(o){"$graveyard"==n.root.rootName&&(r="remove"==t.type?t.sourcePosition:t.deletionPosition);const e=this.toRange();this.start=n.start,this.end=n.end,this.fire("change:range",e,{deletionPosition:r})}else i&&this.fire("change:content",this.toRange(),{deletionPosition:r})}j(bl,k);const Al="selection:";class Cl{constructor(t){this._selection=new _l(t),this._selection.delegate("change:range").to(this),this._selection.delegate("change:attribute").to(this),this._selection.delegate("change:marker").to(this)}get isCollapsed(){return this._selection.isCollapsed}get anchor(){return this._selection.anchor}get focus(){return this._selection.focus}get rangeCount(){return this._selection.rangeCount}get hasOwnRange(){return this._selection.hasOwnRange}get isBackward(){return this._selection.isBackward}get isGravityOverridden(){return this._selection.isGravityOverridden}get markers(){return this._selection.markers}get _ranges(){return this._selection._ranges}getRanges(){return this._selection.getRanges()}getFirstPosition(){return this._selection.getFirstPosition()}getLastPosition(){return this._selection.getLastPosition()}getFirstRange(){return this._selection.getFirstRange()}getLastRange(){return this._selection.getLastRange()}getSelectedBlocks(){return this._selection.getSelectedBlocks()}getSelectedElement(){return this._selection.getSelectedElement()}containsEntireContent(t){return this._selection.containsEntireContent(t)}destroy(){this._selection.destroy()}getAttributeKeys(){return this._selection.getAttributeKeys()}getAttributes(){return this._selection.getAttributes()}getAttribute(t){return this._selection.getAttribute(t)}hasAttribute(t){return this._selection.hasAttribute(t)}refresh(){this._selection._updateMarkers(),this._selection._updateAttributes(!1)}observeMarkers(t){this._selection.observeMarkers(t)}is(t){return"selection"===t||"model:selection"==t||"documentSelection"==t||"model:documentSelection"==t}_setFocus(t,e){this._selection.setFocus(t,e)}_setTo(t,e,n){this._selection.setTo(t,e,n)}_setAttribute(t,e){this._selection.setAttribute(t,e)}_removeAttribute(t){this._selection.removeAttribute(t)}_getStoredAttributes(){return this._selection._getStoredAttributes()}_overrideGravity(){return this._selection.overrideGravity()}_restoreGravity(t){this._selection.restoreGravity(t)}static _getStoreAttributeKey(t){return Al+t}static _isStoreAttributeKey(t){return t.startsWith(Al)}}j(Cl,k);class _l extends hl{constructor(t){super(),this.markers=new bo({idProperty:"name"}),this._model=t.model,this._document=t,this._attributePriority=new Map,this._selectionRestorePosition=null,this._hasChangedRange=!1,this._overriddenGravityRegister=new Set,this._observedMarkers=new Set,this.listenTo(this._model,"applyOperation",((t,e)=>{const n=e[0];n.isDocumentOperation&&"marker"!=n.type&&"rename"!=n.type&&"noop"!=n.type&&(0==this._ranges.length&&this._selectionRestorePosition&&this._fixGraveyardSelection(this._selectionRestorePosition),this._selectionRestorePosition=null,this._hasChangedRange&&(this._hasChangedRange=!1,this.fire("change:range",{directChange:!1})))}),{priority:"lowest"}),this.on("change:range",(()=>{for(const t of this.getRanges())if(!this._document._validateSelectionRange(t))throw new l("document-selection-wrong-position",this,{range:t})})),this.listenTo(this._model.markers,"update",((t,e,n,o)=>{this._updateMarker(e,o)})),this.listenTo(this._document,"change",((t,e)=>{!function(t,e){const n=t.document.differ;for(const o of n.getChanges()){if("insert"!=o.type)continue;const n=o.position.parent;o.length===n.maxOffset&&t.enqueueChange(e,(t=>{const e=Array.from(n.getAttributeKeys()).filter((t=>t.startsWith(Al)));for(const o of e)t.removeAttribute(o,n)}))}}(this._model,e)}))}get isCollapsed(){return 0===this._ranges.length?this._document._getDefaultRange().isCollapsed:super.isCollapsed}get anchor(){return super.anchor||this._document._getDefaultRange().start}get focus(){return super.focus||this._document._getDefaultRange().end}get rangeCount(){return this._ranges.length?this._ranges.length:1}get hasOwnRange(){return this._ranges.length>0}get isGravityOverridden(){return!!this._overriddenGravityRegister.size}destroy(){for(let t=0;t{if(this._hasChangedRange=!0,e.root==this._document.graveyard){this._selectionRestorePosition=o.deletionPosition;const t=this._ranges.indexOf(e);this._ranges.splice(t,1),e.detach()}})),e}_updateMarkers(){if(!this._observedMarkers.size)return;const t=[];let e=!1;for(const e of this._model.markers){const n=e.name.split(":",1)[0];if(!this._observedMarkers.has(n))continue;const o=e.getRange();for(const n of this.getRanges())o.containsRange(n,!n.isCollapsed)&&t.push(e)}const n=Array.from(this.markers);for(const n of t)this.markers.has(n)||(this.markers.add(n),e=!0);for(const n of Array.from(this.markers))t.includes(n)||(this.markers.remove(n),e=!0);e&&this.fire("change:marker",{oldMarkers:n,directChange:!1})}_updateMarker(t,e){const n=t.name.split(":",1)[0];if(!this._observedMarkers.has(n))return;let o=!1;const i=Array.from(this.markers),r=this.markers.has(t);if(e){let n=!1;for(const t of this.getRanges())if(e.containsRange(t,!t.isCollapsed)){n=!0;break}n&&!r?(this.markers.add(t),o=!0):!n&&r&&(this.markers.remove(t),o=!0)}else r&&(this.markers.remove(t),o=!0);o&&this.fire("change:marker",{oldMarkers:i,directChange:!1})}_updateAttributes(t){const e=Mo(this._getSurroundingAttributes()),n=Mo(this.getAttributes());if(t)this._attributePriority=new Map,this._attrs=new Map;else for(const[t,e]of this._attributePriority)"low"==e&&(this._attrs.delete(t),this._attributePriority.delete(t));this._setAttributesTo(e);const o=[];for(const[t,e]of this.getAttributes())n.has(t)&&n.get(t)===e||o.push(t);for(const[t]of n)this.hasAttribute(t)||o.push(t);o.length>0&&this.fire("change:attribute",{attributeKeys:o,directChange:!1})}_setAttribute(t,e,n=!0){const o=n?"normal":"low";if("low"==o&&"normal"==this._attributePriority.get(t))return!1;return super.getAttribute(t)!==e&&(this._attrs.set(t,e),this._attributePriority.set(t,o),!0)}_removeAttribute(t,e=!0){const n=e?"normal":"low";return("low"!=n||"normal"!=this._attributePriority.get(t))&&(this._attributePriority.set(t,n),!!super.hasAttribute(t)&&(this._attrs.delete(t),!0))}_setAttributesTo(t){const e=new Set;for(const[e,n]of this.getAttributes())t.get(e)!==n&&this._removeAttribute(e,!1);for(const[n,o]of t){this._setAttribute(n,o,!1)&&e.add(n)}return e}*_getStoredAttributes(){const t=this.getFirstPosition().parent;if(this.isCollapsed&&t.isEmpty)for(const e of t.getAttributeKeys())if(e.startsWith(Al)){const n=e.substr(Al.length);yield[n,t.getAttribute(e)]}}_getSurroundingAttributes(){const t=this.getFirstPosition(),e=this._model.schema;let n=null;if(this.isCollapsed){const o=t.textNode?t.textNode:t.nodeBefore,i=t.textNode?t.textNode:t.nodeAfter;if(this.isGravityOverridden||(n=vl(o)),n||(n=vl(i)),!this.isGravityOverridden&&!n){let t=o;for(;t&&!e.isInline(t)&&!n;)t=t.previousSibling,n=vl(t)}if(!n){let t=i;for(;t&&!e.isInline(t)&&!n;)t=t.nextSibling,n=vl(t)}n||(n=this._getStoredAttributes())}else{const t=this.getFirstRange();for(const o of t){if(o.item.is("element")&&e.isObject(o.item))break;if("text"==o.type){n=o.item.getAttributes();break}}}return n}_fixGraveyardSelection(t){const e=this._model.schema.getNearestSelectionRange(t);e&&this._pushRange(e)}}function vl(t){return t instanceof $a||t instanceof Ka?t.getAttributes():null}class yl{constructor(t){this._dispatchers=t}add(t){for(const e of this._dispatchers)t(e);return this}}const xl=function(t){return lo(t,5)};class El extends yl{elementToElement(t){return this.add(function(t){(t=xl(t)).model=Il(t.model),t.view=Tl(t.view,"container"),t.model.attributes.length&&(t.model.children=!0);return e=>{e.on("insert:"+t.model.name,function(t,e=Rl){return(n,o,i)=>{if(!e(o.item,i.consumable,{preflight:!0}))return;const r=t(o.item,i,o);if(!r)return;e(o.item,i.consumable);const s=i.mapper.toViewPosition(o.range.start);i.mapper.bindElements(o.item,r),i.writer.insert(s,r),i.convertAttributes(o.item),Ll(r,o.item.getChildren(),i,{reconversion:o.reconversion})}}(t.view,Pl(t.model)),{priority:t.converterPriority||"normal"}),(t.model.children||t.model.attributes.length)&&e.on("reduceChanges",zl(t.model),{priority:"low"})}}(t))}elementToStructure(t){return this.add(function(t){return(t=xl(t)).model=Il(t.model),t.view=Tl(t.view,"container"),t.model.children=!0,e=>{if(e._conversionApi.schema.checkChild(t.model.name,"$text"))throw new l("conversion-element-to-structure-disallowed-text",e,{elementName:t.model.name});var n,o;e.on("insert:"+t.model.name,(n=t.view,o=Pl(t.model),(t,e,i)=>{if(!o(e.item,i.consumable,{preflight:!0}))return;const r=new Map;i.writer._registerSlotFactory(function(t,e,n){return(o,i="children")=>{const r=o.createContainerElement("$slot");let s=null;if("children"===i)s=Array.from(t.getChildren());else{if("function"!=typeof i)throw new l("conversion-slot-mode-unknown",n.dispatcher,{modeOrFilter:i});s=Array.from(t.getChildren()).filter((t=>i(t)))}return e.set(r,s),r}}(e.item,r,i));const s=n(e.item,i,e);if(i.writer._clearSlotFactory(),!s)return;!function(t,e,n){const o=Array.from(e.values()).flat(),i=new Set(o);if(i.size!=o.length)throw new l("conversion-slot-filter-overlap",n.dispatcher,{element:t});if(i.size!=t.childCount)throw new l("conversion-slot-filter-incomplete",n.dispatcher,{element:t})}(e.item,r,i),o(e.item,i.consumable);const a=i.mapper.toViewPosition(e.range.start);i.mapper.bindElements(e.item,s),i.writer.insert(a,s),i.convertAttributes(e.item),function(t,e,n,o){n.mapper.on("modelToViewPosition",s,{priority:"highest"});let i=null,r=null;for([i,r]of e)Ll(t,r,n,o),n.writer.move(n.writer.createRangeIn(i),n.writer.createPositionBefore(i)),n.writer.remove(i);function s(t,e){const n=e.modelPosition.nodeAfter,o=r.indexOf(n);o<0||(e.viewPosition=e.mapper.findPositionIn(i,o))}n.mapper.off("modelToViewPosition",s)}(s,r,i,{reconversion:e.reconversion})}),{priority:t.converterPriority||"normal"}),e.on("reduceChanges",zl(t.model),{priority:"low"})}}(t))}attributeToElement(t){return this.add(function(t){t=xl(t);let e="attribute:"+(t.model.key?t.model.key:t.model);t.model.name&&(e+=":"+t.model.name);if(t.model.values)for(const e of t.model.values)t.view[e]=Tl(t.view[e],"attribute");else t.view=Tl(t.view,"attribute");const n=Ml(t);return o=>{o.on(e,function(t){return(e,n,o)=>{if(!o.consumable.test(n.item,e.name))return;const i=t(n.attributeOldValue,o,n),r=t(n.attributeNewValue,o,n);if(!i&&!r)return;o.consumable.consume(n.item,e.name);const s=o.writer,a=s.document.selection;if(n.item instanceof hl||n.item instanceof Cl)s.wrap(a.getFirstRange(),r);else{let t=o.mapper.toViewRange(n.range);null!==n.attributeOldValue&&i&&(t=s.unwrap(t,i)),null!==n.attributeNewValue&&r&&s.wrap(t,r)}}}(n),{priority:t.converterPriority||"normal"})}}(t))}attributeToAttribute(t){return this.add(function(t){t=xl(t);let e="attribute:"+(t.model.key?t.model.key:t.model);t.model.name&&(e+=":"+t.model.name);if(t.model.values)for(const e of t.model.values)t.view[e]=Bl(t.view[e]);else t.view=Bl(t.view);const n=Ml(t);return o=>{var i;o.on(e,(i=n,(t,e,n)=>{if(!n.consumable.test(e.item,t.name))return;const o=i(e.attributeOldValue,n,e),r=i(e.attributeNewValue,n,e);if(!o&&!r)return;n.consumable.consume(e.item,t.name);const s=n.mapper.toViewElement(e.item),a=n.writer;if(!s)throw new l("conversion-attribute-to-attribute-on-text",n.dispatcher,e);if(null!==e.attributeOldValue&&o)if("class"==o.key){const t=wo(o.value);for(const e of t)a.removeClass(e,s)}else if("style"==o.key){const t=Object.keys(o.value);for(const e of t)a.removeStyle(e,s)}else a.removeAttribute(o.key,s);if(null!==e.attributeNewValue&&r)if("class"==r.key){const t=wo(r.value);for(const e of t)a.addClass(e,s)}else if("style"==r.key){const t=Object.keys(r.value);for(const e of t)a.setStyle(e,r.value[e],s)}else a.setAttribute(r.key,r.value,s)}),{priority:t.converterPriority||"normal"})}}(t))}markerToElement(t){return this.add(function(t){return(t=xl(t)).view=Tl(t.view,"ui"),e=>{var n;e.on("addMarker:"+t.model,(n=t.view,(t,e,o)=>{e.isOpening=!0;const i=n(e,o);e.isOpening=!1;const r=n(e,o);if(!i||!r)return;const s=e.markerRange;if(s.isCollapsed&&!o.consumable.consume(s,t.name))return;for(const e of s)if(!o.consumable.consume(e.item,t.name))return;const a=o.mapper,l=o.writer;l.insert(a.toViewPosition(s.start),i),o.mapper.bindElementToMarker(i,e.markerName),s.isCollapsed||(l.insert(a.toViewPosition(s.end),r),o.mapper.bindElementToMarker(r,e.markerName)),t.stop()}),{priority:t.converterPriority||"normal"}),e.on("removeMarker:"+t.model,(t.view,(t,e,n)=>{const o=n.mapper.markerNameToElements(e.markerName);if(o){for(const t of o)n.mapper.unbindElementFromMarkerName(t,e.markerName),n.writer.clear(n.writer.createRangeOn(t),t);n.writer.clearClonedElementsGroup(e.markerName),t.stop()}}),{priority:t.converterPriority||"normal"})}}(t))}markerToHighlight(t){return this.add(function(t){return e=>{var n;e.on("addMarker:"+t.model,(n=t.view,(t,e,o)=>{if(!e.item)return;if(!(e.item instanceof hl||e.item instanceof Cl||e.item.is("$textProxy")))return;const i=Nl(n,e,o);if(!i)return;if(!o.consumable.consume(e.item,t.name))return;const r=o.writer,s=Dl(r,i),a=r.document.selection;if(e.item instanceof hl||e.item instanceof Cl)r.wrap(a.getFirstRange(),s,a);else{const t=o.mapper.toViewRange(e.range),n=r.wrap(t,s);for(const t of n.getItems())if(t.is("attributeElement")&&t.isSimilar(s)){o.mapper.bindElementToMarker(t,e.markerName);break}}}),{priority:t.converterPriority||"normal"}),e.on("addMarker:"+t.model,function(t){return(e,n,o)=>{if(!n.item)return;if(!(n.item instanceof Ja))return;const i=Nl(t,n,o);if(!i)return;if(!o.consumable.test(n.item,e.name))return;const r=o.mapper.toViewElement(n.item);if(r&&r.getCustomProperty("addHighlight")){o.consumable.consume(n.item,e.name);for(const t of rl._createIn(n.item))o.consumable.consume(t.item,e.name);r.getCustomProperty("addHighlight")(r,i,o.writer),o.mapper.bindElementToMarker(r,n.markerName)}}}(t.view),{priority:t.converterPriority||"normal"}),e.on("removeMarker:"+t.model,function(t){return(e,n,o)=>{if(n.markerRange.isCollapsed)return;const i=Nl(t,n,o);if(!i)return;const r=Dl(o.writer,i),s=o.mapper.markerNameToElements(n.markerName);if(s){for(const t of s)o.mapper.unbindElementFromMarkerName(t,n.markerName),t.is("attributeElement")?o.writer.unwrap(o.writer.createRangeOn(t),r):t.getCustomProperty("removeHighlight")(t,i.id,o.writer);o.writer.clearClonedElementsGroup(n.markerName),e.stop()}}}(t.view),{priority:t.converterPriority||"normal"})}}(t))}markerToData(t){return this.add(function(t){const e=(t=xl(t)).model;t.view||(t.view=n=>({group:e,name:n.substr(t.model.length+1)}));return n=>{var o;n.on("addMarker:"+e,(o=t.view,(t,e,n)=>{const i=o(e.markerName,n);if(!i)return;const r=e.markerRange;n.consumable.consume(r,t.name)&&(Sl(r,!1,n,e,i),Sl(r,!0,n,e,i),t.stop())}),{priority:t.converterPriority||"normal"}),n.on("removeMarker:"+e,function(t){return(e,n,o)=>{const i=t(n.markerName,o);if(!i)return;const r=o.mapper.markerNameToElements(n.markerName);if(r){for(const t of r)o.mapper.unbindElementFromMarkerName(t,n.markerName),t.is("containerElement")?(s(`data-${i.group}-start-before`,t),s(`data-${i.group}-start-after`,t),s(`data-${i.group}-end-before`,t),s(`data-${i.group}-end-after`,t)):o.writer.clear(o.writer.createRangeOn(t),t);o.writer.clearClonedElementsGroup(n.markerName),e.stop()}function s(t,e){if(e.hasAttribute(t)){const n=new Set(e.getAttribute(t).split(","));n.delete(i.name),0==n.size?o.writer.removeAttribute(t,e):o.writer.setAttribute(t,Array.from(n).join(","),e)}}}}(t.view),{priority:t.converterPriority||"normal"})}}(t))}}function Dl(t,e){const n=t.createAttributeElement("span",e.attributes);return e.classes&&n._addClass(e.classes),"number"==typeof e.priority&&(n._priority=e.priority),n._id=e.id,n}function Sl(t,e,n,o,i){const r=e?t.start:t.end,s=r.nodeAfter&&r.nodeAfter.is("element")?r.nodeAfter:null,a=r.nodeBefore&&r.nodeBefore.is("element")?r.nodeBefore:null;if(s||a){let t,r;e&&s||!e&&!a?(t=s,r=!0):(t=a,r=!1);const l=n.mapper.toViewElement(t);if(l)return void function(t,e,n,o,i,r){const s=`data-${r.group}-${e?"start":"end"}-${n?"before":"after"}`,a=t.hasAttribute(s)?t.getAttribute(s).split(","):[];a.unshift(r.name),o.writer.setAttribute(s,a.join(","),t),o.mapper.bindElementToMarker(t,i.markerName)}(l,e,r,n,o,i)}!function(t,e,n,o,i){const r=`${i.group}-${e?"start":"end"}`,s=i.name?{name:i.name}:null,a=n.writer.createUIElement(r,s);n.writer.insert(t,a),n.mapper.bindElementToMarker(a,o.markerName)}(n.mapper.toViewPosition(r),e,n,o,i)}function Il(t){return"string"==typeof t&&(t={name:t}),t.attributes?Array.isArray(t.attributes)||(t.attributes=[t.attributes]):t.attributes=[],t.children=!!t.children,t}function Tl(t,e){return"function"==typeof t?t:(n,o)=>function(t,e,n){"string"==typeof t&&(t={name:t});let o;const i=e.writer,r=Object.assign({},t.attributes);if("container"==n)o=i.createContainerElement(t.name,r);else if("attribute"==n){const e={priority:t.priority||tr.DEFAULT_PRIORITY};o=i.createAttributeElement(t.name,r,e)}else o=i.createUIElement(t.name,r);if(t.styles){const e=Object.keys(t.styles);for(const n of e)i.setStyle(n,t.styles[n],o)}if(t.classes){const e=t.classes;if("string"==typeof e)i.addClass(e,o);else for(const t of e)i.addClass(t,o)}return o}(t,o,e)}function Ml(t){return t.model.values?(e,n)=>{const o=t.view[e];return o?o(e,n):null}:t.view}function Bl(t){return"string"==typeof t?e=>({key:t,value:e}):"object"==typeof t?t.value?()=>t:e=>({key:t.key,value:e}):t}function Nl(t,e,n){const o="function"==typeof t?t(e,n):t;return o?(o.priority||(o.priority=10),o.id||(o.id=e.markerName),o):null}function zl(t){const e=function(t){return(e,n)=>{if(!e.is("element",t.name))return!1;if("attribute"==n.type){if(t.attributes.includes(n.attributeKey))return!0}else if(t.children)return!0;return!1}}(t);return(t,n)=>{const o=[];n.reconvertedElements||(n.reconvertedElements=new Set);for(const t of n.changes){const i=t.position?t.position.parent:t.range.start.nodeAfter;if(i&&e(i,t)){if(!n.reconvertedElements.has(i)){n.reconvertedElements.add(i);const t=el._createBefore(i);o.push({type:"remove",name:i.name,position:t,length:1},{type:"reinsert",name:i.name,position:t,length:1})}}else o.push(t)}n.changes=o}}function Pl(t){return(e,n,o={})=>{const i=["insert"];for(const n of t.attributes)e.hasAttribute(n)&&i.push(`attribute:${n}`);return!!i.every((t=>n.test(e,t)))&&(o.preflight||i.forEach((t=>n.consume(e,t))),!0)}}function Ll(t,e,n,o){for(const i of e)Ol(t.root,i,n,o)||n.convertItem(i)}function Ol(t,e,n,o){const{writer:i,mapper:r}=n;if(!o.reconversion)return!1;const s=r.toViewElement(e);return!(!s||s.root==t)&&(!!n.canReuseView(s)&&(i.move(i.createRangeOn(s),r.toViewPosition(el._createBefore(e))),!0))}function Rl(t,e,{preflight:n}={}){return n?e.test(t,"insert"):e.consume(t,"insert")}function jl(t){const{schema:e,document:n}=t.model;for(const o of n.getRootNames()){const i=n.getRoot(o);if(i.isEmpty&&!e.checkChild(i,"$text")&&e.checkChild(i,"paragraph"))return t.insertElement("paragraph",i),!0}return!1}function Vl(t,e,n){const o=n.createContext(t);return!!n.checkChild(o,"paragraph")&&!!n.checkChild(o.push("paragraph"),e)}function Fl(t,e){const n=e.createElement("paragraph");return e.insert(n,t),e.createPositionAt(n,0)}class Hl extends yl{elementToElement(t){return this.add(Ul(t))}elementToAttribute(t){return this.add(function(t){Wl(t=xl(t));const e=Zl(t,!1),n=ql(t.view),o=n?"element:"+n:"element";return n=>{n.on(o,e,{priority:t.converterPriority||"low"})}}(t))}attributeToAttribute(t){return this.add(function(t){t=xl(t);let e=null;("string"==typeof t.view||t.view.key)&&(e=function(t){"string"==typeof t.view&&(t.view={key:t.view});const e=t.view.key;let n;if("class"==e||"style"==e){n={["class"==e?"classes":"styles"]:t.view.value}}else{n={attributes:{[e]:void 0===t.view.value?/[\s\S]*/:t.view.value}}}t.view.name&&(n.name=t.view.name);return t.view=n,e}(t));Wl(t,e);const n=Zl(t,!0);return e=>{e.on("element",n,{priority:t.converterPriority||"low"})}}(t))}elementToMarker(t){return this.add(function(t){return function(t){const e=t.model;t.model=(t,n)=>{const o="string"==typeof e?e:e(t,n);return n.writer.createElement("$marker",{"data-name":o})}}(t=xl(t)),Ul(t)}(t))}dataToMarker(t){return this.add(function(t){(t=xl(t)).model||(t.model=e=>e?t.view+":"+e:t.view);const e=Gl(Yl(t,"start")),n=Gl(Yl(t,"end"));return o=>{o.on("element:"+t.view+"-start",e,{priority:t.converterPriority||"normal"}),o.on("element:"+t.view+"-end",n,{priority:t.converterPriority||"normal"});const i=s.get("low"),r=s.get("highest"),a=s.get(t.converterPriority)/r;o.on("element",function(t){return(e,n,o)=>{const i=`data-${t.view}`;function r(e,i){for(const r of i){const i=t.model(r,o),s=o.writer.createElement("$marker",{"data-name":i});o.writer.insert(s,e),n.modelCursor.isEqual(e)?n.modelCursor=n.modelCursor.getShiftedBy(1):n.modelCursor=n.modelCursor._getTransformedByInsertion(e,1),n.modelRange=n.modelRange._getTransformedByInsertion(e,1)[0]}}(o.consumable.test(n.viewItem,{attributes:i+"-end-after"})||o.consumable.test(n.viewItem,{attributes:i+"-start-after"})||o.consumable.test(n.viewItem,{attributes:i+"-end-before"})||o.consumable.test(n.viewItem,{attributes:i+"-start-before"}))&&(n.modelRange||Object.assign(n,o.convertChildren(n.viewItem,n.modelCursor)),o.consumable.consume(n.viewItem,{attributes:i+"-end-after"})&&r(n.modelRange.end,n.viewItem.getAttribute(i+"-end-after").split(",")),o.consumable.consume(n.viewItem,{attributes:i+"-start-after"})&&r(n.modelRange.end,n.viewItem.getAttribute(i+"-start-after").split(",")),o.consumable.consume(n.viewItem,{attributes:i+"-end-before"})&&r(n.modelRange.start,n.viewItem.getAttribute(i+"-end-before").split(",")),o.consumable.consume(n.viewItem,{attributes:i+"-start-before"})&&r(n.modelRange.start,n.viewItem.getAttribute(i+"-start-before").split(",")))}}(t),{priority:i+a})}}(t))}}function Ul(t){const e=Gl(t=xl(t)),n=ql(t.view),o=n?"element:"+n:"element";return n=>{n.on(o,e,{priority:t.converterPriority||"normal"})}}function ql(t){return"string"==typeof t?t:"object"==typeof t&&"string"==typeof t.name?t.name:null}function Gl(t){const e=new Bo(t.view);return(n,o,i)=>{const r=e.match(o.viewItem);if(!r)return;const s=r.match;if(s.name=!0,!i.consumable.test(o.viewItem,s))return;const a=function(t,e,n){return t instanceof Function?t(e,n):n.writer.createElement(t)}(t.model,o.viewItem,i);a&&i.safeInsert(a,o.modelCursor)&&(i.consumable.consume(o.viewItem,s),i.convertChildren(o.viewItem,a),i.updateConversionResult(a,o))}}function Wl(t,e=null){const n=null===e||(t=>t.getAttribute(e)),o="object"!=typeof t.model?t.model:t.model.key,i="object"!=typeof t.model||void 0===t.model.value?n:t.model.value;t.model={key:o,value:i}}function Zl(t,e){const n=new Bo(t.view);return(o,i,r)=>{if(!i.modelRange&&e)return;const s=n.match(i.viewItem);if(!s)return;if(!function(t,e){const n="function"==typeof t?t(e):t;if("object"==typeof n&&!ql(n))return!1;return!n.classes&&!n.attributes&&!n.styles}(t.view,i.viewItem)?delete s.match.name:s.match.name=!0,!r.consumable.test(i.viewItem,s.match))return;const a=t.model.key,l="function"==typeof t.model.value?t.model.value(i.viewItem,r):t.model.value;if(null===l)return;i.modelRange||Object.assign(i,r.convertChildren(i.viewItem,i.modelCursor));const c=function(t,e,n,o){let i=!1;for(const r of Array.from(t.getItems({shallow:n})))o.schema.checkAttribute(r,e.key)&&(i=!0,r.hasAttribute(e.key)||o.writer.setAttribute(e.key,e.value,r));return i}(i.modelRange,{key:a,value:l},e,r);c&&(r.consumable.test(i.viewItem,{name:!0})&&(s.match.name=!0),r.consumable.consume(i.viewItem,s.match))}}function Yl(t,e){const n={};return n.view=t.view+"-"+e,n.model=(e,n)=>{const o=e.getAttribute("name"),i=t.model(o,n);return n.writer.createElement("$marker",{"data-name":i})},n}class Kl{constructor(t,e){this.model=t,this.view=new Za(e),this.mapper=new sl,this.downcastDispatcher=new cl({mapper:this.mapper,schema:t.schema});const n=this.model.document,o=n.selection,i=this.model.markers;this.listenTo(this.model,"_beforeChanges",(()=>{this.view._disableRendering(!0)}),{priority:"highest"}),this.listenTo(this.model,"_afterChanges",(()=>{this.view._disableRendering(!1)}),{priority:"lowest"}),this.listenTo(n,"change",(()=>{this.view.change((t=>{this.downcastDispatcher.convertChanges(n.differ,i,t),this.downcastDispatcher.convertSelection(o,i,t)}))}),{priority:"low"}),this.listenTo(this.view.document,"selectionChange",function(t,e){return(n,o)=>{const i=o.newSelection,r=[];for(const t of i.getRanges())r.push(e.toModelRange(t));const s=t.createSelection(r,{backward:i.isBackward});s.isEqual(t.document.selection)||t.change((t=>{t.setSelection(s)}))}}(this.model,this.mapper)),this.downcastDispatcher.on("insert:$text",((t,e,n)=>{if(!n.consumable.consume(e.item,t.name))return;const o=n.writer,i=n.mapper.toViewPosition(e.range.start),r=o.createText(e.item.data);o.insert(i,r)}),{priority:"lowest"}),this.downcastDispatcher.on("insert",((t,e,n)=>{n.convertAttributes(e.item),e.reconversion||!e.item.is("element")||e.item.isEmpty||n.convertChildren(e.item)}),{priority:"lowest"}),this.downcastDispatcher.on("remove",((t,e,n)=>{const o=n.mapper.toViewPosition(e.position),i=e.position.getShiftedBy(e.length),r=n.mapper.toViewPosition(i,{isPhantom:!0}),s=n.writer.createRange(o,r),a=n.writer.remove(s.getTrimmed());for(const t of n.writer.createRangeIn(a).getItems())n.mapper.unbindViewElement(t,{defer:!0})}),{priority:"low"}),this.downcastDispatcher.on("selection",((t,e,n)=>{const o=n.writer,i=o.document.selection;for(const t of i.getRanges())t.isCollapsed&&t.end.parent.isAttached()&&n.writer.mergeAttributes(t.start);o.setSelection(null)}),{priority:"high"}),this.downcastDispatcher.on("selection",((t,e,n)=>{const o=e.selection;if(o.isCollapsed)return;if(!n.consumable.consume(o,"selection"))return;const i=[];for(const t of o.getRanges()){const e=n.mapper.toViewRange(t);i.push(e)}n.writer.setSelection(i,{backward:o.isBackward})}),{priority:"low"}),this.downcastDispatcher.on("selection",((t,e,n)=>{const o=e.selection;if(!o.isCollapsed)return;if(!n.consumable.consume(o,"selection"))return;const i=n.writer,r=o.getFirstPosition(),s=n.mapper.toViewPosition(r),a=i.breakAttributes(s);i.setSelection(a)}),{priority:"low"}),this.view.document.roots.bindTo(this.model.document.roots).using((t=>{if("$graveyard"==t.rootName)return null;const e=new Oi(this.view.document,t.name);return e.rootName=t.rootName,this.mapper.bindElements(t,e),e}))}destroy(){this.view.destroy(),this.stopListening()}reconvertMarker(t){const e="string"==typeof t?t:t.name,n=this.model.markers.get(e);if(!n)throw new l("editingcontroller-reconvertmarker-marker-not-exist",this,{markerName:e});this.model.change((()=>{this.model.markers._refresh(n)}))}reconvertItem(t){this.model.change((()=>{this.model.document.differ._refreshItem(t)}))}}j(Kl,N);class $l{constructor(){this._commands=new Map}add(t,e){this._commands.set(t,e)}get(t){return this._commands.get(t)}execute(t,...e){const n=this.get(t);if(!n)throw new l("commandcollection-command-not-found",this,{commandName:t});return n.execute(...e)}*names(){yield*this._commands.keys()}*commands(){yield*this._commands.values()}[Symbol.iterator](){return this._commands[Symbol.iterator]()}destroy(){for(const t of this.commands())t.destroy()}}class Ql{constructor(){this._consumables=new Map}add(t,e){let n;t.is("$text")||t.is("documentFragment")?this._consumables.set(t,!0):(this._consumables.has(t)?n=this._consumables.get(t):(n=new Jl(t),this._consumables.set(t,n)),n.add(e))}test(t,e){const n=this._consumables.get(t);return void 0===n?null:t.is("$text")||t.is("documentFragment")?n:n.test(e)}consume(t,e){return!!this.test(t,e)&&(t.is("$text")||t.is("documentFragment")?this._consumables.set(t,!1):this._consumables.get(t).consume(e),!0)}revert(t,e){const n=this._consumables.get(t);void 0!==n&&(t.is("$text")||t.is("documentFragment")?this._consumables.set(t,!0):n.revert(e))}static consumablesFromElement(t){const e={element:t,name:!0,attributes:[],classes:[],styles:[]},n=t.getAttributeKeys();for(const t of n)"style"!=t&&"class"!=t&&e.attributes.push(t);const o=t.getClassNames();for(const t of o)e.classes.push(t);const i=t.getStyleNames();for(const t of i)e.styles.push(t);return e}static createFrom(t,e){if(e||(e=new Ql(t)),t.is("$text"))return e.add(t),e;t.is("element")&&e.add(t,Ql.consumablesFromElement(t)),t.is("documentFragment")&&e.add(t);for(const n of t.getChildren())e=Ql.createFrom(n,e);return e}}class Jl{constructor(t){this.element=t,this._canConsumeName=null,this._consumables={attributes:new Map,styles:new Map,classes:new Map}}add(t){t.name&&(this._canConsumeName=!0);for(const e in this._consumables)e in t&&this._add(e,t[e])}test(t){if(t.name&&!this._canConsumeName)return this._canConsumeName;for(const e in this._consumables)if(e in t){const n=this._test(e,t[e]);if(!0!==n)return n}return!0}consume(t){t.name&&(this._canConsumeName=!1);for(const e in this._consumables)e in t&&this._consume(e,t[e])}revert(t){t.name&&(this._canConsumeName=!0);for(const e in this._consumables)e in t&&this._revert(e,t[e])}_add(t,e){const n=ve(e)?e:[e],o=this._consumables[t];for(const e of n){if("attributes"===t&&("class"===e||"style"===e))throw new l("viewconsumable-invalid-attribute",this);if(o.set(e,!0),"styles"===t)for(const t of this.element.document.stylesProcessor.getRelatedStyles(e))o.set(t,!0)}}_test(t,e){const n=ve(e)?e:[e],o=this._consumables[t];for(const e of n)if("attributes"!==t||"class"!==e&&"style"!==e){const t=o.get(e);if(void 0===t)return null;if(!t)return!1}else{const t="class"==e?"classes":"styles",n=this._test(t,[...this._consumables[t].keys()]);if(!0!==n)return n}return!0}_consume(t,e){const n=ve(e)?e:[e],o=this._consumables[t];for(const e of n)if("attributes"!==t||"class"!==e&&"style"!==e){if(o.set(e,!1),"styles"==t)for(const t of this.element.document.stylesProcessor.getRelatedStyles(e))o.set(t,!1)}else{const t="class"==e?"classes":"styles";this._consume(t,[...this._consumables[t].keys()])}}_revert(t,e){const n=ve(e)?e:[e],o=this._consumables[t];for(const e of n)if("attributes"!==t||"class"!==e&&"style"!==e){!1===o.get(e)&&o.set(e,!0)}else{const t="class"==e?"classes":"styles";this._revert(t,[...this._consumables[t].keys()])}}}class Xl{constructor(){this._sourceDefinitions={},this._attributeProperties={},this.decorate("checkChild"),this.decorate("checkAttribute"),this.on("checkAttribute",((t,e)=>{e[0]=new tc(e[0])}),{priority:"highest"}),this.on("checkChild",((t,e)=>{e[0]=new tc(e[0]),e[1]=this.getDefinition(e[1])}),{priority:"highest"})}register(t,e){if(this._sourceDefinitions[t])throw new l("schema-cannot-register-item-twice",this,{itemName:t});this._sourceDefinitions[t]=[Object.assign({},e)],this._clearCache()}extend(t,e){if(!this._sourceDefinitions[t])throw new l("schema-cannot-extend-missing-item",this,{itemName:t});this._sourceDefinitions[t].push(Object.assign({},e)),this._clearCache()}getDefinitions(){return this._compiledDefinitions||this._compile(),this._compiledDefinitions}getDefinition(t){let e;return e="string"==typeof t?t:t.is&&(t.is("$text")||t.is("$textProxy"))?"$text":t.name,this.getDefinitions()[e]}isRegistered(t){return!!this.getDefinition(t)}isBlock(t){const e=this.getDefinition(t);return!(!e||!e.isBlock)}isLimit(t){const e=this.getDefinition(t);return!!e&&!(!e.isLimit&&!e.isObject)}isObject(t){const e=this.getDefinition(t);return!!e&&!!(e.isObject||e.isLimit&&e.isSelectable&&e.isContent)}isInline(t){const e=this.getDefinition(t);return!(!e||!e.isInline)}isSelectable(t){const e=this.getDefinition(t);return!!e&&!(!e.isSelectable&&!e.isObject)}isContent(t){const e=this.getDefinition(t);return!!e&&!(!e.isContent&&!e.isObject)}checkChild(t,e){return!!e&&this._checkContextMatch(e,t)}checkAttribute(t,e){const n=this.getDefinition(t.last);return!!n&&n.allowAttributes.includes(e)}checkMerge(t,e=null){if(t instanceof el){const e=t.nodeBefore,n=t.nodeAfter;if(!(e instanceof Ja))throw new l("schema-check-merge-no-element-before",this);if(!(n instanceof Ja))throw new l("schema-check-merge-no-element-after",this);return this.checkMerge(e,n)}for(const n of e.getChildren())if(!this.checkChild(t,n))return!1;return!0}addChildCheck(t){this.on("checkChild",((e,[n,o])=>{if(!o)return;const i=t(n,o);"boolean"==typeof i&&(e.stop(),e.return=i)}),{priority:"high"})}addAttributeCheck(t){this.on("checkAttribute",((e,[n,o])=>{const i=t(n,o);"boolean"==typeof i&&(e.stop(),e.return=i)}),{priority:"high"})}setAttributeProperties(t,e){this._attributeProperties[t]=Object.assign(this.getAttributeProperties(t),e)}getAttributeProperties(t){return this._attributeProperties[t]||{}}getLimitElement(t){let e;if(t instanceof el)e=t.parent;else{e=(t instanceof rl?[t]:Array.from(t.getRanges())).reduce(((t,e)=>{const n=e.getCommonAncestor();return t?t.getCommonAncestor(n,{includeSelf:!0}):n}),null)}for(;!this.isLimit(e)&&e.parent;)e=e.parent;return e}checkAttributeInSelection(t,e){if(t.isCollapsed){const n=[...t.getFirstPosition().getAncestors(),new Ka("",t.getAttributes())];return this.checkAttribute(n,e)}{const n=t.getRanges();for(const t of n)for(const n of t)if(this.checkAttribute(n.item,e))return!0}return!1}*getValidRanges(t,e){t=function*(t){for(const e of t)yield*e.getMinimalFlatRanges()}(t);for(const n of t)yield*this._getValidRangesForRange(n,e)}getNearestSelectionRange(t,e="both"){if(this.checkChild(t,"$text"))return new rl(t);let n,o;const i=t.getAncestors().reverse().find((t=>this.isLimit(t)))||t.root;"both"!=e&&"backward"!=e||(n=new Xa({boundaries:rl._createIn(i),startPosition:t,direction:"backward"})),"both"!=e&&"forward"!=e||(o=new Xa({boundaries:rl._createIn(i),startPosition:t}));for(const t of function*(t,e){let n=!1;for(;!n;){if(n=!0,t){const e=t.next();e.done||(n=!1,yield{walker:t,value:e.value})}if(e){const t=e.next();t.done||(n=!1,yield{walker:e,value:t.value})}}}(n,o)){const e=t.walker==n?"elementEnd":"elementStart",o=t.value;if(o.type==e&&this.isObject(o.item))return rl._createOn(o.item);if(this.checkChild(o.nextPosition,"$text"))return new rl(o.nextPosition)}return null}findAllowedParent(t,e){let n=t.parent;for(;n;){if(this.checkChild(n,e))return n;if(this.isLimit(n))return null;n=n.parent}return null}setAllowedAttributes(t,e,n){const o=n.model;for(const[i,r]of Object.entries(e))o.schema.checkAttribute(t,i)&&n.setAttribute(i,r,t)}removeDisallowedAttributes(t,e){for(const n of t)if(n.is("$text"))mc(this,n,e);else{const t=rl._createIn(n).getPositions();for(const n of t){mc(this,n.nodeBefore||n.parent,e)}}}getAttributesWithProperty(t,e,n){const o={};for(const[i,r]of t.getAttributes()){const t=this.getAttributeProperties(i);void 0!==t[e]&&(void 0!==n&&n!==t[e]||(o[i]=r))}return o}createContext(t){return new tc(t)}_clearCache(){this._compiledDefinitions=null}_compile(){const t={},e=this._sourceDefinitions,n=Object.keys(e);for(const o of n)t[o]=ec(e[o],o);for(const e of n)nc(t,e);for(const e of n)oc(t,e);for(const e of n)ic(t,e);for(const e of n)rc(t,e),sc(t,e);for(const e of n)ac(t,e),lc(t,e),cc(t,e);this._compiledDefinitions=t}_checkContextMatch(t,e,n=e.length-1){const o=e.getItem(n);if(t.allowIn.includes(o.name)){if(0==n)return!0;{const t=this.getDefinition(o);return this._checkContextMatch(t,e,n-1)}}return!1}*_getValidRangesForRange(t,e){let n=t.start,o=t.start;for(const i of t.getItems({shallow:!0}))i.is("element")&&(yield*this._getValidRangesForRange(rl._createIn(i),e)),this.checkAttribute(i,e)||(n.isEqual(o)||(yield new rl(n,o)),n=el._createAfter(i)),o=el._createAfter(i);n.isEqual(o)||(yield new rl(n,o))}}j(Xl,N);class tc{constructor(t){if(t instanceof tc)return t;"string"==typeof t?t=[t]:Array.isArray(t)||(t=t.getAncestors({includeSelf:!0})),this._items=t.map(hc)}get length(){return this._items.length}get last(){return this._items[this._items.length-1]}[Symbol.iterator](){return this._items[Symbol.iterator]()}push(t){const e=new tc([t]);return e._items=[...this._items,...e._items],e}getItem(t){return this._items[t]}*getNames(){yield*this._items.map((t=>t.name))}endsWith(t){return Array.from(this.getNames()).join(" ").endsWith(t)}startsWith(t){return Array.from(this.getNames()).join(" ").startsWith(t)}}function ec(t,e){const n={name:e,allowIn:[],allowContentOf:[],allowWhere:[],allowAttributes:[],allowAttributesOf:[],allowChildren:[],inheritTypesFrom:[]};return function(t,e){for(const n of t){const t=Object.keys(n).filter((t=>t.startsWith("is")));for(const o of t)e[o]=n[o]}}(t,n),dc(t,n,"allowIn"),dc(t,n,"allowContentOf"),dc(t,n,"allowWhere"),dc(t,n,"allowAttributes"),dc(t,n,"allowAttributesOf"),dc(t,n,"allowChildren"),dc(t,n,"inheritTypesFrom"),function(t,e){for(const n of t){const t=n.inheritAllFrom;t&&(e.allowContentOf.push(t),e.allowWhere.push(t),e.allowAttributesOf.push(t),e.inheritTypesFrom.push(t))}}(t,n),n}function nc(t,e){const n=t[e];for(const o of n.allowChildren){const n=t[o];n&&n.allowIn.push(e)}n.allowChildren.length=0}function oc(t,e){for(const n of t[e].allowContentOf)if(t[n]){uc(t,n).forEach((t=>{t.allowIn.push(e)}))}delete t[e].allowContentOf}function ic(t,e){for(const n of t[e].allowWhere){const o=t[n];if(o){const n=o.allowIn;t[e].allowIn.push(...n)}}delete t[e].allowWhere}function rc(t,e){for(const n of t[e].allowAttributesOf){const o=t[n];if(o){const n=o.allowAttributes;t[e].allowAttributes.push(...n)}}delete t[e].allowAttributesOf}function sc(t,e){const n=t[e];for(const e of n.inheritTypesFrom){const o=t[e];if(o){const t=Object.keys(o).filter((t=>t.startsWith("is")));for(const e of t)e in n||(n[e]=o[e])}}delete n.inheritTypesFrom}function ac(t,e){const n=t[e],o=n.allowIn.filter((e=>t[e]));n.allowIn=Array.from(new Set(o))}function lc(t,e){const n=t[e];for(const o of n.allowIn){t[o].allowChildren.push(e)}}function cc(t,e){const n=t[e];n.allowAttributes=Array.from(new Set(n.allowAttributes))}function dc(t,e,n){for(const o of t)"string"==typeof o[n]?e[n].push(o[n]):Array.isArray(o[n])&&e[n].push(...o[n])}function uc(t,e){const n=t[e];return(o=t,Object.keys(o).map((t=>o[t]))).filter((t=>t.allowIn.includes(n.name)));var o}function hc(t){return"string"==typeof t||t.is("documentFragment")?{name:"string"==typeof t?t:"$documentFragment",*getAttributeKeys(){},getAttribute(){}}:{name:t.is("element")?t.name:"$text",*getAttributeKeys(){yield*t.getAttributeKeys()},getAttribute:e=>t.getAttribute(e)}}function mc(t,e,n){for(const o of e.getAttributeKeys())t.checkAttribute(e,o)||n.removeAttribute(o,e)}class gc{constructor(t={}){this._splitParts=new Map,this._cursorParents=new Map,this._modelCursor=null,this._emptyElementsToKeep=new Set,this.conversionApi=Object.assign({},t),this.conversionApi.convertItem=this._convertItem.bind(this),this.conversionApi.convertChildren=this._convertChildren.bind(this),this.conversionApi.safeInsert=this._safeInsert.bind(this),this.conversionApi.updateConversionResult=this._updateConversionResult.bind(this),this.conversionApi.splitToAllowedParent=this._splitToAllowedParent.bind(this),this.conversionApi.getSplitParts=this._getSplitParts.bind(this),this.conversionApi.keepEmptyElement=this._keepEmptyElement.bind(this)}convert(t,e,n=["$root"]){this.fire("viewCleanup",t),this._modelCursor=function(t,e){let n;for(const o of new tc(t)){const t={};for(const e of o.getAttributeKeys())t[e]=o.getAttribute(e);const i=e.createElement(o.name,t);n&&e.append(i,n),n=el._createAt(i,0)}return n}(n,e),this.conversionApi.writer=e,this.conversionApi.consumable=Ql.createFrom(t),this.conversionApi.store={};const{modelRange:o}=this._convertItem(t,this._modelCursor),i=e.createDocumentFragment();if(o){this._removeEmptyElements();for(const t of Array.from(this._modelCursor.parent.getChildren()))e.append(t,i);i.markers=function(t,e){const n=new Set,o=new Map,i=rl._createIn(t).getItems();for(const t of i)"$marker"==t.name&&n.add(t);for(const t of n){const n=t.getAttribute("data-name"),i=e.createPositionBefore(t);o.has(n)?o.get(n).end=i.clone():o.set(n,new rl(i.clone())),e.remove(t)}return o}(i,e)}return this._modelCursor=null,this._splitParts.clear(),this._cursorParents.clear(),this._emptyElementsToKeep.clear(),this.conversionApi.writer=null,this.conversionApi.store=null,i}_convertItem(t,e){const n=Object.assign({viewItem:t,modelCursor:e,modelRange:null});if(t.is("element")?this.fire("element:"+t.name,n,this.conversionApi):t.is("$text")?this.fire("text",n,this.conversionApi):this.fire("documentFragment",n,this.conversionApi),n.modelRange&&!(n.modelRange instanceof rl))throw new l("view-conversion-dispatcher-incorrect-result",this);return{modelRange:n.modelRange,modelCursor:n.modelCursor}}_convertChildren(t,e){let n=e.is("position")?e:el._createAt(e,0);const o=new rl(n);for(const e of Array.from(t.getChildren())){const t=this._convertItem(e,n);t.modelRange instanceof rl&&(o.end=t.modelRange.end,n=t.modelCursor)}return{modelRange:o,modelCursor:n}}_safeInsert(t,e){const n=this._splitToAllowedParent(t,e);return!!n&&(this.conversionApi.writer.insert(t,n.position),!0)}_updateConversionResult(t,e){const n=this._getSplitParts(t),o=this.conversionApi.writer;e.modelRange||(e.modelRange=o.createRange(o.createPositionBefore(t),o.createPositionAfter(n[n.length-1])));const i=this._cursorParents.get(t);e.modelCursor=i?o.createPositionAt(i,0):e.modelRange.end}_splitToAllowedParent(t,e){const{schema:n,writer:o}=this.conversionApi;let i=n.findAllowedParent(e,t);if(i){if(i===e.parent)return{position:e};this._modelCursor.parent.getAncestors().includes(i)&&(i=null)}if(!i)return Vl(e,t,n)?{position:Fl(e,o)}:null;const r=this.conversionApi.writer.split(e,i),s=[];for(const t of r.range.getWalker())if("elementEnd"==t.type)s.push(t.item);else{const e=s.pop(),n=t.item;this._registerSplitPair(e,n)}const a=r.range.end.parent;return this._cursorParents.set(t,a),{position:r.position,cursorParent:a}}_registerSplitPair(t,e){this._splitParts.has(t)||this._splitParts.set(t,[t]);const n=this._splitParts.get(t);this._splitParts.set(e,n),n.push(e)}_getSplitParts(t){let e;return e=this._splitParts.has(t)?this._splitParts.get(t):[t],e}_keepEmptyElement(t){this._emptyElementsToKeep.add(t)}_removeEmptyElements(){let t=!1;for(const e of this._splitParts.keys())e.isEmpty&&!this._emptyElementsToKeep.has(e)&&(this.conversionApi.writer.remove(e),this._splitParts.delete(e),t=!0);t&&this._removeEmptyElements()}}j(gc,k);class pc{getHtml(t){const e=document.implementation.createHTMLDocument("").createElement("div");return e.appendChild(t),e.innerHTML}}class fc{constructor(t){this.domParser=new DOMParser,this.domConverter=new Cs(t,{renderingMode:"data"}),this.htmlWriter=new pc}toData(t){const e=this.domConverter.viewToDom(t);return this.htmlWriter.getHtml(e)}toView(t){const e=this._toDom(t);return this.domConverter.domToView(e)}registerRawContentMatcher(t){this.domConverter.registerRawContentMatcher(t)}useFillerType(t){this.domConverter.blockFillerMode="marked"==t?"markedNbsp":"nbsp"}_toDom(t){t.match(/<(?:html|body|head|meta)(?:\s[^>]*)?>/i)||(t=`${t}`);const e=this.domParser.parseFromString(t,"text/html"),n=e.createDocumentFragment(),o=e.body.childNodes;for(;o.length>0;)n.appendChild(o[0]);return n}}class bc{constructor(t,e){this.model=t,this.mapper=new sl,this.downcastDispatcher=new cl({mapper:this.mapper,schema:t.schema}),this.downcastDispatcher.on("insert:$text",((t,e,n)=>{if(!n.consumable.consume(e.item,t.name))return;const o=n.writer,i=n.mapper.toViewPosition(e.range.start),r=o.createText(e.item.data);o.insert(i,r)}),{priority:"lowest"}),this.downcastDispatcher.on("insert",((t,e,n)=>{n.convertAttributes(e.item),e.reconversion||!e.item.is("element")||e.item.isEmpty||n.convertChildren(e.item)}),{priority:"lowest"}),this.upcastDispatcher=new gc({schema:t.schema}),this.viewDocument=new Xi(e),this.stylesProcessor=e,this.htmlProcessor=new fc(this.viewDocument),this.processor=this.htmlProcessor,this._viewWriter=new vr(this.viewDocument),this.upcastDispatcher.on("text",((t,e,{schema:n,consumable:o,writer:i})=>{let r=e.modelCursor;if(!o.test(e.viewItem))return;if(!n.checkChild(r,"$text")){if(!Vl(r,"$text",n))return;if(0==e.viewItem.data.trim().length)return;r=Fl(r,i)}o.consume(e.viewItem);const s=i.createText(e.viewItem.data);i.insert(s,r),e.modelRange=i.createRange(r,r.getShiftedBy(s.offsetSize)),e.modelCursor=e.modelRange.end}),{priority:"lowest"}),this.upcastDispatcher.on("element",((t,e,n)=>{if(!e.modelRange&&n.consumable.consume(e.viewItem,{name:!0})){const{modelRange:t,modelCursor:o}=n.convertChildren(e.viewItem,e.modelCursor);e.modelRange=t,e.modelCursor=o}}),{priority:"lowest"}),this.upcastDispatcher.on("documentFragment",((t,e,n)=>{if(!e.modelRange&&n.consumable.consume(e.viewItem,{name:!0})){const{modelRange:t,modelCursor:o}=n.convertChildren(e.viewItem,e.modelCursor);e.modelRange=t,e.modelCursor=o}}),{priority:"lowest"}),this.decorate("init"),this.decorate("set"),this.decorate("get"),this.on("init",(()=>{this.fire("ready")}),{priority:"lowest"}),this.on("ready",(()=>{this.model.enqueueChange({isUndoable:!1},jl)}),{priority:"lowest"})}get(t={}){const{rootName:e="main",trim:n="empty"}=t;if(!this._checkIfRootsExists([e]))throw new l("datacontroller-get-non-existent-root",this);const o=this.model.document.getRoot(e);return"empty"!==n||this.model.hasContent(o,{ignoreWhitespaces:!0})?this.stringify(o,t):""}stringify(t,e={}){const n=this.toView(t,e);return this.processor.toData(n)}toView(t,e={}){const n=this.viewDocument,o=this._viewWriter;this.mapper.clearBindings();const i=rl._createIn(t),r=new _r(n);this.mapper.bindElements(t,r);const s=t.is("documentFragment")?t.markers:function(t){const e=[],n=t.root.document;if(!n)return new Map;const o=rl._createIn(t);for(const t of n.model.markers){const n=t.getRange(),i=n.isCollapsed,r=n.start.isEqual(o.start)||n.end.isEqual(o.end);if(i&&r)e.push([t.name,n]);else{const i=o.getIntersection(n);i&&e.push([t.name,i])}}return e.sort((([t,e],[n,o])=>{if("after"!==e.end.compareWith(o.start))return 1;if("before"!==e.start.compareWith(o.end))return-1;switch(e.start.compareWith(o.start)){case"before":return 1;case"after":return-1;default:switch(e.end.compareWith(o.end)){case"before":return 1;case"after":return-1;default:return n.localeCompare(t)}}})),new Map(e)}(t);return this.downcastDispatcher.convert(i,s,o,e),r}init(t){if(this.model.document.version)throw new l("datacontroller-init-document-not-empty",this);let e={};if("string"==typeof t?e.main=t:e=t,!this._checkIfRootsExists(Object.keys(e)))throw new l("datacontroller-init-non-existent-root",this);return this.model.enqueueChange({isUndoable:!1},(t=>{for(const n of Object.keys(e)){const o=this.model.document.getRoot(n);t.insert(this.parse(e[n],o),o,0)}})),Promise.resolve()}set(t,e={}){let n={};if("string"==typeof t?n.main=t:n=t,!this._checkIfRootsExists(Object.keys(n)))throw new l("datacontroller-set-non-existent-root",this);this.model.enqueueChange(e.batchType||{},(t=>{t.setSelection(null),t.removeSelectionAttribute(this.model.document.selection.getAttributeKeys());for(const e of Object.keys(n)){const o=this.model.document.getRoot(e);t.remove(t.createRangeIn(o)),t.insert(this.parse(n[e],o),o,0)}}))}parse(t,e="$root"){const n=this.processor.toView(t);return this.toModel(n,e)}toModel(t,e="$root"){return this.model.change((n=>this.upcastDispatcher.convert(t,n,e)))}addStyleProcessorRules(t){t(this.stylesProcessor)}registerRawContentMatcher(t){this.processor&&this.processor!==this.htmlProcessor&&this.processor.registerRawContentMatcher(t),this.htmlProcessor.registerRawContentMatcher(t)}destroy(){this.stopListening()}_checkIfRootsExists(t){for(const e of t)if(!this.model.document.getRootNames().includes(e))return!1;return!0}}j(bc,N);class kc{constructor(t,e){this._helpers=new Map,this._downcast=wo(t),this._createConversionHelpers({name:"downcast",dispatchers:this._downcast,isDowncast:!0}),this._upcast=wo(e),this._createConversionHelpers({name:"upcast",dispatchers:this._upcast,isDowncast:!1})}addAlias(t,e){const n=this._downcast.includes(e);if(!this._upcast.includes(e)&&!n)throw new l("conversion-add-alias-dispatcher-not-registered",this);this._createConversionHelpers({name:t,dispatchers:[e],isDowncast:n})}for(t){if(!this._helpers.has(t))throw new l("conversion-for-unknown-group",this);return this._helpers.get(t)}elementToElement(t){this.for("downcast").elementToElement(t);for(const{model:e,view:n}of wc(t))this.for("upcast").elementToElement({model:e,view:n,converterPriority:t.converterPriority})}attributeToElement(t){this.for("downcast").attributeToElement(t);for(const{model:e,view:n}of wc(t))this.for("upcast").elementToAttribute({view:n,model:e,converterPriority:t.converterPriority})}attributeToAttribute(t){this.for("downcast").attributeToAttribute(t);for(const{model:e,view:n}of wc(t))this.for("upcast").attributeToAttribute({view:n,model:e})}_createConversionHelpers({name:t,dispatchers:e,isDowncast:n}){if(this._helpers.has(t))throw new l("conversion-group-exists",this);const o=n?new El(e):new Hl(e);this._helpers.set(t,o)}}function*wc(t){if(t.model.values)for(const e of t.model.values){const n={key:t.model.key,value:e},o=t.view[e],i=t.upcastAlso?t.upcastAlso[e]:void 0;yield*Ac(n,o,i)}else yield*Ac(t.model,t.view,t.upcastAlso)}function*Ac(t,e,n){if(yield{model:t,view:e},n)for(const e of wo(n))yield{model:t,view:e}}class Cc{constructor(t={}){"string"==typeof t&&(t="transparent"===t?{isUndoable:!1}:{},c("batch-constructor-deprecated-string-type"));const{isUndoable:e=!0,isLocal:n=!0,isUndo:o=!1,isTyping:i=!1}=t;this.operations=[],this.isUndoable=e,this.isLocal=n,this.isUndo=o,this.isTyping=i}get type(){return c("batch-type-deprecated"),"default"}get baseVersion(){for(const t of this.operations)if(null!==t.baseVersion)return t.baseVersion;return null}addOperation(t){return t.batch=this,this.operations.push(t),t}}class _c{constructor(t){this.baseVersion=t,this.isDocumentOperation=null!==this.baseVersion,this.batch=null}_validate(){}toJSON(){const t=Object.assign({},this);return t.__className=this.constructor.className,delete t.batch,delete t.isDocumentOperation,t}static get className(){return"Operation"}static fromJSON(t){return new this(t.baseVersion)}}class vc{constructor(t){this.markers=new Map,this._children=new Qa,t&&this._insertChild(0,t)}[Symbol.iterator](){return this.getChildren()}get childCount(){return this._children.length}get maxOffset(){return this._children.maxOffset}get isEmpty(){return 0===this.childCount}get root(){return this}get parent(){return null}is(t){return"documentFragment"===t||"model:documentFragment"===t}getChild(t){return this._children.getNode(t)}getChildren(){return this._children[Symbol.iterator]()}getChildIndex(t){return this._children.getNodeIndex(t)}getChildStartOffset(t){return this._children.getNodeStartOffset(t)}getPath(){return[]}getNodeByPath(t){let e=this;for(const n of t)e=e.getChild(e.offsetToIndex(n));return e}offsetToIndex(t){return this._children.offsetToIndex(t)}toJSON(){const t=[];for(const e of this._children)t.push(e.toJSON());return t}static fromJSON(t){const e=[];for(const n of t)n.name?e.push(Ja.fromJSON(n)):e.push(Ka.fromJSON(n));return new vc(e)}_appendChild(t){this._insertChild(this.childCount,t)}_insertChild(t,e){const n=function(t){if("string"==typeof t)return[new Ka(t)];po(t)||(t=[t]);return Array.from(t).map((t=>"string"==typeof t?new Ka(t):t instanceof $a?new Ka(t.data,t.getAttributes()):t))}(e);for(const t of n)null!==t.parent&&t._remove(),t.parent=this;this._children._insertNodes(t,n)}_removeChildren(t,e=1){const n=this._children._removeNodes(t,e);for(const t of n)t.parent=null;return n}}function yc(t,e){const n=(e=Dc(e)).reduce(((t,e)=>t+e.offsetSize),0),o=t.parent;Ic(t);const i=t.index;return o._insertChild(i,e),Sc(o,i+e.length),Sc(o,i),new rl(t,t.getShiftedBy(n))}function xc(t){if(!t.isFlat)throw new l("operation-utils-remove-range-not-flat",this);const e=t.start.parent;Ic(t.start),Ic(t.end);const n=e._removeChildren(t.start.index,t.end.index-t.start.index);return Sc(e,t.start.index),n}function Ec(t,e){if(!t.isFlat)throw new l("operation-utils-move-range-not-flat",this);const n=xc(t);return yc(e=e._getTransformedByDeletion(t.start,t.end.offset-t.start.offset),n)}function Dc(t){const e=[];t instanceof Array||(t=[t]);for(let n=0;nt.maxOffset)throw new l("move-operation-nodes-do-not-exist",this);if(t===e&&n=n&&this.targetPosition.path[t]t._clone(!0)))),e=new Pc(this.position,t,this.baseVersion);return e.shouldReceiveAttributes=this.shouldReceiveAttributes,e}getReversed(){const t=this.position.root.document.graveyard,e=new el(t,[0]);return new zc(this.position,this.nodes.maxOffset,e,this.baseVersion+1)}_validate(){const t=this.position.parent;if(!t||t.maxOffsett._clone(!0)))),yc(this.position,t)}toJSON(){const t=super.toJSON();return t.position=this.position.toJSON(),t.nodes=this.nodes.toJSON(),t}static get className(){return"InsertOperation"}static fromJSON(t,e){const n=[];for(const e of t.nodes)e.name?n.push(Ja.fromJSON(e)):n.push(Ka.fromJSON(e));const o=new Pc(el.fromJSON(t.position,e),n,t.baseVersion);return o.shouldReceiveAttributes=t.shouldReceiveAttributes,o}}class Lc extends _c{constructor(t,e,n,o,i,r){super(r),this.name=t,this.oldRange=e?e.clone():null,this.newRange=n?n.clone():null,this.affectsData=i,this._markers=o}get type(){return"marker"}clone(){return new Lc(this.name,this.oldRange,this.newRange,this._markers,this.affectsData,this.baseVersion)}getReversed(){return new Lc(this.name,this.newRange,this.oldRange,this._markers,this.affectsData,this.baseVersion+1)}_execute(){const t=this.newRange?"_set":"_remove";this._markers[t](this.name,this.newRange,!0,this.affectsData)}toJSON(){const t=super.toJSON();return this.oldRange&&(t.oldRange=this.oldRange.toJSON()),this.newRange&&(t.newRange=this.newRange.toJSON()),delete t._markers,t}static get className(){return"MarkerOperation"}static fromJSON(t,e){return new Lc(t.name,t.oldRange?rl.fromJSON(t.oldRange,e):null,t.newRange?rl.fromJSON(t.newRange,e):null,e.model.markers,t.affectsData,t.baseVersion)}}class Oc extends _c{constructor(t,e,n,o){super(o),this.position=t,this.position.stickiness="toNext",this.oldName=e,this.newName=n}get type(){return"rename"}clone(){return new Oc(this.position.clone(),this.oldName,this.newName,this.baseVersion)}getReversed(){return new Oc(this.position.clone(),this.newName,this.oldName,this.baseVersion+1)}_validate(){const t=this.position.nodeAfter;if(!(t instanceof Ja))throw new l("rename-operation-wrong-position",this);if(t.name!==this.oldName)throw new l("rename-operation-wrong-name",this)}_execute(){this.position.nodeAfter.name=this.newName}toJSON(){const t=super.toJSON();return t.position=this.position.toJSON(),t}static get className(){return"RenameOperation"}static fromJSON(t,e){return new Oc(el.fromJSON(t.position,e),t.oldName,t.newName,t.baseVersion)}}class Rc extends _c{constructor(t,e,n,o,i){super(i),this.root=t,this.key=e,this.oldValue=n,this.newValue=o}get type(){return null===this.oldValue?"addRootAttribute":null===this.newValue?"removeRootAttribute":"changeRootAttribute"}clone(){return new Rc(this.root,this.key,this.oldValue,this.newValue,this.baseVersion)}getReversed(){return new Rc(this.root,this.key,this.newValue,this.oldValue,this.baseVersion+1)}_validate(){if(this.root!=this.root.root||this.root.is("documentFragment"))throw new l("rootattribute-operation-not-a-root",this,{root:this.root,key:this.key});if(null!==this.oldValue&&this.root.getAttribute(this.key)!==this.oldValue)throw new l("rootattribute-operation-wrong-old-value",this,{root:this.root,key:this.key});if(null===this.oldValue&&null!==this.newValue&&this.root.hasAttribute(this.key))throw new l("rootattribute-operation-attribute-exists",this,{root:this.root,key:this.key})}_execute(){null!==this.newValue?this.root._setAttribute(this.key,this.newValue):this.root._removeAttribute(this.key)}toJSON(){const t=super.toJSON();return t.root=this.root.toJSON(),t}static get className(){return"RootAttributeOperation"}static fromJSON(t,e){if(!e.getRoot(t.root))throw new l("rootattribute-operation-fromjson-no-root",this,{rootName:t.root});return new Rc(e.getRoot(t.root),t.key,t.oldValue,t.newValue,t.baseVersion)}}class jc extends _c{constructor(t,e,n,o,i){super(i),this.sourcePosition=t.clone(),this.sourcePosition.stickiness="toPrevious",this.howMany=e,this.targetPosition=n.clone(),this.targetPosition.stickiness="toNext",this.graveyardPosition=o.clone()}get type(){return"merge"}get deletionPosition(){return new el(this.sourcePosition.root,this.sourcePosition.path.slice(0,-1))}get movedRange(){const t=this.sourcePosition.getShiftedBy(Number.POSITIVE_INFINITY);return new rl(this.sourcePosition,t)}clone(){return new this.constructor(this.sourcePosition,this.howMany,this.targetPosition,this.graveyardPosition,this.baseVersion)}getReversed(){const t=this.targetPosition._getTransformedByMergeOperation(this),e=this.sourcePosition.path.slice(0,-1),n=new el(this.sourcePosition.root,e)._getTransformedByMergeOperation(this);return new Vc(t,this.howMany,n,this.graveyardPosition,this.baseVersion+1)}_validate(){const t=this.sourcePosition.parent,e=this.targetPosition.parent;if(!t.parent)throw new l("merge-operation-source-position-invalid",this);if(!e.parent)throw new l("merge-operation-target-position-invalid",this);if(this.howMany!=t.maxOffset)throw new l("merge-operation-how-many-invalid",this)}_execute(){const t=this.sourcePosition.parent;Ec(rl._createIn(t),this.targetPosition),Ec(rl._createOn(t),this.graveyardPosition)}toJSON(){const t=super.toJSON();return t.sourcePosition=t.sourcePosition.toJSON(),t.targetPosition=t.targetPosition.toJSON(),t.graveyardPosition=t.graveyardPosition.toJSON(),t}static get className(){return"MergeOperation"}static fromJSON(t,e){const n=el.fromJSON(t.sourcePosition,e),o=el.fromJSON(t.targetPosition,e),i=el.fromJSON(t.graveyardPosition,e);return new this(n,t.howMany,o,i,t.baseVersion)}}class Vc extends _c{constructor(t,e,n,o,i){super(i),this.splitPosition=t.clone(),this.splitPosition.stickiness="toNext",this.howMany=e,this.insertionPosition=n,this.graveyardPosition=o?o.clone():null,this.graveyardPosition&&(this.graveyardPosition.stickiness="toNext")}get type(){return"split"}get moveTargetPosition(){const t=this.insertionPosition.path.slice();return t.push(0),new el(this.insertionPosition.root,t)}get movedRange(){const t=this.splitPosition.getShiftedBy(Number.POSITIVE_INFINITY);return new rl(this.splitPosition,t)}clone(){return new this.constructor(this.splitPosition,this.howMany,this.insertionPosition,this.graveyardPosition,this.baseVersion)}getReversed(){const t=this.splitPosition.root.document.graveyard,e=new el(t,[0]);return new jc(this.moveTargetPosition,this.howMany,this.splitPosition,e,this.baseVersion+1)}_validate(){const t=this.splitPosition.parent,e=this.splitPosition.offset;if(!t||t.maxOffset{for(const e of t.getAttributeKeys())this.removeAttribute(e,t)};if(t instanceof rl)for(const n of t.getItems())e(n);else e(t)}move(t,e,n){if(this._assertWriterUsedCorrectly(),!(t instanceof rl))throw new l("writer-move-invalid-range",this);if(!t.isFlat)throw new l("writer-move-range-not-flat",this);const o=el._createAt(e,n);if(o.isEqual(t.start))return;if(this._addOperationForAffectedMarkers("move",t),!Zc(t.root,o.root))throw new l("writer-move-different-document",this);const i=t.root.document?t.root.document.version:null,r=new zc(t.start,t.end.offset-t.start.offset,o,i);this.batch.addOperation(r),this.model.applyOperation(r)}remove(t){this._assertWriterUsedCorrectly();const e=(t instanceof rl?t:rl._createOn(t)).getMinimalFlatRanges().reverse();for(const t of e)this._addOperationForAffectedMarkers("move",t),Wc(t.start,t.end.offset-t.start.offset,this.batch,this.model)}merge(t){this._assertWriterUsedCorrectly();const e=t.nodeBefore,n=t.nodeAfter;if(this._addOperationForAffectedMarkers("merge",t),!(e instanceof Ja))throw new l("writer-merge-no-element-before",this);if(!(n instanceof Ja))throw new l("writer-merge-no-element-after",this);t.root.document?this._merge(t):this._mergeDetached(t)}createPositionFromPath(t,e,n){return this.model.createPositionFromPath(t,e,n)}createPositionAt(t,e){return this.model.createPositionAt(t,e)}createPositionAfter(t){return this.model.createPositionAfter(t)}createPositionBefore(t){return this.model.createPositionBefore(t)}createRange(t,e){return this.model.createRange(t,e)}createRangeIn(t){return this.model.createRangeIn(t)}createRangeOn(t){return this.model.createRangeOn(t)}createSelection(t,e,n){return this.model.createSelection(t,e,n)}_mergeDetached(t){const e=t.nodeBefore,n=t.nodeAfter;this.move(rl._createIn(n),el._createAt(e,"end")),this.remove(n)}_merge(t){const e=el._createAt(t.nodeBefore,"end"),n=el._createAt(t.nodeAfter,0),o=t.root.document.graveyard,i=new el(o,[0]),r=t.root.document.version,s=new jc(n,t.nodeAfter.maxOffset,e,i,r);this.batch.addOperation(s),this.model.applyOperation(s)}rename(t,e){if(this._assertWriterUsedCorrectly(),!(t instanceof Ja))throw new l("writer-rename-not-element-instance",this);const n=t.root.document?t.root.document.version:null,o=new Oc(el._createBefore(t),t.name,e,n);this.batch.addOperation(o),this.model.applyOperation(o)}split(t,e){this._assertWriterUsedCorrectly();let n,o,i=t.parent;if(!i.parent)throw new l("writer-split-element-no-parent",this);if(e||(e=i.parent),!t.parent.getAncestors({includeSelf:!0}).includes(e))throw new l("writer-split-invalid-limit-element",this);do{const e=i.root.document?i.root.document.version:null,r=i.maxOffset-t.offset,s=Vc.getInsertionPosition(t),a=new Vc(t,r,s,null,e);this.batch.addOperation(a),this.model.applyOperation(a),n||o||(n=i,o=t.parent.nextSibling),i=(t=this.createPositionAfter(t.parent)).parent}while(i!==e);return{position:t,range:new rl(el._createAt(n,"end"),el._createAt(o,0))}}wrap(t,e){if(this._assertWriterUsedCorrectly(),!t.isFlat)throw new l("writer-wrap-range-not-flat",this);const n=e instanceof Ja?e:new Ja(e);if(n.childCount>0)throw new l("writer-wrap-element-not-empty",this);if(null!==n.parent)throw new l("writer-wrap-element-attached",this);this.insert(n,t.start);const o=new rl(t.start.getShiftedBy(1),t.end.getShiftedBy(1));this.move(o,el._createAt(n,0))}unwrap(t){if(this._assertWriterUsedCorrectly(),null===t.parent)throw new l("writer-unwrap-element-no-parent",this);this.move(rl._createIn(t),this.createPositionAfter(t)),this.remove(t)}addMarker(t,e){if(this._assertWriterUsedCorrectly(),!e||"boolean"!=typeof e.usingOperation)throw new l("writer-addmarker-no-usingoperation",this);const n=e.usingOperation,o=e.range,i=void 0!==e.affectsData&&e.affectsData;if(this.model.markers.has(t))throw new l("writer-addmarker-marker-exists",this);if(!o)throw new l("writer-addmarker-no-range",this);return n?(Gc(this,t,null,o,i),this.model.markers.get(t)):this.model.markers._set(t,o,n,i)}updateMarker(t,e){this._assertWriterUsedCorrectly();const n="string"==typeof t?t:t.name,o=this.model.markers.get(n);if(!o)throw new l("writer-updatemarker-marker-not-exists",this);if(!e)return c("writer-updatemarker-reconvert-using-editingcontroller",{markerName:n}),void this.model.markers._refresh(o);const i="boolean"==typeof e.usingOperation,r="boolean"==typeof e.affectsData,s=r?e.affectsData:o.affectsData;if(!i&&!e.range&&!r)throw new l("writer-updatemarker-wrong-options",this);const a=o.getRange(),d=e.range?e.range:a;i&&e.usingOperation!==o.managedUsingOperations?e.usingOperation?Gc(this,n,null,d,s):(Gc(this,n,a,null,s),this.model.markers._set(n,d,void 0,s)):o.managedUsingOperations?Gc(this,n,a,d,s):this.model.markers._set(n,d,void 0,s)}removeMarker(t){this._assertWriterUsedCorrectly();const e="string"==typeof t?t:t.name;if(!this.model.markers.has(e))throw new l("writer-removemarker-no-marker",this);const n=this.model.markers.get(e);if(!n.managedUsingOperations)return void this.model.markers._remove(e);Gc(this,e,n.getRange(),null,n.affectsData)}setSelection(t,e,n){this._assertWriterUsedCorrectly(),this.model.document.selection._setTo(t,e,n)}setSelectionFocus(t,e){this._assertWriterUsedCorrectly(),this.model.document.selection._setFocus(t,e)}setSelectionAttribute(t,e){if(this._assertWriterUsedCorrectly(),"string"==typeof t)this._setSelectionAttribute(t,e);else for(const[e,n]of Mo(t))this._setSelectionAttribute(e,n)}removeSelectionAttribute(t){if(this._assertWriterUsedCorrectly(),"string"==typeof t)this._removeSelectionAttribute(t);else for(const e of t)this._removeSelectionAttribute(e)}overrideSelectionGravity(){return this.model.document.selection._overrideGravity()}restoreSelectionGravity(t){this.model.document.selection._restoreGravity(t)}_setSelectionAttribute(t,e){const n=this.model.document.selection;if(n.isCollapsed&&n.anchor.parent.isEmpty){const o=Cl._getStoreAttributeKey(t);this.setAttribute(o,e,n.anchor.parent)}n._setAttribute(t,e)}_removeSelectionAttribute(t){const e=this.model.document.selection;if(e.isCollapsed&&e.anchor.parent.isEmpty){const n=Cl._getStoreAttributeKey(t);this.removeAttribute(n,e.anchor.parent)}e._removeAttribute(t)}_assertWriterUsedCorrectly(){if(this.model._currentWriter!==this)throw new l("writer-incorrect-use",this)}_addOperationForAffectedMarkers(t,e){for(const n of this.model.markers){if(!n.managedUsingOperations)continue;const o=n.getRange();let i=!1;if("move"===t)i=e.containsPosition(o.start)||e.start.isEqual(o.start)||e.containsPosition(o.end)||e.end.isEqual(o.end);else{const t=e.nodeBefore,n=e.nodeAfter,r=o.start.parent==t&&o.start.isAtEnd,s=o.end.parent==n&&0==o.end.offset,a=o.end.nodeAfter==n,l=o.start.nodeAfter==n;i=r||s||a||l}i&&this.updateMarker(n.name,{range:o})}}}function Uc(t,e,n,o){const i=t.model,r=i.document;let s,a,l,c=o.start;for(const t of o.getWalker({shallow:!0}))l=t.item.getAttribute(e),s&&a!=l&&(a!=n&&d(),c=s),s=t.nextPosition,a=l;function d(){const o=new rl(c,s),l=o.root.document?r.version:null,d=new Bc(o,e,a,n,l);t.batch.addOperation(d),i.applyOperation(d)}s instanceof el&&s!=c&&a!=n&&d()}function qc(t,e,n,o){const i=t.model,r=i.document,s=o.getAttribute(e);let a,l;if(s!=n){if(o.root===o){const t=o.document?r.version:null;l=new Rc(o,e,s,n,t)}else{a=new rl(el._createBefore(o),t.createPositionAfter(o));const i=a.root.document?r.version:null;l=new Bc(a,e,s,n,i)}t.batch.addOperation(l),i.applyOperation(l)}}function Gc(t,e,n,o,i){const r=t.model,s=r.document,a=new Lc(e,n,o,r.markers,i,s.version);t.batch.addOperation(a),r.applyOperation(a)}function Wc(t,e,n,o){let i;if(t.root.document){const n=o.document,r=new el(n.graveyard,[0]);i=new zc(t,e,r,n.version)}else i=new Nc(t,e);n.addOperation(i),o.applyOperation(i)}function Zc(t,e){return t===e||t instanceof Fc&&e instanceof Fc}class Yc{constructor(t){this._markerCollection=t,this._changesInElement=new Map,this._elementSnapshots=new Map,this._changedMarkers=new Map,this._changeCount=0,this._cachedChanges=null,this._cachedChangesWithGraveyard=null,this._refreshedItems=new Set}get isEmpty(){return 0==this._changesInElement.size&&0==this._changedMarkers.size}bufferOperation(t){switch(t.type){case"insert":if(this._isInInsertedElement(t.position.parent))return;this._markInsert(t.position.parent,t.position.offset,t.nodes.maxOffset);break;case"addAttribute":case"removeAttribute":case"changeAttribute":for(const e of t.range.getItems({shallow:!0}))this._isInInsertedElement(e.parent)||this._markAttribute(e);break;case"remove":case"move":case"reinsert":{if(t.sourcePosition.isEqual(t.targetPosition)||t.sourcePosition.getShiftedBy(t.howMany).isEqual(t.targetPosition))return;const e=this._isInInsertedElement(t.sourcePosition.parent),n=this._isInInsertedElement(t.targetPosition.parent);e||this._markRemove(t.sourcePosition.parent,t.sourcePosition.offset,t.howMany),n||this._markInsert(t.targetPosition.parent,t.getMovedRangeStart().offset,t.howMany);break}case"rename":{if(this._isInInsertedElement(t.position.parent))return;this._markRemove(t.position.parent,t.position.offset,1),this._markInsert(t.position.parent,t.position.offset,1);const e=rl._createFromPositionAndShift(t.position,1);for(const t of this._markerCollection.getMarkersIntersectingRange(e)){const e=t.getData();this.bufferMarkerChange(t.name,e,e)}break}case"split":{const e=t.splitPosition.parent;this._isInInsertedElement(e)||this._markRemove(e,t.splitPosition.offset,t.howMany),this._isInInsertedElement(t.insertionPosition.parent)||this._markInsert(t.insertionPosition.parent,t.insertionPosition.offset,1),t.graveyardPosition&&this._markRemove(t.graveyardPosition.parent,t.graveyardPosition.offset,1);break}case"merge":{const e=t.sourcePosition.parent;this._isInInsertedElement(e.parent)||this._markRemove(e.parent,e.startOffset,1);const n=t.graveyardPosition.parent;this._markInsert(n,t.graveyardPosition.offset,1);const o=t.targetPosition.parent;this._isInInsertedElement(o)||this._markInsert(o,t.targetPosition.offset,e.maxOffset);break}}this._cachedChanges=null}bufferMarkerChange(t,e,n){const o=this._changedMarkers.get(t);o?(o.newMarkerData=n,null==o.oldMarkerData.range&&null==n.range&&this._changedMarkers.delete(t)):this._changedMarkers.set(t,{newMarkerData:n,oldMarkerData:e})}getMarkersToRemove(){const t=[];for(const[e,n]of this._changedMarkers)null!=n.oldMarkerData.range&&t.push({name:e,range:n.oldMarkerData.range});return t}getMarkersToAdd(){const t=[];for(const[e,n]of this._changedMarkers)null!=n.newMarkerData.range&&t.push({name:e,range:n.newMarkerData.range});return t}getChangedMarkers(){return Array.from(this._changedMarkers).map((([t,e])=>({name:t,data:{oldRange:e.oldMarkerData.range,newRange:e.newMarkerData.range}})))}hasDataChanges(){if(this._changesInElement.size>0)return!0;for(const{newMarkerData:t,oldMarkerData:e}of this._changedMarkers.values()){if(t.affectsData!==e.affectsData)return!0;if(t.affectsData){const n=t.range&&!e.range,o=!t.range&&e.range,i=t.range&&e.range&&!t.range.isEqual(e.range);if(n||o||i)return!0}}return!1}getChanges(t={includeChangesInGraveyard:!1}){if(this._cachedChanges)return t.includeChangesInGraveyard?this._cachedChangesWithGraveyard.slice():this._cachedChanges.slice();let e=[];for(const t of this._changesInElement.keys()){const n=this._changesInElement.get(t).sort(((t,e)=>t.offset===e.offset?t.type!=e.type?"remove"==t.type?-1:1:0:t.offsett.position.root!=e.position.root?t.position.root.rootNamet));for(const t of e)delete t.changeCount,"attribute"==t.type&&(delete t.position,delete t.length);return this._changeCount=0,this._cachedChangesWithGraveyard=e,this._cachedChanges=e.filter(Qc),t.includeChangesInGraveyard?this._cachedChangesWithGraveyard.slice():this._cachedChanges.slice()}getRefreshedItems(){return new Set(this._refreshedItems)}reset(){this._changesInElement.clear(),this._elementSnapshots.clear(),this._changedMarkers.clear(),this._refreshedItems=new Set,this._cachedChanges=null}_refreshItem(t){if(this._isInInsertedElement(t.parent))return;this._markRemove(t.parent,t.startOffset,t.offsetSize),this._markInsert(t.parent,t.startOffset,t.offsetSize),this._refreshedItems.add(t);const e=rl._createOn(t);for(const t of this._markerCollection.getMarkersIntersectingRange(e)){const e=t.getData();this.bufferMarkerChange(t.name,e,e)}this._cachedChanges=null}_markInsert(t,e,n){const o={type:"insert",offset:e,howMany:n,count:this._changeCount++};this._markChange(t,o)}_markRemove(t,e,n){const o={type:"remove",offset:e,howMany:n,count:this._changeCount++};this._markChange(t,o),this._removeAllNestedChanges(t,e,n)}_markAttribute(t){const e={type:"attribute",offset:t.startOffset,howMany:t.offsetSize,count:this._changeCount++};this._markChange(t.parent,e)}_markChange(t,e){this._makeSnapshot(t);const n=this._getChangesForElement(t);this._handleChange(e,n),n.push(e);for(let t=0;tn.offset){if(o>i){const t={type:"attribute",offset:i,howMany:o-i,count:this._changeCount++};this._handleChange(t,e),e.push(t)}t.nodesToHandle=n.offset-t.offset,t.howMany=t.nodesToHandle}else t.offset>=n.offset&&t.offseti?(t.nodesToHandle=o-i,t.offset=i):t.nodesToHandle=0);if("remove"==n.type&&t.offsetn.offset){const i={type:"attribute",offset:n.offset,howMany:o-n.offset,count:this._changeCount++};this._handleChange(i,e),e.push(i),t.nodesToHandle=n.offset-t.offset,t.howMany=t.nodesToHandle}"attribute"==n.type&&(t.offset>=n.offset&&o<=i?(t.nodesToHandle=0,t.howMany=0,t.offset=0):t.offset<=n.offset&&o>=i&&(n.howMany=0))}}t.howMany=t.nodesToHandle,delete t.nodesToHandle}_getInsertDiff(t,e,n){return{type:"insert",position:el._createAt(t,e),name:n.name,attributes:new Map(n.attributes),length:1,changeCount:this._changeCount++}}_getRemoveDiff(t,e,n){return{type:"remove",position:el._createAt(t,e),name:n.name,attributes:new Map(n.attributes),length:1,changeCount:this._changeCount++}}_getAttributesDiff(t,e,n){const o=[];n=new Map(n);for(const[i,r]of e){const e=n.has(i)?n.get(i):null;e!==r&&o.push({type:"attribute",position:t.start,range:t.clone(),length:1,attributeKey:i,attributeOldValue:r,attributeNewValue:e,changeCount:this._changeCount++}),n.delete(i)}for(const[e,i]of n)o.push({type:"attribute",position:t.start,range:t.clone(),length:1,attributeKey:e,attributeOldValue:null,attributeNewValue:i,changeCount:this._changeCount++});return o}_isInInsertedElement(t){const e=t.parent;if(!e)return!1;const n=this._changesInElement.get(e),o=t.startOffset;if(n)for(const t of n)if("insert"==t.type&&o>=t.offset&&oo){for(let e=0;ethis._version+1&&this._gaps.set(this._version,t),this._version=t}get lastOperation(){return this._operations[this._operations.length-1]}addOperation(t){if(t.baseVersion!==this.version)throw new l("model-document-history-addoperation-incorrect-version",this,{operation:t,historyVersion:this.version});this._operations.push(t),this._version++,this._baseVersionToOperationIndex.set(t.baseVersion,this._operations.length-1)}getOperations(t,e=this.version){if(!this._operations.length)return[];const n=this._operations[0];void 0===t&&(t=n.baseVersion);let o=e-1;for(const[e,n]of this._gaps)t>e&&te&&othis.lastOperation.baseVersion)return[];let i=this._baseVersionToOperationIndex.get(t);void 0===i&&(i=0);let r=this._baseVersionToOperationIndex.get(o);return void 0===r&&(r=this._operations.length-1),this._operations.slice(i,r+1)}getOperation(t){const e=this._baseVersionToOperationIndex.get(t);if(void 0!==e)return this._operations[e]}setOperationAsUndone(t,e){this._undoPairs.set(e,t),this._undoneOperations.add(t)}isUndoingOperation(t){return this._undoPairs.has(t)}isUndoneOperation(t){return this._undoneOperations.has(t)}getUndoneOperation(t){return this._undoPairs.get(t)}reset(){this._version=0,this._undoPairs=new Map,this._operations=[],this._undoneOperations=new Set,this._gaps=new Map,this._baseVersionToOperationIndex=new Map}}function Xc(t,e){return!!(n=t.charAt(e-1))&&1==n.length&&/[\ud800-\udbff]/.test(n)&&function(t){return!!t&&1==t.length&&/[\udc00-\udfff]/.test(t)}(t.charAt(e));var n}function td(t,e){return!!(n=t.charAt(e))&&1==n.length&&/[\u0300-\u036f\u1ab0-\u1aff\u1dc0-\u1dff\u20d0-\u20ff\ufe20-\ufe2f]/.test(n);var n}const ed=function(){const t=/\p{Regional_Indicator}{2}/u.source,e="(?:"+[/\p{Emoji}[\u{E0020}-\u{E007E}]+\u{E007F}/u,/\p{Emoji}\u{FE0F}?\u{20E3}/u,/\p{Emoji}\u{FE0F}/u,/(?=\p{General_Category=Other_Symbol})\p{Emoji}\p{Emoji_Modifier}*/u].map((t=>t.source)).join("|")+")";return new RegExp(`${t}|${e}(?:‍${e})*`,"ug")}();function nd(t,e){const n=String(t).matchAll(ed);return Array.from(n).some((t=>t.index{const n=e[0];n.isDocumentOperation&&this.differ.bufferOperation(n)}),{priority:"high"}),this.listenTo(t,"applyOperation",((t,e)=>{const n=e[0];n.isDocumentOperation&&this.history.addOperation(n)}),{priority:"low"}),this.listenTo(this.selection,"change",(()=>{this._hasSelectionChangedFromTheLastChangeBlock=!0})),this.listenTo(t.markers,"update",((t,e,n,o,i)=>{const r={...e.getData(),range:o};this.differ.bufferMarkerChange(e.name,i,r),null===n&&e.on("change",((t,n)=>{const o=e.getData();this.differ.bufferMarkerChange(e.name,{...o,range:n},o)}))}))}get version(){return this.history.version}set version(t){this.history.version=t}get graveyard(){return this.getRoot(od)}createRoot(t="$root",e="main"){if(this.roots.get(e))throw new l("model-document-createroot-name-exists",this,{name:e});const n=new Fc(this,t,e);return this.roots.add(n),n}destroy(){this.selection.destroy(),this.stopListening()}getRoot(t="main"){return this.roots.get(t)}getRootNames(){return Array.from(this.roots,(t=>t.rootName)).filter((t=>t!=od))}registerPostFixer(t){this._postFixers.add(t)}toJSON(){const t=Do(this);return t.selection="[engine.model.DocumentSelection]",t.model="[engine.model.Model]",t}_handleChangeBlock(t){this._hasDocumentChangedFromTheLastChangeBlock()&&(this._callPostFixers(t),this.selection.refresh(),this.differ.hasDataChanges()?this.fire("change:data",t.batch):this.fire("change",t.batch),this.selection.refresh(),this.differ.reset()),this._hasSelectionChangedFromTheLastChangeBlock=!1}_hasDocumentChangedFromTheLastChangeBlock(){return!this.differ.isEmpty||this._hasSelectionChangedFromTheLastChangeBlock}_getDefaultRoot(){for(const t of this.roots)if(t!==this.graveyard)return t;return this.graveyard}_getDefaultRange(){const t=this._getDefaultRoot(),e=this.model,n=e.schema,o=e.createPositionFromPath(t,[0]);return n.getNearestSelectionRange(o)||e.createRange(o)}_validateSelectionRange(t){return rd(t.start)&&rd(t.end)}_callPostFixers(t){let e=!1;do{for(const n of this._postFixers)if(this.selection.refresh(),e=n(t),e)break}while(e)}}function rd(t){const e=t.textNode;if(e){const n=e.data,o=t.offset-e.startOffset;return!Xc(n,o)&&!td(n,o)}return!0}j(id,k);class sd{constructor(){this._markers=new Map}[Symbol.iterator](){return this._markers.values()}has(t){const e=t instanceof ad?t.name:t;return this._markers.has(e)}get(t){return this._markers.get(t)||null}_set(t,e,n=!1,o=!1){const i=t instanceof ad?t.name:t;if(i.includes(","))throw new l("markercollection-incorrect-marker-name",this);const r=this._markers.get(i);if(r){const t=r.getData(),s=r.getRange();let a=!1;return s.isEqual(e)||(r._attachLiveRange(bl.fromRange(e)),a=!0),n!=r.managedUsingOperations&&(r._managedUsingOperations=n,a=!0),"boolean"==typeof o&&o!=r.affectsData&&(r._affectsData=o,a=!0),a&&this.fire("update:"+i,r,s,e,t),r}const s=bl.fromRange(e),a=new ad(i,s,n,o);return this._markers.set(i,a),this.fire("update:"+i,a,null,e,{...a.getData(),range:null}),a}_remove(t){const e=t instanceof ad?t.name:t,n=this._markers.get(e);return!!n&&(this._markers.delete(e),this.fire("update:"+e,n,n.getRange(),null,n.getData()),this._destroyMarker(n),!0)}_refresh(t){const e=t instanceof ad?t.name:t,n=this._markers.get(e);if(!n)throw new l("markercollection-refresh-marker-not-exists",this);const o=n.getRange();this.fire("update:"+e,n,o,o,n.getData())}*getMarkersAtPosition(t){for(const e of this)e.getRange().containsPosition(t)&&(yield e)}*getMarkersIntersectingRange(t){for(const e of this)null!==e.getRange().getIntersection(t)&&(yield e)}destroy(){for(const t of this._markers.values())this._destroyMarker(t);this._markers=null,this.stopListening()}*getMarkersGroup(t){for(const e of this._markers.values())e.name.startsWith(t+":")&&(yield e)}_destroyMarker(t){t.stopListening(),t._detachLiveRange()}}j(sd,k);class ad{constructor(t,e,n,o){this.name=t,this._liveRange=this._attachLiveRange(e),this._managedUsingOperations=n,this._affectsData=o}get managedUsingOperations(){if(!this._liveRange)throw new l("marker-destroyed",this);return this._managedUsingOperations}get affectsData(){if(!this._liveRange)throw new l("marker-destroyed",this);return this._affectsData}getData(){return{range:this.getRange(),affectsData:this.affectsData,managedUsingOperations:this.managedUsingOperations}}getStart(){if(!this._liveRange)throw new l("marker-destroyed",this);return this._liveRange.start.clone()}getEnd(){if(!this._liveRange)throw new l("marker-destroyed",this);return this._liveRange.end.clone()}getRange(){if(!this._liveRange)throw new l("marker-destroyed",this);return this._liveRange.toRange()}is(t){return"marker"===t||"model:marker"===t}_attachLiveRange(t){return this._liveRange&&this._detachLiveRange(),t.delegate("change:range").to(this),t.delegate("change:content").to(this),this._liveRange=t,t}_detachLiveRange(){this._liveRange.stopDelegating("change:range",this),this._liveRange.stopDelegating("change:content",this),this._liveRange.detach(),this._liveRange=null}}j(ad,k);class ld extends _c{get type(){return"noop"}clone(){return new ld(this.baseVersion)}getReversed(){return new ld(this.baseVersion+1)}_execute(){}static get className(){return"NoOperation"}}const cd={};cd[Bc.className]=Bc,cd[Pc.className]=Pc,cd[Lc.className]=Lc,cd[zc.className]=zc,cd[ld.className]=ld,cd[_c.className]=_c,cd[Oc.className]=Oc,cd[Rc.className]=Rc,cd[Vc.className]=Vc,cd[jc.className]=jc;class dd extends el{constructor(t,e,n="toNone"){if(super(t,e,n),!this.root.is("rootElement"))throw new l("model-liveposition-root-not-rootelement",t);ud.call(this)}detach(){this.stopListening()}is(t){return"livePosition"===t||"model:livePosition"===t||"position"==t||"model:position"===t}toPosition(){return new el(this.root,this.path.slice(),this.stickiness)}static fromPosition(t,e){return new this(t.root,t.path.slice(),e||t.stickiness)}}function ud(){this.listenTo(this.root.document.model,"applyOperation",((t,e)=>{const n=e[0];n.isDocumentOperation&&hd.call(this,n)}),{priority:"low"})}function hd(t){const e=this.getTransformedByOperation(t);if(!this.isEqual(e)){const t=this.toPosition();this.path=e.path,this.root=e.root,this.fire("change",t)}}j(dd,k);class md{constructor(t,e,n){this.model=t,this.writer=e,this.position=n,this.canMergeWith=new Set([this.position.parent]),this.schema=t.schema,this._documentFragment=e.createDocumentFragment(),this._documentFragmentPosition=e.createPositionAt(this._documentFragment,0),this._firstNode=null,this._lastNode=null,this._lastAutoParagraph=null,this._filterAttributesOf=[],this._affectedStart=null,this._affectedEnd=null}handleNodes(t){for(const e of Array.from(t))this._handleNode(e);this._insertPartialFragment(),this._lastAutoParagraph&&this._updateLastNodeFromAutoParagraph(this._lastAutoParagraph),this._mergeOnRight(),this.schema.removeDisallowedAttributes(this._filterAttributesOf,this.writer),this._filterAttributesOf=[]}_updateLastNodeFromAutoParagraph(t){const e=this.writer.createPositionAfter(this._lastNode),n=this.writer.createPositionAfter(t);if(n.isAfter(e)){if(this._lastNode=t,this.position.parent!=t||!this.position.isAtEnd)throw new l("insertcontent-invalid-insertion-position",this);this.position=n,this._setAffectedBoundaries(this.position)}}getSelectionRange(){return this.nodeToSelect?rl._createOn(this.nodeToSelect):this.model.schema.getNearestSelectionRange(this.position)}getAffectedRange(){return this._affectedStart?new rl(this._affectedStart,this._affectedEnd):null}destroy(){this._affectedStart&&this._affectedStart.detach(),this._affectedEnd&&this._affectedEnd.detach()}_handleNode(t){if(this.schema.isObject(t))return void this._handleObject(t);let e=this._checkAndAutoParagraphToAllowedPosition(t);e||(e=this._checkAndSplitToAllowedPosition(t),e)?(this._appendToFragment(t),this._firstNode||(this._firstNode=t),this._lastNode=t):this._handleDisallowedNode(t)}_insertPartialFragment(){if(this._documentFragment.isEmpty)return;const t=dd.fromPosition(this.position,"toNext");this._setAffectedBoundaries(this.position),this._documentFragment.getChild(0)==this._firstNode&&(this.writer.insert(this._firstNode,this.position),this._mergeOnLeft(),this.position=t.toPosition()),this._documentFragment.isEmpty||this.writer.insert(this._documentFragment,this.position),this._documentFragmentPosition=this.writer.createPositionAt(this._documentFragment,0),this.position=t.toPosition(),t.detach()}_handleObject(t){this._checkAndSplitToAllowedPosition(t)?this._appendToFragment(t):this._tryAutoparagraphing(t)}_handleDisallowedNode(t){t.is("element")?this.handleNodes(t.getChildren()):this._tryAutoparagraphing(t)}_appendToFragment(t){if(!this.schema.checkChild(this.position,t))throw new l("insertcontent-wrong-position",this,{node:t,position:this.position});this.writer.insert(t,this._documentFragmentPosition),this._documentFragmentPosition=this._documentFragmentPosition.getShiftedBy(t.offsetSize),this.schema.isObject(t)&&!this.schema.checkChild(this.position,"$text")?this.nodeToSelect=t:this.nodeToSelect=null,this._filterAttributesOf.push(t)}_setAffectedBoundaries(t){this._affectedStart||(this._affectedStart=dd.fromPosition(t,"toPrevious")),this._affectedEnd&&!this._affectedEnd.isBefore(t)||(this._affectedEnd&&this._affectedEnd.detach(),this._affectedEnd=dd.fromPosition(t,"toNext"))}_mergeOnLeft(){const t=this._firstNode;if(!(t instanceof Ja))return;if(!this._canMergeLeft(t))return;const e=dd._createBefore(t);e.stickiness="toNext";const n=dd.fromPosition(this.position,"toNext");this._affectedStart.isEqual(e)&&(this._affectedStart.detach(),this._affectedStart=dd._createAt(e.nodeBefore,"end","toPrevious")),this._firstNode===this._lastNode&&(this._firstNode=e.nodeBefore,this._lastNode=e.nodeBefore),this.writer.merge(e),e.isEqual(this._affectedEnd)&&this._firstNode===this._lastNode&&(this._affectedEnd.detach(),this._affectedEnd=dd._createAt(e.nodeBefore,"end","toNext")),this.position=n.toPosition(),n.detach(),this._filterAttributesOf.push(this.position.parent),e.detach()}_mergeOnRight(){const t=this._lastNode;if(!(t instanceof Ja))return;if(!this._canMergeRight(t))return;const e=dd._createAfter(t);if(e.stickiness="toNext",!this.position.isEqual(e))throw new l("insertcontent-invalid-insertion-position",this);this.position=el._createAt(e.nodeBefore,"end");const n=dd.fromPosition(this.position,"toPrevious");this._affectedEnd.isEqual(e)&&(this._affectedEnd.detach(),this._affectedEnd=dd._createAt(e.nodeBefore,"end","toNext")),this._firstNode===this._lastNode&&(this._firstNode=e.nodeBefore,this._lastNode=e.nodeBefore),this.writer.merge(e),e.getShiftedBy(-1).isEqual(this._affectedStart)&&this._firstNode===this._lastNode&&(this._affectedStart.detach(),this._affectedStart=dd._createAt(e.nodeBefore,0,"toPrevious")),this.position=n.toPosition(),n.detach(),this._filterAttributesOf.push(this.position.parent),e.detach()}_canMergeLeft(t){const e=t.previousSibling;return e instanceof Ja&&this.canMergeWith.has(e)&&this.model.schema.checkMerge(e,t)}_canMergeRight(t){const e=t.nextSibling;return e instanceof Ja&&this.canMergeWith.has(e)&&this.model.schema.checkMerge(t,e)}_tryAutoparagraphing(t){const e=this.writer.createElement("paragraph");this._getAllowedIn(this.position.parent,e)&&this.schema.checkChild(e,t)&&(e._appendChild(t),this._handleNode(e))}_checkAndAutoParagraphToAllowedPosition(t){if(this.schema.checkChild(this.position.parent,t))return!0;if(!this.schema.checkChild(this.position.parent,"paragraph")||!this.schema.checkChild("paragraph",t))return!1;this._insertPartialFragment();const e=this.writer.createElement("paragraph");return this.writer.insert(e,this.position),this._setAffectedBoundaries(this.position),this._lastAutoParagraph=e,this.position=this.writer.createPositionAt(e,0),!0}_checkAndSplitToAllowedPosition(t){const e=this._getAllowedIn(this.position.parent,t);if(!e)return!1;for(e!=this.position.parent&&this._insertPartialFragment();e!=this.position.parent;)if(this.position.isAtStart){const t=this.position.parent;this.position=this.writer.createPositionBefore(t),t.isEmpty&&t.parent===e&&this.writer.remove(t)}else if(this.position.isAtEnd)this.position=this.writer.createPositionAfter(this.position.parent);else{const t=this.writer.createPositionAfter(this.position.parent);this._setAffectedBoundaries(this.position),this.writer.split(this.position),this.position=t,this.canMergeWith.add(this.position.nodeAfter)}return!0}_getAllowedIn(t,e){return this.schema.checkChild(t,e)?t:this.schema.isLimit(t)?null:this._getAllowedIn(t.parent,e)}}function gd(t,e,n="auto"){const o=t.getSelectedElement();if(o&&e.schema.isObject(o)&&!e.schema.isInline(o))return["before","after"].includes(n)?e.createRange(e.createPositionAt(o,n)):e.createRangeOn(o);const i=Ba(t.getSelectedBlocks());if(!i)return e.createRange(t.focus);if(i.isEmpty)return e.createRange(e.createPositionAt(i,0));const r=e.createPositionAfter(i);return t.focus.isTouching(r)?e.createRange(r):e.createRange(e.createPositionBefore(i))}function pd(t,e,n,o,i={}){if(!t.schema.isObject(e))throw new l("insertobject-element-not-an-object",t,{object:e});let r;r=n?n.is("selection")?n:t.createSelection(n,o):t.document.selection;let s=r;i.findOptimalPosition&&t.schema.isBlock(e)&&(s=t.createSelection(gd(r,t,i.findOptimalPosition)));const a=Ba(r.getSelectedBlocks()),c={};return a&&Object.assign(c,t.schema.getAttributesWithProperty(a,"copyOnReplace",!0)),t.change((n=>{s.isCollapsed||t.deleteContent(s,{doNotAutoparagraph:!0});let o=e;const r=s.anchor.parent;!t.schema.checkChild(r,e)&&t.schema.checkChild(r,"paragraph")&&t.schema.checkChild("paragraph",e)&&(o=n.createElement("paragraph"),n.insert(e,o)),t.schema.setAllowedAttributes(o,c,n);const a=t.insertContent(o,s);return a.isCollapsed||i.setSelection&&function(t,e,n,o){const i=t.model;if("after"==n){let n=e.nextSibling;!(n&&i.schema.checkChild(n,"$text"))&&i.schema.checkChild(e.parent,"paragraph")&&(n=t.createElement("paragraph"),i.schema.setAllowedAttributes(n,o,t),i.insertContent(n,t.createPositionAfter(e))),n&&t.setSelection(n,0)}else{if("on"!=n)throw new l("insertobject-invalid-place-parameter-value",i);t.setSelection(e,"on")}}(n,e,i.setSelection,c),a}))}function fd(t,e,n={}){if(e.isCollapsed)return;const o=e.getFirstRange();if("$graveyard"==o.root.rootName)return;const i=t.schema;t.change((t=>{if(!n.doNotResetEntireContent&&function(t,e){const n=t.getLimitElement(e);if(!e.containsEntireContent(n))return!1;const o=e.getFirstRange();if(o.start.parent==o.end.parent)return!1;return t.checkChild(n,"paragraph")}(i,e))return void function(t,e){const n=t.model.schema.getLimitElement(e);t.remove(t.createRangeIn(n)),Ad(t,t.createPositionAt(n,0),e)}(t,e);const r={};if(!n.doNotAutoparagraph){const t=e.getSelectedElement();t&&Object.assign(r,i.getAttributesWithProperty(t,"copyOnReplace",!0))}const[s,a]=function(t){const e=t.root.document.model,n=t.start;let o=t.end;if(e.hasContent(t,{ignoreMarkers:!0})){const n=function(t){const e=t.parent,n=e.root.document.model.schema,o=e.getAncestors({parentFirst:!0,includeSelf:!0});for(const t of o){if(n.isLimit(t))return null;if(n.isBlock(t))return t}}(o);if(n&&o.isTouching(e.createPositionAt(n,0))){const n=e.createSelection(t);e.modifySelection(n,{direction:"backward"});const i=n.getLastPosition(),r=e.createRange(i,o);e.hasContent(r,{ignoreMarkers:!0})||(o=i)}}return[dd.fromPosition(n,"toPrevious"),dd.fromPosition(o,"toNext")]}(o);s.isTouching(a)||t.remove(t.createRange(s,a)),n.leaveUnmerged||(!function(t,e,n){const o=t.model;if(!wd(t.model.schema,e,n))return;const[i,r]=function(t,e){const n=t.getAncestors(),o=e.getAncestors();let i=0;for(;n[i]&&n[i]==o[i];)i++;return[n[i],o[i]]}(e,n);if(!i||!r)return;!o.hasContent(i,{ignoreMarkers:!0})&&o.hasContent(r,{ignoreMarkers:!0})?kd(t,e,n,i.parent):bd(t,e,n,i.parent)}(t,s,a),i.removeDisallowedAttributes(s.parent.getChildren(),t)),Cd(t,e,s),!n.doNotAutoparagraph&&function(t,e){const n=t.checkChild(e,"$text"),o=t.checkChild(e,"paragraph");return!n&&o}(i,s)&&Ad(t,s,e,r),s.detach(),a.detach()}))}function bd(t,e,n,o){const i=e.parent,r=n.parent;if(i!=o&&r!=o){for(e=t.createPositionAfter(i),(n=t.createPositionBefore(r)).isEqual(e)||t.insert(r,e),t.merge(e);n.parent.isEmpty;){const e=n.parent;n=t.createPositionBefore(e),t.remove(e)}wd(t.model.schema,e,n)&&bd(t,e,n,o)}}function kd(t,e,n,o){const i=e.parent,r=n.parent;if(i!=o&&r!=o){for(e=t.createPositionAfter(i),(n=t.createPositionBefore(r)).isEqual(e)||t.insert(i,n);e.parent.isEmpty;){const n=e.parent;e=t.createPositionBefore(n),t.remove(n)}n=t.createPositionBefore(r),function(t,e){const n=e.nodeBefore,o=e.nodeAfter;n.name!=o.name&&t.rename(n,o.name);t.clearAttributes(n),t.setAttributes(Object.fromEntries(o.getAttributes()),n),t.merge(e)}(t,n),wd(t.model.schema,e,n)&&kd(t,e,n,o)}}function wd(t,e,n){const o=e.parent,i=n.parent;return o!=i&&(!t.isLimit(o)&&!t.isLimit(i)&&function(t,e,n){const o=new rl(t,e);for(const t of o.getWalker())if(n.isLimit(t.item))return!1;return!0}(e,n,t))}function Ad(t,e,n,o={}){const i=t.createElement("paragraph");t.model.schema.setAllowedAttributes(i,o,t),t.insert(i,e),Cd(t,n,t.createPositionAt(i,0))}function Cd(t,e,n){e instanceof Cl?t.setSelection(n):e.setTo(n)}const _d=' ,.?!:;"-()';function vd(t,e){const{isForward:n,walker:o,unit:i,schema:r,treatEmojiAsSingleUnit:s}=t,{type:a,item:l,nextPosition:c}=e;if("text"==a)return"word"===t.unit?function(t,e){let n=t.position.textNode;if(n){let o=t.position.offset-n.startOffset;for(;!xd(n.data,o,e)&&!Ed(n,o,e);){t.next();const i=e?t.position.nodeAfter:t.position.nodeBefore;if(i&&i.is("$text")){const o=i.data.charAt(e?0:i.data.length-1);_d.includes(o)||(t.next(),n=t.position.textNode)}o=t.position.offset-n.startOffset}}return t.position}(o,n):function(t,e,n){const o=t.position.textNode;if(o){const i=o.data;let r=t.position.offset-o.startOffset;for(;Xc(i,r)||"character"==e&&td(i,r)||n&&nd(i,r);)t.next(),r=t.position.offset-o.startOffset}return t.position}(o,i,s);if(a==(n?"elementStart":"elementEnd")){if(r.isSelectable(l))return el._createAt(l,n?"after":"before");if(r.checkChild(c,"$text"))return c}else{if(r.isLimit(l))return void o.skip((()=>!0));if(r.checkChild(c,"$text"))return c}}function yd(t,e){const n=t.root,o=el._createAt(n,e?"end":0);return e?new rl(t,o):new rl(o,t)}function xd(t,e,n){const o=e+(n?0:-1);return _d.includes(t.charAt(o))}function Ed(t,e,n){return e===(n?t.endOffset:0)}function Dd(t,e){const n=[];Array.from(t.getItems({direction:"backward"})).map((t=>e.createRangeOn(t))).filter((e=>(e.start.isAfter(t.start)||e.start.isEqual(t.start))&&(e.end.isBefore(t.end)||e.end.isEqual(t.end)))).forEach((t=>{n.push(t.start.parent),e.remove(t)})),n.forEach((t=>{let n=t;for(;n.parent&&n.isEmpty;){const t=e.createRangeOn(n);n=n.parent,e.remove(t)}}))}function Sd(t){t.document.registerPostFixer((e=>function(t,e){const n=e.document.selection,o=e.schema,i=[];let r=!1;for(const t of n.getRanges()){const e=Id(t,o);e&&!e.isEqual(t)?(i.push(e),r=!0):i.push(t)}r&&t.setSelection(function(t){const e=[...t],n=new Set;let o=1;for(;o!n.has(e)))}(i),{backward:n.isBackward})}(e,t)))}function Id(t,e){return t.isCollapsed?function(t,e){const n=t.start,o=e.getNearestSelectionRange(n);if(!o){const t=n.getAncestors().reverse().find((t=>e.isObject(t)));return t?rl._createOn(t):null}if(!o.isCollapsed)return o;const i=o.start;if(n.isEqual(i))return null;return new rl(i)}(t,e):function(t,e){const{start:n,end:o}=t,i=e.checkChild(n,"$text"),r=e.checkChild(o,"$text"),s=e.getLimitElement(n),a=e.getLimitElement(o);if(s===a){if(i&&r)return null;if(function(t,e,n){const o=t.nodeAfter&&!n.isLimit(t.nodeAfter)||n.checkChild(t,"$text"),i=e.nodeBefore&&!n.isLimit(e.nodeBefore)||n.checkChild(e,"$text");return o||i}(n,o,e)){const t=n.nodeAfter&&e.isSelectable(n.nodeAfter)?null:e.getNearestSelectionRange(n,"forward"),i=o.nodeBefore&&e.isSelectable(o.nodeBefore)?null:e.getNearestSelectionRange(o,"backward"),r=t?t.start:n,s=i?i.end:o;return new rl(r,s)}}const l=s&&!s.is("rootElement"),c=a&&!a.is("rootElement");if(l||c){const t=n.nodeAfter&&o.nodeBefore&&n.nodeAfter.parent===o.nodeBefore.parent,i=l&&(!t||!Md(n.nodeAfter,e)),r=c&&(!t||!Md(o.nodeBefore,e));let d=n,u=o;return i&&(d=el._createBefore(Td(s,e))),r&&(u=el._createAfter(Td(a,e))),new rl(d,u)}return null}(t,e)}function Td(t,e){let n=t,o=n;for(;e.isLimit(o)&&o.parent;)n=o,o=o.parent;return n}function Md(t,e){return t&&e.isSelectable(t)}class Bd{constructor(){this.markers=new sd,this.document=new id(this),this.schema=new Xl,this._pendingChanges=[],this._currentWriter=null,["insertContent","insertObject","deleteContent","modifySelection","getSelectedContent","applyOperation"].forEach((t=>this.decorate(t))),this.on("applyOperation",((t,e)=>{e[0]._validate()}),{priority:"highest"}),this.schema.register("$root",{isLimit:!0}),this.schema.register("$container",{allowIn:["$root","$container"]}),this.schema.register("$block",{allowIn:["$root","$container"],isBlock:!0}),this.schema.register("$blockObject",{allowWhere:"$block",isBlock:!0,isObject:!0}),this.schema.register("$inlineObject",{allowWhere:"$text",allowAttributesOf:"$text",isInline:!0,isObject:!0}),this.schema.register("$text",{allowIn:"$block",isInline:!0,isContent:!0}),this.schema.register("$clipboardHolder",{allowContentOf:"$root",allowChildren:"$text",isLimit:!0}),this.schema.register("$documentFragment",{allowContentOf:"$root",allowChildren:"$text",isLimit:!0}),this.schema.register("$marker"),this.schema.addChildCheck(((t,e)=>{if("$marker"===e.name)return!0})),Sd(this),this.document.registerPostFixer(jl)}change(t){try{return 0===this._pendingChanges.length?(this._pendingChanges.push({batch:new Cc,callback:t}),this._runPendingChanges()[0]):t(this._currentWriter)}catch(t){l.rethrowUnexpectedError(t,this)}}enqueueChange(t,e){try{t?"function"==typeof t?(e=t,t=new Cc):t instanceof Cc||(t=new Cc(t)):t=new Cc,this._pendingChanges.push({batch:t,callback:e}),1==this._pendingChanges.length&&this._runPendingChanges()}catch(t){l.rethrowUnexpectedError(t,this)}}applyOperation(t){t._execute()}insertContent(t,e,n){return function(t,e,n,o){return t.change((i=>{let r;r=n?n instanceof hl||n instanceof Cl?n:i.createSelection(n,o):t.document.selection,r.isCollapsed||t.deleteContent(r,{doNotAutoparagraph:!0});const s=new md(t,i,r.anchor);let a;a=e.is("documentFragment")?e.getChildren():[e],s.handleNodes(a);const l=s.getSelectionRange();l&&(r instanceof Cl?i.setSelection(l):r.setTo(l));const c=s.getAffectedRange()||t.createRange(r.anchor);return s.destroy(),c}))}(this,t,e,n)}insertObject(t,e,n,o){return pd(this,t,e,n,o)}deleteContent(t,e){fd(this,t,e)}modifySelection(t,e){!function(t,e,n={}){const o=t.schema,i="backward"!=n.direction,r=n.unit?n.unit:"character",s=!!n.treatEmojiAsSingleUnit,a=e.focus,l=new Xa({boundaries:yd(a,i),singleCharacters:!0,direction:i?"forward":"backward"}),c={walker:l,schema:o,isForward:i,unit:r,treatEmojiAsSingleUnit:s};let d;for(;d=l.next();){if(d.done)return;const n=vd(c,d.value);if(n)return void(e instanceof Cl?t.change((t=>{t.setSelectionFocus(n)})):e.setFocus(n))}}(this,t,e)}getSelectedContent(t){return function(t,e){return t.change((t=>{const n=t.createDocumentFragment(),o=e.getFirstRange();if(!o||o.isCollapsed)return n;const i=o.start.root,r=o.start.getCommonPath(o.end),s=i.getNodeByPath(r);let a;a=o.start.parent==o.end.parent?o:t.createRange(t.createPositionAt(s,o.start.path[r.length]),t.createPositionAt(s,o.end.path[r.length]+1));const l=a.end.offset-a.start.offset;for(const e of a.getItems({shallow:!0}))e.is("$textProxy")?t.appendText(e.data,e.getAttributes(),n):t.append(t.cloneElement(e,!0),n);if(a!=o){const e=o._getTransformedByMove(a.start,t.createPositionAt(n,0),l)[0],i=t.createRange(t.createPositionAt(n,0),e.start);Dd(t.createRange(e.end,t.createPositionAt(n,"end")),t),Dd(i,t)}return n}))}(this,t)}hasContent(t,e={}){const n=t instanceof Ja?rl._createIn(t):t;if(n.isCollapsed)return!1;const{ignoreWhitespaces:o=!1,ignoreMarkers:i=!1}=e;if(!i)for(const t of this.markers.getMarkersIntersectingRange(n))if(t.affectsData)return!0;for(const t of n.getItems())if(this.schema.isContent(t)){if(!t.is("$textProxy"))return!0;if(!o)return!0;if(-1!==t.data.search(/\S/))return!0}return!1}createPositionFromPath(t,e,n){return new el(t,e,n)}createPositionAt(t,e){return el._createAt(t,e)}createPositionAfter(t){return el._createAfter(t)}createPositionBefore(t){return el._createBefore(t)}createRange(t,e){return new rl(t,e)}createRangeIn(t){return rl._createIn(t)}createRangeOn(t){return rl._createOn(t)}createSelection(t,e,n){return new hl(t,e,n)}createBatch(t){return new Cc(t)}createOperationFromJSON(t){return class{static fromJSON(t,e){return cd[t.__className].fromJSON(t,e)}}.fromJSON(t,this.document)}destroy(){this.document.destroy(),this.stopListening()}_runPendingChanges(){const t=[];for(this.fire("_beforeChanges");this._pendingChanges.length;){const e=this._pendingChanges[0].batch;this._currentWriter=new Hc(this,e);const n=this._pendingChanges[0].callback(this._currentWriter);t.push(n),this.document._handleChangeBlock(this._currentWriter),this._pendingChanges.shift(),this._currentWriter=null}return this.fire("_afterChanges"),t}}j(Bd,N);class Nd extends Pa{constructor(t){super(),this.editor=t}set(t,e,n={}){if("string"==typeof e){const t=e;e=(e,n)=>{this.editor.execute(t),n()}}super.set(t,e,n)}}class zd{constructor(t={}){const e=t.language||this.constructor.defaultConfig&&this.constructor.defaultConfig.language;this._context=t.context||new yo({language:e}),this._context._addEditor(this,!t.context);const n=Array.from(this.constructor.builtinPlugins||[]);this.config=new ho(t,this.constructor.defaultConfig),this.config.define("plugins",n),this.config.define(this._context._getEditorConfig()),this.plugins=new ko(this,n,this._context.plugins),this.locale=this._context.locale,this.t=this.locale.t,this._readOnlyLocks=new Set,this.commands=new $l,this.set("state","initializing"),this.once("ready",(()=>this.state="ready"),{priority:"high"}),this.once("destroy",(()=>this.state="destroyed"),{priority:"high"}),this.model=new Bd;const o=new Si;this.data=new bc(this.model,o),this.editing=new Kl(this.model,o),this.editing.view.document.bind("isReadOnly").to(this),this.conversion=new kc([this.editing.downcastDispatcher,this.data.downcastDispatcher],this.data.upcastDispatcher),this.conversion.addAlias("dataDowncast",this.data.downcastDispatcher),this.conversion.addAlias("editingDowncast",this.editing.downcastDispatcher),this.keystrokes=new Nd(this),this.keystrokes.listenTo(this.editing.view.document)}get isReadOnly(){return this._readOnlyLocks.size>0}set isReadOnly(t){throw new l("editor-isreadonly-has-no-setter")}enableReadOnlyMode(t){if("string"!=typeof t&&"symbol"!=typeof t)throw new l("editor-read-only-lock-id-invalid",null,{lockId:t});this._readOnlyLocks.has(t)||(this._readOnlyLocks.add(t),1===this._readOnlyLocks.size&&this.fire("change:isReadOnly","isReadOnly",!0,!1))}disableReadOnlyMode(t){if("string"!=typeof t&&"symbol"!=typeof t)throw new l("editor-read-only-lock-id-invalid",null,{lockId:t});this._readOnlyLocks.has(t)&&(this._readOnlyLocks.delete(t),0===this._readOnlyLocks.size&&this.fire("change:isReadOnly","isReadOnly",!1,!0))}initPlugins(){const t=this.config,e=t.get("plugins"),n=t.get("removePlugins")||[],o=t.get("extraPlugins")||[],i=t.get("substitutePlugins")||[];return this.plugins.init(e.concat(o),n,i)}destroy(){let t=Promise.resolve();return"initializing"==this.state&&(t=new Promise((t=>this.once("ready",t)))),t.then((()=>{this.fire("destroy"),this.stopListening(),this.commands.destroy()})).then((()=>this.plugins.destroy())).then((()=>{this.model.destroy(),this.data.destroy(),this.editing.destroy(),this.keystrokes.destroy()})).then((()=>this._context._removeEditor(this)))}execute(...t){try{return this.commands.execute(...t)}catch(t){l.rethrowUnexpectedError(t,this)}}focus(){this.editing.view.focus()}}j(zd,N);class Pd{constructor(t){this.editor=t,this._components=new Map}*names(){for(const t of this._components.values())yield t.originalName}add(t,e){this._components.set(Ld(t),{callback:e,originalName:t})}create(t){if(!this.has(t))throw new l("componentfactory-item-missing",this,{name:t});return this._components.get(Ld(t)).callback(this.editor.locale)}has(t){return this._components.has(Ld(t))}}function Ld(t){return String(t).toLowerCase()}class Od{constructor(t){this.editor=t,this.componentFactory=new Pd(t),this.focusTracker=new za,this.set("viewportOffset",this._readViewportOffsetFromConfig()),this._editableElementsMap=new Map,this.listenTo(t.editing.view.document,"layoutChanged",(()=>this.update()))}get element(){return null}update(){this.fire("update")}destroy(){this.stopListening(),this.focusTracker.destroy();for(const t of this._editableElementsMap.values())t.ckeditorInstance=null;this._editableElementsMap=new Map}setEditableElement(t,e){this._editableElementsMap.set(t,e),e.ckeditorInstance||(e.ckeditorInstance=this.editor)}getEditableElement(t="main"){return this._editableElementsMap.get(t)}getEditableElementsNames(){return this._editableElementsMap.keys()}get _editableElements(){return console.warn("editor-ui-deprecated-editable-elements: The EditorUI#_editableElements property has been deprecated and will be removed in the near future.",{editorUI:this}),this._editableElementsMap}_readViewportOffsetFromConfig(){const t=this.editor,e=t.config.get("ui.viewportOffset");if(e)return e;const n=t.config.get("toolbar.viewportTopOffset");return n?(console.warn("editor-ui-deprecated-viewport-offset-config: The `toolbar.vieportTopOffset` configuration option is deprecated. It will be removed from future CKEditor versions. Use `ui.viewportOffset.top` instead."),{top:n}):{top:0}}}j(Od,N);const Rd={setData(t){this.data.set(t)},getData(t){return this.data.get(t)}},jd=Rd;function Vd(t,e){t instanceof HTMLTextAreaElement&&(t.value=e),t.innerHTML=e}const Fd={updateSourceElement(t=this.data.get()){if(!this.sourceElement)throw new l("editor-missing-sourceelement",this);const e=this.config.get("updateSourceElementOnDestroy"),n=this.sourceElement instanceof HTMLTextAreaElement;Vd(this.sourceElement,e||n?t:"")}};class Hd extends xo{static get pluginName(){return"PendingActions"}init(){this.set("hasAny",!1),this._actions=new bo({idProperty:"_id"}),this._actions.delegate("add","remove").to(this)}add(t){if("string"!=typeof t)throw new l("pendingactions-add-invalid-message",this);const e=Object.create(N);return e.set("message",t),this._actions.add(e),this.hasAny=!0,e}remove(t){this._actions.remove(t),this.hasAny=!!this._actions.length}get first(){return this._actions.get(0)}[Symbol.iterator](){return this._actions[Symbol.iterator]()}}const Ud='',qd='',Gd={cancel:'',caption:'',check:'',cog:'',eraser:'',lowVision:'',image:Ud,alignBottom:'',alignMiddle:'',alignTop:'',alignLeft:'',alignCenter:'',alignRight:'',alignJustify:'',objectLeft:'',objectCenter:'',objectRight:'',objectFullWidth:'',objectInline:'',objectBlockLeft:'',objectBlockRight:'',objectSizeFull:'',objectSizeLarge:'',objectSizeSmall:'',objectSizeMedium:'',pencil:'',pilcrow:'',quote:'',threeVerticalDots:qd};function Wd({emitter:t,activator:e,callback:n,contextElements:o}){t.listenTo(document,"mousedown",((t,i)=>{if(!e())return;const r="function"==typeof i.composedPath?i.composedPath():[];for(const t of o)if(t.contains(i.target)||r.includes(t))return;n()}))}function Zd(t){t.set("_isCssTransitionsDisabled",!1),t.disableCssTransitions=()=>{t._isCssTransitionsDisabled=!0},t.enableCssTransitions=()=>{t._isCssTransitionsDisabled=!1},t.extendTemplate({attributes:{class:[t.bindTemplate.if("_isCssTransitionsDisabled","ck-transitions-disabled")]}})}function Yd({view:t}){t.listenTo(t.element,"submit",((e,n)=>{n.preventDefault(),t.fire("submit")}),{useCapture:!0})}class Kd extends bo{constructor(t=[]){super(t,{idProperty:"viewUid"}),this.on("add",((t,e,n)=>{this._renderViewIntoCollectionParent(e,n)})),this.on("remove",((t,e)=>{e.element&&this._parentElement&&e.element.remove()})),this._parentElement=null}destroy(){this.map((t=>t.destroy()))}setParent(t){this._parentElement=t;for(const t of this)this._renderViewIntoCollectionParent(t)}delegate(...t){if(!t.length||!t.every((t=>"string"==typeof t)))throw new l("ui-viewcollection-delegate-wrong-events",this);return{to:e=>{for(const n of this)for(const o of t)n.delegate(o).to(e);this.on("add",((n,o)=>{for(const n of t)o.delegate(n).to(e)})),this.on("remove",((n,o)=>{for(const n of t)o.stopDelegating(n,e)}))}}}_renderViewIntoCollectionParent(t,e){t.isRendered||t.render(),t.element&&this._parentElement&&this._parentElement.insertBefore(t.element,this._parentElement.children[e])}}var $d=n(6150),Qd={attributes:{"data-cke":!0}};Qd.setAttributes=is(),Qd.insert=ns().bind(null,"head"),Qd.domAPI=ts(),Qd.insertStyleElement=ss();Jr()($d.Z,Qd);$d.Z&&$d.Z.locals&&$d.Z.locals;class Jd{constructor(t){this.element=null,this.isRendered=!1,this.locale=t,this.t=t&&t.t,this._viewCollections=new bo,this._unboundChildren=this.createCollection(),this._viewCollections.on("add",((e,n)=>{n.locale=t})),this.decorate("render")}get bindTemplate(){return this._bindTemplate?this._bindTemplate:this._bindTemplate=Xd.bind(this,this)}createCollection(t){const e=new Kd(t);return this._viewCollections.add(e),e}registerChild(t){po(t)||(t=[t]);for(const e of t)this._unboundChildren.add(e)}deregisterChild(t){po(t)||(t=[t]);for(const e of t)this._unboundChildren.remove(e)}setTemplate(t){this.template=new Xd(t)}extendTemplate(t){Xd.extend(this.template,t)}render(){if(this.isRendered)throw new l("ui-view-render-already-rendered",this);this.template&&(this.element=this.template.render(),this.registerChild(this.template.getViews())),this.isRendered=!0}destroy(){this.stopListening(),this._viewCollections.map((t=>t.destroy())),this.template&&this.template._revertData&&this.template.revert(this.element)}}j(Jd,Ss),j(Jd,N);class Xd{constructor(t){Object.assign(this,cu(lu(t))),this._isRendered=!1,this._revertData=null}render(){const t=this._renderNode({intoFragment:!0});return this._isRendered=!0,t}apply(t){return this._revertData={children:[],bindings:[],attributes:{}},this._renderNode({node:t,isApplying:!0,revertData:this._revertData}),t}revert(t){if(!this._revertData)throw new l("ui-template-revert-not-applied",[this,t]);this._revertTemplateFromNode(t,this._revertData)}*getViews(){yield*function*t(e){if(e.children)for(const n of e.children)pu(n)?yield n:fu(n)&&(yield*t(n))}(this)}static bind(t,e){return{to:(n,o)=>new eu({eventNameOrFunction:n,attribute:n,observable:t,emitter:e,callback:o}),if:(n,o,i)=>new nu({observable:t,emitter:e,attribute:n,valueIfTrue:o,callback:i})}}static extend(t,e){if(t._isRendered)throw new l("template-extend-render",[this,t]);mu(t,cu(lu(e)))}_renderNode(t){let e;if(e=t.node?this.tag&&this.text:this.tag?this.text:!this.text,e)throw new l("ui-template-wrong-syntax",this);return this.text?this._renderText(t):this._renderElement(t)}_renderElement(t){let e=t.node;return e||(e=t.node=document.createElementNS(this.ns||"http://www.w3.org/1999/xhtml",this.tag)),this._renderAttributes(t),this._renderElementChildren(t),this._setUpListeners(t),e}_renderText(t){let e=t.node;return e?t.revertData.text=e.textContent:e=t.node=document.createTextNode(""),ou(this.text)?this._bindToObservable({schema:this.text,updater:ru(e),data:t}):e.textContent=this.text.join(""),e}_renderAttributes(t){let e,n,o,i;if(!this.attributes)return;const r=t.node,s=t.revertData;for(e in this.attributes)if(o=r.getAttribute(e),n=this.attributes[e],s&&(s.attributes[e]=o),i=E(n[0])&&n[0].ns?n[0].ns:null,ou(n)){const a=i?n[0].value:n;s&&ku(e)&&a.unshift(o),this._bindToObservable({schema:a,updater:su(r,e,i),data:t})}else"style"==e&&"string"!=typeof n[0]?this._renderStyleAttribute(n[0],t):(s&&o&&ku(e)&&n.unshift(o),n=n.map((t=>t&&t.value||t)).reduce(((t,e)=>t.concat(e)),[]).reduce(uu,""),gu(n)||r.setAttributeNS(i,e,n))}_renderStyleAttribute(t,e){const n=e.node;for(const o in t){const i=t[o];ou(i)?this._bindToObservable({schema:[i],updater:au(n,o),data:e}):n.style[o]=i}}_renderElementChildren(t){const e=t.node,n=t.intoFragment?document.createDocumentFragment():e,o=t.isApplying;let i=0;for(const r of this.children)if(bu(r)){if(!o){r.setParent(e);for(const t of r)n.appendChild(t.element)}}else if(pu(r))o||(r.isRendered||r.render(),n.appendChild(r.element));else if($r(r))n.appendChild(r);else if(o){const e={children:[],bindings:[],attributes:{}};t.revertData.children.push(e),r._renderNode({node:n.childNodes[i++],isApplying:!0,revertData:e})}else n.appendChild(r.render());t.intoFragment&&e.appendChild(n)}_setUpListeners(t){if(this.eventListeners)for(const e in this.eventListeners){const n=this.eventListeners[e].map((n=>{const[o,i]=e.split("@");return n.activateDomEventListener(o,i,t)}));t.revertData&&t.revertData.bindings.push(n)}}_bindToObservable({schema:t,updater:e,data:n}){const o=n.revertData;iu(t,e,n);const i=t.filter((t=>!gu(t))).filter((t=>t.observable)).map((o=>o.activateAttributeListener(t,e,n)));o&&o.bindings.push(i)}_revertTemplateFromNode(t,e){for(const t of e.bindings)for(const e of t)e();if(e.text)t.textContent=e.text;else{for(const n in e.attributes){const o=e.attributes[n];null===o?t.removeAttribute(n):t.setAttribute(n,o)}for(let n=0;niu(t,e,n);return this.emitter.listenTo(this.observable,"change:"+this.attribute,o),()=>{this.emitter.stopListening(this.observable,"change:"+this.attribute,o)}}}class eu extends tu{activateDomEventListener(t,e,n){const o=(t,n)=>{e&&!n.target.matches(e)||("function"==typeof this.eventNameOrFunction?this.eventNameOrFunction(n):this.observable.fire(this.eventNameOrFunction,n))};return this.emitter.listenTo(n.node,t,o),()=>{this.emitter.stopListening(n.node,t,o)}}}class nu extends tu{getValue(t){return!gu(super.getValue(t))&&(this.valueIfTrue||!0)}}function ou(t){return!!t&&(t.value&&(t=t.value),Array.isArray(t)?t.some(ou):t instanceof tu)}function iu(t,e,{node:n}){let o=function(t,e){return t.map((t=>t instanceof tu?t.getValue(e):t))}(t,n);o=1==t.length&&t[0]instanceof nu?o[0]:o.reduce(uu,""),gu(o)?e.remove():e.set(o)}function ru(t){return{set(e){t.textContent=e},remove(){t.textContent=""}}}function su(t,e,n){return{set(o){t.setAttributeNS(n,e,o)},remove(){t.removeAttributeNS(n,e)}}}function au(t,e){return{set(n){t.style[e]=n},remove(){t.style[e]=null}}}function lu(t){return co(t,(t=>{if(t&&(t instanceof tu||fu(t)||pu(t)||bu(t)))return t}))}function cu(t){if("string"==typeof t?t=function(t){return{text:[t]}}(t):t.text&&function(t){t.text=wo(t.text)}(t),t.on&&(t.eventListeners=function(t){for(const e in t)du(t,e);return t}(t.on),delete t.on),!t.text){t.attributes&&function(t){for(const e in t)t[e].value&&(t[e].value=wo(t[e].value)),du(t,e)}(t.attributes);const e=[];if(t.children)if(bu(t.children))e.push(t.children);else for(const n of t.children)fu(n)||pu(n)||$r(n)?e.push(n):e.push(new Xd(n));t.children=e}return t}function du(t,e){t[e]=wo(t[e])}function uu(t,e){return gu(e)?t:gu(t)?e:`${t} ${e}`}function hu(t,e){for(const n in e)t[n]?t[n].push(...e[n]):t[n]=e[n]}function mu(t,e){if(e.attributes&&(t.attributes||(t.attributes={}),hu(t.attributes,e.attributes)),e.eventListeners&&(t.eventListeners||(t.eventListeners={}),hu(t.eventListeners,e.eventListeners)),e.text&&t.text.push(...e.text),e.children&&e.children.length){if(t.children.length!=e.children.length)throw new l("ui-template-extend-children-mismatch",t);let n=0;for(const o of e.children)mu(t.children[n++],o)}}function gu(t){return!t&&0!==t}function pu(t){return t instanceof Jd}function fu(t){return t instanceof Xd}function bu(t){return t instanceof Kd}function ku(t){return"class"==t||"style"==t}class wu extends Kd{constructor(t,e=[]){super(e),this.locale=t}attachToDom(){this._bodyCollectionContainer=new Xd({tag:"div",attributes:{class:["ck","ck-reset_all","ck-body","ck-rounded-corners"],dir:this.locale.uiLanguageDirection},children:this}).render();let t=document.querySelector(".ck-body-wrapper");t||(t=va(document,"div",{class:"ck-body-wrapper"}),document.body.appendChild(t)),t.appendChild(this._bodyCollectionContainer)}detachFromDom(){super.destroy(),this._bodyCollectionContainer&&this._bodyCollectionContainer.remove();const t=document.querySelector(".ck-body-wrapper");t&&0==t.childElementCount&&t.remove()}}var Au=n(1174),Cu={attributes:{"data-cke":!0}};Cu.setAttributes=is(),Cu.insert=ns().bind(null,"head"),Cu.domAPI=ts(),Cu.insertStyleElement=ss();Jr()(Au.Z,Cu);Au.Z&&Au.Z.locals&&Au.Z.locals;class _u extends Jd{constructor(){super();const t=this.bindTemplate;this.set("content",""),this.set("viewBox","0 0 20 20"),this.set("fillColor",""),this.setTemplate({tag:"svg",ns:"http://www.w3.org/2000/svg",attributes:{class:["ck","ck-icon"],viewBox:t.to("viewBox")}})}render(){super.render(),this._updateXMLContent(),this._colorFillPaths(),this.on("change:content",(()=>{this._updateXMLContent(),this._colorFillPaths()})),this.on("change:fillColor",(()=>{this._colorFillPaths()}))}_updateXMLContent(){if(this.content){const t=(new DOMParser).parseFromString(this.content.trim(),"image/svg+xml").querySelector("svg"),e=t.getAttribute("viewBox");for(e&&(this.viewBox=e),this.element.innerHTML="";t.childNodes.length>0;)this.element.appendChild(t.childNodes[0])}}_colorFillPaths(){this.fillColor&&this.element.querySelectorAll(".ck-icon__fill").forEach((t=>{t.style.fill=this.fillColor}))}}var vu=n(9948),yu={attributes:{"data-cke":!0}};yu.setAttributes=is(),yu.insert=ns().bind(null,"head"),yu.domAPI=ts(),yu.insertStyleElement=ss();Jr()(vu.Z,yu);vu.Z&&vu.Z.locals&&vu.Z.locals;class xu extends Jd{constructor(t){super(t),this.set("text",""),this.set("position","s");const e=this.bindTemplate;this.setTemplate({tag:"span",attributes:{class:["ck","ck-tooltip",e.to("position",(t=>"ck-tooltip_"+t)),e.if("text","ck-hidden",(t=>!t.trim()))]},children:[{tag:"span",attributes:{class:["ck","ck-tooltip__text"]},children:[{text:e.to("text")}]}]})}}var Eu=n(4499),Du={attributes:{"data-cke":!0}};Du.setAttributes=is(),Du.insert=ns().bind(null,"head"),Du.domAPI=ts(),Du.insertStyleElement=ss();Jr()(Eu.Z,Du);Eu.Z&&Eu.Z.locals&&Eu.Z.locals;class Su extends Jd{constructor(t){super(t);const e=this.bindTemplate,n=r();this.set("class"),this.set("labelStyle"),this.set("icon"),this.set("isEnabled",!0),this.set("isOn",!1),this.set("isVisible",!0),this.set("isToggleable",!1),this.set("keystroke"),this.set("label"),this.set("tabindex",-1),this.set("tooltip"),this.set("tooltipPosition","s"),this.set("type","button"),this.set("withText",!1),this.set("withKeystroke",!1),this.children=this.createCollection(),this.tooltipView=this._createTooltipView(),this.labelView=this._createLabelView(n),this.iconView=new _u,this.iconView.extendTemplate({attributes:{class:"ck-button__icon"}}),this.keystrokeView=this._createKeystrokeView(),this.bind("_tooltipString").to(this,"tooltip",this,"label",this,"keystroke",this._getTooltipString.bind(this));const o={tag:"button",attributes:{class:["ck","ck-button",e.to("class"),e.if("isEnabled","ck-disabled",(t=>!t)),e.if("isVisible","ck-hidden",(t=>!t)),e.to("isOn",(t=>t?"ck-on":"ck-off")),e.if("withText","ck-button_with-text"),e.if("withKeystroke","ck-button_with-keystroke")],type:e.to("type",(t=>t||"button")),tabindex:e.to("tabindex"),"aria-labelledby":`ck-editor__aria-label_${n}`,"aria-disabled":e.if("isEnabled",!0,(t=>!t)),"aria-pressed":e.to("isOn",(t=>!!this.isToggleable&&String(!!t)))},children:this.children,on:{click:e.to((t=>{this.isEnabled?this.fire("execute"):t.preventDefault()}))}};ar.isSafari&&(o.on.mousedown=e.to((t=>{this.focus(),t.preventDefault()}))),this.setTemplate(o)}render(){super.render(),this.icon&&(this.iconView.bind("content").to(this,"icon"),this.children.add(this.iconView)),this.children.add(this.tooltipView),this.children.add(this.labelView),this.withKeystroke&&this.keystroke&&this.children.add(this.keystrokeView)}focus(){this.element.focus()}_createTooltipView(){const t=new xu;return t.bind("text").to(this,"_tooltipString"),t.bind("position").to(this,"tooltipPosition"),t}_createLabelView(t){const e=new Jd,n=this.bindTemplate;return e.setTemplate({tag:"span",attributes:{class:["ck","ck-button__label"],style:n.to("labelStyle"),id:`ck-editor__aria-label_${t}`},children:[{text:this.bindTemplate.to("label")}]}),e}_createKeystrokeView(){const t=new Jd;return t.setTemplate({tag:"span",attributes:{class:["ck","ck-button__keystroke"]},children:[{text:this.bindTemplate.to("keystroke",(t=>pr(t)))}]}),t}_getTooltipString(t,e,n){return t?"string"==typeof t?t:(n&&(n=pr(n)),t instanceof Function?t(e,n):`${e}${n?` (${n})`:""}`):""}}var Iu=n(9681),Tu={attributes:{"data-cke":!0}};Tu.setAttributes=is(),Tu.insert=ns().bind(null,"head"),Tu.domAPI=ts(),Tu.insertStyleElement=ss();Jr()(Iu.Z,Tu);Iu.Z&&Iu.Z.locals&&Iu.Z.locals;class Mu extends Su{constructor(t){super(t),this.isToggleable=!0,this.toggleSwitchView=this._createToggleView(),this.extendTemplate({attributes:{class:"ck-switchbutton"}})}render(){super.render(),this.children.add(this.toggleSwitchView)}_createToggleView(){const t=new Jd;return t.setTemplate({tag:"span",attributes:{class:["ck","ck-button__toggle"]},children:[{tag:"span",attributes:{class:["ck","ck-button__toggle__inner"]}}]}),t}}function Bu(t,e){const n=t.t,o={Black:n("Black"),"Dim grey":n("Dim grey"),Grey:n("Grey"),"Light grey":n("Light grey"),White:n("White"),Red:n("Red"),Orange:n("Orange"),Yellow:n("Yellow"),"Light green":n("Light green"),Green:n("Green"),Aquamarine:n("Aquamarine"),Turquoise:n("Turquoise"),"Light blue":n("Light blue"),Blue:n("Blue"),Purple:n("Purple")};return e.map((t=>{const e=o[t.label];return e&&e!=t.label&&(t.label=e),t}))}function Nu(t){return t.map(zu).filter((t=>!!t))}function zu(t){return"string"==typeof t?{model:t,label:t,hasBorder:!1,view:{name:"span",styles:{color:t}}}:{model:t.color,label:t.label||t.color,hasBorder:void 0!==t.hasBorder&&t.hasBorder,view:{name:"span",styles:{color:`${t.color}`}}}}class Pu extends Su{constructor(t){super(t);const e=this.bindTemplate;this.set("color"),this.set("hasBorder"),this.icon='',this.extendTemplate({attributes:{style:{backgroundColor:e.to("color")},class:["ck","ck-color-grid__tile",e.if("hasBorder","ck-color-table__color-tile_bordered")]}})}render(){super.render(),this.iconView.fillColor="hsl(0, 0%, 100%)"}}function Lu(t){return!!(t&&t.getClientRects&&t.getClientRects().length)}class Ou{constructor(t){if(Object.assign(this,t),t.actions&&t.keystrokeHandler)for(const e in t.actions){let n=t.actions[e];"string"==typeof n&&(n=[n]);for(const o of n)t.keystrokeHandler.set(o,((t,n)=>{this[e](),n()}))}}get first(){return this.focusables.find(Ru)||null}get last(){return this.focusables.filter(Ru).slice(-1)[0]||null}get next(){return this._getFocusableItem(1)}get previous(){return this._getFocusableItem(-1)}get current(){let t=null;return null===this.focusTracker.focusedElement?null:(this.focusables.find(((e,n)=>{const o=e.element===this.focusTracker.focusedElement;return o&&(t=n),o})),t)}focusFirst(){this._focus(this.first)}focusLast(){this._focus(this.last)}focusNext(){this._focus(this.next)}focusPrevious(){this._focus(this.previous)}_focus(t){t&&t.focus()}_getFocusableItem(t){const e=this.current,n=this.focusables.length;if(!n)return null;if(null===e)return this[1===t?"first":"last"];let o=(e+n+t)%n;do{const e=this.focusables.get(o);if(Ru(e))return e;o=(o+n+t)%n}while(o!==e);return null}}function Ru(t){return!(!t.focus||!Lu(t.element))}var ju=n(4923),Vu={attributes:{"data-cke":!0}};Vu.setAttributes=is(),Vu.insert=ns().bind(null,"head"),Vu.domAPI=ts(),Vu.insertStyleElement=ss();Jr()(ju.Z,Vu);ju.Z&&ju.Z.locals&&ju.Z.locals;class Fu extends Jd{constructor(t,e){super(t);const n=e&&e.colorDefinitions||[],o={};e&&e.columns&&(o.gridTemplateColumns=`repeat( ${e.columns}, 1fr)`),this.set("selectedColor"),this.items=this.createCollection(),this.focusTracker=new za,this.keystrokes=new Pa,this._focusCycler=new Ou({focusables:this.items,focusTracker:this.focusTracker,keystrokeHandler:this.keystrokes,actions:{focusPrevious:"arrowleft",focusNext:"arrowright"}}),this.items.on("add",((t,e)=>{e.isOn=e.color===this.selectedColor})),n.forEach((t=>{const e=new Pu;e.set({color:t.color,label:t.label,tooltip:!0,hasBorder:t.options.hasBorder}),e.on("execute",(()=>{this.fire("execute",{value:t.color,hasBorder:t.options.hasBorder,label:t.label})})),this.items.add(e)})),this.setTemplate({tag:"div",children:this.items,attributes:{class:["ck","ck-color-grid"],style:o}}),this.on("change:selectedColor",((t,e,n)=>{for(const t of this.items)t.isOn=t.color===n}))}focus(){this.items.length&&this.items.first.focus()}focusLast(){this.items.length&&this.items.last.focus()}render(){super.render();for(const t of this.items)this.focusTracker.add(t.element);this.items.on("add",((t,e)=>{this.focusTracker.add(e.element)})),this.items.on("remove",((t,e)=>{this.focusTracker.remove(e.element)})),this.keystrokes.listenTo(this.element)}destroy(){super.destroy(),this.focusTracker.destroy(),this.keystrokes.destroy()}}const Hu='';class Uu extends Su{constructor(t){super(t),this.arrowView=this._createArrowView(),this.extendTemplate({attributes:{"aria-haspopup":!0}}),this.delegate("execute").to(this,"open")}render(){super.render(),this.children.add(this.arrowView)}_createArrowView(){const t=new _u;return t.content=Hu,t.extendTemplate({attributes:{class:"ck-dropdown__arrow"}}),t}}var qu=n(66),Gu={attributes:{"data-cke":!0}};Gu.setAttributes=is(),Gu.insert=ns().bind(null,"head"),Gu.domAPI=ts(),Gu.insertStyleElement=ss();Jr()(qu.Z,Gu);qu.Z&&qu.Z.locals&&qu.Z.locals;class Wu extends Jd{constructor(t){super(t);const e=this.bindTemplate;this.set("class"),this.set("icon"),this.set("isEnabled",!0),this.set("isOn",!1),this.set("isToggleable",!1),this.set("isVisible",!0),this.set("keystroke"),this.set("label"),this.set("tabindex",-1),this.set("tooltip"),this.set("tooltipPosition","s"),this.set("type","button"),this.set("withText",!1),this.children=this.createCollection(),this.actionView=this._createActionView(),this.arrowView=this._createArrowView(),this.keystrokes=new Pa,this.focusTracker=new za,this.setTemplate({tag:"div",attributes:{class:["ck","ck-splitbutton",e.to("class"),e.if("isVisible","ck-hidden",(t=>!t)),this.arrowView.bindTemplate.if("isOn","ck-splitbutton_open")]},children:this.children})}render(){super.render(),this.children.add(this.actionView),this.children.add(this.arrowView),this.focusTracker.add(this.actionView.element),this.focusTracker.add(this.arrowView.element),this.keystrokes.listenTo(this.element),this.keystrokes.set("arrowright",((t,e)=>{this.focusTracker.focusedElement===this.actionView.element&&(this.arrowView.focus(),e())})),this.keystrokes.set("arrowleft",((t,e)=>{this.focusTracker.focusedElement===this.arrowView.element&&(this.actionView.focus(),e())}))}destroy(){super.destroy(),this.focusTracker.destroy(),this.keystrokes.destroy()}focus(){this.actionView.focus()}_createActionView(){const t=new Su;return t.bind("icon","isEnabled","isOn","isToggleable","keystroke","label","tabindex","tooltip","tooltipPosition","type","withText").to(this),t.extendTemplate({attributes:{class:"ck-splitbutton__action"}}),t.delegate("execute").to(this),t}_createArrowView(){const t=new Su,e=t.bindTemplate;return t.icon=Hu,t.extendTemplate({attributes:{class:"ck-splitbutton__arrow","aria-haspopup":!0,"aria-expanded":e.to("isOn",(t=>String(t)))}}),t.bind("isEnabled").to(this),t.bind("label").to(this),t.bind("tooltip").to(this),t.delegate("execute").to(this,"open"),t}}class Zu extends Jd{constructor(t){super(t);const e=this.bindTemplate;this.set("isVisible",!1),this.set("position","se"),this.children=this.createCollection(),this.setTemplate({tag:"div",attributes:{class:["ck","ck-reset","ck-dropdown__panel",e.to("position",(t=>`ck-dropdown__panel_${t}`)),e.if("isVisible","ck-dropdown__panel-visible")]},children:this.children,on:{selectstart:e.to((t=>t.preventDefault()))}})}focus(){this.children.length&&("function"==typeof this.children.first.focus?this.children.first.focus():c("ui-dropdown-panel-focus-child-missing-focus",{childView:this.children.first,dropdownPanel:this}))}focusLast(){if(this.children.length){const t=this.children.last;"function"==typeof t.focusLast?t.focusLast():t.focus()}}}var Yu=n(3488),Ku={attributes:{"data-cke":!0}};Ku.setAttributes=is(),Ku.insert=ns().bind(null,"head"),Ku.domAPI=ts(),Ku.insertStyleElement=ss();Jr()(Yu.Z,Ku);Yu.Z&&Yu.Z.locals&&Yu.Z.locals;function $u({element:t,target:e,positions:n,limiter:o,fitInViewport:i,viewportOffsetConfig:r}){Dt(e)&&(e=e()),Dt(o)&&(o=o());const s=function(t){return t&&t.parentNode?t.offsetParent===ms.document.body?null:t.offsetParent:null}(t),a=new Da(t),l=new Da(e);let c;const d=i&&function(t){t=Object.assign({top:0,bottom:0,left:0,right:0},t);const e=new Da(ms.window);return e.top+=t.top,e.height-=t.top,e.bottom-=t.bottom,e.height-=t.bottom,e}(r)||null,u={targetRect:l,elementRect:a,positionedElementAncestor:s,viewportRect:d};if(o||i){const t=o&&new Da(o).getVisible();Object.assign(u,{limiterRect:t,viewportRect:d}),c=function(t,e){const{elementRect:n}=e,o=n.getArea(),i=t.map((t=>new Ju(t,e))).filter((t=>!!t.name));let r=0,s=null;for(const t of i){const{limiterIntersectionArea:e,viewportIntersectionArea:n}=t;if(e===o)return t;const i=n**2+e**2;i>r&&(r=i,s=t)}return s}(n,u)||new Ju(n[0],u)}else c=new Ju(n[0],u);return c}function Qu(t){const{scrollX:e,scrollY:n}=ms.window;return t.clone().moveBy(e,n)}class Ju{constructor(t,e){const n=t(e.targetRect,e.elementRect,e.viewportRect);if(!n)return;const{left:o,top:i,name:r,config:s}=n;this.name=r,this.config=s,this._positioningFunctionCorrdinates={left:o,top:i},this._options=e}get left(){return this._absoluteRect.left}get top(){return this._absoluteRect.top}get limiterIntersectionArea(){const t=this._options.limiterRect;if(t){const e=this._options.viewportRect;if(!e)return t.getIntersectionArea(this._rect);{const n=t.getIntersection(e);if(n)return n.getIntersectionArea(this._rect)}}return 0}get viewportIntersectionArea(){const t=this._options.viewportRect;return t?t.getIntersectionArea(this._rect):0}get _rect(){return this._cachedRect||(this._cachedRect=this._options.elementRect.clone().moveTo(this._positioningFunctionCorrdinates.left,this._positioningFunctionCorrdinates.top)),this._cachedRect}get _absoluteRect(){return this._cachedAbsoluteRect||(this._cachedAbsoluteRect=Qu(this._rect),this._options.positionedElementAncestor&&function(t,e){const n=Qu(new Da(e)),o=xa(e);let i=0,r=0;i-=n.left,r-=n.top,i+=e.scrollLeft,r+=e.scrollTop,i-=o.left,r-=o.top,t.moveBy(i,r)}(this._cachedAbsoluteRect,this._options.positionedElementAncestor)),this._cachedAbsoluteRect}}class Xu extends Jd{constructor(t,e,n){super(t);const o=this.bindTemplate;this.buttonView=e,this.panelView=n,this.set("isOpen",!1),this.set("isEnabled",!0),this.set("class"),this.set("id"),this.set("panelPosition","auto"),this.keystrokes=new Pa,this.setTemplate({tag:"div",attributes:{class:["ck","ck-dropdown",o.to("class"),o.if("isEnabled","ck-disabled",(t=>!t))],id:o.to("id"),"aria-describedby":o.to("ariaDescribedById")},children:[e,n]}),e.extendTemplate({attributes:{class:["ck-dropdown__button"]}})}render(){super.render(),this.listenTo(this.buttonView,"open",(()=>{this.isOpen=!this.isOpen})),this.panelView.bind("isVisible").to(this,"isOpen"),this.on("change:isOpen",(()=>{this.isOpen?("auto"===this.panelPosition?this.panelView.position=Xu._getOptimalPosition({element:this.panelView.element,target:this.buttonView.element,fitInViewport:!0,positions:this._panelPositions}).name:this.panelView.position=this.panelPosition,this.panelView.focus()):this.focus()})),this.keystrokes.listenTo(this.element);const t=(t,e)=>{this.isOpen&&(this.isOpen=!1,e())};this.keystrokes.set("arrowdown",((t,e)=>{this.buttonView.isEnabled&&!this.isOpen&&(this.isOpen=!0,e())})),this.keystrokes.set("arrowright",((t,e)=>{this.isOpen&&e()})),this.keystrokes.set("arrowleft",t),this.keystrokes.set("esc",t)}focus(){this.buttonView.focus()}get _panelPositions(){const{south:t,north:e,southEast:n,southWest:o,northEast:i,northWest:r,southMiddleEast:s,southMiddleWest:a,northMiddleEast:l,northMiddleWest:c}=Xu.defaultPanelPositions;return"rtl"!==this.locale.uiLanguageDirection?[n,o,s,a,t,i,r,l,c,e]:[o,n,a,s,t,r,i,c,l,e]}}Xu.defaultPanelPositions={south:(t,e)=>({top:t.bottom,left:t.left-(e.width-t.width)/2,name:"s"}),southEast:t=>({top:t.bottom,left:t.left,name:"se"}),southWest:(t,e)=>({top:t.bottom,left:t.left-e.width+t.width,name:"sw"}),southMiddleEast:(t,e)=>({top:t.bottom,left:t.left-(e.width-t.width)/4,name:"sme"}),southMiddleWest:(t,e)=>({top:t.bottom,left:t.left-3*(e.width-t.width)/4,name:"smw"}),north:(t,e)=>({top:t.top-e.height,left:t.left-(e.width-t.width)/2,name:"n"}),northEast:(t,e)=>({top:t.top-e.height,left:t.left,name:"ne"}),northWest:(t,e)=>({top:t.top-e.height,left:t.left-e.width+t.width,name:"nw"}),northMiddleEast:(t,e)=>({top:t.top-e.height,left:t.left-(e.width-t.width)/4,name:"nme"}),northMiddleWest:(t,e)=>({top:t.top-e.height,left:t.left-3*(e.width-t.width)/4,name:"nmw"})},Xu._getOptimalPosition=$u;class th extends Jd{constructor(t){super(t),this.setTemplate({tag:"span",attributes:{class:["ck","ck-toolbar__separator"]}})}}class eh extends Jd{constructor(t){super(t),this.setTemplate({tag:"span",attributes:{class:["ck","ck-toolbar__line-break"]}})}}function nh(t){return Array.isArray(t)?{items:t,removeItems:[]}:t?Object.assign({items:[],removeItems:[]},t):{items:[],removeItems:[]}}var oh=n(5571),ih={attributes:{"data-cke":!0}};ih.setAttributes=is(),ih.insert=ns().bind(null,"head"),ih.domAPI=ts(),ih.insertStyleElement=ss();Jr()(oh.Z,ih);oh.Z&&oh.Z.locals&&oh.Z.locals;class rh extends Jd{constructor(t,e){super(t);const n=this.bindTemplate,o=this.t;this.options=e||{},this.set("ariaLabel",o("Editor toolbar")),this.set("maxWidth","auto"),this.items=this.createCollection(),this.focusTracker=new za,this.keystrokes=new Pa,this.set("class"),this.set("isCompact",!1),this.itemsView=new sh(t),this.children=this.createCollection(),this.children.add(this.itemsView),this.focusables=this.createCollection();const i="rtl"===t.uiLanguageDirection;this._focusCycler=new Ou({focusables:this.focusables,focusTracker:this.focusTracker,keystrokeHandler:this.keystrokes,actions:{focusPrevious:[i?"arrowright":"arrowleft","arrowup"],focusNext:[i?"arrowleft":"arrowright","arrowdown"]}});const r=["ck","ck-toolbar",n.to("class"),n.if("isCompact","ck-toolbar_compact")];var s;this.options.shouldGroupWhenFull&&this.options.isFloating&&r.push("ck-toolbar_floating"),this.setTemplate({tag:"div",attributes:{class:r,role:"toolbar","aria-label":n.to("ariaLabel"),style:{maxWidth:n.to("maxWidth")}},children:this.children,on:{mousedown:(s=this,s.bindTemplate.to((t=>{t.target===s.element&&t.preventDefault()})))}}),this._behavior=this.options.shouldGroupWhenFull?new lh(this):new ah(this)}render(){super.render();for(const t of this.items)this.focusTracker.add(t.element);this.items.on("add",((t,e)=>{this.focusTracker.add(e.element)})),this.items.on("remove",((t,e)=>{this.focusTracker.remove(e.element)})),this.keystrokes.listenTo(this.element),this._behavior.render(this)}destroy(){return this._behavior.destroy(),this.focusTracker.destroy(),this.keystrokes.destroy(),super.destroy()}focus(){this._focusCycler.focusFirst()}focusLast(){this._focusCycler.focusLast()}fillFromConfig(t,e){const n=nh(t),o=n.items.filter(((t,o,i)=>"|"===t||-1===n.removeItems.indexOf(t)&&("-"===t?!this.options.shouldGroupWhenFull||(c("toolbarview-line-break-ignored-when-grouping-items",i),!1):!!e.has(t)||(c("toolbarview-item-unavailable",{name:t}),!1)))),i=this._cleanSeparators(o).map((t=>"|"===t?new th:"-"===t?new eh:e.create(t)));this.items.addMany(i)}_cleanSeparators(t){const e=t=>"-"!==t&&"|"!==t,n=t.length,o=t.findIndex(e),i=n-t.slice().reverse().findIndex(e);return t.slice(o,i).filter(((t,n,o)=>{if(e(t))return!0;return!(n>0&&o[n-1]===t)}))}}class sh extends Jd{constructor(t){super(t),this.children=this.createCollection(),this.setTemplate({tag:"div",attributes:{class:["ck","ck-toolbar__items"]},children:this.children})}}class ah{constructor(t){const e=t.bindTemplate;t.set("isVertical",!1),t.itemsView.children.bindTo(t.items).using((t=>t)),t.focusables.bindTo(t.items).using((t=>t)),t.extendTemplate({attributes:{class:[e.if("isVertical","ck-toolbar_vertical")]}})}render(){}destroy(){}}class lh{constructor(t){this.view=t,this.viewChildren=t.children,this.viewFocusables=t.focusables,this.viewItemsView=t.itemsView,this.viewFocusTracker=t.focusTracker,this.viewLocale=t.locale,this.ungroupedItems=t.createCollection(),this.groupedItems=t.createCollection(),this.groupedItemsDropdown=this._createGroupedItemsDropdown(),this.resizeObserver=null,this.cachedPadding=null,this.shouldUpdateGroupingOnNextResize=!1,t.itemsView.children.bindTo(this.ungroupedItems).using((t=>t)),this.ungroupedItems.on("add",this._updateFocusCycleableItems.bind(this)),this.ungroupedItems.on("remove",this._updateFocusCycleableItems.bind(this)),t.children.on("add",this._updateFocusCycleableItems.bind(this)),t.children.on("remove",this._updateFocusCycleableItems.bind(this)),t.items.on("change",((t,e)=>{const n=e.index;for(const t of e.removed)n>=this.ungroupedItems.length?this.groupedItems.remove(t):this.ungroupedItems.remove(t);for(let t=n;tthis.ungroupedItems.length?this.groupedItems.add(o,t-this.ungroupedItems.length):this.ungroupedItems.add(o,t)}this._updateGrouping()})),t.extendTemplate({attributes:{class:["ck-toolbar_grouping"]}})}render(t){this.viewElement=t.element,this._enableGroupingOnResize(),this._enableGroupingOnMaxWidthChange(t)}destroy(){this.groupedItemsDropdown.destroy(),this.resizeObserver.destroy()}_updateGrouping(){if(!this.viewElement.ownerDocument.body.contains(this.viewElement))return;if(!Lu(this.viewElement))return void(this.shouldUpdateGroupingOnNextResize=!0);const t=this.groupedItems.length;let e;for(;this._areItemsOverflowing;)this._groupLastItem(),e=!0;if(!e&&this.groupedItems.length){for(;this.groupedItems.length&&!this._areItemsOverflowing;)this._ungroupFirstItem();this._areItemsOverflowing&&this._groupLastItem()}this.groupedItems.length!==t&&this.view.fire("groupedItemsUpdate")}get _areItemsOverflowing(){if(!this.ungroupedItems.length)return!1;const t=this.viewElement,e=this.viewLocale.uiLanguageDirection,n=new Da(t.lastChild),o=new Da(t);if(!this.cachedPadding){const n=ms.window.getComputedStyle(t),o="ltr"===e?"paddingRight":"paddingLeft";this.cachedPadding=Number.parseInt(n[o])}return"ltr"===e?n.right>o.right-this.cachedPadding:n.left{t&&t===e.contentRect.width&&!this.shouldUpdateGroupingOnNextResize||(this.shouldUpdateGroupingOnNextResize=!1,this._updateGrouping(),t=e.contentRect.width)})),this._updateGrouping()}_enableGroupingOnMaxWidthChange(t){t.on("change:maxWidth",(()=>{this._updateGrouping()}))}_groupLastItem(){this.groupedItems.length||(this.viewChildren.add(new th),this.viewChildren.add(this.groupedItemsDropdown),this.viewFocusTracker.add(this.groupedItemsDropdown.element)),this.groupedItems.add(this.ungroupedItems.remove(this.ungroupedItems.last),0)}_ungroupFirstItem(){this.ungroupedItems.add(this.groupedItems.remove(this.groupedItems.first)),this.groupedItems.length||(this.viewChildren.remove(this.groupedItemsDropdown),this.viewChildren.remove(this.viewChildren.last),this.viewFocusTracker.remove(this.groupedItemsDropdown.element))}_createGroupedItemsDropdown(){const t=this.viewLocale,e=t.t,n=kh(t);return n.class="ck-toolbar__grouped-dropdown",n.panelPosition="ltr"===t.uiLanguageDirection?"sw":"se",wh(n,[]),n.buttonView.set({label:e("Show more items"),tooltip:!0,tooltipPosition:"rtl"===t.uiLanguageDirection?"se":"sw",icon:qd}),n.toolbarView.items.bindTo(this.groupedItems).using((t=>t)),n}_updateFocusCycleableItems(){this.viewFocusables.clear(),this.ungroupedItems.map((t=>{this.viewFocusables.add(t)})),this.groupedItems.length&&this.viewFocusables.add(this.groupedItemsDropdown)}}var ch=n(1162),dh={attributes:{"data-cke":!0}};dh.setAttributes=is(),dh.insert=ns().bind(null,"head"),dh.domAPI=ts(),dh.insertStyleElement=ss();Jr()(ch.Z,dh);ch.Z&&ch.Z.locals&&ch.Z.locals;class uh extends Jd{constructor(){super(),this.items=this.createCollection(),this.focusTracker=new za,this.keystrokes=new Pa,this._focusCycler=new Ou({focusables:this.items,focusTracker:this.focusTracker,keystrokeHandler:this.keystrokes,actions:{focusPrevious:"arrowup",focusNext:"arrowdown"}}),this.setTemplate({tag:"ul",attributes:{class:["ck","ck-reset","ck-list"]},children:this.items})}render(){super.render();for(const t of this.items)this.focusTracker.add(t.element);this.items.on("add",((t,e)=>{this.focusTracker.add(e.element)})),this.items.on("remove",((t,e)=>{this.focusTracker.remove(e.element)})),this.keystrokes.listenTo(this.element)}destroy(){super.destroy(),this.focusTracker.destroy(),this.keystrokes.destroy()}focus(){this._focusCycler.focusFirst()}focusLast(){this._focusCycler.focusLast()}}class hh extends Jd{constructor(t){super(t),this.children=this.createCollection(),this.setTemplate({tag:"li",attributes:{class:["ck","ck-list__item"]},children:this.children})}focus(){this.children.first.focus()}}class mh extends Jd{constructor(t){super(t),this.setTemplate({tag:"li",attributes:{class:["ck","ck-list__separator"]}})}}var gh=n(5075),ph={attributes:{"data-cke":!0}};ph.setAttributes=is(),ph.insert=ns().bind(null,"head"),ph.domAPI=ts(),ph.insertStyleElement=ss();Jr()(gh.Z,ph);gh.Z&&gh.Z.locals&&gh.Z.locals;var fh=n(6875),bh={attributes:{"data-cke":!0}};bh.setAttributes=is(),bh.insert=ns().bind(null,"head"),bh.domAPI=ts(),bh.insertStyleElement=ss();Jr()(fh.Z,bh);fh.Z&&fh.Z.locals&&fh.Z.locals;function kh(t,e=Uu){const n=new e(t),o=new Zu(t),i=new Xu(t,n,o);return n.bind("isEnabled").to(i),n instanceof Uu?n.bind("isOn").to(i,"isOpen"):n.arrowView.bind("isOn").to(i,"isOpen"),function(t){(function(t){t.on("render",(()=>{Wd({emitter:t,activator:()=>t.isOpen,callback:()=>{t.isOpen=!1},contextElements:[t.element]})}))})(t),function(t){t.on("execute",(e=>{e.source instanceof Mu||(t.isOpen=!1)}))}(t),function(t){t.keystrokes.set("arrowdown",((e,n)=>{t.isOpen&&(t.panelView.focus(),n())})),t.keystrokes.set("arrowup",((e,n)=>{t.isOpen&&(t.panelView.focusLast(),n())}))}(t)}(i),i}function wh(t,e,n={}){const o=t.locale,i=o.t,r=t.toolbarView=new rh(o);r.set("ariaLabel",i("Dropdown toolbar")),t.extendTemplate({attributes:{class:["ck-toolbar-dropdown"]}}),e.map((t=>r.items.add(t))),n.enableActiveItemFocusOnDropdownOpen&&Ch(t,(()=>r.items.find((t=>t.isOn)))),t.panelView.children.add(r),r.items.delegate("execute").to(t)}function Ah(t,e){const n=t.locale,o=t.listView=new uh(n);o.items.bindTo(e).using((({type:t,model:e})=>{if("separator"===t)return new mh(n);if("button"===t||"switchbutton"===t){const o=new hh(n);let i;return i="button"===t?new Su(n):new Mu(n),i.bind(...Object.keys(e)).to(e),i.delegate("execute").to(o),o.children.add(i),o}})),t.panelView.children.add(o),o.items.delegate("execute").to(t),Ch(t,(()=>o.items.find((t=>t instanceof hh&&t.children.first.isOn))))}function Ch(t,e){t.on("change:isOpen",(()=>{if(!t.isOpen)return;const n=e();n&&("function"==typeof n.focus?n.focus():c("ui-dropdown-focus-child-on-open-child-missing-focus",{view:n}))}),{priority:"low"})}var _h=n(4547),vh={attributes:{"data-cke":!0}};vh.setAttributes=is(),vh.insert=ns().bind(null,"head"),vh.domAPI=ts(),vh.insertStyleElement=ss();Jr()(_h.Z,vh);_h.Z&&_h.Z.locals&&_h.Z.locals;class yh extends Jd{constructor(t){super(t),this.body=new wu(t)}render(){super.render(),this.body.attachToDom()}destroy(){return this.body.detachFromDom(),super.destroy()}}var xh=n(2751),Eh={attributes:{"data-cke":!0}};Eh.setAttributes=is(),Eh.insert=ns().bind(null,"head"),Eh.domAPI=ts(),Eh.insertStyleElement=ss();Jr()(xh.Z,Eh);xh.Z&&xh.Z.locals&&xh.Z.locals;class Dh extends Jd{constructor(t){super(t),this.set("text"),this.set("for"),this.id=`ck-editor__label_${r()}`;const e=this.bindTemplate;this.setTemplate({tag:"label",attributes:{class:["ck","ck-label"],id:this.id,for:e.to("for")},children:[{text:e.to("text")}]})}}class Sh extends yh{constructor(t){super(t),this.top=this.createCollection(),this.main=this.createCollection(),this._voiceLabelView=this._createVoiceLabel(),this.setTemplate({tag:"div",attributes:{class:["ck","ck-reset","ck-editor","ck-rounded-corners"],role:"application",dir:t.uiLanguageDirection,lang:t.uiLanguage,"aria-labelledby":this._voiceLabelView.id},children:[this._voiceLabelView,{tag:"div",attributes:{class:["ck","ck-editor__top","ck-reset_all"],role:"presentation"},children:this.top},{tag:"div",attributes:{class:["ck","ck-editor__main"],role:"presentation"},children:this.main}]})}_createVoiceLabel(){const t=this.t,e=new Dh;return e.text=t("Rich Text Editor"),e.extendTemplate({attributes:{class:"ck-voice-label"}}),e}}class Ih extends Jd{constructor(t,e,n){super(t),this.setTemplate({tag:"div",attributes:{class:["ck","ck-content","ck-editor__editable","ck-rounded-corners"],lang:t.contentLanguage,dir:t.contentLanguageDirection}}),this.name=null,this.set("isFocused",!1),this._editableElement=n,this._hasExternalElement=!!this._editableElement,this._editingView=e}render(){super.render(),this._hasExternalElement?this.template.apply(this.element=this._editableElement):this._editableElement=this.element,this.on("change:isFocused",(()=>this._updateIsFocusedClasses())),this._updateIsFocusedClasses()}destroy(){this._hasExternalElement&&this.template.revert(this._editableElement),super.destroy()}_updateIsFocusedClasses(){const t=this._editingView;function e(e){t.change((n=>{const o=t.document.getRoot(e.name);n.addClass(e.isFocused?"ck-focused":"ck-blurred",o),n.removeClass(e.isFocused?"ck-blurred":"ck-focused",o)}))}t.isRenderingInProgress?function n(o){t.once("change:isRenderingInProgress",((t,i,r)=>{r?n(o):e(o)}))}(this):e(this)}}class Th extends Ih{constructor(t,e,n,o={}){super(t,e,n);const i=t.t;this.extendTemplate({attributes:{role:"textbox",class:"ck-editor__editable_inline"}}),this._generateLabel=o.label||(()=>i("Editor editing area: %0",this.name))}render(){super.render();const t=this._editingView;t.change((e=>{const n=t.document.getRoot(this.name);e.setAttribute("aria-label",this._generateLabel(this),n)}))}}var Mh=n(5523),Bh={attributes:{"data-cke":!0}};Bh.setAttributes=is(),Bh.insert=ns().bind(null,"head"),Bh.domAPI=ts(),Bh.insertStyleElement=ss();Jr()(Mh.Z,Bh);Mh.Z&&Mh.Z.locals&&Mh.Z.locals;class Nh extends Jd{constructor(t,e={}){super(t);const n=this.bindTemplate;this.set("label",e.label||""),this.set("class",e.class||null),this.children=this.createCollection(),this.setTemplate({tag:"div",attributes:{class:["ck","ck-form__header",n.to("class")]},children:this.children});const o=new Jd(t);o.setTemplate({tag:"span",attributes:{class:["ck","ck-form__header__label"]},children:[{text:n.to("label")}]}),this.children.add(o)}}var zh=n(6985),Ph={attributes:{"data-cke":!0}};Ph.setAttributes=is(),Ph.insert=ns().bind(null,"head"),Ph.domAPI=ts(),Ph.insertStyleElement=ss();Jr()(zh.Z,Ph);zh.Z&&zh.Z.locals&&zh.Z.locals;class Lh extends Jd{constructor(t){super(t),this.set("value"),this.set("id"),this.set("placeholder"),this.set("isReadOnly",!1),this.set("hasError",!1),this.set("ariaDescribedById"),this.focusTracker=new za,this.bind("isFocused").to(this.focusTracker),this.set("isEmpty",!0),this.set("inputMode","text");const e=this.bindTemplate;this.setTemplate({tag:"input",attributes:{class:["ck","ck-input",e.if("isFocused","ck-input_focused"),e.if("isEmpty","ck-input-text_empty"),e.if("hasError","ck-error")],id:e.to("id"),placeholder:e.to("placeholder"),readonly:e.to("isReadOnly"),inputmode:e.to("inputMode"),"aria-invalid":e.if("hasError",!0),"aria-describedby":e.to("ariaDescribedById")},on:{input:e.to(((...t)=>{this.fire("input",...t),this._updateIsEmpty()})),change:e.to(this._updateIsEmpty.bind(this))}})}render(){super.render(),this.focusTracker.add(this.element),this._setDomElementValue(this.value),this._updateIsEmpty(),this.on("change:value",((t,e,n)=>{this._setDomElementValue(n),this._updateIsEmpty()}))}destroy(){super.destroy(),this.focusTracker.destroy()}select(){this.element.select()}focus(){this.element.focus()}_updateIsEmpty(){this.isEmpty=!this.element.value}_setDomElementValue(t){this.element.value=t||0===t?t:""}}class Oh extends Lh{constructor(t){super(t),this.extendTemplate({attributes:{type:"text",class:["ck-input-text"]}})}}class Rh extends Lh{constructor(t,{min:e,max:n,step:o}={}){super(t);const i=this.bindTemplate;this.set("min",e),this.set("max",n),this.set("step",o),this.extendTemplate({attributes:{type:"number",class:["ck-input-number"],min:i.to("min"),max:i.to("max"),step:i.to("step")}})}}var jh=n(8111),Vh={attributes:{"data-cke":!0}};Vh.setAttributes=is(),Vh.insert=ns().bind(null,"head"),Vh.domAPI=ts(),Vh.insertStyleElement=ss();Jr()(jh.Z,Vh);jh.Z&&jh.Z.locals&&jh.Z.locals;class Fh extends Jd{constructor(t,e){super(t);const n=`ck-labeled-field-view-${r()}`,o=`ck-labeled-field-view-status-${r()}`;this.fieldView=e(this,n,o),this.set("label"),this.set("isEnabled",!0),this.set("isEmpty",!0),this.set("isFocused",!1),this.set("errorText",null),this.set("infoText",null),this.set("class"),this.set("placeholder"),this.labelView=this._createLabelView(n),this.statusView=this._createStatusView(o),this.bind("_statusText").to(this,"errorText",this,"infoText",((t,e)=>t||e));const i=this.bindTemplate;this.setTemplate({tag:"div",attributes:{class:["ck","ck-labeled-field-view",i.to("class"),i.if("isEnabled","ck-disabled",(t=>!t)),i.if("isEmpty","ck-labeled-field-view_empty"),i.if("isFocused","ck-labeled-field-view_focused"),i.if("placeholder","ck-labeled-field-view_placeholder"),i.if("errorText","ck-error")]},children:[{tag:"div",attributes:{class:["ck","ck-labeled-field-view__input-wrapper"]},children:[this.fieldView,this.labelView]},this.statusView]})}_createLabelView(t){const e=new Dh(this.locale);return e.for=t,e.bind("text").to(this,"label"),e}_createStatusView(t){const e=new Jd(this.locale),n=this.bindTemplate;return e.setTemplate({tag:"div",attributes:{class:["ck","ck-labeled-field-view__status",n.if("errorText","ck-labeled-field-view__status_error"),n.if("_statusText","ck-hidden",(t=>!t))],id:t,role:n.if("errorText","alert")},children:[{text:n.to("_statusText")}]}),e}focus(){this.fieldView.focus()}}function Hh(t,e,n){const o=new Oh(t.locale);return o.set({id:e,ariaDescribedById:n}),o.bind("isReadOnly").to(t,"isEnabled",(t=>!t)),o.bind("hasError").to(t,"errorText",(t=>!!t)),o.on("input",(()=>{t.errorText=null})),t.bind("isEmpty","isFocused","placeholder").to(o),o}function Uh(t,e,n){const o=new Rh(t.locale);return o.set({id:e,ariaDescribedById:n,inputMode:"numeric"}),o.bind("isReadOnly").to(t,"isEnabled",(t=>!t)),o.bind("hasError").to(t,"errorText",(t=>!!t)),o.on("input",(()=>{t.errorText=null})),t.bind("isEmpty","isFocused","placeholder").to(o),o}function qh(t,e,n){const o=kh(t.locale);return o.set({id:e,ariaDescribedById:n}),o.bind("isEnabled").to(t),o}class Gh extends xo{static get pluginName(){return"Notification"}init(){this.on("show:warning",((t,e)=>{window.alert(e.message)}),{priority:"lowest"})}showSuccess(t,e={}){this._showNotification({message:t,type:"success",namespace:e.namespace,title:e.title})}showInfo(t,e={}){this._showNotification({message:t,type:"info",namespace:e.namespace,title:e.title})}showWarning(t,e={}){this._showNotification({message:t,type:"warning",namespace:e.namespace,title:e.title})}_showNotification(t){const e=`show:${t.type}`+(t.namespace?`:${t.namespace}`:"");this.fire(e,{message:t.message,type:t.type,title:t.title||""})}}class Wh{constructor(t,e){e&&Es(this,e),t&&this.set(t)}}function Zh(t){return e=>e+t}j(Wh,N);var Yh=n(8245),Kh={attributes:{"data-cke":!0}};Kh.setAttributes=is(),Kh.insert=ns().bind(null,"head"),Kh.domAPI=ts(),Kh.insertStyleElement=ss();Jr()(Yh.Z,Kh);Yh.Z&&Yh.Z.locals&&Yh.Z.locals;const $h=Zh("px"),Qh=ms.document.body;class Jh extends Jd{constructor(t){super(t);const e=this.bindTemplate;this.set("top",0),this.set("left",0),this.set("position","arrow_nw"),this.set("isVisible",!1),this.set("withArrow",!0),this.set("class"),this.content=this.createCollection(),this.setTemplate({tag:"div",attributes:{class:["ck","ck-balloon-panel",e.to("position",(t=>`ck-balloon-panel_${t}`)),e.if("isVisible","ck-balloon-panel_visible"),e.if("withArrow","ck-balloon-panel_with-arrow"),e.to("class")],style:{top:e.to("top",$h),left:e.to("left",$h)}},children:this.content})}show(){this.isVisible=!0}hide(){this.isVisible=!1}attachTo(t){this.show();const e=Jh.defaultPositions,n=Object.assign({},{element:this.element,positions:[e.southArrowNorth,e.southArrowNorthMiddleWest,e.southArrowNorthMiddleEast,e.southArrowNorthWest,e.southArrowNorthEast,e.northArrowSouth,e.northArrowSouthMiddleWest,e.northArrowSouthMiddleEast,e.northArrowSouthWest,e.northArrowSouthEast,e.viewportStickyNorth],limiter:Qh,fitInViewport:!0},t),o=Jh._getOptimalPosition(n),i=parseInt(o.left),r=parseInt(o.top),{name:s,config:a={}}=o,{withArrow:l=!0}=a;Object.assign(this,{top:r,left:i,position:s,withArrow:l})}pin(t){this.unpin(),this._pinWhenIsVisibleCallback=()=>{this.isVisible?this._startPinning(t):this._stopPinning()},this._startPinning(t),this.listenTo(this,"change:isVisible",this._pinWhenIsVisibleCallback)}unpin(){this._pinWhenIsVisibleCallback&&(this._stopPinning(),this.stopListening(this,"change:isVisible",this._pinWhenIsVisibleCallback),this._pinWhenIsVisibleCallback=null,this.hide())}_startPinning(t){this.attachTo(t);const e=Xh(t.target),n=t.limiter?Xh(t.limiter):Qh;this.listenTo(ms.document,"scroll",((o,i)=>{const r=i.target,s=e&&r.contains(e),a=n&&r.contains(n);!s&&!a&&e&&n||this.attachTo(t)}),{useCapture:!0}),this.listenTo(ms.window,"resize",(()=>{this.attachTo(t)}))}_stopPinning(){this.stopListening(ms.document,"scroll"),this.stopListening(ms.window,"resize")}}function Xh(t){return uo(t)?t:ya(t)?t.commonAncestorContainer:"function"==typeof t?Xh(t()):null}Jh.arrowHorizontalOffset=25,Jh.arrowVerticalOffset=10,Jh.stickyVerticalOffset=20,Jh._getOptimalPosition=$u,Jh.defaultPositions=function({horizontalOffset:t=Jh.arrowHorizontalOffset,verticalOffset:e=Jh.arrowVerticalOffset,stickyVerticalOffset:n=Jh.stickyVerticalOffset,config:o}={}){return{northWestArrowSouthWest:(e,n)=>({top:i(e,n),left:e.left-t,name:"arrow_sw",...o&&{config:o}}),northWestArrowSouthMiddleWest:(e,n)=>({top:i(e,n),left:e.left-.25*n.width-t,name:"arrow_smw",...o&&{config:o}}),northWestArrowSouth:(t,e)=>({top:i(t,e),left:t.left-e.width/2,name:"arrow_s",...o&&{config:o}}),northWestArrowSouthMiddleEast:(e,n)=>({top:i(e,n),left:e.left-.75*n.width+t,name:"arrow_sme",...o&&{config:o}}),northWestArrowSouthEast:(e,n)=>({top:i(e,n),left:e.left-n.width+t,name:"arrow_se",...o&&{config:o}}),northArrowSouthWest:(e,n)=>({top:i(e,n),left:e.left+e.width/2-t,name:"arrow_sw",...o&&{config:o}}),northArrowSouthMiddleWest:(e,n)=>({top:i(e,n),left:e.left+e.width/2-.25*n.width-t,name:"arrow_smw",...o&&{config:o}}),northArrowSouth:(t,e)=>({top:i(t,e),left:t.left+t.width/2-e.width/2,name:"arrow_s",...o&&{config:o}}),northArrowSouthMiddleEast:(e,n)=>({top:i(e,n),left:e.left+e.width/2-.75*n.width+t,name:"arrow_sme",...o&&{config:o}}),northArrowSouthEast:(e,n)=>({top:i(e,n),left:e.left+e.width/2-n.width+t,name:"arrow_se",...o&&{config:o}}),northEastArrowSouthWest:(e,n)=>({top:i(e,n),left:e.right-t,name:"arrow_sw",...o&&{config:o}}),northEastArrowSouthMiddleWest:(e,n)=>({top:i(e,n),left:e.right-.25*n.width-t,name:"arrow_smw",...o&&{config:o}}),northEastArrowSouth:(t,e)=>({top:i(t,e),left:t.right-e.width/2,name:"arrow_s",...o&&{config:o}}),northEastArrowSouthMiddleEast:(e,n)=>({top:i(e,n),left:e.right-.75*n.width+t,name:"arrow_sme",...o&&{config:o}}),northEastArrowSouthEast:(e,n)=>({top:i(e,n),left:e.right-n.width+t,name:"arrow_se",...o&&{config:o}}),southWestArrowNorthWest:(e,n)=>({top:r(e),left:e.left-t,name:"arrow_nw",...o&&{config:o}}),southWestArrowNorthMiddleWest:(e,n)=>({top:r(e),left:e.left-.25*n.width-t,name:"arrow_nmw",...o&&{config:o}}),southWestArrowNorth:(t,e)=>({top:r(t),left:t.left-e.width/2,name:"arrow_n",...o&&{config:o}}),southWestArrowNorthMiddleEast:(e,n)=>({top:r(e),left:e.left-.75*n.width+t,name:"arrow_nme",...o&&{config:o}}),southWestArrowNorthEast:(e,n)=>({top:r(e),left:e.left-n.width+t,name:"arrow_ne",...o&&{config:o}}),southArrowNorthWest:(e,n)=>({top:r(e),left:e.left+e.width/2-t,name:"arrow_nw",...o&&{config:o}}),southArrowNorthMiddleWest:(e,n)=>({top:r(e),left:e.left+e.width/2-.25*n.width-t,name:"arrow_nmw",...o&&{config:o}}),southArrowNorth:(t,e)=>({top:r(t),left:t.left+t.width/2-e.width/2,name:"arrow_n",...o&&{config:o}}),southArrowNorthMiddleEast:(e,n)=>({top:r(e),left:e.left+e.width/2-.75*n.width+t,name:"arrow_nme",...o&&{config:o}}),southArrowNorthEast:(e,n)=>({top:r(e),left:e.left+e.width/2-n.width+t,name:"arrow_ne",...o&&{config:o}}),southEastArrowNorthWest:(e,n)=>({top:r(e),left:e.right-t,name:"arrow_nw",...o&&{config:o}}),southEastArrowNorthMiddleWest:(e,n)=>({top:r(e),left:e.right-.25*n.width-t,name:"arrow_nmw",...o&&{config:o}}),southEastArrowNorth:(t,e)=>({top:r(t),left:t.right-e.width/2,name:"arrow_n",...o&&{config:o}}),southEastArrowNorthMiddleEast:(e,n)=>({top:r(e),left:e.right-.75*n.width+t,name:"arrow_nme",...o&&{config:o}}),southEastArrowNorthEast:(e,n)=>({top:r(e),left:e.right-n.width+t,name:"arrow_ne",...o&&{config:o}}),viewportStickyNorth:(t,e,i)=>t.getIntersection(i)?{top:i.top+n,left:t.left+t.width/2-e.width/2,name:"arrowless",config:{withArrow:!1,...o}}:null};function i(t,n){return t.top-n.height-e}function r(t){return t.bottom+e}}();var tm=n(1757),em={attributes:{"data-cke":!0}};em.setAttributes=is(),em.insert=ns().bind(null,"head"),em.domAPI=ts(),em.insertStyleElement=ss();Jr()(tm.Z,em);tm.Z&&tm.Z.locals&&tm.Z.locals;var nm=n(3553),om={attributes:{"data-cke":!0}};om.setAttributes=is(),om.insert=ns().bind(null,"head"),om.domAPI=ts(),om.insertStyleElement=ss();Jr()(nm.Z,om);nm.Z&&nm.Z.locals&&nm.Z.locals;const im=Zh("px");class rm extends V{static get pluginName(){return"ContextualBalloon"}constructor(t){super(t),this.positionLimiter=()=>{const t=this.editor.editing.view,e=t.document.selection.editableElement;return e?t.domConverter.mapViewToDom(e.root):null},this.set("visibleView",null),this.view=new Jh(t.locale),t.ui.view.body.add(this.view),t.ui.focusTracker.add(this.view.element),this._viewToStack=new Map,this._idToStack=new Map,this.set("_numberOfStacks",0),this.set("_singleViewMode",!1),this._rotatorView=this._createRotatorView(),this._fakePanelsView=this._createFakePanelsView()}destroy(){super.destroy(),this.view.destroy(),this._rotatorView.destroy(),this._fakePanelsView.destroy()}hasView(t){return Array.from(this._viewToStack.keys()).includes(t)}add(t){if(this.hasView(t.view))throw new l("contextualballoon-add-view-exist",[this,t]);const e=t.stackId||"main";if(!this._idToStack.has(e))return this._idToStack.set(e,new Map([[t.view,t]])),this._viewToStack.set(t.view,this._idToStack.get(e)),this._numberOfStacks=this._idToStack.size,void(this._visibleStack&&!t.singleViewMode||this.showStack(e));const n=this._idToStack.get(e);t.singleViewMode&&this.showStack(e),n.set(t.view,t),this._viewToStack.set(t.view,n),n===this._visibleStack&&this._showView(t)}remove(t){if(!this.hasView(t))throw new l("contextualballoon-remove-view-not-exist",[this,t]);const e=this._viewToStack.get(t);this._singleViewMode&&this.visibleView===t&&(this._singleViewMode=!1),this.visibleView===t&&(1===e.size?this._idToStack.size>1?this._showNextStack():(this.view.hide(),this.visibleView=null,this._rotatorView.hideView()):this._showView(Array.from(e.values())[e.size-2])),1===e.size?(this._idToStack.delete(this._getStackId(e)),this._numberOfStacks=this._idToStack.size):e.delete(t),this._viewToStack.delete(t)}updatePosition(t){t&&(this._visibleStack.get(this.visibleView).position=t),this.view.pin(this._getBalloonPosition()),this._fakePanelsView.updatePosition()}showStack(t){this.visibleStack=t;const e=this._idToStack.get(t);if(!e)throw new l("contextualballoon-showstack-stack-not-exist",this);this._visibleStack!==e&&this._showView(Array.from(e.values()).pop())}get _visibleStack(){return this._viewToStack.get(this.visibleView)}_getStackId(t){return Array.from(this._idToStack.entries()).find((e=>e[1]===t))[0]}_showNextStack(){const t=Array.from(this._idToStack.values());let e=t.indexOf(this._visibleStack)+1;t[e]||(e=0),this.showStack(this._getStackId(t[e]))}_showPrevStack(){const t=Array.from(this._idToStack.values());let e=t.indexOf(this._visibleStack)-1;t[e]||(e=t.length-1),this.showStack(this._getStackId(t[e]))}_createRotatorView(){const t=new sm(this.editor.locale),e=this.editor.locale.t;return this.view.content.add(t),t.bind("isNavigationVisible").to(this,"_numberOfStacks",this,"_singleViewMode",((t,e)=>!e&&t>1)),t.on("change:isNavigationVisible",(()=>this.updatePosition()),{priority:"low"}),t.bind("counter").to(this,"visibleView",this,"_numberOfStacks",((t,n)=>{if(n<2)return"";const o=Array.from(this._idToStack.values()).indexOf(this._visibleStack)+1;return e("%0 of %1",[o,n])})),t.buttonNextView.on("execute",(()=>{t.focusTracker.isFocused&&this.editor.editing.view.focus(),this._showNextStack()})),t.buttonPrevView.on("execute",(()=>{t.focusTracker.isFocused&&this.editor.editing.view.focus(),this._showPrevStack()})),t}_createFakePanelsView(){const t=new am(this.editor.locale,this.view);return t.bind("numberOfPanels").to(this,"_numberOfStacks",this,"_singleViewMode",((t,e)=>!e&&t>=2?Math.min(t-1,2):0)),t.listenTo(this.view,"change:top",(()=>t.updatePosition())),t.listenTo(this.view,"change:left",(()=>t.updatePosition())),this.editor.ui.view.body.add(t),t}_showView({view:t,balloonClassName:e="",withArrow:n=!0,singleViewMode:o=!1}){this.view.class=e,this.view.withArrow=n,this._rotatorView.showView(t),this.visibleView=t,this.view.pin(this._getBalloonPosition()),this._fakePanelsView.updatePosition(),o&&(this._singleViewMode=!0)}_getBalloonPosition(){let t=Array.from(this._visibleStack.values()).pop().position;return t&&(t.limiter||(t=Object.assign({},t,{limiter:this.positionLimiter})),t=Object.assign({},t,{viewportOffsetConfig:this.editor.ui.viewportOffset})),t}}class sm extends Jd{constructor(t){super(t);const e=t.t,n=this.bindTemplate;this.set("isNavigationVisible",!0),this.focusTracker=new za,this.buttonPrevView=this._createButtonView(e("Previous"),''),this.buttonNextView=this._createButtonView(e("Next"),''),this.content=this.createCollection(),this.setTemplate({tag:"div",attributes:{class:["ck","ck-balloon-rotator"],"z-index":"-1"},children:[{tag:"div",attributes:{class:["ck-balloon-rotator__navigation",n.to("isNavigationVisible",(t=>t?"":"ck-hidden"))]},children:[this.buttonPrevView,{tag:"span",attributes:{class:["ck-balloon-rotator__counter"]},children:[{text:n.to("counter")}]},this.buttonNextView]},{tag:"div",attributes:{class:"ck-balloon-rotator__content"},children:this.content}]})}render(){super.render(),this.focusTracker.add(this.element)}destroy(){super.destroy(),this.focusTracker.destroy()}showView(t){this.hideView(),this.content.add(t)}hideView(){this.content.clear()}_createButtonView(t,e){const n=new Su(this.locale);return n.set({label:t,icon:e,tooltip:!0}),n}}class am extends Jd{constructor(t,e){super(t);const n=this.bindTemplate;this.set("top",0),this.set("left",0),this.set("height",0),this.set("width",0),this.set("numberOfPanels",0),this.content=this.createCollection(),this._balloonPanelView=e,this.setTemplate({tag:"div",attributes:{class:["ck-fake-panel",n.to("numberOfPanels",(t=>t?"":"ck-hidden"))],style:{top:n.to("top",im),left:n.to("left",im),width:n.to("width",im),height:n.to("height",im)}},children:this.content}),this.on("change:numberOfPanels",((t,e,n,o)=>{n>o?this._addPanels(n-o):this._removePanels(o-n),this.updatePosition()}))}_addPanels(t){for(;t--;){const t=new Jd;t.setTemplate({tag:"div"}),this.content.add(t),this.registerChild(t)}}_removePanels(t){for(;t--;){const t=this.content.last;this.content.remove(t),this.deregisterChild(t),t.destroy()}}updatePosition(){if(this.numberOfPanels){const{top:t,left:e}=this._balloonPanelView,{width:n,height:o}=new Da(this._balloonPanelView.element);Object.assign(this,{top:t,left:e,width:n,height:o})}}}var lm=n(3609),cm={attributes:{"data-cke":!0}};cm.setAttributes=is(),cm.insert=ns().bind(null,"head"),cm.domAPI=ts(),cm.insertStyleElement=ss();Jr()(lm.Z,cm);lm.Z&&lm.Z.locals&&lm.Z.locals;const dm=Zh("px");class um extends Jd{constructor(t){super(t);const e=this.bindTemplate;this.set("isActive",!1),this.set("isSticky",!1),this.set("limiterElement",null),this.set("limiterBottomOffset",50),this.set("viewportTopOffset",0),this.set("_marginLeft",null),this.set("_isStickyToTheLimiter",!1),this.set("_hasViewportTopOffset",!1),this.content=this.createCollection(),this._contentPanelPlaceholder=new Xd({tag:"div",attributes:{class:["ck","ck-sticky-panel__placeholder"],style:{display:e.to("isSticky",(t=>t?"block":"none")),height:e.to("isSticky",(t=>t?dm(this._panelRect.height):null))}}}).render(),this._contentPanel=new Xd({tag:"div",attributes:{class:["ck","ck-sticky-panel__content",e.if("isSticky","ck-sticky-panel__content_sticky"),e.if("_isStickyToTheLimiter","ck-sticky-panel__content_sticky_bottom-limit")],style:{width:e.to("isSticky",(t=>t?dm(this._contentPanelPlaceholder.getBoundingClientRect().width):null)),top:e.to("_hasViewportTopOffset",(t=>t?dm(this.viewportTopOffset):null)),bottom:e.to("_isStickyToTheLimiter",(t=>t?dm(this.limiterBottomOffset):null)),marginLeft:e.to("_marginLeft")}},children:this.content}).render(),this.setTemplate({tag:"div",attributes:{class:["ck","ck-sticky-panel"]},children:[this._contentPanelPlaceholder,this._contentPanel]})}render(){super.render(),this._checkIfShouldBeSticky(),this.listenTo(ms.window,"scroll",(()=>{this._checkIfShouldBeSticky()})),this.listenTo(this,"change:isActive",(()=>{this._checkIfShouldBeSticky()}))}_checkIfShouldBeSticky(){const t=this._panelRect=this._contentPanel.getBoundingClientRect();let e;this.limiterElement?(e=this._limiterRect=this.limiterElement.getBoundingClientRect(),this.isSticky=this.isActive&&e.topwm(s,t)))),fm.get(s).set(n,{text:o,isDirectHost:i,keepOnFocus:r,hostElement:i?n:null}),e.change((t=>wm(s,t)))}function km(t,e){return!!e.hasClass("ck-placeholder")&&(t.removeClass("ck-placeholder",e),!0)}function wm(t,e){const n=fm.get(t),o=[];let i=!1;for(const[t,r]of n)r.isDirectHost&&(o.push(t),Am(e,t,r)&&(i=!0));for(const[t,r]of n){if(r.isDirectHost)continue;const n=Cm(t);n&&(o.includes(n)||(r.hostElement=n,Am(e,t,r)&&(i=!0)))}return i}function Am(t,e,n){const{text:o,isDirectHost:i,hostElement:r}=n;let s=!1;r.getAttribute("data-placeholder")!==o&&(t.setAttribute("data-placeholder",o,r),s=!0);return(i||1==e.childCount)&&function(t,e){if(!t.isAttached())return!1;const n=Array.from(t.getChildren()).some((t=>!t.is("uiElement")));if(n)return!1;if(e)return!0;const o=t.document;if(!o.isFocused)return!0;const i=o.selection.anchor;return i&&i.parent!==t}(r,n.keepOnFocus)?function(t,e){return!e.hasClass("ck-placeholder")&&(t.addClass("ck-placeholder",e),!0)}(t,r)&&(s=!0):km(t,r)&&(s=!0),s}function Cm(t){if(t.childCount){const e=t.getChild(0);if(e.is("element")&&!e.is("uiElement")&&!e.is("attributeElement"))return e}return null}const _m=new Map;function vm(t,e,n){let o=_m.get(t);o||(o=new Map,_m.set(t,o)),o.set(e,n)}function ym(t){return[t]}function xm(t,e,n={}){const o=function(t,e){const n=_m.get(t);return n&&n.has(e)?n.get(e):ym}(t.constructor,e.constructor);try{return o(t=t.clone(),e,n)}catch(t){throw t}}function Em(t,e,n){t=t.slice(),e=e.slice();const o=new Dm(n.document,n.useRelations,n.forceWeakRemove);o.setOriginalOperations(t),o.setOriginalOperations(e);const i=o.originalOperations;if(0==t.length||0==e.length)return{operationsA:t,operationsB:e,originalOperations:i};const r=new WeakMap;for(const e of t)r.set(e,0);const s={nextBaseVersionA:t[t.length-1].baseVersion+1,nextBaseVersionB:e[e.length-1].baseVersion+1,originalOperationsACount:t.length,originalOperationsBCount:e.length};let a=0;for(;a{if(t.key===e.key&&t.range.start.hasSameParentAs(e.range.start)){const o=t.range.getDifference(e.range).map((e=>new Bc(e,t.key,t.oldValue,t.newValue,0))),i=t.range.getIntersection(e.range);return i&&n.aIsStrong&&o.push(new Bc(i,e.key,e.newValue,t.newValue,0)),0==o.length?[new ld(0)]:o}return[t]})),vm(Bc,Pc,((t,e)=>{if(t.range.start.hasSameParentAs(e.position)&&t.range.containsPosition(e.position)){const n=t.range._getTransformedByInsertion(e.position,e.howMany,!e.shouldReceiveAttributes).map((e=>new Bc(e,t.key,t.oldValue,t.newValue,t.baseVersion)));if(e.shouldReceiveAttributes){const o=Tm(e,t.key,t.oldValue);o&&n.unshift(o)}return n}return t.range=t.range._getTransformedByInsertion(e.position,e.howMany,!1)[0],[t]})),vm(Bc,jc,((t,e)=>{const n=[];t.range.start.hasSameParentAs(e.deletionPosition)&&(t.range.containsPosition(e.deletionPosition)||t.range.start.isEqual(e.deletionPosition))&&n.push(rl._createFromPositionAndShift(e.graveyardPosition,1));const o=t.range._getTransformedByMergeOperation(e);return o.isCollapsed||n.push(o),n.map((e=>new Bc(e,t.key,t.oldValue,t.newValue,t.baseVersion)))})),vm(Bc,zc,((t,e)=>{const n=function(t,e){const n=rl._createFromPositionAndShift(e.sourcePosition,e.howMany);let o=null,i=[];n.containsRange(t,!0)?o=t:t.start.hasSameParentAs(n.start)?(i=t.getDifference(n),o=t.getIntersection(n)):i=[t];const r=[];for(let t of i){t=t._getTransformedByDeletion(e.sourcePosition,e.howMany);const n=e.getMovedRangeStart(),o=t.start.hasSameParentAs(n);t=t._getTransformedByInsertion(n,e.howMany,o),r.push(...t)}o&&r.push(o._getTransformedByMove(e.sourcePosition,e.targetPosition,e.howMany,!1)[0]);return r}(t.range,e);return n.map((e=>new Bc(e,t.key,t.oldValue,t.newValue,t.baseVersion)))})),vm(Bc,Vc,((t,e)=>{if(t.range.end.isEqual(e.insertionPosition))return e.graveyardPosition||t.range.end.offset++,[t];if(t.range.start.hasSameParentAs(e.splitPosition)&&t.range.containsPosition(e.splitPosition)){const n=t.clone();return n.range=new rl(e.moveTargetPosition.clone(),t.range.end._getCombined(e.splitPosition,e.moveTargetPosition)),t.range.end=e.splitPosition.clone(),t.range.end.stickiness="toPrevious",[t,n]}return t.range=t.range._getTransformedBySplitOperation(e),[t]})),vm(Pc,Bc,((t,e)=>{const n=[t];if(t.shouldReceiveAttributes&&t.position.hasSameParentAs(e.range.start)&&e.range.containsPosition(t.position)){const o=Tm(t,e.key,e.newValue);o&&n.push(o)}return n})),vm(Pc,Pc,((t,e,n)=>(t.position.isEqual(e.position)&&n.aIsStrong||(t.position=t.position._getTransformedByInsertOperation(e)),[t]))),vm(Pc,zc,((t,e)=>(t.position=t.position._getTransformedByMoveOperation(e),[t]))),vm(Pc,Vc,((t,e)=>(t.position=t.position._getTransformedBySplitOperation(e),[t]))),vm(Pc,jc,((t,e)=>(t.position=t.position._getTransformedByMergeOperation(e),[t]))),vm(Lc,Pc,((t,e)=>(t.oldRange&&(t.oldRange=t.oldRange._getTransformedByInsertOperation(e)[0]),t.newRange&&(t.newRange=t.newRange._getTransformedByInsertOperation(e)[0]),[t]))),vm(Lc,Lc,((t,e,n)=>{if(t.name==e.name){if(!n.aIsStrong)return[new ld(0)];t.oldRange=e.newRange?e.newRange.clone():null}return[t]})),vm(Lc,jc,((t,e)=>(t.oldRange&&(t.oldRange=t.oldRange._getTransformedByMergeOperation(e)),t.newRange&&(t.newRange=t.newRange._getTransformedByMergeOperation(e)),[t]))),vm(Lc,zc,((t,e,n)=>{if(t.oldRange&&(t.oldRange=rl._createFromRanges(t.oldRange._getTransformedByMoveOperation(e))),t.newRange){if(n.abRelation){const o=rl._createFromRanges(t.newRange._getTransformedByMoveOperation(e));if("left"==n.abRelation.side&&e.targetPosition.isEqual(t.newRange.start))return t.newRange.start.path=n.abRelation.path,t.newRange.end=o.end,[t];if("right"==n.abRelation.side&&e.targetPosition.isEqual(t.newRange.end))return t.newRange.start=o.start,t.newRange.end.path=n.abRelation.path,[t]}t.newRange=rl._createFromRanges(t.newRange._getTransformedByMoveOperation(e))}return[t]})),vm(Lc,Vc,((t,e,n)=>{if(t.oldRange&&(t.oldRange=t.oldRange._getTransformedBySplitOperation(e)),t.newRange){if(n.abRelation){const o=t.newRange._getTransformedBySplitOperation(e);return t.newRange.start.isEqual(e.splitPosition)&&n.abRelation.wasStartBeforeMergedElement?t.newRange.start=el._createAt(e.insertionPosition):t.newRange.start.isEqual(e.splitPosition)&&!n.abRelation.wasInLeftElement&&(t.newRange.start=el._createAt(e.moveTargetPosition)),t.newRange.end.isEqual(e.splitPosition)&&n.abRelation.wasInRightElement?t.newRange.end=el._createAt(e.moveTargetPosition):t.newRange.end.isEqual(e.splitPosition)&&n.abRelation.wasEndBeforeMergedElement?t.newRange.end=el._createAt(e.insertionPosition):t.newRange.end=o.end,[t]}t.newRange=t.newRange._getTransformedBySplitOperation(e)}return[t]})),vm(jc,Pc,((t,e)=>(t.sourcePosition.hasSameParentAs(e.position)&&(t.howMany+=e.howMany),t.sourcePosition=t.sourcePosition._getTransformedByInsertOperation(e),t.targetPosition=t.targetPosition._getTransformedByInsertOperation(e),[t]))),vm(jc,jc,((t,e,n)=>{if(t.sourcePosition.isEqual(e.sourcePosition)&&t.targetPosition.isEqual(e.targetPosition)){if(n.bWasUndone){const n=e.graveyardPosition.path.slice();return n.push(0),t.sourcePosition=new el(e.graveyardPosition.root,n),t.howMany=0,[t]}return[new ld(0)]}if(t.sourcePosition.isEqual(e.sourcePosition)&&!t.targetPosition.isEqual(e.targetPosition)&&!n.bWasUndone&&"splitAtSource"!=n.abRelation){const o="$graveyard"==t.targetPosition.root.rootName,i="$graveyard"==e.targetPosition.root.rootName,r=o&&!i;if(i&&!o||!r&&n.aIsStrong){const n=e.targetPosition._getTransformedByMergeOperation(e),o=t.targetPosition._getTransformedByMergeOperation(e);return[new zc(n,t.howMany,o,0)]}return[new ld(0)]}return t.sourcePosition.hasSameParentAs(e.targetPosition)&&(t.howMany+=e.howMany),t.sourcePosition=t.sourcePosition._getTransformedByMergeOperation(e),t.targetPosition=t.targetPosition._getTransformedByMergeOperation(e),t.graveyardPosition.isEqual(e.graveyardPosition)&&n.aIsStrong||(t.graveyardPosition=t.graveyardPosition._getTransformedByMergeOperation(e)),[t]})),vm(jc,zc,((t,e,n)=>{const o=rl._createFromPositionAndShift(e.sourcePosition,e.howMany);return"remove"==e.type&&!n.bWasUndone&&!n.forceWeakRemove&&t.deletionPosition.hasSameParentAs(e.sourcePosition)&&o.containsPosition(t.sourcePosition)?[new ld(0)]:(t.sourcePosition.hasSameParentAs(e.targetPosition)&&(t.howMany+=e.howMany),t.sourcePosition.hasSameParentAs(e.sourcePosition)&&(t.howMany-=e.howMany),t.sourcePosition=t.sourcePosition._getTransformedByMoveOperation(e),t.targetPosition=t.targetPosition._getTransformedByMoveOperation(e),t.graveyardPosition.isEqual(e.targetPosition)||(t.graveyardPosition=t.graveyardPosition._getTransformedByMoveOperation(e)),[t])})),vm(jc,Vc,((t,e,n)=>{if(e.graveyardPosition&&(t.graveyardPosition=t.graveyardPosition._getTransformedByDeletion(e.graveyardPosition,1),t.deletionPosition.isEqual(e.graveyardPosition)&&(t.howMany=e.howMany)),t.targetPosition.isEqual(e.splitPosition)){const o=0!=e.howMany,i=e.graveyardPosition&&t.deletionPosition.isEqual(e.graveyardPosition);if(o||i||"mergeTargetNotMoved"==n.abRelation)return t.sourcePosition=t.sourcePosition._getTransformedBySplitOperation(e),[t]}if(t.sourcePosition.isEqual(e.splitPosition)){if("mergeSourceNotMoved"==n.abRelation)return t.howMany=0,t.targetPosition=t.targetPosition._getTransformedBySplitOperation(e),[t];if("mergeSameElement"==n.abRelation||t.sourcePosition.offset>0)return t.sourcePosition=e.moveTargetPosition.clone(),t.targetPosition=t.targetPosition._getTransformedBySplitOperation(e),[t]}return t.sourcePosition.hasSameParentAs(e.splitPosition)&&(t.howMany=e.splitPosition.offset),t.sourcePosition=t.sourcePosition._getTransformedBySplitOperation(e),t.targetPosition=t.targetPosition._getTransformedBySplitOperation(e),[t]})),vm(zc,Pc,((t,e)=>{const n=rl._createFromPositionAndShift(t.sourcePosition,t.howMany)._getTransformedByInsertOperation(e,!1)[0];return t.sourcePosition=n.start,t.howMany=n.end.offset-n.start.offset,t.targetPosition.isEqual(e.position)||(t.targetPosition=t.targetPosition._getTransformedByInsertOperation(e)),[t]})),vm(zc,zc,((t,e,n)=>{const o=rl._createFromPositionAndShift(t.sourcePosition,t.howMany),i=rl._createFromPositionAndShift(e.sourcePosition,e.howMany);let r,s=n.aIsStrong,a=!n.aIsStrong;if("insertBefore"==n.abRelation||"insertAfter"==n.baRelation?a=!0:"insertAfter"!=n.abRelation&&"insertBefore"!=n.baRelation||(a=!1),r=t.targetPosition.isEqual(e.targetPosition)&&a?t.targetPosition._getTransformedByDeletion(e.sourcePosition,e.howMany):t.targetPosition._getTransformedByMove(e.sourcePosition,e.targetPosition,e.howMany),Mm(t,e)&&Mm(e,t))return[e.getReversed()];if(o.containsPosition(e.targetPosition)&&o.containsRange(i,!0))return o.start=o.start._getTransformedByMove(e.sourcePosition,e.targetPosition,e.howMany),o.end=o.end._getTransformedByMove(e.sourcePosition,e.targetPosition,e.howMany),Bm([o],r);if(i.containsPosition(t.targetPosition)&&i.containsRange(o,!0))return o.start=o.start._getCombined(e.sourcePosition,e.getMovedRangeStart()),o.end=o.end._getCombined(e.sourcePosition,e.getMovedRangeStart()),Bm([o],r);const l=Eo(t.sourcePosition.getParentPath(),e.sourcePosition.getParentPath());if("prefix"==l||"extension"==l)return o.start=o.start._getTransformedByMove(e.sourcePosition,e.targetPosition,e.howMany),o.end=o.end._getTransformedByMove(e.sourcePosition,e.targetPosition,e.howMany),Bm([o],r);"remove"!=t.type||"remove"==e.type||n.aWasUndone||n.forceWeakRemove?"remove"==t.type||"remove"!=e.type||n.bWasUndone||n.forceWeakRemove||(s=!1):s=!0;const c=[],d=o.getDifference(i);for(const t of d){t.start=t.start._getTransformedByDeletion(e.sourcePosition,e.howMany),t.end=t.end._getTransformedByDeletion(e.sourcePosition,e.howMany);const n="same"==Eo(t.start.getParentPath(),e.getMovedRangeStart().getParentPath()),o=t._getTransformedByInsertion(e.getMovedRangeStart(),e.howMany,n);c.push(...o)}const u=o.getIntersection(i);return null!==u&&s&&(u.start=u.start._getCombined(e.sourcePosition,e.getMovedRangeStart()),u.end=u.end._getCombined(e.sourcePosition,e.getMovedRangeStart()),0===c.length?c.push(u):1==c.length?i.start.isBefore(o.start)||i.start.isEqual(o.start)?c.unshift(u):c.push(u):c.splice(1,0,u)),0===c.length?[new ld(t.baseVersion)]:Bm(c,r)})),vm(zc,Vc,((t,e,n)=>{let o=t.targetPosition.clone();t.targetPosition.isEqual(e.insertionPosition)&&e.graveyardPosition&&"moveTargetAfter"!=n.abRelation||(o=t.targetPosition._getTransformedBySplitOperation(e));const i=rl._createFromPositionAndShift(t.sourcePosition,t.howMany);if(i.end.isEqual(e.insertionPosition))return e.graveyardPosition||t.howMany++,t.targetPosition=o,[t];if(i.start.hasSameParentAs(e.splitPosition)&&i.containsPosition(e.splitPosition)){let t=new rl(e.splitPosition,i.end);t=t._getTransformedBySplitOperation(e);return Bm([new rl(i.start,e.splitPosition),t],o)}t.targetPosition.isEqual(e.splitPosition)&&"insertAtSource"==n.abRelation&&(o=e.moveTargetPosition),t.targetPosition.isEqual(e.insertionPosition)&&"insertBetween"==n.abRelation&&(o=t.targetPosition);const r=[i._getTransformedBySplitOperation(e)];if(e.graveyardPosition){const o=i.start.isEqual(e.graveyardPosition)||i.containsPosition(e.graveyardPosition);t.howMany>1&&o&&!n.aWasUndone&&r.push(rl._createFromPositionAndShift(e.insertionPosition,1))}return Bm(r,o)})),vm(zc,jc,((t,e,n)=>{const o=rl._createFromPositionAndShift(t.sourcePosition,t.howMany);if(e.deletionPosition.hasSameParentAs(t.sourcePosition)&&o.containsPosition(e.sourcePosition))if("remove"!=t.type||n.forceWeakRemove){if(1==t.howMany)return n.bWasUndone?(t.sourcePosition=e.graveyardPosition.clone(),t.targetPosition=t.targetPosition._getTransformedByMergeOperation(e),[t]):[new ld(0)]}else if(!n.aWasUndone){const n=[];let o=e.graveyardPosition.clone(),i=e.targetPosition._getTransformedByMergeOperation(e);t.howMany>1&&(n.push(new zc(t.sourcePosition,t.howMany-1,t.targetPosition,0)),o=o._getTransformedByMove(t.sourcePosition,t.targetPosition,t.howMany-1),i=i._getTransformedByMove(t.sourcePosition,t.targetPosition,t.howMany-1));const r=e.deletionPosition._getCombined(t.sourcePosition,t.targetPosition),s=new zc(o,1,r,0),a=s.getMovedRangeStart().path.slice();a.push(0);const l=new el(s.targetPosition.root,a);i=i._getTransformedByMove(o,r,1);const c=new zc(i,e.howMany,l,0);return n.push(s),n.push(c),n}const i=rl._createFromPositionAndShift(t.sourcePosition,t.howMany)._getTransformedByMergeOperation(e);return t.sourcePosition=i.start,t.howMany=i.end.offset-i.start.offset,t.targetPosition=t.targetPosition._getTransformedByMergeOperation(e),[t]})),vm(Oc,Pc,((t,e)=>(t.position=t.position._getTransformedByInsertOperation(e),[t]))),vm(Oc,jc,((t,e)=>t.position.isEqual(e.deletionPosition)?(t.position=e.graveyardPosition.clone(),t.position.stickiness="toNext",[t]):(t.position=t.position._getTransformedByMergeOperation(e),[t]))),vm(Oc,zc,((t,e)=>(t.position=t.position._getTransformedByMoveOperation(e),[t]))),vm(Oc,Oc,((t,e,n)=>{if(t.position.isEqual(e.position)){if(!n.aIsStrong)return[new ld(0)];t.oldName=e.newName}return[t]})),vm(Oc,Vc,((t,e)=>{if("same"==Eo(t.position.path,e.splitPosition.getParentPath())&&!e.graveyardPosition){const e=new Oc(t.position.getShiftedBy(1),t.oldName,t.newName,0);return[t,e]}return t.position=t.position._getTransformedBySplitOperation(e),[t]})),vm(Rc,Rc,((t,e,n)=>{if(t.root===e.root&&t.key===e.key){if(!n.aIsStrong||t.newValue===e.newValue)return[new ld(0)];t.oldValue=e.newValue}return[t]})),vm(Vc,Pc,((t,e)=>(t.splitPosition.hasSameParentAs(e.position)&&t.splitPosition.offset{if(!t.graveyardPosition&&!n.bWasUndone&&t.splitPosition.hasSameParentAs(e.sourcePosition)){const n=e.graveyardPosition.path.slice();n.push(0);const o=new el(e.graveyardPosition.root,n),i=Vc.getInsertionPosition(new el(e.graveyardPosition.root,n)),r=new Vc(o,0,i,null,0);return t.splitPosition=t.splitPosition._getTransformedByMergeOperation(e),t.insertionPosition=Vc.getInsertionPosition(t.splitPosition),t.graveyardPosition=r.insertionPosition.clone(),t.graveyardPosition.stickiness="toNext",[r,t]}return t.splitPosition.hasSameParentAs(e.deletionPosition)&&!t.splitPosition.isAfter(e.deletionPosition)&&t.howMany--,t.splitPosition.hasSameParentAs(e.targetPosition)&&(t.howMany+=e.howMany),t.splitPosition=t.splitPosition._getTransformedByMergeOperation(e),t.insertionPosition=Vc.getInsertionPosition(t.splitPosition),t.graveyardPosition&&(t.graveyardPosition=t.graveyardPosition._getTransformedByMergeOperation(e)),[t]})),vm(Vc,zc,((t,e,n)=>{const o=rl._createFromPositionAndShift(e.sourcePosition,e.howMany);if(t.graveyardPosition){const i=o.start.isEqual(t.graveyardPosition)||o.containsPosition(t.graveyardPosition);if(!n.bWasUndone&&i){const n=t.splitPosition._getTransformedByMoveOperation(e),o=t.graveyardPosition._getTransformedByMoveOperation(e),i=o.path.slice();i.push(0);const r=new el(o.root,i);return[new zc(n,t.howMany,r,0)]}t.graveyardPosition=t.graveyardPosition._getTransformedByMoveOperation(e)}const i=t.splitPosition.isEqual(e.targetPosition);if(i&&("insertAtSource"==n.baRelation||"splitBefore"==n.abRelation))return t.howMany+=e.howMany,t.splitPosition=t.splitPosition._getTransformedByDeletion(e.sourcePosition,e.howMany),t.insertionPosition=Vc.getInsertionPosition(t.splitPosition),[t];if(i&&n.abRelation&&n.abRelation.howMany){const{howMany:e,offset:o}=n.abRelation;return t.howMany+=e,t.splitPosition=t.splitPosition.getShiftedBy(o),[t]}if(t.splitPosition.hasSameParentAs(e.sourcePosition)&&o.containsPosition(t.splitPosition)){const n=e.howMany-(t.splitPosition.offset-e.sourcePosition.offset);return t.howMany-=n,t.splitPosition.hasSameParentAs(e.targetPosition)&&t.splitPosition.offset{if(t.splitPosition.isEqual(e.splitPosition)){if(!t.graveyardPosition&&!e.graveyardPosition)return[new ld(0)];if(t.graveyardPosition&&e.graveyardPosition&&t.graveyardPosition.isEqual(e.graveyardPosition))return[new ld(0)];if("splitBefore"==n.abRelation)return t.howMany=0,t.graveyardPosition=t.graveyardPosition._getTransformedBySplitOperation(e),[t]}if(t.graveyardPosition&&e.graveyardPosition&&t.graveyardPosition.isEqual(e.graveyardPosition)){const o="$graveyard"==t.splitPosition.root.rootName,i="$graveyard"==e.splitPosition.root.rootName,r=o&&!i;if(i&&!o||!r&&n.aIsStrong){const n=[];return e.howMany&&n.push(new zc(e.moveTargetPosition,e.howMany,e.splitPosition,0)),t.howMany&&n.push(new zc(t.splitPosition,t.howMany,t.moveTargetPosition,0)),n}return[new ld(0)]}if(t.graveyardPosition&&(t.graveyardPosition=t.graveyardPosition._getTransformedBySplitOperation(e)),t.splitPosition.isEqual(e.insertionPosition)&&"splitBefore"==n.abRelation)return t.howMany++,[t];if(e.splitPosition.isEqual(t.insertionPosition)&&"splitBefore"==n.baRelation){const n=e.insertionPosition.path.slice();n.push(0);const o=new el(e.insertionPosition.root,n);return[t,new zc(t.insertionPosition,1,o,0)]}return t.splitPosition.hasSameParentAs(e.splitPosition)&&t.splitPosition.offset{const{top:n,right:o,bottom:i,left:r}=e,s=[];return[n,o,r,i].every((t=>!!t))?s.push([t,ig(e)]):(n&&s.push([t+"-top",n]),o&&s.push([t+"-right",o]),i&&s.push([t+"-bottom",i]),r&&s.push([t+"-left",r])),s}}function ig({top:t,right:e,bottom:n,left:o}){const i=[];return o!==e?i.push(t,e,n,o):n!==t?i.push(t,e,n):e!==t?i.push(t,e):i.push(t),i.join(" ")}function rg(t){return e=>({path:t,value:ng(e)})}function sg(t){return t.replace(/, /g,",").split(" ").map((t=>t.replace(/,/g,", ")))}function ag(t){t.setNormalizer("background",lg),t.setNormalizer("background-color",(t=>({path:"background.color",value:t}))),t.setReducer("background",(t=>{const e=[];return e.push(["background-color",t.color]),e})),t.setStyleRelation("background",["background-color"])}function lg(t){const e={},n=sg(t);for(const t of n)o=t,Km.includes(o)?(e.repeat=e.repeat||[],e.repeat.push(t)):Qm(t)?(e.position=e.position||[],e.position.push(t)):Xm(t)?e.attachment=t:Hm(t)?e.color=t:eg(t)&&(e.image=t);var o;return{path:"background",value:e}}function cg(t){t.setNormalizer("border",dg),t.setNormalizer("border-top",ug("top")),t.setNormalizer("border-right",ug("right")),t.setNormalizer("border-bottom",ug("bottom")),t.setNormalizer("border-left",ug("left")),t.setNormalizer("border-color",hg("color")),t.setNormalizer("border-width",hg("width")),t.setNormalizer("border-style",hg("style")),t.setNormalizer("border-top-color",gg("color","top")),t.setNormalizer("border-top-style",gg("style","top")),t.setNormalizer("border-top-width",gg("width","top")),t.setNormalizer("border-right-color",gg("color","right")),t.setNormalizer("border-right-style",gg("style","right")),t.setNormalizer("border-right-width",gg("width","right")),t.setNormalizer("border-bottom-color",gg("color","bottom")),t.setNormalizer("border-bottom-style",gg("style","bottom")),t.setNormalizer("border-bottom-width",gg("width","bottom")),t.setNormalizer("border-left-color",gg("color","left")),t.setNormalizer("border-left-style",gg("style","left")),t.setNormalizer("border-left-width",gg("width","left")),t.setExtractor("border-top",pg("top")),t.setExtractor("border-right",pg("right")),t.setExtractor("border-bottom",pg("bottom")),t.setExtractor("border-left",pg("left")),t.setExtractor("border-top-color","border.color.top"),t.setExtractor("border-right-color","border.color.right"),t.setExtractor("border-bottom-color","border.color.bottom"),t.setExtractor("border-left-color","border.color.left"),t.setExtractor("border-top-width","border.width.top"),t.setExtractor("border-right-width","border.width.right"),t.setExtractor("border-bottom-width","border.width.bottom"),t.setExtractor("border-left-width","border.width.left"),t.setExtractor("border-top-style","border.style.top"),t.setExtractor("border-right-style","border.style.right"),t.setExtractor("border-bottom-style","border.style.bottom"),t.setExtractor("border-left-style","border.style.left"),t.setReducer("border-color",og("border-color")),t.setReducer("border-style",og("border-style")),t.setReducer("border-width",og("border-width")),t.setReducer("border-top",kg("top")),t.setReducer("border-right",kg("right")),t.setReducer("border-bottom",kg("bottom")),t.setReducer("border-left",kg("left")),t.setReducer("border",function(){return e=>{const n=fg(e,"top"),o=fg(e,"right"),i=fg(e,"bottom"),r=fg(e,"left"),s=[n,o,i,r],a={width:t(s,"width"),style:t(s,"style"),color:t(s,"color")},l=wg(a,"all");if(l.length)return l;const c=Object.entries(a).reduce(((t,[e,n])=>(n&&(t.push([`border-${e}`,n]),s.forEach((t=>t[e]=null))),t)),[]);return[...c,...wg(n,"top"),...wg(o,"right"),...wg(i,"bottom"),...wg(r,"left")]};function t(t,e){return t.map((t=>t[e])).reduce(((t,e)=>t==e?t:null))}}()),t.setStyleRelation("border",["border-color","border-style","border-width","border-top","border-right","border-bottom","border-left","border-top-color","border-right-color","border-bottom-color","border-left-color","border-top-style","border-right-style","border-bottom-style","border-left-style","border-top-width","border-right-width","border-bottom-width","border-left-width"]),t.setStyleRelation("border-color",["border-top-color","border-right-color","border-bottom-color","border-left-color"]),t.setStyleRelation("border-style",["border-top-style","border-right-style","border-bottom-style","border-left-style"]),t.setStyleRelation("border-width",["border-top-width","border-right-width","border-bottom-width","border-left-width"]),t.setStyleRelation("border-top",["border-top-color","border-top-style","border-top-width"]),t.setStyleRelation("border-right",["border-right-color","border-right-style","border-right-width"]),t.setStyleRelation("border-bottom",["border-bottom-color","border-bottom-style","border-bottom-width"]),t.setStyleRelation("border-left",["border-left-color","border-left-style","border-left-width"])}function dg(t){const{color:e,style:n,width:o}=bg(t);return{path:"border",value:{color:ng(e),style:ng(n),width:ng(o)}}}function ug(t){return e=>{const{color:n,style:o,width:i}=bg(e),r={};return void 0!==n&&(r.color={[t]:n}),void 0!==o&&(r.style={[t]:o}),void 0!==i&&(r.width={[t]:i}),{path:"border",value:r}}}function hg(t){return e=>({path:"border",value:mg(e,t)})}function mg(t,e){return{[e]:ng(t)}}function gg(t,e){return n=>({path:"border",value:{[t]:{[e]:n}}})}function pg(t){return(e,n)=>{if(n.border)return fg(n.border,t)}}function fg(t,e){const n={};return t.width&&t.width[e]&&(n.width=t.width[e]),t.style&&t.style[e]&&(n.style=t.style[e]),t.color&&t.color[e]&&(n.color=t.color[e]),n}function bg(t){const e={},n=sg(t);for(const t of n)Wm(t)||/thin|medium|thick/.test(t)?e.width=t:qm(t)?e.style=t:e.color=t;return e}function kg(t){return e=>wg(e,t)}function wg(t,e){const n=[];if(t&&t.width&&n.push("width"),t&&t.style&&n.push("style"),t&&t.color&&n.push("color"),3==n.length){const o=n.map((e=>t[e])).join(" ");return["all"==e?["border",o]:[`border-${e}`,o]]}return"all"==e?[]:n.map((n=>[`border-${e}-${n}`,t[n]]))}function Ag(t){t.setNormalizer("margin",rg("margin")),t.setNormalizer("margin-top",(t=>({path:"margin.top",value:t}))),t.setNormalizer("margin-right",(t=>({path:"margin.right",value:t}))),t.setNormalizer("margin-bottom",(t=>({path:"margin.bottom",value:t}))),t.setNormalizer("margin-left",(t=>({path:"margin.left",value:t}))),t.setReducer("margin",og("margin")),t.setStyleRelation("margin",["margin-top","margin-right","margin-bottom","margin-left"])}function Cg(t){t.setNormalizer("padding",rg("padding")),t.setNormalizer("padding-top",(t=>({path:"padding.top",value:t}))),t.setNormalizer("padding-right",(t=>({path:"padding.right",value:t}))),t.setNormalizer("padding-bottom",(t=>({path:"padding.bottom",value:t}))),t.setNormalizer("padding-left",(t=>({path:"padding.left",value:t}))),t.setReducer("padding",og("padding")),t.setStyleRelation("padding",["padding-top","padding-right","padding-bottom","padding-left"])}class _g extends Od{constructor(t,e){super(t),this.view=e,this._toolbarConfig=nh(t.config.get("toolbar")),this._elementReplacer=new Ca}get element(){return this.view.element}init(t){const e=this.editor,n=this.view,o=e.editing.view,i=n.editable,r=o.document.getRoot();i.name=r.rootName,n.render();const s=i.element;this.setEditableElement(i.name,s),this.focusTracker.add(s),n.editable.bind("isFocused").to(this.focusTracker),o.attachDomRoot(s),t&&this._elementReplacer.replace(t,this.element),this._initPlaceholder(),this._initToolbar(),this.fire("ready")}destroy(){const t=this.view,e=this.editor.editing.view;this._elementReplacer.restore(),e.detachDomRoot(t.editable.name),t.destroy(),super.destroy()}_initToolbar(){const t=this.editor,e=this.view,n=t.editing.view;e.stickyPanel.bind("isActive").to(this.focusTracker,"isFocused"),e.stickyPanel.limiterElement=e.element,e.stickyPanel.bind("viewportTopOffset").to(this,"viewportOffset",(({top:t})=>t)),e.toolbar.fillFromConfig(this._toolbarConfig,this.componentFactory),function({origin:t,originKeystrokeHandler:e,originFocusTracker:n,toolbar:o,beforeFocus:i,afterBlur:r}){n.add(o.element),e.set("Alt+F10",((t,e)=>{n.isFocused&&!o.focusTracker.isFocused&&(i&&i(),o.focus(),e())})),o.keystrokes.set("Esc",((e,n)=>{o.focusTracker.isFocused&&(t.focus(),r&&r(),n())}))}({origin:n,originFocusTracker:this.focusTracker,originKeystrokeHandler:t.keystrokes,toolbar:e.toolbar})}_initPlaceholder(){const t=this.editor,e=t.editing.view,n=e.document.getRoot(),o=t.sourceElement,i=t.config.get("placeholder")||o&&"textarea"===o.tagName.toLowerCase()&&o.getAttribute("placeholder");i&&bm({view:e,element:n,text:i,isDirectHost:!1,keepOnFocus:!0})}}var vg=n(3638),yg={attributes:{"data-cke":!0}};yg.setAttributes=is(),yg.insert=ns().bind(null,"head"),yg.domAPI=ts(),yg.insertStyleElement=ss();Jr()(vg.Z,yg);vg.Z&&vg.Z.locals&&vg.Z.locals;class xg extends Sh{constructor(t,e,n={}){super(t),this.stickyPanel=new um(t),this.toolbar=new rh(t,{shouldGroupWhenFull:n.shouldToolbarGroupWhenFull}),this.editable=new Th(t,e)}render(){super.render(),this.stickyPanel.content.add(this.toolbar),this.top.add(this.stickyPanel),this.main.add(this.editable)}}class Eg extends zd{constructor(t,e={}){if(!uo(t)&&void 0!==e.initialData)throw new l("editor-create-initial-data",null);super(e),void 0===this.config.get("initialData")&&this.config.set("initialData",function(t){return uo(t)?(e=t,e instanceof HTMLTextAreaElement?e.value:e.innerHTML):t;var e}(t)),uo(t)&&(this.sourceElement=t),this.model.document.createRoot();const n=!this.config.get("toolbar.shouldNotGroupWhenFull"),o=new xg(this.locale,this.editing.view,{shouldToolbarGroupWhenFull:n});this.ui=new _g(this,o),function(t){if(!Dt(t.updateSourceElement))throw new l("attachtoform-missing-elementapi-interface",t);const e=t.sourceElement;if(e&&"textarea"===e.tagName.toLowerCase()&&e.form){let n;const o=e.form,i=()=>t.updateSourceElement();Dt(o.submit)&&(n=o.submit,o.submit=()=>{i(),n.apply(o)}),o.addEventListener("submit",i),t.on("destroy",(()=>{o.removeEventListener("submit",i),n&&(o.submit=n)}))}}(this)}destroy(){return this.sourceElement&&this.updateSourceElement(),this.ui.destroy(),super.destroy()}static create(t,e={}){return new Promise((n=>{const o=new this(t,e);n(o.initPlugins().then((()=>o.ui.init(uo(t)?t:null))).then((()=>o.data.init(o.config.get("initialData")))).then((()=>o.fire("ready"))).then((()=>o)))}))}}j(Eg,jd),j(Eg,Fd);const Dg=["left","right","center","justify"];function Sg(t){return Dg.includes(t)}function Ig(t,e){return"rtl"==e.contentLanguageDirection?"right"===t:"left"===t}function Tg(t){const e=t.map((t=>{let e;return e="string"==typeof t?{name:t}:t,e})).filter((t=>{const e=!!Dg.includes(t.name);return e||c("alignment-config-name-not-recognized",{option:t}),e})),n=e.filter((t=>!!t.className)).length;if(n&&n{const i=o.slice(n+1);if(i.some((t=>t.name==e.name)))throw new l("alignment-config-name-already-defined",{option:e,configuredOptions:t});if(e.className){if(i.some((t=>t.className==e.className)))throw new l("alignment-config-classname-already-defined",{option:e,configuredOptions:t})}})),e}const Mg="alignment";class Bg extends H{refresh(){const t=this.editor.locale,e=Ba(this.editor.model.document.selection.getSelectedBlocks());this.isEnabled=!!e&&this._canBeAligned(e),this.isEnabled&&e.hasAttribute("alignment")?this.value=e.getAttribute("alignment"):this.value="rtl"===t.contentLanguageDirection?"right":"left"}execute(t={}){const e=this.editor,n=e.locale,o=e.model,i=o.document,r=t.value;o.change((t=>{const e=Array.from(i.selection.getSelectedBlocks()).filter((t=>this._canBeAligned(t))),o=e[0].getAttribute("alignment");Ig(r,n)||o===r||!r?function(t,e){for(const n of t)e.removeAttribute(Mg,n)}(e,t):function(t,e,n){for(const o of t)e.setAttribute(Mg,n,o)}(e,t,r)}))}_canBeAligned(t){return this.editor.model.schema.checkAttribute(t,Mg)}}class Ng extends V{static get pluginName(){return"AlignmentEditing"}constructor(t){super(t),t.config.define("alignment",{options:[...Dg.map((t=>({name:t})))]})}init(){const t=this.editor,e=t.locale,n=t.model.schema,o=Tg(t.config.get("alignment.options")).filter((t=>Sg(t.name)&&!Ig(t.name,e))),i=o.some((t=>!!t.className));n.extend("$block",{allowAttributes:"alignment"}),t.model.schema.setAttributeProperties("alignment",{isFormatting:!0}),i?t.conversion.attributeToAttribute(function(t){const e={model:{key:"alignment",values:t.map((t=>t.name))},view:{}};for(const n of t)e.view[n.name]={key:"class",value:n.className};return e}(o)):t.conversion.for("downcast").attributeToAttribute(function(t){const e={model:{key:"alignment",values:t.map((t=>t.name))},view:{}};for(const{name:n}of t)e.view[n]={key:"style",value:{"text-align":n}};return e}(o));const r=function(t){const e=[];for(const{name:n}of t)e.push({view:{key:"style",value:{"text-align":n}},model:{key:"alignment",value:n}});return e}(o);for(const e of r)t.conversion.for("upcast").attributeToAttribute(e);const s=function(t){const e=[];for(const{name:n}of t)e.push({view:{key:"align",value:n},model:{key:"alignment",value:n}});return e}(o);for(const e of s)t.conversion.for("upcast").attributeToAttribute(e);t.commands.add("alignment",new Bg(t))}}const zg=new Map([["left",Gd.alignLeft],["right",Gd.alignRight],["center",Gd.alignCenter],["justify",Gd.alignJustify]]);class Pg extends V{get localizedOptionTitles(){const t=this.editor.t;return{left:t("Align left"),right:t("Align right"),center:t("Align center"),justify:t("Justify")}}static get pluginName(){return"AlignmentUI"}init(){const t=this.editor,e=t.ui.componentFactory,n=t.t,o=Tg(t.config.get("alignment.options"));o.map((t=>t.name)).filter(Sg).forEach((t=>this._addButton(t))),e.add("alignment",(i=>{const r=kh(i),s=o.map((t=>e.create(`alignment:${t.name}`)));wh(r,s,{enableActiveItemFocusOnDropdownOpen:!0}),r.buttonView.set({label:n("Text alignment"),tooltip:!0}),r.toolbarView.isVertical=!0,r.toolbarView.ariaLabel=n("Text alignment toolbar"),r.extendTemplate({attributes:{class:"ck-alignment-dropdown"}});const a="rtl"===i.contentLanguageDirection?zg.get("right"):zg.get("left");return r.buttonView.bind("icon").toMany(s,"isOn",((...t)=>{const e=t.findIndex((t=>t));return e<0?a:s[e].icon})),r.bind("isEnabled").toMany(s,"isEnabled",((...t)=>t.some((t=>t)))),this.listenTo(r,"execute",(()=>{t.editing.view.focus()})),r}))}_addButton(t){const e=this.editor;e.ui.componentFactory.add(`alignment:${t}`,(n=>{const o=e.commands.get("alignment"),i=new Su(n);return i.set({label:this.localizedOptionTitles[t],icon:zg.get(t),tooltip:!0,isToggleable:!0}),i.bind("isEnabled").to(o),i.bind("isOn").to(o,"value",(e=>e===t)),this.listenTo(i,"execute",(()=>{e.execute("alignment",{value:t}),e.editing.view.focus()})),i}))}}class Lg{constructor(t,e=20){this.model=t,this.size=0,this.limit=e,this.isLocked=!1,this._changeCallback=(t,e)=>{e.isLocal&&e.isUndoable&&e!==this._batch&&this._reset(!0)},this._selectionChangeCallback=()=>{this._reset()},this.model.document.on("change",this._changeCallback),this.model.document.selection.on("change:range",this._selectionChangeCallback),this.model.document.selection.on("change:attribute",this._selectionChangeCallback)}get batch(){return this._batch||(this._batch=this.model.createBatch({isTyping:!0})),this._batch}input(t){this.size+=t,this.size>=this.limit&&this._reset(!0)}lock(){this.isLocked=!0}unlock(){this.isLocked=!1}destroy(){this.model.document.off("change",this._changeCallback),this.model.document.selection.off("change:range",this._selectionChangeCallback),this.model.document.selection.off("change:attribute",this._selectionChangeCallback)}_reset(t){this.isLocked&&!t||(this._batch=null,this.size=0)}}class Og extends H{constructor(t,e){super(t),this._buffer=new Lg(t.model,e)}get buffer(){return this._buffer}destroy(){super.destroy(),this._buffer.destroy()}execute(t={}){const e=this.editor.model,n=e.document,o=t.text||"",i=o.length,r=t.range?e.createSelection(t.range):n.selection,s=t.resultRange;e.enqueueChange(this._buffer.batch,(t=>{this._buffer.lock(),e.deleteContent(r),o&&e.insertContent(t.createText(o,n.selection.getAttributes()),r),s?t.setSelection(s):r.is("documentSelection")||t.setSelection(r),this._buffer.unlock(),this._buffer.input(i)}))}}function Rg(t){if(t.newChildren.length-t.oldChildren.length!=1)return;const e=function(t,e){const n=[];let o=0,i=null;return t.forEach((t=>{"equal"==t?(r(),o++):"insert"==t?(i&&"insert"==i.type?i.values.push(e[o]):(r(),i={type:"insert",index:o,values:[e[o]]}),o++):i&&"delete"==i.type?i.howMany++:(r(),i={type:"delete",index:o,howMany:1})})),r(),n;function r(){i&&(n.push(i),i=null)}}(Wr(t.oldChildren,t.newChildren,jg),t.newChildren);if(e.length>1)return;const n=e[0];return n.values[0]&&n.values[0].is("$text")?n:void 0}function jg(t,e){return t&&t.is("$text")&&e&&e.is("$text")?t.data===e.data:t===e}function Vg(t,e){const n=e.selection,o=t.shiftKey&&t.keyCode===ur.delete,i=!n.isCollapsed;return o&&i}const Fg=[mr("arrowUp"),mr("arrowRight"),mr("arrowDown"),mr("arrowLeft"),9,16,17,18,19,20,27,33,34,35,36,45,91,93,144,145,173,174,175,176,177,178,179,255];for(let t=112;t<=135;t++)Fg.push(t);function Hg(t){return!(!t.ctrlKey&&!t.metaKey)||Fg.includes(t.keyCode)}class Ug{constructor(t){this.editor=t,this.editing=this.editor.editing}handle(t,e){if(function(t){if(0==t.length)return!1;for(const e of t)if("children"===e.type&&!Rg(e))return!0;return!1}(t))this._handleContainerChildrenMutations(t,e);else for(const n of t)this._handleTextMutation(n,e),this._handleTextNodeInsertion(n)}_handleContainerChildrenMutations(t,e){const n=function(t){const e=t.map((t=>t.node)).reduce(((t,e)=>t.getCommonAncestor(e,{includeSelf:!0})));if(!e)return;return e.getAncestors({includeSelf:!0,parentFirst:!0}).find((t=>t.is("containerElement")||t.is("rootElement")))}(t);if(!n)return;const o=this.editor.editing.view.domConverter.mapViewToDom(n),i=new Cs(this.editor.editing.view.document),r=this.editor.data.toModel(i.domToView(o)).getChild(0),s=this.editor.editing.mapper.toModelElement(n);if(!s)return;const a=Array.from(r.getChildren()),l=Array.from(s.getChildren()),c=a[a.length-1],d=l[l.length-1],u=c&&c.is("element","softBreak"),h=d&&!d.is("element","softBreak");u&&h&&a.pop();const m=this.editor.model.schema;if(!qg(a,m)||!qg(l,m))return;const g=a.map((t=>t.is("$text")?t.data:"@")).join("").replace(/\u00A0/g," "),p=l.map((t=>t.is("$text")?t.data:"@")).join("").replace(/\u00A0/g," ");if(p===g)return;const f=Wr(p,g),{firstChangeAt:b,insertions:k,deletions:w}=Gg(f);let A=null;e&&(A=this.editing.mapper.toModelRange(e.getFirstRange()));const C=g.substr(b,k),_=this.editor.model.createRange(this.editor.model.createPositionAt(s,b),this.editor.model.createPositionAt(s,b+w));this.editor.execute("input",{text:C,range:_,resultRange:A})}_handleTextMutation(t,e){if("text"!=t.type)return;const n=t.newText.replace(/\u00A0/g," "),o=t.oldText.replace(/\u00A0/g," ");if(o===n)return;const i=Wr(o,n),{firstChangeAt:r,insertions:s,deletions:a}=Gg(i);let l=null;e&&(l=this.editing.mapper.toModelRange(e.getFirstRange()));const c=this.editing.view.createPositionAt(t.node,r),d=this.editing.mapper.toModelPosition(c),u=this.editor.model.createRange(d,d.getShiftedBy(a)),h=n.substr(r,s);this.editor.execute("input",{text:h,range:u,resultRange:l})}_handleTextNodeInsertion(t){if("children"!=t.type)return;const e=Rg(t),n=this.editing.view.createPositionAt(t.node,e.index),o=this.editing.mapper.toModelPosition(n),i=e.values[0].data;this.editor.execute("input",{text:i.replace(/\u00A0/g," "),range:this.editor.model.createRange(o)})}}function qg(t,e){return t.every((t=>e.isInline(t)))}function Gg(t){let e=null,n=null;for(let o=0;o{n.deleteContent(n.document.selection)})),t.unlock()}ar.isAndroid?o.document.on("beforeinput",((t,e)=>r(e)),{priority:"lowest"}):o.document.on("keydown",((t,e)=>r(e)),{priority:"lowest"}),o.document.on("compositionstart",(function(){const t=n.document,e=1!==t.selection.rangeCount||t.selection.getFirstRange().isFlat;t.selection.isCollapsed||e||s()}),{priority:"lowest"}),o.document.on("compositionend",(()=>{e=n.createSelection(n.document.selection)}),{priority:"lowest"})}(t),function(t){t.editing.view.document.on("mutations",((e,n,o)=>{new Ug(t).handle(n,o)}))}(t)}}class Zg extends H{constructor(t,e){super(t),this.direction=e,this._buffer=new Lg(t.model,t.config.get("typing.undoStep"))}get buffer(){return this._buffer}execute(t={}){const e=this.editor.model,n=e.document;e.enqueueChange(this._buffer.batch,(o=>{this._buffer.lock();const i=o.createSelection(t.selection||n.selection),r=t.sequence||1,s=i.isCollapsed;if(i.isCollapsed&&e.modifySelection(i,{direction:this.direction,unit:t.unit,treatEmojiAsSingleUnit:!0}),this._shouldEntireContentBeReplacedWithParagraph(r))return void this._replaceEntireContentWithParagraph(o);if(this._shouldReplaceFirstBlockWithParagraph(i,r))return void this.editor.execute("paragraph",{selection:i});if(i.isCollapsed)return;let a=0;i.getFirstRange().getMinimalFlatRanges().forEach((t=>{a+=Hi(t.getWalker({singleCharacters:!0,ignoreElementEnd:!0,shallow:!0}))})),e.deleteContent(i,{doNotResetEntireContent:s,direction:this.direction}),this._buffer.input(a),o.setSelection(i),this._buffer.unlock()}))}_shouldEntireContentBeReplacedWithParagraph(t){if(t>1)return!1;const e=this.editor.model,n=e.document.selection,o=e.schema.getLimitElement(n);if(!(n.isCollapsed&&n.containsEntireContent(o)))return!1;if(!e.schema.checkChild(o,"paragraph"))return!1;const i=o.getChild(0);return!i||"paragraph"!==i.name}_replaceEntireContentWithParagraph(t){const e=this.editor.model,n=e.document.selection,o=e.schema.getLimitElement(n),i=t.createElement("paragraph");t.remove(t.createRangeIn(o)),t.insert(i,o),t.setSelection(i,0)}_shouldReplaceFirstBlockWithParagraph(t,e){const n=this.editor.model;if(e>1||"backward"!=this.direction)return!1;if(!t.isCollapsed)return!1;const o=t.getFirstPosition(),i=n.schema.getLimitElement(o),r=i.getChild(0);return o.parent==r&&(!!t.containsEntireContent(r)&&(!!n.schema.checkChild(i,"paragraph")&&"paragraph"!=r.name))}}class Yg extends Ms{constructor(t){super(t);const e=t.document;let n=0;function o(t,n,o){const i=new Gi(e,"delete",e.selection.getFirstRange());e.fire(i,new ta(e,n,o)),i.stop.called&&t.stop()}e.on("keyup",((t,e)=>{e.keyCode!=ur.delete&&e.keyCode!=ur.backspace||(n=0)})),e.on("keydown",((t,i)=>{if(ar.isWindows&&Vg(i,e))return;const r={};if(i.keyCode==ur.delete)r.direction="forward",r.unit="character";else{if(i.keyCode!=ur.backspace)return;r.direction="backward",r.unit="codePoint"}const s=ar.isMac?i.altKey:i.ctrlKey;r.unit=s?"word":r.unit,r.sequence=++n,o(t,i.domEvent,r)})),ar.isAndroid&&e.on("beforeinput",((e,n)=>{if("deleteContentBackward"!=n.domEvent.inputType)return;const i={unit:"codepoint",direction:"backward",sequence:1},r=n.domTarget.ownerDocument.defaultView.getSelection();r.anchorNode==r.focusNode&&r.anchorOffset+1!=r.focusOffset&&(i.selectionToRemove=t.domConverter.domSelectionToView(r)),o(e,n.domEvent,i)}))}observe(){}}class Kg extends V{static get pluginName(){return"Delete"}init(){const t=this.editor,e=t.editing.view,n=e.document,o=t.model.document;e.addObserver(Yg),this._undoOnBackspace=!1;const i=new Zg(t,"forward");if(t.commands.add("deleteForward",i),t.commands.add("forwardDelete",i),t.commands.add("delete",new Zg(t,"backward")),this.listenTo(n,"delete",((n,o)=>{const i={unit:o.unit,sequence:o.sequence};if(o.selectionToRemove){const e=t.model.createSelection(),n=[];for(const e of o.selectionToRemove.getRanges())n.push(t.editing.mapper.toModelRange(e));e.setTo(n),i.selection=e}t.execute("forward"==o.direction?"deleteForward":"delete",i),o.preventDefault(),e.scrollToTheSelection()}),{priority:"low"}),ar.isAndroid){let t=null;this.listenTo(n,"delete",((e,n)=>{const o=n.domTarget.ownerDocument.defaultView.getSelection();t={anchorNode:o.anchorNode,anchorOffset:o.anchorOffset,focusNode:o.focusNode,focusOffset:o.focusOffset}}),{priority:"lowest"}),this.listenTo(n,"keyup",((e,n)=>{if(t){const e=n.domTarget.ownerDocument.defaultView.getSelection();e.collapse(t.anchorNode,t.anchorOffset),e.extend(t.focusNode,t.focusOffset),t=null}}))}this.editor.plugins.has("UndoEditing")&&(this.listenTo(n,"delete",((e,n)=>{this._undoOnBackspace&&"backward"==n.direction&&1==n.sequence&&"codePoint"==n.unit&&(this._undoOnBackspace=!1,t.execute("undo"),n.preventDefault(),e.stop())}),{context:"$capture"}),this.listenTo(o,"change",(()=>{this._undoOnBackspace=!1})))}requestUndoOnBackspace(){this.editor.plugins.has("UndoEditing")&&(this._undoOnBackspace=!0)}}class $g extends V{static get requires(){return[Wg,Kg]}static get pluginName(){return"Typing"}}function Qg(t,e){let n=t.start;return{text:Array.from(t.getItems()).reduce(((t,o)=>o.is("$text")||o.is("$textProxy")?t+o.data:(n=e.createPositionAfter(o),"")),""),range:e.createRange(n,t.end)}}class Jg{constructor(t,e){this.model=t,this.testCallback=e,this.hasMatch=!1,this.set("isEnabled",!0),this.on("change:isEnabled",(()=>{this.isEnabled?this._startListening():(this.stopListening(t.document.selection),this.stopListening(t.document))})),this._startListening()}_startListening(){const t=this.model.document;this.listenTo(t.selection,"change:range",((e,{directChange:n})=>{n&&(t.selection.isCollapsed?this._evaluateTextBeforeSelection("selection"):this.hasMatch&&(this.fire("unmatched"),this.hasMatch=!1))})),this.listenTo(t,"change:data",((t,e)=>{!e.isUndo&&e.isLocal&&this._evaluateTextBeforeSelection("data",{batch:e})}))}_evaluateTextBeforeSelection(t,e={}){const n=this.model,o=n.document.selection,i=n.createRange(n.createPositionAt(o.focus.parent,0),o.focus),{text:r,range:s}=Qg(i,n),a=this.testCallback(r);if(!a&&this.hasMatch&&this.fire("unmatched"),this.hasMatch=!!a,a){const n=Object.assign(e,{text:r,range:s});"object"==typeof a&&Object.assign(n,a),this.fire(`matched:${t}`,n)}}}j(Jg,N);class Xg extends V{static get pluginName(){return"TwoStepCaretMovement"}constructor(t){super(t),this.attributes=new Set,this._overrideUid=null}init(){const t=this.editor,e=t.model,n=t.editing.view,o=t.locale,i=e.document.selection;this.listenTo(n.document,"arrowKey",((t,e)=>{if(!i.isCollapsed)return;if(e.shiftKey||e.altKey||e.ctrlKey)return;const n=e.keyCode==ur.arrowright,r=e.keyCode==ur.arrowleft;if(!n&&!r)return;const s=o.contentLanguageDirection;let a=!1;a="ltr"===s&&n||"rtl"===s&&r?this._handleForwardMovement(e):this._handleBackwardMovement(e),!0===a&&t.stop()}),{context:"$text",priority:"highest"}),this._isNextGravityRestorationSkipped=!1,this.listenTo(i,"change:range",((t,e)=>{this._isNextGravityRestorationSkipped?this._isNextGravityRestorationSkipped=!1:this._isGravityOverridden&&(!e.directChange&&op(i.getFirstPosition(),this.attributes)||this._restoreGravity())}))}registerAttribute(t){this.attributes.add(t)}_handleForwardMovement(t){const e=this.attributes,n=this.editor.model.document.selection,o=n.getFirstPosition();return!this._isGravityOverridden&&((!o.isAtStart||!tp(n,e))&&(op(o,e)?(np(t),this._overrideGravity(),!0):void 0))}_handleBackwardMovement(t){const e=this.attributes,n=this.editor.model,o=n.document.selection,i=o.getFirstPosition();return this._isGravityOverridden?(np(t),this._restoreGravity(),ep(n,e,i),!0):i.isAtStart?!!tp(o,e)&&(np(t),ep(n,e,i),!0):function(t,e){return op(t.getShiftedBy(-1),e)}(i,e)?i.isAtEnd&&!tp(o,e)&&op(i,e)?(np(t),ep(n,e,i),!0):(this._isNextGravityRestorationSkipped=!0,this._overrideGravity(),!1):void 0}get _isGravityOverridden(){return!!this._overrideUid}_overrideGravity(){this._overrideUid=this.editor.model.change((t=>t.overrideSelectionGravity()))}_restoreGravity(){this.editor.model.change((t=>{t.restoreSelectionGravity(this._overrideUid),this._overrideUid=null}))}}function tp(t,e){for(const n of e)if(t.hasAttribute(n))return!0;return!1}function ep(t,e,n){const o=n.nodeBefore;t.change((t=>{o?t.setSelectionAttribute(o.getAttributes()):t.removeSelectionAttribute(e)}))}function np(t){t.preventDefault()}function op(t,e){const{nodeBefore:n,nodeAfter:o}=t;for(const t of e){const e=n?n.getAttribute(t):void 0;if((o?o.getAttribute(t):void 0)!==e)return!0}return!1}var ip=/[\\^$.*+?()[\]{}|]/g,rp=RegExp(ip.source);const sp=function(t){return(t=Ko(t))&&rp.test(t)?t.replace(ip,"\\$&"):t},ap={copyright:{from:"(c)",to:"©"},registeredTrademark:{from:"(r)",to:"®"},trademark:{from:"(tm)",to:"™"},oneHalf:{from:/(^|[^/a-z0-9])(1\/2)([^/a-z0-9])$/i,to:[null,"½",null]},oneThird:{from:/(^|[^/a-z0-9])(1\/3)([^/a-z0-9])$/i,to:[null,"⅓",null]},twoThirds:{from:/(^|[^/a-z0-9])(2\/3)([^/a-z0-9])$/i,to:[null,"⅔",null]},oneForth:{from:/(^|[^/a-z0-9])(1\/4)([^/a-z0-9])$/i,to:[null,"¼",null]},threeQuarters:{from:/(^|[^/a-z0-9])(3\/4)([^/a-z0-9])$/i,to:[null,"¾",null]},lessThanOrEqual:{from:"<=",to:"≤"},greaterThanOrEqual:{from:">=",to:"≥"},notEqual:{from:"!=",to:"≠"},arrowLeft:{from:"<-",to:"←"},arrowRight:{from:"->",to:"→"},horizontalEllipsis:{from:"...",to:"…"},enDash:{from:/(^| )(--)( )$/,to:[null,"–",null]},emDash:{from:/(^| )(---)( )$/,to:[null,"—",null]},quotesPrimary:{from:mp('"'),to:[null,"“",null,"”"]},quotesSecondary:{from:mp("'"),to:[null,"‘",null,"’"]},quotesPrimaryEnGb:{from:mp("'"),to:[null,"‘",null,"’"]},quotesSecondaryEnGb:{from:mp('"'),to:[null,"“",null,"”"]},quotesPrimaryPl:{from:mp('"'),to:[null,"„",null,"”"]},quotesSecondaryPl:{from:mp("'"),to:[null,"‚",null,"’"]}},lp={symbols:["copyright","registeredTrademark","trademark"],mathematical:["oneHalf","oneThird","twoThirds","oneForth","threeQuarters","lessThanOrEqual","greaterThanOrEqual","notEqual","arrowLeft","arrowRight"],typography:["horizontalEllipsis","enDash","emDash"],quotes:["quotesPrimary","quotesSecondary"]},cp=["symbols","mathematical","typography","quotes"];function dp(t){return"string"==typeof t?new RegExp(`(${sp(t)})$`):t}function up(t){return"string"==typeof t?()=>[t]:t instanceof Array?()=>t:t}function hp(t){return(t.textNode?t.textNode:t.nodeAfter).getAttributes()}function mp(t){return new RegExp(`(^|\\s)(${t})([^${t}]*)(${t})$`)}function gp(t,e,n,o){return o.createRange(pp(t,e,n,!0,o),pp(t,e,n,!1,o))}function pp(t,e,n,o,i){let r=t.textNode||(o?t.nodeBefore:t.nodeAfter),s=null;for(;r&&r.getAttribute(e)==n;)s=r,r=o?r.previousSibling:r.nextSibling;return s?i.createPositionAt(s,o?"before":"after"):t}function fp(t,e,n,o){let i,r=null;"function"==typeof o?i=o:(r=t.commands.get(o),i=()=>{t.execute(o)}),t.model.document.on("change:data",((s,a)=>{if(r&&!r.isEnabled||!e.isEnabled)return;const l=Ba(t.model.document.selection.getRanges());if(!l.isCollapsed)return;if(a.isUndo||!a.isLocal)return;const c=Array.from(t.model.document.differ.getChanges()),d=c[0];if(1!=c.length||"insert"!==d.type||"$text"!=d.name||1!=d.length)return;const u=d.position.parent;if(u.is("element","codeBlock"))return;if(u.is("element","listItem")&&"function"!=typeof o&&!["numberedList","bulletedList","todoList"].includes(o))return;if(r&&!0===r.value)return;const h=u.getChild(0),m=t.model.createRangeOn(h);if(!m.containsRange(l)&&!l.end.isEqual(m.end))return;const g=n.exec(h.data.substr(0,l.end.offset));g&&t.model.enqueueChange((e=>{const n=e.createPositionAt(u,0),o=e.createPositionAt(u,g[0].length),r=new bl(n,o);if(!1!==i({match:g})){e.remove(r);const n=t.model.document.selection.getFirstRange(),o=e.createRangeIn(u);!u.isEmpty||o.isEqual(n)||o.containsRange(n,!0)||e.remove(u)}r.detach(),t.model.enqueueChange((()=>{t.plugins.get("Delete").requestUndoOnBackspace()}))}))}))}function bp(t,e,n,o){let i,r;n instanceof RegExp?i=n:r=n,r=r||(t=>{let e;const n=[],o=[];for(;null!==(e=i.exec(t))&&!(e&&e.length<4);){let{index:t,1:i,2:r,3:s}=e;const a=i+r+s;t+=e[0].length-a.length;const l=[t,t+i.length],c=[t+i.length+r.length,t+i.length+r.length+s.length];n.push(l),n.push(c),o.push([t+i.length,t+i.length+r.length])}return{remove:n,format:o}}),t.model.document.on("change:data",((n,i)=>{if(i.isUndo||!i.isLocal||!e.isEnabled)return;const s=t.model,a=s.document.selection;if(!a.isCollapsed)return;const l=Array.from(s.document.differ.getChanges()),c=l[0];if(1!=l.length||"insert"!==c.type||"$text"!=c.name||1!=c.length)return;const d=a.focus,u=d.parent,{text:h,range:m}=function(t,e){let n=t.start;return{text:Array.from(t.getItems()).reduce(((t,o)=>!o.is("$text")&&!o.is("$textProxy")||o.getAttribute("code")?(n=e.createPositionAfter(o),""):t+o.data),""),range:e.createRange(n,t.end)}}(s.createRange(s.createPositionAt(u,0),d),s),g=r(h),p=kp(m.start,g.format,s),f=kp(m.start,g.remove,s);p.length&&f.length&&s.enqueueChange((e=>{if(!1!==o(e,p)){for(const t of f.reverse())e.remove(t);s.enqueueChange((()=>{t.plugins.get("Delete").requestUndoOnBackspace()}))}}))}))}function kp(t,e,n){return e.filter((t=>void 0!==t[0]&&void 0!==t[1])).map((e=>n.createRange(t.getShiftedBy(e[0]),t.getShiftedBy(e[1]))))}function wp(t,e){return(n,o)=>{if(!t.commands.get(e).isEnabled)return!1;const i=t.model.schema.getValidRanges(o,e);for(const t of i)n.setAttribute(e,!0,t);n.removeSelectionAttribute(e)}}function*Ap(t,e){for(const n of e)n&&t.getAttributeProperties(n[0]).copyOnEnter&&(yield n)}class Cp extends H{execute(){const t=this.editor.model,e=t.document;t.change((n=>{!function(t,e,n,o){const i=n.isCollapsed,r=n.getFirstRange(),s=r.start.parent,a=r.end.parent;if(o.isLimit(s)||o.isLimit(a))return void(i||s!=a||t.deleteContent(n));if(i){const t=Ap(e.model.schema,n.getAttributes());_p(e,r.start),e.setSelectionAttribute(t)}else{const o=!(r.start.isAtStart&&r.end.isAtEnd),i=s==a;t.deleteContent(n,{leaveUnmerged:o}),o&&(i?_p(e,n.focus):e.setSelection(a,0))}}(this.editor.model,n,e.selection,t.schema),this.fire("afterExecute",{writer:n})}))}}function _p(t,e){t.split(e),t.setSelection(e.parent.nextSibling,0)}class vp extends Ms{constructor(t){super(t);const e=this.document;e.on("keydown",((t,n)=>{if(this.isEnabled&&n.keyCode==ur.enter){const o=new Gi(e,"enter",e.selection.getFirstRange());e.fire(o,new ta(e,n.domEvent,{isSoft:n.shiftKey})),o.stop.called&&t.stop()}}))}observe(){}}class yp extends V{static get pluginName(){return"Enter"}init(){const t=this.editor,e=t.editing.view,n=e.document;e.addObserver(vp),t.commands.add("enter",new Cp(t)),this.listenTo(n,"enter",((n,o)=>{o.preventDefault(),o.isSoft||(t.execute("enter"),e.scrollToTheSelection())}),{priority:"low"})}}class xp extends H{execute(){const t=this.editor.model,e=t.document;t.change((n=>{!function(t,e,n){const o=n.isCollapsed,i=n.getFirstRange(),r=i.start.parent,s=i.end.parent,a=r==s;if(o){const o=Ap(t.schema,n.getAttributes());Ep(t,e,i.end),e.removeSelectionAttribute(n.getAttributeKeys()),e.setSelectionAttribute(o)}else{const o=!(i.start.isAtStart&&i.end.isAtEnd);t.deleteContent(n,{leaveUnmerged:o}),a?Ep(t,e,n.focus):o&&e.setSelection(s,0)}}(t,n,e.selection),this.fire("afterExecute",{writer:n})}))}refresh(){const t=this.editor.model,e=t.document;this.isEnabled=function(t,e){if(e.rangeCount>1)return!1;const n=e.anchor;if(!n||!t.checkChild(n,"softBreak"))return!1;const o=e.getFirstRange(),i=o.start.parent,r=o.end.parent;if((Dp(i,t)||Dp(r,t))&&i!==r)return!1;return!0}(t.schema,e.selection)}}function Ep(t,e,n){const o=e.createElement("softBreak");t.insertContent(o,n),e.setSelection(o,"after")}function Dp(t,e){return!t.is("rootElement")&&(e.isLimit(t)||Dp(t.parent,e))}class Sp extends V{static get pluginName(){return"ShiftEnter"}init(){const t=this.editor,e=t.model.schema,n=t.conversion,o=t.editing.view,i=o.document;e.register("softBreak",{allowWhere:"$text",isInline:!0}),n.for("upcast").elementToElement({model:"softBreak",view:"br"}),n.for("downcast").elementToElement({model:"softBreak",view:(t,{writer:e})=>e.createEmptyElement("br")}),o.addObserver(vp),t.commands.add("shiftEnter",new xp(t)),this.listenTo(i,"enter",((e,n)=>{n.preventDefault(),n.isSoft&&(t.execute("shiftEnter"),o.scrollToTheSelection())}),{priority:"low"})}}class Ip extends H{refresh(){this.value=this._getValue(),this.isEnabled=this._checkEnabled()}execute(t={}){const e=this.editor.model,n=e.schema,o=e.document.selection,i=Array.from(o.getSelectedBlocks()),r=void 0===t.forceValue?!this.value:t.forceValue;e.change((t=>{if(r){const e=i.filter((t=>Tp(t)||Bp(n,t)));this._applyQuote(t,e)}else this._removeQuote(t,i.filter(Tp))}))}_getValue(){const t=Ba(this.editor.model.document.selection.getSelectedBlocks());return!(!t||!Tp(t))}_checkEnabled(){if(this.value)return!0;const t=this.editor.model.document.selection,e=this.editor.model.schema,n=Ba(t.getSelectedBlocks());return!!n&&Bp(e,n)}_removeQuote(t,e){Mp(t,e).reverse().forEach((e=>{if(e.start.isAtStart&&e.end.isAtEnd)return void t.unwrap(e.start.parent);if(e.start.isAtStart){const n=t.createPositionBefore(e.start.parent);return void t.move(e,n)}e.end.isAtEnd||t.split(e.end);const n=t.createPositionAfter(e.end.parent);t.move(e,n)}))}_applyQuote(t,e){const n=[];Mp(t,e).reverse().forEach((e=>{let o=Tp(e.start);o||(o=t.createElement("blockQuote"),t.wrap(e,o)),n.push(o)})),n.reverse().reduce(((e,n)=>e.nextSibling==n?(t.merge(t.createPositionAfter(e)),e):n))}}function Tp(t){return"blockQuote"==t.parent.name?t.parent:null}function Mp(t,e){let n,o=0;const i=[];for(;o{const o=t.model.document.differ.getChanges();for(const t of o)if("insert"==t.type){const o=t.position.nodeAfter;if(!o)continue;if(o.is("element","blockQuote")&&o.isEmpty)return n.remove(o),!0;if(o.is("element","blockQuote")&&!e.checkChild(t.position,o))return n.unwrap(o),!0;if(o.is("element")){const t=n.createRangeIn(o);for(const o of t.getItems())if(o.is("element","blockQuote")&&!e.checkChild(n.createPositionBefore(o),o))return n.unwrap(o),!0}}else if("remove"==t.type){const e=t.position.parent;if(e.is("element","blockQuote")&&e.isEmpty)return n.remove(e),!0}return!1}));const n=this.editor.editing.view.document,o=t.model.document.selection,i=t.commands.get("blockQuote");this.listenTo(n,"enter",((e,n)=>{if(!o.isCollapsed||!i.value)return;o.getLastPosition().parent.isEmpty&&(t.execute("blockQuote"),t.editing.view.scrollToTheSelection(),n.preventDefault(),e.stop())}),{context:"blockquote"}),this.listenTo(n,"delete",((e,n)=>{if("backward"!=n.direction||!o.isCollapsed||!i.value)return;const r=o.getLastPosition().parent;r.isEmpty&&!r.previousSibling&&(t.execute("blockQuote"),t.editing.view.scrollToTheSelection(),n.preventDefault(),e.stop())}),{context:"blockquote"})}}var zp=n(636),Pp={attributes:{"data-cke":!0}};Pp.setAttributes=is(),Pp.insert=ns().bind(null,"head"),Pp.domAPI=ts(),Pp.insertStyleElement=ss();Jr()(zp.Z,Pp);zp.Z&&zp.Z.locals&&zp.Z.locals;class Lp extends V{static get pluginName(){return"BlockQuoteUI"}init(){const t=this.editor,e=t.t;t.ui.componentFactory.add("blockQuote",(n=>{const o=t.commands.get("blockQuote"),i=new Su(n);return i.set({label:e("Block quote"),icon:Gd.quote,tooltip:!0,isToggleable:!0}),i.bind("isOn","isEnabled").to(o,"value","isEnabled"),this.listenTo(i,"execute",(()=>{t.execute("blockQuote"),t.editing.view.focus()})),i}))}}class Op extends H{constructor(t,e){super(t),this.attributeKey=e}refresh(){const t=this.editor.model,e=t.document;this.value=this._getValueFromFirstAllowedNode(),this.isEnabled=t.schema.checkAttributeInSelection(e.selection,this.attributeKey)}execute(t={}){const e=this.editor.model,n=e.document.selection,o=void 0===t.forceValue?!this.value:t.forceValue;e.change((t=>{if(n.isCollapsed)o?t.setSelectionAttribute(this.attributeKey,!0):t.removeSelectionAttribute(this.attributeKey);else{const i=e.schema.getValidRanges(n.getRanges(),this.attributeKey);for(const e of i)o?t.setAttribute(this.attributeKey,o,e):t.removeAttribute(this.attributeKey,e)}}))}_getValueFromFirstAllowedNode(){const t=this.editor.model,e=t.schema,n=t.document.selection;if(n.isCollapsed)return n.hasAttribute(this.attributeKey);for(const t of n.getRanges())for(const n of t.getItems())if(e.checkAttribute(n,this.attributeKey))return n.hasAttribute(this.attributeKey);return!1}}const Rp="bold";class jp extends V{static get pluginName(){return"BoldEditing"}init(){const t=this.editor;t.model.schema.extend("$text",{allowAttributes:Rp}),t.model.schema.setAttributeProperties(Rp,{isFormatting:!0,copyOnEnter:!0}),t.conversion.attributeToElement({model:Rp,view:"strong",upcastAlso:["b",t=>{const e=t.getStyle("font-weight");return e?"bold"==e||Number(e)>=600?{name:!0,styles:["font-weight"]}:void 0:null}]}),t.commands.add(Rp,new Op(t,Rp)),t.keystrokes.set("CTRL+B",Rp)}}const Vp="bold";class Fp extends V{static get pluginName(){return"BoldUI"}init(){const t=this.editor,e=t.t;t.ui.componentFactory.add(Vp,(n=>{const o=t.commands.get(Vp),i=new Su(n);return i.set({label:e("Bold"),icon:'',keystroke:"CTRL+B",tooltip:!0,isToggleable:!0}),i.bind("isOn","isEnabled").to(o,"value","isEnabled"),this.listenTo(i,"execute",(()=>{t.execute(Vp),t.editing.view.focus()})),i}))}}class Hp{constructor(t){this.files=function(t){const e=Array.from(t.files||[]),n=Array.from(t.items||[]);if(e.length)return e;return n.filter((t=>"file"===t.kind)).map((t=>t.getAsFile()))}(t),this._native=t}get types(){return this._native.types}getData(t){return this._native.getData(t)}setData(t,e){this._native.setData(t,e)}set effectAllowed(t){this._native.effectAllowed=t}get effectAllowed(){return this._native.effectAllowed}set dropEffect(t){this._native.dropEffect=t}get dropEffect(){return this._native.dropEffect}get isCanceled(){return"none"==this._native.dropEffect||!!this._native.mozUserCancelled}}class Up extends ea{constructor(t){super(t);const n=this.document;function o(t){return(o,i)=>{i.preventDefault();const r=i.dropRange?[i.dropRange]:null,s=new e(n,t);n.fire(s,{dataTransfer:i.dataTransfer,method:o.name,targetRanges:r,target:i.target}),s.stop.called&&i.stopPropagation()}}this.domEventType=["paste","copy","cut","drop","dragover","dragstart","dragend","dragenter","dragleave"],this.listenTo(n,"paste",o("clipboardInput"),{priority:"low"}),this.listenTo(n,"drop",o("clipboardInput"),{priority:"low"}),this.listenTo(n,"dragover",o("dragging"),{priority:"low"})}onDomEvent(t){const e={dataTransfer:new Hp(t.clipboardData?t.clipboardData:t.dataTransfer)};"drop"!=t.type&&"dragover"!=t.type||(e.dropRange=function(t,e){const n=e.target.ownerDocument,o=e.clientX,i=e.clientY;let r;n.caretRangeFromPoint&&n.caretRangeFromPoint(o,i)?r=n.caretRangeFromPoint(o,i):e.rangeParent&&(r=n.createRange(),r.setStart(e.rangeParent,e.rangeOffset),r.collapse(!0));if(r)return t.domConverter.domRangeToView(r);return null}(this.view,t)),this.fire(t.type,t,e)}}const qp=["figcaption","li"];function Gp(t){let e="";if(t.is("$text")||t.is("$textProxy"))e=t.data;else if(t.is("element","img")&&t.hasAttribute("alt"))e=t.getAttribute("alt");else if(t.is("element","br"))e="\n";else{let n=null;for(const o of t.getChildren()){const t=Gp(o);n&&(n.is("containerElement")||o.is("containerElement"))&&(qp.includes(n.name)||qp.includes(o.name)?e+="\n":e+="\n\n"),e+=t,n=o}}return e}class Wp extends V{static get pluginName(){return"ClipboardPipeline"}init(){this.editor.editing.view.addObserver(Up),this._setupPasteDrop(),this._setupCopyCut()}_setupPasteDrop(){const t=this.editor,n=t.model,o=t.editing.view,i=o.document;this.listenTo(i,"clipboardInput",(e=>{t.isReadOnly&&e.stop()}),{priority:"highest"}),this.listenTo(i,"clipboardInput",((t,n)=>{const i=n.dataTransfer;let r=n.content||"";var s;r||(i.getData("text/html")?r=function(t){return t.replace(/(\s+)<\/span>/g,((t,e)=>1==e.length?" ":e)).replace(//g,"")}(i.getData("text/html")):i.getData("text/plain")&&(((s=(s=i.getData("text/plain")).replace(//g,">").replace(/\r?\n\r?\n/g,"

                                                                                                                                                                                                                                                                                                                                            ").replace(/\r?\n/g,"
                                                                                                                                                                                                                                                                                                                                            ").replace(/^\s/," ").replace(/\s$/," ").replace(/\s\s/g,"  ")).includes("

                                                                                                                                                                                                                                                                                                                                            ")||s.includes("
                                                                                                                                                                                                                                                                                                                                            "))&&(s=`

                                                                                                                                                                                                                                                                                                                                            ${s}

                                                                                                                                                                                                                                                                                                                                            `),r=s),r=this.editor.data.htmlProcessor.toView(r));const a=new e(this,"inputTransformation");this.fire(a,{content:r,dataTransfer:i,targetRanges:n.targetRanges,method:n.method}),a.stop.called&&t.stop(),o.scrollToTheSelection()}),{priority:"low"}),this.listenTo(this,"inputTransformation",((t,e)=>{if(e.content.isEmpty)return;const o=this.editor.data.toModel(e.content,"$clipboardHolder");0!=o.childCount&&(t.stop(),n.change((()=>{this.fire("contentInsertion",{content:o,method:e.method,dataTransfer:e.dataTransfer,targetRanges:e.targetRanges})})))}),{priority:"low"}),this.listenTo(this,"contentInsertion",((t,e)=>{e.resultRange=n.insertContent(e.content)}),{priority:"low"})}_setupCopyCut(){const t=this.editor,e=t.model.document,n=t.editing.view.document;function o(o,i){const r=i.dataTransfer;i.preventDefault();const s=t.data.toView(t.model.getSelectedContent(e.selection));n.fire("clipboardOutput",{dataTransfer:r,content:s,method:o.name})}this.listenTo(n,"copy",o,{priority:"low"}),this.listenTo(n,"cut",((e,n)=>{t.isReadOnly?n.preventDefault():o(e,n)}),{priority:"low"}),this.listenTo(n,"clipboardOutput",((n,o)=>{o.content.isEmpty||(o.dataTransfer.setData("text/html",this.editor.data.htmlProcessor.toData(o.content)),o.dataTransfer.setData("text/plain",Gp(o.content))),"cut"==o.method&&t.model.deleteContent(e.selection)}),{priority:"low"})}}class Zp{constructor(){this._stack=[]}add(t,e){const n=this._stack,o=n[0];this._insertDescriptor(t);const i=n[0];o===i||Yp(o,i)||this.fire("change:top",{oldDescriptor:o,newDescriptor:i,writer:e})}remove(t,e){const n=this._stack,o=n[0];this._removeDescriptor(t);const i=n[0];o===i||Yp(o,i)||this.fire("change:top",{oldDescriptor:o,newDescriptor:i,writer:e})}_insertDescriptor(t){const e=this._stack,n=e.findIndex((e=>e.id===t.id));if(Yp(t,e[n]))return;n>-1&&e.splice(n,1);let o=0;for(;e[o]&&Kp(e[o],t);)o++;e.splice(o,0,t)}_removeDescriptor(t){const e=this._stack,n=e.findIndex((e=>e.id===t));n>-1&&e.splice(n,1)}}function Yp(t,e){return t&&e&&t.priority==e.priority&&$p(t.classes)==$p(e.classes)}function Kp(t,e){return t.priority>e.priority||!(t.priority$p(e.classes)}function $p(t){return Array.isArray(t)?t.sort().join(","):t}j(Zp,k);const Qp='',Jp="ck-widget_selected";function Xp(t){return!!t.is("element")&&!!t.getCustomProperty("widget")}function tf(t,e,n={}){if(!t.is("containerElement"))throw new l("widget-to-widget-wrong-element-type",null,{element:t});return e.setAttribute("contenteditable","false",t),e.addClass("ck-widget",t),e.setCustomProperty("widget",!0,t),t.getFillerOffset=lf,n.label&&function(t,e,n){n.setCustomProperty("widgetLabel",e,t)}(t,n.label,e),n.hasSelectionHandle&&function(t,e){const n=e.createUIElement("div",{class:"ck ck-widget__selection-handle"},(function(t){const e=this.toDomElement(t),n=new _u;return n.set("content",Qp),n.render(),e.appendChild(n.element),e}));e.insert(e.createPositionAt(t,0),n),e.addClass(["ck-widget_with-selection-handle"],t)}(t,e),of(t,e),t}function ef(t,e,n){if(e.classes&&n.addClass(wo(e.classes),t),e.attributes)for(const o in e.attributes)n.setAttribute(o,e.attributes[o],t)}function nf(t,e,n){if(e.classes&&n.removeClass(wo(e.classes),t),e.attributes)for(const o in e.attributes)n.removeAttribute(o,t)}function of(t,e,n=ef,o=nf){const i=new Zp;i.on("change:top",((e,i)=>{i.oldDescriptor&&o(t,i.oldDescriptor,i.writer),i.newDescriptor&&n(t,i.newDescriptor,i.writer)})),e.setCustomProperty("addHighlight",((t,e,n)=>i.add(e,n)),t),e.setCustomProperty("removeHighlight",((t,e,n)=>i.remove(e,n)),t)}function rf(t){const e=t.getCustomProperty("widgetLabel");return e?"function"==typeof e?e():e:""}function sf(t,e,n={}){return e.addClass(["ck-editor__editable","ck-editor__nested-editable"],t),e.setAttribute("role","textbox",t),n.label&&e.setAttribute("aria-label",n.label,t),e.setAttribute("contenteditable",t.isReadOnly?"false":"true",t),t.on("change:isReadOnly",((n,o,i)=>{e.setAttribute("contenteditable",i?"false":"true",t)})),t.on("change:isFocused",((n,o,i)=>{i?e.addClass("ck-editor__nested-editable_focused",t):e.removeClass("ck-editor__nested-editable_focused",t)})),of(t,e),t}function af(t,e){const n=t.getSelectedElement();if(n){const o=uf(t);if(o)return e.createRange(e.createPositionAt(n,o))}return gd(t,e)}function lf(){return null}const cf="widget-type-around";function df(t,e,n){return t&&Xp(t)&&!n.isInline(e)}function uf(t){return t.getAttribute(cf)}var hf=n(5137),mf={attributes:{"data-cke":!0}};mf.setAttributes=is(),mf.insert=ns().bind(null,"head"),mf.domAPI=ts(),mf.insertStyleElement=ss();Jr()(hf.Z,mf);hf.Z&&hf.Z.locals&&hf.Z.locals;const gf=["before","after"],pf=(new DOMParser).parseFromString('',"image/svg+xml").firstChild,ff="ck-widget__type-around_disabled";class bf extends V{static get pluginName(){return"WidgetTypeAround"}static get requires(){return[yp,Kg]}constructor(t){super(t),this._currentFakeCaretModelElement=null}init(){const t=this.editor,e=t.editing.view;this.on("change:isEnabled",((n,o,i)=>{e.change((t=>{for(const n of e.document.roots)i?t.removeClass(ff,n):t.addClass(ff,n)})),i||t.model.change((t=>{t.removeSelectionAttribute(cf)}))})),this._enableTypeAroundUIInjection(),this._enableInsertingParagraphsOnButtonClick(),this._enableInsertingParagraphsOnEnterKeypress(),this._enableInsertingParagraphsOnTypingKeystroke(),this._enableTypeAroundFakeCaretActivationUsingKeyboardArrows(),this._enableDeleteIntegration(),this._enableInsertContentIntegration(),this._enableInsertObjectIntegration(),this._enableDeleteContentIntegration()}destroy(){this._currentFakeCaretModelElement=null}_insertParagraph(t,e){const n=this.editor,o=n.editing.view,i=n.model.schema.getAttributesWithProperty(t,"copyOnReplace",!0);n.execute("insertParagraph",{position:n.model.createPositionAt(t,e),attributes:i}),o.focus(),o.scrollToTheSelection()}_listenToIfEnabled(t,e,n,o){this.listenTo(t,e,((...t)=>{this.isEnabled&&n(...t)}),o)}_insertParagraphAccordingToFakeCaretPosition(){const t=this.editor.model.document.selection,e=uf(t);if(!e)return!1;const n=t.getSelectedElement();return this._insertParagraph(n,e),!0}_enableTypeAroundUIInjection(){const t=this.editor,e=t.model.schema,n=t.locale.t,o={before:n("Insert paragraph before block"),after:n("Insert paragraph after block")};t.editing.downcastDispatcher.on("insert",((t,n,i)=>{const r=i.mapper.toViewElement(n.item);df(r,n.item,e)&&function(t,e,n){const o=t.createUIElement("div",{class:"ck ck-reset_all ck-widget__type-around"},(function(t){const n=this.toDomElement(t);return function(t,e){for(const n of gf){const o=new Xd({tag:"div",attributes:{class:["ck","ck-widget__type-around__button",`ck-widget__type-around__button_${n}`],title:e[n]},children:[t.ownerDocument.importNode(pf,!0)]});t.appendChild(o.render())}}(n,e),function(t){const e=new Xd({tag:"div",attributes:{class:["ck","ck-widget__type-around__fake-caret"]}});t.appendChild(e.render())}(n),n}));t.insert(t.createPositionAt(n,"end"),o)}(i.writer,o,r)}),{priority:"low"})}_enableTypeAroundFakeCaretActivationUsingKeyboardArrows(){const t=this.editor,e=t.model,n=e.document.selection,o=e.schema,i=t.editing.view;function r(t){return`ck-widget_type-around_show-fake-caret_${t}`}this._listenToIfEnabled(i.document,"arrowKey",((t,e)=>{this._handleArrowKeyPress(t,e)}),{context:[Xp,"$text"],priority:"high"}),this._listenToIfEnabled(n,"change:range",((e,n)=>{n.directChange&&t.model.change((t=>{t.removeSelectionAttribute(cf)}))})),this._listenToIfEnabled(e.document,"change:data",(()=>{const e=n.getSelectedElement();if(e){if(df(t.editing.mapper.toViewElement(e),e,o))return}t.model.change((t=>{t.removeSelectionAttribute(cf)}))})),this._listenToIfEnabled(t.editing.downcastDispatcher,"selection",((t,e,n)=>{const i=n.writer;if(this._currentFakeCaretModelElement){const t=n.mapper.toViewElement(this._currentFakeCaretModelElement);t&&(i.removeClass(gf.map(r),t),this._currentFakeCaretModelElement=null)}const s=e.selection.getSelectedElement();if(!s)return;const a=n.mapper.toViewElement(s);if(!df(a,s,o))return;const l=uf(e.selection);l&&(i.addClass(r(l),a),this._currentFakeCaretModelElement=s)})),this._listenToIfEnabled(t.ui.focusTracker,"change:isFocused",((e,n,o)=>{o||t.model.change((t=>{t.removeSelectionAttribute(cf)}))}))}_handleArrowKeyPress(t,e){const n=this.editor,o=n.model,i=o.document.selection,r=o.schema,s=n.editing.view,a=function(t,e){const n=fr(t,e);return"down"===n||"right"===n}(e.keyCode,n.locale.contentLanguageDirection),l=s.document.selection.getSelectedElement();let c;df(l,n.editing.mapper.toModelElement(l),r)?c=this._handleArrowKeyPressOnSelectedWidget(a):i.isCollapsed?c=this._handleArrowKeyPressWhenSelectionNextToAWidget(a):e.shiftKey||(c=this._handleArrowKeyPressWhenNonCollapsedSelection(a)),c&&(e.preventDefault(),t.stop())}_handleArrowKeyPressOnSelectedWidget(t){const e=this.editor.model,n=uf(e.document.selection);return e.change((e=>{if(!n)return e.setSelectionAttribute(cf,t?"after":"before"),!0;if(!(n===(t?"after":"before")))return e.removeSelectionAttribute(cf),!0;return!1}))}_handleArrowKeyPressWhenSelectionNextToAWidget(t){const e=this.editor,n=e.model,o=n.schema,i=e.plugins.get("Widget"),r=i._getObjectElementNextToSelection(t);return!!df(e.editing.mapper.toViewElement(r),r,o)&&(n.change((e=>{i._setSelectionOverElement(r),e.setSelectionAttribute(cf,t?"before":"after")})),!0)}_handleArrowKeyPressWhenNonCollapsedSelection(t){const e=this.editor,n=e.model,o=n.schema,i=e.editing.mapper,r=n.document.selection,s=t?r.getLastPosition().nodeBefore:r.getFirstPosition().nodeAfter;return!!df(i.toViewElement(s),s,o)&&(n.change((e=>{e.setSelection(s,"on"),e.setSelectionAttribute(cf,t?"after":"before")})),!0)}_enableInsertingParagraphsOnButtonClick(){const t=this.editor,e=t.editing.view;this._listenToIfEnabled(e.document,"mousedown",((n,o)=>{const i=o.domTarget.closest(".ck-widget__type-around__button");if(!i)return;const r=function(t){return t.classList.contains("ck-widget__type-around__button_before")?"before":"after"}(i),s=function(t,e){const n=t.closest(".ck-widget");return e.mapDomToView(n)}(i,e.domConverter),a=t.editing.mapper.toModelElement(s);this._insertParagraph(a,r),o.preventDefault(),n.stop()}))}_enableInsertingParagraphsOnEnterKeypress(){const t=this.editor,e=t.model.document.selection,n=t.editing.view;this._listenToIfEnabled(n.document,"enter",((n,o)=>{if("atTarget"!=n.eventPhase)return;const i=e.getSelectedElement(),r=t.editing.mapper.toViewElement(i),s=t.model.schema;let a;this._insertParagraphAccordingToFakeCaretPosition()?a=!0:df(r,i,s)&&(this._insertParagraph(i,o.isSoft?"before":"after"),a=!0),a&&(o.preventDefault(),n.stop())}),{context:Xp})}_enableInsertingParagraphsOnTypingKeystroke(){const t=this.editor.editing.view,e=[ur.enter,ur.delete,ur.backspace];this._listenToIfEnabled(t.document,"keydown",((t,n)=>{e.includes(n.keyCode)||Hg(n)||this._insertParagraphAccordingToFakeCaretPosition()}),{priority:"high"})}_enableDeleteIntegration(){const t=this.editor,e=t.editing.view,n=t.model,o=n.schema;this._listenToIfEnabled(e.document,"delete",((e,i)=>{if("atTarget"!=e.eventPhase)return;const r=uf(n.document.selection);if(!r)return;const s=i.direction,a=n.document.selection.getSelectedElement(),l="forward"==s;if("before"===r===l)t.execute("delete",{selection:n.createSelection(a,"on")});else{const e=o.getNearestSelectionRange(n.createPositionAt(a,r),s);if(e)if(e.isCollapsed){const i=n.createSelection(e.start);if(n.modifySelection(i,{direction:s}),i.focus.isEqual(e.start)){const t=function(t,e){let n=e;for(const o of e.getAncestors({parentFirst:!0})){if(o.childCount>1||t.isLimit(o))break;n=o}return n}(o,e.start.parent);n.deleteContent(n.createSelection(t,"on"),{doNotAutoparagraph:!0})}else n.change((n=>{n.setSelection(e),t.execute(l?"deleteForward":"delete")}))}else n.change((n=>{n.setSelection(e),t.execute(l?"deleteForward":"delete")}))}i.preventDefault(),e.stop()}),{context:Xp})}_enableInsertContentIntegration(){const t=this.editor,e=this.editor.model,n=e.document.selection;this._listenToIfEnabled(t.model,"insertContent",((t,[o,i])=>{if(i&&!i.is("documentSelection"))return;const r=uf(n);return r?(t.stop(),e.change((t=>{const i=n.getSelectedElement(),s=e.createPositionAt(i,r),a=t.createSelection(s),l=e.insertContent(o,a);return t.setSelection(a),l}))):void 0}),{priority:"high"})}_enableInsertObjectIntegration(){const t=this.editor,e=this.editor.model.document.selection;this._listenToIfEnabled(t.model,"insertObject",((t,n)=>{const[,o,,i={}]=n;if(o&&!o.is("documentSelection"))return;const r=uf(e);r&&(i.findOptimalPosition=r,n[3]=i)}),{priority:"high"})}_enableDeleteContentIntegration(){const t=this.editor,e=this.editor.model.document.selection;this._listenToIfEnabled(t.model,"deleteContent",((t,[n])=>{if(n&&!n.is("documentSelection"))return;uf(e)&&t.stop()}),{priority:"high"})}}function kf(t){const e=t.model;return(n,o)=>{const i=o.keyCode==ur.arrowup,r=o.keyCode==ur.arrowdown,s=o.shiftKey,a=e.document.selection;if(!i&&!r)return;const l=r;if(s&&function(t,e){return!t.isCollapsed&&t.isBackward==e}(a,l))return;const c=function(t,e,n){const o=t.model;if(n){const t=e.isCollapsed?e.focus:e.getLastPosition(),n=wf(o,t,"forward");if(!n)return null;const i=o.createRange(t,n),r=Af(o.schema,i,"backward");return r?o.createRange(t,r):null}{const t=e.isCollapsed?e.focus:e.getFirstPosition(),n=wf(o,t,"backward");if(!n)return null;const i=o.createRange(n,t),r=Af(o.schema,i,"forward");return r?o.createRange(r,t):null}}(t,a,l);if(c){if(c.isCollapsed){if(a.isCollapsed)return;if(s)return}(c.isCollapsed||function(t,e,n){const o=t.model,i=t.view.domConverter;if(n){const t=o.createSelection(e.start);o.modifySelection(t),t.focus.isAtEnd||e.start.isEqual(t.focus)||(e=o.createRange(t.focus,e.end))}const r=t.mapper.toViewRange(e),s=i.viewRangeToDom(r),a=Da.getDomRangeRects(s);let l;for(const t of a)if(void 0!==l){if(Math.round(t.top)>=l)return!1;l=Math.max(l,Math.round(t.bottom))}else l=Math.round(t.bottom);return!0}(t,c,l))&&(e.change((t=>{const n=l?c.end:c.start;if(s){const o=e.createSelection(a.anchor);o.setFocus(n),t.setSelection(o)}else t.setSelection(n)})),n.stop(),o.preventDefault(),o.stopPropagation())}}}function wf(t,e,n){const o=t.schema,i=t.createRangeIn(e.root),r="forward"==n?"elementStart":"elementEnd";for(const{previousPosition:t,item:s,type:a}of i.getWalker({startPosition:e,direction:n})){if(o.isLimit(s)&&!o.isInline(s))return t;if(a==r&&o.isBlock(s))return null}return null}function Af(t,e,n){const o="backward"==n?e.end:e.start;if(t.checkChild(o,"$text"))return o;for(const{nextPosition:o}of e.getWalker({direction:n}))if(t.checkChild(o,"$text"))return o;return null}var Cf=n(6507),_f={attributes:{"data-cke":!0}};_f.setAttributes=is(),_f.insert=ns().bind(null,"head"),_f.domAPI=ts(),_f.insertStyleElement=ss();Jr()(Cf.Z,_f);Cf.Z&&Cf.Z.locals&&Cf.Z.locals;class vf extends V{static get pluginName(){return"Widget"}static get requires(){return[bf,Kg]}init(){const t=this.editor,e=t.editing.view,n=e.document;this._previouslySelected=new Set,this.editor.editing.downcastDispatcher.on("selection",((e,n,o)=>{const i=o.writer,r=n.selection;if(r.isCollapsed)return;const s=r.getSelectedElement();if(!s)return;const a=t.editing.mapper.toViewElement(s);Xp(a)&&o.consumable.consume(r,"selection")&&i.setSelection(i.createRangeOn(a),{fake:!0,label:rf(a)})})),this.editor.editing.downcastDispatcher.on("selection",((t,e,n)=>{this._clearPreviouslySelectedWidgets(n.writer);const o=n.writer,i=o.document.selection;let r=null;for(const t of i.getRanges())for(const e of t){const t=e.item;Xp(t)&&!yf(t,r)&&(o.addClass(Jp,t),this._previouslySelected.add(t),r=t)}}),{priority:"low"}),e.addObserver(zm),this.listenTo(n,"mousedown",((...t)=>this._onMousedown(...t))),this.listenTo(n,"arrowKey",((...t)=>{this._handleSelectionChangeOnArrowKeyPress(...t)}),{context:[Xp,"$text"]}),this.listenTo(n,"arrowKey",((...t)=>{this._preventDefaultOnArrowKeyPress(...t)}),{context:"$root"}),this.listenTo(n,"arrowKey",kf(this.editor.editing),{context:"$text"}),this.listenTo(n,"delete",((t,e)=>{this._handleDelete("forward"==e.direction)&&(e.preventDefault(),t.stop())}),{context:"$root"})}_onMousedown(t,e){const n=this.editor,o=n.editing.view,i=o.document;let r=e.target;if(function(t){for(;t;){if(t.is("editableElement")&&!t.is("rootElement"))return!0;if(Xp(t))return!1;t=t.parent}return!1}(r)){if((ar.isSafari||ar.isGecko)&&e.domEvent.detail>=3){const t=n.editing.mapper,o=r.is("attributeElement")?r.findAncestor((t=>!t.is("attributeElement"))):r,i=t.toModelElement(o);e.preventDefault(),this.editor.model.change((t=>{t.setSelection(i,"in")}))}return}if(!Xp(r)&&(r=r.findAncestor(Xp),!r))return;ar.isAndroid&&e.preventDefault(),i.isFocused||o.focus();const s=n.editing.mapper.toModelElement(r);this._setSelectionOverElement(s)}_handleSelectionChangeOnArrowKeyPress(t,e){const n=e.keyCode,o=this.editor.model,i=o.schema,r=o.document.selection,s=r.getSelectedElement(),a=fr(n,this.editor.locale.contentLanguageDirection),l="down"==a||"right"==a,c="up"==a||"down"==a;if(s&&i.isObject(s)){const n=l?r.getLastPosition():r.getFirstPosition(),s=i.getNearestSelectionRange(n,l?"forward":"backward");return void(s&&(o.change((t=>{t.setSelection(s)})),e.preventDefault(),t.stop()))}if(!r.isCollapsed&&!e.shiftKey){const n=r.getFirstPosition(),s=r.getLastPosition(),a=n.nodeAfter,c=s.nodeBefore;return void((a&&i.isObject(a)||c&&i.isObject(c))&&(o.change((t=>{t.setSelection(l?s:n)})),e.preventDefault(),t.stop()))}if(!r.isCollapsed)return;const d=this._getObjectElementNextToSelection(l);if(d&&i.isObject(d)){if(i.isInline(d)&&c)return;this._setSelectionOverElement(d),e.preventDefault(),t.stop()}}_preventDefaultOnArrowKeyPress(t,e){const n=this.editor.model,o=n.schema,i=n.document.selection.getSelectedElement();i&&o.isObject(i)&&(e.preventDefault(),t.stop())}_handleDelete(t){if(this.editor.isReadOnly)return;const e=this.editor.model.document.selection;if(!e.isCollapsed)return;const n=this._getObjectElementNextToSelection(t);return n?(this.editor.model.change((t=>{let o=e.anchor.parent;for(;o.isEmpty;){const e=o;o=e.parent,t.remove(e)}this._setSelectionOverElement(n)})),!0):void 0}_setSelectionOverElement(t){this.editor.model.change((e=>{e.setSelection(e.createRangeOn(t))}))}_getObjectElementNextToSelection(t){const e=this.editor.model,n=e.schema,o=e.document.selection,i=e.createSelection(o);if(e.modifySelection(i,{direction:t?"forward":"backward"}),i.isEqual(o))return null;const r=t?i.focus.nodeBefore:i.focus.nodeAfter;return r&&n.isObject(r)?r:null}_clearPreviouslySelectedWidgets(t){for(const e of this._previouslySelected)t.removeClass(Jp,e);this._previouslySelected.clear()}}function yf(t,e){return!!e&&Array.from(t.getAncestors()).includes(e)}const xf=function(t,e,n){var o=!0,i=!0;if("function"!=typeof t)throw new TypeError("Expected a function");return E(n)&&(o="leading"in n?!!n.leading:o,i="trailing"in n?!!n.trailing:i),pa(t,e,{leading:o,maxWait:e,trailing:i})};var Ef=n(390),Df={attributes:{"data-cke":!0}};Df.setAttributes=is(),Df.insert=ns().bind(null,"head"),Df.domAPI=ts(),Df.insertStyleElement=ss();Jr()(Ef.Z,Df);Ef.Z&&Ef.Z.locals&&Ef.Z.locals;class Sf extends V{static get pluginName(){return"DragDrop"}static get requires(){return[Wp,vf]}init(){const t=this.editor,e=t.editing.view;this._draggedRange=null,this._draggingUid="",this._draggableElement=null,this._updateDropMarkerThrottled=xf((t=>this._updateDropMarker(t)),40),this._removeDropMarkerDelayed=Mf((()=>this._removeDropMarker()),40),this._clearDraggableAttributesDelayed=Mf((()=>this._clearDraggableAttributes()),40),e.addObserver(Up),e.addObserver(zm),this._setupDragging(),this._setupContentInsertionIntegration(),this._setupClipboardInputIntegration(),this._setupDropMarker(),this._setupDraggableAttributeHandling(),this.listenTo(t,"change:isReadOnly",((t,e,n)=>{n?this.forceDisabled("readOnlyMode"):this.clearForceDisabled("readOnlyMode")})),this.on("change:isEnabled",((t,e,n)=>{n||this._finalizeDragging(!1)})),ar.isAndroid&&this.forceDisabled("noAndroidSupport")}destroy(){return this._draggedRange&&(this._draggedRange.detach(),this._draggedRange=null),this._updateDropMarkerThrottled.cancel(),this._removeDropMarkerDelayed.cancel(),this._clearDraggableAttributesDelayed.cancel(),super.destroy()}_setupDragging(){const t=this.editor,e=t.model,n=e.document,o=t.editing.view,i=o.document;this.listenTo(i,"dragstart",((o,s)=>{const a=n.selection;if(s.target&&s.target.is("editableElement"))return void s.preventDefault();const l=s.target?Bf(s.target):null;if(l){const n=t.editing.mapper.toModelElement(l);this._draggedRange=bl.fromRange(e.createRangeOn(n)),t.plugins.has("WidgetToolbarRepository")&&t.plugins.get("WidgetToolbarRepository").forceDisabled("dragDrop")}else if(!i.selection.isCollapsed){const t=i.selection.getSelectedElement();t&&Xp(t)||(this._draggedRange=bl.fromRange(a.getFirstRange()))}if(!this._draggedRange)return void s.preventDefault();this._draggingUid=r(),s.dataTransfer.effectAllowed=this.isEnabled?"copyMove":"copy",s.dataTransfer.setData("application/ckeditor5-dragging-uid",this._draggingUid);const c=e.createSelection(this._draggedRange.toRange()),d=t.data.toView(e.getSelectedContent(c));i.fire("clipboardOutput",{dataTransfer:s.dataTransfer,content:d,method:o.name}),this.isEnabled||(this._draggedRange.detach(),this._draggedRange=null,this._draggingUid="")}),{priority:"low"}),this.listenTo(i,"dragend",((t,e)=>{this._finalizeDragging(!e.dataTransfer.isCanceled&&"move"==e.dataTransfer.dropEffect)}),{priority:"low"}),this.listenTo(i,"dragenter",(()=>{this.isEnabled&&o.focus()})),this.listenTo(i,"dragleave",(()=>{this._removeDropMarkerDelayed()})),this.listenTo(i,"dragging",((e,n)=>{if(!this.isEnabled)return void(n.dataTransfer.dropEffect="none");this._removeDropMarkerDelayed.cancel();const o=If(t,n.targetRanges,n.target);this._draggedRange||(n.dataTransfer.dropEffect="copy"),ar.isGecko||("copy"==n.dataTransfer.effectAllowed?n.dataTransfer.dropEffect="copy":["all","copyMove"].includes(n.dataTransfer.effectAllowed)&&(n.dataTransfer.dropEffect="move")),o&&this._updateDropMarkerThrottled(o)}),{priority:"low"})}_setupClipboardInputIntegration(){const t=this.editor,e=t.editing.view.document;this.listenTo(e,"clipboardInput",((e,n)=>{if("drop"!=n.method)return;const o=If(t,n.targetRanges,n.target);if(this._removeDropMarker(),!o)return this._finalizeDragging(!1),void e.stop();this._draggedRange&&this._draggingUid!=n.dataTransfer.getData("application/ckeditor5-dragging-uid")&&(this._draggedRange.detach(),this._draggedRange=null,this._draggingUid="");if("move"==Tf(n.dataTransfer)&&this._draggedRange&&this._draggedRange.containsRange(o,!0))return this._finalizeDragging(!1),void e.stop();n.targetRanges=[t.editing.mapper.toViewRange(o)]}),{priority:"high"})}_setupContentInsertionIntegration(){const t=this.editor.plugins.get(Wp);t.on("contentInsertion",((t,e)=>{if(!this.isEnabled||"drop"!==e.method)return;const n=e.targetRanges.map((t=>this.editor.editing.mapper.toModelRange(t)));this.editor.model.change((t=>t.setSelection(n)))}),{priority:"high"}),t.on("contentInsertion",((t,e)=>{if(!this.isEnabled||"drop"!==e.method)return;const n="move"==Tf(e.dataTransfer),o=!e.resultRange||!e.resultRange.isCollapsed;this._finalizeDragging(o&&n)}),{priority:"lowest"})}_setupDraggableAttributeHandling(){const t=this.editor,e=t.editing.view,n=e.document;this.listenTo(n,"mousedown",((o,i)=>{if(ar.isAndroid||!i)return;this._clearDraggableAttributesDelayed.cancel();let r=Bf(i.target);if(ar.isBlink&&!t.isReadOnly&&!r&&!n.selection.isCollapsed){const t=n.selection.getSelectedElement();t&&Xp(t)||(r=n.selection.editableElement)}r&&(e.change((t=>{t.setAttribute("draggable","true",r)})),this._draggableElement=t.editing.mapper.toModelElement(r))})),this.listenTo(n,"mouseup",(()=>{ar.isAndroid||this._clearDraggableAttributesDelayed()}))}_clearDraggableAttributes(){const t=this.editor.editing;t.view.change((e=>{this._draggableElement&&"$graveyard"!=this._draggableElement.root.rootName&&e.removeAttribute("draggable",t.mapper.toViewElement(this._draggableElement)),this._draggableElement=null}))}_setupDropMarker(){const t=this.editor;t.conversion.for("editingDowncast").markerToHighlight({model:"drop-target",view:{classes:["ck-clipboard-drop-target-range"]}}),t.conversion.for("editingDowncast").markerToElement({model:"drop-target",view:(e,{writer:n})=>{if(t.model.schema.checkChild(e.markerRange.start,"$text"))return n.createUIElement("span",{class:"ck ck-clipboard-drop-target-position"},(function(t){const e=this.toDomElement(t);return e.innerHTML="⁠⁠",e}))}})}_updateDropMarker(t){const e=this.editor,n=e.model.markers;e.model.change((e=>{n.has("drop-target")?n.get("drop-target").getRange().isEqual(t)||e.updateMarker("drop-target",{range:t}):e.addMarker("drop-target",{range:t,usingOperation:!1,affectsData:!1})}))}_removeDropMarker(){const t=this.editor.model;this._removeDropMarkerDelayed.cancel(),this._updateDropMarkerThrottled.cancel(),t.markers.has("drop-target")&&t.change((t=>{t.removeMarker("drop-target")}))}_finalizeDragging(t){const e=this.editor,n=e.model;this._removeDropMarker(),this._clearDraggableAttributes(),e.plugins.has("WidgetToolbarRepository")&&e.plugins.get("WidgetToolbarRepository").clearForceDisabled("dragDrop"),this._draggingUid="",this._draggedRange&&(t&&this.isEnabled&&n.deleteContent(n.createSelection(this._draggedRange),{doNotAutoparagraph:!0}),this._draggedRange.detach(),this._draggedRange=null)}}function If(t,e,n){const o=t.model,i=t.editing.mapper;let r=null;const s=e?e[0].start:null;if(n.is("uiElement")&&(n=n.parent),r=function(t,e){const n=t.model,o=t.editing.mapper;if(Xp(e))return n.createRangeOn(o.toModelElement(e));if(!e.is("editableElement")){const t=e.findAncestor((t=>Xp(t)||t.is("editableElement")));if(Xp(t))return n.createRangeOn(o.toModelElement(t))}return null}(t,n),r)return r;const a=function(t,e){const n=t.editing.mapper,o=t.editing.view,i=n.toModelElement(e);if(i)return i;const r=o.createPositionBefore(e),s=n.findMappedViewAncestor(r);return n.toModelElement(s)}(t,n),l=s?i.toModelPosition(s):null;return l?(r=function(t,e,n){const o=t.model;if(!o.schema.checkChild(n,"$block"))return null;const i=o.createPositionAt(n,0),r=e.path.slice(0,i.path.length),s=o.createPositionFromPath(e.root,r).nodeAfter;if(s&&o.schema.isObject(s))return o.createRangeOn(s);return null}(t,l,a),r||(r=o.schema.getNearestSelectionRange(l,ar.isGecko?"forward":"backward"),r||function(t,e){const n=t.model;for(;e;){if(n.schema.isObject(e))return n.createRangeOn(e);e=e.parent}}(t,l.parent))):function(t,e){const n=t.model,o=n.schema,i=n.createPositionAt(e,0);return o.getNearestSelectionRange(i,"forward")}(t,a)}function Tf(t){return ar.isGecko?t.dropEffect:["all","copyMove"].includes(t.effectAllowed)?"move":"copy"}function Mf(t,e){let n;function o(...i){o.cancel(),n=setTimeout((()=>t(...i)),e)}return o.cancel=()=>{clearTimeout(n)},o}function Bf(t){if(t.is("editableElement"))return null;if(t.hasClass("ck-widget__selection-handle"))return t.findAncestor(Xp);if(Xp(t))return t;const e=t.findAncestor((t=>Xp(t)||t.is("editableElement")));return Xp(e)?e:null}class Nf extends V{static get pluginName(){return"PastePlainText"}static get requires(){return[Wp]}init(){const t=this.editor,e=t.model,n=t.editing.view,o=n.document,i=e.document.selection;let r=!1;n.addObserver(Up),this.listenTo(o,"keydown",((t,e)=>{r=e.shiftKey})),t.plugins.get(Wp).on("contentInsertion",((t,n)=>{(r||function(t,e){if(t.childCount>1)return!1;const n=t.getChild(0);if(e.isObject(n))return!1;return 0==[...n.getAttributeKeys()].length}(n.content,e.schema))&&e.change((t=>{const o=Array.from(i.getAttributes()).filter((([t])=>e.schema.getAttributeProperties(t).isFormatting));i.isCollapsed||e.deleteContent(i,{doNotAutoparagraph:!0}),o.push(...i.getAttributes());const r=t.createRangeIn(n.content);for(const e of r.getItems())e.is("$textProxy")&&t.setAttributes(o,e)}))}))}}class zf extends V{static get pluginName(){return"Clipboard"}static get requires(){return[Wp,Sf,Nf]}}class Pf extends H{constructor(t){super(t),this.affectsData=!1}execute(){const t=this.editor.model,e=t.document.selection;let n=t.schema.getLimitElement(e);if(e.containsEntireContent(n)||!Lf(t.schema,n))do{if(n=n.parent,!n)return}while(!Lf(t.schema,n));t.change((t=>{t.setSelection(n,"in")}))}}function Lf(t,e){return t.isLimit(e)&&(t.checkChild(e,"$text")||t.checkChild(e,"paragraph"))}const Of=gr("Ctrl+A");class Rf extends V{static get pluginName(){return"SelectAllEditing"}init(){const t=this.editor,e=t.editing.view.document;t.commands.add("selectAll",new Pf(t)),this.listenTo(e,"keydown",((e,n)=>{mr(n)===Of&&(t.execute("selectAll"),n.preventDefault())}))}}class jf extends V{static get pluginName(){return"SelectAllUI"}init(){const t=this.editor;t.ui.componentFactory.add("selectAll",(e=>{const n=t.commands.get("selectAll"),o=new Su(e),i=e.t;return o.set({label:i("Select all"),icon:'',keystroke:"Ctrl+A",tooltip:!0}),o.bind("isOn","isEnabled").to(n,"value","isEnabled"),this.listenTo(o,"execute",(()=>{t.execute("selectAll"),t.editing.view.focus()})),o}))}}class Vf extends V{static get requires(){return[Rf,jf]}static get pluginName(){return"SelectAll"}}class Ff extends H{constructor(t){super(t),this._stack=[],this._createdBatches=new WeakSet,this.refresh(),this.listenTo(t.data,"set",((t,e)=>{e[1]={...e[1]};const n=e[1];n.batchType||(n.batchType={isUndoable:!1})}),{priority:"high"}),this.listenTo(t.data,"set",((t,e)=>{e[1].batchType.isUndoable||this.clearStack()}))}refresh(){this.isEnabled=this._stack.length>0}addBatch(t){const e=this.editor.model.document.selection,n={ranges:e.hasOwnRange?Array.from(e.getRanges()):[],isBackward:e.isBackward};this._stack.push({batch:t,selection:n}),this.refresh()}clearStack(){this._stack=[],this.refresh()}_restoreSelection(t,e,n){const o=this.editor.model,i=o.document,r=[],s=t.map((t=>t.getTransformedByOperations(n))),a=s.flat();for(const t of s){const e=t.filter((t=>t.root!=i.graveyard)).filter((t=>!Uf(t,a)));e.length&&(Hf(e),r.push(e[0]))}r.length&&o.change((t=>{t.setSelection(r,{backward:e})}))}_undo(t,e){const n=this.editor.model,o=n.document;this._createdBatches.add(e);const i=t.operations.slice().filter((t=>t.isDocumentOperation));i.reverse();for(const t of i){const i=t.baseVersion+1,r=Array.from(o.history.getOperations(i)),s=Em([t.getReversed()],r,{useRelations:!0,document:this.editor.model.document,padWithNoOps:!1,forceWeakRemove:!0}).operationsA;for(const i of s)e.addOperation(i),n.applyOperation(i),o.history.setOperationAsUndone(t,i)}}}function Hf(t){t.sort(((t,e)=>t.start.isBefore(e.start)?-1:1));for(let e=1;ee!==t&&e.containsRange(t,!0)))}class qf extends Ff{execute(t=null){const e=t?this._stack.findIndex((e=>e.batch==t)):this._stack.length-1,n=this._stack.splice(e,1)[0],o=this.editor.model.createBatch({isUndo:!0});this.editor.model.enqueueChange(o,(()=>{this._undo(n.batch,o);const t=this.editor.model.document.history.getOperations(n.batch.baseVersion);this._restoreSelection(n.selection.ranges,n.selection.isBackward,t),this.fire("revert",n.batch,o)})),this.refresh()}}class Gf extends Ff{execute(){const t=this._stack.pop(),e=this.editor.model.createBatch({isUndo:!0});this.editor.model.enqueueChange(e,(()=>{const n=t.batch.operations[t.batch.operations.length-1].baseVersion+1,o=this.editor.model.document.history.getOperations(n);this._restoreSelection(t.selection.ranges,t.selection.isBackward,o),this._undo(t.batch,e)})),this.refresh()}}class Wf extends V{static get pluginName(){return"UndoEditing"}constructor(t){super(t),this._batchRegistry=new WeakSet}init(){const t=this.editor;this._undoCommand=new qf(t),this._redoCommand=new Gf(t),t.commands.add("undo",this._undoCommand),t.commands.add("redo",this._redoCommand),this.listenTo(t.model,"applyOperation",((t,e)=>{const n=e[0];if(!n.isDocumentOperation)return;const o=n.batch,i=this._redoCommand._createdBatches.has(o),r=this._undoCommand._createdBatches.has(o);this._batchRegistry.has(o)||(this._batchRegistry.add(o),o.isUndoable&&(i?this._undoCommand.addBatch(o):r||(this._undoCommand.addBatch(o),this._redoCommand.clearStack())))}),{priority:"highest"}),this.listenTo(this._undoCommand,"revert",((t,e,n)=>{this._redoCommand.addBatch(n)})),t.keystrokes.set("CTRL+Z","undo"),t.keystrokes.set("CTRL+Y","redo"),t.keystrokes.set("CTRL+SHIFT+Z","redo")}}const Zf='',Yf='';class Kf extends V{static get pluginName(){return"UndoUI"}init(){const t=this.editor,e=t.locale,n=t.t,o="ltr"==e.uiLanguageDirection?Zf:Yf,i="ltr"==e.uiLanguageDirection?Yf:Zf;this._addButton("undo",n("Undo"),"CTRL+Z",o),this._addButton("redo",n("Redo"),"CTRL+Y",i)}_addButton(t,e,n,o){const i=this.editor;i.ui.componentFactory.add(t,(r=>{const s=i.commands.get(t),a=new Su(r);return a.set({label:e,icon:o,keystroke:n,tooltip:!0}),a.bind("isEnabled").to(s,"isEnabled"),this.listenTo(a,"execute",(()=>{i.execute(t),i.editing.view.focus()})),a}))}}class $f extends V{static get requires(){return[Wf,Kf]}static get pluginName(){return"Undo"}}class Qf extends H{constructor(t,e){super(t),this.attributeKey=e}refresh(){const t=this.editor.model,e=t.document;this.value=e.selection.getAttribute(this.attributeKey),this.isEnabled=t.schema.checkAttributeInSelection(e.selection,this.attributeKey)}execute(t={}){const e=this.editor.model,n=e.document.selection,o=t.value;e.change((t=>{if(n.isCollapsed)o?t.setSelectionAttribute(this.attributeKey,o):t.removeSelectionAttribute(this.attributeKey);else{const i=e.schema.getValidRanges(n.getRanges(),this.attributeKey);for(const e of i)o?t.setAttribute(this.attributeKey,o,e):t.removeAttribute(this.attributeKey,e)}}))}}class Jf extends bo{constructor(t){super(t),this.set("isEmpty",!0),this.on("change",(()=>{this.set("isEmpty",0===this.length)}))}add(t,e){this.find((e=>e.color===t.color))||super.add(t,e)}hasColor(t){return!!this.find((e=>e.color===t))}}j(Jf,N);var Xf=n(2585),tb={attributes:{"data-cke":!0}};tb.setAttributes=is(),tb.insert=ns().bind(null,"head"),tb.domAPI=ts(),tb.insertStyleElement=ss();Jr()(Xf.Z,tb);Xf.Z&&Xf.Z.locals&&Xf.Z.locals;class eb extends Jd{constructor(t,{colors:e,columns:n,removeButtonLabel:o,documentColorsLabel:i,documentColorsCount:r}){super(t),this.items=this.createCollection(),this.colorDefinitions=e,this.focusTracker=new za,this.keystrokes=new Pa,this.set("selectedColor"),this.removeButtonLabel=o,this.columns=n,this.documentColors=new Jf,this.documentColorsCount=r,this._focusCycler=new Ou({focusables:this.items,focusTracker:this.focusTracker,keystrokeHandler:this.keystrokes,actions:{focusPrevious:"arrowup",focusNext:"arrowdown"}}),this._documentColorsLabel=i,this.setTemplate({tag:"div",attributes:{class:["ck","ck-color-table"]},children:this.items}),this.items.add(this._removeColorButton())}updateDocumentColors(t,e){const n=t.document,o=this.documentColorsCount;this.documentColors.clear();for(const i of n.getRootNames()){const r=n.getRoot(i),s=t.createRangeIn(r);for(const t of s.getItems())if(t.is("$textProxy")&&t.hasAttribute(e)&&(this._addColorToDocumentColors(t.getAttribute(e)),this.documentColors.length>=o))return}}updateSelectedColors(){const t=this.documentColorsGrid,e=this.staticColorsGrid,n=this.selectedColor;e.selectedColor=n,t&&(t.selectedColor=n)}render(){super.render();for(const t of this.items)this.focusTracker.add(t.element);this.keystrokes.listenTo(this.element)}destroy(){super.destroy(),this.focusTracker.destroy(),this.keystrokes.destroy()}appendGrids(){if(!this.staticColorsGrid&&(this.staticColorsGrid=this._createStaticColorsGrid(),this.items.add(this.staticColorsGrid),this.documentColorsCount)){const t=Xd.bind(this.documentColors,this.documentColors),e=new Dh(this.locale);e.text=this._documentColorsLabel,e.extendTemplate({attributes:{class:["ck","ck-color-grid__label",t.if("isEmpty","ck-hidden")]}}),this.items.add(e),this.documentColorsGrid=this._createDocumentColorsGrid(),this.items.add(this.documentColorsGrid)}}focus(){this._focusCycler.focusFirst()}focusLast(){this._focusCycler.focusLast()}_removeColorButton(){const t=new Su;return t.set({withText:!0,icon:Gd.eraser,tooltip:!0,label:this.removeButtonLabel}),t.class="ck-color-table__remove-color",t.on("execute",(()=>{this.fire("execute",{value:null})})),t}_createStaticColorsGrid(){const t=new Fu(this.locale,{colorDefinitions:this.colorDefinitions,columns:this.columns});return t.delegate("execute").to(this),t}_createDocumentColorsGrid(){const t=Xd.bind(this.documentColors,this.documentColors),e=new Fu(this.locale,{columns:this.columns});return e.delegate("execute").to(this),e.extendTemplate({attributes:{class:t.if("isEmpty","ck-hidden")}}),e.items.bindTo(this.documentColors).using((t=>{const e=new Pu;return e.set({color:t.color,hasBorder:t.options&&t.options.hasBorder}),t.label&&e.set({label:t.label,tooltip:!0}),e.on("execute",(()=>{this.fire("execute",{value:t.color})})),e})),this.documentColors.on("change:isEmpty",((t,n,o)=>{o&&(e.selectedColor=null)})),e}_addColorToDocumentColors(t){const e=this.colorDefinitions.find((e=>e.color===t));e?this.documentColors.add(Object.assign({},e)):this.documentColors.add({color:t,label:t,options:{hasBorder:!1}})}}const nb="fontSize",ob="fontFamily",ib="fontColor";function rb(t,e){const n={model:{key:t,values:[]},view:{},upcastAlso:{}};for(const t of e)n.model.values.push(t.model),n.view[t.model]=t.view,t.upcastAlso&&(n.upcastAlso[t.model]=t.upcastAlso);return n}function sb(t){return(e,{writer:n})=>n.createAttributeElement("span",{style:`${t}:${e}`},{priority:7})}class ab extends Qf{constructor(t){super(t,ib)}}class lb extends V{static get pluginName(){return"FontColorEditing"}constructor(t){var e;super(t),t.config.define(ib,{colors:[{color:"hsl(0, 0%, 0%)",label:"Black"},{color:"hsl(0, 0%, 30%)",label:"Dim grey"},{color:"hsl(0, 0%, 60%)",label:"Grey"},{color:"hsl(0, 0%, 90%)",label:"Light grey"},{color:"hsl(0, 0%, 100%)",label:"White",hasBorder:!0},{color:"hsl(0, 75%, 60%)",label:"Red"},{color:"hsl(30, 75%, 60%)",label:"Orange"},{color:"hsl(60, 75%, 60%)",label:"Yellow"},{color:"hsl(90, 75%, 60%)",label:"Light green"},{color:"hsl(120, 75%, 60%)",label:"Green"},{color:"hsl(150, 75%, 60%)",label:"Aquamarine"},{color:"hsl(180, 75%, 60%)",label:"Turquoise"},{color:"hsl(210, 75%, 60%)",label:"Light blue"},{color:"hsl(240, 75%, 60%)",label:"Blue"},{color:"hsl(270, 75%, 60%)",label:"Purple"}],columns:5}),t.conversion.for("upcast").elementToAttribute({view:{name:"span",styles:{color:/[\s\S]+/}},model:{key:ib,value:(e="color",t=>t.getStyle(e).replace(/\s/g,""))}}),t.conversion.for("upcast").elementToAttribute({view:{name:"font",attributes:{color:/^#?\w+$/}},model:{key:ib,value:t=>t.getAttribute("color")}}),t.conversion.for("downcast").attributeToElement({model:ib,view:sb("color")}),t.commands.add(ib,new ab(t)),t.model.schema.extend("$text",{allowAttributes:ib}),t.model.schema.setAttributeProperties(ib,{isFormatting:!0,copyOnEnter:!0})}}class cb extends V{constructor(t,{commandName:e,icon:n,componentName:o,dropdownLabel:i}){super(t),this.commandName=e,this.componentName=o,this.icon=n,this.dropdownLabel=i,this.columns=t.config.get(`${this.componentName}.columns`),this.colorTableView=void 0}init(){const t=this.editor,e=t.locale,n=e.t,o=t.commands.get(this.commandName),i=Bu(e,Nu(t.config.get(this.componentName).colors)),r=t.config.get(`${this.componentName}.documentColors`);t.ui.componentFactory.add(this.componentName,(e=>{const s=kh(e);return this.colorTableView=function({dropdownView:t,colors:e,columns:n,removeButtonLabel:o,documentColorsLabel:i,documentColorsCount:r}){const s=t.locale,a=new eb(s,{colors:e,columns:n,removeButtonLabel:o,documentColorsLabel:i,documentColorsCount:r});return t.colorTableView=a,t.panelView.children.add(a),a.delegate("execute").to(t,"execute"),a}({dropdownView:s,colors:i.map((t=>({label:t.label,color:t.model,options:{hasBorder:t.hasBorder}}))),columns:this.columns,removeButtonLabel:n("Remove color"),documentColorsLabel:0!==r?n("Document colors"):void 0,documentColorsCount:void 0===r?this.columns:r}),this.colorTableView.bind("selectedColor").to(o,"value"),s.buttonView.set({label:this.dropdownLabel,icon:this.icon,tooltip:!0}),s.extendTemplate({attributes:{class:"ck-color-ui-dropdown"}}),s.bind("isEnabled").to(o),s.on("execute",((e,n)=>{t.execute(this.commandName,n),t.editing.view.focus()})),s.on("change:isOpen",((e,n,o)=>{s.colorTableView.appendGrids(),o&&(0!==r&&this.colorTableView.updateDocumentColors(t.model,this.componentName),this.colorTableView.updateSelectedColors())})),Ch(s,(()=>s.colorTableView.staticColorsGrid.items.find((t=>t.isOn)))),s}))}}class db extends cb{constructor(t){const e=t.locale.t;super(t,{commandName:ib,componentName:ib,icon:'',dropdownLabel:e("Font Color")})}static get pluginName(){return"FontColorUI"}}class ub extends Qf{constructor(t){super(t,ob)}}function hb(t){return t.map(mb).filter((t=>!!t))}function mb(t){return"object"==typeof t?t:"default"===t?{title:"Default",model:void 0}:"string"==typeof t?function(t){const e=t.replace(/"|'/g,"").split(","),n=e[0],o=e.map(gb).join(", ");return{title:n,model:o,view:{name:"span",styles:{"font-family":o},priority:7}}}(t):void 0}function gb(t){return(t=t.trim()).indexOf(" ")>0&&(t=`'${t}'`),t}class pb extends V{static get pluginName(){return"FontFamilyEditing"}constructor(t){super(t),t.config.define(ob,{options:["default","Arial, Helvetica, sans-serif","Courier New, Courier, monospace","Georgia, serif","Lucida Sans Unicode, Lucida Grande, sans-serif","Tahoma, Geneva, sans-serif","Times New Roman, Times, serif","Trebuchet MS, Helvetica, sans-serif","Verdana, Geneva, sans-serif"],supportAllValues:!1})}init(){const t=this.editor;t.model.schema.extend("$text",{allowAttributes:ob}),t.model.schema.setAttributeProperties(ob,{isFormatting:!0,copyOnEnter:!0});const e=hb(t.config.get("fontFamily.options")).filter((t=>t.model)),n=rb(ob,e);t.config.get("fontFamily.supportAllValues")?(this._prepareAnyValueConverters(),this._prepareCompatibilityConverter()):t.conversion.attributeToElement(n),t.commands.add(ob,new ub(t))}_prepareAnyValueConverters(){const t=this.editor;t.conversion.for("downcast").attributeToElement({model:ob,view:(t,{writer:e})=>e.createAttributeElement("span",{style:"font-family:"+t},{priority:7})}),t.conversion.for("upcast").elementToAttribute({model:{key:ob,value:t=>t.getStyle("font-family")},view:{name:"span",styles:{"font-family":/.*/}}})}_prepareCompatibilityConverter(){this.editor.conversion.for("upcast").elementToAttribute({view:{name:"font",attributes:{face:/.*/}},model:{key:ob,value:t=>t.getAttribute("face")}})}}class fb extends V{static get pluginName(){return"FontFamilyUI"}init(){const t=this.editor,e=t.t,n=this._getLocalizedOptions(),o=t.commands.get(ob);t.ui.componentFactory.add(ob,(i=>{const r=kh(i);return Ah(r,function(t,e){const n=new bo;for(const o of t){const t={type:"button",model:new Wh({commandName:ob,commandParam:o.model,label:o.title,withText:!0})};t.model.bind("isOn").to(e,"value",(t=>t===o.model||!(!t||!o.model)&&t.split(",")[0].replace(/'/g,"").toLowerCase()===o.model.toLowerCase())),o.view&&o.view.styles&&t.model.set("labelStyle",`font-family: ${o.view.styles["font-family"]}`),n.add(t)}return n}(n,o)),r.buttonView.set({label:e("Font Family"),icon:'',tooltip:!0}),r.extendTemplate({attributes:{class:"ck-font-family-dropdown"}}),r.bind("isEnabled").to(o),this.listenTo(r,"execute",(e=>{t.execute(e.source.commandName,{value:e.source.commandParam}),t.editing.view.focus()})),r}))}_getLocalizedOptions(){const t=this.editor,e=t.t;return hb(t.config.get(ob).options).map((t=>("Default"===t.title&&(t.title=e("Default")),t)))}}class bb extends Qf{constructor(t){super(t,nb)}}function kb(t){return t.map((t=>function(t){if(e=t,"object"==typeof e&&e.title&&e.model&&e.view)return Ab(t);var e;const n=function(t){return wb[t]||wb[t.model]}(t);if(n)return Ab(n);if("default"===t)return{model:void 0,title:"Default"};if(function(t){let e;if("object"==typeof t){if(!t.model)throw new l("font-size-invalid-definition",null,t);e=parseFloat(t.model)}else e=parseFloat(t);return isNaN(e)}(t))return;return function(t){"number"!=typeof t&&"string"!=typeof t||(t={title:String(t),model:`${parseFloat(t)}px`});return t.view={name:"span",styles:{"font-size":t.model}},Ab(t)}(t)}(t))).filter((t=>!!t))}const wb={get tiny(){return{title:"Tiny",model:"tiny",view:{name:"span",classes:"text-tiny",priority:7}}},get small(){return{title:"Small",model:"small",view:{name:"span",classes:"text-small",priority:7}}},get big(){return{title:"Big",model:"big",view:{name:"span",classes:"text-big",priority:7}}},get huge(){return{title:"Huge",model:"huge",view:{name:"span",classes:"text-huge",priority:7}}}};function Ab(t){return t.view.priority||(t.view.priority=7),t}const Cb=["x-small","x-small","small","medium","large","x-large","xx-large","xxx-large"];class _b extends V{static get pluginName(){return"FontSizeEditing"}constructor(t){super(t),t.config.define(nb,{options:["tiny","small","default","big","huge"],supportAllValues:!1})}init(){const t=this.editor;t.model.schema.extend("$text",{allowAttributes:nb}),t.model.schema.setAttributeProperties(nb,{isFormatting:!0,copyOnEnter:!0});const e=t.config.get("fontSize.supportAllValues"),n=kb(this.editor.config.get("fontSize.options")).filter((t=>t.model)),o=rb(nb,n);e?(this._prepareAnyValueConverters(o),this._prepareCompatibilityConverter()):t.conversion.attributeToElement(o),t.commands.add(nb,new bb(t))}_prepareAnyValueConverters(t){const e=this.editor,n=t.model.values.filter((t=>!Wm(String(t))&&!Ym(String(t))));if(n.length)throw new l("font-size-invalid-use-of-named-presets",null,{presets:n});e.conversion.for("downcast").attributeToElement({model:nb,view:(t,{writer:e})=>{if(t)return e.createAttributeElement("span",{style:"font-size:"+t},{priority:7})}}),e.conversion.for("upcast").elementToAttribute({model:{key:nb,value:t=>t.getStyle("font-size")},view:{name:"span",styles:{"font-size":/.*/}}})}_prepareCompatibilityConverter(){this.editor.conversion.for("upcast").elementToAttribute({view:{name:"font",attributes:{size:/^[+-]?\d{1,3}$/}},model:{key:nb,value:t=>{const e=t.getAttribute("size"),n="-"===e[0]||"+"===e[0];let o=parseInt(e,10);n&&(o=3+o);const i=Cb.length-1,r=Math.min(Math.max(o,0),i);return Cb[r]}}})}}var vb=n(6203),yb={attributes:{"data-cke":!0}};yb.setAttributes=is(),yb.insert=ns().bind(null,"head"),yb.domAPI=ts(),yb.insertStyleElement=ss();Jr()(vb.Z,yb);vb.Z&&vb.Z.locals&&vb.Z.locals;class xb extends V{static get pluginName(){return"FontSizeUI"}init(){const t=this.editor,e=t.t,n=this._getLocalizedOptions(),o=t.commands.get(nb);t.ui.componentFactory.add(nb,(i=>{const r=kh(i);return Ah(r,function(t,e){const n=new bo;for(const o of t){const t={type:"button",model:new Wh({commandName:nb,commandParam:o.model,label:o.title,class:"ck-fontsize-option",withText:!0})};o.view&&o.view.styles&&t.model.set("labelStyle",`font-size:${o.view.styles["font-size"]}`),o.view&&o.view.classes&&t.model.set("class",`${t.model.class} ${o.view.classes}`),t.model.bind("isOn").to(e,"value",(t=>t===o.model)),n.add(t)}return n}(n,o)),r.buttonView.set({label:e("Font Size"),icon:'',tooltip:!0}),r.extendTemplate({attributes:{class:["ck-font-size-dropdown"]}}),r.bind("isEnabled").to(o),this.listenTo(r,"execute",(e=>{t.execute(e.source.commandName,{value:e.source.commandParam}),t.editing.view.focus()})),r}))}_getLocalizedOptions(){const t=this.editor,e=t.t,n={Default:e("Default"),Tiny:e("Tiny"),Small:e("Small"),Big:e("Big"),Huge:e("Huge")};return kb(t.config.get(nb).options).map((t=>{const e=n[t.title];return e&&e!=t.title&&(t=Object.assign({},t,{title:e})),t}))}}class Eb extends H{refresh(){const t=this.editor.model,e=Ba(t.document.selection.getSelectedBlocks());this.value=!!e&&e.is("element","paragraph"),this.isEnabled=!!e&&Db(e,t.schema)}execute(t={}){const e=this.editor.model,n=e.document;e.change((o=>{const i=(t.selection||n.selection).getSelectedBlocks();for(const t of i)!t.is("element","paragraph")&&Db(t,e.schema)&&o.rename(t,"paragraph")}))}}function Db(t,e){return e.checkChild(t.parent,"paragraph")&&!e.isObject(t)}class Sb extends H{execute(t){const e=this.editor.model,n=t.attributes;let o=t.position;e.change((t=>{const i=t.createElement("paragraph");if(n&&e.schema.setAllowedAttributes(i,n,t),!e.schema.checkChild(o.parent,i)){const n=e.schema.findAllowedParent(o,i);if(!n)return;o=t.split(o,n).position}e.insertContent(i,o),t.setSelection(i,"in")}))}}class Ib extends V{static get pluginName(){return"Paragraph"}init(){const t=this.editor,e=t.model;t.commands.add("paragraph",new Eb(t)),t.commands.add("insertParagraph",new Sb(t)),e.schema.register("paragraph",{inheritAllFrom:"$block"}),t.conversion.elementToElement({model:"paragraph",view:"p"}),t.conversion.for("upcast").elementToElement({model:(t,{writer:e})=>Ib.paragraphLikeElements.has(t.name)?t.isEmpty?null:e.createElement("paragraph"):null,view:/.+/,converterPriority:"low"})}}Ib.paragraphLikeElements=new Set(["blockquote","dd","div","dt","h1","h2","h3","h4","h5","h6","li","p","td","th"]);class Tb extends H{constructor(t,e){super(t),this.modelElements=e}refresh(){const t=Ba(this.editor.model.document.selection.getSelectedBlocks());this.value=!!t&&this.modelElements.includes(t.name)&&t.name,this.isEnabled=!!t&&this.modelElements.some((e=>Mb(t,e,this.editor.model.schema)))}execute(t){const e=this.editor.model,n=e.document,o=t.value;e.change((t=>{const i=Array.from(n.selection.getSelectedBlocks()).filter((t=>Mb(t,o,e.schema)));for(const e of i)e.is("element",o)||t.rename(e,o)}))}}function Mb(t,e,n){return n.checkChild(t.parent,e)&&!n.isObject(t)}const Bb="paragraph";class Nb extends V{static get pluginName(){return"HeadingEditing"}constructor(t){super(t),t.config.define("heading",{options:[{model:"paragraph",title:"Paragraph",class:"ck-heading_paragraph"},{model:"heading1",view:"h2",title:"Heading 1",class:"ck-heading_heading1"},{model:"heading2",view:"h3",title:"Heading 2",class:"ck-heading_heading2"},{model:"heading3",view:"h4",title:"Heading 3",class:"ck-heading_heading3"}]})}static get requires(){return[Ib]}init(){const t=this.editor,e=t.config.get("heading.options"),n=[];for(const o of e)o.model!==Bb&&(t.model.schema.register(o.model,{inheritAllFrom:"$block"}),t.conversion.elementToElement(o),n.push(o.model));this._addDefaultH1Conversion(t),t.commands.add("heading",new Tb(t,n))}afterInit(){const t=this.editor,e=t.commands.get("enter"),n=t.config.get("heading.options");e&&this.listenTo(e,"afterExecute",((e,o)=>{const i=t.model.document.selection.getFirstPosition().parent;n.some((t=>i.is("element",t.model)))&&!i.is("element",Bb)&&0===i.childCount&&o.writer.rename(i,Bb)}))}_addDefaultH1Conversion(t){t.conversion.for("upcast").elementToElement({model:"heading1",view:"h1",converterPriority:s.get("low")+1})}}var zb=n(3230),Pb={attributes:{"data-cke":!0}};Pb.setAttributes=is(),Pb.insert=ns().bind(null,"head"),Pb.domAPI=ts(),Pb.insertStyleElement=ss();Jr()(zb.Z,Pb);zb.Z&&zb.Z.locals&&zb.Z.locals;class Lb extends V{static get pluginName(){return"HeadingUI"}init(){const t=this.editor,e=t.t,n=function(t){const e=t.t,n={Paragraph:e("Paragraph"),"Heading 1":e("Heading 1"),"Heading 2":e("Heading 2"),"Heading 3":e("Heading 3"),"Heading 4":e("Heading 4"),"Heading 5":e("Heading 5"),"Heading 6":e("Heading 6")};return t.config.get("heading.options").map((t=>{const e=n[t.title];return e&&e!=t.title&&(t.title=e),t}))}(t),o=e("Choose heading"),i=e("Heading");t.ui.componentFactory.add("heading",(e=>{const r={},s=new bo,a=t.commands.get("heading"),l=t.commands.get("paragraph"),c=[a];for(const t of n){const e={type:"button",model:new Wh({label:t.title,class:t.class,withText:!0})};"paragraph"===t.model?(e.model.bind("isOn").to(l,"value"),e.model.set("commandName","paragraph"),c.push(l)):(e.model.bind("isOn").to(a,"value",(e=>e===t.model)),e.model.set({commandName:"heading",commandValue:t.model})),s.add(e),r[t.model]=t.title}const d=kh(e);return Ah(d,s),d.buttonView.set({isOn:!1,withText:!0,tooltip:i}),d.extendTemplate({attributes:{class:["ck-heading-dropdown"]}}),d.bind("isEnabled").toMany(c,"isEnabled",((...t)=>t.some((t=>t)))),d.buttonView.bind("label").to(a,"value",l,"value",((t,e)=>{const n=t||e&&"paragraph";return r[n]?r[n]:o})),this.listenTo(d,"execute",(e=>{t.execute(e.source.commandName,e.source.commandValue?{value:e.source.commandValue}:void 0),t.editing.view.focus()})),d}))}}class Ob extends V{static get requires(){return[rm]}static get pluginName(){return"WidgetToolbarRepository"}init(){const t=this.editor;if(t.plugins.has("BalloonToolbar")){const e=t.plugins.get("BalloonToolbar");this.listenTo(e,"show",(e=>{(function(t){const e=t.getSelectedElement();return!(!e||!Xp(e))})(t.editing.view.document.selection)&&e.stop()}),{priority:"high"})}this._toolbarDefinitions=new Map,this._balloon=this.editor.plugins.get("ContextualBalloon"),this.on("change:isEnabled",(()=>{this._updateToolbarsVisibility()})),this.listenTo(t.ui,"update",(()=>{this._updateToolbarsVisibility()})),this.listenTo(t.ui.focusTracker,"change:isFocused",(()=>{this._updateToolbarsVisibility()}),{priority:"low"})}destroy(){super.destroy();for(const t of this._toolbarDefinitions.values())t.view.destroy()}register(t,{ariaLabel:e,items:n,getRelatedElement:o,balloonClassName:i="ck-toolbar-container"}){if(!n.length)return void c("widget-toolbar-no-items",{toolbarId:t});const r=this.editor,s=r.t,a=new rh(r.locale);if(a.ariaLabel=e||s("Widget toolbar"),this._toolbarDefinitions.has(t))throw new l("widget-toolbar-duplicated",this,{toolbarId:t});a.fillFromConfig(n,r.ui.componentFactory),this._toolbarDefinitions.set(t,{view:a,getRelatedElement:o,balloonClassName:i})}_updateToolbarsVisibility(){let t=0,e=null,n=null;for(const o of this._toolbarDefinitions.values()){const i=o.getRelatedElement(this.editor.editing.view.document.selection);if(this.isEnabled&&i)if(this.editor.ui.focusTracker.isFocused){const r=i.getAncestors().length;r>t&&(t=r,e=i,n=o)}else this._isToolbarVisible(o)&&this._hideToolbar(o);else this._isToolbarInBalloon(o)&&this._hideToolbar(o)}n&&this._showToolbar(n,e)}_hideToolbar(t){this._balloon.remove(t.view),this.stopListening(this._balloon,"change:visibleView")}_showToolbar(t,e){this._isToolbarVisible(t)?Rb(this.editor,e):this._isToolbarInBalloon(t)||(this._balloon.add({view:t.view,position:jb(this.editor,e),balloonClassName:t.balloonClassName}),this.listenTo(this._balloon,"change:visibleView",(()=>{for(const t of this._toolbarDefinitions.values())if(this._isToolbarVisible(t)){const e=t.getRelatedElement(this.editor.editing.view.document.selection);Rb(this.editor,e)}})))}_isToolbarVisible(t){return this._balloon.visibleView===t.view}_isToolbarInBalloon(t){return this._balloon.hasView(t.view)}}function Rb(t,e){const n=t.plugins.get("ContextualBalloon"),o=jb(t,e);n.updatePosition(o)}function jb(t,e){const n=t.editing.view,o=Jh.defaultPositions;return{target:n.domConverter.mapViewToDom(e),positions:[o.northArrowSouth,o.northArrowSouthWest,o.northArrowSouthEast,o.southArrowNorth,o.southArrowNorthWest,o.southArrowNorthEast,o.viewportStickyNorth]}}class Vb{constructor(t){this.set("activeHandlePosition",null),this.set("proposedWidthPercents",null),this.set("proposedWidth",null),this.set("proposedHeight",null),this.set("proposedHandleHostWidth",null),this.set("proposedHandleHostHeight",null),this._options=t,this._referenceCoordinates=null}begin(t,e,n){const o=new Da(e);this.activeHandlePosition=function(t){const e=["top-left","top-right","bottom-right","bottom-left"];for(const n of e)if(t.classList.contains(Fb(n)))return n}(t),this._referenceCoordinates=function(t,e){const n=new Da(t),o=e.split("-"),i={x:"right"==o[1]?n.right:n.left,y:"bottom"==o[0]?n.bottom:n.top};return i.x+=t.ownerDocument.defaultView.scrollX,i.y+=t.ownerDocument.defaultView.scrollY,i}(e,function(t){const e=t.split("-"),n={top:"bottom",bottom:"top",left:"right",right:"left"};return`${n[e[0]]}-${n[e[1]]}`}(this.activeHandlePosition)),this.originalWidth=o.width,this.originalHeight=o.height,this.aspectRatio=o.width/o.height;const i=n.style.width;i&&i.match(/^\d+(\.\d*)?%$/)?this.originalWidthPercents=parseFloat(i):this.originalWidthPercents=function(t,e){const n=t.parentElement,o=parseFloat(n.ownerDocument.defaultView.getComputedStyle(n).width);return e.width/o*100}(n,o)}update(t){this.proposedWidth=t.width,this.proposedHeight=t.height,this.proposedWidthPercents=t.widthPercents,this.proposedHandleHostWidth=t.handleHostWidth,this.proposedHandleHostHeight=t.handleHostHeight}}function Fb(t){return`ck-widget__resizer__handle-${t}`}j(Vb,N);class Hb extends Jd{constructor(){super();const t=this.bindTemplate;this.setTemplate({tag:"div",attributes:{class:["ck","ck-size-view",t.to("_viewPosition",(t=>t?`ck-orientation-${t}`:""))],style:{display:t.if("_isVisible","none",(t=>!t))}},children:[{text:t.to("_label")}]})}_bindToState(t,e){this.bind("_isVisible").to(e,"proposedWidth",e,"proposedHeight",((t,e)=>null!==t&&null!==e)),this.bind("_label").to(e,"proposedHandleHostWidth",e,"proposedHandleHostHeight",e,"proposedWidthPercents",((e,n,o)=>"px"===t.unit?`${e}×${n}`:`${o}%`)),this.bind("_viewPosition").to(e,"activeHandlePosition",e,"proposedHandleHostWidth",e,"proposedHandleHostHeight",((t,e,n)=>e<50||n<50?"above-center":t))}_dismiss(){this.unbind(),this._isVisible=!1}}class Ub{constructor(t){this._options=t,this._viewResizerWrapper=null,this.set("isEnabled",!0),this.decorate("begin"),this.decorate("cancel"),this.decorate("commit"),this.decorate("updateSize"),this.on("commit",(t=>{this.state.proposedWidth||this.state.proposedWidthPercents||(this._cleanup(),t.stop())}),{priority:"high"}),this.on("change:isEnabled",(()=>{this.isEnabled&&this.redraw()}))}attach(){const t=this,e=this._options.viewElement;this._options.editor.editing.view.change((n=>{const o=n.createUIElement("div",{class:"ck ck-reset_all ck-widget__resizer"},(function(e){const n=this.toDomElement(e);return t._appendHandles(n),t._appendSizeUI(n),t.on("change:isEnabled",((t,e,o)=>{n.style.display=o?"":"none"})),n.style.display=t.isEnabled?"":"none",n}));n.insert(n.createPositionAt(e,"end"),o),n.addClass("ck-widget_with-resizer",e),this._viewResizerWrapper=o}))}begin(t){this.state=new Vb(this._options),this._sizeView._bindToState(this._options,this.state),this._initialViewWidth=this._options.viewElement.getStyle("width"),this.state.begin(t,this._getHandleHost(),this._getResizeHost())}updateSize(t){const e=this._proposeNewSize(t);this._options.editor.editing.view.change((t=>{const n=this._options.unit||"%",o=("%"===n?e.widthPercents:e.width)+n;t.setStyle("width",o,this._options.viewElement)}));const n=this._getHandleHost(),o=new Da(n);e.handleHostWidth=Math.round(o.width),e.handleHostHeight=Math.round(o.height);const i=new Da(n);e.width=Math.round(i.width),e.height=Math.round(i.height),this.redraw(o),this.state.update(e)}commit(){const t=this._options.unit||"%",e=("%"===t?this.state.proposedWidthPercents:this.state.proposedWidth)+t;this._options.editor.editing.view.change((()=>{this._cleanup(),this._options.onCommit(e)}))}cancel(){this._cleanup()}destroy(){this.cancel()}redraw(t){const e=this._domResizerWrapper;if(!((n=e)&&n.ownerDocument&&n.ownerDocument.contains(n)))return;var n;const o=e.parentElement,i=this._getHandleHost(),r=this._viewResizerWrapper,s=[r.getStyle("width"),r.getStyle("height"),r.getStyle("left"),r.getStyle("top")];let a;if(o.isSameNode(i)){const e=t||new Da(i);a=[e.width+"px",e.height+"px",void 0,void 0]}else a=[i.offsetWidth+"px",i.offsetHeight+"px",i.offsetLeft+"px",i.offsetTop+"px"];"same"!==Eo(s,a)&&this._options.editor.editing.view.change((t=>{t.setStyle({width:a[0],height:a[1],left:a[2],top:a[3]},r)}))}containsHandle(t){return this._domResizerWrapper.contains(t)}static isResizeHandle(t){return t.classList.contains("ck-widget__resizer__handle")}_cleanup(){this._sizeView._dismiss();this._options.editor.editing.view.change((t=>{t.setStyle("width",this._initialViewWidth,this._options.viewElement)}))}_proposeNewSize(t){const e=this.state,n={x:(o=t).pageX,y:o.pageY};var o;const i=!this._options.isCentered||this._options.isCentered(this),r={x:e._referenceCoordinates.x-(n.x+e.originalWidth),y:n.y-e.originalHeight-e._referenceCoordinates.y};i&&e.activeHandlePosition.endsWith("-right")&&(r.x=n.x-(e._referenceCoordinates.x+e.originalWidth)),i&&(r.x*=2);const s={width:Math.abs(e.originalWidth+r.x),height:Math.abs(e.originalHeight+r.y)};s.dominant=s.width/e.aspectRatio>s.height?"width":"height",s.max=s[s.dominant];const a={width:s.width,height:s.height};return"width"==s.dominant?a.height=a.width/e.aspectRatio:a.width=a.height*e.aspectRatio,{width:Math.round(a.width),height:Math.round(a.height),widthPercents:Math.min(Math.round(e.originalWidthPercents/e.originalWidth*a.width*100)/100,100)}}_getResizeHost(){const t=this._domResizerWrapper.parentElement;return this._options.getResizeHost(t)}_getHandleHost(){const t=this._domResizerWrapper.parentElement;return this._options.getHandleHost(t)}get _domResizerWrapper(){return this._options.editor.editing.view.domConverter.mapViewToDom(this._viewResizerWrapper)}_appendHandles(t){const e=["top-left","top-right","bottom-right","bottom-left"];for(const o of e)t.appendChild(new Xd({tag:"div",attributes:{class:"ck-widget__resizer__handle "+(n=o,`ck-widget__resizer__handle-${n}`)}}).render());var n}_appendSizeUI(t){this._sizeView=new Hb,this._sizeView.render(),t.appendChild(this._sizeView.element)}}j(Ub,N);var qb=n(2263),Gb={attributes:{"data-cke":!0}};Gb.setAttributes=is(),Gb.insert=ns().bind(null,"head"),Gb.domAPI=ts(),Gb.insertStyleElement=ss();Jr()(qb.Z,Gb);qb.Z&&qb.Z.locals&&qb.Z.locals;class Wb extends V{static get pluginName(){return"WidgetResize"}init(){const t=this.editor.editing,e=ms.window.document;this.set("visibleResizer",null),this.set("_activeResizer",null),this._resizers=new Map,t.view.addObserver(zm),this._observer=Object.create(Ss),this.listenTo(t.view.document,"mousedown",this._mouseDownListener.bind(this),{priority:"high"}),this._observer.listenTo(e,"mousemove",this._mouseMoveListener.bind(this)),this._observer.listenTo(e,"mouseup",this._mouseUpListener.bind(this));const n=()=>{this.visibleResizer&&this.visibleResizer.redraw()};this._redrawFocusedResizerThrottled=xf(n,200),this.on("change:visibleResizer",n),this.editor.ui.on("update",this._redrawFocusedResizerThrottled),this.editor.model.document.on("change",(()=>{for(const[t,e]of this._resizers)t.isAttached()||(this._resizers.delete(t),e.destroy())}),{priority:"lowest"}),this._observer.listenTo(ms.window,"resize",this._redrawFocusedResizerThrottled);const o=this.editor.editing.view.document.selection;o.on("change",(()=>{const t=o.getSelectedElement();this.visibleResizer=this.getResizerByViewElement(t)||null}))}destroy(){this._observer.stopListening();for(const t of this._resizers.values())t.destroy();this._redrawFocusedResizerThrottled.cancel()}attachTo(t){const e=new Ub(t),n=this.editor.plugins;if(e.attach(),n.has("WidgetToolbarRepository")){const t=n.get("WidgetToolbarRepository");e.on("begin",(()=>{t.forceDisabled("resize")}),{priority:"lowest"}),e.on("cancel",(()=>{t.clearForceDisabled("resize")}),{priority:"highest"}),e.on("commit",(()=>{t.clearForceDisabled("resize")}),{priority:"highest"})}this._resizers.set(t.viewElement,e);const o=this.editor.editing.view.document.selection.getSelectedElement();return this.getResizerByViewElement(o)==e&&(this.visibleResizer=e),e}getResizerByViewElement(t){return this._resizers.get(t)}_getResizerByHandle(t){for(const e of this._resizers.values())if(e.containsHandle(t))return e}_mouseDownListener(t,e){const n=e.domTarget;Ub.isResizeHandle(n)&&(this._activeResizer=this._getResizerByHandle(n),this._activeResizer&&(this._activeResizer.begin(n),t.stop(),e.preventDefault()))}_mouseMoveListener(t,e){this._activeResizer&&this._activeResizer.updateSize(e)}_mouseUpListener(){this._activeResizer&&(this._activeResizer.commit(),this._activeResizer=null)}}j(Wb,N);class Zb extends H{refresh(){const t=this.editor.model,e=t.schema,n=t.document.selection;this.isEnabled=function(t,e,n){const o=function(t,e){const n=af(t,e).start.parent;if(n.isEmpty&&!n.is("element","$root"))return n.parent;return n}(t,n);return e.checkChild(o,"horizontalLine")}(n,e,t)}execute(){const t=this.editor.model;t.change((e=>{const n=e.createElement("horizontalLine");t.insertObject(n,null,null,{setSelection:"after"})}))}}var Yb=n(2536),Kb={attributes:{"data-cke":!0}};Kb.setAttributes=is(),Kb.insert=ns().bind(null,"head"),Kb.domAPI=ts(),Kb.insertStyleElement=ss();Jr()(Yb.Z,Kb);Yb.Z&&Yb.Z.locals&&Yb.Z.locals;class $b extends V{static get pluginName(){return"HorizontalLineEditing"}init(){const t=this.editor,e=t.model.schema,n=t.t,o=t.conversion;e.register("horizontalLine",{inheritAllFrom:"$blockObject"}),o.for("dataDowncast").elementToElement({model:"horizontalLine",view:(t,{writer:e})=>e.createEmptyElement("hr")}),o.for("editingDowncast").elementToStructure({model:"horizontalLine",view:(t,{writer:e})=>{const o=n("Horizontal line"),i=e.createContainerElement("div",null,e.createEmptyElement("hr"));return e.addClass("ck-horizontal-line",i),e.setCustomProperty("hr",!0,i),function(t,e,n){return e.setCustomProperty("horizontalLine",!0,t),tf(t,e,{label:n})}(i,e,o)}}),o.for("upcast").elementToElement({view:"hr",model:"horizontalLine"}),t.commands.add("horizontalLine",new Zb(t))}}class Qb extends V{static get pluginName(){return"HorizontalLineUI"}init(){const t=this.editor,e=t.t;t.ui.componentFactory.add("horizontalLine",(n=>{const o=t.commands.get("horizontalLine"),i=new Su(n);return i.set({label:e("Horizontal line"),icon:'',tooltip:!0}),i.bind("isEnabled").to(o,"isEnabled"),this.listenTo(i,"execute",(()=>{t.execute("horizontalLine"),t.editing.view.focus()})),i}))}}class Jb extends H{refresh(){const t=this.editor.plugins.get("ImageUtils").getClosestSelectedImageElement(this.editor.model.document.selection);this.isEnabled=!!t,this.isEnabled&&t.hasAttribute("alt")?this.value=t.getAttribute("alt"):this.value=!1}execute(t){const e=this.editor,n=e.plugins.get("ImageUtils"),o=e.model,i=n.getClosestSelectedImageElement(o.document.selection);o.change((e=>{e.setAttribute("alt",t.newValue,i)}))}}function Xb(t){return t.createContainerElement("figure",{class:"image"},[t.createEmptyElement("img"),t.createSlot()])}function tk(t,e){const n=t.plugins.get("ImageUtils"),o=t.plugins.has("ImageInlineEditing")&&t.plugins.has("ImageBlockEditing");return t=>{if(!n.isInlineImageView(t))return null;if(!o)return i(t);return(t.findAncestor(n.isBlockImageView)?"imageBlock":"imageInline")!==e?null:i(t)};function i(t){const e={name:!0};return t.hasAttribute("src")&&(e.attributes=["src"]),e}}function ek(t,e){const n=Ba(e.getSelectedBlocks());return!n||t.isObject(n)||n.isEmpty&&"listItem"!=n.name?"imageBlock":"imageInline"}class nk extends V{static get pluginName(){return"ImageUtils"}isImage(t){return this.isInlineImage(t)||this.isBlockImage(t)}isInlineImageView(t){return!!t&&t.is("element","img")}isBlockImageView(t){return!!t&&t.is("element","figure")&&t.hasClass("image")}insertImage(t={},e=null,n=null){const o=this.editor,i=o.model,r=i.document.selection;n=ok(o,e||r,n),t={...Object.fromEntries(r.getAttributes()),...t};for(const e in t)i.schema.checkAttribute(n,e)||delete t[e];return i.change((o=>{const r=o.createElement(n,t);return i.insertObject(r,e,null,{setSelection:"on",findOptimalPosition:!e&&"imageInline"!=n}),r.parent?r:null}))}getClosestSelectedImageWidget(t){const e=t.getFirstPosition();if(!e)return null;const n=t.getSelectedElement();if(n&&this.isImageWidget(n))return n;let o=e.parent;for(;o;){if(o.is("element")&&this.isImageWidget(o))return o;o=o.parent}return null}getClosestSelectedImageElement(t){const e=t.getSelectedElement();return this.isImage(e)?e:t.getFirstPosition().findAncestor("imageBlock")}isImageAllowed(){const t=this.editor.model.document.selection;return function(t,e){if("imageBlock"==ok(t,e)){const n=function(t,e){const n=af(t,e).start.parent;if(n.isEmpty&&!n.is("element","$root"))return n.parent;return n}(e,t.model);if(t.model.schema.checkChild(n,"imageBlock"))return!0}else if(t.model.schema.checkChild(e.focus,"imageInline"))return!0;return!1}(this.editor,t)&&function(t){return[...t.focus.getAncestors()].every((t=>!t.is("element","imageBlock")))}(t)}toImageWidget(t,e,n){e.setCustomProperty("image",!0,t);return tf(t,e,{label:()=>{const e=this.findViewImgElement(t).getAttribute("alt");return e?`${e} ${n}`:n}})}isImageWidget(t){return!!t.getCustomProperty("image")&&Xp(t)}isBlockImage(t){return!!t&&t.is("element","imageBlock")}isInlineImage(t){return!!t&&t.is("element","imageInline")}findViewImgElement(t){if(this.isInlineImageView(t))return t;const e=this.editor.editing.view;for(const{item:n}of e.createRangeIn(t))if(this.isInlineImageView(n))return n}}function ok(t,e,n){const o=t.model.schema,i=t.config.get("image.insert.type");return t.plugins.has("ImageBlockEditing")?t.plugins.has("ImageInlineEditing")?n||("inline"===i?"imageInline":"block"===i?"imageBlock":e.is("selection")?ek(o,e):o.checkChild(e,"imageInline")?"imageInline":"imageBlock"):"imageBlock":"imageInline"}class ik extends V{static get requires(){return[nk]}static get pluginName(){return"ImageTextAlternativeEditing"}init(){this.editor.commands.add("imageTextAlternative",new Jb(this.editor))}}var rk=n(6831),sk={attributes:{"data-cke":!0}};sk.setAttributes=is(),sk.insert=ns().bind(null,"head"),sk.domAPI=ts(),sk.insertStyleElement=ss();Jr()(rk.Z,sk);rk.Z&&rk.Z.locals&&rk.Z.locals;var ak=n(1590),lk={attributes:{"data-cke":!0}};lk.setAttributes=is(),lk.insert=ns().bind(null,"head"),lk.domAPI=ts(),lk.insertStyleElement=ss();Jr()(ak.Z,lk);ak.Z&&ak.Z.locals&&ak.Z.locals;class ck extends Jd{constructor(t){super(t);const e=this.locale.t;this.focusTracker=new za,this.keystrokes=new Pa,this.labeledInput=this._createLabeledInputView(),this.saveButtonView=this._createButton(e("Save"),Gd.check,"ck-button-save"),this.saveButtonView.type="submit",this.cancelButtonView=this._createButton(e("Cancel"),Gd.cancel,"ck-button-cancel","cancel"),this._focusables=new Kd,this._focusCycler=new Ou({focusables:this._focusables,focusTracker:this.focusTracker,keystrokeHandler:this.keystrokes,actions:{focusPrevious:"shift + tab",focusNext:"tab"}}),this.setTemplate({tag:"form",attributes:{class:["ck","ck-text-alternative-form","ck-responsive-form"],tabindex:"-1"},children:[this.labeledInput,this.saveButtonView,this.cancelButtonView]}),Zd(this)}render(){super.render(),this.keystrokes.listenTo(this.element),Yd({view:this}),[this.labeledInput,this.saveButtonView,this.cancelButtonView].forEach((t=>{this._focusables.add(t),this.focusTracker.add(t.element)}))}destroy(){super.destroy(),this.focusTracker.destroy(),this.keystrokes.destroy()}_createButton(t,e,n,o){const i=new Su(this.locale);return i.set({label:t,icon:e,tooltip:!0}),i.extendTemplate({attributes:{class:n}}),o&&i.delegate("execute").to(this,o),i}_createLabeledInputView(){const t=this.locale.t,e=new Fh(this.locale,Hh);return e.label=t("Text alternative"),e}}function dk(t){const e=t.editing.view,n=Jh.defaultPositions,o=t.plugins.get("ImageUtils");return{target:e.domConverter.mapViewToDom(o.getClosestSelectedImageWidget(e.document.selection)),positions:[n.northArrowSouth,n.northArrowSouthWest,n.northArrowSouthEast,n.southArrowNorth,n.southArrowNorthWest,n.southArrowNorthEast,n.viewportStickyNorth]}}class uk extends V{static get requires(){return[rm]}static get pluginName(){return"ImageTextAlternativeUI"}init(){this._createButton(),this._createForm()}destroy(){super.destroy(),this._form.destroy()}_createButton(){const t=this.editor,e=t.t;t.ui.componentFactory.add("imageTextAlternative",(n=>{const o=t.commands.get("imageTextAlternative"),i=new Su(n);return i.set({label:e("Change image text alternative"),icon:Gd.lowVision,tooltip:!0}),i.bind("isEnabled").to(o,"isEnabled"),this.listenTo(i,"execute",(()=>{this._showForm()})),i}))}_createForm(){const t=this.editor,e=t.editing.view.document,n=t.plugins.get("ImageUtils");this._balloon=this.editor.plugins.get("ContextualBalloon"),this._form=new ck(t.locale),this._form.render(),this.listenTo(this._form,"submit",(()=>{t.execute("imageTextAlternative",{newValue:this._form.labeledInput.fieldView.element.value}),this._hideForm(!0)})),this.listenTo(this._form,"cancel",(()=>{this._hideForm(!0)})),this._form.keystrokes.set("Esc",((t,e)=>{this._hideForm(!0),e()})),this.listenTo(t.ui,"update",(()=>{n.getClosestSelectedImageWidget(e.selection)?this._isVisible&&function(t){const e=t.plugins.get("ContextualBalloon");if(t.plugins.get("ImageUtils").getClosestSelectedImageWidget(t.editing.view.document.selection)){const n=dk(t);e.updatePosition(n)}}(t):this._hideForm(!0)})),Wd({emitter:this._form,activator:()=>this._isVisible,contextElements:[this._balloon.view.element],callback:()=>this._hideForm()})}_showForm(){if(this._isVisible)return;const t=this.editor,e=t.commands.get("imageTextAlternative"),n=this._form.labeledInput;this._form.disableCssTransitions(),this._isInBalloon||this._balloon.add({view:this._form,position:dk(t)}),n.fieldView.value=n.fieldView.element.value=e.value||"",this._form.labeledInput.fieldView.select(),this._form.enableCssTransitions()}_hideForm(t){this._isInBalloon&&(this._form.focusTracker.isFocused&&this._form.saveButtonView.focus(),this._balloon.remove(this._form),t&&this.editor.editing.view.focus())}get _isVisible(){return this._balloon.visibleView===this._form}get _isInBalloon(){return this._balloon.hasView(this._form)}}class hk extends V{static get requires(){return[ik,uk]}static get pluginName(){return"ImageTextAlternative"}}function mk(t,e){return t=>{t.on(`attribute:srcset:${e}`,n)};function n(e,n,o){if(!o.consumable.consume(n.item,e.name))return;const i=o.writer,r=o.mapper.toViewElement(n.item),s=t.findViewImgElement(r);if(null===n.attributeNewValue){const t=n.attributeOldValue;t.data&&(i.removeAttribute("srcset",s),i.removeAttribute("sizes",s),t.width&&i.removeAttribute("width",s))}else{const t=n.attributeNewValue;t.data&&(i.setAttribute("srcset",t.data,s),i.setAttribute("sizes","100vw",s),t.width&&i.setAttribute("width",t.width,s))}}}function gk(t,e,n){return t=>{t.on(`attribute:${n}:${e}`,o)};function o(e,n,o){if(!o.consumable.consume(n.item,e.name))return;const i=o.writer,r=o.mapper.toViewElement(n.item),s=t.findViewImgElement(r);i.setAttribute(n.attributeKey,n.attributeNewValue||"",s)}}class pk extends Ms{observe(t){this.listenTo(t,"load",((t,e)=>{const n=e.target;this.checkShouldIgnoreEventFromTarget(n)||"IMG"==n.tagName&&this._fireEvents(e)}),{useCapture:!0})}_fireEvents(t){this.isEnabled&&(this.document.fire("layoutChanged"),this.document.fire("imageLoaded",t))}}class fk extends H{constructor(t){super(t);const e=t.config.get("image.insert.type");t.plugins.has("ImageBlockEditing")||"block"===e&&c("image-block-plugin-required"),t.plugins.has("ImageInlineEditing")||"inline"===e&&c("image-inline-plugin-required")}refresh(){this.isEnabled=this.editor.plugins.get("ImageUtils").isImageAllowed()}execute(t){const e=wo(t.source),n=this.editor.model.document.selection,o=this.editor.plugins.get("ImageUtils"),i=Object.fromEntries(n.getAttributes());e.forEach(((t,e)=>{const r=n.getSelectedElement();if("string"==typeof t&&(t={src:t}),e&&r&&o.isImage(r)){const e=this.editor.model.createPositionAfter(r);o.insertImage({...t,...i},e)}else o.insertImage({...t,...i})}))}}class bk extends V{static get requires(){return[nk]}static get pluginName(){return"ImageEditing"}init(){const t=this.editor,e=t.conversion;t.editing.view.addObserver(pk),e.for("upcast").attributeToAttribute({view:{name:"img",key:"alt"},model:"alt"}).attributeToAttribute({view:{name:"img",key:"srcset"},model:{key:"srcset",value:t=>{const e={data:t.getAttribute("srcset")};return t.hasAttribute("width")&&(e.width=t.getAttribute("width")),e}}});const n=new fk(t);t.commands.add("insertImage",n),t.commands.add("imageInsert",n)}}class kk extends H{constructor(t,e){super(t),this._modelElementName=e}refresh(){const t=this.editor.plugins.get("ImageUtils"),e=t.getClosestSelectedImageElement(this.editor.model.document.selection);"imageBlock"===this._modelElementName?this.isEnabled=t.isInlineImage(e):this.isEnabled=t.isBlockImage(e)}execute(){const t=this.editor,e=this.editor.model,n=t.plugins.get("ImageUtils"),o=n.getClosestSelectedImageElement(e.document.selection),i=Object.fromEntries(o.getAttributes());return i.src||i.uploadId?e.change((t=>{const r=Array.from(e.markers).filter((t=>t.getRange().containsItem(o))),s=n.insertImage(i,e.createSelection(o,"on"),this._modelElementName);if(!s)return null;const a=t.createRangeOn(s);for(const e of r){const n=e.getRange(),o="$graveyard"!=n.root.rootName?n.getJoined(a,!0):a;t.updateMarker(e,{range:o})}return{oldElement:o,newElement:s}})):null}}class wk extends V{static get requires(){return[bk,nk,Wp]}static get pluginName(){return"ImageBlockEditing"}init(){const t=this.editor;t.model.schema.register("imageBlock",{inheritAllFrom:"$blockObject",allowAttributes:["alt","src","srcset"]}),this._setupConversion(),t.plugins.has("ImageInlineEditing")&&(t.commands.add("imageTypeBlock",new kk(this.editor,"imageBlock")),this._setupClipboardIntegration())}_setupConversion(){const t=this.editor,e=t.t,n=t.conversion,o=t.plugins.get("ImageUtils");n.for("dataDowncast").elementToStructure({model:"imageBlock",view:(t,{writer:e})=>Xb(e)}),n.for("editingDowncast").elementToStructure({model:"imageBlock",view:(t,{writer:n})=>o.toImageWidget(Xb(n),n,e("image widget"))}),n.for("downcast").add(gk(o,"imageBlock","src")).add(gk(o,"imageBlock","alt")).add(mk(o,"imageBlock")),n.for("upcast").elementToElement({view:tk(t,"imageBlock"),model:(t,{writer:e})=>e.createElement("imageBlock",t.hasAttribute("src")?{src:t.getAttribute("src")}:null)}).add(function(t){return t=>{t.on("element:figure",e)};function e(e,n,o){if(!o.consumable.test(n.viewItem,{name:!0,classes:"image"}))return;const i=t.findViewImgElement(n.viewItem);if(!i||!o.consumable.test(i,{name:!0}))return;o.consumable.consume(n.viewItem,{name:!0,classes:"image"});const r=Ba(o.convertItem(i,n.modelCursor).modelRange.getItems());r?(o.convertChildren(n.viewItem,r),o.updateConversionResult(r,n)):o.consumable.revert(n.viewItem,{name:!0,classes:"image"})}}(o))}_setupClipboardIntegration(){const t=this.editor,e=t.model,n=t.editing.view,o=t.plugins.get("ImageUtils");this.listenTo(t.plugins.get("ClipboardPipeline"),"inputTransformation",((i,r)=>{const s=Array.from(r.content.getChildren());let a;if(!s.every(o.isInlineImageView))return;a=r.targetRanges?t.editing.mapper.toModelRange(r.targetRanges[0]):e.document.selection.getFirstRange();const l=e.createSelection(a);if("imageBlock"===ek(e.schema,l)){const t=new Pm(n.document),e=s.map((e=>t.createElement("figure",{class:"image"},e)));r.content=t.createDocumentFragment(e)}}))}}var Ak=n(9048),Ck={attributes:{"data-cke":!0}};Ck.setAttributes=is(),Ck.insert=ns().bind(null,"head"),Ck.domAPI=ts(),Ck.insertStyleElement=ss();Jr()(Ak.Z,Ck);Ak.Z&&Ak.Z.locals&&Ak.Z.locals;class _k extends V{static get requires(){return[wk,vf,hk]}static get pluginName(){return"ImageBlock"}}class vk extends V{static get requires(){return[bk,nk,Wp]}static get pluginName(){return"ImageInlineEditing"}init(){const t=this.editor,e=t.model.schema;e.register("imageInline",{inheritAllFrom:"$inlineObject",allowAttributes:["alt","src","srcset"]}),e.addChildCheck(((t,e)=>{if(t.endsWith("caption")&&"imageInline"===e.name)return!1})),this._setupConversion(),t.plugins.has("ImageBlockEditing")&&(t.commands.add("imageTypeInline",new kk(this.editor,"imageInline")),this._setupClipboardIntegration())}_setupConversion(){const t=this.editor,e=t.t,n=t.conversion,o=t.plugins.get("ImageUtils");n.for("dataDowncast").elementToElement({model:"imageInline",view:(t,{writer:e})=>e.createEmptyElement("img")}),n.for("editingDowncast").elementToStructure({model:"imageInline",view:(t,{writer:n})=>o.toImageWidget(function(t){return t.createContainerElement("span",{class:"image-inline"},t.createEmptyElement("img"))}(n),n,e("image widget"))}),n.for("downcast").add(gk(o,"imageInline","src")).add(gk(o,"imageInline","alt")).add(mk(o,"imageInline")),n.for("upcast").elementToElement({view:tk(t,"imageInline"),model:(t,{writer:e})=>e.createElement("imageInline",t.hasAttribute("src")?{src:t.getAttribute("src")}:null)})}_setupClipboardIntegration(){const t=this.editor,e=t.model,n=t.editing.view,o=t.plugins.get("ImageUtils");this.listenTo(t.plugins.get("ClipboardPipeline"),"inputTransformation",((i,r)=>{const s=Array.from(r.content.getChildren());let a;if(!s.every(o.isBlockImageView))return;a=r.targetRanges?t.editing.mapper.toModelRange(r.targetRanges[0]):e.document.selection.getFirstRange();const l=e.createSelection(a);if("imageInline"===ek(e.schema,l)){const t=new Pm(n.document),e=s.map((e=>1===e.childCount?(Array.from(e.getAttributes()).forEach((n=>t.setAttribute(...n,o.findViewImgElement(e)))),e.getChild(0)):e));r.content=t.createDocumentFragment(e)}}))}}class yk extends V{static get requires(){return[vk,vf,hk]}static get pluginName(){return"ImageInline"}}class xk extends H{refresh(){const t=this.editor,e=t.plugins.get("ImageUtils").getClosestSelectedImageElement(t.model.document.selection);this.isEnabled=!!e,e&&e.hasAttribute("width")?this.value={width:e.getAttribute("width"),height:null}:this.value=null}execute(t){const e=this.editor,n=e.model,o=e.plugins.get("ImageUtils").getClosestSelectedImageElement(n.document.selection);this.value={width:t.width,height:null},o&&n.change((e=>{e.setAttribute("width",t.width,o)}))}}class Ek extends V{static get requires(){return[nk]}static get pluginName(){return"ImageResizeEditing"}constructor(t){super(t),t.config.define("image",{resizeUnit:"%",resizeOptions:[{name:"resizeImage:original",value:null,icon:"original"},{name:"resizeImage:25",value:"25",icon:"small"},{name:"resizeImage:50",value:"50",icon:"medium"},{name:"resizeImage:75",value:"75",icon:"large"}]})}init(){const t=this.editor,e=new xk(t);this._registerSchema(),this._registerConverters("imageBlock"),this._registerConverters("imageInline"),t.commands.add("resizeImage",e),t.commands.add("imageResize",e)}_registerSchema(){this.editor.plugins.has("ImageBlockEditing")&&this.editor.model.schema.extend("imageBlock",{allowAttributes:"width"}),this.editor.plugins.has("ImageInlineEditing")&&this.editor.model.schema.extend("imageInline",{allowAttributes:"width"})}_registerConverters(t){const e=this.editor;e.conversion.for("downcast").add((e=>e.on(`attribute:width:${t}`,((t,e,n)=>{if(!n.consumable.consume(e.item,t.name))return;const o=n.writer,i=n.mapper.toViewElement(e.item);null!==e.attributeNewValue?(o.setStyle("width",e.attributeNewValue,i),o.addClass("image_resized",i)):(o.removeStyle("width",i),o.removeClass("image_resized",i))})))),e.conversion.for("upcast").attributeToAttribute({view:{name:"imageBlock"===t?"figure":"img",styles:{width:/.+/}},model:{key:"width",value:t=>t.getStyle("width")}})}}const Dk={small:Gd.objectSizeSmall,medium:Gd.objectSizeMedium,large:Gd.objectSizeLarge,original:Gd.objectSizeFull};class Sk extends V{static get requires(){return[Ek]}static get pluginName(){return"ImageResizeButtons"}constructor(t){super(t),this._resizeUnit=t.config.get("image.resizeUnit")}init(){const t=this.editor,e=t.config.get("image.resizeOptions"),n=t.commands.get("resizeImage");this.bind("isEnabled").to(n);for(const t of e)this._registerImageResizeButton(t);this._registerImageResizeDropdown(e)}_registerImageResizeButton(t){const e=this.editor,{name:n,value:o,icon:i}=t,r=o?o+this._resizeUnit:null;e.ui.componentFactory.add(n,(n=>{const o=new Su(n),s=e.commands.get("resizeImage"),a=this._getOptionLabelValue(t,!0);if(!Dk[i])throw new l("imageresizebuttons-missing-icon",e,t);return o.set({label:a,icon:Dk[i],tooltip:a,isToggleable:!0}),o.bind("isEnabled").to(this),o.bind("isOn").to(s,"value",Ik(r)),this.listenTo(o,"execute",(()=>{e.execute("resizeImage",{width:r})})),o}))}_registerImageResizeDropdown(t){const e=this.editor,n=e.t,o=t.find((t=>!t.value)),i=i=>{const r=e.commands.get("resizeImage"),s=kh(i,Uu),a=s.buttonView;return a.set({tooltip:n("Resize image"),commandValue:o.value,icon:Dk.medium,isToggleable:!0,label:this._getOptionLabelValue(o),withText:!0,class:"ck-resize-image-button"}),a.bind("label").to(r,"value",(t=>t&&t.width?t.width:this._getOptionLabelValue(o))),s.bind("isOn").to(r),s.bind("isEnabled").to(this),Ah(s,this._getResizeDropdownListItemDefinitions(t,r)),s.listView.ariaLabel=n("Image resize list"),this.listenTo(s,"execute",(t=>{e.execute(t.source.commandName,{width:t.source.commandValue}),e.editing.view.focus()})),s};e.ui.componentFactory.add("resizeImage",i),e.ui.componentFactory.add("imageResize",i)}_getOptionLabelValue(t,e){const n=this.editor.t;return t.label?t.label:e?t.value?n("Resize image to %0",t.value+this._resizeUnit):n("Resize image to the original size"):t.value?t.value+this._resizeUnit:n("Original")}_getResizeDropdownListItemDefinitions(t,e){const n=new bo;return t.map((t=>{const o=t.value?t.value+this._resizeUnit:null,i={type:"button",model:new Wh({commandName:"resizeImage",commandValue:o,label:this._getOptionLabelValue(t),withText:!0,icon:null})};i.model.bind("isOn").to(e,"value",Ik(o)),n.add(i)})),n}}function Ik(t){return e=>null===t&&e===t||e&&e.width===t}const Tk=/(image|image-inline)/,Mk="image_resized";class Bk extends V{static get requires(){return[Wb]}static get pluginName(){return"ImageResizeHandles"}init(){const t=this.editor.commands.get("resizeImage");this.bind("isEnabled").to(t),this._setupResizerCreator()}_setupResizerCreator(){const t=this.editor,e=t.editing.view;e.addObserver(pk),this.listenTo(e.document,"imageLoaded",((n,o)=>{if(!o.target.matches("figure.image.ck-widget > img,figure.image.ck-widget > picture > img,figure.image.ck-widget > a > img,figure.image.ck-widget > a > picture > img,span.image-inline.ck-widget > img,span.image-inline.ck-widget > picture > img"))return;const i=t.editing.view.domConverter,r=i.domToView(o.target).findAncestor({classes:Tk});let s=this.editor.plugins.get(Wb).getResizerByViewElement(r);if(s)return void s.redraw();const a=t.editing.mapper,l=a.toModelElement(r);s=t.plugins.get(Wb).attachTo({unit:t.config.get("image.resizeUnit"),modelElement:l,viewElement:r,editor:t,getHandleHost:t=>t.querySelector("img"),getResizeHost:()=>i.mapViewToDom(a.toViewElement(l.parent)),isCentered(){const t=l.getAttribute("imageStyle");return!t||"block"==t||"alignCenter"==t},onCommit(n){e.change((t=>{t.removeClass(Mk,r)})),t.execute("resizeImage",{width:n})}}),s.on("updateSize",(()=>{r.hasClass(Mk)||e.change((t=>{t.addClass(Mk,r)}))})),s.bind("isEnabled").to(this)}))}}var Nk=n(1043),zk={attributes:{"data-cke":!0}};zk.setAttributes=is(),zk.insert=ns().bind(null,"head"),zk.domAPI=ts(),zk.insertStyleElement=ss();Jr()(Nk.Z,zk);Nk.Z&&Nk.Z.locals&&Nk.Z.locals;class Pk extends H{constructor(t,e){super(t),this._defaultStyles={imageBlock:!1,imageInline:!1},this._styles=new Map(e.map((t=>{if(t.isDefault)for(const e of t.modelElements)this._defaultStyles[e]=t.name;return[t.name,t]})))}refresh(){const t=this.editor.plugins.get("ImageUtils").getClosestSelectedImageElement(this.editor.model.document.selection);this.isEnabled=!!t,this.isEnabled?t.hasAttribute("imageStyle")?this.value=t.getAttribute("imageStyle"):this.value=this._defaultStyles[t.name]:this.value=!1}execute(t={}){const e=this.editor,n=e.model,o=e.plugins.get("ImageUtils");n.change((e=>{const i=t.value;let r=o.getClosestSelectedImageElement(n.document.selection);i&&this.shouldConvertImageType(i,r)&&(this.editor.execute(o.isBlockImage(r)?"imageTypeInline":"imageTypeBlock"),r=o.getClosestSelectedImageElement(n.document.selection)),!i||this._styles.get(i).isDefault?e.removeAttribute("imageStyle",r):e.setAttribute("imageStyle",i,r)}))}shouldConvertImageType(t,e){return!this._styles.get(t).modelElements.includes(e.name)}}const{objectFullWidth:Lk,objectInline:Ok,objectLeft:Rk,objectRight:jk,objectCenter:Vk,objectBlockLeft:Fk,objectBlockRight:Hk}=Gd,Uk={get inline(){return{name:"inline",title:"In line",icon:Ok,modelElements:["imageInline"],isDefault:!0}},get alignLeft(){return{name:"alignLeft",title:"Left aligned image",icon:Rk,modelElements:["imageBlock","imageInline"],className:"image-style-align-left"}},get alignBlockLeft(){return{name:"alignBlockLeft",title:"Left aligned image",icon:Fk,modelElements:["imageBlock"],className:"image-style-block-align-left"}},get alignCenter(){return{name:"alignCenter",title:"Centered image",icon:Vk,modelElements:["imageBlock"],className:"image-style-align-center"}},get alignRight(){return{name:"alignRight",title:"Right aligned image",icon:jk,modelElements:["imageBlock","imageInline"],className:"image-style-align-right"}},get alignBlockRight(){return{name:"alignBlockRight",title:"Right aligned image",icon:Hk,modelElements:["imageBlock"],className:"image-style-block-align-right"}},get block(){return{name:"block",title:"Centered image",icon:Vk,modelElements:["imageBlock"],isDefault:!0}},get side(){return{name:"side",title:"Side image",icon:jk,modelElements:["imageBlock"],className:"image-style-side"}}},qk={full:Lk,left:Fk,right:Hk,center:Vk,inlineLeft:Rk,inlineRight:jk,inline:Ok},Gk=[{name:"imageStyle:wrapText",title:"Wrap text",defaultItem:"imageStyle:alignLeft",items:["imageStyle:alignLeft","imageStyle:alignRight"]},{name:"imageStyle:breakText",title:"Break text",defaultItem:"imageStyle:block",items:["imageStyle:alignBlockLeft","imageStyle:block","imageStyle:alignBlockRight"]}];function Wk(t){c("image-style-configuration-definition-invalid",t)}const Zk={normalizeStyles:function(t){const e=(t.configuredStyles.options||[]).map((t=>function(t){t="string"==typeof t?Uk[t]?{...Uk[t]}:{name:t}:function(t,e){const n={...e};for(const o in t)Object.prototype.hasOwnProperty.call(e,o)||(n[o]=t[o]);return n}(Uk[t.name],t);"string"==typeof t.icon&&(t.icon=qk[t.icon]||t.icon);return t}(t))).filter((e=>function(t,{isBlockPluginLoaded:e,isInlinePluginLoaded:n}){const{modelElements:o,name:i}=t;if(!(o&&o.length&&i))return Wk({style:t}),!1;{const i=[e?"imageBlock":null,n?"imageInline":null];if(!o.some((t=>i.includes(t))))return c("image-style-missing-dependency",{style:t,missingPlugins:o.map((t=>"imageBlock"===t?"ImageBlockEditing":"ImageInlineEditing"))}),!1}return!0}(e,t)));return e},getDefaultStylesConfiguration:function(t,e){return t&&e?{options:["inline","alignLeft","alignRight","alignCenter","alignBlockLeft","alignBlockRight","block","side"]}:t?{options:["block","side"]}:e?{options:["inline","alignLeft","alignRight"]}:{}},getDefaultDropdownDefinitions:function(t){return t.has("ImageBlockEditing")&&t.has("ImageInlineEditing")?[...Gk]:[]},warnInvalidStyle:Wk,DEFAULT_OPTIONS:Uk,DEFAULT_ICONS:qk,DEFAULT_DROPDOWN_DEFINITIONS:Gk};function Yk(t,e){for(const n of e)if(n.name===t)return n}class Kk extends V{static get pluginName(){return"ImageStyleEditing"}static get requires(){return[nk]}init(){const{normalizeStyles:t,getDefaultStylesConfiguration:e}=Zk,n=this.editor,o=n.plugins.has("ImageBlockEditing"),i=n.plugins.has("ImageInlineEditing");n.config.define("image.styles",e(o,i)),this.normalizedStyles=t({configuredStyles:n.config.get("image.styles"),isBlockPluginLoaded:o,isInlinePluginLoaded:i}),this._setupConversion(o,i),this._setupPostFixer(),n.commands.add("imageStyle",new Pk(n,this.normalizedStyles))}_setupConversion(t,e){const n=this.editor,o=n.model.schema,i=(r=this.normalizedStyles,(t,e,n)=>{if(!n.consumable.consume(e.item,t.name))return;const o=Yk(e.attributeNewValue,r),i=Yk(e.attributeOldValue,r),s=n.mapper.toViewElement(e.item),a=n.writer;i&&a.removeClass(i.className,s),o&&a.addClass(o.className,s)});var r;const s=function(t){const e={imageInline:t.filter((t=>!t.isDefault&&t.modelElements.includes("imageInline"))),imageBlock:t.filter((t=>!t.isDefault&&t.modelElements.includes("imageBlock")))};return(t,n,o)=>{if(!n.modelRange)return;const i=n.viewItem,r=Ba(n.modelRange.getItems());if(r&&o.schema.checkAttribute(r,"imageStyle"))for(const t of e[r.name])o.consumable.consume(i,{classes:t.className})&&o.writer.setAttribute("imageStyle",t.name,r)}}(this.normalizedStyles);n.editing.downcastDispatcher.on("attribute:imageStyle",i),n.data.downcastDispatcher.on("attribute:imageStyle",i),t&&(o.extend("imageBlock",{allowAttributes:"imageStyle"}),n.data.upcastDispatcher.on("element:figure",s,{priority:"low"})),e&&(o.extend("imageInline",{allowAttributes:"imageStyle"}),n.data.upcastDispatcher.on("element:img",s,{priority:"low"}))}_setupPostFixer(){const t=this.editor,e=t.model.document,n=t.plugins.get(nk),o=new Map(this.normalizedStyles.map((t=>[t.name,t])));e.registerPostFixer((t=>{let i=!1;for(const r of e.differ.getChanges())if("insert"==r.type||"attribute"==r.type&&"imageStyle"==r.attributeKey){let e="insert"==r.type?r.position.nodeAfter:r.range.start.nodeAfter;if(e&&e.is("element","paragraph")&&e.childCount>0&&(e=e.getChild(0)),!n.isImage(e))continue;const s=e.getAttribute("imageStyle");if(!s)continue;const a=o.get(s);a&&a.modelElements.includes(e.name)||(t.removeAttribute("imageStyle",e),i=!0)}return i}))}}var $k=n(4622),Qk={attributes:{"data-cke":!0}};Qk.setAttributes=is(),Qk.insert=ns().bind(null,"head"),Qk.domAPI=ts(),Qk.insertStyleElement=ss();Jr()($k.Z,Qk);$k.Z&&$k.Z.locals&&$k.Z.locals;class Jk extends V{static get requires(){return[Kk]}static get pluginName(){return"ImageStyleUI"}get localizedDefaultStylesTitles(){const t=this.editor.t;return{"Wrap text":t("Wrap text"),"Break text":t("Break text"),"In line":t("In line"),"Full size image":t("Full size image"),"Side image":t("Side image"),"Left aligned image":t("Left aligned image"),"Centered image":t("Centered image"),"Right aligned image":t("Right aligned image")}}init(){const t=this.editor.plugins,e=this.editor.config.get("image.toolbar")||[],n=Xk(t.get("ImageStyleEditing").normalizedStyles,this.localizedDefaultStylesTitles);for(const t of n)this._createButton(t);const o=Xk([...e.filter(E),...Zk.getDefaultDropdownDefinitions(t)],this.localizedDefaultStylesTitles);for(const t of o)this._createDropdown(t,n)}_createDropdown(t,e){const n=this.editor.ui.componentFactory;n.add(t.name,(o=>{let i;const{defaultItem:r,items:s,title:a}=t,l=s.filter((t=>e.find((({name:e})=>tw(e)===t)))).map((t=>{const e=n.create(t);return t===r&&(i=e),e}));s.length!==l.length&&Zk.warnInvalidStyle({dropdown:t});const c=kh(o,Wu),d=c.buttonView,u=d.arrowView;return wh(c,l,{enableActiveItemFocusOnDropdownOpen:!0}),d.set({label:ew(a,i.label),class:null,tooltip:!0}),u.unbind("label"),u.set({label:a}),d.bind("icon").toMany(l,"isOn",((...t)=>{const e=t.findIndex(hi);return e<0?i.icon:l[e].icon})),d.bind("label").toMany(l,"isOn",((...t)=>{const e=t.findIndex(hi);return ew(a,e<0?i.label:l[e].label)})),d.bind("isOn").toMany(l,"isOn",((...t)=>t.some(hi))),d.bind("class").toMany(l,"isOn",((...t)=>t.some(hi)?"ck-splitbutton_flatten":null)),d.on("execute",(()=>{l.some((({isOn:t})=>t))?c.isOpen=!c.isOpen:i.fire("execute")})),c.bind("isEnabled").toMany(l,"isEnabled",((...t)=>t.some(hi))),this.listenTo(c,"execute",(()=>{this.editor.editing.view.focus()})),c}))}_createButton(t){const e=t.name;this.editor.ui.componentFactory.add(tw(e),(n=>{const o=this.editor.commands.get("imageStyle"),i=new Su(n);return i.set({label:t.title,icon:t.icon,tooltip:!0,isToggleable:!0}),i.bind("isEnabled").to(o,"isEnabled"),i.bind("isOn").to(o,"value",(t=>t===e)),i.on("execute",this._executeCommand.bind(this,e)),i}))}_executeCommand(t){this.editor.execute("imageStyle",{value:t}),this.editor.editing.view.focus()}}function Xk(t,e){for(const n of t)e[n.title]&&(n.title=e[n.title]);return t}function tw(t){return`imageStyle:${t}`}function ew(t,e){return(t?t+": ":"")+e}class nw{constructor(){const t=new window.FileReader;this._reader=t,this._data=void 0,this.set("loaded",0),t.onprogress=t=>{this.loaded=t.loaded}}get error(){return this._reader.error}get data(){return this._data}read(t){const e=this._reader;return this.total=t.size,new Promise(((n,o)=>{e.onload=()=>{const t=e.result;this._data=t,n(t)},e.onerror=()=>{o("error")},e.onabort=()=>{o("aborted")},this._reader.readAsDataURL(t)}))}abort(){this._reader.abort()}}j(nw,N);class ow extends V{static get pluginName(){return"FileRepository"}static get requires(){return[Hd]}init(){this.loaders=new bo,this.loaders.on("add",(()=>this._updatePendingAction())),this.loaders.on("remove",(()=>this._updatePendingAction())),this._loadersMap=new Map,this._pendingAction=null,this.set("uploaded",0),this.set("uploadTotal",null),this.bind("uploadedPercent").to(this,"uploaded",this,"uploadTotal",((t,e)=>e?t/e*100:0))}getLoader(t){return this._loadersMap.get(t)||null}createLoader(t){if(!this.createUploadAdapter)return c("filerepository-no-upload-adapter"),null;const e=new iw(Promise.resolve(t),this.createUploadAdapter);return this.loaders.add(e),this._loadersMap.set(t,e),t instanceof Promise&&e.file.then((t=>{this._loadersMap.set(t,e)})).catch((()=>{})),e.on("change:uploaded",(()=>{let t=0;for(const e of this.loaders)t+=e.uploaded;this.uploaded=t})),e.on("change:uploadTotal",(()=>{let t=0;for(const e of this.loaders)e.uploadTotal&&(t+=e.uploadTotal);this.uploadTotal=t})),e}destroyLoader(t){const e=t instanceof iw?t:this.getLoader(t);e._destroy(),this.loaders.remove(e),this._loadersMap.forEach(((t,n)=>{t===e&&this._loadersMap.delete(n)}))}_updatePendingAction(){const t=this.editor.plugins.get(Hd);if(this.loaders.length){if(!this._pendingAction){const e=this.editor.t,n=t=>`${e("Upload in progress")} ${parseInt(t)}%.`;this._pendingAction=t.add(n(this.uploadedPercent)),this._pendingAction.bind("message").to(this,"uploadedPercent",n)}}else t.remove(this._pendingAction),this._pendingAction=null}}j(ow,N);class iw{constructor(t,e){this.id=r(),this._filePromiseWrapper=this._createFilePromiseWrapper(t),this._adapter=e(this),this._reader=new nw,this.set("status","idle"),this.set("uploaded",0),this.set("uploadTotal",null),this.bind("uploadedPercent").to(this,"uploaded",this,"uploadTotal",((t,e)=>e?t/e*100:0)),this.set("uploadResponse",null)}get file(){return this._filePromiseWrapper?this._filePromiseWrapper.promise.then((t=>this._filePromiseWrapper?t:null)):Promise.resolve(null)}get data(){return this._reader.data}read(){if("idle"!=this.status)throw new l("filerepository-read-wrong-status",this);return this.status="reading",this.file.then((t=>this._reader.read(t))).then((t=>{if("reading"!==this.status)throw this.status;return this.status="idle",t})).catch((t=>{if("aborted"===t)throw this.status="aborted","aborted";throw this.status="error",this._reader.error?this._reader.error:t}))}upload(){if("idle"!=this.status)throw new l("filerepository-upload-wrong-status",this);return this.status="uploading",this.file.then((()=>this._adapter.upload())).then((t=>(this.uploadResponse=t,this.status="idle",t))).catch((t=>{if("aborted"===this.status)throw"aborted";throw this.status="error",t}))}abort(){const t=this.status;this.status="aborted",this._filePromiseWrapper.isFulfilled?"reading"==t?this._reader.abort():"uploading"==t&&this._adapter.abort&&this._adapter.abort():(this._filePromiseWrapper.promise.catch((()=>{})),this._filePromiseWrapper.rejecter("aborted")),this._destroy()}_destroy(){this._filePromiseWrapper=void 0,this._reader=void 0,this._adapter=void 0,this.uploadResponse=void 0}_createFilePromiseWrapper(t){const e={};return e.promise=new Promise(((n,o)=>{e.rejecter=o,e.isFulfilled=!1,t.then((t=>{e.isFulfilled=!0,n(t)})).catch((t=>{e.isFulfilled=!0,o(t)}))})),e}}j(iw,N);class rw extends Jd{constructor(t){super(t),this.buttonView=new Su(t),this._fileInputView=new sw(t),this._fileInputView.bind("acceptedType").to(this),this._fileInputView.bind("allowMultipleFiles").to(this),this._fileInputView.delegate("done").to(this),this.setTemplate({tag:"span",attributes:{class:"ck-file-dialog-button"},children:[this.buttonView,this._fileInputView]}),this.buttonView.on("execute",(()=>{this._fileInputView.open()}))}focus(){this.buttonView.focus()}}class sw extends Jd{constructor(t){super(t),this.set("acceptedType"),this.set("allowMultipleFiles",!1);const e=this.bindTemplate;this.setTemplate({tag:"input",attributes:{class:["ck-hidden"],type:"file",tabindex:"-1",accept:e.to("acceptedType"),multiple:e.to("allowMultipleFiles")},on:{change:e.to((()=>{this.element&&this.element.files&&this.element.files.length&&this.fire("done",this.element.files),this.element.value=""}))}})}open(){this.element.click()}}class aw{constructor(t,e){this.loader=t,this.options=e}upload(){return this.loader.file.then((t=>new Promise(((e,n)=>{this._initRequest(),this._initListeners(e,n,t),this._sendRequest(t)}))))}abort(){this.xhr&&this.xhr.abort()}_initRequest(){const t=this.xhr=new XMLHttpRequest;t.open("POST",this.options.uploadUrl,!0),t.responseType="json"}_initListeners(t,e,n){const o=this.xhr,i=this.loader,r=`Couldn't upload file: ${n.name}.`;o.addEventListener("error",(()=>e(r))),o.addEventListener("abort",(()=>e())),o.addEventListener("load",(()=>{const n=o.response;if(!n||n.error)return e(n&&n.error&&n.error.message?n.error.message:r);const i=n.url?{default:n.url}:n.urls;t({...n,urls:i})})),o.upload&&o.upload.addEventListener("progress",(t=>{t.lengthComputable&&(i.uploadTotal=t.total,i.uploaded=t.loaded)}))}_sendRequest(t){const e=this.options.headers||{},n=this.options.withCredentials||!1;for(const t of Object.keys(e))this.xhr.setRequestHeader(t,e[t]);this.xhr.withCredentials=n;const o=new FormData;o.append("upload",t),this.xhr.send(o)}}function lw(t){const e=t.map((t=>t.replace("+","\\+")));return new RegExp(`^image\\/(${e.join("|")})$`)}function cw(t){return new Promise(((e,n)=>{const o=t.getAttribute("src");fetch(o).then((t=>t.blob())).then((t=>{const n=dw(t,o),i=n.replace("image/",""),r=new File([t],`image.${i}`,{type:n});e(r)})).catch((t=>t&&"TypeError"===t.name?function(t){return function(t){return new Promise(((e,n)=>{const o=ms.document.createElement("img");o.addEventListener("load",(()=>{const t=ms.document.createElement("canvas");t.width=o.width,t.height=o.height;t.getContext("2d").drawImage(o,0,0),t.toBlob((t=>t?e(t):n()))})),o.addEventListener("error",(()=>n())),o.src=t}))}(t).then((e=>{const n=dw(e,t),o=n.replace("image/","");return new File([e],`image.${o}`,{type:n})}))}(o).then(e).catch(n):n(t)))}))}function dw(t,e){return t.type?t.type:e.match(/data:(image\/\w+);base64/)?e.match(/data:(image\/\w+);base64/)[1].toLowerCase():"image/jpeg"}class uw extends V{static get pluginName(){return"ImageUploadUI"}init(){const t=this.editor,e=t.t,n=n=>{const o=new rw(n),i=t.commands.get("uploadImage"),r=t.config.get("image.upload.types"),s=lw(r);return o.set({acceptedType:r.map((t=>`image/${t}`)).join(","),allowMultipleFiles:!0}),o.buttonView.set({label:e("Insert image"),icon:Gd.image,tooltip:!0}),o.buttonView.bind("isEnabled").to(i),o.on("done",((e,n)=>{const o=Array.from(n).filter((t=>s.test(t.type)));o.length&&t.execute("uploadImage",{file:o})})),o};t.ui.componentFactory.add("uploadImage",n),t.ui.componentFactory.add("imageUpload",n)}}var hw=n(5870),mw={attributes:{"data-cke":!0}};mw.setAttributes=is(),mw.insert=ns().bind(null,"head"),mw.domAPI=ts(),mw.insertStyleElement=ss();Jr()(hw.Z,mw);hw.Z&&hw.Z.locals&&hw.Z.locals;var gw=n(9899),pw={attributes:{"data-cke":!0}};pw.setAttributes=is(),pw.insert=ns().bind(null,"head"),pw.domAPI=ts(),pw.insertStyleElement=ss();Jr()(gw.Z,pw);gw.Z&&gw.Z.locals&&gw.Z.locals;var fw=n(9825),bw={attributes:{"data-cke":!0}};bw.setAttributes=is(),bw.insert=ns().bind(null,"head"),bw.domAPI=ts(),bw.insertStyleElement=ss();Jr()(fw.Z,bw);fw.Z&&fw.Z.locals&&fw.Z.locals;class kw extends V{static get pluginName(){return"ImageUploadProgress"}constructor(t){super(t),this.placeholder="data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw=="}init(){const t=this.editor;t.plugins.has("ImageBlockEditing")&&t.editing.downcastDispatcher.on("attribute:uploadStatus:imageBlock",((...t)=>this.uploadStatusChange(...t))),t.plugins.has("ImageInlineEditing")&&t.editing.downcastDispatcher.on("attribute:uploadStatus:imageInline",((...t)=>this.uploadStatusChange(...t)))}uploadStatusChange(t,e,n){const o=this.editor,i=e.item,r=i.getAttribute("uploadId");if(!n.consumable.consume(e.item,t.name))return;const s=o.plugins.get("ImageUtils"),a=o.plugins.get(ow),l=r?e.attributeNewValue:null,c=this.placeholder,d=o.editing.mapper.toViewElement(i),u=n.writer;if("reading"==l)return ww(d,u),void Aw(s,c,d,u);if("uploading"==l){const t=a.loaders.get(r);return ww(d,u),void(t?(Cw(d,u),function(t,e,n,o){const i=function(t){const e=t.createUIElement("div",{class:"ck-progress-bar"});return t.setCustomProperty("progressBar",!0,e),e}(e);e.insert(e.createPositionAt(t,"end"),i),n.on("change:uploadedPercent",((t,e,n)=>{o.change((t=>{t.setStyle("width",n+"%",i)}))}))}(d,u,t,o.editing.view),function(t,e,n,o){if(o.data){const i=t.findViewImgElement(e);n.setAttribute("src",o.data,i)}}(s,d,u,t)):Aw(s,c,d,u))}"complete"==l&&a.loaders.get(r)&&function(t,e,n){const o=e.createUIElement("div",{class:"ck-image-upload-complete-icon"});e.insert(e.createPositionAt(t,"end"),o),setTimeout((()=>{n.change((t=>t.remove(t.createRangeOn(o))))}),3e3)}(d,u,o.editing.view),function(t,e){vw(t,e,"progressBar")}(d,u),Cw(d,u),function(t,e){e.removeClass("ck-appear",t)}(d,u)}}function ww(t,e){t.hasClass("ck-appear")||e.addClass("ck-appear",t)}function Aw(t,e,n,o){n.hasClass("ck-image-upload-placeholder")||o.addClass("ck-image-upload-placeholder",n);const i=t.findViewImgElement(n);i.getAttribute("src")!==e&&o.setAttribute("src",e,i),_w(n,"placeholder")||o.insert(o.createPositionAfter(i),function(t){const e=t.createUIElement("div",{class:"ck-upload-placeholder-loader"});return t.setCustomProperty("placeholder",!0,e),e}(o))}function Cw(t,e){t.hasClass("ck-image-upload-placeholder")&&e.removeClass("ck-image-upload-placeholder",t),vw(t,e,"placeholder")}function _w(t,e){for(const n of t.getChildren())if(n.getCustomProperty(e))return n}function vw(t,e,n){const o=_w(t,n);o&&e.remove(e.createRangeOn(o))}class yw extends H{refresh(){const t=this.editor,e=t.plugins.get("ImageUtils"),n=t.model.document.selection.getSelectedElement();this.isEnabled=e.isImageAllowed()||e.isImage(n)}execute(t){const e=wo(t.file),n=this.editor.model.document.selection,o=this.editor.plugins.get("ImageUtils"),i=Object.fromEntries(n.getAttributes());e.forEach(((t,e)=>{const r=n.getSelectedElement();if(e&&r&&o.isImage(r)){const e=this.editor.model.createPositionAfter(r);this._uploadImage(t,i,e)}else this._uploadImage(t,i)}))}_uploadImage(t,e,n){const o=this.editor,i=o.plugins.get(ow).createLoader(t),r=o.plugins.get("ImageUtils");i&&r.insertImage({...e,uploadId:i.id},n)}}class xw extends V{static get requires(){return[ow,Gh,Wp,nk]}static get pluginName(){return"ImageUploadEditing"}constructor(t){super(t),t.config.define("image",{upload:{types:["jpeg","png","gif","bmp","webp","tiff"]}}),this._uploadImageElements=new Map}init(){const t=this.editor,e=t.model.document,n=t.conversion,o=t.plugins.get(ow),i=t.plugins.get("ImageUtils"),r=lw(t.config.get("image.upload.types")),s=new yw(t);t.commands.add("uploadImage",s),t.commands.add("imageUpload",s),n.for("upcast").attributeToAttribute({view:{name:"img",key:"uploadId"},model:"uploadId"}),this.listenTo(t.editing.view.document,"clipboardInput",((e,n)=>{if(o=n.dataTransfer,Array.from(o.types).includes("text/html")&&""!==o.getData("text/html"))return;var o;const i=Array.from(n.dataTransfer.files).filter((t=>!!t&&r.test(t.type)));i.length&&(e.stop(),t.model.change((e=>{n.targetRanges&&e.setSelection(n.targetRanges.map((e=>t.editing.mapper.toModelRange(e)))),t.model.enqueueChange((()=>{t.execute("uploadImage",{file:i})}))})))})),this.listenTo(t.plugins.get("ClipboardPipeline"),"inputTransformation",((e,n)=>{const r=Array.from(t.editing.view.createRangeIn(n.content)).filter((t=>function(t,e){return!(!t.isInlineImageView(e)||!e.getAttribute("src"))&&(e.getAttribute("src").match(/^data:image\/\w+;base64,/g)||e.getAttribute("src").match(/^blob:/g))}(i,t.item)&&!t.item.getAttribute("uploadProcessed"))).map((t=>({promise:cw(t.item),imageElement:t.item})));if(!r.length)return;const s=new Pm(t.editing.view.document);for(const t of r){s.setAttribute("uploadProcessed",!0,t.imageElement);const e=o.createLoader(t.promise);e&&(s.setAttribute("src","",t.imageElement),s.setAttribute("uploadId",e.id,t.imageElement))}})),t.editing.view.document.on("dragover",((t,e)=>{e.preventDefault()})),e.on("change",(()=>{const n=e.differ.getChanges({includeChangesInGraveyard:!0}).reverse(),i=new Set;for(const e of n)if("insert"==e.type&&"$text"!=e.name){const n=e.position.nodeAfter,r="$graveyard"==e.position.root.rootName;for(const e of Ew(t,n)){const t=e.getAttribute("uploadId");if(!t)continue;const n=o.loaders.get(t);n&&(r?i.has(t)||n.abort():(i.add(t),this._uploadImageElements.set(t,e),"idle"==n.status&&this._readAndUpload(n)))}}})),this.on("uploadComplete",((t,{imageElement:e,data:n})=>{const o=n.urls?n.urls:n;this.editor.model.change((t=>{t.setAttribute("src",o.default,e),this._parseAndSetSrcsetAttributeOnImage(o,e,t)}))}),{priority:"low"})}afterInit(){const t=this.editor.model.schema;this.editor.plugins.has("ImageBlockEditing")&&t.extend("imageBlock",{allowAttributes:["uploadId","uploadStatus"]}),this.editor.plugins.has("ImageInlineEditing")&&t.extend("imageInline",{allowAttributes:["uploadId","uploadStatus"]})}_readAndUpload(t){const e=this.editor,n=e.model,o=e.locale.t,i=e.plugins.get(ow),r=e.plugins.get(Gh),s=e.plugins.get("ImageUtils"),a=this._uploadImageElements;return n.enqueueChange({isUndoable:!1},(e=>{e.setAttribute("uploadStatus","reading",a.get(t.id))})),t.read().then((()=>{const o=t.upload(),i=a.get(t.id);if(ar.isSafari){const t=e.editing.mapper.toViewElement(i),n=s.findViewImgElement(t);e.editing.view.once("render",(()=>{if(!n.parent)return;const t=e.editing.view.domConverter.mapViewToDom(n.parent);if(!t)return;const o=t.style.display;t.style.display="none",t._ckHack=t.offsetHeight,t.style.display=o}))}return n.enqueueChange({isUndoable:!1},(t=>{t.setAttribute("uploadStatus","uploading",i)})),o})).then((e=>{n.enqueueChange({isUndoable:!1},(n=>{const o=a.get(t.id);n.setAttribute("uploadStatus","complete",o),this.fire("uploadComplete",{data:e,imageElement:o})})),l()})).catch((e=>{if("error"!==t.status&&"aborted"!==t.status)throw e;"error"==t.status&&e&&r.showWarning(e,{title:o("Upload failed"),namespace:"upload"}),n.enqueueChange({isUndoable:!1},(e=>{e.remove(a.get(t.id))})),l()}));function l(){n.enqueueChange({isUndoable:!1},(e=>{const n=a.get(t.id);e.removeAttribute("uploadId",n),e.removeAttribute("uploadStatus",n),a.delete(t.id)})),i.destroyLoader(t)}}_parseAndSetSrcsetAttributeOnImage(t,e,n){let o=0;const i=Object.keys(t).filter((t=>{const e=parseInt(t,10);if(!isNaN(e))return o=Math.max(o,e),!0})).map((e=>`${t[e]} ${e}w`)).join(", ");""!=i&&n.setAttribute("srcset",{data:i,width:o},e)}}function Ew(t,e){const n=t.plugins.get("ImageUtils");return Array.from(t.model.createRangeOn(e)).filter((t=>n.isImage(t.item))).map((t=>t.item))}class Dw extends V{static get pluginName(){return"IndentEditing"}init(){const t=this.editor;t.commands.add("indent",new q(t)),t.commands.add("outdent",new q(t))}}const Sw='',Iw='';class Tw extends V{static get pluginName(){return"IndentUI"}init(){const t=this.editor,e=t.locale,n=t.t,o="ltr"==e.uiLanguageDirection?Sw:Iw,i="ltr"==e.uiLanguageDirection?Iw:Sw;this._defineButton("indent",n("Increase indent"),o),this._defineButton("outdent",n("Decrease indent"),i)}_defineButton(t,e,n){const o=this.editor;o.ui.componentFactory.add(t,(i=>{const r=o.commands.get(t),s=new Su(i);return s.set({label:e,icon:n,tooltip:!0}),s.bind("isOn","isEnabled").to(r,"value","isEnabled"),this.listenTo(s,"execute",(()=>{o.execute(t),o.editing.view.focus()})),s}))}}class Mw extends H{constructor(t,e){super(t),this._indentBehavior=e}refresh(){const t=this.editor.model,e=Ba(t.document.selection.getSelectedBlocks());e&&t.schema.checkAttribute(e,"blockIndent")?this.isEnabled=this._indentBehavior.checkEnabled(e.getAttribute("blockIndent")):this.isEnabled=!1}execute(){const t=this.editor.model,e=function(t){const e=t.document.selection,n=t.schema;return Array.from(e.getSelectedBlocks()).filter((t=>n.checkAttribute(t,"blockIndent")))}(t);t.change((t=>{for(const n of e){const e=n.getAttribute("blockIndent"),o=this._indentBehavior.getNextIndent(e);o?t.setAttribute("blockIndent",o,n):t.removeAttribute("blockIndent",n)}}))}}class Bw{constructor(t){this.isForward="forward"===t.direction,this.offset=t.offset,this.unit=t.unit}checkEnabled(t){const e=parseFloat(t||0);return this.isForward||e>0}getNextIndent(t){const e=parseFloat(t||0);if(!(!t||t.endsWith(this.unit)))return this.isForward?this.offset+this.unit:void 0;const n=e+(this.isForward?this.offset:-this.offset);return n>0?n+this.unit:void 0}}class Nw{constructor(t){this.isForward="forward"===t.direction,this.classes=t.classes}checkEnabled(t){const e=this.classes.indexOf(t);return this.isForward?e=0}getNextIndent(t){const e=this.classes.indexOf(t),n=this.isForward?1:-1;return this.classes[e+n]}}const zw=["paragraph","heading1","heading2","heading3","heading4","heading5","heading6"];const Pw="italic";class Lw extends V{static get pluginName(){return"ItalicEditing"}init(){const t=this.editor;t.model.schema.extend("$text",{allowAttributes:Pw}),t.model.schema.setAttributeProperties(Pw,{isFormatting:!0,copyOnEnter:!0}),t.conversion.attributeToElement({model:Pw,view:"i",upcastAlso:["em",{styles:{"font-style":"italic"}}]}),t.commands.add(Pw,new Op(t,Pw)),t.keystrokes.set("CTRL+I",Pw)}}const Ow="italic";class Rw extends V{static get pluginName(){return"ItalicUI"}init(){const t=this.editor,e=t.t;t.ui.componentFactory.add(Ow,(n=>{const o=t.commands.get(Ow),i=new Su(n);return i.set({label:e("Italic"),icon:'',keystroke:"CTRL+I",tooltip:!0,isToggleable:!0}),i.bind("isOn","isEnabled").to(o,"value","isEnabled"),this.listenTo(i,"execute",(()=>{t.execute(Ow),t.editing.view.focus()})),i}))}}class jw{constructor(){this._definitions=new Set}get length(){return this._definitions.size}add(t){Array.isArray(t)?t.forEach((t=>this._definitions.add(t))):this._definitions.add(t)}getDispatcher(){return t=>{t.on("attribute:linkHref",((t,e,n)=>{if(!n.consumable.test(e.item,"attribute:linkHref"))return;if(!e.item.is("selection")&&!n.schema.isInline(e.item))return;const o=n.writer,i=o.document.selection;for(const t of this._definitions){const r=o.createAttributeElement("a",t.attributes,{priority:5});t.classes&&o.addClass(t.classes,r);for(const e in t.styles)o.setStyle(e,t.styles[e],r);o.setCustomProperty("link",!0,r),t.callback(e.attributeNewValue)?e.item.is("selection")?o.wrap(i.getFirstRange(),r):o.wrap(n.mapper.toViewRange(e.range),r):o.unwrap(n.mapper.toViewRange(e.range),r)}}),{priority:"high"})}}getDispatcherForLinkedImage(){return t=>{t.on("attribute:linkHref:imageBlock",((t,e,{writer:n,mapper:o})=>{const i=o.toViewElement(e.item),r=Array.from(i.getChildren()).find((t=>"a"===t.name));for(const t of this._definitions){const o=Mo(t.attributes);if(t.callback(e.attributeNewValue)){for(const[t,e]of o)"class"===t?n.addClass(e,r):n.setAttribute(t,e,r);t.classes&&n.addClass(t.classes,r);for(const e in t.styles)n.setStyle(e,t.styles[e],r)}else{for(const[t,e]of o)"class"===t?n.removeClass(e,r):n.removeAttribute(t,r);t.classes&&n.removeClass(t.classes,r);for(const e in t.styles)n.removeStyle(e,r)}}}))}}}const Vw=function(t,e,n){var o=t.length;return n=void 0===n?o:n,!e&&n>=o?t:ti(t,e,n)};var Fw=RegExp("[\\u200d\\ud800-\\udfff\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff\\ufe0e\\ufe0f]");const Hw=function(t){return Fw.test(t)};const Uw=function(t){return t.split("")};var qw="[\\ud800-\\udfff]",Gw="[\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff]",Ww="\\ud83c[\\udffb-\\udfff]",Zw="[^\\ud800-\\udfff]",Yw="(?:\\ud83c[\\udde6-\\uddff]){2}",Kw="[\\ud800-\\udbff][\\udc00-\\udfff]",$w="(?:"+Gw+"|"+Ww+")"+"?",Qw="[\\ufe0e\\ufe0f]?",Jw=Qw+$w+("(?:\\u200d(?:"+[Zw,Yw,Kw].join("|")+")"+Qw+$w+")*"),Xw="(?:"+[Zw+Gw+"?",Gw,Yw,Kw,qw].join("|")+")",tA=RegExp(Ww+"(?="+Ww+")|"+Xw+Jw,"g");const eA=function(t){return t.match(tA)||[]};const nA=function(t){return Hw(t)?eA(t):Uw(t)};const oA=function(t){return function(e){e=Ko(e);var n=Hw(e)?nA(e):void 0,o=n?n[0]:e.charAt(0),i=n?Vw(n,1).join(""):e.slice(1);return o[t]()+i}}("toUpperCase"),iA=/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205f\u3000]/g,rA=/^(?:(?:https?|ftps?|mailto):|[^a-z]|[a-z+.-]+(?:[^a-z+.:-]|$))/i,sA=/^[\S]+@((?![-_])(?:[-\w\u00a1-\uffff]{0,63}[^-_]\.))+(?:[a-z\u00a1-\uffff]{2,})$/i,aA=/^((\w+:(\/{2,})?)|(\W))/i,lA="Ctrl+K";function cA(t,{writer:e}){const n=e.createAttributeElement("a",{href:t},{priority:5});return e.setCustomProperty("link",!0,n),n}function dA(t){return function(t){return t.replace(iA,"").match(rA)}(t=String(t))?t:"#"}function uA(t,e){return!!t&&e.checkAttribute(t.name,"linkHref")}function hA(t,e){const n=(o=t,sA.test(o)?"mailto:":e);var o;const i=!!n&&!aA.test(t);return t&&i?n+t:t}function mA(t){window.open(t,"_blank","noopener")}class gA extends H{constructor(t){super(t),this.manualDecorators=new bo,this.automaticDecorators=new jw}restoreManualDecoratorStates(){for(const t of this.manualDecorators)t.value=this._getDecoratorStateFromModel(t.id)}refresh(){const t=this.editor.model,e=t.document.selection,n=e.getSelectedElement()||Ba(e.getSelectedBlocks());uA(n,t.schema)?(this.value=n.getAttribute("linkHref"),this.isEnabled=t.schema.checkAttribute(n,"linkHref")):(this.value=e.getAttribute("linkHref"),this.isEnabled=t.schema.checkAttributeInSelection(e,"linkHref"));for(const t of this.manualDecorators)t.value=this._getDecoratorStateFromModel(t.id)}execute(t,e={}){const n=this.editor.model,o=n.document.selection,i=[],r=[];for(const t in e)e[t]?i.push(t):r.push(t);n.change((e=>{if(o.isCollapsed){const s=o.getFirstPosition();if(o.hasAttribute("linkHref")){const a=gp(s,"linkHref",o.getAttribute("linkHref"),n);e.setAttribute("linkHref",t,a),i.forEach((t=>{e.setAttribute(t,!0,a)})),r.forEach((t=>{e.removeAttribute(t,a)})),e.setSelection(e.createPositionAfter(a.end.nodeBefore))}else if(""!==t){const r=Mo(o.getAttributes());r.set("linkHref",t),i.forEach((t=>{r.set(t,!0)}));const{end:a}=n.insertContent(e.createText(t,r),s);e.setSelection(a)}["linkHref",...i,...r].forEach((t=>{e.removeSelectionAttribute(t)}))}else{const s=n.schema.getValidRanges(o.getRanges(),"linkHref"),a=[];for(const t of o.getSelectedBlocks())n.schema.checkAttribute(t,"linkHref")&&a.push(e.createRangeOn(t));const l=a.slice();for(const t of s)this._isRangeToUpdate(t,a)&&l.push(t);for(const n of l)e.setAttribute("linkHref",t,n),i.forEach((t=>{e.setAttribute(t,!0,n)})),r.forEach((t=>{e.removeAttribute(t,n)}))}}))}_getDecoratorStateFromModel(t){const e=this.editor.model,n=e.document.selection,o=n.getSelectedElement();return uA(o,e.schema)?o.getAttribute(t):n.getAttribute(t)}_isRangeToUpdate(t,e){for(const n of e)if(n.containsRange(t))return!1;return!0}}class pA extends H{refresh(){const t=this.editor.model,e=t.document.selection,n=e.getSelectedElement();uA(n,t.schema)?this.isEnabled=t.schema.checkAttribute(n,"linkHref"):this.isEnabled=t.schema.checkAttributeInSelection(e,"linkHref")}execute(){const t=this.editor,e=this.editor.model,n=e.document.selection,o=t.commands.get("link");e.change((t=>{const i=n.isCollapsed?[gp(n.getFirstPosition(),"linkHref",n.getAttribute("linkHref"),e)]:e.schema.getValidRanges(n.getRanges(),"linkHref");for(const e of i)if(t.removeAttribute("linkHref",e),o)for(const n of o.manualDecorators)t.removeAttribute(n.id,e)}))}}class fA{constructor({id:t,label:e,attributes:n,classes:o,styles:i,defaultValue:r}){this.id=t,this.set("value"),this.defaultValue=r,this.label=e,this.attributes=n,this.classes=o,this.styles=i}_createPattern(){return{attributes:this.attributes,classes:this.classes,styles:this.styles}}}j(fA,N);var bA=n(399),kA={attributes:{"data-cke":!0}};kA.setAttributes=is(),kA.insert=ns().bind(null,"head"),kA.domAPI=ts(),kA.insertStyleElement=ss();Jr()(bA.Z,kA);bA.Z&&bA.Z.locals&&bA.Z.locals;const wA="automatic",AA=/^(https?:)?\/\//;class CA extends V{static get pluginName(){return"LinkEditing"}static get requires(){return[Xg,Wg,Wp]}constructor(t){super(t),t.config.define("link",{addTargetToExternalLinks:!1})}init(){const t=this.editor;t.model.schema.extend("$text",{allowAttributes:"linkHref"}),t.conversion.for("dataDowncast").attributeToElement({model:"linkHref",view:cA}),t.conversion.for("editingDowncast").attributeToElement({model:"linkHref",view:(t,e)=>cA(dA(t),e)}),t.conversion.for("upcast").elementToAttribute({view:{name:"a",attributes:{href:!0}},model:{key:"linkHref",value:t=>t.getAttribute("href")}}),t.commands.add("link",new gA(t)),t.commands.add("unlink",new pA(t));const e=function(t,e){const n={"Open in a new tab":t("Open in a new tab"),Downloadable:t("Downloadable")};return e.forEach((t=>(t.label&&n[t.label]&&(t.label=n[t.label]),t))),e}(t.t,function(t){const e=[];if(t)for(const[n,o]of Object.entries(t)){const t=Object.assign({},o,{id:`link${oA(n)}`});e.push(t)}return e}(t.config.get("link.decorators")));this._enableAutomaticDecorators(e.filter((t=>t.mode===wA))),this._enableManualDecorators(e.filter((t=>"manual"===t.mode)));t.plugins.get(Xg).registerAttribute("linkHref"),function(t,e,n,o){const i=t.editing.view,r=new Set;i.document.registerPostFixer((i=>{const s=t.model.document.selection;let a=!1;if(s.hasAttribute(e)){const l=gp(s.getFirstPosition(),e,s.getAttribute(e),t.model),c=t.editing.mapper.toViewRange(l);for(const t of c.getItems())t.is("element",n)&&!t.hasClass(o)&&(i.addClass(o,t),r.add(t),a=!0)}return a})),t.conversion.for("editingDowncast").add((t=>{function e(){i.change((t=>{for(const e of r.values())t.removeClass(o,e),r.delete(e)}))}t.on("insert",e,{priority:"highest"}),t.on("remove",e,{priority:"highest"}),t.on("attribute",e,{priority:"highest"}),t.on("selection",e,{priority:"highest"})}))}(t,"linkHref","a","ck-link_selected"),this._enableLinkOpen(),this._enableInsertContentSelectionAttributesFixer(),this._enableClickingAfterLink(),this._enableTypingOverLink(),this._handleDeleteContentAfterLink()}_enableAutomaticDecorators(t){const e=this.editor,n=e.commands.get("link").automaticDecorators;e.config.get("link.addTargetToExternalLinks")&&n.add({id:"linkIsExternal",mode:wA,callback:t=>AA.test(t),attributes:{target:"_blank",rel:"noopener noreferrer"}}),n.add(t),n.length&&e.conversion.for("downcast").add(n.getDispatcher())}_enableManualDecorators(t){if(!t.length)return;const e=this.editor,n=e.commands.get("link").manualDecorators;t.forEach((t=>{e.model.schema.extend("$text",{allowAttributes:t.id}),t=new fA(t),n.add(t),e.conversion.for("downcast").attributeToElement({model:t.id,view:(e,{writer:n,schema:o},{item:i})=>{if((i.is("selection")||o.isInline(i))&&e){const e=n.createAttributeElement("a",t.attributes,{priority:5});t.classes&&n.addClass(t.classes,e);for(const o in t.styles)n.setStyle(o,t.styles[o],e);return n.setCustomProperty("link",!0,e),e}}}),e.conversion.for("upcast").elementToAttribute({view:{name:"a",...t._createPattern()},model:{key:t.id}})}))}_enableLinkOpen(){const t=this.editor,e=t.editing.view.document,n=t.model.document;this.listenTo(e,"click",((t,e)=>{if(!(ar.isMac?e.domEvent.metaKey:e.domEvent.ctrlKey))return;let n=e.domTarget;if("a"!=n.tagName.toLowerCase()&&(n=n.closest("a")),!n)return;const o=n.getAttribute("href");o&&(t.stop(),e.preventDefault(),mA(o))}),{context:"$capture"}),this.listenTo(e,"enter",((t,e)=>{const o=n.selection,i=o.getSelectedElement(),r=i?i.getAttribute("linkHref"):o.getAttribute("linkHref");r&&e.domEvent.altKey&&(t.stop(),mA(r))}),{context:"a"})}_enableInsertContentSelectionAttributesFixer(){const t=this.editor.model,e=t.document.selection;this.listenTo(t,"insertContent",(()=>{const n=e.anchor.nodeBefore,o=e.anchor.nodeAfter;e.hasAttribute("linkHref")&&n&&n.hasAttribute("linkHref")&&(o&&o.hasAttribute("linkHref")||t.change((e=>{_A(e,yA(t.schema))})))}),{priority:"low"})}_enableClickingAfterLink(){const t=this.editor,e=t.model;t.editing.view.addObserver(zm);let n=!1;this.listenTo(t.editing.view.document,"mousedown",(()=>{n=!0})),this.listenTo(t.editing.view.document,"selectionChange",(()=>{if(!n)return;n=!1;const t=e.document.selection;if(!t.isCollapsed)return;if(!t.hasAttribute("linkHref"))return;const o=t.getFirstPosition(),i=gp(o,"linkHref",t.getAttribute("linkHref"),e);(o.isTouching(i.start)||o.isTouching(i.end))&&e.change((t=>{_A(t,yA(e.schema))}))}))}_enableTypingOverLink(){const t=this.editor,e=t.editing.view;let n,o;this.listenTo(e.document,"delete",(()=>{o=!0}),{priority:"high"}),this.listenTo(t.model,"deleteContent",(()=>{const e=t.model.document.selection;e.isCollapsed||(o?o=!1:vA(t)&&function(t){const e=t.document.selection,n=e.getFirstPosition(),o=e.getLastPosition(),i=n.nodeAfter;if(!i)return!1;if(!i.is("$text"))return!1;if(!i.hasAttribute("linkHref"))return!1;const r=o.textNode||o.nodeBefore;if(i===r)return!0;return gp(n,"linkHref",i.getAttribute("linkHref"),t).containsRange(t.createRange(n,o),!0)}(t.model)&&(n=e.getAttributes()))}),{priority:"high"}),this.listenTo(t.model,"insertContent",((e,[i])=>{o=!1,vA(t)&&n&&(t.model.change((t=>{for(const[e,o]of n)t.setAttribute(e,o,i)})),n=null)}),{priority:"high"})}_handleDeleteContentAfterLink(){const t=this.editor,e=t.model,n=e.document.selection,o=t.editing.view;let i=!1,r=!1;this.listenTo(o.document,"delete",((t,e)=>{r=e.domEvent.keyCode===ur.backspace}),{priority:"high"}),this.listenTo(e,"deleteContent",(()=>{i=!1;const t=n.getFirstPosition(),o=n.getAttribute("linkHref");if(!o)return;const r=gp(t,"linkHref",o,e);i=r.containsPosition(t)||r.end.isEqual(t)}),{priority:"high"}),this.listenTo(e,"deleteContent",(()=>{r&&(r=!1,i||t.model.enqueueChange((t=>{_A(t,yA(e.schema))})))}),{priority:"low"})}}function _A(t,e){t.removeSelectionAttribute("linkHref");for(const n of e)t.removeSelectionAttribute(n)}function vA(t){return t.model.change((t=>t.batch)).isTyping}function yA(t){return t.getDefinition("$text").allowAttributes.filter((t=>t.startsWith("link")))}var xA=n(4827),EA={attributes:{"data-cke":!0}};EA.setAttributes=is(),EA.insert=ns().bind(null,"head"),EA.domAPI=ts(),EA.insertStyleElement=ss();Jr()(xA.Z,EA);xA.Z&&xA.Z.locals&&xA.Z.locals;class DA extends Jd{constructor(t,e){super(t);const n=t.t;this.focusTracker=new za,this.keystrokes=new Pa,this.urlInputView=this._createUrlInput(),this.saveButtonView=this._createButton(n("Save"),Gd.check,"ck-button-save"),this.saveButtonView.type="submit",this.cancelButtonView=this._createButton(n("Cancel"),Gd.cancel,"ck-button-cancel","cancel"),this._manualDecoratorSwitches=this._createManualDecoratorSwitches(e),this.children=this._createFormChildren(e.manualDecorators),this._focusables=new Kd,this._focusCycler=new Ou({focusables:this._focusables,focusTracker:this.focusTracker,keystrokeHandler:this.keystrokes,actions:{focusPrevious:"shift + tab",focusNext:"tab"}});const o=["ck","ck-link-form","ck-responsive-form"];e.manualDecorators.length&&o.push("ck-link-form_layout-vertical","ck-vertical-form"),this.setTemplate({tag:"form",attributes:{class:o,tabindex:"-1"},children:this.children}),Zd(this)}getDecoratorSwitchesState(){return Array.from(this._manualDecoratorSwitches).reduce(((t,e)=>(t[e.name]=e.isOn,t)),{})}render(){super.render(),Yd({view:this});[this.urlInputView,...this._manualDecoratorSwitches,this.saveButtonView,this.cancelButtonView].forEach((t=>{this._focusables.add(t),this.focusTracker.add(t.element)})),this.keystrokes.listenTo(this.element)}destroy(){super.destroy(),this.focusTracker.destroy(),this.keystrokes.destroy()}focus(){this._focusCycler.focusFirst()}_createUrlInput(){const t=this.locale.t,e=new Fh(this.locale,Hh);return e.label=t("Link URL"),e}_createButton(t,e,n,o){const i=new Su(this.locale);return i.set({label:t,icon:e,tooltip:!0}),i.extendTemplate({attributes:{class:n}}),o&&i.delegate("execute").to(this,o),i}_createManualDecoratorSwitches(t){const e=this.createCollection();for(const n of t.manualDecorators){const o=new Mu(this.locale);o.set({name:n.id,label:n.label,withText:!0}),o.bind("isOn").toMany([n,t],"value",((t,e)=>void 0===e&&void 0===t?n.defaultValue:t)),o.on("execute",(()=>{n.set("value",!o.isOn)})),e.add(o)}return e}_createFormChildren(t){const e=this.createCollection();if(e.add(this.urlInputView),t.length){const t=new Jd;t.setTemplate({tag:"ul",children:this._manualDecoratorSwitches.map((t=>({tag:"li",children:[t],attributes:{class:["ck","ck-list__item"]}}))),attributes:{class:["ck","ck-reset","ck-list"]}}),e.add(t)}return e.add(this.saveButtonView),e.add(this.cancelButtonView),e}}var SA=n(9465),IA={attributes:{"data-cke":!0}};IA.setAttributes=is(),IA.insert=ns().bind(null,"head"),IA.domAPI=ts(),IA.insertStyleElement=ss();Jr()(SA.Z,IA);SA.Z&&SA.Z.locals&&SA.Z.locals;class TA extends Jd{constructor(t){super(t);const e=t.t;this.focusTracker=new za,this.keystrokes=new Pa,this.previewButtonView=this._createPreviewButton(),this.unlinkButtonView=this._createButton(e("Unlink"),'',"unlink"),this.editButtonView=this._createButton(e("Edit link"),Gd.pencil,"edit"),this.set("href"),this._focusables=new Kd,this._focusCycler=new Ou({focusables:this._focusables,focusTracker:this.focusTracker,keystrokeHandler:this.keystrokes,actions:{focusPrevious:"shift + tab",focusNext:"tab"}}),this.setTemplate({tag:"div",attributes:{class:["ck","ck-link-actions","ck-responsive-form"],tabindex:"-1"},children:[this.previewButtonView,this.editButtonView,this.unlinkButtonView]})}render(){super.render();[this.previewButtonView,this.editButtonView,this.unlinkButtonView].forEach((t=>{this._focusables.add(t),this.focusTracker.add(t.element)})),this.keystrokes.listenTo(this.element)}destroy(){super.destroy(),this.focusTracker.destroy(),this.keystrokes.destroy()}focus(){this._focusCycler.focusFirst()}_createButton(t,e,n){const o=new Su(this.locale);return o.set({label:t,icon:e,tooltip:!0}),o.delegate("execute").to(this,n),o}_createPreviewButton(){const t=new Su(this.locale),e=this.bindTemplate,n=this.t;return t.set({withText:!0,tooltip:n("Open link in new tab")}),t.extendTemplate({attributes:{class:["ck","ck-link-actions__preview"],href:e.to("href",(t=>t&&dA(t))),target:"_blank",rel:"noopener noreferrer"}}),t.bind("label").to(this,"href",(t=>t||n("This link has no URL"))),t.bind("isEnabled").to(this,"href",(t=>!!t)),t.template.tag="a",t.template.eventListeners={},t}}const MA='',BA="link-ui";class NA extends V{static get requires(){return[rm]}static get pluginName(){return"LinkUI"}init(){const t=this.editor;t.editing.view.addObserver(Nm),this.actionsView=this._createActionsView(),this.formView=this._createFormView(),this._balloon=t.plugins.get(rm),this._createToolbarLinkButton(),this._enableUserBalloonInteractions(),t.conversion.for("editingDowncast").markerToHighlight({model:BA,view:{classes:["ck-fake-link-selection"]}}),t.conversion.for("editingDowncast").markerToElement({model:BA,view:{name:"span",classes:["ck-fake-link-selection","ck-fake-link-selection_collapsed"]}})}destroy(){super.destroy(),this.formView.destroy()}_createActionsView(){const t=this.editor,e=new TA(t.locale),n=t.commands.get("link"),o=t.commands.get("unlink");return e.bind("href").to(n,"value"),e.editButtonView.bind("isEnabled").to(n),e.unlinkButtonView.bind("isEnabled").to(o),this.listenTo(e,"edit",(()=>{this._addFormView()})),this.listenTo(e,"unlink",(()=>{t.execute("unlink"),this._hideUI()})),e.keystrokes.set("Esc",((t,e)=>{this._hideUI(),e()})),e.keystrokes.set(lA,((t,e)=>{this._addFormView(),e()})),e}_createFormView(){const t=this.editor,e=t.commands.get("link"),n=t.config.get("link.defaultProtocol"),o=new DA(t.locale,e);return o.urlInputView.fieldView.bind("value").to(e,"value"),o.urlInputView.bind("isReadOnly").to(e,"isEnabled",(t=>!t)),o.saveButtonView.bind("isEnabled").to(e),this.listenTo(o,"submit",(()=>{const{value:e}=o.urlInputView.fieldView.element,i=hA(e,n);t.execute("link",i,o.getDecoratorSwitchesState()),this._closeFormView()})),this.listenTo(o,"cancel",(()=>{this._closeFormView()})),o.keystrokes.set("Esc",((t,e)=>{this._closeFormView(),e()})),o}_createToolbarLinkButton(){const t=this.editor,e=t.commands.get("link"),n=t.t;t.keystrokes.set(lA,((t,n)=>{n(),e.isEnabled&&this._showUI(!0)})),t.ui.componentFactory.add("link",(t=>{const o=new Su(t);return o.isEnabled=!0,o.label=n("Link"),o.icon=MA,o.keystroke=lA,o.tooltip=!0,o.isToggleable=!0,o.bind("isEnabled").to(e,"isEnabled"),o.bind("isOn").to(e,"value",(t=>!!t)),this.listenTo(o,"execute",(()=>this._showUI(!0))),o}))}_enableUserBalloonInteractions(){const t=this.editor.editing.view.document;this.listenTo(t,"click",(()=>{this._getSelectedLinkElement()&&this._showUI()})),this.editor.keystrokes.set("Tab",((t,e)=>{this._areActionsVisible&&!this.actionsView.focusTracker.isFocused&&(this.actionsView.focus(),e())}),{priority:"high"}),this.editor.keystrokes.set("Esc",((t,e)=>{this._isUIVisible&&(this._hideUI(),e())})),Wd({emitter:this.formView,activator:()=>this._isUIInPanel,contextElements:[this._balloon.view.element],callback:()=>this._hideUI()})}_addActionsView(){this._areActionsInPanel||this._balloon.add({view:this.actionsView,position:this._getBalloonPositionData()})}_addFormView(){if(this._isFormInPanel)return;const t=this.editor.commands.get("link");this.formView.disableCssTransitions(),this._balloon.add({view:this.formView,position:this._getBalloonPositionData()}),this._balloon.visibleView===this.formView&&this.formView.urlInputView.fieldView.select(),this.formView.enableCssTransitions(),this.formView.urlInputView.fieldView.element.value=t.value||""}_closeFormView(){const t=this.editor.commands.get("link");t.restoreManualDecoratorStates(),void 0!==t.value?this._removeFormView():this._hideUI()}_removeFormView(){this._isFormInPanel&&(this.formView.saveButtonView.focus(),this._balloon.remove(this.formView),this.editor.editing.view.focus(),this._hideFakeVisualSelection())}_showUI(t=!1){this._getSelectedLinkElement()?(this._areActionsVisible?this._addFormView():this._addActionsView(),t&&this._balloon.showStack("main")):(this._showFakeVisualSelection(),this._addActionsView(),t&&this._balloon.showStack("main"),this._addFormView()),this._startUpdatingUI()}_hideUI(){if(!this._isUIInPanel)return;const t=this.editor;this.stopListening(t.ui,"update"),this.stopListening(this._balloon,"change:visibleView"),t.editing.view.focus(),this._removeFormView(),this._balloon.remove(this.actionsView),this._hideFakeVisualSelection()}_startUpdatingUI(){const t=this.editor,e=t.editing.view.document;let n=this._getSelectedLinkElement(),o=r();const i=()=>{const t=this._getSelectedLinkElement(),e=r();n&&!t||!n&&e!==o?this._hideUI():this._isUIVisible&&this._balloon.updatePosition(this._getBalloonPositionData()),n=t,o=e};function r(){return e.selection.focus.getAncestors().reverse().find((t=>t.is("element")))}this.listenTo(t.ui,"update",i),this.listenTo(this._balloon,"change:visibleView",i)}get _isFormInPanel(){return this._balloon.hasView(this.formView)}get _areActionsInPanel(){return this._balloon.hasView(this.actionsView)}get _areActionsVisible(){return this._balloon.visibleView===this.actionsView}get _isUIInPanel(){return this._isFormInPanel||this._areActionsInPanel}get _isUIVisible(){return this._balloon.visibleView==this.formView||this._areActionsVisible}_getBalloonPositionData(){const t=this.editor.editing.view,e=this.editor.model,n=t.document;let o=null;if(e.markers.has(BA)){const e=Array.from(this.editor.editing.mapper.markerNameToElements(BA)),n=t.createRange(t.createPositionBefore(e[0]),t.createPositionAfter(e[e.length-1]));o=t.domConverter.viewRangeToDom(n)}else o=()=>{const e=this._getSelectedLinkElement();return e?t.domConverter.mapViewToDom(e):t.domConverter.viewRangeToDom(n.selection.getFirstRange())};return{target:o}}_getSelectedLinkElement(){const t=this.editor.editing.view,e=t.document.selection,n=e.getSelectedElement();if(e.isCollapsed||n&&Xp(n))return zA(e.getFirstPosition());{const n=e.getFirstRange().getTrimmed(),o=zA(n.start),i=zA(n.end);return o&&o==i&&t.createRangeIn(o).getTrimmed().isEqual(n)?o:null}}_showFakeVisualSelection(){const t=this.editor.model;t.change((e=>{const n=t.document.selection.getFirstRange();if(t.markers.has(BA))e.updateMarker(BA,{range:n});else if(n.start.isAtEnd){const o=n.start.getLastMatchingPosition((({item:e})=>!t.schema.isContent(e)),{boundaries:n});e.addMarker(BA,{usingOperation:!1,affectsData:!1,range:e.createRange(o,n.end)})}else e.addMarker(BA,{usingOperation:!1,affectsData:!1,range:n})}))}_hideFakeVisualSelection(){const t=this.editor.model;t.markers.has(BA)&&t.change((t=>{t.removeMarker(BA)}))}}function zA(t){return t.getAncestors().find((t=>{return(e=t).is("attributeElement")&&!!e.getCustomProperty("link");var e}))}const PA=new RegExp("(^|\\s)(((?:(?:(?:https?|ftp):)?\\/\\/)(?:\\S+(?::\\S*)?@)?(?:(?:[1-9]\\d?|1\\d\\d|2[01]\\d|22[0-3])(?:\\.(?:1?\\d{1,2}|2[0-4]\\d|25[0-5])){2}(?:\\.(?:[1-9]\\d?|1\\d\\d|2[0-4]\\d|25[0-4]))|(((?!www\\.)|(www\\.))(?![-_])(?:[-_a-z0-9\\u00a1-\\uffff]{1,63}\\.)+(?:[a-z\\u00a1-\\uffff]{2,63})))(?::\\d{2,5})?(?:[/?#]\\S*)?)|((www.|(\\S+@))((?![-_])(?:[-_a-z0-9\\u00a1-\\uffff]{1,63}\\.))+(?:[a-z\\u00a1-\\uffff]{2,63})))$","i");class LA extends V{static get requires(){return[Kg]}static get pluginName(){return"AutoLink"}init(){const t=this.editor.model.document.selection;t.on("change:range",(()=>{this.isEnabled=!t.anchor.parent.is("element","codeBlock")})),this._enableTypingHandling()}afterInit(){this._enableEnterHandling(),this._enableShiftEnterHandling()}_enableTypingHandling(){const t=this.editor,e=new Jg(t.model,(t=>{if(!function(t){return t.length>4&&" "===t[t.length-1]&&" "!==t[t.length-2]}(t))return;const e=OA(t.substr(0,t.length-1));return e?{url:e}:void 0}));e.on("matched:data",((e,n)=>{const{batch:o,range:i,url:r}=n;if(!o.isTyping)return;const s=i.end.getShiftedBy(-1),a=s.getShiftedBy(-r.length),l=t.model.createRange(a,s);this._applyAutoLink(r,l)})),e.bind("isEnabled").to(this)}_enableEnterHandling(){const t=this.editor,e=t.model,n=t.commands.get("enter");n&&n.on("execute",(()=>{const t=e.document.selection.getFirstPosition();if(!t.parent.previousSibling)return;const n=e.createRangeIn(t.parent.previousSibling);this._checkAndApplyAutoLinkOnRange(n)}))}_enableShiftEnterHandling(){const t=this.editor,e=t.model,n=t.commands.get("shiftEnter");n&&n.on("execute",(()=>{const t=e.document.selection.getFirstPosition(),n=e.createRange(e.createPositionAt(t.parent,0),t.getShiftedBy(-1));this._checkAndApplyAutoLinkOnRange(n)}))}_checkAndApplyAutoLinkOnRange(t){const e=this.editor.model,{text:n,range:o}=Qg(t,e),i=OA(n);if(i){const t=e.createRange(o.end.getShiftedBy(-i.length),o.end);this._applyAutoLink(i,t)}}_applyAutoLink(t,e){const n=this.editor.model,o=this.editor.plugins.get("Delete");this.isEnabled&&function(t,e){return e.schema.checkAttributeInSelection(e.createSelection(t),"linkHref")}(e,n)&&n.enqueueChange((i=>{const r=this.editor.config.get("link.defaultProtocol"),s=hA(t,r);i.setAttribute("linkHref",s,e),n.enqueueChange((()=>{o.requestUndoOnBackspace()}))}))}}function OA(t){const e=PA.exec(t);return e?e[2]:null}class RA extends V{static get requires(){return["ImageEditing","ImageUtils",CA]}static get pluginName(){return"LinkImageEditing"}init(){const t=this.editor,e=t.model.schema;t.plugins.has("ImageBlockEditing")&&e.extend("imageBlock",{allowAttributes:["linkHref"]}),t.conversion.for("upcast").add(function(t){const e=t.plugins.has("ImageInlineEditing"),n=t.plugins.get("ImageUtils");return t=>{t.on("element:a",((t,o,i)=>{const r=o.viewItem,s=n.findViewImgElement(r);if(!s)return;const a=s.findAncestor((t=>n.isBlockImageView(t)));if(e&&!a)return;const l={attributes:["href"]};if(!i.consumable.consume(r,l))return;const c=r.getAttribute("href");if(!c)return;let d=o.modelCursor.parent;if(!d.is("element","imageBlock")){const t=i.convertItem(s,o.modelCursor);o.modelRange=t.modelRange,o.modelCursor=t.modelCursor,d=o.modelCursor.nodeBefore}d&&d.is("element","imageBlock")&&i.writer.setAttribute("linkHref",c,d)}),{priority:"high"})}}(t)),t.conversion.for("downcast").add(function(t){const e=t.plugins.get("ImageUtils");return t=>{t.on("attribute:linkHref:imageBlock",((t,n,o)=>{if(!o.consumable.consume(n.item,t.name))return;const i=o.mapper.toViewElement(n.item),r=o.writer,s=Array.from(i.getChildren()).find((t=>"a"===t.name)),a=e.findViewImgElement(i),l=a.parent.is("element","picture")?a.parent:a;if(s)n.attributeNewValue?r.setAttribute("href",n.attributeNewValue,s):(r.move(r.createRangeOn(l),r.createPositionAt(i,0)),r.remove(s));else{const t=r.createContainerElement("a",{href:n.attributeNewValue});r.insert(r.createPositionAt(i,0),t),r.move(r.createRangeOn(l),r.createPositionAt(t,0))}}),{priority:"high"})}}(t)),this._enableAutomaticDecorators(),this._enableManualDecorators()}_enableAutomaticDecorators(){const t=this.editor,e=t.commands.get("link").automaticDecorators;e.length&&t.conversion.for("downcast").add(e.getDispatcherForLinkedImage())}_enableManualDecorators(){const t=this.editor,e=t.commands.get("link");for(const n of e.manualDecorators)t.plugins.has("ImageBlockEditing")&&t.model.schema.extend("imageBlock",{allowAttributes:n.id}),t.plugins.has("ImageInlineEditing")&&t.model.schema.extend("imageInline",{allowAttributes:n.id}),t.conversion.for("downcast").add(jA(n)),t.conversion.for("upcast").add(VA(t,n))}}function jA(t){return e=>{e.on(`attribute:${t.id}:imageBlock`,((e,n,o)=>{const i=o.mapper.toViewElement(n.item),r=Array.from(i.getChildren()).find((t=>"a"===t.name));if(r){for(const[e,n]of Mo(t.attributes))o.writer.setAttribute(e,n,r);t.classes&&o.writer.addClass(t.classes,r);for(const e in t.styles)o.writer.setStyle(e,t.styles[e],r)}}))}}function VA(t,e){const n=t.plugins.has("ImageInlineEditing"),o=t.plugins.get("ImageUtils");return t=>{t.on("element:a",((t,i,r)=>{const s=i.viewItem,a=o.findViewImgElement(s);if(!a)return;const l=a.findAncestor((t=>o.isBlockImageView(t)));if(n&&!l)return;const c=new Bo(e._createPattern()).match(s);if(!c)return;if(!r.consumable.consume(s,c.match))return;const d=i.modelCursor.nodeBefore||i.modelCursor.parent;r.writer.setAttribute(e.id,!0,d)}),{priority:"high"})}}class FA extends V{static get requires(){return[CA,NA,"ImageBlockEditing"]}static get pluginName(){return"LinkImageUI"}init(){const t=this.editor,e=t.editing.view.document;this.listenTo(e,"click",((e,n)=>{this._isSelectedLinkedImage(t.model.document.selection)&&(n.preventDefault(),e.stop())}),{priority:"high"}),this._createToolbarLinkImageButton()}_createToolbarLinkImageButton(){const t=this.editor,e=t.t;t.ui.componentFactory.add("linkImage",(n=>{const o=new Su(n),i=t.plugins.get("LinkUI"),r=t.commands.get("link");return o.set({isEnabled:!0,label:e("Link image"),icon:MA,keystroke:lA,tooltip:!0,isToggleable:!0}),o.bind("isEnabled").to(r,"isEnabled"),o.bind("isOn").to(r,"value",(t=>!!t)),this.listenTo(o,"execute",(()=>{this._isSelectedLinkedImage(t.model.document.selection)?i._addActionsView():i._showUI(!0)})),o}))}_isSelectedLinkedImage(t){const e=t.getSelectedElement();return this.editor.plugins.get("ImageUtils").isImage(e)&&e.hasAttribute("linkHref")}}var HA=n(3858),UA={attributes:{"data-cke":!0}};UA.setAttributes=is(),UA.insert=ns().bind(null,"head"),UA.domAPI=ts(),UA.insertStyleElement=ss();Jr()(HA.Z,UA);HA.Z&&HA.Z.locals&&HA.Z.locals;class qA extends H{constructor(t,e){super(t),this.type=e}refresh(){this.value=this._getValue(),this.isEnabled=this._checkEnabled()}execute(t={}){const e=this.editor.model,n=e.document,o=Array.from(n.selection.getSelectedBlocks()).filter((t=>WA(t,e.schema))),i=void 0!==t.forceValue?!t.forceValue:this.value;e.change((t=>{if(i){let e=o[o.length-1].nextSibling,n=Number.POSITIVE_INFINITY,i=[];for(;e&&"listItem"==e.name&&0!==e.getAttribute("listIndent");){const t=e.getAttribute("listIndent");t=n;)r>i.getAttribute("listIndent")&&(r=i.getAttribute("listIndent")),i.getAttribute("listIndent")==r&&t[e?"unshift":"push"](i),i=i[e?"previousSibling":"nextSibling"]}}function WA(t,e){return e.checkChild(t.parent,"listItem")&&!e.isObject(t)}class ZA extends H{constructor(t,e){super(t),this._indentBy="forward"==e?1:-1}refresh(){this.isEnabled=this._checkEnabled()}execute(){const t=this.editor.model,e=t.document;let n=Array.from(e.selection.getSelectedBlocks());t.change((t=>{const e=n[n.length-1];let o=e.nextSibling;for(;o&&"listItem"==o.name&&o.getAttribute("listIndent")>e.getAttribute("listIndent");)n.push(o),o=o.nextSibling;this._indentBy<0&&(n=n.reverse());for(const e of n){const n=e.getAttribute("listIndent")+this._indentBy;n<0?t.rename(e,"paragraph"):t.setAttribute("listIndent",n,e)}this.fire("_executeCleanup",n)}))}_checkEnabled(){const t=Ba(this.editor.model.document.selection.getSelectedBlocks());if(!t||!t.is("element","listItem"))return!1;if(this._indentBy>0){const e=t.getAttribute("listIndent"),n=t.getAttribute("listType");let o=t.previousSibling;for(;o&&o.is("element","listItem")&&o.getAttribute("listIndent")>=e;){if(o.getAttribute("listIndent")==e)return o.getAttribute("listType")==n;o=o.previousSibling}return!1}return!0}}function YA(t,e){const n=e.mapper,o=e.writer,i="numbered"==t.getAttribute("listType")?"ol":"ul",r=function(t){const e=t.createContainerElement("li");return e.getFillerOffset=iC,e}(o),s=o.createContainerElement(i,null);return o.insert(o.createPositionAt(s,0),r),n.bindElements(t,r),r}function KA(t,e,n,o){const i=e.parent,r=n.mapper,s=n.writer;let a=r.toViewPosition(o.createPositionBefore(t));const l=JA(t.previousSibling,{sameIndent:!0,smallerIndent:!0,listIndent:t.getAttribute("listIndent")}),c=t.previousSibling;if(l&&l.getAttribute("listIndent")==t.getAttribute("listIndent")){const t=r.toViewElement(l);a=s.breakContainer(s.createPositionAfter(t))}else if(c&&"listItem"==c.name){a=r.toViewPosition(o.createPositionAt(c,"end"));const t=r.findMappedViewAncestor(a),e=function(t){for(const e of t.getChildren())if("ul"==e.name||"ol"==e.name)return e;return null}(t);a=e?s.createPositionBefore(e):s.createPositionAt(t,"end")}else a=r.toViewPosition(o.createPositionBefore(t));if(a=QA(a),s.insert(a,i),c&&"listItem"==c.name){const t=r.toViewElement(c),n=s.createRange(s.createPositionAt(t,0),a).getWalker({ignoreElementEnd:!0});for(const t of n)if(t.item.is("element","li")){const o=s.breakContainer(s.createPositionBefore(t.item)),i=t.item.parent,r=s.createPositionAt(e,"end");$A(s,r.nodeBefore,r.nodeAfter),s.move(s.createRangeOn(i),r),n.position=o}}else{const n=i.nextSibling;if(n&&(n.is("element","ul")||n.is("element","ol"))){let o=null;for(const e of n.getChildren()){const n=r.toModelElement(e);if(!(n&&n.getAttribute("listIndent")>t.getAttribute("listIndent")))break;o=e}o&&(s.breakContainer(s.createPositionAfter(o)),s.move(s.createRangeOn(o.parent),s.createPositionAt(e,"end")))}}$A(s,i,i.nextSibling),$A(s,i.previousSibling,i)}function $A(t,e,n){return!e||!n||"ul"!=e.name&&"ol"!=e.name||e.name!=n.name||e.getAttribute("class")!==n.getAttribute("class")?null:t.mergeContainers(t.createPositionAfter(e))}function QA(t){return t.getLastMatchingPosition((t=>t.item.is("uiElement")))}function JA(t,e){const n=!!e.sameIndent,o=!!e.smallerIndent,i=e.listIndent;let r=t;for(;r&&"listItem"==r.name;){const t=r.getAttribute("listIndent");if(n&&i==t||o&&i>t)return r;r="forward"===e.direction?r.nextSibling:r.previousSibling}return null}function XA(t,e,n,o){t.ui.componentFactory.add(e,(i=>{const r=t.commands.get(e),s=new Su(i);return s.set({label:n,icon:o,tooltip:!0,isToggleable:!0}),s.bind("isOn","isEnabled").to(r,"value","isEnabled"),s.on("execute",(()=>{t.execute(e),t.editing.view.focus()})),s}))}function tC(t,e){const n=[],o=t.parent,i={ignoreElementEnd:!0,startPosition:t,shallow:!0,direction:e},r=o.getAttribute("listIndent"),s=[...new Xa(i)].filter((t=>t.item.is("element"))).map((t=>t.item));for(const t of s){if(!t.is("element","listItem"))break;if(t.getAttribute("listIndent")r)){if(t.getAttribute("listType")!==o.getAttribute("listType"))break;if(t.getAttribute("listStyle")!==o.getAttribute("listStyle"))break;if(t.getAttribute("listReversed")!==o.getAttribute("listReversed"))break;if(t.getAttribute("listStart")!==o.getAttribute("listStart"))break;"backward"===e?n.unshift(t):n.push(t)}}return n}function eC(t){let e=[...t.document.selection.getSelectedBlocks()].filter((t=>t.is("element","listItem"))).map((e=>{const n=t.change((t=>t.createPositionAt(e,0)));return[...tC(n,"backward"),...tC(n,"forward")]})).flat();return e=[...new Set(e)],e}const nC=["disc","circle","square"],oC=["decimal","decimal-leading-zero","lower-roman","upper-roman","lower-latin","upper-latin"];function iC(){const t=!this.isEmpty&&("ul"==this.getChild(0).name||"ol"==this.getChild(0).name);return this.isEmpty||t?0:zi.call(this)}function rC(t){return(e,n,o)=>{const i=o.consumable;if(!i.test(n.item,"insert")||!i.test(n.item,"attribute:listType")||!i.test(n.item,"attribute:listIndent"))return;i.consume(n.item,"insert"),i.consume(n.item,"attribute:listType"),i.consume(n.item,"attribute:listIndent");const r=n.item;KA(r,YA(r,o),o,t)}}function sC(t,e,n){if(!n.consumable.test(e.item,t.name))return;const o=n.mapper.toViewElement(e.item),i=n.writer;i.breakContainer(i.createPositionBefore(o)),i.breakContainer(i.createPositionAfter(o));const r=o.parent,s="numbered"==e.attributeNewValue?"ol":"ul";i.rename(s,r)}function aC(t,e,n){n.consumable.consume(e.item,t.name);const o=n.mapper.toViewElement(e.item).parent,i=n.writer;$A(i,o,o.nextSibling),$A(i,o.previousSibling,o)}function lC(t,e,n){if(n.consumable.test(e.item,t.name)&&"listItem"!=e.item.name){let t=n.mapper.toViewPosition(e.range.start);const o=n.writer,i=[];for(;("ul"==t.parent.name||"ol"==t.parent.name)&&(t=o.breakContainer(t),"li"==t.parent.name);){const e=t,n=o.createPositionAt(t.parent,"end");if(!e.isEqual(n)){const t=o.remove(o.createRange(e,n));i.push(t)}t=o.createPositionAfter(t.parent)}if(i.length>0){for(let e=0;e0){const e=$A(o,n,n.nextSibling);e&&e.parent==n&&t.offset--}}$A(o,t.nodeBefore,t.nodeAfter)}}}function cC(t,e,n){const o=n.mapper.toViewPosition(e.position),i=o.nodeBefore,r=o.nodeAfter;$A(n.writer,i,r)}function dC(t,e,n){if(n.consumable.consume(e.viewItem,{name:!0})){const t=n.writer,o=t.createElement("listItem"),i=function(t){let e=0,n=t.parent;for(;n;){if(n.is("element","li"))e++;else{const t=n.previousSibling;t&&t.is("element","li")&&e++}n=n.parent}return e}(e.viewItem);t.setAttribute("listIndent",i,o);const r=e.viewItem.parent&&"ol"==e.viewItem.parent.name?"numbered":"bulleted";if(t.setAttribute("listType",r,o),!n.safeInsert(o,e.modelCursor))return;const s=function(t,e,n){const{writer:o,schema:i}=n;let r=o.createPositionAfter(t);for(const s of e)if("ul"==s.name||"ol"==s.name)r=n.convertItem(s,r).modelCursor;else{const e=n.convertItem(s,o.createPositionAt(t,"end")),a=e.modelRange.start.nodeAfter;a&&a.is("element")&&!i.checkChild(t,a.name)&&(t=e.modelCursor.parent.is("element","listItem")?e.modelCursor.parent:pC(e.modelCursor),r=o.createPositionAfter(t))}return r}(o,e.viewItem.getChildren(),n);e.modelRange=t.createRange(e.modelCursor,s),n.updateConversionResult(o,e)}}function uC(t,e,n){if(n.consumable.test(e.viewItem,{name:!0})){const t=Array.from(e.viewItem.getChildren());for(const e of t){!(e.is("element","li")||bC(e))&&e._remove()}}}function hC(t,e,n){if(n.consumable.test(e.viewItem,{name:!0})){if(0===e.viewItem.childCount)return;const t=[...e.viewItem.getChildren()];let n=!1;for(const e of t)n&&!bC(e)&&e._remove(),bC(e)&&(n=!0)}}function mC(t){return(e,n)=>{if(n.isPhantom)return;const o=n.modelPosition.nodeBefore;if(o&&o.is("element","listItem")){const e=n.mapper.toViewElement(o),i=e.getAncestors().find(bC),r=t.createPositionAt(e,0).getWalker();for(const t of r){if("elementStart"==t.type&&t.item.is("element","li")){n.viewPosition=t.previousPosition;break}if("elementEnd"==t.type&&t.item==i){n.viewPosition=t.nextPosition;break}}}}}function gC(t,[e,n]){let o,i=e.is("documentFragment")?e.getChild(0):e;if(o=n?this.createSelection(n):this.document.selection,i&&i.is("element","listItem")){const t=o.getFirstPosition();let e=null;if(t.parent.is("element","listItem")?e=t.parent:t.nodeBefore&&t.nodeBefore.is("element","listItem")&&(e=t.nodeBefore),e){const t=e.getAttribute("listIndent");if(t>0)for(;i&&i.is("element","listItem");)i._setAttribute("listIndent",i.getAttribute("listIndent")+t),i=i.nextSibling}}}function pC(t){const e=new Xa({startPosition:t});let n;do{n=e.next()}while(!n.value.item.is("element","listItem"));return n.value.item}function fC(t,e,n,o,i,r){const s=JA(e.nodeBefore,{sameIndent:!0,smallerIndent:!0,listIndent:t,foo:"b"}),a=i.mapper,l=i.writer,c=s?s.getAttribute("listIndent"):null;let d;if(s)if(c==t){const t=a.toViewElement(s).parent;d=l.createPositionAfter(t)}else{const t=r.createPositionAt(s,"end");d=a.toViewPosition(t)}else d=n;d=QA(d);for(const t of[...o.getChildren()])bC(t)&&(d=l.move(l.createRangeOn(t),d).end,$A(l,t,t.nextSibling),$A(l,t.previousSibling,t))}function bC(t){return t.is("element","ol")||t.is("element","ul")}class kC extends V{static get pluginName(){return"ListEditing"}static get requires(){return[yp,Kg]}init(){const t=this.editor;t.model.schema.register("listItem",{inheritAllFrom:"$block",allowAttributes:["listType","listIndent"]});const e=t.data,n=t.editing;var o;t.model.document.registerPostFixer((e=>function(t,e){const n=t.document.differ.getChanges(),o=new Map;let i=!1;for(const o of n)if("insert"==o.type&&"listItem"==o.name)r(o.position);else if("insert"==o.type&&"listItem"!=o.name){if("$text"!=o.name){const n=o.position.nodeAfter;n.hasAttribute("listIndent")&&(e.removeAttribute("listIndent",n),i=!0),n.hasAttribute("listType")&&(e.removeAttribute("listType",n),i=!0),n.hasAttribute("listStyle")&&(e.removeAttribute("listStyle",n),i=!0),n.hasAttribute("listReversed")&&(e.removeAttribute("listReversed",n),i=!0),n.hasAttribute("listStart")&&(e.removeAttribute("listStart",n),i=!0);for(const e of Array.from(t.createRangeIn(n)).filter((t=>t.item.is("element","listItem"))))r(e.previousPosition)}r(o.position.getShiftedBy(o.length))}else"remove"==o.type&&"listItem"==o.name?r(o.position):("attribute"==o.type&&"listIndent"==o.attributeKey||"attribute"==o.type&&"listType"==o.attributeKey)&&r(o.range.start);for(const t of o.values())s(t),a(t);return i;function r(t){const e=t.nodeBefore;if(e&&e.is("element","listItem")){let t=e;if(o.has(t))return;for(let e=t.previousSibling;e&&e.is("element","listItem");e=t.previousSibling)if(t=e,o.has(t))return;o.set(e,t)}else{const e=t.nodeAfter;e&&e.is("element","listItem")&&o.set(e,e)}}function s(t){let n=0,o=null;for(;t&&t.is("element","listItem");){const r=t.getAttribute("listIndent");if(r>n){let s;null===o?(o=r-n,s=n):(o>r&&(o=r),s=r-o),e.setAttribute("listIndent",s,t),i=!0}else o=null,n=t.getAttribute("listIndent")+1;t=t.nextSibling}}function a(t){let n=[],o=null;for(;t&&t.is("element","listItem");){const r=t.getAttribute("listIndent");if(o&&o.getAttribute("listIndent")>r&&(n=n.slice(0,r+1)),0!=r)if(n[r]){const o=n[r];t.getAttribute("listType")!=o&&(e.setAttribute("listType",o,t),i=!0)}else n[r]=t.getAttribute("listType");o=t,t=t.nextSibling}}}(t.model,e))),n.mapper.registerViewToModelLength("li",wC),e.mapper.registerViewToModelLength("li",wC),n.mapper.on("modelToViewPosition",mC(n.view)),n.mapper.on("viewToModelPosition",(o=t.model,(t,e)=>{const n=e.viewPosition,i=n.parent,r=e.mapper;if("ul"==i.name||"ol"==i.name){if(n.isAtEnd){const t=r.toModelElement(n.nodeBefore),i=r.getModelLength(n.nodeBefore);e.modelPosition=o.createPositionBefore(t).getShiftedBy(i)}else{const t=r.toModelElement(n.nodeAfter);e.modelPosition=o.createPositionBefore(t)}t.stop()}else if("li"==i.name&&n.nodeBefore&&("ul"==n.nodeBefore.name||"ol"==n.nodeBefore.name)){const s=r.toModelElement(i);let a=1,l=n.nodeBefore;for(;l&&bC(l);)a+=r.getModelLength(l),l=l.previousSibling;e.modelPosition=o.createPositionBefore(s).getShiftedBy(a),t.stop()}})),e.mapper.on("modelToViewPosition",mC(n.view)),t.conversion.for("editingDowncast").add((e=>{e.on("insert",lC,{priority:"high"}),e.on("insert:listItem",rC(t.model)),e.on("attribute:listType:listItem",sC,{priority:"high"}),e.on("attribute:listType:listItem",aC,{priority:"low"}),e.on("attribute:listIndent:listItem",function(t){return(e,n,o)=>{if(!o.consumable.consume(n.item,"attribute:listIndent"))return;const i=o.mapper.toViewElement(n.item),r=o.writer;r.breakContainer(r.createPositionBefore(i)),r.breakContainer(r.createPositionAfter(i));const s=i.parent,a=s.previousSibling,l=r.createRangeOn(s);r.remove(l),a&&a.nextSibling&&$A(r,a,a.nextSibling),fC(n.attributeOldValue+1,n.range.start,l.start,i,o,t),KA(n.item,i,o,t);for(const t of n.item.getChildren())o.consumable.consume(t,"insert")}}(t.model)),e.on("remove:listItem",function(t){return(e,n,o)=>{const i=o.mapper.toViewPosition(n.position).getLastMatchingPosition((t=>!t.item.is("element","li"))).nodeAfter,r=o.writer;r.breakContainer(r.createPositionBefore(i)),r.breakContainer(r.createPositionAfter(i));const s=i.parent,a=s.previousSibling,l=r.createRangeOn(s),c=r.remove(l);a&&a.nextSibling&&$A(r,a,a.nextSibling),fC(o.mapper.toModelElement(i).getAttribute("listIndent")+1,n.position,l.start,i,o,t);for(const t of r.createRangeIn(c).getItems())o.mapper.unbindViewElement(t);e.stop()}}(t.model)),e.on("remove",cC,{priority:"low"})})),t.conversion.for("dataDowncast").add((e=>{e.on("insert",lC,{priority:"high"}),e.on("insert:listItem",rC(t.model))})),t.conversion.for("upcast").add((t=>{t.on("element:ul",uC,{priority:"high"}),t.on("element:ol",uC,{priority:"high"}),t.on("element:li",hC,{priority:"high"}),t.on("element:li",dC)})),t.model.on("insertContent",gC,{priority:"high"}),t.commands.add("numberedList",new qA(t,"numbered")),t.commands.add("bulletedList",new qA(t,"bulleted")),t.commands.add("indentList",new ZA(t,"forward")),t.commands.add("outdentList",new ZA(t,"backward"));const i=n.view.document;this.listenTo(i,"enter",((t,e)=>{const n=this.editor.model.document,o=n.selection.getLastPosition().parent;n.selection.isCollapsed&&"listItem"==o.name&&o.isEmpty&&(this.editor.execute("outdentList"),e.preventDefault(),t.stop())}),{context:"li"}),this.listenTo(i,"delete",((t,e)=>{if("backward"!==e.direction)return;const n=this.editor.model.document.selection;if(!n.isCollapsed)return;const o=n.getFirstPosition();if(!o.isAtStart)return;const i=o.parent;if("listItem"!==i.name)return;i.previousSibling&&"listItem"===i.previousSibling.name||(this.editor.execute("outdentList"),e.preventDefault(),t.stop())}),{context:"li"}),this.listenTo(t.editing.view.document,"tab",((e,n)=>{const o=n.shiftKey?"outdentList":"indentList";this.editor.commands.get(o).isEnabled&&(t.execute(o),n.stopPropagation(),n.preventDefault(),e.stop())}),{context:"li"})}afterInit(){const t=this.editor.commands,e=t.get("indent"),n=t.get("outdent");e&&e.registerChildCommand(t.get("indentList")),n&&n.registerChildCommand(t.get("outdentList"))}}function wC(t){let e=1;for(const n of t.getChildren())if("ul"==n.name||"ol"==n.name)for(const t of n.getChildren())e+=wC(t);return e}const AC='',CC='';class _C extends V{static get pluginName(){return"ListUI"}init(){const t=this.editor.t;XA(this.editor,"numberedList",t("Numbered List"),AC),XA(this.editor,"bulletedList",t("Bulleted List"),CC)}}class vC extends H{constructor(t,e){super(t),this._defaultType=e}refresh(){this.value=this._getValue(),this.isEnabled=this._checkEnabled()}execute(t={}){this._tryToConvertItemsToList(t);const e=this.editor.model,n=eC(e);n.length&&e.change((e=>{for(const o of n)e.setAttribute("listStyle",t.type||this._defaultType,o)}))}_getValue(){const t=this.editor.model.document.selection.getFirstPosition().parent;return t&&t.is("element","listItem")?t.getAttribute("listStyle"):null}_checkEnabled(){const t=this.editor,e=t.commands.get("numberedList"),n=t.commands.get("bulletedList");return e.isEnabled||n.isEnabled}_tryToConvertItemsToList(t){if(!t.type)return;const e=(n=t.type,nC.includes(n)?"bulleted":oC.includes(n)?"numbered":null);var n;if(!e)return;const o=this.editor,i=e+"List";o.commands.get(i).value||o.execute(i)}}class yC extends H{refresh(){const t=this._getValue();this.value=t,this.isEnabled=null!=t}execute(t={}){const e=this.editor.model,n=eC(e).filter((t=>"numbered"==t.getAttribute("listType")));e.change((e=>{for(const o of n)e.setAttribute("listReversed",!!t.reversed,o)}))}_getValue(){const t=this.editor.model.document.selection.getFirstPosition().parent;return t&&t.is("element","listItem")&&"numbered"==t.getAttribute("listType")?t.getAttribute("listReversed"):null}}class xC extends H{refresh(){const t=this._getValue();this.value=t,this.isEnabled=null!=t}execute(t={}){const e=this.editor.model,n=eC(e).filter((t=>"numbered"==t.getAttribute("listType")));e.change((e=>{for(const o of n)e.setAttribute("listStart",t.startIndex||1,o)}))}_getValue(){const t=this.editor.model.document.selection.getFirstPosition().parent;return t&&t.is("element","listItem")&&"numbered"==t.getAttribute("listType")?t.getAttribute("listStart"):null}}const EC="default";class DC extends V{static get requires(){return[kC]}static get pluginName(){return"ListPropertiesEditing"}constructor(t){super(t),t.config.define("list",{properties:{styles:!0,startIndex:!1,reversed:!1}})}init(){const t=this.editor,e=t.model,n=function(t){const e=[];t.styles&&e.push({attributeName:"listStyle",defaultValue:EC,addCommand(t){t.commands.add("listStyle",new vC(t,EC))},appliesToListItem:()=>!0,setAttributeOnDowncast(t,e,n){e&&e!==EC?t.setStyle("list-style-type",e,n):t.removeStyle("list-style-type",n)},getAttributeOnUpcast:t=>t.getStyle("list-style-type")||EC});t.reversed&&e.push({attributeName:"listReversed",defaultValue:!1,addCommand(t){t.commands.add("listReversed",new yC(t))},appliesToListItem:t=>"numbered"==t.getAttribute("listType"),setAttributeOnDowncast(t,e,n){e?t.setAttribute("reversed","reversed",n):t.removeAttribute("reversed",n)},getAttributeOnUpcast:t=>t.hasAttribute("reversed")});t.startIndex&&e.push({attributeName:"listStart",defaultValue:1,addCommand(t){t.commands.add("listStart",new xC(t))},appliesToListItem:t=>"numbered"==t.getAttribute("listType"),setAttributeOnDowncast(t,e,n){1!=e?t.setAttribute("start",e,n):t.removeAttribute("start",n)},getAttributeOnUpcast:t=>t.getAttribute("start")||1});return e}(t.config.get("list.properties"));e.schema.extend("listItem",{allowAttributes:n.map((t=>t.attributeName))});for(const e of n)e.addCommand(t);var o;this.listenTo(t.commands.get("indentList"),"_executeCleanup",function(t,e){return(n,o)=>{const i=o[0],r=i.getAttribute("listIndent"),s=o.filter((t=>t.getAttribute("listIndent")===r));let a=null;i.previousSibling.getAttribute("listIndent")+1!==r&&(a=JA(i.previousSibling,{sameIndent:!0,direction:"backward",listIndent:r})),t.model.change((t=>{for(const n of s)for(const o of e)if(o.appliesToListItem(n)){const e=null==a?o.defaultValue:a.getAttribute(o.attributeName);t.setAttribute(o.attributeName,e,n)}}))}}(t,n)),this.listenTo(t.commands.get("outdentList"),"_executeCleanup",function(t,e){return(n,o)=>{if(!(o=o.reverse().filter((t=>t.is("element","listItem")))).length)return;const i=o[0].getAttribute("listIndent"),r=o[0].getAttribute("listType");let s=o[0].previousSibling;if(s.is("element","listItem"))for(;s.getAttribute("listIndent")!==i;)s=s.previousSibling;else s=null;s||(s=o[o.length-1].nextSibling),s&&s.is("element","listItem")&&s.getAttribute("listType")===r&&t.model.change((t=>{const n=o.filter((t=>t.getAttribute("listIndent")===i));for(const o of n)for(const n of e)if(n.appliesToListItem(o)){const e=n.attributeName,i=s.getAttribute(e);t.setAttribute(e,i,o)}}))}}(t,n)),this.listenTo(t.commands.get("bulletedList"),"_executeCleanup",TC(t)),this.listenTo(t.commands.get("numberedList"),"_executeCleanup",TC(t)),e.document.registerPostFixer(function(t,e){return n=>{let o=!1;const i=MC(t.model.document.differ.getChanges()).filter((t=>"todo"!==t.getAttribute("listType")));if(!i.length)return o;let r=i[i.length-1].nextSibling;if((!r||!r.is("element","listItem"))&&(r=i[0].previousSibling,r)){const t=i[0].getAttribute("listIndent");for(;r.is("element","listItem")&&r.getAttribute("listIndent")!==t&&(r=r.previousSibling,r););}for(const t of e){const e=t.attributeName;for(const s of i)if(t.appliesToListItem(s))if(s.hasAttribute(e)){const i=s.previousSibling;IC(i,s,t.attributeName)&&(n.setAttribute(e,i.getAttribute(e),s),o=!0)}else SC(r,s,t)?n.setAttribute(e,r.getAttribute(e),s):n.setAttribute(e,t.defaultValue,s),o=!0;else n.removeAttribute(e,s)}return o}}(t,n)),t.conversion.for("upcast").add((o=n,t=>{t.on("element:li",((t,e,n)=>{const i=e.viewItem.parent;if(!i)return;const r=e.modelRange.start.nodeAfter||e.modelRange.end.nodeBefore;for(const t of o)if(t.appliesToListItem(r)){const e=t.getAttributeOnUpcast(i);n.writer.setAttribute(t.attributeName,e,r)}}),{priority:"low"})})),t.conversion.for("downcast").add(function(t){return n=>{for(const o of t)n.on(`attribute:${o.attributeName}:listItem`,((t,n,i)=>{const r=i.writer,s=n.item,a=JA(s.previousSibling,{sameIndent:!0,listIndent:s.getAttribute("listIndent"),direction:"backward"}),l=i.mapper.toViewElement(s);e(s,a)||r.breakContainer(r.createPositionBefore(l)),o.setAttributeOnDowncast(r,n.attributeNewValue,l.parent)}),{priority:"low"})};function e(t,e){return e&&t.getAttribute("listType")===e.getAttribute("listType")&&t.getAttribute("listIndent")===e.getAttribute("listIndent")&&t.getAttribute("listStyle")===e.getAttribute("listStyle")&&t.getAttribute("listReversed")===e.getAttribute("listReversed")&&t.getAttribute("listStart")===e.getAttribute("listStart")}}(n)),this._mergeListAttributesWhileMergingLists(n)}afterInit(){const t=this.editor;t.commands.get("todoList")&&t.model.document.registerPostFixer(function(t){return e=>{const n=MC(t.model.document.differ.getChanges()).filter((t=>"todo"===t.getAttribute("listType")&&(t.hasAttribute("listStyle")||t.hasAttribute("listReversed")||t.hasAttribute("listStart"))));if(!n.length)return!1;for(const t of n)e.removeAttribute("listStyle",t),e.removeAttribute("listReversed",t),e.removeAttribute("listStart",t);return!0}}(t))}_mergeListAttributesWhileMergingLists(t){const e=this.editor.model;let n;this.listenTo(e,"deleteContent",((t,[e])=>{const o=e.getFirstPosition(),i=e.getLastPosition();if(o.parent===i.parent)return;if(!o.parent.is("element","listItem"))return;const r=i.parent.nextSibling;if(!r||!r.is("element","listItem"))return;const s=JA(o.parent,{sameIndent:!0,listIndent:r.getAttribute("listIndent")});s&&s.getAttribute("listType")===r.getAttribute("listType")&&(n=s)}),{priority:"high"}),this.listenTo(e,"deleteContent",(()=>{n&&(e.change((e=>{const o=JA(n.nextSibling,{sameIndent:!0,listIndent:n.getAttribute("listIndent"),direction:"forward"});if(!o)return void(n=null);const i=[o,...tC(e.createPositionAt(o,0),"forward")];for(const o of i)for(const i of t)if(i.appliesToListItem(o)){const t=i.attributeName,r=n.getAttribute(t);e.setAttribute(t,r,o)}})),n=null)}),{priority:"low"})}}function SC(t,e,n){if(!t)return!1;const o=t.getAttribute(n.attributeName);return!!o&&(o!=n.defaultValue&&t.getAttribute("listType")===e.getAttribute("listType"))}function IC(t,e,n){if(!t||!t.is("element","listItem"))return!1;if(e.getAttribute("listType")!==t.getAttribute("listType"))return!1;const o=t.getAttribute("listIndent");if(o<1||o!==e.getAttribute("listIndent"))return!1;const i=t.getAttribute(n);return!(!i||i===e.getAttribute(n))}function TC(t){return(e,n)=>{n=n.filter((t=>t.is("element","listItem"))),t.model.change((t=>{for(const e of n)t.removeAttribute("listStyle",e)}))}}function MC(t){const e=[];for(const n of t){const t=BC(n);t&&t.is("element","listItem")&&e.push(t)}return e}function BC(t){return"attribute"===t.type?t.range.start.nodeAfter:"insert"===t.type?t.position.nodeAfter:null}var NC=n(3195),zC={attributes:{"data-cke":!0}};zC.setAttributes=is(),zC.insert=ns().bind(null,"head"),zC.domAPI=ts(),zC.insertStyleElement=ss();Jr()(NC.Z,zC);NC.Z&&NC.Z.locals&&NC.Z.locals;class PC extends Jd{constructor(t,e){super(t);const n=this.bindTemplate;this.set("isCollapsed",!1),this.set("label",""),this.buttonView=this._createButtonView(),this.children=this.createCollection(),this.set("_collapsibleAriaLabelUid"),e&&this.children.addMany(e),this.setTemplate({tag:"div",attributes:{class:["ck","ck-collapsible",n.if("isCollapsed","ck-collapsible_collapsed")]},children:[this.buttonView,{tag:"div",attributes:{class:["ck","ck-collapsible__children"],role:"region",hidden:n.if("isCollapsed","hidden"),"aria-labelledby":n.to("_collapsibleAriaLabelUid")},children:this.children}]})}render(){super.render(),this._collapsibleAriaLabelUid=this.buttonView.labelView.element.id}_createButtonView(){const t=new Su(this.locale),e=t.bindTemplate;return t.set({withText:!0,icon:Hu}),t.extendTemplate({attributes:{"aria-expanded":e.to("isOn",(t=>String(t)))}}),t.bind("label").to(this),t.bind("isOn").to(this,"isCollapsed",(t=>!t)),t.on("execute",(()=>{this.isCollapsed=!this.isCollapsed})),t}}var LC=n(7133),OC={attributes:{"data-cke":!0}};OC.setAttributes=is(),OC.insert=ns().bind(null,"head"),OC.domAPI=ts(),OC.insertStyleElement=ss();Jr()(LC.Z,OC);LC.Z&&LC.Z.locals&&LC.Z.locals;class RC extends Jd{constructor(t,{enabledProperties:e,styleButtonViews:n,styleGridAriaLabel:o}){super(t);const i=["ck","ck-list-properties"];this.children=this.createCollection(),this.stylesView=null,this.additionalPropertiesCollapsibleView=null,this.startIndexFieldView=null,this.reversedSwitchButtonView=null,this.focusTracker=new za,this.keystrokes=new Pa,this.focusables=new Kd,this.focusCycler=new Ou({focusables:this.focusables,focusTracker:this.focusTracker,keystrokeHandler:this.keystrokes,actions:{focusPrevious:"shift + tab",focusNext:"tab"}}),e.styles?(this.stylesView=this._createStylesView(n,o),this.children.add(this.stylesView)):i.push("ck-list-properties_without-styles"),(e.startIndex||e.reversed)&&(this._addNumberedListPropertyViews(e,n),i.push("ck-list-properties_with-numbered-properties")),this.setTemplate({tag:"div",attributes:{class:i},children:this.children})}render(){if(super.render(),this.stylesView){for(const t of this.stylesView.children)this.focusables.add(t),this.focusTracker.add(t.element);(this.startIndexFieldView||this.reversedSwitchButtonView)&&(this.focusables.add(this.children.last.buttonView),this.focusTracker.add(this.children.last.buttonView.element))}if(this.startIndexFieldView){this.focusables.add(this.startIndexFieldView),this.focusTracker.add(this.startIndexFieldView.element),this.listenTo(this.startIndexFieldView.element,"selectstart",((t,e)=>{e.stopPropagation()}),{priority:"high"});const t=t=>t.stopPropagation();this.keystrokes.set("arrowright",t),this.keystrokes.set("arrowleft",t),this.keystrokes.set("arrowup",t),this.keystrokes.set("arrowdown",t)}this.reversedSwitchButtonView&&(this.focusables.add(this.reversedSwitchButtonView),this.focusTracker.add(this.reversedSwitchButtonView.element)),this.keystrokes.listenTo(this.element)}focus(){this.focusCycler.focusFirst()}focusLast(){this.focusCycler.focusLast()}destroy(){super.destroy(),this.focusTracker.destroy(),this.keystrokes.destroy()}_createStylesView(t,e){const n=new Jd(this.locale);return n.children=n.createCollection(this.locale),n.children.addMany(t),n.setTemplate({tag:"div",attributes:{"aria-label":e,class:["ck","ck-list-styles-list"]},children:n.children}),n.children.delegate("execute").to(this),n}_addNumberedListPropertyViews(t){const e=this.locale.t,n=[];t.startIndex&&(this.startIndexFieldView=this._createStartIndexField(),n.push(this.startIndexFieldView)),t.reversed&&(this.reversedSwitchButtonView=this._createReversedSwitchButton(),n.push(this.reversedSwitchButtonView)),t.styles?(this.additionalPropertiesCollapsibleView=new PC(this.locale,n),this.additionalPropertiesCollapsibleView.set({label:e("List properties"),isCollapsed:!0}),this.additionalPropertiesCollapsibleView.buttonView.bind("isEnabled").toMany(n,"isEnabled",((...t)=>t.some((t=>t)))),this.additionalPropertiesCollapsibleView.buttonView.on("change:isEnabled",((t,e,n)=>{n||(this.additionalPropertiesCollapsibleView.isCollapsed=!0)})),this.children.add(this.additionalPropertiesCollapsibleView)):this.children.addMany(n)}_createStartIndexField(){const t=this.locale.t,e=new Fh(this.locale,Uh);return e.set({label:t("Start at"),class:"ck-numbered-list-properties__start-index"}),e.fieldView.set({min:1,step:1,value:1,inputMode:"numeric"}),e.fieldView.on("input",(()=>{const n=e.fieldView.element,o=n.valueAsNumber;Number.isNaN(o)||(n.checkValidity()?this.fire("listStart",{startIndex:o}):e.errorText=t("Start index must be greater than 0."))})),e}_createReversedSwitchButton(){const t=this.locale.t,e=new Mu(this.locale);return e.set({withText:!0,label:t("Reversed order"),class:"ck-numbered-list-properties__reversed-order"}),e.delegate("execute").to(this,"listReversed"),e}}var jC=n(4553),VC={attributes:{"data-cke":!0}};VC.setAttributes=is(),VC.insert=ns().bind(null,"head"),VC.domAPI=ts(),VC.insertStyleElement=ss();Jr()(jC.Z,VC);jC.Z&&jC.Z.locals&&jC.Z.locals;class FC extends V{static get pluginName(){return"ListPropertiesUI"}init(){const t=this.editor,e=t.locale.t,n=t.config.get("list.properties");n.styles&&t.ui.componentFactory.add("bulletedList",HC({editor:t,parentCommandName:"bulletedList",buttonLabel:e("Bulleted List"),buttonIcon:CC,styleGridAriaLabel:e("Bulleted list styles toolbar"),styleDefinitions:[{label:e("Toggle the disc list style"),tooltip:e("Disc"),type:"disc",icon:''},{label:e("Toggle the circle list style"),tooltip:e("Circle"),type:"circle",icon:''},{label:e("Toggle the square list style"),tooltip:e("Square"),type:"square",icon:''}]})),(n.styles||n.startIndex||n.reversed)&&t.ui.componentFactory.add("numberedList",HC({editor:t,parentCommandName:"numberedList",buttonLabel:e("Numbered List"),buttonIcon:AC,styleGridAriaLabel:e("Numbered list styles toolbar"),styleDefinitions:[{label:e("Toggle the decimal list style"),tooltip:e("Decimal"),type:"decimal",icon:''},{label:e("Toggle the decimal with leading zero list style"),tooltip:e("Decimal with leading zero"),type:"decimal-leading-zero",icon:''},{label:e("Toggle the lower–roman list style"),tooltip:e("Lower–roman"),type:"lower-roman",icon:''},{label:e("Toggle the upper–roman list style"),tooltip:e("Upper-roman"),type:"upper-roman",icon:''},{label:e("Toggle the lower–latin list style"),tooltip:e("Lower-latin"),type:"lower-latin",icon:''},{label:e("Toggle the upper–latin list style"),tooltip:e("Upper-latin"),type:"upper-latin",icon:''}]}))}}function HC({editor:t,parentCommandName:e,buttonLabel:n,buttonIcon:o,styleGridAriaLabel:i,styleDefinitions:r}){const s=t.commands.get(e);return a=>{const l=kh(a,Wu),c=l.buttonView;l.bind("isEnabled").to(s),l.class="ck-list-styles-dropdown",c.on("execute",(()=>{t.execute(e),t.editing.view.focus()})),c.set({label:n,icon:o,tooltip:!0,isToggleable:!0}),c.bind("isOn").to(s,"value",(t=>!!t));const d=function({editor:t,dropdownView:e,parentCommandName:n,styleDefinitions:o,styleGridAriaLabel:i}){const r=t.locale,s=t.config.get("list.properties");let a;"numberedList"!=n&&(s.startIndex=!1,s.reversed=!1);if(s.styles){const e=t.commands.get("listStyle"),i=function({editor:t,listStyleCommand:e,parentCommandName:n}){const o=t.locale,i=t.commands.get(n);return({label:n,type:r,icon:s,tooltip:a})=>{const l=new Su(o);return l.set({label:n,icon:s,tooltip:a}),e.on("change:value",(()=>{l.isOn=e.value===r})),l.on("execute",(()=>{i.value?e.value!==r?t.execute("listStyle",{type:r}):t.execute("listStyle",{type:e._defaultType}):t.model.change((()=>{t.execute("listStyle",{type:r})}))})),l}}({editor:t,parentCommandName:n,listStyleCommand:e}),r="function"==typeof e.isStyleTypeSupported?t=>e.isStyleTypeSupported(t.type):()=>!0;a=o.filter(r).map(i)}const l=new RC(r,{styleGridAriaLabel:i,enabledProperties:s,styleButtonViews:a});if(s.startIndex){const e=t.commands.get("listStart");l.startIndexFieldView.bind("isEnabled").to(e),l.startIndexFieldView.fieldView.bind("value").to(e),l.on("listStart",((e,n)=>t.execute("listStart",n)))}if(s.reversed){const e=t.commands.get("listReversed");l.reversedSwitchButtonView.bind("isEnabled").to(e),l.reversedSwitchButtonView.bind("isOn").to(e,"value"),l.on("listReversed",(()=>{const n=e.value;t.execute("listReversed",{reversed:!n})}))}return l.delegate("execute").to(e),l}({editor:t,dropdownView:l,parentCommandName:e,styleGridAriaLabel:i,styleDefinitions:r});return l.panelView.children.add(d),Ch(l,(()=>d.stylesView.children.find((t=>t.isOn)))),l.on("execute",(()=>{t.editing.view.focus()})),l}}function UC(t,e){return t=>{t.on("attribute:url:media",n)};function n(n,o,i){if(!i.consumable.consume(o.item,n.name))return;const r=o.attributeNewValue,s=i.writer,a=i.mapper.toViewElement(o.item),l=[...a.getChildren()].find((t=>t.getCustomProperty("media-content")));s.remove(l);const c=t.getMediaViewElement(s,r,e);s.insert(s.createPositionAt(a,0),c)}}function qC(t,e,n,o){return t.createContainerElement("figure",{class:"media"},[e.getMediaViewElement(t,n,o),t.createSlot()])}function GC(t){const e=t.getSelectedElement();return e&&e.is("element","media")?e:null}function WC(t,e,n,o){t.change((i=>{const r=i.createElement("media",{url:e});t.insertObject(r,n,null,{setSelection:"on",findOptimalPosition:o})}))}class ZC extends H{refresh(){const t=this.editor.model,e=t.document.selection,n=GC(e);this.value=n?n.getAttribute("url"):null,this.isEnabled=function(t){const e=t.getSelectedElement();return!!e&&"media"===e.name}(e)||function(t,e){let n=af(t,e).start.parent;n.isEmpty&&!e.schema.isLimit(n)&&(n=n.parent);return e.schema.checkChild(n,"media")}(e,t)}execute(t){const e=this.editor.model,n=e.document.selection,o=GC(n);o?e.change((e=>{e.setAttribute("url",t,o)})):WC(e,t,n,!0)}}class YC{constructor(t,e){const n=e.providers,o=e.extraProviders||[],i=new Set(e.removeProviders),r=n.concat(o).filter((t=>{const e=t.name;return e?!i.has(e):(c("media-embed-no-provider-name",{provider:t}),!1)}));this.locale=t,this.providerDefinitions=r}hasMedia(t){return!!this._getMedia(t)}getMediaViewElement(t,e,n){return this._getMedia(e).getViewElement(t,n)}_getMedia(t){if(!t)return new KC(this.locale);t=t.trim();for(const e of this.providerDefinitions){const n=e.html,o=wo(e.url);for(const e of o){const o=this._getUrlMatches(t,e);if(o)return new KC(this.locale,t,o,n)}}return null}_getUrlMatches(t,e){let n=t.match(e);if(n)return n;let o=t.replace(/^https?:\/\//,"");return n=o.match(e),n||(o=o.replace(/^www\./,""),n=o.match(e),n||null)}}class KC{constructor(t,e,n,o){this.url=this._getValidUrl(e),this._t=t.t,this._match=n,this._previewRenderer=o}getViewElement(t,e){const n={};let o;if(e.renderForEditingView||e.renderMediaPreview&&this.url&&this._previewRenderer){this.url&&(n["data-oembed-url"]=this.url),e.renderForEditingView&&(n.class="ck-media__wrapper");const i=this._getPreviewHtml(e);o=t.createRawElement("div",n,((t,e)=>{e.setContentOf(t,i)}))}else this.url&&(n.url=this.url),o=t.createEmptyElement(e.elementName,n);return t.setCustomProperty("media-content",!0,o),o}_getPreviewHtml(t){return this._previewRenderer?this._previewRenderer(this._match):this.url&&t.renderForEditingView?this._getPlaceholderHtml():""}_getPlaceholderHtml(){const t=new xu,e=new _u;t.text=this._t("Open media in new tab"),e.content='',e.viewBox="0 0 64 42";return new Xd({tag:"div",attributes:{class:"ck ck-reset_all ck-media__placeholder"},children:[{tag:"div",attributes:{class:"ck-media__placeholder__icon"},children:[e]},{tag:"a",attributes:{class:"ck-media__placeholder__url",target:"_blank",rel:"noopener noreferrer",href:this.url},children:[{tag:"span",attributes:{class:"ck-media__placeholder__url__text"},children:[this.url]},t]}]}).render().outerHTML}_getValidUrl(t){return t?t.match(/^https?/)?t:"https://"+t:null}}var $C=n(952),QC={attributes:{"data-cke":!0}};QC.setAttributes=is(),QC.insert=ns().bind(null,"head"),QC.domAPI=ts(),QC.insertStyleElement=ss();Jr()($C.Z,QC);$C.Z&&$C.Z.locals&&$C.Z.locals;class JC extends V{static get pluginName(){return"MediaEmbedEditing"}constructor(t){super(t),t.config.define("mediaEmbed",{elementName:"oembed",providers:[{name:"dailymotion",url:/^dailymotion\.com\/video\/(\w+)/,html:t=>`
                                                                                                                                                                                                                                                                                                                                            `},{name:"spotify",url:[/^open\.spotify\.com\/(artist\/\w+)/,/^open\.spotify\.com\/(album\/\w+)/,/^open\.spotify\.com\/(track\/\w+)/],html:t=>`
                                                                                                                                                                                                                                                                                                                                            `},{name:"youtube",url:[/^(?:m\.)?youtube\.com\/watch\?v=([\w-]+)(?:&t=(\d+))?/,/^(?:m\.)?youtube\.com\/v\/([\w-]+)(?:\?t=(\d+))?/,/^youtube\.com\/embed\/([\w-]+)(?:\?start=(\d+))?/,/^youtu\.be\/([\w-]+)(?:\?t=(\d+))?/],html:t=>{const e=t[1],n=t[2];return`
                                                                                                                                                                                                                                                                                                                                            `}},{name:"vimeo",url:[/^vimeo\.com\/(\d+)/,/^vimeo\.com\/[^/]+\/[^/]+\/video\/(\d+)/,/^vimeo\.com\/album\/[^/]+\/video\/(\d+)/,/^vimeo\.com\/channels\/[^/]+\/(\d+)/,/^vimeo\.com\/groups\/[^/]+\/videos\/(\d+)/,/^vimeo\.com\/ondemand\/[^/]+\/(\d+)/,/^player\.vimeo\.com\/video\/(\d+)/],html:t=>`
                                                                                                                                                                                                                                                                                                                                            `},{name:"instagram",url:/^instagram\.com\/p\/(\w+)/},{name:"twitter",url:/^twitter\.com/},{name:"googleMaps",url:[/^google\.com\/maps/,/^goo\.gl\/maps/,/^maps\.google\.com/,/^maps\.app\.goo\.gl/]},{name:"flickr",url:/^flickr\.com/},{name:"facebook",url:/^facebook\.com/}]}),this.registry=new YC(t.locale,t.config.get("mediaEmbed"))}init(){const t=this.editor,e=t.model.schema,n=t.t,o=t.conversion,i=t.config.get("mediaEmbed.previewsInData"),r=t.config.get("mediaEmbed.elementName"),s=this.registry;t.commands.add("mediaEmbed",new ZC(t)),e.register("media",{inheritAllFrom:"$blockObject",allowAttributes:["url"]}),o.for("dataDowncast").elementToStructure({model:"media",view:(t,{writer:e})=>{const n=t.getAttribute("url");return qC(e,s,n,{elementName:r,renderMediaPreview:n&&i})}}),o.for("dataDowncast").add(UC(s,{elementName:r,renderMediaPreview:i})),o.for("editingDowncast").elementToStructure({model:"media",view:(t,{writer:e})=>{const o=t.getAttribute("url");return function(t,e,n){return e.setCustomProperty("media",!0,t),tf(t,e,{label:n})}(qC(e,s,o,{elementName:r,renderForEditingView:!0}),e,n("media widget"))}}),o.for("editingDowncast").add(UC(s,{elementName:r,renderForEditingView:!0})),o.for("upcast").elementToElement({view:t=>["oembed",r].includes(t.name)&&t.getAttribute("url")?{name:!0}:null,model:(t,{writer:e})=>{const n=t.getAttribute("url");if(s.hasMedia(n))return e.createElement("media",{url:n})}}).elementToElement({view:{name:"div",attributes:{"data-oembed-url":!0}},model:(t,{writer:e})=>{const n=t.getAttribute("data-oembed-url");if(s.hasMedia(n))return e.createElement("media",{url:n})}}).add((t=>{t.on("element:figure",(function(t,e,n){if(!n.consumable.consume(e.viewItem,{name:!0,classes:"media"}))return;const{modelRange:o,modelCursor:i}=n.convertChildren(e.viewItem,e.modelCursor);e.modelRange=o,e.modelCursor=i;Ba(o.getItems())||n.consumable.revert(e.viewItem,{name:!0,classes:"media"})}))}))}}const XC=/^(?:http(s)?:\/\/)?[\w-]+\.[\w-.~:/?#[\]@!$&'()*+,;=%]+$/;class t_ extends V{static get requires(){return[zf,Kg,$f]}static get pluginName(){return"AutoMediaEmbed"}constructor(t){super(t),this._timeoutId=null,this._positionToInsert=null}init(){const t=this.editor,e=t.model.document;this.listenTo(t.plugins.get("ClipboardPipeline"),"inputTransformation",(()=>{const t=e.selection.getFirstRange(),n=dd.fromPosition(t.start);n.stickiness="toPrevious";const o=dd.fromPosition(t.end);o.stickiness="toNext",e.once("change:data",(()=>{this._embedMediaBetweenPositions(n,o),n.detach(),o.detach()}),{priority:"high"})})),t.commands.get("undo").on("execute",(()=>{this._timeoutId&&(ms.window.clearTimeout(this._timeoutId),this._positionToInsert.detach(),this._timeoutId=null,this._positionToInsert=null)}),{priority:"high"})}_embedMediaBetweenPositions(t,e){const n=this.editor,o=n.plugins.get(JC).registry,i=new bl(t,e),r=i.getWalker({ignoreElementEnd:!0});let s="";for(const t of r)t.item.is("$textProxy")&&(s+=t.item.data);if(s=s.trim(),!s.match(XC))return void i.detach();if(!o.hasMedia(s))return void i.detach();n.commands.get("mediaEmbed").isEnabled?(this._positionToInsert=dd.fromPosition(t),this._timeoutId=ms.window.setTimeout((()=>{n.model.change((t=>{let e;this._timeoutId=null,t.remove(i),i.detach(),"$graveyard"!==this._positionToInsert.root.rootName&&(e=this._positionToInsert),WC(n.model,s,e,!1),this._positionToInsert.detach(),this._positionToInsert=null})),n.plugins.get("Delete").requestUndoOnBackspace()}),100)):i.detach()}}var e_=n(3525),n_={attributes:{"data-cke":!0}};n_.setAttributes=is(),n_.insert=ns().bind(null,"head"),n_.domAPI=ts(),n_.insertStyleElement=ss();Jr()(e_.Z,n_);e_.Z&&e_.Z.locals&&e_.Z.locals;class o_ extends Jd{constructor(t,e){super(e);const n=e.t;this.focusTracker=new za,this.keystrokes=new Pa,this.set("mediaURLInputValue",""),this.urlInputView=this._createUrlInput(),this.saveButtonView=this._createButton(n("Save"),Gd.check,"ck-button-save"),this.saveButtonView.type="submit",this.saveButtonView.bind("isEnabled").to(this,"mediaURLInputValue",(t=>!!t)),this.cancelButtonView=this._createButton(n("Cancel"),Gd.cancel,"ck-button-cancel","cancel"),this._focusables=new Kd,this._focusCycler=new Ou({focusables:this._focusables,focusTracker:this.focusTracker,keystrokeHandler:this.keystrokes,actions:{focusPrevious:"shift + tab",focusNext:"tab"}}),this._validators=t,this.setTemplate({tag:"form",attributes:{class:["ck","ck-media-form","ck-responsive-form"],tabindex:"-1"},children:[this.urlInputView,this.saveButtonView,this.cancelButtonView]}),Zd(this)}render(){super.render(),Yd({view:this});[this.urlInputView,this.saveButtonView,this.cancelButtonView].forEach((t=>{this._focusables.add(t),this.focusTracker.add(t.element)})),this.keystrokes.listenTo(this.element);const t=t=>t.stopPropagation();this.keystrokes.set("arrowright",t),this.keystrokes.set("arrowleft",t),this.keystrokes.set("arrowup",t),this.keystrokes.set("arrowdown",t),this.listenTo(this.urlInputView.element,"selectstart",((t,e)=>{e.stopPropagation()}),{priority:"high"})}destroy(){super.destroy(),this.focusTracker.destroy(),this.keystrokes.destroy()}focus(){this._focusCycler.focusFirst()}get url(){return this.urlInputView.fieldView.element.value.trim()}set url(t){this.urlInputView.fieldView.element.value=t.trim()}isValid(){this.resetFormStatus();for(const t of this._validators){const e=t(this);if(e)return this.urlInputView.errorText=e,!1}return!0}resetFormStatus(){this.urlInputView.errorText=null,this.urlInputView.infoText=this._urlInputViewInfoDefault}_createUrlInput(){const t=this.locale.t,e=new Fh(this.locale,Hh),n=e.fieldView;return this._urlInputViewInfoDefault=t("Paste the media URL in the input."),this._urlInputViewInfoTip=t("Tip: Paste the URL into the content to embed faster."),e.label=t("Media URL"),e.infoText=this._urlInputViewInfoDefault,n.on("input",(()=>{e.infoText=n.element.value?this._urlInputViewInfoTip:this._urlInputViewInfoDefault,this.mediaURLInputValue=n.element.value.trim()})),e}_createButton(t,e,n,o){const i=new Su(this.locale);return i.set({label:t,icon:e,tooltip:!0}),i.extendTemplate({attributes:{class:n}}),o&&i.delegate("execute").to(this,o),i}}class i_ extends V{static get requires(){return[JC]}static get pluginName(){return"MediaEmbedUI"}init(){const t=this.editor,e=t.commands.get("mediaEmbed"),n=t.plugins.get(JC).registry;t.ui.componentFactory.add("mediaEmbed",(o=>{const i=kh(o),r=new o_(function(t,e){return[e=>{if(!e.url.length)return t("The URL must not be empty.")},n=>{if(!e.hasMedia(n.url))return t("This media URL is not supported.")}]}(t.t,n),t.locale);return this._setUpDropdown(i,r,e,t),this._setUpForm(i,r,e),i}))}_setUpDropdown(t,e,n){const o=this.editor,i=o.t,r=t.buttonView;function s(){o.editing.view.focus(),t.isOpen=!1}t.bind("isEnabled").to(n),t.panelView.children.add(e),r.set({label:i("Insert media"),icon:'',tooltip:!0}),r.on("open",(()=>{e.disableCssTransitions(),e.url=n.value||"",e.urlInputView.fieldView.select(),e.enableCssTransitions()}),{priority:"low"}),t.on("submit",(()=>{e.isValid()&&(o.execute("mediaEmbed",e.url),s())})),t.on("change:isOpen",(()=>e.resetFormStatus())),t.on("cancel",(()=>s()))}_setUpForm(t,e,n){e.delegate("submit","cancel").to(t),e.urlInputView.bind("value").to(n,"value"),e.urlInputView.bind("isReadOnly").to(n,"isEnabled",(t=>!t))}}var r_=n(5777),s_={attributes:{"data-cke":!0}};s_.setAttributes=is(),s_.insert=ns().bind(null,"head"),s_.domAPI=ts(),s_.insertStyleElement=ss();Jr()(r_.Z,s_);r_.Z&&r_.Z.locals&&r_.Z.locals;function a_(t,e){if(!t.childCount)return;const n=new Pm(t.document),o=function(t,e){const n=e.createRangeIn(t),o=new Bo({name:/^p|h\d+$/,styles:{"mso-list":/.*/}}),i=[];for(const t of n)if("elementStart"===t.type&&o.match(t.item)){const e=d_(t.item);i.push({element:t.item,id:e.id,order:e.order,indent:e.indent})}return i}(t,n);if(!o.length)return;let i=null,r=1;o.forEach(((t,s)=>{const a=function(t,e){if(!t)return!0;if(t.id!==e.id)return e.indent-t.indent!=1;const n=e.element.previousSibling;if(!n)return!0;return o=n,!(o.is("element","ol")||o.is("element","ul"));var o}(o[s-1],t),l=a?null:o[s-1],c=(u=t,(d=l)?u.indent-d.indent:u.indent-1);var d,u;if(a&&(i=null,r=1),!i||0!==c){const o=function(t,e){const n=new RegExp(`@list l${t.id}:level${t.indent}\\s*({[^}]*)`,"gi"),o=/mso-level-number-format:([^;]{0,100});/gi,i=/mso-level-start-at:\s{0,100}([0-9]{0,10})\s{0,100};/gi,r=n.exec(e);let s="decimal",a="ol",l=null;if(r&&r[1]){const e=o.exec(r[1]);if(e&&e[1]&&(s=e[1].trim(),a="bullet"!==s&&"image"!==s?"ol":"ul"),"bullet"===s){const e=function(t){const e=function(t){if(t.getChild(0).is("$text"))return null;for(const e of t.getChildren()){if(!e.is("element","span"))continue;const t=e.getChild(0);return t.is("$text")?t:t.getChild(0)}}(t);if(!e)return null;const n=e._data;if("o"===n)return"circle";if("·"===n)return"disc";if("§"===n)return"square";return null}(t.element);e&&(s=e)}else{const t=i.exec(r[1]);t&&t[1]&&(l=parseInt(t[1]))}}return{type:a,startIndex:l,style:l_(s)}}(t,e);if(i){if(t.indent>r){const t=i.getChild(i.childCount-1),e=t.getChild(t.childCount-1);i=c_(o,e,n),r+=1}else if(t.indent1&&n.setAttribute("start",t.startIndex,i),i}function d_(t){const e={},n=t.getStyle("mso-list");if(n){const t=n.match(/(^|\s{1,100})l(\d+)/i),o=n.match(/\s{0,100}lfo(\d+)/i),i=n.match(/\s{0,100}level(\d+)/i);t&&o&&i&&(e.id=t[2],e.order=o[1],e.indent=i[1])}return e}const u_=/id=("|')docs-internal-guid-[-0-9a-f]+("|')/i;class h_{constructor(t){this.document=t}isActive(t){return u_.test(t)}execute(t){const e=new Pm(this.document),{body:n}=t._parsedData;!function(t,e){for(const n of t.getChildren())if(n.is("element","b")&&"normal"===n.getStyle("font-weight")){const o=t.getChildIndex(n);e.remove(n),e.insertChild(o,n.getChildren(),t)}}(n,e),function(t,e){for(const n of e.createRangeIn(t)){const t=n.item;if(t.is("element","li")){const n=t.getChild(0);n&&n.is("element","p")&&e.unwrapElement(n)}}}(n,e),t.content=n}}function m_(t,e){if(!t.childCount)return;const n=new Pm,o=function(t,e){const n=e.createRangeIn(t),o=new Bo({name:/v:(.+)/}),i=[];for(const t of n){if("elementStart"!=t.type)continue;const e=t.item,n=e.previousSibling&&e.previousSibling.name||null;o.match(e)&&e.getAttribute("o:gfxdata")&&"v:shapetype"!==n&&i.push(t.item.getAttribute("id"))}return i}(t,n);!function(t,e,n){const o=n.createRangeIn(e),i=new Bo({name:"img"}),r=[];for(const e of o)if(i.match(e.item)){const n=e.item,o=n.getAttribute("v:shapes")?n.getAttribute("v:shapes").split(" "):[];o.length&&o.every((e=>t.indexOf(e)>-1))?r.push(n):n.getAttribute("src")||r.push(n)}for(const t of r)n.remove(t)}(o,t,n),function(t,e){const n=e.createRangeIn(t),o=new Bo({name:/v:(.+)/}),i=[];for(const t of n)"elementStart"==t.type&&o.match(t.item)&&i.push(t.item);for(const t of i)e.remove(t)}(t,n);const i=function(t,e){const n=e.createRangeIn(t),o=new Bo({name:"img"}),i=[];for(const t of n)o.match(t.item)&&t.item.getAttribute("src").startsWith("file://")&&i.push(t.item);return i}(t,n);i.length&&function(t,e,n){if(t.length===e.length)for(let o=0;oString.fromCharCode(parseInt(t,16)))).join(""))}const p_=//i,f_=/xmlns:o="urn:schemas-microsoft-com/i;class b_{constructor(t){this.document=t}isActive(t){return p_.test(t)||f_.test(t)}execute(t){const{body:e,stylesString:n}=t._parsedData;a_(e,n),m_(e,t.dataTransfer.getData("text/rtf")),t.content=e}}function k_(t){return t.replace(/(\s+)<\/span>/g,((t,e)=>1===e.length?" ":Array(e.length+1).join("  ").substr(0,e.length)))}function w_(t,e){const n=new DOMParser,o=function(t){return k_(k_(t)).replace(/([^\S\r\n]*?)[\r\n]+([^\S\r\n]*<\/span>)/g,"$1$2").replace(/<\/span>/g,"").replace(/ <\//g," <\/o:p>/g," ").replace(/( |\u00A0)<\/o:p>/g,"").replace(/>([^\S\r\n]*[\r\n]\s*)<")}(function(t){const e="",n="",o=t.indexOf(e);if(o<0)return t;const i=t.indexOf(n,o+e.length);return t.substring(0,o+e.length)+(i>=0?t.substring(i):"")}(t=t.replace(/

                                                                                                                                                                                                                                                                                                                                            abc

                                                                                                                                                                                                                                                                                                                                            + // + if (isAttribute && this._wrapAttributeElement(wrapElement, child)) { + wrapPositions.push(new Position(parent, i)); + } + // + // Wrap the child if it is not an attribute element or if it is an attribute element that should be inside + // `wrapElement` (due to priority). + // + //

                                                                                                                                                                                                                                                                                                                                            abc

                                                                                                                                                                                                                                                                                                                                            -->

                                                                                                                                                                                                                                                                                                                                            abc

                                                                                                                                                                                                                                                                                                                                            + //

                                                                                                                                                                                                                                                                                                                                            abc

                                                                                                                                                                                                                                                                                                                                            -->

                                                                                                                                                                                                                                                                                                                                            abc

                                                                                                                                                                                                                                                                                                                                            + else if (isText || !isAttribute || shouldABeOutsideB(wrapElement, child)) { + // Clone attribute. + const newAttribute = wrapElement._clone(); + // Wrap current node with new attribute. + child._remove(); + newAttribute._appendChild(child); + parent._insertChild(i, newAttribute); + this._addToClonedElementsGroup(newAttribute); + wrapPositions.push(new Position(parent, i)); + } + // + // If other nested attribute is found and it wasn't wrapped (see above), continue wrapping inside it. + // + //

                                                                                                                                                                                                                                                                                                                                            abc

                                                                                                                                                                                                                                                                                                                                            -->

                                                                                                                                                                                                                                                                                                                                            abc

                                                                                                                                                                                                                                                                                                                                            + // + else /* if ( isAttribute ) */ { + this._wrapChildren(child, 0, child.childCount, wrapElement); + } + i++; + } + // Merge at each wrap. + let offsetChange = 0; + for (const position of wrapPositions) { + position.offset -= offsetChange; + // Do not merge with elements outside selected children. + if (position.offset == startOffset) { + continue; + } + const newPosition = this.mergeAttributes(position); + // If nodes were merged - other merge offsets will change. + if (!newPosition.isEqual(position)) { + offsetChange++; + endOffset--; + } + } + return Range._createFromParentsAndOffsets(parent, startOffset, parent, endOffset); + } + /** + * Unwraps children from provided `unwrapElement`. Only children contained in `parent` element between + * `startOffset` and `endOffset` will be unwrapped. + */ + _unwrapChildren(parent, startOffset, endOffset, unwrapElement) { + let i = startOffset; + const unwrapPositions = []; + // Iterate over each element between provided offsets inside parent. + // We don't use tree walker or range iterator because we will be removing and merging potentially multiple nodes, + // so it could get messy. It is safer to it manually in this case. + while (i < endOffset) { + const child = parent.getChild(i); + // Skip all text nodes. There should be no container element's here either. + if (!child.is('attributeElement')) { + i++; + continue; + } + // + // (In all examples, assume that `unwrapElement` is `` element.) + // + // If the child is similar to the given attribute element, unwrap it - it will be completely removed. + // + //

                                                                                                                                                                                                                                                                                                                                            abcxyz

                                                                                                                                                                                                                                                                                                                                            -->

                                                                                                                                                                                                                                                                                                                                            abcxyz

                                                                                                                                                                                                                                                                                                                                            + // + if (child.isSimilar(unwrapElement)) { + const unwrapped = child.getChildren(); + const count = child.childCount; + // Replace wrapper element with its children + child._remove(); + parent._insertChild(i, unwrapped); + this._removeFromClonedElementsGroup(child); + // Save start and end position of moved items. + unwrapPositions.push(new Position(parent, i), new Position(parent, i + count)); + // Skip elements that were unwrapped. Assuming there won't be another element to unwrap in child elements. + i += count; + endOffset += count - 1; + continue; + } + // + // If the child is not similar but is an attribute element, try partial unwrapping - remove the same attributes/styles/classes. + // Partial unwrapping will happen only if the elements have the same name. + // + //

                                                                                                                                                                                                                                                                                                                                            abcxyz

                                                                                                                                                                                                                                                                                                                                            -->

                                                                                                                                                                                                                                                                                                                                            abcxyz

                                                                                                                                                                                                                                                                                                                                            + //

                                                                                                                                                                                                                                                                                                                                            abcxyz

                                                                                                                                                                                                                                                                                                                                            -->

                                                                                                                                                                                                                                                                                                                                            abcxyz

                                                                                                                                                                                                                                                                                                                                            + // + if (this._unwrapAttributeElement(unwrapElement, child)) { + unwrapPositions.push(new Position(parent, i), new Position(parent, i + 1)); + i++; + continue; + } + // + // If other nested attribute is found, look through it's children for elements to unwrap. + // + //

                                                                                                                                                                                                                                                                                                                                            abc

                                                                                                                                                                                                                                                                                                                                            -->

                                                                                                                                                                                                                                                                                                                                            abc

                                                                                                                                                                                                                                                                                                                                            + // + this._unwrapChildren(child, 0, child.childCount, unwrapElement); + i++; + } + // Merge at each unwrap. + let offsetChange = 0; + for (const position of unwrapPositions) { + position.offset -= offsetChange; + // Do not merge with elements outside selected children. + if (position.offset == startOffset || position.offset == endOffset) { + continue; + } + const newPosition = this.mergeAttributes(position); + // If nodes were merged - other merge offsets will change. + if (!newPosition.isEqual(position)) { + offsetChange++; + endOffset--; + } + } + return Range._createFromParentsAndOffsets(parent, startOffset, parent, endOffset); + } + /** + * Helper function for `view.writer.wrap`. Wraps range with provided attribute element. + * This method will also merge newly added attribute element with its siblings whenever possible. + * + * Throws {@link module:utils/ckeditorerror~CKEditorError} `view-writer-wrap-invalid-attribute` when passed attribute element is not + * an instance of {@link module:engine/view/attributeelement~AttributeElement AttributeElement}. + * + * @returns New range after wrapping, spanning over wrapping attribute element. + */ + _wrapRange(range, attribute) { + // Break attributes at range start and end. + const { start: breakStart, end: breakEnd } = this._breakAttributesRange(range, true); + const parentContainer = breakStart.parent; + // Wrap all children with attribute. + const newRange = this._wrapChildren(parentContainer, breakStart.offset, breakEnd.offset, attribute); + // Merge attributes at the both ends and return a new range. + const start = this.mergeAttributes(newRange.start); + // If start position was merged - move end position back. + if (!start.isEqual(newRange.start)) { + newRange.end.offset--; + } + const end = this.mergeAttributes(newRange.end); + return new Range(start, end); + } + /** + * Helper function for {@link #wrap}. Wraps position with provided attribute element. + * This method will also merge newly added attribute element with its siblings whenever possible. + * + * Throws {@link module:utils/ckeditorerror~CKEditorError} `view-writer-wrap-invalid-attribute` when passed attribute element is not + * an instance of {@link module:engine/view/attributeelement~AttributeElement AttributeElement}. + * + * @returns New position after wrapping. + */ + _wrapPosition(position, attribute) { + // Return same position when trying to wrap with attribute similar to position parent. + if (attribute.isSimilar(position.parent)) { + return movePositionToTextNode(position.clone()); + } + // When position is inside text node - break it and place new position between two text nodes. + if (position.parent.is('$text')) { + position = breakTextNode(position); + } + // Create fake element that will represent position, and will not be merged with other attributes. + const fakeElement = this.createAttributeElement('_wrapPosition-fake-element'); + fakeElement._priority = Number.POSITIVE_INFINITY; + fakeElement.isSimilar = () => false; + // Insert fake element in position location. + position.parent._insertChild(position.offset, fakeElement); + // Range around inserted fake attribute element. + const wrapRange = new Range(position, position.getShiftedBy(1)); + // Wrap fake element with attribute (it will also merge if possible). + this.wrap(wrapRange, attribute); + // Remove fake element and place new position there. + const newPosition = new Position(fakeElement.parent, fakeElement.index); + fakeElement._remove(); + // If position is placed between text nodes - merge them and return position inside. + const nodeBefore = newPosition.nodeBefore; + const nodeAfter = newPosition.nodeAfter; + if (nodeBefore instanceof text_Text && nodeAfter instanceof text_Text) { + return mergeTextNodes(nodeBefore, nodeAfter); + } + // If position is next to text node - move position inside. + return movePositionToTextNode(newPosition); + } + /** + * Wraps one {@link module:engine/view/attributeelement~AttributeElement AttributeElement} into another by + * merging them if possible. When merging is possible - all attributes, styles and classes are moved from wrapper + * element to element being wrapped. + * + * @param wrapper Wrapper AttributeElement. + * @param toWrap AttributeElement to wrap using wrapper element. + * @returns Returns `true` if elements are merged. + */ + _wrapAttributeElement(wrapper, toWrap) { + if (!canBeJoined(wrapper, toWrap)) { + return false; + } + // Can't merge if name or priority differs. + if (wrapper.name !== toWrap.name || wrapper.priority !== toWrap.priority) { + return false; + } + // Check if attributes can be merged. + for (const key of wrapper.getAttributeKeys()) { + // Classes and styles should be checked separately. + if (key === 'class' || key === 'style') { + continue; + } + // If some attributes are different we cannot wrap. + if (toWrap.hasAttribute(key) && toWrap.getAttribute(key) !== wrapper.getAttribute(key)) { + return false; + } + } + // Check if styles can be merged. + for (const key of wrapper.getStyleNames()) { + if (toWrap.hasStyle(key) && toWrap.getStyle(key) !== wrapper.getStyle(key)) { + return false; + } + } + // Move all attributes/classes/styles from wrapper to wrapped AttributeElement. + for (const key of wrapper.getAttributeKeys()) { + // Classes and styles should be checked separately. + if (key === 'class' || key === 'style') { + continue; + } + // Move only these attributes that are not present - other are similar. + if (!toWrap.hasAttribute(key)) { + this.setAttribute(key, wrapper.getAttribute(key), toWrap); + } + } + for (const key of wrapper.getStyleNames()) { + if (!toWrap.hasStyle(key)) { + this.setStyle(key, wrapper.getStyle(key), toWrap); + } + } + for (const key of wrapper.getClassNames()) { + if (!toWrap.hasClass(key)) { + this.addClass(key, toWrap); + } + } + return true; + } + /** + * Unwraps {@link module:engine/view/attributeelement~AttributeElement AttributeElement} from another by removing + * corresponding attributes, classes and styles. All attributes, classes and styles from wrapper should be present + * inside element being unwrapped. + * + * @param wrapper Wrapper AttributeElement. + * @param toUnwrap AttributeElement to unwrap using wrapper element. + * @returns Returns `true` if elements are unwrapped. + **/ + _unwrapAttributeElement(wrapper, toUnwrap) { + if (!canBeJoined(wrapper, toUnwrap)) { + return false; + } + // Can't unwrap if name or priority differs. + if (wrapper.name !== toUnwrap.name || wrapper.priority !== toUnwrap.priority) { + return false; + } + // Check if AttributeElement has all wrapper attributes. + for (const key of wrapper.getAttributeKeys()) { + // Classes and styles should be checked separately. + if (key === 'class' || key === 'style') { + continue; + } + // If some attributes are missing or different we cannot unwrap. + if (!toUnwrap.hasAttribute(key) || toUnwrap.getAttribute(key) !== wrapper.getAttribute(key)) { + return false; + } + } + // Check if AttributeElement has all wrapper classes. + if (!toUnwrap.hasClass(...wrapper.getClassNames())) { + return false; + } + // Check if AttributeElement has all wrapper styles. + for (const key of wrapper.getStyleNames()) { + // If some styles are missing or different we cannot unwrap. + if (!toUnwrap.hasStyle(key) || toUnwrap.getStyle(key) !== wrapper.getStyle(key)) { + return false; + } + } + // Remove all wrapper's attributes from unwrapped element. + for (const key of wrapper.getAttributeKeys()) { + // Classes and styles should be checked separately. + if (key === 'class' || key === 'style') { + continue; + } + this.removeAttribute(key, toUnwrap); + } + // Remove all wrapper's classes from unwrapped element. + this.removeClass(Array.from(wrapper.getClassNames()), toUnwrap); + // Remove all wrapper's styles from unwrapped element. + this.removeStyle(Array.from(wrapper.getStyleNames()), toUnwrap); + return true; + } + /** + * Helper function used by other `DowncastWriter` methods. Breaks attribute elements at the boundaries of given range. + * + * @param range Range which `start` and `end` positions will be used to break attributes. + * @param forceSplitText If set to `true`, will break text nodes even if they are directly in container element. + * This behavior will result in incorrect view state, but is needed by other view writing methods which then fixes view state. + * @returns New range with located at break positions. + */ + _breakAttributesRange(range, forceSplitText = false) { + const rangeStart = range.start; + const rangeEnd = range.end; + validateRangeContainer(range, this.document); + // Break at the collapsed position. Return new collapsed range. + if (range.isCollapsed) { + const position = this._breakAttributes(range.start, forceSplitText); + return new Range(position, position); + } + const breakEnd = this._breakAttributes(rangeEnd, forceSplitText); + const count = breakEnd.parent.childCount; + const breakStart = this._breakAttributes(rangeStart, forceSplitText); + // Calculate new break end offset. + breakEnd.offset += breakEnd.parent.childCount - count; + return new Range(breakStart, breakEnd); + } + /** + * Helper function used by other `DowncastWriter` methods. Breaks attribute elements at given position. + * + * Throws {@link module:utils/ckeditorerror~CKEditorError CKEditorError} `view-writer-cannot-break-empty-element` when break position + * is placed inside {@link module:engine/view/emptyelement~EmptyElement EmptyElement}. + * + * Throws {@link module:utils/ckeditorerror~CKEditorError CKEditorError} `view-writer-cannot-break-ui-element` when break position + * is placed inside {@link module:engine/view/uielement~UIElement UIElement}. + * + * @param position Position where to break attributes. + * @param forceSplitText If set to `true`, will break text nodes even if they are directly in container element. + * This behavior will result in incorrect view state, but is needed by other view writing methods which then fixes view state. + * @returns New position after breaking the attributes. + */ + _breakAttributes(position, forceSplitText = false) { + const positionOffset = position.offset; + const positionParent = position.parent; + // If position is placed inside EmptyElement - throw an exception as we cannot break inside. + if (position.parent.is('emptyElement')) { + /** + * Cannot break an `EmptyElement` instance. + * + * This error is thrown if + * {@link module:engine/view/downcastwriter~DowncastWriter#breakAttributes `DowncastWriter#breakAttributes()`} + * was executed in an incorrect position. + * + * @error view-writer-cannot-break-empty-element + */ + throw new ckeditorerror_CKEditorError('view-writer-cannot-break-empty-element', this.document); + } + // If position is placed inside UIElement - throw an exception as we cannot break inside. + if (position.parent.is('uiElement')) { + /** + * Cannot break a `UIElement` instance. + * + * This error is thrown if + * {@link module:engine/view/downcastwriter~DowncastWriter#breakAttributes `DowncastWriter#breakAttributes()`} + * was executed in an incorrect position. + * + * @error view-writer-cannot-break-ui-element + */ + throw new ckeditorerror_CKEditorError('view-writer-cannot-break-ui-element', this.document); + } + // If position is placed inside RawElement - throw an exception as we cannot break inside. + if (position.parent.is('rawElement')) { + /** + * Cannot break a `RawElement` instance. + * + * This error is thrown if + * {@link module:engine/view/downcastwriter~DowncastWriter#breakAttributes `DowncastWriter#breakAttributes()`} + * was executed in an incorrect position. + * + * @error view-writer-cannot-break-raw-element + */ + throw new ckeditorerror_CKEditorError('view-writer-cannot-break-raw-element', this.document); + } + // There are no attributes to break and text nodes breaking is not forced. + if (!forceSplitText && positionParent.is('$text') && isContainerOrFragment(positionParent.parent)) { + return position.clone(); + } + // Position's parent is container, so no attributes to break. + if (isContainerOrFragment(positionParent)) { + return position.clone(); + } + // Break text and start again in new position. + if (positionParent.is('$text')) { + return this._breakAttributes(breakTextNode(position), forceSplitText); + } + const length = positionParent.childCount; + //

                                                                                                                                                                                                                                                                                                                                            foobar{}

                                                                                                                                                                                                                                                                                                                                            + //

                                                                                                                                                                                                                                                                                                                                            foobar[]

                                                                                                                                                                                                                                                                                                                                            + //

                                                                                                                                                                                                                                                                                                                                            foobar[]

                                                                                                                                                                                                                                                                                                                                            + if (positionOffset == length) { + const newPosition = new Position(positionParent.parent, positionParent.index + 1); + return this._breakAttributes(newPosition, forceSplitText); + } + else { + //

                                                                                                                                                                                                                                                                                                                                            foo{}bar

                                                                                                                                                                                                                                                                                                                                            + //

                                                                                                                                                                                                                                                                                                                                            foo[]bar

                                                                                                                                                                                                                                                                                                                                            + //

                                                                                                                                                                                                                                                                                                                                            foo{}bar

                                                                                                                                                                                                                                                                                                                                            + if (positionOffset === 0) { + const newPosition = new Position(positionParent.parent, positionParent.index); + return this._breakAttributes(newPosition, forceSplitText); + } + //

                                                                                                                                                                                                                                                                                                                                            foob{}ar

                                                                                                                                                                                                                                                                                                                                            + //

                                                                                                                                                                                                                                                                                                                                            foob[]ar

                                                                                                                                                                                                                                                                                                                                            + //

                                                                                                                                                                                                                                                                                                                                            foob[]ar

                                                                                                                                                                                                                                                                                                                                            + //

                                                                                                                                                                                                                                                                                                                                            foob[]ar

                                                                                                                                                                                                                                                                                                                                            + else { + const offsetAfter = positionParent.index + 1; + // Break element. + const clonedNode = positionParent._clone(); + // Insert cloned node to position's parent node. + positionParent.parent._insertChild(offsetAfter, clonedNode); + this._addToClonedElementsGroup(clonedNode); + // Get nodes to move. + const count = positionParent.childCount - positionOffset; + const nodesToMove = positionParent._removeChildren(positionOffset, count); + // Move nodes to cloned node. + clonedNode._appendChild(nodesToMove); + // Create new position to work on. + const newPosition = new Position(positionParent.parent, offsetAfter); + return this._breakAttributes(newPosition, forceSplitText); + } + } + } + /** + * Stores the information that an {@link module:engine/view/attributeelement~AttributeElement attribute element} was + * added to the tree. Saves the reference to the group in the given element and updates the group, so other elements + * from the group now keep a reference to the given attribute element. + * + * The clones group can be obtained using {@link module:engine/view/attributeelement~AttributeElement#getElementsWithSameId}. + * + * Does nothing if added element has no {@link module:engine/view/attributeelement~AttributeElement#id id}. + * + * @param element Attribute element to save. + */ + _addToClonedElementsGroup(element) { + // Add only if the element is in document tree. + if (!element.root.is('rootElement')) { + return; + } + // Traverse the element's children recursively to find other attribute elements that also might got inserted. + // The loop is at the beginning so we can make fast returns later in the code. + if (element.is('element')) { + for (const child of element.getChildren()) { + this._addToClonedElementsGroup(child); + } + } + const id = element.id; + if (!id) { + return; + } + let group = this._cloneGroups.get(id); + if (!group) { + group = new Set(); + this._cloneGroups.set(id, group); + } + group.add(element); + element._clonesGroup = group; + } + /** + * Removes all the information about the given {@link module:engine/view/attributeelement~AttributeElement attribute element} + * from its clones group. + * + * Keep in mind, that the element will still keep a reference to the group (but the group will not keep a reference to it). + * This allows to reference the whole group even if the element was already removed from the tree. + * + * Does nothing if the element has no {@link module:engine/view/attributeelement~AttributeElement#id id}. + * + * @param element Attribute element to remove. + */ + _removeFromClonedElementsGroup(element) { + // Traverse the element's children recursively to find other attribute elements that also got removed. + // The loop is at the beginning so we can make fast returns later in the code. + if (element.is('element')) { + for (const child of element.getChildren()) { + this._removeFromClonedElementsGroup(child); + } + } + const id = element.id; + if (!id) { + return; + } + const group = this._cloneGroups.get(id); + if (!group) { + return; + } + group.delete(element); + // Not removing group from element on purpose! + // If other parts of code have reference to this element, they will be able to get references to other elements from the group. + } +} +// Helper function for `view.writer.wrap`. Checks if given element has any children that are not ui elements. +function _hasNonUiChildren(parent) { + return Array.from(parent.getChildren()).some(child => !child.is('uiElement')); +} +/** + * The `attribute` passed to {@link module:engine/view/downcastwriter~DowncastWriter#wrap `DowncastWriter#wrap()`} + * must be an instance of {@link module:engine/view/attributeelement~AttributeElement `AttributeElement`}. + * + * @error view-writer-wrap-invalid-attribute + */ +/** + * Returns first parent container of specified {@link module:engine/view/position~Position Position}. + * Position's parent node is checked as first, then next parents are checked. + * Note that {@link module:engine/view/documentfragment~DocumentFragment DocumentFragment} is treated like a container. + * + * @param position Position used as a start point to locate parent container. + * @returns Parent container element or `undefined` if container is not found. + */ +function getParentContainer(position) { + let parent = position.parent; + while (!isContainerOrFragment(parent)) { + if (!parent) { + return undefined; + } + parent = parent.parent; + } + return parent; +} +/** + * Checks if first {@link module:engine/view/attributeelement~AttributeElement AttributeElement} provided to the function + * can be wrapped outside second element. It is done by comparing elements' + * {@link module:engine/view/attributeelement~AttributeElement#priority priorities}, if both have same priority + * {@link module:engine/view/element~Element#getIdentity identities} are compared. + */ +function shouldABeOutsideB(a, b) { + if (a.priority < b.priority) { + return true; + } + else if (a.priority > b.priority) { + return false; + } + // When priorities are equal and names are different - use identities. + return a.getIdentity() < b.getIdentity(); +} +/** + * Returns new position that is moved to near text node. Returns same position if there is no text node before of after + * specified position. + * + * ```html + *

                                                                                                                                                                                                                                                                                                                                            foo[]

                                                                                                                                                                                                                                                                                                                                            ->

                                                                                                                                                                                                                                                                                                                                            foo{}

                                                                                                                                                                                                                                                                                                                                            + *

                                                                                                                                                                                                                                                                                                                                            []foo

                                                                                                                                                                                                                                                                                                                                            ->

                                                                                                                                                                                                                                                                                                                                            {}foo

                                                                                                                                                                                                                                                                                                                                            + * ``` + * + * @returns Position located inside text node or same position if there is no text nodes + * before or after position location. + */ +function movePositionToTextNode(position) { + const nodeBefore = position.nodeBefore; + if (nodeBefore && nodeBefore.is('$text')) { + return new Position(nodeBefore, nodeBefore.data.length); + } + const nodeAfter = position.nodeAfter; + if (nodeAfter && nodeAfter.is('$text')) { + return new Position(nodeAfter, 0); + } + return position; +} +/** + * Breaks text node into two text nodes when possible. + * + * ```html + *

                                                                                                                                                                                                                                                                                                                                            foo{}bar

                                                                                                                                                                                                                                                                                                                                            ->

                                                                                                                                                                                                                                                                                                                                            foo[]bar

                                                                                                                                                                                                                                                                                                                                            + *

                                                                                                                                                                                                                                                                                                                                            {}foobar

                                                                                                                                                                                                                                                                                                                                            ->

                                                                                                                                                                                                                                                                                                                                            []foobar

                                                                                                                                                                                                                                                                                                                                            + *

                                                                                                                                                                                                                                                                                                                                            foobar{}

                                                                                                                                                                                                                                                                                                                                            ->

                                                                                                                                                                                                                                                                                                                                            foobar[]

                                                                                                                                                                                                                                                                                                                                            + * ``` + * + * @param position Position that need to be placed inside text node. + * @returns New position after breaking text node. + */ +function breakTextNode(position) { + if (position.offset == position.parent.data.length) { + return new Position(position.parent.parent, position.parent.index + 1); + } + if (position.offset === 0) { + return new Position(position.parent.parent, position.parent.index); + } + // Get part of the text that need to be moved. + const textToMove = position.parent.data.slice(position.offset); + // Leave rest of the text in position's parent. + position.parent._data = position.parent.data.slice(0, position.offset); + // Insert new text node after position's parent text node. + position.parent.parent._insertChild(position.parent.index + 1, new text_Text(position.root.document, textToMove)); + // Return new position between two newly created text nodes. + return new Position(position.parent.parent, position.parent.index + 1); +} +/** + * Merges two text nodes into first node. Removes second node and returns merge position. + * + * @param t1 First text node to merge. Data from second text node will be moved at the end of this text node. + * @param t2 Second text node to merge. This node will be removed after merging. + * @returns Position after merging text nodes. + */ +function mergeTextNodes(t1, t2) { + // Merge text data into first text node and remove second one. + const nodeBeforeLength = t1.data.length; + t1._data += t2.data; + t2._remove(); + return new Position(t1, nodeBeforeLength); +} +const validNodesToInsert = [text_Text, AttributeElement, ContainerElement, EmptyElement, RawElement, UIElement]; +/** + * Checks if provided nodes are valid to insert. + * + * Throws {@link module:utils/ckeditorerror~CKEditorError CKEditorError} `view-writer-insert-invalid-node` when nodes to insert + * contains instances that are not supported ones (see error description for valid ones. + */ +function validateNodesToInsert(nodes, errorContext) { + for (const node of nodes) { + if (!validNodesToInsert.some((validNode => node instanceof validNode))) { // eslint-disable-line no-use-before-define + /** + * One of the nodes to be inserted is of an invalid type. + * + * Nodes to be inserted with {@link module:engine/view/downcastwriter~DowncastWriter#insert `DowncastWriter#insert()`} should be + * of the following types: + * + * * {@link module:engine/view/attributeelement~AttributeElement AttributeElement}, + * * {@link module:engine/view/containerelement~ContainerElement ContainerElement}, + * * {@link module:engine/view/emptyelement~EmptyElement EmptyElement}, + * * {@link module:engine/view/uielement~UIElement UIElement}, + * * {@link module:engine/view/rawelement~RawElement RawElement}, + * * {@link module:engine/view/text~Text Text}. + * + * @error view-writer-insert-invalid-node-type + */ + throw new ckeditorerror_CKEditorError('view-writer-insert-invalid-node-type', errorContext); + } + if (!node.is('$text')) { + validateNodesToInsert(node.getChildren(), errorContext); + } + } +} +/** + * Checks if node is ContainerElement or DocumentFragment, because in most cases they should be treated the same way. + * + * @returns Returns `true` if node is instance of ContainerElement or DocumentFragment. + */ +function isContainerOrFragment(node) { + return node && (node.is('containerElement') || node.is('documentFragment')); +} +/** + * Checks if {@link module:engine/view/range~Range#start range start} and {@link module:engine/view/range~Range#end range end} are placed + * inside same {@link module:engine/view/containerelement~ContainerElement container element}. + * Throws {@link module:utils/ckeditorerror~CKEditorError CKEditorError} `view-writer-invalid-range-container` when validation fails. + */ +function validateRangeContainer(range, errorContext) { + const startContainer = getParentContainer(range.start); + const endContainer = getParentContainer(range.end); + if (!startContainer || !endContainer || startContainer !== endContainer) { + /** + * The container of the given range is invalid. + * + * This may happen if {@link module:engine/view/range~Range#start range start} and + * {@link module:engine/view/range~Range#end range end} positions are not placed inside the same container element or + * a parent container for these positions cannot be found. + * + * Methods like {@link module:engine/view/downcastwriter~DowncastWriter#wrap `DowncastWriter#remove()`}, + * {@link module:engine/view/downcastwriter~DowncastWriter#wrap `DowncastWriter#clean()`}, + * {@link module:engine/view/downcastwriter~DowncastWriter#wrap `DowncastWriter#wrap()`}, + * {@link module:engine/view/downcastwriter~DowncastWriter#wrap `DowncastWriter#unwrap()`} need to be called + * on a range that has its start and end positions located in the same container element. Both positions can be + * nested within other elements (e.g. an attribute element) but the closest container ancestor must be the same. + * + * @error view-writer-invalid-range-container + */ + throw new ckeditorerror_CKEditorError('view-writer-invalid-range-container', errorContext); + } +} +/** + * Checks if two attribute elements can be joined together. Elements can be joined together if, and only if + * they do not have ids specified. + */ +function canBeJoined(a, b) { + return a.id === null && b.id === null; +} + +;// CONCATENATED MODULE: ./node_modules/@ckeditor/ckeditor5-engine/src/view/filler.js +/** + * @license Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved. + * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license + */ + +/** + * Set of utilities related to handling block and inline fillers. + * + * Browsers do not allow to put caret in elements which does not have height. Because of it, we need to fill all + * empty elements which should be selectable with elements or characters called "fillers". Unfortunately there is no one + * universal filler, this is why two types are uses: + * + * * Block filler is an element which fill block elements, like `

                                                                                                                                                                                                                                                                                                                                            `. CKEditor uses `
                                                                                                                                                                                                                                                                                                                                            ` as a block filler during the editing, + * as browsers do natively. So instead of an empty `

                                                                                                                                                                                                                                                                                                                                            ` there will be `


                                                                                                                                                                                                                                                                                                                                            `. The advantage of block filler is that + * it is transparent for the selection, so when the caret is before the `
                                                                                                                                                                                                                                                                                                                                            ` and user presses right arrow he will be + * moved to the next paragraph, not after the `
                                                                                                                                                                                                                                                                                                                                            `. The disadvantage is that it breaks a block, so it can not be used + * in the middle of a line of text. The {@link module:engine/view/filler~BR_FILLER `
                                                                                                                                                                                                                                                                                                                                            ` filler} can be replaced with any other + * character in the data output, for instance {@link module:engine/view/filler~NBSP_FILLER non-breaking space} or + * {@link module:engine/view/filler~MARKED_NBSP_FILLER marked non-breaking space}. + * + * * Inline filler is a filler which does not break a line of text, so it can be used inside the text, for instance in the empty + * `` surrendered by text: `foobar`, if we want to put the caret there. CKEditor uses a sequence of the zero-width + * spaces as an {@link module:engine/view/filler~INLINE_FILLER inline filler} having the predetermined + * {@link module:engine/view/filler~INLINE_FILLER_LENGTH length}. A sequence is used, instead of a single character to + * avoid treating random zero-width spaces as the inline filler. Disadvantage of the inline filler is that it is not + * transparent for the selection. The arrow key moves the caret between zero-width spaces characters, so the additional + * code is needed to handle the caret. + * + * Both inline and block fillers are handled by the {@link module:engine/view/renderer~Renderer renderer} and are not present in the + * view. + * + * @module engine/view/filler + */ +/** + * Non-breaking space filler creator. This function creates the ` ` text node. + * It defines how the filler is created. + * + * @see module:engine/view/filler~MARKED_NBSP_FILLER + * @see module:engine/view/filler~BR_FILLER + */ +const NBSP_FILLER = (domDocument) => domDocument.createTextNode('\u00A0'); +/** + * Marked non-breaking space filler creator. This function creates the ` ` element. + * It defines how the filler is created. + * + * @see module:engine/view/filler~NBSP_FILLER + * @see module:engine/view/filler~BR_FILLER + */ +const MARKED_NBSP_FILLER = (domDocument) => { + const span = domDocument.createElement('span'); + span.dataset.ckeFiller = 'true'; + span.innerText = '\u00A0'; + return span; +}; +/** + * `
                                                                                                                                                                                                                                                                                                                                            ` filler creator. This function creates the `
                                                                                                                                                                                                                                                                                                                                            ` element. + * It defines how the filler is created. + * + * @see module:engine/view/filler~NBSP_FILLER + * @see module:engine/view/filler~MARKED_NBSP_FILLER + */ +const BR_FILLER = (domDocument) => { + const fillerBr = domDocument.createElement('br'); + fillerBr.dataset.ckeFiller = 'true'; + return fillerBr; +}; +/** + * Length of the {@link module:engine/view/filler~INLINE_FILLER INLINE_FILLER}. + */ +const INLINE_FILLER_LENGTH = 7; +/** + * Inline filler which is a sequence of the word joiners. + */ +const INLINE_FILLER = '\u2060'.repeat(INLINE_FILLER_LENGTH); +/** + * Checks if the node is a text node which starts with the {@link module:engine/view/filler~INLINE_FILLER inline filler}. + * + * ```ts + * startsWithFiller( document.createTextNode( INLINE_FILLER ) ); // true + * startsWithFiller( document.createTextNode( INLINE_FILLER + 'foo' ) ); // true + * startsWithFiller( document.createTextNode( 'foo' ) ); // false + * startsWithFiller( document.createElement( 'p' ) ); // false + * ``` + * + * @param domNode DOM node. + * @returns True if the text node starts with the {@link module:engine/view/filler~INLINE_FILLER inline filler}. + */ +function startsWithFiller(domNode) { + return isText(domNode) && (domNode.data.substr(0, INLINE_FILLER_LENGTH) === INLINE_FILLER); +} +/** + * Checks if the text node contains only the {@link module:engine/view/filler~INLINE_FILLER inline filler}. + * + * ```ts + * isInlineFiller( document.createTextNode( INLINE_FILLER ) ); // true + * isInlineFiller( document.createTextNode( INLINE_FILLER + 'foo' ) ); // false + * ``` + * + * @param domText DOM text node. + * @returns True if the text node contains only the {@link module:engine/view/filler~INLINE_FILLER inline filler}. + */ +function isInlineFiller(domText) { + return domText.data.length == INLINE_FILLER_LENGTH && startsWithFiller(domText); +} +/** + * Get string data from the text node, removing an {@link module:engine/view/filler~INLINE_FILLER inline filler} from it, + * if text node contains it. + * + * ```ts + * getDataWithoutFiller( document.createTextNode( INLINE_FILLER + 'foo' ) ) == 'foo' // true + * getDataWithoutFiller( document.createTextNode( 'foo' ) ) == 'foo' // true + * ``` + * + * @param domText DOM text node, possible with inline filler. + * @returns Data without filler. + */ +function getDataWithoutFiller(domText) { + if (startsWithFiller(domText)) { + return domText.data.slice(INLINE_FILLER_LENGTH); + } + else { + return domText.data; + } +} +/** + * Assign key observer which move cursor from the end of the inline filler to the beginning of it when + * the left arrow is pressed, so the filler does not break navigation. + * + * @param view View controller instance we should inject quirks handling on. + */ +function injectQuirksHandling(view) { + view.document.on('arrowKey', jumpOverInlineFiller, { priority: 'low' }); +} +/** + * Move cursor from the end of the inline filler to the beginning of it when, so the filler does not break navigation. + */ +function jumpOverInlineFiller(evt, data) { + if (data.keyCode == keyCodes.arrowleft) { + const domSelection = data.domTarget.ownerDocument.defaultView.getSelection(); + if (domSelection.rangeCount == 1 && domSelection.getRangeAt(0).collapsed) { + const domParent = domSelection.getRangeAt(0).startContainer; + const domOffset = domSelection.getRangeAt(0).startOffset; + if (startsWithFiller(domParent) && domOffset <= INLINE_FILLER_LENGTH) { + domSelection.collapse(domParent, 0); + } + } + } +} + +;// CONCATENATED MODULE: ./node_modules/@ckeditor/ckeditor5-engine/src/view/renderer.js +/** + * @license Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved. + * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license + */ +/** + * @module engine/view/renderer + */ + + + + + +/** + * Renderer is responsible for updating the DOM structure and the DOM selection based on + * the {@link module:engine/view/renderer~Renderer#markToSync information about updated view nodes}. + * In other words, it renders the view to the DOM. + * + * Its main responsibility is to make only the necessary, minimal changes to the DOM. However, unlike in many + * virtual DOM implementations, the primary reason for doing minimal changes is not the performance but ensuring + * that native editing features such as text composition, autocompletion, spell checking, selection's x-index are + * affected as little as possible. + * + * Renderer uses {@link module:engine/view/domconverter~DomConverter} to transform view nodes and positions + * to and from the DOM. + */ +class Renderer extends ObservableMixin() { + /** + * Creates a renderer instance. + * + * @param domConverter Converter instance. + * @param selection View selection. + */ + constructor(domConverter, selection) { + super(); + /** + * Set of DOM Documents instances. + */ + this.domDocuments = new Set(); + /** + * Set of nodes which attributes changed and may need to be rendered. + */ + this.markedAttributes = new Set(); + /** + * Set of elements which child lists changed and may need to be rendered. + */ + this.markedChildren = new Set(); + /** + * Set of text nodes which text data changed and may need to be rendered. + */ + this.markedTexts = new Set(); + /** + * The text node in which the inline filler was rendered. + */ + this._inlineFiller = null; + /** + * DOM element containing fake selection. + */ + this._fakeSelectionContainer = null; + this.domConverter = domConverter; + this.selection = selection; + this.set('isFocused', false); + this.set('isSelecting', false); + // Rendering the selection and inline filler manipulation should be postponed in (non-Android) Blink until the user finishes + // creating the selection in DOM to avoid accidental selection collapsing + // (https://github.com/ckeditor/ckeditor5/issues/10562, https://github.com/ckeditor/ckeditor5/issues/10723). + // When the user stops selecting, all pending changes should be rendered ASAP, though. + if (src_env.isBlink && !src_env.isAndroid) { + this.on('change:isSelecting', () => { + if (!this.isSelecting) { + this.render(); + } + }); + } + this.set('isComposing', false); + this.on('change:isComposing', () => { + if (!this.isComposing) { + this.render(); + } + }); + } + /** + * Marks a view node to be updated in the DOM by {@link #render `render()`}. + * + * Note that only view nodes whose parents have corresponding DOM elements need to be marked to be synchronized. + * + * @see #markedAttributes + * @see #markedChildren + * @see #markedTexts + * + * @param type Type of the change. + * @param node ViewNode to be marked. + */ + markToSync(type, node) { + if (type === 'text') { + if (this.domConverter.mapViewToDom(node.parent)) { + this.markedTexts.add(node); + } + } + else { + // If the node has no DOM element it is not rendered yet, + // its children/attributes do not need to be marked to be sync. + if (!this.domConverter.mapViewToDom(node)) { + return; + } + if (type === 'attributes') { + this.markedAttributes.add(node); + } + else if (type === 'children') { + this.markedChildren.add(node); + } + else { + // eslint-disable-next-line @typescript-eslint/no-unused-vars + const unreachable = type; + /** + * Unknown type passed to Renderer.markToSync. + * + * @error view-renderer-unknown-type + */ + throw new ckeditorerror_CKEditorError('view-renderer-unknown-type', this); + } + } + } + /** + * Renders all buffered changes ({@link #markedAttributes}, {@link #markedChildren} and {@link #markedTexts}) and + * the current view selection (if needed) to the DOM by applying a minimal set of changes to it. + * + * Renderer tries not to break the text composition (e.g. IME) and x-index of the selection, + * so it does as little as it is needed to update the DOM. + * + * Renderer also handles {@link module:engine/view/filler fillers}. Especially, it checks if the inline filler is needed + * at the selection position and adds or removes it. To prevent breaking text composition inline filler will not be + * removed as long as the selection is in the text node which needed it at first. + */ + render() { + // Ignore rendering while in the composition mode. Composition events are not cancellable and browser will modify the DOM tree. + // All marked elements, attributes, etc. will wait until next render after the composition ends. + // On Android composition events are immediately applied to the model, so we don't need to skip rendering, + // and we should not do it because the difference between view and DOM could lead to position mapping problems. + if (this.isComposing && !src_env.isAndroid) { + // @if CK_DEBUG_TYPING // if ( ( window as any ).logCKETyping ) { + // @if CK_DEBUG_TYPING // console.info( '%c[Renderer]%c Rendering aborted while isComposing', + // @if CK_DEBUG_TYPING // 'color: green;font-weight: bold', '' + // @if CK_DEBUG_TYPING // ); + // @if CK_DEBUG_TYPING // } + return; + } + // @if CK_DEBUG_TYPING // if ( ( window as any ).logCKETyping ) { + // @if CK_DEBUG_TYPING // console.group( '%c[Renderer]%c Rendering', + // @if CK_DEBUG_TYPING // 'color: green;font-weight: bold', '' + // @if CK_DEBUG_TYPING // ); + // @if CK_DEBUG_TYPING // } + let inlineFillerPosition = null; + const isInlineFillerRenderingPossible = src_env.isBlink && !src_env.isAndroid ? !this.isSelecting : true; + // Refresh mappings. + for (const element of this.markedChildren) { + this._updateChildrenMappings(element); + } + // Don't manipulate inline fillers while the selection is being made in (non-Android) Blink to prevent accidental + // DOM selection collapsing + // (https://github.com/ckeditor/ckeditor5/issues/10562, https://github.com/ckeditor/ckeditor5/issues/10723). + if (isInlineFillerRenderingPossible) { + // There was inline filler rendered in the DOM but it's not + // at the selection position any more, so we can remove it + // (cause even if it's needed, it must be placed in another location). + if (this._inlineFiller && !this._isSelectionInInlineFiller()) { + this._removeInlineFiller(); + } + // If we've got the filler, let's try to guess its position in the view. + if (this._inlineFiller) { + inlineFillerPosition = this._getInlineFillerPosition(); + } + // Otherwise, if it's needed, create it at the selection position. + else if (this._needsInlineFillerAtSelection()) { + inlineFillerPosition = this.selection.getFirstPosition(); + // Do not use `markToSync` so it will be added even if the parent is already added. + this.markedChildren.add(inlineFillerPosition.parent); + } + } + // Make sure the inline filler has any parent, so it can be mapped to view position by DomConverter. + else if (this._inlineFiller && this._inlineFiller.parentNode) { + // While the user is making selection, preserve the inline filler at its original position. + inlineFillerPosition = this.domConverter.domPositionToView(this._inlineFiller); + // While down-casting the document selection attributes, all existing empty + // attribute elements (for selection position) are removed from the view and DOM, + // so make sure that we were able to map filler position. + // https://github.com/ckeditor/ckeditor5/issues/12026 + if (inlineFillerPosition && inlineFillerPosition.parent.is('$text')) { + // The inline filler position is expected to be before the text node. + inlineFillerPosition = Position._createBefore(inlineFillerPosition.parent); + } + } + for (const element of this.markedAttributes) { + this._updateAttrs(element); + } + for (const element of this.markedChildren) { + this._updateChildren(element, { inlineFillerPosition }); + } + for (const node of this.markedTexts) { + if (!this.markedChildren.has(node.parent) && this.domConverter.mapViewToDom(node.parent)) { + this._updateText(node, { inlineFillerPosition }); + } + } + // * Check whether the inline filler is required and where it really is in the DOM. + // At this point in most cases it will be in the DOM, but there are exceptions. + // For example, if the inline filler was deep in the created DOM structure, it will not be created. + // Similarly, if it was removed at the beginning of this function and then neither text nor children were updated, + // it will not be present. Fix those and similar scenarios. + // * Don't manipulate inline fillers while the selection is being made in (non-Android) Blink to prevent accidental + // DOM selection collapsing + // (https://github.com/ckeditor/ckeditor5/issues/10562, https://github.com/ckeditor/ckeditor5/issues/10723). + if (isInlineFillerRenderingPossible) { + if (inlineFillerPosition) { + const fillerDomPosition = this.domConverter.viewPositionToDom(inlineFillerPosition); + const domDocument = fillerDomPosition.parent.ownerDocument; + if (!startsWithFiller(fillerDomPosition.parent)) { + // Filler has not been created at filler position. Create it now. + this._inlineFiller = addInlineFiller(domDocument, fillerDomPosition.parent, fillerDomPosition.offset); + } + else { + // Filler has been found, save it. + this._inlineFiller = fillerDomPosition.parent; + } + } + else { + // There is no filler needed. + this._inlineFiller = null; + } + } + // First focus the new editing host, then update the selection. + // Otherwise, FF may throw an error (https://github.com/ckeditor/ckeditor5/issues/721). + this._updateFocus(); + this._updateSelection(); + this.markedTexts.clear(); + this.markedAttributes.clear(); + this.markedChildren.clear(); + // @if CK_DEBUG_TYPING // if ( ( window as any ).logCKETyping ) { + // @if CK_DEBUG_TYPING // console.groupEnd(); + // @if CK_DEBUG_TYPING // } + } + /** + * Updates mappings of view element's children. + * + * Children that were replaced in the view structure by similar elements (same tag name) are treated as 'replaced'. + * This means that their mappings can be updated so the new view elements are mapped to the existing DOM elements. + * Thanks to that these elements do not need to be re-rendered completely. + * + * @param viewElement The view element whose children mappings will be updated. + */ + _updateChildrenMappings(viewElement) { + const domElement = this.domConverter.mapViewToDom(viewElement); + if (!domElement) { + // If there is no `domElement` it means that it was already removed from DOM and there is no need to process it. + return; + } + // Removing nodes from the DOM as we iterate can cause `actualDomChildren` + // (which is a live-updating `NodeList`) to get out of sync with the + // indices that we compute as we iterate over `actions`. + // This would produce incorrect element mappings. + // + // Converting live list to an array to make the list static. + const actualDomChildren = Array.from(this.domConverter.mapViewToDom(viewElement).childNodes); + const expectedDomChildren = Array.from(this.domConverter.viewChildrenToDom(viewElement, { withChildren: false })); + const diff = this._diffNodeLists(actualDomChildren, expectedDomChildren); + const actions = this._findUpdateActions(diff, actualDomChildren, expectedDomChildren, areSimilarElements); + if (actions.indexOf('update') !== -1) { + const counter = { equal: 0, insert: 0, delete: 0 }; + for (const action of actions) { + if (action === 'update') { + const insertIndex = counter.equal + counter.insert; + const deleteIndex = counter.equal + counter.delete; + const viewChild = viewElement.getChild(insertIndex); + // UIElement and RawElement are special cases. Their children are not stored in a view (#799) + // so we cannot use them with replacing flow (since they use view children during rendering + // which will always result in rendering empty elements). + if (viewChild && !(viewChild.is('uiElement') || viewChild.is('rawElement'))) { + this._updateElementMappings(viewChild, actualDomChildren[deleteIndex]); + } + remove(expectedDomChildren[insertIndex]); + counter.equal++; + } + else { + counter[action]++; + } + } + } + } + /** + * Updates mappings of a given view element. + * + * @param viewElement The view element whose mappings will be updated. + * @param domElement The DOM element representing the given view element. + */ + _updateElementMappings(viewElement, domElement) { + // Remap 'DomConverter' bindings. + this.domConverter.unbindDomElement(domElement); + this.domConverter.bindElements(domElement, viewElement); + // View element may have children which needs to be updated, but are not marked, mark them to update. + this.markedChildren.add(viewElement); + // Because we replace new view element mapping with the existing one, the corresponding DOM element + // will not be rerendered. The new view element may have different attributes than the previous one. + // Since its corresponding DOM element will not be rerendered, new attributes will not be added + // to the DOM, so we need to mark it here to make sure its attributes gets updated. See #1427 for more + // detailed case study. + // Also there are cases where replaced element is removed from the view structure and then has + // its attributes changed or removed. In such cases the element will not be present in `markedAttributes` + // and also may be the same (`element.isSimilar()`) as the reused element not having its attributes updated. + // To prevent such situations we always mark reused element to have its attributes rerenderd (#1560). + this.markedAttributes.add(viewElement); + } + /** + * Gets the position of the inline filler based on the current selection. + * Here, we assume that we know that the filler is needed and + * {@link #_isSelectionInInlineFiller is at the selection position}, and, since it is needed, + * it is somewhere at the selection position. + * + * Note: The filler position cannot be restored based on the filler's DOM text node, because + * when this method is called (before rendering), the bindings will often be broken. View-to-DOM + * bindings are only dependable after rendering. + */ + _getInlineFillerPosition() { + const firstPos = this.selection.getFirstPosition(); + if (firstPos.parent.is('$text')) { + return Position._createBefore(firstPos.parent); + } + else { + return firstPos; + } + } + /** + * Returns `true` if the selection has not left the inline filler's text node. + * If it is `true`, it means that the filler had been added for a reason and the selection did not + * leave the filler's text node. For example, the user can be in the middle of a composition so it should not be touched. + * + * @returns `true` if the inline filler and selection are in the same place. + */ + _isSelectionInInlineFiller() { + if (this.selection.rangeCount != 1 || !this.selection.isCollapsed) { + return false; + } + // Note, we can't check if selection's position equals position of the + // this._inlineFiller node, because of #663. We may not be able to calculate + // the filler's position in the view at this stage. + // Instead, we check it the other way – whether selection is anchored in + // that text node or next to it. + // Possible options are: + // "FILLER{}" + // "FILLERadded-text{}" + const selectionPosition = this.selection.getFirstPosition(); + const position = this.domConverter.viewPositionToDom(selectionPosition); + if (position && isText(position.parent) && startsWithFiller(position.parent)) { + return true; + } + return false; + } + /** + * Removes the inline filler. + */ + _removeInlineFiller() { + const domFillerNode = this._inlineFiller; + // Something weird happened and the stored node doesn't contain the filler's text. + if (!startsWithFiller(domFillerNode)) { + /** + * The inline filler node was lost. Most likely, something overwrote the filler text node + * in the DOM. + * + * @error view-renderer-filler-was-lost + */ + throw new ckeditorerror_CKEditorError('view-renderer-filler-was-lost', this); + } + if (isInlineFiller(domFillerNode)) { + domFillerNode.remove(); + } + else { + domFillerNode.data = domFillerNode.data.substr(INLINE_FILLER_LENGTH); + } + this._inlineFiller = null; + } + /** + * Checks if the inline {@link module:engine/view/filler filler} should be added. + * + * @returns `true` if the inline filler should be added. + */ + _needsInlineFillerAtSelection() { + if (this.selection.rangeCount != 1 || !this.selection.isCollapsed) { + return false; + } + const selectionPosition = this.selection.getFirstPosition(); + const selectionParent = selectionPosition.parent; + const selectionOffset = selectionPosition.offset; + // If there is no DOM root we do not care about fillers. + if (!this.domConverter.mapViewToDom(selectionParent.root)) { + return false; + } + if (!(selectionParent.is('element'))) { + return false; + } + // Prevent adding inline filler inside elements with contenteditable=false. + // https://github.com/ckeditor/ckeditor5-engine/issues/1170 + if (!isEditable(selectionParent)) { + return false; + } + // We have block filler, we do not need inline one. + if (selectionOffset === selectionParent.getFillerOffset()) { + return false; + } + const nodeBefore = selectionPosition.nodeBefore; + const nodeAfter = selectionPosition.nodeAfter; + if (nodeBefore instanceof text_Text || nodeAfter instanceof text_Text) { + return false; + } + // Do not use inline filler while typing outside inline elements on Android. + // The deleteContentBackward would remove part of the inline filler instead of removing last letter in a link. + if (src_env.isAndroid && (nodeBefore || nodeAfter)) { + return false; + } + return true; + } + /** + * Checks if text needs to be updated and possibly updates it. + * + * @param viewText View text to update. + * @param options.inlineFillerPosition The position where the inline filler should be rendered. + */ + _updateText(viewText, options) { + const domText = this.domConverter.findCorrespondingDomText(viewText); + const newDomText = this.domConverter.viewToDom(viewText); + let expectedText = newDomText.data; + const filler = options.inlineFillerPosition; + if (filler && filler.parent == viewText.parent && filler.offset == viewText.index) { + expectedText = INLINE_FILLER + expectedText; + } + // @if CK_DEBUG_TYPING // if ( ( window as any ).logCKETyping ) { + // @if CK_DEBUG_TYPING // console.group( '%c[Renderer]%c Update text', + // @if CK_DEBUG_TYPING // 'color: green;font-weight: bold', '' + // @if CK_DEBUG_TYPING // ); + // @if CK_DEBUG_TYPING // } + updateTextNode(domText, expectedText); + // @if CK_DEBUG_TYPING // if ( ( window as any ).logCKETyping ) { + // @if CK_DEBUG_TYPING // console.groupEnd(); + // @if CK_DEBUG_TYPING // } + } + /** + * Checks if attribute list needs to be updated and possibly updates it. + * + * @param viewElement The view element to update. + */ + _updateAttrs(viewElement) { + const domElement = this.domConverter.mapViewToDom(viewElement); + if (!domElement) { + // If there is no `domElement` it means that 'viewElement' is outdated as its mapping was updated + // in 'this._updateChildrenMappings()'. There is no need to process it as new view element which + // replaced old 'viewElement' mapping was also added to 'this.markedAttributes' + // in 'this._updateChildrenMappings()' so it will be processed separately. + return; + } + const domAttrKeys = Array.from(domElement.attributes).map(attr => attr.name); + const viewAttrKeys = viewElement.getAttributeKeys(); + // Add or overwrite attributes. + for (const key of viewAttrKeys) { + this.domConverter.setDomElementAttribute(domElement, key, viewElement.getAttribute(key), viewElement); + } + // Remove from DOM attributes which do not exists in the view. + for (const key of domAttrKeys) { + // All other attributes not present in the DOM should be removed. + if (!viewElement.hasAttribute(key)) { + this.domConverter.removeDomElementAttribute(domElement, key); + } + } + } + /** + * Checks if elements child list needs to be updated and possibly updates it. + * + * Note that on Android, to reduce the risk of composition breaks, it tries to update data of an existing + * child text nodes instead of replacing them completely. + * + * @param viewElement View element to update. + * @param options.inlineFillerPosition The position where the inline filler should be rendered. + */ + _updateChildren(viewElement, options) { + const domElement = this.domConverter.mapViewToDom(viewElement); + if (!domElement) { + // If there is no `domElement` it means that it was already removed from DOM. + // There is no need to process it. It will be processed when re-inserted. + return; + } + // @if CK_DEBUG_TYPING // if ( ( window as any ).logCKETyping ) { + // @if CK_DEBUG_TYPING // console.group( '%c[Renderer]%c Update children', + // @if CK_DEBUG_TYPING // 'color: green;font-weight: bold', '' + // @if CK_DEBUG_TYPING // ); + // @if CK_DEBUG_TYPING // } + // IME on Android inserts a new text node while typing after a link + // instead of updating an existing text node that follows the link. + // We must normalize those text nodes so the diff won't get confused. + // https://github.com/ckeditor/ckeditor5/issues/12574. + if (src_env.isAndroid) { + let previousDomNode = null; + for (const domNode of Array.from(domElement.childNodes)) { + if (previousDomNode && isText(previousDomNode) && isText(domNode)) { + domElement.normalize(); + break; + } + previousDomNode = domNode; + } + } + const inlineFillerPosition = options.inlineFillerPosition; + const actualDomChildren = domElement.childNodes; + const expectedDomChildren = Array.from(this.domConverter.viewChildrenToDom(viewElement, { bind: true })); + // Inline filler element has to be created as it is present in the DOM, but not in the view. It is required + // during diffing so text nodes could be compared correctly and also during rendering to maintain + // proper order and indexes while updating the DOM. + if (inlineFillerPosition && inlineFillerPosition.parent === viewElement) { + addInlineFiller(domElement.ownerDocument, expectedDomChildren, inlineFillerPosition.offset); + } + const diff = this._diffNodeLists(actualDomChildren, expectedDomChildren); + // We need to make sure that we update the existing text node and not replace it with another one. + // The composition and different "language" browser extensions are fragile to text node being completely replaced. + const actions = this._findUpdateActions(diff, actualDomChildren, expectedDomChildren, areTextNodes); + let i = 0; + const nodesToUnbind = new Set(); + // Handle deletions first. + // This is to prevent a situation where an element that already exists in `actualDomChildren` is inserted at a different + // index in `actualDomChildren`. Since `actualDomChildren` is a `NodeList`, this works like move, not like an insert, + // and it disrupts the whole algorithm. See https://github.com/ckeditor/ckeditor5/issues/6367. + // + // It doesn't matter in what order we remove or add nodes, as long as we remove and add correct nodes at correct indexes. + for (const action of actions) { + if (action === 'delete') { + // @if CK_DEBUG_TYPING // if ( ( window as any ).logCKETyping ) { + // @if CK_DEBUG_TYPING // console.info( '%c[Renderer]%c Remove node', + // @if CK_DEBUG_TYPING // 'color: green;font-weight: bold', '', actualDomChildren[ i ] + // @if CK_DEBUG_TYPING // ); + // @if CK_DEBUG_TYPING // } + nodesToUnbind.add(actualDomChildren[i]); + remove(actualDomChildren[i]); + } + else if (action === 'equal' || action === 'update') { + i++; + } + } + i = 0; + for (const action of actions) { + if (action === 'insert') { + // @if CK_DEBUG_TYPING // if ( ( window as any ).logCKETyping ) { + // @if CK_DEBUG_TYPING // console.info( '%c[Renderer]%c Insert node', + // @if CK_DEBUG_TYPING // 'color: green;font-weight: bold', '', expectedDomChildren[ i ] + // @if CK_DEBUG_TYPING // ); + // @if CK_DEBUG_TYPING // } + insertAt(domElement, i, expectedDomChildren[i]); + i++; + } + // Update the existing text node data. Note that replace action is generated only for Android for now. + else if (action === 'update') { + // @if CK_DEBUG_TYPING // if ( ( window as any ).logCKETyping ) { + // @if CK_DEBUG_TYPING // console.group( '%c[Renderer]%c Update text node', + // @if CK_DEBUG_TYPING // 'color: green;font-weight: bold', '' + // @if CK_DEBUG_TYPING // ); + // @if CK_DEBUG_TYPING // } + updateTextNode(actualDomChildren[i], expectedDomChildren[i].data); + i++; + // @if CK_DEBUG_TYPING // if ( ( window as any ).logCKETyping ) { + // @if CK_DEBUG_TYPING // console.groupEnd(); + // @if CK_DEBUG_TYPING // } + } + else if (action === 'equal') { + // Force updating text nodes inside elements which did not change and do not need to be re-rendered (#1125). + // Do it here (not in the loop above) because only after insertions the `i` index is correct. + this._markDescendantTextToSync(this.domConverter.domToView(expectedDomChildren[i])); + i++; + } + } + // Unbind removed nodes. When node does not have a parent it means that it was removed from DOM tree during + // comparison with the expected DOM. We don't need to check child nodes, because if child node was reinserted, + // it was moved to DOM tree out of the removed node. + for (const node of nodesToUnbind) { + if (!node.parentNode) { + this.domConverter.unbindDomElement(node); + } + } + // @if CK_DEBUG_TYPING // if ( ( window as any ).logCKETyping ) { + // @if CK_DEBUG_TYPING // console.groupEnd(); + // @if CK_DEBUG_TYPING // } + } + /** + * Shorthand for diffing two arrays or node lists of DOM nodes. + * + * @param actualDomChildren Actual DOM children + * @param expectedDomChildren Expected DOM children. + * @returns The list of actions based on the {@link module:utils/diff~diff} function. + */ + _diffNodeLists(actualDomChildren, expectedDomChildren) { + actualDomChildren = filterOutFakeSelectionContainer(actualDomChildren, this._fakeSelectionContainer); + return diff(actualDomChildren, expectedDomChildren, sameNodes.bind(null, this.domConverter)); + } + /** + * Finds DOM nodes that were replaced with the similar nodes (same tag name) in the view. All nodes are compared + * within one `insert`/`delete` action group, for example: + * + * ``` + * Actual DOM:

                                                                                                                                                                                                                                                                                                                                            FooBarBazBax

                                                                                                                                                                                                                                                                                                                                            + * Expected DOM:

                                                                                                                                                                                                                                                                                                                                            Bar123Baz456

                                                                                                                                                                                                                                                                                                                                            + * Input actions: [ insert, insert, delete, delete, equal, insert, delete ] + * Output actions: [ insert, replace, delete, equal, replace ] + * ``` + * + * @param actions Actions array which is a result of the {@link module:utils/diff~diff} function. + * @param actualDom Actual DOM children + * @param expectedDom Expected DOM children. + * @param comparator A comparator function that should return `true` if the given node should be reused + * (either by the update of a text node data or an element children list for similar elements). + * @returns Actions array modified with the `update` actions. + */ + _findUpdateActions(actions, actualDom, expectedDom, comparator) { + // If there is no both 'insert' and 'delete' actions, no need to check for replaced elements. + if (actions.indexOf('insert') === -1 || actions.indexOf('delete') === -1) { + return actions; + } + let newActions = []; + let actualSlice = []; + let expectedSlice = []; + const counter = { equal: 0, insert: 0, delete: 0 }; + for (const action of actions) { + if (action === 'insert') { + expectedSlice.push(expectedDom[counter.equal + counter.insert]); + } + else if (action === 'delete') { + actualSlice.push(actualDom[counter.equal + counter.delete]); + } + else { // equal + newActions = newActions.concat(diff(actualSlice, expectedSlice, comparator) + .map(action => action === 'equal' ? 'update' : action)); + newActions.push('equal'); + // Reset stored elements on 'equal'. + actualSlice = []; + expectedSlice = []; + } + counter[action]++; + } + return newActions.concat(diff(actualSlice, expectedSlice, comparator) + .map(action => action === 'equal' ? 'update' : action)); + } + /** + * Marks text nodes to be synchronized. + * + * If a text node is passed, it will be marked. If an element is passed, all descendant text nodes inside it will be marked. + * + * @param viewNode View node to sync. + */ + _markDescendantTextToSync(viewNode) { + if (!viewNode) { + return; + } + if (viewNode.is('$text')) { + this.markedTexts.add(viewNode); + } + else if (viewNode.is('element')) { + for (const child of viewNode.getChildren()) { + this._markDescendantTextToSync(child); + } + } + } + /** + * Checks if the selection needs to be updated and possibly updates it. + */ + _updateSelection() { + // Block updating DOM selection in (non-Android) Blink while the user is selecting to prevent accidental selection collapsing. + // Note: Structural changes in DOM must trigger selection rendering, though. Nodes the selection was anchored + // to, may disappear in DOM which would break the selection (e.g. in real-time collaboration scenarios). + // https://github.com/ckeditor/ckeditor5/issues/10562, https://github.com/ckeditor/ckeditor5/issues/10723 + if (src_env.isBlink && !src_env.isAndroid && this.isSelecting && !this.markedChildren.size) { + return; + } + // If there is no selection - remove DOM and fake selections. + if (this.selection.rangeCount === 0) { + this._removeDomSelection(); + this._removeFakeSelection(); + return; + } + const domRoot = this.domConverter.mapViewToDom(this.selection.editableElement); + // Do nothing if there is no focus, or there is no DOM element corresponding to selection's editable element. + if (!this.isFocused || !domRoot) { + return; + } + // Render fake selection - create the fake selection container (if needed) and move DOM selection to it. + if (this.selection.isFake) { + this._updateFakeSelection(domRoot); + } + // There was a fake selection so remove it and update the DOM selection. + // This is especially important on Android because otherwise IME will try to compose over the fake selection container. + else if (this._fakeSelectionContainer && this._fakeSelectionContainer.isConnected) { + this._removeFakeSelection(); + this._updateDomSelection(domRoot); + } + // Update the DOM selection in case of a plain selection change (no fake selection is involved). + // On non-Android the whole rendering is disabled in composition mode (including DOM selection update), + // but updating DOM selection should be also disabled on Android if in the middle of the composition + // (to not interrupt it). + else if (!(this.isComposing && src_env.isAndroid)) { + this._updateDomSelection(domRoot); + } + } + /** + * Updates the fake selection. + * + * @param domRoot A valid DOM root where the fake selection container should be added. + */ + _updateFakeSelection(domRoot) { + const domDocument = domRoot.ownerDocument; + if (!this._fakeSelectionContainer) { + this._fakeSelectionContainer = createFakeSelectionContainer(domDocument); + } + const container = this._fakeSelectionContainer; + // Bind fake selection container with the current selection *position*. + this.domConverter.bindFakeSelection(container, this.selection); + if (!this._fakeSelectionNeedsUpdate(domRoot)) { + return; + } + if (!container.parentElement || container.parentElement != domRoot) { + domRoot.appendChild(container); + } + container.textContent = this.selection.fakeSelectionLabel || '\u00A0'; + const domSelection = domDocument.getSelection(); + const domRange = domDocument.createRange(); + domSelection.removeAllRanges(); + domRange.selectNodeContents(container); + domSelection.addRange(domRange); + } + /** + * Updates the DOM selection. + * + * @param domRoot A valid DOM root where the DOM selection should be rendered. + */ + _updateDomSelection(domRoot) { + const domSelection = domRoot.ownerDocument.defaultView.getSelection(); + // Let's check whether DOM selection needs updating at all. + if (!this._domSelectionNeedsUpdate(domSelection)) { + return; + } + // Multi-range selection is not available in most browsers, and, at least in Chrome, trying to + // set such selection, that is not continuous, throws an error. Because of that, we will just use anchor + // and focus of view selection. + // Since we are not supporting multi-range selection, we also do not need to check if proper editable is + // selected. If there is any editable selected, it is okay (editable is taken from selection anchor). + const anchor = this.domConverter.viewPositionToDom(this.selection.anchor); + const focus = this.domConverter.viewPositionToDom(this.selection.focus); + // @if CK_DEBUG_TYPING // if ( ( window as any ).logCKETyping ) { + // @if CK_DEBUG_TYPING // console.info( '%c[Renderer]%c Update DOM selection:', + // @if CK_DEBUG_TYPING // 'color: green;font-weight: bold', '', anchor, focus + // @if CK_DEBUG_TYPING // ); + // @if CK_DEBUG_TYPING // } + domSelection.collapse(anchor.parent, anchor.offset); + domSelection.extend(focus.parent, focus.offset); + // Firefox–specific hack (https://github.com/ckeditor/ckeditor5-engine/issues/1439). + if (src_env.isGecko) { + fixGeckoSelectionAfterBr(focus, domSelection); + } + } + /** + * Checks whether a given DOM selection needs to be updated. + * + * @param domSelection The DOM selection to check. + */ + _domSelectionNeedsUpdate(domSelection) { + if (!this.domConverter.isDomSelectionCorrect(domSelection)) { + // Current DOM selection is in incorrect position. We need to update it. + return true; + } + const oldViewSelection = domSelection && this.domConverter.domSelectionToView(domSelection); + if (oldViewSelection && this.selection.isEqual(oldViewSelection)) { + return false; + } + // If selection is not collapsed, it does not need to be updated if it is similar. + if (!this.selection.isCollapsed && this.selection.isSimilar(oldViewSelection)) { + // Selection did not changed and is correct, do not update. + return false; + } + // Selections are not similar. + return true; + } + /** + * Checks whether the fake selection needs to be updated. + * + * @param domRoot A valid DOM root where a new fake selection container should be added. + */ + _fakeSelectionNeedsUpdate(domRoot) { + const container = this._fakeSelectionContainer; + const domSelection = domRoot.ownerDocument.getSelection(); + // Fake selection needs to be updated if there's no fake selection container, or the container currently sits + // in a different root. + if (!container || container.parentElement !== domRoot) { + return true; + } + // Make sure that the selection actually is within the fake selection. + if (domSelection.anchorNode !== container && !container.contains(domSelection.anchorNode)) { + return true; + } + return container.textContent !== this.selection.fakeSelectionLabel; + } + /** + * Removes the DOM selection. + */ + _removeDomSelection() { + for (const doc of this.domDocuments) { + const domSelection = doc.getSelection(); + if (domSelection.rangeCount) { + const activeDomElement = doc.activeElement; + const viewElement = this.domConverter.mapDomToView(activeDomElement); + if (activeDomElement && viewElement) { + domSelection.removeAllRanges(); + } + } + } + } + /** + * Removes the fake selection. + */ + _removeFakeSelection() { + const container = this._fakeSelectionContainer; + if (container) { + container.remove(); + } + } + /** + * Checks if focus needs to be updated and possibly updates it. + */ + _updateFocus() { + if (this.isFocused) { + const editable = this.selection.editableElement; + if (editable) { + this.domConverter.focus(editable); + } + } + } +} +/** + * Checks if provided element is editable. + */ +function isEditable(element) { + if (element.getAttribute('contenteditable') == 'false') { + return false; + } + const parent = element.findAncestor(element => element.hasAttribute('contenteditable')); + return !parent || parent.getAttribute('contenteditable') == 'true'; +} +/** + * Adds inline filler at a given position. + * + * The position can be given as an array of DOM nodes and an offset in that array, + * or a DOM parent element and an offset in that element. + * + * @returns The DOM text node that contains an inline filler. + */ +function addInlineFiller(domDocument, domParentOrArray, offset) { + const childNodes = domParentOrArray instanceof Array ? domParentOrArray : domParentOrArray.childNodes; + const nodeAfterFiller = childNodes[offset]; + if (isText(nodeAfterFiller)) { + nodeAfterFiller.data = INLINE_FILLER + nodeAfterFiller.data; + return nodeAfterFiller; + } + else { + const fillerNode = domDocument.createTextNode(INLINE_FILLER); + if (Array.isArray(domParentOrArray)) { + childNodes.splice(offset, 0, fillerNode); + } + else { + insertAt(domParentOrArray, offset, fillerNode); + } + return fillerNode; + } +} +/** + * Whether two DOM nodes should be considered as similar. + * Nodes are considered similar if they have the same tag name. + */ +function areSimilarElements(node1, node2) { + return isNode(node1) && isNode(node2) && + !isText(node1) && !isText(node2) && + !isComment(node1) && !isComment(node2) && + node1.tagName.toLowerCase() === node2.tagName.toLowerCase(); +} +/** + * Whether two DOM nodes are text nodes. + */ +function areTextNodes(node1, node2) { + return isNode(node1) && isNode(node2) && + isText(node1) && isText(node2); +} +/** + * Whether two dom nodes should be considered as the same. + * Two nodes which are considered the same are: + * + * * Text nodes with the same text. + * * Element nodes represented by the same object. + * * Two block filler elements. + * + * @param blockFillerMode Block filler mode, see {@link module:engine/view/domconverter~DomConverter#blockFillerMode}. + */ +function sameNodes(domConverter, actualDomChild, expectedDomChild) { + // Elements. + if (actualDomChild === expectedDomChild) { + return true; + } + // Texts. + else if (isText(actualDomChild) && isText(expectedDomChild)) { + return actualDomChild.data === expectedDomChild.data; + } + // Block fillers. + else if (domConverter.isBlockFiller(actualDomChild) && + domConverter.isBlockFiller(expectedDomChild)) { + return true; + } + // Not matching types. + return false; +} +/** + * The following is a Firefox–specific hack (https://github.com/ckeditor/ckeditor5-engine/issues/1439). + * When the native DOM selection is at the end of the block and preceded by
                                                                                                                                                                                                                                                                                                                                            e.g. + * + * ```html + *

                                                                                                                                                                                                                                                                                                                                            foo
                                                                                                                                                                                                                                                                                                                                            []

                                                                                                                                                                                                                                                                                                                                            + * ``` + * + * which happens a lot when using the soft line break, the browser fails to (visually) move the + * caret to the new line. A quick fix is as simple as force–refreshing the selection with the same range. + */ +function fixGeckoSelectionAfterBr(focus, domSelection) { + const parent = focus.parent; + // This fix works only when the focus point is at the very end of an element. + // There is no point in running it in cases unrelated to the browser bug. + if (parent.nodeType != Node.ELEMENT_NODE || focus.offset != parent.childNodes.length - 1) { + return; + } + const childAtOffset = parent.childNodes[focus.offset]; + // To stay on the safe side, the fix being as specific as possible, it targets only the + // selection which is at the very end of the element and preceded by
                                                                                                                                                                                                                                                                                                                                            . + if (childAtOffset && childAtOffset.tagName == 'BR') { + domSelection.addRange(domSelection.getRangeAt(0)); + } +} +function filterOutFakeSelectionContainer(domChildList, fakeSelectionContainer) { + const childList = Array.from(domChildList); + if (childList.length == 0 || !fakeSelectionContainer) { + return childList; + } + const last = childList[childList.length - 1]; + if (last == fakeSelectionContainer) { + childList.pop(); + } + return childList; +} +/** + * Creates a fake selection container for a given document. + */ +function createFakeSelectionContainer(domDocument) { + const container = domDocument.createElement('div'); + container.className = 'ck-fake-selection-container'; + Object.assign(container.style, { + position: 'fixed', + top: 0, + left: '-9999px', + // See https://github.com/ckeditor/ckeditor5/issues/752. + width: '42px' + }); + // Fill it with a text node so we can update it later. + container.textContent = '\u00A0'; + return container; +} +/** + * Checks if text needs to be updated and possibly updates it by removing and inserting only parts + * of the data from the existing text node to reduce impact on the IME composition. + * + * @param domText DOM text node to update. + * @param expectedText The expected data of a text node. + */ +function updateTextNode(domText, expectedText) { + const actualText = domText.data; + if (actualText == expectedText) { + // @if CK_DEBUG_TYPING // if ( ( window as any ).logCKETyping ) { + // @if CK_DEBUG_TYPING // console.info( '%c[Renderer]%c Text node does not need update:', + // @if CK_DEBUG_TYPING // 'color: green;font-weight: bold', '', + // @if CK_DEBUG_TYPING // `"${ domText.data }" (${ domText.data.length })` + // @if CK_DEBUG_TYPING // ); + // @if CK_DEBUG_TYPING // } + return; + } + // @if CK_DEBUG_TYPING // if ( ( window as any ).logCKETyping ) { + // @if CK_DEBUG_TYPING // console.info( '%c[Renderer]%c Update text node:', + // @if CK_DEBUG_TYPING // 'color: green;font-weight: bold', '', + // @if CK_DEBUG_TYPING // `"${ domText.data }" (${ domText.data.length }) -> "${ expectedText }" (${ expectedText.length })` + // @if CK_DEBUG_TYPING // ); + // @if CK_DEBUG_TYPING // } + const actions = fastDiff(actualText, expectedText); + for (const action of actions) { + if (action.type === 'insert') { + domText.insertData(action.index, action.values.join('')); + } + else { // 'delete' + domText.deleteData(action.index, action.howMany); + } + } +} + +;// CONCATENATED MODULE: ./node_modules/@ckeditor/ckeditor5-engine/src/view/domconverter.js +/** + * @license Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved. + * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license + */ +/** + * @module engine/view/domconverter + */ +/* globals Node, NodeFilter, DOMParser, Text */ + + + + + + + + + + + +const BR_FILLER_REF = BR_FILLER(dom_global.document); // eslint-disable-line new-cap +const NBSP_FILLER_REF = NBSP_FILLER(dom_global.document); // eslint-disable-line new-cap +const MARKED_NBSP_FILLER_REF = MARKED_NBSP_FILLER(dom_global.document); // eslint-disable-line new-cap +const UNSAFE_ATTRIBUTE_NAME_PREFIX = 'data-ck-unsafe-attribute-'; +const UNSAFE_ELEMENT_REPLACEMENT_ATTRIBUTE = 'data-ck-unsafe-element'; +/** + * `DomConverter` is a set of tools to do transformations between DOM nodes and view nodes. It also handles + * {@link module:engine/view/domconverter~DomConverter#bindElements bindings} between these nodes. + * + * An instance of the DOM converter is available under + * {@link module:engine/view/view~View#domConverter `editor.editing.view.domConverter`}. + * + * The DOM converter does not check which nodes should be rendered (use {@link module:engine/view/renderer~Renderer}), does not keep the + * state of a tree nor keeps the synchronization between the tree view and the DOM tree (use {@link module:engine/view/document~Document}). + * + * The DOM converter keeps DOM elements to view element bindings, so when the converter gets destroyed, the bindings are lost. + * Two converters will keep separate binding maps, so one tree view can be bound with two DOM trees. + */ +class DomConverter { + /** + * Creates a DOM converter. + * + * @param document The view document instance. + * @param options An object with configuration options. + * @param options.blockFillerMode The type of the block filler to use. + * Default value depends on the options.renderingMode: + * 'nbsp' when options.renderingMode == 'data', + * 'br' when options.renderingMode == 'editing'. + * @param options.renderingMode Whether to leave the View-to-DOM conversion result unchanged + * or improve editing experience by filtering out interactive data. + */ + constructor(document, { blockFillerMode, renderingMode = 'editing' } = {}) { + /** + * The DOM-to-view mapping. + */ + this._domToViewMapping = new WeakMap(); + /** + * The view-to-DOM mapping. + */ + this._viewToDomMapping = new WeakMap(); + /** + * Holds the mapping between fake selection containers and corresponding view selections. + */ + this._fakeSelectionMapping = new WeakMap(); + /** + * Matcher for view elements whose content should be treated as raw data + * and not processed during the conversion from DOM nodes to view elements. + */ + this._rawContentElementMatcher = new Matcher(); + /** + * A set of encountered raw content DOM nodes. It is used for preventing left trimming of the following text node. + */ + this._encounteredRawContentDomNodes = new WeakSet(); + this.document = document; + this.renderingMode = renderingMode; + this.blockFillerMode = blockFillerMode || (renderingMode === 'editing' ? 'br' : 'nbsp'); + this.preElements = ['pre']; + this.blockElements = [ + 'address', 'article', 'aside', 'blockquote', 'caption', 'center', 'dd', 'details', 'dir', 'div', + 'dl', 'dt', 'fieldset', 'figcaption', 'figure', 'footer', 'form', 'h1', 'h2', 'h3', 'h4', 'h5', 'h6', 'header', + 'hgroup', 'legend', 'li', 'main', 'menu', 'nav', 'ol', 'p', 'pre', 'section', 'summary', 'table', 'tbody', + 'td', 'tfoot', 'th', 'thead', 'tr', 'ul' + ]; + this.inlineObjectElements = [ + 'object', 'iframe', 'input', 'button', 'textarea', 'select', 'option', 'video', 'embed', 'audio', 'img', 'canvas' + ]; + this.unsafeElements = ['script', 'style']; + this._domDocument = this.renderingMode === 'editing' ? dom_global.document : dom_global.document.implementation.createHTMLDocument(''); + } + /** + * Binds a given DOM element that represents fake selection to a **position** of a + * {@link module:engine/view/documentselection~DocumentSelection document selection}. + * Document selection copy is stored and can be retrieved by the + * {@link module:engine/view/domconverter~DomConverter#fakeSelectionToView} method. + */ + bindFakeSelection(domElement, viewDocumentSelection) { + this._fakeSelectionMapping.set(domElement, new Selection(viewDocumentSelection)); + } + /** + * Returns a {@link module:engine/view/selection~Selection view selection} instance corresponding to a given + * DOM element that represents fake selection. Returns `undefined` if binding to the given DOM element does not exist. + */ + fakeSelectionToView(domElement) { + return this._fakeSelectionMapping.get(domElement); + } + /** + * Binds DOM and view elements, so it will be possible to get corresponding elements using + * {@link module:engine/view/domconverter~DomConverter#mapDomToView} and + * {@link module:engine/view/domconverter~DomConverter#mapViewToDom}. + * + * @param domElement The DOM element to bind. + * @param viewElement The view element to bind. + */ + bindElements(domElement, viewElement) { + this._domToViewMapping.set(domElement, viewElement); + this._viewToDomMapping.set(viewElement, domElement); + } + /** + * Unbinds a given DOM element from the view element it was bound to. Unbinding is deep, meaning that all children of + * the DOM element will be unbound too. + * + * @param domElement The DOM element to unbind. + */ + unbindDomElement(domElement) { + const viewElement = this._domToViewMapping.get(domElement); + if (viewElement) { + this._domToViewMapping.delete(domElement); + this._viewToDomMapping.delete(viewElement); + for (const child of Array.from(domElement.children)) { + this.unbindDomElement(child); + } + } + } + /** + * Binds DOM and view document fragments, so it will be possible to get corresponding document fragments using + * {@link module:engine/view/domconverter~DomConverter#mapDomToView} and + * {@link module:engine/view/domconverter~DomConverter#mapViewToDom}. + * + * @param domFragment The DOM document fragment to bind. + * @param viewFragment The view document fragment to bind. + */ + bindDocumentFragments(domFragment, viewFragment) { + this._domToViewMapping.set(domFragment, viewFragment); + this._viewToDomMapping.set(viewFragment, domFragment); + } + /** + * Decides whether a given pair of attribute key and value should be passed further down the pipeline. + * + * @param elementName Element name in lower case. + */ + shouldRenderAttribute(attributeKey, attributeValue, elementName) { + if (this.renderingMode === 'data') { + return true; + } + attributeKey = attributeKey.toLowerCase(); + if (attributeKey.startsWith('on')) { + return false; + } + if (attributeKey === 'srcdoc' && + attributeValue.match(/\bon\S+\s*=|javascript:|<\s*\/*script/i)) { + return false; + } + if (elementName === 'img' && + (attributeKey === 'src' || attributeKey === 'srcset')) { + return true; + } + if (elementName === 'source' && attributeKey === 'srcset') { + return true; + } + if (attributeValue.match(/^\s*(javascript:|data:(image\/svg|text\/x?html))/i)) { + return false; + } + return true; + } + /** + * Set `domElement`'s content using provided `html` argument. Apply necessary filtering for the editing pipeline. + * + * @param domElement DOM element that should have `html` set as its content. + * @param html Textual representation of the HTML that will be set on `domElement`. + */ + setContentOf(domElement, html) { + // For data pipeline we pass the HTML as-is. + if (this.renderingMode === 'data') { + domElement.innerHTML = html; + return; + } + const document = new DOMParser().parseFromString(html, 'text/html'); + const fragment = document.createDocumentFragment(); + const bodyChildNodes = document.body.childNodes; + while (bodyChildNodes.length > 0) { + fragment.appendChild(bodyChildNodes[0]); + } + const treeWalker = document.createTreeWalker(fragment, NodeFilter.SHOW_ELEMENT); + const nodes = []; + let currentNode; + // eslint-disable-next-line no-cond-assign + while (currentNode = treeWalker.nextNode()) { + nodes.push(currentNode); + } + for (const currentNode of nodes) { + // Go through nodes to remove those that are prohibited in editing pipeline. + for (const attributeName of currentNode.getAttributeNames()) { + this.setDomElementAttribute(currentNode, attributeName, currentNode.getAttribute(attributeName)); + } + const elementName = currentNode.tagName.toLowerCase(); + // There are certain nodes, that should be renamed to in editing pipeline. + if (this._shouldRenameElement(elementName)) { + _logUnsafeElement(elementName); + currentNode.replaceWith(this._createReplacementDomElement(elementName, currentNode)); + } + } + // Empty the target element. + while (domElement.firstChild) { + domElement.firstChild.remove(); + } + domElement.append(fragment); + } + /** + * Converts the view to the DOM. For all text nodes, not bound elements and document fragments new items will + * be created. For bound elements and document fragments the method will return corresponding items. + * + * @param viewNode View node or document fragment to transform. + * @param options Conversion options. + * @param options.bind Determines whether new elements will be bound. + * @param options.withChildren If `false`, node's and document fragment's children will not be converted. + * @returns Converted node or DocumentFragment. + */ + viewToDom(viewNode, options = {}) { + if (viewNode.is('$text')) { + const textData = this._processDataFromViewText(viewNode); + return this._domDocument.createTextNode(textData); + } + else { + if (this.mapViewToDom(viewNode)) { + return this.mapViewToDom(viewNode); + } + let domElement; + if (viewNode.is('documentFragment')) { + // Create DOM document fragment. + domElement = this._domDocument.createDocumentFragment(); + if (options.bind) { + this.bindDocumentFragments(domElement, viewNode); + } + } + else if (viewNode.is('uiElement')) { + if (viewNode.name === '$comment') { + domElement = this._domDocument.createComment(viewNode.getCustomProperty('$rawContent')); + } + else { + // UIElement has its own render() method (see #799). + domElement = viewNode.render(this._domDocument, this); + } + if (options.bind) { + this.bindElements(domElement, viewNode); + } + return domElement; + } + else { + // Create DOM element. + if (this._shouldRenameElement(viewNode.name)) { + _logUnsafeElement(viewNode.name); + domElement = this._createReplacementDomElement(viewNode.name); + } + else if (viewNode.hasAttribute('xmlns')) { + domElement = this._domDocument.createElementNS(viewNode.getAttribute('xmlns'), viewNode.name); + } + else { + domElement = this._domDocument.createElement(viewNode.name); + } + // RawElement take care of their children in RawElement#render() method which can be customized + // (see https://github.com/ckeditor/ckeditor5/issues/4469). + if (viewNode.is('rawElement')) { + viewNode.render(domElement, this); + } + if (options.bind) { + this.bindElements(domElement, viewNode); + } + // Copy element's attributes. + for (const key of viewNode.getAttributeKeys()) { + this.setDomElementAttribute(domElement, key, viewNode.getAttribute(key), viewNode); + } + } + if (options.withChildren !== false) { + for (const child of this.viewChildrenToDom(viewNode, options)) { + domElement.appendChild(child); + } + } + return domElement; + } + } + /** + * Sets the attribute on a DOM element. + * + * **Note**: To remove the attribute, use {@link #removeDomElementAttribute}. + * + * @param domElement The DOM element the attribute should be set on. + * @param key The name of the attribute. + * @param value The value of the attribute. + * @param relatedViewElement The view element related to the `domElement` (if there is any). + * It helps decide whether the attribute set is unsafe. For instance, view elements created via the + * {@link module:engine/view/downcastwriter~DowncastWriter} methods can allow certain attributes that would normally be filtered out. + */ + setDomElementAttribute(domElement, key, value, relatedViewElement) { + const shouldRenderAttribute = this.shouldRenderAttribute(key, value, domElement.tagName.toLowerCase()) || + relatedViewElement && relatedViewElement.shouldRenderUnsafeAttribute(key); + if (!shouldRenderAttribute) { + logWarning('domconverter-unsafe-attribute-detected', { domElement, key, value }); + } + if (!isValidAttributeName(key)) { + /** + * Invalid attribute name was ignored during rendering. + * + * @error domconverter-invalid-attribute-detected + */ + logWarning('domconverter-invalid-attribute-detected', { domElement, key, value }); + return; + } + // The old value was safe but the new value is unsafe. + if (domElement.hasAttribute(key) && !shouldRenderAttribute) { + domElement.removeAttribute(key); + } + // The old value was unsafe (but prefixed) but the new value will be safe (will be unprefixed). + else if (domElement.hasAttribute(UNSAFE_ATTRIBUTE_NAME_PREFIX + key) && shouldRenderAttribute) { + domElement.removeAttribute(UNSAFE_ATTRIBUTE_NAME_PREFIX + key); + } + // If the attribute should not be rendered, rename it (instead of removing) to give developers some idea of what + // is going on (https://github.com/ckeditor/ckeditor5/issues/10801). + domElement.setAttribute(shouldRenderAttribute ? key : UNSAFE_ATTRIBUTE_NAME_PREFIX + key, value); + } + /** + * Removes an attribute from a DOM element. + * + * **Note**: To set the attribute, use {@link #setDomElementAttribute}. + * + * @param domElement The DOM element the attribute should be removed from. + * @param key The name of the attribute. + */ + removeDomElementAttribute(domElement, key) { + // See #_createReplacementDomElement() to learn what this is. + if (key == UNSAFE_ELEMENT_REPLACEMENT_ATTRIBUTE) { + return; + } + domElement.removeAttribute(key); + // See setDomElementAttribute() to learn what this is. + domElement.removeAttribute(UNSAFE_ATTRIBUTE_NAME_PREFIX + key); + } + /** + * Converts children of the view element to DOM using the + * {@link module:engine/view/domconverter~DomConverter#viewToDom} method. + * Additionally, this method adds block {@link module:engine/view/filler filler} to the list of children, if needed. + * + * @param viewElement Parent view element. + * @param options See {@link module:engine/view/domconverter~DomConverter#viewToDom} options parameter. + * @returns DOM nodes. + */ + *viewChildrenToDom(viewElement, options = {}) { + const fillerPositionOffset = viewElement.getFillerOffset && viewElement.getFillerOffset(); + let offset = 0; + for (const childView of viewElement.getChildren()) { + if (fillerPositionOffset === offset) { + yield this._getBlockFiller(); + } + const transparentRendering = childView.is('element') && + !!childView.getCustomProperty('dataPipeline:transparentRendering') && + !first_first(childView.getAttributes()); + if (transparentRendering && this.renderingMode == 'data') { + yield* this.viewChildrenToDom(childView, options); + } + else { + if (transparentRendering) { + /** + * The `dataPipeline:transparentRendering` flag is supported only in the data pipeline. + * + * @error domconverter-transparent-rendering-unsupported-in-editing-pipeline + */ + logWarning('domconverter-transparent-rendering-unsupported-in-editing-pipeline', { viewElement: childView }); + } + yield this.viewToDom(childView, options); + } + offset++; + } + if (fillerPositionOffset === offset) { + yield this._getBlockFiller(); + } + } + /** + * Converts view {@link module:engine/view/range~Range} to DOM range. + * Inline and block {@link module:engine/view/filler fillers} are handled during the conversion. + * + * @param viewRange View range. + * @returns DOM range. + */ + viewRangeToDom(viewRange) { + const domStart = this.viewPositionToDom(viewRange.start); + const domEnd = this.viewPositionToDom(viewRange.end); + const domRange = this._domDocument.createRange(); + domRange.setStart(domStart.parent, domStart.offset); + domRange.setEnd(domEnd.parent, domEnd.offset); + return domRange; + } + /** + * Converts view {@link module:engine/view/position~Position} to DOM parent and offset. + * + * Inline and block {@link module:engine/view/filler fillers} are handled during the conversion. + * If the converted position is directly before inline filler it is moved inside the filler. + * + * @param viewPosition View position. + * @returns DOM position or `null` if view position could not be converted to DOM. + * DOM position has two properties: + * * `parent` - DOM position parent. + * * `offset` - DOM position offset. + */ + viewPositionToDom(viewPosition) { + const viewParent = viewPosition.parent; + if (viewParent.is('$text')) { + const domParent = this.findCorrespondingDomText(viewParent); + if (!domParent) { + // Position is in a view text node that has not been rendered to DOM yet. + return null; + } + let offset = viewPosition.offset; + if (startsWithFiller(domParent)) { + offset += INLINE_FILLER_LENGTH; + } + return { parent: domParent, offset }; + } + else { + // viewParent is instance of ViewElement. + let domParent, domBefore, domAfter; + if (viewPosition.offset === 0) { + domParent = this.mapViewToDom(viewParent); + if (!domParent) { + // Position is in a view element that has not been rendered to DOM yet. + return null; + } + domAfter = domParent.childNodes[0]; + } + else { + const nodeBefore = viewPosition.nodeBefore; + domBefore = nodeBefore.is('$text') ? + this.findCorrespondingDomText(nodeBefore) : + this.mapViewToDom(nodeBefore); + if (!domBefore) { + // Position is after a view element that has not been rendered to DOM yet. + return null; + } + domParent = domBefore.parentNode; + domAfter = domBefore.nextSibling; + } + // If there is an inline filler at position return position inside the filler. We should never return + // the position before the inline filler. + if (isText(domAfter) && startsWithFiller(domAfter)) { + return { parent: domAfter, offset: INLINE_FILLER_LENGTH }; + } + const offset = domBefore ? indexOf(domBefore) + 1 : 0; + return { parent: domParent, offset }; + } + } + /** + * Converts DOM to view. For all text nodes, not bound elements and document fragments new items will + * be created. For bound elements and document fragments function will return corresponding items. For + * {@link module:engine/view/filler fillers} `null` will be returned. + * For all DOM elements rendered by {@link module:engine/view/uielement~UIElement} that UIElement will be returned. + * + * @param domNode DOM node or document fragment to transform. + * @param options Conversion options. + * @param options.bind Determines whether new elements will be bound. False by default. + * @param options.withChildren If `true`, node's and document fragment's children will be converted too. True by default. + * @param options.keepOriginalCase If `false`, node's tag name will be converted to lower case. False by default. + * @param options.skipComments If `false`, comment nodes will be converted to `$comment` + * {@link module:engine/view/uielement~UIElement view UI elements}. False by default. + * @returns Converted node or document fragment or `null` if DOM node is a {@link module:engine/view/filler filler} + * or the given node is an empty text node. + */ + domToView(domNode, options = {}) { + if (this.isBlockFiller(domNode)) { + return null; + } + // When node is inside a UIElement or a RawElement return that parent as it's view representation. + const hostElement = this.getHostViewElement(domNode); + if (hostElement) { + return hostElement; + } + if (isComment(domNode) && options.skipComments) { + return null; + } + if (isText(domNode)) { + if (isInlineFiller(domNode)) { + return null; + } + else { + const textData = this._processDataFromDomText(domNode); + return textData === '' ? null : new text_Text(this.document, textData); + } + } + else { + if (this.mapDomToView(domNode)) { + return this.mapDomToView(domNode); + } + let viewElement; + if (this.isDocumentFragment(domNode)) { + // Create view document fragment. + viewElement = new DocumentFragment(this.document); + if (options.bind) { + this.bindDocumentFragments(domNode, viewElement); + } + } + else { + // Create view element. + viewElement = this._createViewElement(domNode, options); + if (options.bind) { + this.bindElements(domNode, viewElement); + } + // Copy element's attributes. + const attrs = domNode.attributes; + if (attrs) { + for (let l = attrs.length, i = 0; i < l; i++) { + viewElement._setAttribute(attrs[i].name, attrs[i].value); + } + } + // Treat this element's content as a raw data if it was registered as such. + // Comment node is also treated as an element with raw data. + if (this._isViewElementWithRawContent(viewElement, options) || isComment(domNode)) { + const rawContent = isComment(domNode) ? domNode.data : domNode.innerHTML; + viewElement._setCustomProperty('$rawContent', rawContent); + // Store a DOM node to prevent left trimming of the following text node. + this._encounteredRawContentDomNodes.add(domNode); + return viewElement; + } + } + if (options.withChildren !== false) { + for (const child of this.domChildrenToView(domNode, options)) { + viewElement._appendChild(child); + } + } + return viewElement; + } + } + /** + * Converts children of the DOM element to view nodes using + * the {@link module:engine/view/domconverter~DomConverter#domToView} method. + * Additionally this method omits block {@link module:engine/view/filler filler}, if it exists in the DOM parent. + * + * @param domElement Parent DOM element. + * @param options See {@link module:engine/view/domconverter~DomConverter#domToView} options parameter. + * @returns View nodes. + */ + *domChildrenToView(domElement, options) { + for (let i = 0; i < domElement.childNodes.length; i++) { + const domChild = domElement.childNodes[i]; + const viewChild = this.domToView(domChild, options); + if (viewChild !== null) { + yield viewChild; + } + } + } + /** + * Converts DOM selection to view {@link module:engine/view/selection~Selection}. + * Ranges which cannot be converted will be omitted. + * + * @param domSelection DOM selection. + * @returns View selection. + */ + domSelectionToView(domSelection) { + // DOM selection might be placed in fake selection container. + // If container contains fake selection - return corresponding view selection. + if (domSelection.rangeCount === 1) { + let container = domSelection.getRangeAt(0).startContainer; + // The DOM selection might be moved to the text node inside the fake selection container. + if (isText(container)) { + container = container.parentNode; + } + const viewSelection = this.fakeSelectionToView(container); + if (viewSelection) { + return viewSelection; + } + } + const isBackward = this.isDomSelectionBackward(domSelection); + const viewRanges = []; + for (let i = 0; i < domSelection.rangeCount; i++) { + // DOM Range have correct start and end, no matter what is the DOM Selection direction. So we don't have to fix anything. + const domRange = domSelection.getRangeAt(i); + const viewRange = this.domRangeToView(domRange); + if (viewRange) { + viewRanges.push(viewRange); + } + } + return new Selection(viewRanges, { backward: isBackward }); + } + /** + * Converts DOM Range to view {@link module:engine/view/range~Range}. + * If the start or end position can not be converted `null` is returned. + * + * @param domRange DOM range. + * @returns View range. + */ + domRangeToView(domRange) { + const viewStart = this.domPositionToView(domRange.startContainer, domRange.startOffset); + const viewEnd = this.domPositionToView(domRange.endContainer, domRange.endOffset); + if (viewStart && viewEnd) { + return new Range(viewStart, viewEnd); + } + return null; + } + /** + * Converts DOM parent and offset to view {@link module:engine/view/position~Position}. + * + * If the position is inside a {@link module:engine/view/filler filler} which has no corresponding view node, + * position of the filler will be converted and returned. + * + * If the position is inside DOM element rendered by {@link module:engine/view/uielement~UIElement} + * that position will be converted to view position before that UIElement. + * + * If structures are too different and it is not possible to find corresponding position then `null` will be returned. + * + * @param domParent DOM position parent. + * @param domOffset DOM position offset. You can skip it when converting the inline filler node. + * @returns View position. + */ + domPositionToView(domParent, domOffset = 0) { + if (this.isBlockFiller(domParent)) { + return this.domPositionToView(domParent.parentNode, indexOf(domParent)); + } + // If position is somewhere inside UIElement or a RawElement - return position before that element. + const viewElement = this.mapDomToView(domParent); + if (viewElement && (viewElement.is('uiElement') || viewElement.is('rawElement'))) { + return Position._createBefore(viewElement); + } + if (isText(domParent)) { + if (isInlineFiller(domParent)) { + return this.domPositionToView(domParent.parentNode, indexOf(domParent)); + } + const viewParent = this.findCorrespondingViewText(domParent); + let offset = domOffset; + if (!viewParent) { + return null; + } + if (startsWithFiller(domParent)) { + offset -= INLINE_FILLER_LENGTH; + offset = offset < 0 ? 0 : offset; + } + return new Position(viewParent, offset); + } + // domParent instanceof HTMLElement. + else { + if (domOffset === 0) { + const viewParent = this.mapDomToView(domParent); + if (viewParent) { + return new Position(viewParent, 0); + } + } + else { + const domBefore = domParent.childNodes[domOffset - 1]; + // Jump over an inline filler (and also on Firefox jump over a block filler while pressing backspace in an empty paragraph). + if (isText(domBefore) && isInlineFiller(domBefore) || domBefore && this.isBlockFiller(domBefore)) { + return this.domPositionToView(domBefore.parentNode, indexOf(domBefore)); + } + const viewBefore = isText(domBefore) ? + this.findCorrespondingViewText(domBefore) : + this.mapDomToView(domBefore); + // TODO #663 + if (viewBefore && viewBefore.parent) { + return new Position(viewBefore.parent, viewBefore.index + 1); + } + } + return null; + } + } + /** + * Returns corresponding view {@link module:engine/view/element~Element Element} or + * {@link module:engine/view/documentfragment~DocumentFragment} for provided DOM element or + * document fragment. If there is no view item {@link module:engine/view/domconverter~DomConverter#bindElements bound} + * to the given DOM - `undefined` is returned. + * + * For all DOM elements rendered by a {@link module:engine/view/uielement~UIElement} or + * a {@link module:engine/view/rawelement~RawElement}, the parent `UIElement` or `RawElement` will be returned. + * + * @param domElementOrDocumentFragment DOM element or document fragment. + * @returns Corresponding view element, document fragment or `undefined` if no element was bound. + */ + mapDomToView(domElementOrDocumentFragment) { + const hostElement = this.getHostViewElement(domElementOrDocumentFragment); + return hostElement || this._domToViewMapping.get(domElementOrDocumentFragment); + } + /** + * Finds corresponding text node. Text nodes are not {@link module:engine/view/domconverter~DomConverter#bindElements bound}, + * corresponding text node is returned based on the sibling or parent. + * + * If the directly previous sibling is a {@link module:engine/view/domconverter~DomConverter#bindElements bound} element, it is used + * to find the corresponding text node. + * + * If this is a first child in the parent and the parent is a {@link module:engine/view/domconverter~DomConverter#bindElements bound} + * element, it is used to find the corresponding text node. + * + * For all text nodes rendered by a {@link module:engine/view/uielement~UIElement} or + * a {@link module:engine/view/rawelement~RawElement}, the parent `UIElement` or `RawElement` will be returned. + * + * Otherwise `null` is returned. + * + * Note that for the block or inline {@link module:engine/view/filler filler} this method returns `null`. + * + * @param domText DOM text node. + * @returns Corresponding view text node or `null`, if it was not possible to find a corresponding node. + */ + findCorrespondingViewText(domText) { + if (isInlineFiller(domText)) { + return null; + } + // If DOM text was rendered by a UIElement or a RawElement - return this parent element. + const hostElement = this.getHostViewElement(domText); + if (hostElement) { + return hostElement; + } + const previousSibling = domText.previousSibling; + // Try to use previous sibling to find the corresponding text node. + if (previousSibling) { + if (!(this.isElement(previousSibling))) { + // The previous is text or comment. + return null; + } + const viewElement = this.mapDomToView(previousSibling); + if (viewElement) { + const nextSibling = viewElement.nextSibling; + // It might be filler which has no corresponding view node. + if (nextSibling instanceof text_Text) { + return nextSibling; + } + else { + return null; + } + } + } + // Try to use parent to find the corresponding text node. + else { + const viewElement = this.mapDomToView(domText.parentNode); + if (viewElement) { + const firstChild = viewElement.getChild(0); + // It might be filler which has no corresponding view node. + if (firstChild instanceof text_Text) { + return firstChild; + } + else { + return null; + } + } + } + return null; + } + mapViewToDom(documentFragmentOrElement) { + return this._viewToDomMapping.get(documentFragmentOrElement); + } + /** + * Finds corresponding text node. Text nodes are not {@link module:engine/view/domconverter~DomConverter#bindElements bound}, + * corresponding text node is returned based on the sibling or parent. + * + * If the directly previous sibling is a {@link module:engine/view/domconverter~DomConverter#bindElements bound} element, it is used + * to find the corresponding text node. + * + * If this is a first child in the parent and the parent is a {@link module:engine/view/domconverter~DomConverter#bindElements bound} + * element, it is used to find the corresponding text node. + * + * Otherwise `null` is returned. + * + * @param viewText View text node. + * @returns Corresponding DOM text node or `null`, if it was not possible to find a corresponding node. + */ + findCorrespondingDomText(viewText) { + const previousSibling = viewText.previousSibling; + // Try to use previous sibling to find the corresponding text node. + if (previousSibling && this.mapViewToDom(previousSibling)) { + return this.mapViewToDom(previousSibling).nextSibling; + } + // If this is a first node, try to use parent to find the corresponding text node. + if (!previousSibling && viewText.parent && this.mapViewToDom(viewText.parent)) { + return this.mapViewToDom(viewText.parent).childNodes[0]; + } + return null; + } + /** + * Focuses DOM editable that is corresponding to provided {@link module:engine/view/editableelement~EditableElement}. + */ + focus(viewEditable) { + const domEditable = this.mapViewToDom(viewEditable); + if (domEditable && domEditable.ownerDocument.activeElement !== domEditable) { + // Save the scrollX and scrollY positions before the focus. + const { scrollX, scrollY } = dom_global.window; + const scrollPositions = []; + // Save all scrollLeft and scrollTop values starting from domEditable up to + // document#documentElement. + forEachDomElementAncestor(domEditable, node => { + const { scrollLeft, scrollTop } = node; + scrollPositions.push([scrollLeft, scrollTop]); + }); + domEditable.focus(); + // Restore scrollLeft and scrollTop values starting from domEditable up to + // document#documentElement. + // https://github.com/ckeditor/ckeditor5-engine/issues/951 + // https://github.com/ckeditor/ckeditor5-engine/issues/957 + forEachDomElementAncestor(domEditable, node => { + const [scrollLeft, scrollTop] = scrollPositions.shift(); + node.scrollLeft = scrollLeft; + node.scrollTop = scrollTop; + }); + // Restore the scrollX and scrollY positions after the focus. + // https://github.com/ckeditor/ckeditor5-engine/issues/951 + dom_global.window.scrollTo(scrollX, scrollY); + } + } + /** + * Returns `true` when `node.nodeType` equals `Node.ELEMENT_NODE`. + * + * @param node Node to check. + */ + isElement(node) { + return node && node.nodeType == Node.ELEMENT_NODE; + } + /** + * Returns `true` when `node.nodeType` equals `Node.DOCUMENT_FRAGMENT_NODE`. + * + * @param node Node to check. + */ + isDocumentFragment(node) { + return node && node.nodeType == Node.DOCUMENT_FRAGMENT_NODE; + } + /** + * Checks if the node is an instance of the block filler for this DOM converter. + * + * ```ts + * const converter = new DomConverter( viewDocument, { blockFillerMode: 'br' } ); + * + * converter.isBlockFiller( BR_FILLER( document ) ); // true + * converter.isBlockFiller( NBSP_FILLER( document ) ); // false + * ``` + * + * **Note:**: For the `'nbsp'` mode the method also checks context of a node so it cannot be a detached node. + * + * **Note:** A special case in the `'nbsp'` mode exists where the `
                                                                                                                                                                                                                                                                                                                                            ` in `


                                                                                                                                                                                                                                                                                                                                            ` is treated as a block filler. + * + * @param domNode DOM node to check. + * @returns True if a node is considered a block filler for given mode. + */ + isBlockFiller(domNode) { + if (this.blockFillerMode == 'br') { + return domNode.isEqualNode(BR_FILLER_REF); + } + // Special case for


                                                                                                                                                                                                                                                                                                                                            in which
                                                                                                                                                                                                                                                                                                                                            should be treated as filler even when we are not in the 'br' mode. See ckeditor5#5564. + if (domNode.tagName === 'BR' && + hasBlockParent(domNode, this.blockElements) && + domNode.parentNode.childNodes.length === 1) { + return true; + } + // If not in 'br' mode, try recognizing both marked and regular nbsp block fillers. + return domNode.isEqualNode(MARKED_NBSP_FILLER_REF) || isNbspBlockFiller(domNode, this.blockElements); + } + /** + * Returns `true` if given selection is a backward selection, that is, if it's `focus` is before `anchor`. + * + * @param DOM Selection instance to check. + */ + isDomSelectionBackward(selection) { + if (selection.isCollapsed) { + return false; + } + // Since it takes multiple lines of code to check whether a "DOM Position" is before/after another "DOM Position", + // we will use the fact that range will collapse if it's end is before it's start. + const range = this._domDocument.createRange(); + try { + range.setStart(selection.anchorNode, selection.anchorOffset); + range.setEnd(selection.focusNode, selection.focusOffset); + } + catch (e) { + // Safari sometimes gives us a selection that makes Range.set{Start,End} throw. + // See https://github.com/ckeditor/ckeditor5/issues/12375. + return false; + } + const backward = range.collapsed; + range.detach(); + return backward; + } + /** + * Returns a parent {@link module:engine/view/uielement~UIElement} or {@link module:engine/view/rawelement~RawElement} + * that hosts the provided DOM node. Returns `null` if there is no such parent. + */ + getHostViewElement(domNode) { + const ancestors = getAncestors(domNode); + // Remove domNode from the list. + ancestors.pop(); + while (ancestors.length) { + const domNode = ancestors.pop(); + const viewNode = this._domToViewMapping.get(domNode); + if (viewNode && (viewNode.is('uiElement') || viewNode.is('rawElement'))) { + return viewNode; + } + } + return null; + } + /** + * Checks if the given selection's boundaries are at correct places. + * + * The following places are considered as incorrect for selection boundaries: + * + * * before or in the middle of an inline filler sequence, + * * inside a DOM element which represents {@link module:engine/view/uielement~UIElement a view UI element}, + * * inside a DOM element which represents {@link module:engine/view/rawelement~RawElement a view raw element}. + * + * @param domSelection The DOM selection object to be checked. + * @returns `true` if the given selection is at a correct place, `false` otherwise. + */ + isDomSelectionCorrect(domSelection) { + return this._isDomSelectionPositionCorrect(domSelection.anchorNode, domSelection.anchorOffset) && + this._isDomSelectionPositionCorrect(domSelection.focusNode, domSelection.focusOffset); + } + /** + * Registers a {@link module:engine/view/matcher~MatcherPattern} for view elements whose content should be treated as raw data + * and not processed during the conversion from DOM nodes to view elements. + * + * This is affecting how {@link module:engine/view/domconverter~DomConverter#domToView} and + * {@link module:engine/view/domconverter~DomConverter#domChildrenToView} process DOM nodes. + * + * The raw data can be later accessed by a + * {@link module:engine/view/element~Element#getCustomProperty custom property of a view element} called `"$rawContent"`. + * + * @param pattern Pattern matching a view element whose content should + * be treated as raw data. + */ + registerRawContentMatcher(pattern) { + this._rawContentElementMatcher.add(pattern); + } + /** + * Returns the block {@link module:engine/view/filler filler} node based on the current {@link #blockFillerMode} setting. + */ + _getBlockFiller() { + switch (this.blockFillerMode) { + case 'nbsp': + return NBSP_FILLER(this._domDocument); // eslint-disable-line new-cap + case 'markedNbsp': + return MARKED_NBSP_FILLER(this._domDocument); // eslint-disable-line new-cap + case 'br': + return BR_FILLER(this._domDocument); // eslint-disable-line new-cap + } + } + /** + * Checks if the given DOM position is a correct place for selection boundary. See {@link #isDomSelectionCorrect}. + * + * @param domParent Position parent. + * @param offset Position offset. + * @returns `true` if given position is at a correct place for selection boundary, `false` otherwise. + */ + _isDomSelectionPositionCorrect(domParent, offset) { + // If selection is before or in the middle of inline filler string, it is incorrect. + if (isText(domParent) && startsWithFiller(domParent) && offset < INLINE_FILLER_LENGTH) { + // Selection in a text node, at wrong position (before or in the middle of filler). + return false; + } + if (this.isElement(domParent) && startsWithFiller(domParent.childNodes[offset])) { + // Selection in an element node, before filler text node. + return false; + } + const viewParent = this.mapDomToView(domParent); + // The position is incorrect when anchored inside a UIElement or a RawElement. + // Note: In case of UIElement and RawElement, mapDomToView() returns a parent element for any DOM child + // so there's no need to perform any additional checks. + if (viewParent && (viewParent.is('uiElement') || viewParent.is('rawElement'))) { + return false; + } + return true; + } + /** + * Takes text data from a given {@link module:engine/view/text~Text#data} and processes it so + * it is correctly displayed in the DOM. + * + * Following changes are done: + * + * * a space at the beginning is changed to ` ` if this is the first text node in its container + * element or if a previous text node ends with a space character, + * * space at the end of the text node is changed to ` ` if there are two spaces at the end of a node or if next node + * starts with a space or if it is the last text node in its container, + * * remaining spaces are replaced to a chain of spaces and ` ` (e.g. `'x x'` becomes `'x   x'`). + * + * Content of {@link #preElements} is not processed. + * + * @param node View text node to process. + * @returns Processed text data. + */ + _processDataFromViewText(node) { + let data = node.data; + // If any of node ancestors has a name which is in `preElements` array, then currently processed + // view text node is (will be) in preformatted element. We should not change whitespaces then. + if (node.getAncestors().some(parent => this.preElements.includes(parent.name))) { + return data; + } + // 1. Replace the first space with a nbsp if the previous node ends with a space or there is no previous node + // (container element boundary). + if (data.charAt(0) == ' ') { + const prevNode = this._getTouchingInlineViewNode(node, false); + const prevEndsWithSpace = prevNode && prevNode.is('$textProxy') && this._nodeEndsWithSpace(prevNode); + if (prevEndsWithSpace || !prevNode) { + data = '\u00A0' + data.substr(1); + } + } + // 2. Replace the last space with nbsp if there are two spaces at the end or if the next node starts with space or there is no + // next node (container element boundary). + // + // Keep in mind that Firefox prefers $nbsp; before tag, not inside it: + // + // Foo  bar <-- bad. + // Foo  bar <-- good. + // + // More here: https://github.com/ckeditor/ckeditor5-engine/issues/1747. + if (data.charAt(data.length - 1) == ' ') { + const nextNode = this._getTouchingInlineViewNode(node, true); + const nextStartsWithSpace = nextNode && nextNode.is('$textProxy') && nextNode.data.charAt(0) == ' '; + if (data.charAt(data.length - 2) == ' ' || !nextNode || nextStartsWithSpace) { + data = data.substr(0, data.length - 1) + '\u00A0'; + } + } + // 3. Create space+nbsp pairs. + return data.replace(/ {2}/g, ' \u00A0'); + } + /** + * Checks whether given node ends with a space character after changing appropriate space characters to ` `s. + * + * @param node Node to check. + * @returns `true` if given `node` ends with space, `false` otherwise. + */ + _nodeEndsWithSpace(node) { + if (node.getAncestors().some(parent => this.preElements.includes(parent.name))) { + return false; + } + const data = this._processDataFromViewText(node); + return data.charAt(data.length - 1) == ' '; + } + /** + * Takes text data from native `Text` node and processes it to a correct {@link module:engine/view/text~Text view text node} data. + * + * Following changes are done: + * + * * multiple whitespaces are replaced to a single space, + * * space at the beginning of a text node is removed if it is the first text node in its container + * element or if the previous text node ends with a space character, + * * space at the end of the text node is removed if there are two spaces at the end of a node or if next node + * starts with a space or if it is the last text node in its container + * * nbsps are converted to spaces. + * + * @param node DOM text node to process. + * @returns Processed data. + */ + _processDataFromDomText(node) { + let data = node.data; + if (_hasDomParentOfType(node, this.preElements)) { + return getDataWithoutFiller(node); + } + // Change all consecutive whitespace characters (from the [ \n\t\r] set – + // see https://github.com/ckeditor/ckeditor5-engine/issues/822#issuecomment-311670249) to a single space character. + // That's how multiple whitespaces are treated when rendered, so we normalize those whitespaces. + // We're replacing 1+ (and not 2+) to also normalize singular \n\t\r characters (#822). + data = data.replace(/[ \n\t\r]{1,}/g, ' '); + const prevNode = this._getTouchingInlineDomNode(node, false); + const nextNode = this._getTouchingInlineDomNode(node, true); + const shouldLeftTrim = this._checkShouldLeftTrimDomText(node, prevNode); + const shouldRightTrim = this._checkShouldRightTrimDomText(node, nextNode); + // If the previous dom text node does not exist or it ends by whitespace character, remove space character from the beginning + // of this text node. Such space character is treated as a whitespace. + if (shouldLeftTrim) { + data = data.replace(/^ /, ''); + } + // If the next text node does not exist remove space character from the end of this text node. + if (shouldRightTrim) { + data = data.replace(/ $/, ''); + } + // At the beginning and end of a block element, Firefox inserts normal space +
                                                                                                                                                                                                                                                                                                                                            instead of non-breaking space. + // This means that the text node starts/end with normal space instead of non-breaking space. + // This causes a problem because the normal space would be removed in `.replace` calls above. To prevent that, + // the inline filler is removed only after the data is initially processed (by the `.replace` above). See ckeditor5#692. + data = getDataWithoutFiller(new Text(data)); + // At this point we should have removed all whitespaces from DOM text data. + // + // Now, We will reverse the process that happens in `_processDataFromViewText`. + // + // We have to change   chars, that were in DOM text data because of rendering reasons, to spaces. + // First, change all ` \u00A0` pairs (space +  ) to two spaces. DOM converter changes two spaces from model/view to + // ` \u00A0` to ensure proper rendering. Since here we convert back, we recognize those pairs and change them back to ` `. + data = data.replace(/ \u00A0/g, ' '); + const isNextNodeInlineObjectElement = nextNode && this.isElement(nextNode) && nextNode.tagName != 'BR'; + const isNextNodeStartingWithSpace = nextNode && isText(nextNode) && nextNode.data.charAt(0) == ' '; + // Then, let's change the last nbsp to a space. + if (/( |\u00A0)\u00A0$/.test(data) || !nextNode || isNextNodeInlineObjectElement || isNextNodeStartingWithSpace) { + data = data.replace(/\u00A0$/, ' '); + } + // Then, change   character that is at the beginning of the text node to space character. + // We do that replacement only if this is the first node or the previous node ends on whitespace character. + if (shouldLeftTrim || prevNode && this.isElement(prevNode) && prevNode.tagName != 'BR') { + data = data.replace(/^\u00A0/, ' '); + } + // At this point, all whitespaces should be removed and all   created for rendering reasons should be + // changed to normal space. All left   are   inserted intentionally. + return data; + } + /** + * Helper function which checks if a DOM text node, preceded by the given `prevNode` should + * be trimmed from the left side. + * + * @param prevNode Either DOM text or `
                                                                                                                                                                                                                                                                                                                                            ` or one of `#inlineObjectElements`. + */ + _checkShouldLeftTrimDomText(node, prevNode) { + if (!prevNode) { + return true; + } + if (this.isElement(prevNode)) { + return prevNode.tagName === 'BR'; + } + // Shouldn't left trim if previous node is a node that was encountered as a raw content node. + if (this._encounteredRawContentDomNodes.has(node.previousSibling)) { + return false; + } + return /[^\S\u00A0]/.test(prevNode.data.charAt(prevNode.data.length - 1)); + } + /** + * Helper function which checks if a DOM text node, succeeded by the given `nextNode` should + * be trimmed from the right side. + * + * @param nextNode Either DOM text or `
                                                                                                                                                                                                                                                                                                                                            ` or one of `#inlineObjectElements`. + */ + _checkShouldRightTrimDomText(node, nextNode) { + if (nextNode) { + return false; + } + return !startsWithFiller(node); + } + /** + * Helper function. For given {@link module:engine/view/text~Text view text node}, it finds previous or next sibling + * that is contained in the same container element. If there is no such sibling, `null` is returned. + * + * @param node Reference node. + * @returns Touching text node, an inline object + * or `null` if there is no next or previous touching text node. + */ + _getTouchingInlineViewNode(node, getNext) { + const treeWalker = new TreeWalker({ + startPosition: getNext ? Position._createAfter(node) : Position._createBefore(node), + direction: getNext ? 'forward' : 'backward' + }); + for (const value of treeWalker) { + // Found an inline object (for example an image). + if (value.item.is('element') && this.inlineObjectElements.includes(value.item.name)) { + return value.item; + } + // ViewContainerElement is found on a way to next ViewText node, so given `node` was first/last + // text node in its container element. + else if (value.item.is('containerElement')) { + return null; + } + //
                                                                                                                                                                                                                                                                                                                                            found – it works like a block boundary, so do not scan further. + else if (value.item.is('element', 'br')) { + return null; + } + // Found a text node in the same container element. + else if (value.item.is('$textProxy')) { + return value.item; + } + } + return null; + } + /** + * Helper function. For the given text node, it finds the closest touching node which is either + * a text, `
                                                                                                                                                                                                                                                                                                                                            ` or an {@link #inlineObjectElements inline object}. + * + * If no such node is found, `null` is returned. + * + * For instance, in the following DOM structure: + * + * ```html + *

                                                                                                                                                                                                                                                                                                                                            foobar
                                                                                                                                                                                                                                                                                                                                            bom

                                                                                                                                                                                                                                                                                                                                            + * ``` + * + * * `foo` doesn't have its previous touching inline node (`null` is returned), + * * `foo`'s next touching inline node is `bar` + * * `bar`'s next touching inline node is `
                                                                                                                                                                                                                                                                                                                                            ` + * + * This method returns text nodes and `
                                                                                                                                                                                                                                                                                                                                            ` elements because these types of nodes affect how + * spaces in the given text node need to be converted. + */ + _getTouchingInlineDomNode(node, getNext) { + if (!node.parentNode) { + return null; + } + const stepInto = getNext ? 'firstChild' : 'lastChild'; + const stepOver = getNext ? 'nextSibling' : 'previousSibling'; + let skipChildren = true; + let returnNode = node; + do { + if (!skipChildren && returnNode[stepInto]) { + returnNode = returnNode[stepInto]; + } + else if (returnNode[stepOver]) { + returnNode = returnNode[stepOver]; + skipChildren = false; + } + else { + returnNode = returnNode.parentNode; + skipChildren = true; + } + if (!returnNode || this._isBlockElement(returnNode)) { + return null; + } + } while (!(isText(returnNode) || returnNode.tagName == 'BR' || this._isInlineObjectElement(returnNode))); + return returnNode; + } + /** + * Returns `true` if a DOM node belongs to {@link #blockElements}. `false` otherwise. + */ + _isBlockElement(node) { + return this.isElement(node) && this.blockElements.includes(node.tagName.toLowerCase()); + } + /** + * Returns `true` if a DOM node belongs to {@link #inlineObjectElements}. `false` otherwise. + */ + _isInlineObjectElement(node) { + return this.isElement(node) && this.inlineObjectElements.includes(node.tagName.toLowerCase()); + } + /** + * Creates view element basing on the node type. + * + * @param node DOM node to check. + * @param options Conversion options. See {@link module:engine/view/domconverter~DomConverter#domToView} options parameter. + */ + _createViewElement(node, options) { + if (isComment(node)) { + return new UIElement(this.document, '$comment'); + } + const viewName = options.keepOriginalCase ? node.tagName : node.tagName.toLowerCase(); + return new Element(this.document, viewName); + } + /** + * Checks if view element's content should be treated as a raw data. + * + * @param viewElement View element to check. + * @param options Conversion options. See {@link module:engine/view/domconverter~DomConverter#domToView} options parameter. + */ + _isViewElementWithRawContent(viewElement, options) { + return options.withChildren !== false && !!this._rawContentElementMatcher.match(viewElement); + } + /** + * Checks whether a given element name should be renamed in a current rendering mode. + * + * @param elementName The name of view element. + */ + _shouldRenameElement(elementName) { + const name = elementName.toLowerCase(); + return this.renderingMode === 'editing' && this.unsafeElements.includes(name); + } + /** + * Return a element with a special attribute holding the name of the original element. + * Optionally, copy all the attributes of the original element if that element is provided. + * + * @param elementName The name of view element. + * @param originalDomElement The original DOM element to copy attributes and content from. + */ + _createReplacementDomElement(elementName, originalDomElement) { + const newDomElement = this._domDocument.createElement('span'); + // Mark the span replacing a script as hidden. + newDomElement.setAttribute(UNSAFE_ELEMENT_REPLACEMENT_ATTRIBUTE, elementName); + if (originalDomElement) { + while (originalDomElement.firstChild) { + newDomElement.appendChild(originalDomElement.firstChild); + } + for (const attributeName of originalDomElement.getAttributeNames()) { + newDomElement.setAttribute(attributeName, originalDomElement.getAttribute(attributeName)); + } + } + return newDomElement; + } +} +/** + * Helper function. + * Used to check if given native `Element` or `Text` node has parent with tag name from `types` array. + * + * @returns`true` if such parent exists or `false` if it does not. + */ +function _hasDomParentOfType(node, types) { + const parents = getAncestors(node); + return parents.some(parent => parent.tagName && types.includes(parent.tagName.toLowerCase())); +} +/** + * A helper that executes given callback for each DOM node's ancestor, starting from the given node + * and ending in document#documentElement. + * + * @param callback A callback to be executed for each ancestor. + */ +function forEachDomElementAncestor(element, callback) { + let node = element; + while (node) { + callback(node); + node = node.parentElement; + } +} +/** + * Checks if given node is a nbsp block filler. + * + * A   is a block filler only if it is a single child of a block element. + * + * @param domNode DOM node. + */ +function isNbspBlockFiller(domNode, blockElements) { + const isNBSP = domNode.isEqualNode(NBSP_FILLER_REF); + return isNBSP && hasBlockParent(domNode, blockElements) && domNode.parentNode.childNodes.length === 1; +} +/** + * Checks if domNode has block parent. + * + * @param domNode DOM node. + */ +function hasBlockParent(domNode, blockElements) { + const parent = domNode.parentNode; + return !!parent && !!parent.tagName && blockElements.includes(parent.tagName.toLowerCase()); +} +/** + * Log to console the information about element that was replaced. + * Check UNSAFE_ELEMENTS for all recognized unsafe elements. + * + * @param elementName The name of the view element. + */ +function _logUnsafeElement(elementName) { + if (elementName === 'script') { + logWarning('domconverter-unsafe-script-element-detected'); + } + if (elementName === 'style') { + logWarning('domconverter-unsafe-style-element-detected'); + } +} +/** + * While rendering the editor content, the {@link module:engine/view/domconverter~DomConverter} detected a ` diff --git a/resources/ts/components/WinNotification.vue b/resources/ts/components/WinNotification.vue new file mode 100644 index 0000000..39c3f0c --- /dev/null +++ b/resources/ts/components/WinNotification.vue @@ -0,0 +1,107 @@ + + + diff --git a/resources/ts/components/WordCounterComponent.vue b/resources/ts/components/WordCounterComponent.vue new file mode 100644 index 0000000..5723be9 --- /dev/null +++ b/resources/ts/components/WordCounterComponent.vue @@ -0,0 +1,123 @@ + + + + + diff --git a/resources/ts/env.d.ts b/resources/ts/env.d.ts new file mode 100644 index 0000000..3c968ec --- /dev/null +++ b/resources/ts/env.d.ts @@ -0,0 +1,12 @@ +/// + +declare module "*.vue" { + import type { DefineComponent } from "vue"; + // eslint-disable-next-line @typescript-eslint/no-explicit-any, @typescript-eslint/ban-types + const component: DefineComponent<{}, {}, any>; + + export interface GlobalComponents { + FontAwesomeIcon: DefineComponent>; + } + export default component; +} diff --git a/resources/ts/front-definition.d.ts b/resources/ts/front-definition.d.ts new file mode 100644 index 0000000..8b13789 --- /dev/null +++ b/resources/ts/front-definition.d.ts @@ -0,0 +1 @@ + diff --git a/resources/ts/index.d.ts b/resources/ts/index.d.ts new file mode 100644 index 0000000..16e522f --- /dev/null +++ b/resources/ts/index.d.ts @@ -0,0 +1,87 @@ +export { }; +import type VueTagsInput from "@sipec/vue3-tags-input"; +import { AxiosStatic } from "axios"; + +// * Enum +interface EnumInterface { + label: string; + value: number | string; +} + +// * Laravel Paginator + +interface PaginatorLink { + url: null | string; + label: string; + active: boolean; +} + +interface Paginator { + current_page: number; + first_page_url: string; + from: number; + last_page: number; + last_page_url: string; + links: Array; + next_page_url: string | null; + path: string; + per_page: number; + prev_page_url: string | null; + to: number; + total: number; +} + +// * Recursive List +type StringList = Record; +interface NestedStringListInterface + extends Record {} + +// * Recursive List +type NumberList = Record; +interface NestedNumberListInterface + extends Record {} + +// * Recursive List +type Model = Record< + string, + | string + | boolean + | number + | object + | NestedStringList + | NestedNumberList + | NestedModelInterface + | ModelListInterface +>; +interface NestedModelInterface extends Model {} + +type NestedStringList = NestedStringListInterface | StringList | string; +type NestedNumberList = NestedNumberListInterface | NumberList | number; + +type ModelList = Array; +interface ModelListInterface extends ModelList {} + +declare global { + type CustomTag = LaravelModel & VueTagsInput.ITag; + type LaravelModel = Model; + type LaravelModelList = ModelList; + type LaravelPaginator = Paginator; + type LaravelPaginatorLink = PaginatorLink; + + type Enum = EnumInterface; + + interface Window { + axios: AxiosStatic; + Swal: Function; + vueDebug: boolean | undefined; + __SYSTEM: { + _asset: string; + _locale: string; + _routes: Record; + _translations: { + json: NestedStringList; + php: NestedStringList; + }; + }; + } +} diff --git a/resources/ts/libs/hash_to_color.ts b/resources/ts/libs/hash_to_color.ts new file mode 100644 index 0000000..597575b --- /dev/null +++ b/resources/ts/libs/hash_to_color.ts @@ -0,0 +1,40 @@ + +export class HashToColor { + private static buffer2dwords(buffer: ArrayBufferLike): number[] { + const r = []; + const bytes = new DataView(buffer); + + for (let i = 0; i < bytes.byteLength; i+=4) + r.push(bytes.getUint32(i)); + + return r; + } + + private static solidGradient(colors: string[]){ + if(colors.length == 1) return colors[0]; + const s = 100/colors.length; + + return "linear-gradient(to right ," + colors.map((v,i) => { + return v + " " + i*s + "%," + v + " " + (i+1)*s + "%"; + }).join() + ")"; + } + + private static dword2rgba(i: number){ + return "rgba(" + [(i>> 24) & 255, (i>> 16) & 255, (i>> 8) & 255, (i & 255)/255].join() + ")"; + } + + public static generate(hash: string, element: HTMLElement) { + const buffer = new TextEncoder().encode(hash); + crypto.subtle.digest("SHA-1", buffer).then((buf) => { + const dw: number[] = this.buffer2dwords(buf); + const xor: number = dw.reduce((a, b) => a ^ b, 0); + + element.style.setProperty("background", this.dword2rgba(xor), "important"); + element.style.setProperty("background-image", this.solidGradient(dw.map(this.dword2rgba)), "important"); + element.style.setProperty("background-repeat", "unset", "important"); + element.style.setProperty("box-shadow", "unset", "important"); + }); + } +} + + diff --git a/resources/ts/modules/asset.ts b/resources/ts/modules/asset.ts new file mode 100644 index 0000000..f4e7ea8 --- /dev/null +++ b/resources/ts/modules/asset.ts @@ -0,0 +1,7 @@ +export default { + methods: { + asset(path: string) { + return `${window.__SYSTEM._asset}${path}`; + }, + }, +}; diff --git a/resources/ts/modules/bsTooltips.ts b/resources/ts/modules/bsTooltips.ts new file mode 100644 index 0000000..6467bcd --- /dev/null +++ b/resources/ts/modules/bsTooltips.ts @@ -0,0 +1,26 @@ +import type * as bootstrap from "bootstrap"; + +let tooltips: Array = []; + +export default { + methods: { + initTooltips() { + // Disable tooltips on reboot. + tooltips.forEach((tooltip) => { + tooltip.disable(); + tooltip.hide(); + }); + tooltips = [].slice + .call(document.querySelectorAll("[data-bs-toggle=\"tooltip\"]")) + .map(function (tooltipTriggerEl) { + return new window.bootstrap.Tooltip(tooltipTriggerEl, { + customClass: "large-tooltip", + delay: { + show: 1250, + hide: 0, + }, + }); + }); + }, + }, +}; diff --git a/resources/ts/modules/parseLaravelErrorMessages.ts b/resources/ts/modules/parseLaravelErrorMessages.ts new file mode 100644 index 0000000..6bcdb69 --- /dev/null +++ b/resources/ts/modules/parseLaravelErrorMessages.ts @@ -0,0 +1,53 @@ +export default { + methods: { + /** + * Parse error messages for a specific input. + * + * @param inputName string + * @param allErrors Record> + * @return string + */ + parseValidationErrors( + allErrors: Record> = {} + ): string | null { + const errorList = Object.values(allErrors); + if (!errorList.length) { + return null; + } + return errorList + .reduce((oldInputErrors: Array | null, inputErrors) => + oldInputErrors + ? oldInputErrors.concat(inputErrors) + : inputErrors + ) + .reduce( + (oldInputString: string | null, inputString: string) => + (oldInputString ? `${oldInputString}, ` : "") + + inputString + ); + }, + /** + * Parse error messages for a specific input. + * + * @param inputName string + * @param allErrors Record> + * @return string + */ + parseValidationInput( + inputName: string, + allErrors: Record> = {} + ): string | null { + let errorList = [] as Array; + Object.keys(allErrors).filter((value, index) => { + if (value == inputName) { + errorList = allErrors[index]; + } + }); + return errorList.length + ? errorList.reduce((oldString: string | null, string) => { + return (oldString ? `${oldString}, ` : "") + string; + }) + : null; + }, + }, +}; diff --git a/resources/ts/modules/route.ts b/resources/ts/modules/route.ts new file mode 100644 index 0000000..955b9aa --- /dev/null +++ b/resources/ts/modules/route.ts @@ -0,0 +1,97 @@ +const route = { + methods: { + /** + * Same behavior as laravel route + * + * ! window.__SYSTEM._routes has to be defined + * + * @param routeName The route name. + * @param parameters Parameters, if a parameter name matches a route path level, + * it will be replaced, otherwise it will appear in query. + * @param keepActualQueries Pass this to keep current url queries. + * @param keepActualHashes Pass this to keep current url fragments + * @returns The newly formated string + */ + route( + routeName: string, + parameters: Record< + string, + string | number | Array + > = {}, + keepActualQueries: boolean = false, + keepActualHashes: boolean = false + ): string | null { + const routes = route.flattenProperties(window.__SYSTEM._routes); + const routeUrl = + Object.keys(routes).indexOf(routeName) !== -1 + ? (routes[routeName] as string) + : null; + + // * Return null if route url could not be found + if (!routeUrl) { + return null; + } + + const queryParameters: Record = {}, + url = new URL(window.location.origin), + searchParams = new URL(String(window.location)).searchParams, + hash = window.location.hash; + let pathname = routeUrl.replace(origin, ""); + + // * Replace parameters in path name. + for (const paramName in parameters) { + const paramValue = String(parameters[paramName]); + if (pathname.indexOf(paramName) !== -1) { + // * Replace pathname part with parameter + pathname = pathname.replace(paramName, paramValue); + } else { + // * push parameter to be in queries + queryParameters[paramName] = paramValue; + } + } + url.pathname = pathname; + + // * Build query + if (keepActualQueries) { + // * Push actual queries + for (const param of searchParams) { + url.searchParams.set(param[0], param[1]); + } + } + // * Push request queries + for (const paramName in queryParameters) { + url.searchParams.set( + paramName, + String(queryParameters[paramName]) + ); + } + + if (keepActualHashes) { + url.hash = hash; + } + + return String(url); + }, + }, + flattenProperties( + obj: Record, + parent: string | null = null, + res: Record = {} + ): Record { + for (const key of Object.keys(obj)) { + const propName = parent ? parent + "." + key : key; + if (obj[key] instanceof Object) { + route.flattenProperties( + obj[key] as Record, + propName, + res + ); + } else { + res[propName] = obj[key]; + } + } + return res; + }, +}; + +export default route; diff --git a/resources/ts/modules/sweetalert.ts b/resources/ts/modules/sweetalert.ts new file mode 100644 index 0000000..225ca5d --- /dev/null +++ b/resources/ts/modules/sweetalert.ts @@ -0,0 +1,110 @@ +import type { SweetAlertResult } from "sweetalert2"; +import confirm from "./sweetalertConfirm"; + +window.addEventListener("DOMContentLoaded", () => { + let elements = document.getElementsByClassName("confirmDeleteJS"); + for (const element of elements) { + element.addEventListener("submit", function (e) { + e.preventDefault(); + const el = e.target; + if (!el || !(el instanceof HTMLFormElement)) { + throw new Error( + "confirmDoneJS can only be executed on an exising form" + ); + } + confirm.methods.confirm( + "Confirmez", + "Voulez-vous vraiment supprimer cet élément ?", + el as HTMLFormElement, + function () { + (el as HTMLFormElement).submit(); + }, + { icon: "error" } + ); + return false; + }); + } + elements = document.getElementsByClassName("confirmDoneJS"); + for (const element of elements) { + element.addEventListener("submit", function (e) { + e.preventDefault(); + const el = e.target; + if (!el || !(el instanceof HTMLFormElement)) { + throw new Error( + "confirmDoneJS can only be executed on an exising form" + ); + } + confirm.methods.confirm( + "Confirmez", + "Voulez-vous vraiment marquer cet élément comme traité ?", + el as HTMLFormElement, + function () { + (el as HTMLFormElement).submit(); + }, + { icon: "info" } + ); + return false; + }); + } + elements = document.getElementsByClassName("confirmSubmitJS"); + for (const element of elements) { + element.addEventListener("submit", function (e) { + e.preventDefault(); + const el = e.target; + if (!el || !(el instanceof HTMLFormElement)) { + throw new Error( + "confirmSubmitJS can only be executed on an exising form" + ); + } + confirm.methods.confirm( + "Confirmez", + "Voulez-vous enregistrer cet élément tel-quel ?", + el as HTMLFormElement, + function () { + (el as HTMLFormElement).submit(); + }, + { icon: "warning" } + ); + return false; + }); + } + elements = document.getElementsByClassName("confirmJS"); + for (const element of elements) { + element.addEventListener( + "click", + function (e) { + if (!element.getAttribute("confirmJS")) { + e.preventDefault(); + const el = e.target; + if (!el || !(el instanceof HTMLElement)) { + throw new Error( + "confirmJS can only be executed on a html element" + ); + } + (async () => { + const promise = new Promise( + (resolve: (value: boolean) => void) => { + confirm.methods.confirm( + "Confirmez", + "Êtes vous sure ?", + el, + function (response: SweetAlertResult) { + resolve(response.isConfirmed); + }, + { icon: "warning" } + ); + return false; + } + ); + if (await promise) { + element.setAttribute("confirmJS", "true"); + el.click(); + element.removeAttribute("confirmJS"); + } + })(); + } + }, + false + ); + } +}); diff --git a/resources/ts/modules/sweetalertConfirm.ts b/resources/ts/modules/sweetalertConfirm.ts new file mode 100644 index 0000000..04f4e87 --- /dev/null +++ b/resources/ts/modules/sweetalertConfirm.ts @@ -0,0 +1,100 @@ +// SweetAlert +import type { SweetAlertOptions, SweetAlertResult } from "sweetalert2"; +import Swal from "sweetalert2"; + +import * as trans from "../modules/trans"; + +export default { + methods: { + confirm( + title: string, + text: string = "", + self: Object, + after: (response: SweetAlertResult) => void = () => {}, + options: SweetAlertOptions = {} + ) { + if (!self) { + throw Error("self is needed to set \"this\" on callback"); + } + if (!after) { + throw Error("callback is needed when using confirm"); + } + const icon = options.icon ?? "warning"; + Swal.fire({ + title: title, + text: text, + color: getComputedStyle(document.body).getPropertyValue("--bs-body-color"), + icon: icon, + showCancelButton: true, + confirmButtonText: + options.confirmButtonText ?? + trans.default.methods.__("Oui"), + cancelButtonText: + options.cancelButtonText ?? + trans.default.methods.__("Annuler"), + reverseButtons: true, + // * Bootstrap Styling + customClass: { + confirmButton: "btn btn-primary mx-1", + cancelButton: "btn btn-danger mx-1", + }, + buttonsStyling: false, + background: getComputedStyle(document.body).getPropertyValue("--bs-body-bg"), + }).then((result) => { + if (result.isConfirmed) { + if (after) { + after.apply(self, [result]); + } + } else if ( + /* Read more about handling dismissals below */ + result.dismiss === Swal.DismissReason.cancel + ) { + Swal.fire({ + title: trans.default.methods.__( + "L'opération n'as pas été effectuée" + ), + color: getComputedStyle(document.body).getPropertyValue("--bs-body-color"), + confirmButtonText: trans.default.methods.__("Ok"), + // * Bootstrap Styling + customClass: { + confirmButton: "btn btn-primary", + }, + buttonsStyling: false, + background: getComputedStyle(document.body).getPropertyValue("--bs-body-bg"), + }); + } + }); + return false; + }, + alert( + title: string, + text: string = "", + self: HTMLElement | null = null, + after: ((response: SweetAlertResult) => void) | null = null, + options: SweetAlertOptions = {} + ) { + const icon = options.icon ?? "info"; + Swal.fire({ + title: title, + text: text, + color: getComputedStyle(document.body).getPropertyValue("--bs-body-color"), + icon: icon, + // * Bootstrap Styling + customClass: { + confirmButton: "btn btn-lg btn-primary", + }, + buttonsStyling: false, + background: getComputedStyle(document.body).getPropertyValue("--bs-body-bg"), + }).then((result) => { + if (after) { + if (self) { + after.apply(self, [result]); + } else { + after(result); + } + } + }); + return false; + }, + }, +}; diff --git a/resources/ts/modules/toast.ts b/resources/ts/modules/toast.ts new file mode 100644 index 0000000..d71b6ea --- /dev/null +++ b/resources/ts/modules/toast.ts @@ -0,0 +1,34 @@ +import type { Options } from "toastify-js"; +import * as Toastify from "toastify-js"; + +export default { + methods: { + toast( + message: string, + duration = 4000, + className = "notifications" + ): void { + const options: Options = { + duration: duration, + newWindow: false, + close: true, + className: className, + gravity: "top", + offset: { + x: "2em", + y: "3em", + }, + // * Prevents dismissing of toast on hover + stopOnFocus: true, + }; + options.text = message; + Toastify.default(options).showToast(); + }, + notify(message: string, duration = 4000): void { + this.toast(message, duration, "notifications"); + }, + errorNotify(message: string, duration = 4000): void { + this.toast(message, duration, "notifications error"); + }, + }, +}; diff --git a/resources/ts/modules/trans.ts b/resources/ts/modules/trans.ts new file mode 100644 index 0000000..bd6b393 --- /dev/null +++ b/resources/ts/modules/trans.ts @@ -0,0 +1,49 @@ +export default { + data() { + return { + locale: window.__SYSTEM._locale, + }; + }, + methods: { + /** + * Translate the given key. + */ + __(key: string, replace: Record = {}): string { + let translation: string, + translationNotFound = true; + + try { + translation = key + .split(".") + .reduce( + (t, i) => t[i as any] ?? null, + window.__SYSTEM._translations.php + ) as string; + if (translation) { + translationNotFound = false; + } + } catch (e) { + translation = key; + } + + if (translationNotFound) { + translation = (window.__SYSTEM._translations.json[key as any] ?? + key) as string; + } + const vars = translation.match(/:[0-9A-Za-z_]+/g); + if (vars) { + for (const match of vars) { + try { + translation = translation.replace( + new RegExp(match, "g"), + replace[match.substring(1)] + ); + } catch (e) { + console.error("String replace failed ", e); + } + } + } + return translation; + }, + }, +}; diff --git a/resources/ts/pages/settings.ts b/resources/ts/pages/settings.ts new file mode 100644 index 0000000..ebb39d7 --- /dev/null +++ b/resources/ts/pages/settings.ts @@ -0,0 +1,108 @@ +import { HashToColor } from "../libs/hash_to_color"; + +document.addEventListener("DOMContentLoaded", function () { + if (!document.querySelector("main.settings-page")) { + // * We are not on settings page + return; + } + + const codesHashSettings = document.getElementById("serial-key-hash"); + + if (codesHashSettings) { + HashToColor.generate(String(codesHashSettings.textContent), codesHashSettings); + } + + // Submit button clone. + const submit = document.getElementById("formSubmit"), + submitClone = document.getElementById("formSubmitClone"); + + if(submitClone && submit) { + submitClone.addEventListener("click", (event) => { + event.preventDefault(); + submit.click(); + }); + } + + const inputDiscountsActivated = document.querySelector("input[name=discounts_activated]") as HTMLInputElement | null; + const inputActivatedClosePage = document.querySelector("input[name=activated_close_page]") as HTMLInputElement | null; + + const discountsSite = document.getElementById("discounts-site") as HTMLElement | null; + const discountsCampaign = document.getElementById("discounts-campaign") as HTMLElement | null; + const discountsWebCoupons = document.getElementById("discounts-web-coupons") as HTMLElement | null; + + const closePageActiveDate = document.getElementById("close-page-active-date"); + + const settingsClosePageActiveDate = document.getElementById("settings-close-page-active-date") as HTMLInputElement | null; + const settingsDiscountsSite = document.getElementById("settings-discounts-site") as HTMLInputElement | null; + const settingsDiscountsCampaign = document.getElementById("settings-discounts-campaign") as HTMLInputElement | null; + + if (!inputDiscountsActivated) { + throw new Error("Missing input[name=discounts_activated]"); + } + if (!inputActivatedClosePage) { + throw new Error("Missing input[name=activated_close_page]"); + } + if (!discountsSite) { + throw new Error("Missing #discounts-site"); + } + if (!discountsCampaign) { + throw new Error("Missing #discounts-campaign"); + } + if (!discountsWebCoupons) { + throw new Error("Missing #discounts-web-coupons"); + } + if (!closePageActiveDate) { + throw new Error("Missing #close-page-active-date"); + } + if (!settingsClosePageActiveDate) { + throw new Error("Missing #settings-close-page-active-date"); + } + if (!settingsDiscountsSite) { + throw new Error("Missing #settings-discounts-site"); + } + if (!settingsDiscountsCampaign) { + throw new Error("Missing #settings-discounts-campaign"); + } + + const discountsWebCouponsInputs = discountsWebCoupons.getElementsByTagName("input"); + + const toggleDiscount = () => { + if (!inputDiscountsActivated.checked) { + discountsSite.style.display = "none"; + discountsCampaign.style.display = "none"; + discountsWebCoupons.style.display = "none"; + settingsDiscountsSite.disabled = true; + settingsDiscountsCampaign.disabled = true; + Array.from(discountsWebCouponsInputs).forEach(element => { + element.disabled = true; + }); + } else { + discountsSite.style.display = ""; + discountsCampaign.style.display = ""; + discountsWebCoupons.style.display = ""; + settingsDiscountsSite.disabled = false; + settingsDiscountsCampaign.disabled = false; + Array.from(discountsWebCouponsInputs).forEach(element => { + element.disabled = false; + }); + } + }; + + const toggleClosePage = () => { + if (!inputActivatedClosePage.checked) { + closePageActiveDate.style.display = "none"; + settingsClosePageActiveDate.disabled = true; + } else { + closePageActiveDate.style.display = ""; + settingsClosePageActiveDate.disabled = false; + } + }; + + // Gestion du tableau pour discount + inputDiscountsActivated.addEventListener("change", toggleDiscount); + toggleDiscount(); + + // Gestion de l'activation de la page de fermeture (champ date à afficher ou non) + inputActivatedClosePage.addEventListener("change", toggleClosePage); + toggleClosePage(); +}); diff --git a/resources/ts/pages/winner-list.ts b/resources/ts/pages/winner-list.ts new file mode 100644 index 0000000..5b848aa --- /dev/null +++ b/resources/ts/pages/winner-list.ts @@ -0,0 +1,31 @@ +import sweetalertConfirm from "../modules/sweetalertConfirm"; +import trans from "../modules/trans"; + +document.addEventListener("DOMContentLoaded", function () { + if (!document.querySelector("main.winner-list-page")) { + // * We are not on settings page + return; + } + + [...document.getElementsByClassName("confirm-mark-sent")].forEach((form) => { + form.addEventListener("submit", function (e) { + e.preventDefault(); + const el = e.target; + if (!el || !(el instanceof HTMLFormElement)) { + throw new Error( + "confirm-mark-sent can only be executed on an exising form" + ); + } + sweetalertConfirm.methods.confirm( + trans.methods.__("Confirmez"), + trans.methods.__("Vous allez marquer le lot comme étant envoyé, le joueur en sera notifié, vous confirmez ?"), + el as HTMLFormElement, + function () { + (el as HTMLFormElement).submit(); + }, + { icon: "question" } + ); + return false; + }); + }); +}); diff --git a/resources/ts/types/@sipec/vue3-tags-input/index.d.ts b/resources/ts/types/@sipec/vue3-tags-input/index.d.ts new file mode 100644 index 0000000..9448a35 --- /dev/null +++ b/resources/ts/types/@sipec/vue3-tags-input/index.d.ts @@ -0,0 +1,49 @@ +declare module "@sipec/vue3-tags-input" { + export namespace VueTagsInput { + export interface ITag { + text: string; + tiClasses: string[]; + } + + export interface IAddArgs { + tag: ITag; + addTag(): void; + } + + export interface IDeleteArgs { + index: number; + tag: ITag; + deleteTag(): void; + } + + export interface IValidation { + classes: string; + rule: (text: string) => boolean | RegExp; + disableAdd?: boolean; + } + } + + export class VueTagsInput { + public get disabled(): boolean; + public get maxlength(): number; + public get placeholder(): string; + public get separators(): string[]; + public get tags(): VueTagsInput.ITag[]; + public get validation(): VueTagsInput.IValidation[]; + + public isSelected(index: number): boolean; + public isMarked(index: number): boolean; + public focus(index: number): void; + public quote(regex: string): void; + public cancelEdit(index: number): void; + public createTagTexts(string: string): VueTagsInput.ITag[]; + public deleteTag(index: number): void; + public beforeAddingTag(tag: VueTagsInput.ITag): void; + public addTag(tag: VueTagsInput.ITag, source?: string): void; + public saveTag(index: number, tag: VueTagsInput.ITag): void; + public tagsChanged(tags: Array): void; + public initTags(): void; + } + + export default VueTagsInput; +} diff --git a/resources/ts/utilities/bootstrap.ts b/resources/ts/utilities/bootstrap.ts new file mode 100644 index 0000000..3457350 --- /dev/null +++ b/resources/ts/utilities/bootstrap.ts @@ -0,0 +1,21 @@ +import axios from "axios"; +import * as bootstrap from "bootstrap"; +import bsTooltips from "./../modules/bsTooltips"; + +/** + * We'll load the axios HTTP library which allows us to easily issue requests + * to our Laravel back-end. This library automatically handles sending the + * CSRF token as a header based on the value of the "XSRF" token cookie. + */ +axios.defaults.headers.common = { + Accept: "application/json, text/plain, */*", + "X-Requested-With": "XMLHttpRequest", + "X-CSRF-TOKEN": document + .querySelector("meta[name=\"csrf-token\"]")! + .getAttribute("content"), +}; + +window.axios = axios; +window.bootstrap = bootstrap; + +bsTooltips.methods.initTooltips(); diff --git a/resources/ts/utilities/fontawesome.ts b/resources/ts/utilities/fontawesome.ts new file mode 100644 index 0000000..d6f9d08 --- /dev/null +++ b/resources/ts/utilities/fontawesome.ts @@ -0,0 +1,107 @@ +import { config, dom, library } from "@fortawesome/fontawesome-svg-core"; +import { + faSquare +} from "@fortawesome/free-regular-svg-icons"; +import { + faArrowAltCircleDown, + faArrowAltCircleUp, + faArrowDown, + faArrowLeft, + faArrowLeftLong, + faArrowRight, + faArrowRightFromBracket, + faArrowUp, + faArrowsAltH, + faArrowsAltV, + faBackspace, + faBan, + faCheck, + faChevronLeft, + faChevronRight, + faCircleCheck, + faCircleExclamation, + faCircleInfo, + faCircleNotch, + faCircleXmark, + faCog, + faCopy, + faCrop, + faDice, + faDoorClosed, + faDoorOpen, + faEraser, + faEye, + faEyeSlash, + faFileExport, + faFolderOpen, + faListUl, + faPaintRoller, + faPencil, + faPlus, + faQuestionCircle, + faRedoAlt, + faSearch, + faSearchMinus, + faSearchPlus, + faSliders, + faSyncAlt, + faTimes, + faTrash, + faUndoAlt, + faUpRightFromSquare, + faWandMagic +} from "@fortawesome/free-solid-svg-icons"; + +config.autoReplaceSvg = false; +library.add(faEraser); +library.add(faArrowLeftLong); +library.add(faPlus); +library.add(faTrash); +library.add(faEye); +library.add(faEyeSlash); +library.add(faFolderOpen); +library.add(faCrop); +library.add(faQuestionCircle); +library.add(faCheck); +library.add(faUndoAlt); +library.add(faRedoAlt); +library.add(faSyncAlt); +library.add(faSearchPlus); +library.add(faSearchMinus); +library.add(faArrowLeft); +library.add(faArrowRight); +library.add(faArrowUp); +library.add(faArrowDown); +library.add(faArrowsAltH); +library.add(faArrowsAltV); +library.add(faWandMagic); +library.add(faPencil); +library.add(faTimes); +library.add(faBackspace); +library.add(faSearch); +library.add(faArrowRightFromBracket); +library.add(faArrowAltCircleDown); +library.add(faArrowAltCircleUp); +library.add(faCircleCheck); +library.add(faCircleXmark); +library.add(faCopy); +library.add(faListUl); +library.add(faBan); +library.add(faCircleExclamation); +library.add(faCircleInfo); +library.add(faPaintRoller); +library.add(faChevronLeft); +library.add(faChevronRight); +library.add(faCircleXmark); +library.add(faCircleNotch); +library.add(faSliders); +library.add(faListUl); +library.add(faCog); +library.add(faFileExport); +library.add(faDoorOpen); +library.add(faDoorClosed); +library.add(faDice); +library.add(faSquare); +library.add(faUpRightFromSquare); + +dom.watch(); diff --git a/resources/ts/utilities/vue-bo.ts b/resources/ts/utilities/vue-bo.ts new file mode 100644 index 0000000..d46a0f4 --- /dev/null +++ b/resources/ts/utilities/vue-bo.ts @@ -0,0 +1,56 @@ +import type { App, Component } from "vue"; +import { createApp } from "vue"; + +document.addEventListener("DOMContentLoaded", () => { + const setupApp = (app: App) => { + app.config.globalProperties.window = window; + app.config.globalProperties.document = document; + }; + + // Register components + /// + const vues = import.meta.glob("./../components/*.vue") as Record< + string, + () => Promise<{ default: Component }> + >; + for (const vueCptName in vues) { + const vueCptPromise = vues[vueCptName]; + let htmlKey = vueCptName.split("/").pop(); + if (!htmlKey) { + throw new Error(`Cannot load ${vueCptName}`); + } + htmlKey = htmlKey + .split(".")[0] + .replace(/\.?([A-Z])/g, function (x, y) { + return "-" + y.toLowerCase(); + }) + .replace(/^-/, "") + .replace("-component", ""); + + const el = document.getElementById(htmlKey), + elGroup = document.getElementsByClassName(htmlKey); + // * Init using ID + if (el) { + vueCptPromise().then((vueParsedFile) => { + const app = createApp(vueParsedFile.default, { + json: el.dataset.json ?? {}, + }); + setupApp(app); + app.mount(el); + }); + } + // * Init Using class + for (const grpEl of elGroup) { + // * Hack to prevent loop weirdness + vueCptPromise().then((vueParsedFile) => { + setTimeout(() => { + const app = createApp(vueParsedFile.default, { + json: (grpEl as HTMLElement).dataset.json ?? {}, + }); + setupApp(app); + app.mount(grpEl); + }, 500); + }); + } + } +}); diff --git a/resources/views/auth/login.blade.php b/resources/views/auth/login.blade.php new file mode 100644 index 0000000..41b4140 --- /dev/null +++ b/resources/views/auth/login.blade.php @@ -0,0 +1,68 @@ +@extends('back::layout') +@section('title', __('Authentification')) +@section('description', __('Formulaire d\'authentification au back-office.')) + +@section('content') +
                                                                                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                                                                                            {{ __('Connexion') }}
                                                                                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                                                                                            + @csrf +
                                                                                                                                                                                                                                                                                                                                            + +
                                                                                                                                                                                                                                                                                                                                            + + @error('email') + + {{ $message }} + + @enderror +
                                                                                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                                                                                            + +
                                                                                                                                                                                                                                                                                                                                            + + @error('password') + + {{ $message }} + + @enderror +
                                                                                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                                                                                            + + +
                                                                                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                                                                                            + + @if (Route::has('bo.password.request')) + + {{ __('Mot de passe oublié ?') }} + + @endif +
                                                                                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                                                                                            +@endsection diff --git a/resources/views/bo/banned-ip/index.blade.php b/resources/views/bo/banned-ip/index.blade.php deleted file mode 100644 index a9342c9..0000000 --- a/resources/views/bo/banned-ip/index.blade.php +++ /dev/null @@ -1,5 +0,0 @@ -@extends('layouts.bo') - -@section('content') - -@endsection diff --git a/resources/views/bo/codes-ean/index.blade.php b/resources/views/bo/codes-ean/index.blade.php deleted file mode 100644 index b168ef4..0000000 --- a/resources/views/bo/codes-ean/index.blade.php +++ /dev/null @@ -1,5 +0,0 @@ -@extends('layouts.bo') - -@section('content') - -@endsection diff --git a/resources/views/bo/codes/index.blade.php b/resources/views/bo/codes/index.blade.php deleted file mode 100644 index 2ee6f7c..0000000 --- a/resources/views/bo/codes/index.blade.php +++ /dev/null @@ -1,109 +0,0 @@ -@extends('layouts.bo') - -@section('content') -
                                                                                                                                                                                                                                                                                                                                            -
                                                                                                                                                                                                                                                                                                                                            - {{ __('Gestion des codes uniques') }} - - - @include('bo.codes.search-form') - - - -
                                                                                                                                                                                                                                                                                                                                            - -
                                                                                                                                                                                                                                                                                                                                            - @csrf -
                                                                                                                                                                                                                                                                                                                                            -

                                                                                                                                                                                                                                                                                                                                            {{__('Nombre de code(s)') }}

                                                                                                                                                                                                                                                                                                                                            -
                                                                                                                                                                                                                                                                                                                                              -
                                                                                                                                                                                                                                                                                                                                            • {{ __('en base') }} : {{$nbCodeBase}}
                                                                                                                                                                                                                                                                                                                                            • -
                                                                                                                                                                                                                                                                                                                                            • {{ __('utilisé(s)') }} : {{$nbCodeUsed}}
                                                                                                                                                                                                                                                                                                                                            • -
                                                                                                                                                                                                                                                                                                                                            • {{ __('déjà exporté(s)') }} : {{ $nbCodeExported }}
                                                                                                                                                                                                                                                                                                                                            • -
                                                                                                                                                                                                                                                                                                                                            • {{ __('restant à exporté(s)') }} : {{$nbCodeRemainingToExport}}
                                                                                                                                                                                                                                                                                                                                            • -
                                                                                                                                                                                                                                                                                                                                            -
                                                                                                                                                                                                                                                                                                                                            -
                                                                                                                                                                                                                                                                                                                                            - - - - -
                                                                                                                                                                                                                                                                                                                                            - {{ __('Il est possible de générer') }} 0 {{ __('codes uniques.') }}
                                                                                                                                                                                                                                                                                                                                            - {{ __('!! Si la longueur des codes est changé l\'export pourra prendre plus de temps. !!') }} -
                                                                                                                                                                                                                                                                                                                                            - -
                                                                                                                                                                                                                                                                                                                                            -
                                                                                                                                                                                                                                                                                                                                            -@endsection - -@push('scripts') - -@endpush diff --git a/resources/views/bo/codes/search-form.blade.php b/resources/views/bo/codes/search-form.blade.php deleted file mode 100644 index d86ebad..0000000 --- a/resources/views/bo/codes/search-form.blade.php +++ /dev/null @@ -1,8 +0,0 @@ -
                                                                                                                                                                                                                                                                                                                                            -
                                                                                                                                                                                                                                                                                                                                            - -
                                                                                                                                                                                                                                                                                                                                            - -
                                                                                                                                                                                                                                                                                                                                            -
                                                                                                                                                                                                                                                                                                                                            -
                                                                                                                                                                                                                                                                                                                                            diff --git a/resources/views/bo/codes/search.blade.php b/resources/views/bo/codes/search.blade.php deleted file mode 100644 index 57f7e37..0000000 --- a/resources/views/bo/codes/search.blade.php +++ /dev/null @@ -1,22 +0,0 @@ -@extends('layouts.bo') - -@section('content') -
                                                                                                                                                                                                                                                                                                                                            -
                                                                                                                                                                                                                                                                                                                                            - {{ __('Gestion des codes uniques') }} - {{ __('Recherche de code unique') }} - @include('bo.codes.search-form') -
                                                                                                                                                                                                                                                                                                                                            -
                                                                                                                                                                                                                                                                                                                                            - @if(!$code) - {{ __('Veuillez entrer un code ci-dessus pour en obtenir les informations.') }} - @else -

                                                                                                                                                                                                                                                                                                                                            {{ __('Voici l\'état du code trouvé') }}

                                                                                                                                                                                                                                                                                                                                            -

                                                                                                                                                                                                                                                                                                                                            {{ __('Code : :code', ['code' => request()->code]) }}

                                                                                                                                                                                                                                                                                                                                            -

                                                                                                                                                                                                                                                                                                                                            {{ __('ID : :id', ['id' => $code->id]) }}

                                                                                                                                                                                                                                                                                                                                            -

                                                                                                                                                                                                                                                                                                                                            {{ __('Utilisé ? : :used', ['used' => $code->code_used ? 'OUI' : 'NON']) }}

                                                                                                                                                                                                                                                                                                                                            -

                                                                                                                                                                                                                                                                                                                                            {{ __('Exporté ? : :exported', ['exported' => $code->code_exported ? 'OUI' : 'NON']) }}

                                                                                                                                                                                                                                                                                                                                            -

                                                                                                                                                                                                                                                                                                                                            {{ __('Créé le : :date_creation', ['date_creation' => $code->date_creation]) }}

                                                                                                                                                                                                                                                                                                                                            - @endif -
                                                                                                                                                                                                                                                                                                                                            -
                                                                                                                                                                                                                                                                                                                                            -@endsection diff --git a/resources/views/bo/content/manage.blade.php b/resources/views/bo/content/manage.blade.php deleted file mode 100644 index 6ae6915..0000000 --- a/resources/views/bo/content/manage.blade.php +++ /dev/null @@ -1,51 +0,0 @@ -@extends('layouts.bo') - -@section('content') -
                                                                                                                                                                                                                                                                                                                                            -
                                                                                                                                                                                                                                                                                                                                            - {{ ucfirst($content->key) }} -
                                                                                                                                                                                                                                                                                                                                            - -
                                                                                                                                                                                                                                                                                                                                            - @method('PUT') - @csrf -
                                                                                                                                                                                                                                                                                                                                            -
                                                                                                                                                                                                                                                                                                                                            -
                                                                                                                                                                                                                                                                                                                                            -
                                                                                                                                                                                                                                                                                                                                            - -
                                                                                                                                                                                                                                                                                                                                            -
                                                                                                                                                                                                                                                                                                                                            -
                                                                                                                                                                                                                                                                                                                                            -
                                                                                                                                                                                                                                                                                                                                            - -
                                                                                                                                                                                                                                                                                                                                            -
                                                                                                                                                                                                                                                                                                                                            -@endsection - -@push('scripts') - -@endpush diff --git a/resources/views/bo/dashboard/index.blade.php b/resources/views/bo/dashboard/index.blade.php deleted file mode 100644 index ac9c580..0000000 --- a/resources/views/bo/dashboard/index.blade.php +++ /dev/null @@ -1,54 +0,0 @@ -@extends('layouts.bo') - -@section('content') -

                                                                                                                                                                                                                                                                                                                                            Tableau de bord

                                                                                                                                                                                                                                                                                                                                            -
                                                                                                                                                                                                                                                                                                                                            -

                                                                                                                                                                                                                                                                                                                                            - Nombre de participations total : {{ $totalParticipation }}
                                                                                                                                                                                                                                                                                                                                            - Nombre de participations moyenne par joueur : {{ $avgParticipUser }}
                                                                                                                                                                                                                                                                                                                                            - @if ($settings->use_ean_codes === 1) - Top 3 des codes EAN les plus utilisés : -

                                                                                                                                                                                                                                                                                                                                              - @foreach ($codesEan as $codeEan) -
                                                                                                                                                                                                                                                                                                                                            • {{ $codeEan->code_ean_value }} : {{ $codeEan->nb_usage }}
                                                                                                                                                                                                                                                                                                                                            • - @endforeach -
                                                                                                                                                                                                                                                                                                                                            - @endif -

                                                                                                                                                                                                                                                                                                                                            -
                                                                                                                                                                                                                                                                                                                                            - -@endsection - -@push('scripts') - -@endpush diff --git a/resources/views/bo/faq-questions/index.blade.php b/resources/views/bo/faq-questions/index.blade.php deleted file mode 100644 index f744e55..0000000 --- a/resources/views/bo/faq-questions/index.blade.php +++ /dev/null @@ -1,5 +0,0 @@ -@extends('layouts.bo') - -@section('content') - -@endsection diff --git a/resources/views/bo/faq-themes/index.blade.php b/resources/views/bo/faq-themes/index.blade.php deleted file mode 100644 index 5a8783f..0000000 --- a/resources/views/bo/faq-themes/index.blade.php +++ /dev/null @@ -1,5 +0,0 @@ -@extends('layouts.bo') - -@section('content') - -@endsection diff --git a/resources/views/bo/gain-views/index.blade.php b/resources/views/bo/gain-views/index.blade.php deleted file mode 100644 index 1044d41..0000000 --- a/resources/views/bo/gain-views/index.blade.php +++ /dev/null @@ -1,5 +0,0 @@ -@extends('layouts.bo') - -@section('content') - -@endsection diff --git a/resources/views/bo/instant-win/index.blade.php b/resources/views/bo/instant-win/index.blade.php deleted file mode 100644 index 5a53325..0000000 --- a/resources/views/bo/instant-win/index.blade.php +++ /dev/null @@ -1,5 +0,0 @@ -@extends('layouts.bo') - -@section('content') - -@endsection diff --git a/resources/views/bo/mails/export-codes-unique-email.blade.php b/resources/views/bo/mails/export-codes-unique-email.blade.php deleted file mode 100644 index 3175cd6..0000000 --- a/resources/views/bo/mails/export-codes-unique-email.blade.php +++ /dev/null @@ -1,10 +0,0 @@ -

                                                                                                                                                                                                                                                                                                                                            Bonjour,

                                                                                                                                                                                                                                                                                                                                            -

                                                                                                                                                                                                                                                                                                                                            L'export des codes uniques est terminé, nom de l'archive : CodesUniques_{{ date('dmY') }}.zip

                                                                                                                                                                                                                                                                                                                                            -

                                                                                                                                                                                                                                                                                                                                            - Paramètres utilisés pour la génération : -

                                                                                                                                                                                                                                                                                                                                              -
                                                                                                                                                                                                                                                                                                                                            • Nombre de code par fichier : {{ $nbCodeFic }}
                                                                                                                                                                                                                                                                                                                                            • -
                                                                                                                                                                                                                                                                                                                                            • Nombre total de code à exporter : {{ $nbCodeTot }}
                                                                                                                                                                                                                                                                                                                                            • -
                                                                                                                                                                                                                                                                                                                                            • Nombre de code par ligne : {{ $nbCodeLigne }}
                                                                                                                                                                                                                                                                                                                                            • -
                                                                                                                                                                                                                                                                                                                                            -

                                                                                                                                                                                                                                                                                                                                            diff --git a/resources/views/bo/mails/generate-end-email.blade.php b/resources/views/bo/mails/generate-end-email.blade.php deleted file mode 100644 index 80603b7..0000000 --- a/resources/views/bo/mails/generate-end-email.blade.php +++ /dev/null @@ -1 +0,0 @@ -

                                                                                                                                                                                                                                                                                                                                            Génération des {{$quantity}} codes uniques terminés sur le jeu {{$gameName}}.

                                                                                                                                                                                                                                                                                                                                            diff --git a/resources/views/bo/mails/job-failed.blade.php b/resources/views/bo/mails/job-failed.blade.php deleted file mode 100644 index ba1b050..0000000 --- a/resources/views/bo/mails/job-failed.blade.php +++ /dev/null @@ -1,17 +0,0 @@ - - - - - - - - - -

                                                                                                                                                                                                                                                                                                                                            - Job : {{ $job }}

                                                                                                                                                                                                                                                                                                                                            - Exception : {{ $exception['message'] }}

                                                                                                                                                                                                                                                                                                                                            - Trace :
                                                                                                                                                                                                                                                                                                                                            - {{ $exception['trace'] }} -

                                                                                                                                                                                                                                                                                                                                            - - diff --git a/resources/views/bo/prizes/index.blade.php b/resources/views/bo/prizes/index.blade.php deleted file mode 100644 index d7b560a..0000000 --- a/resources/views/bo/prizes/index.blade.php +++ /dev/null @@ -1,5 +0,0 @@ -@extends('layouts.bo') - -@section('content') - -@endsection diff --git a/resources/views/bo/products/create.blade.php b/resources/views/bo/products/create.blade.php deleted file mode 100644 index f28cad0..0000000 --- a/resources/views/bo/products/create.blade.php +++ /dev/null @@ -1,27 +0,0 @@ -@extends('layouts.bo') - -@section('content') -
                                                                                                                                                                                                                                                                                                                                            -
                                                                                                                                                                                                                                                                                                                                            - @csrf -
                                                                                                                                                                                                                                                                                                                                            -
                                                                                                                                                                                                                                                                                                                                            -
                                                                                                                                                                                                                                                                                                                                            - < Produit Porteur - Ajout -
                                                                                                                                                                                                                                                                                                                                            -
                                                                                                                                                                                                                                                                                                                                            - -
                                                                                                                                                                                                                                                                                                                                            -
                                                                                                                                                                                                                                                                                                                                            - -
                                                                                                                                                                                                                                                                                                                                            -
                                                                                                                                                                                                                                                                                                                                            -
                                                                                                                                                                                                                                                                                                                                            -
                                                                                                                                                                                                                                                                                                                                            - @include('bo.products.input-forms') -
                                                                                                                                                                                                                                                                                                                                            -
                                                                                                                                                                                                                                                                                                                                            -
                                                                                                                                                                                                                                                                                                                                            -@endsection diff --git a/resources/views/bo/products/edit.blade.php b/resources/views/bo/products/edit.blade.php deleted file mode 100644 index db5fa76..0000000 --- a/resources/views/bo/products/edit.blade.php +++ /dev/null @@ -1,30 +0,0 @@ -@extends('layouts.bo') - -@section('content') -
                                                                                                                                                                                                                                                                                                                                            -
                                                                                                                                                                                                                                                                                                                                            - @method('PUT') - @csrf -
                                                                                                                                                                                                                                                                                                                                            -
                                                                                                                                                                                                                                                                                                                                            -
                                                                                                                                                                                                                                                                                                                                            - < Produit Porteur - Modification -
                                                                                                                                                                                                                                                                                                                                            -
                                                                                                                                                                                                                                                                                                                                            - @if (session('success')) - {{ session('success') }} - @endif -
                                                                                                                                                                                                                                                                                                                                            -
                                                                                                                                                                                                                                                                                                                                            - -
                                                                                                                                                                                                                                                                                                                                            -
                                                                                                                                                                                                                                                                                                                                            -
                                                                                                                                                                                                                                                                                                                                            -
                                                                                                                                                                                                                                                                                                                                            - @include('bo.products.input-forms') -
                                                                                                                                                                                                                                                                                                                                            -
                                                                                                                                                                                                                                                                                                                                            -
                                                                                                                                                                                                                                                                                                                                            -@endsection diff --git a/resources/views/bo/products/index.blade.php b/resources/views/bo/products/index.blade.php deleted file mode 100644 index bfb8cdb..0000000 --- a/resources/views/bo/products/index.blade.php +++ /dev/null @@ -1,66 +0,0 @@ -@extends('layouts.bo') - -@section('content') -
                                                                                                                                                                                                                                                                                                                                            -
                                                                                                                                                                                                                                                                                                                                            -
                                                                                                                                                                                                                                                                                                                                            -
                                                                                                                                                                                                                                                                                                                                            - Produits Porteur -
                                                                                                                                                                                                                                                                                                                                            -
                                                                                                                                                                                                                                                                                                                                            - -
                                                                                                                                                                                                                                                                                                                                            - -
                                                                                                                                                                                                                                                                                                                                            -
                                                                                                                                                                                                                                                                                                                                            -
                                                                                                                                                                                                                                                                                                                                            - @if ($errors->any()) -
                                                                                                                                                                                                                                                                                                                                            -
                                                                                                                                                                                                                                                                                                                                              - @foreach ($errors->all() as $error) -
                                                                                                                                                                                                                                                                                                                                            • {{ $error }}
                                                                                                                                                                                                                                                                                                                                            • - @endforeach -
                                                                                                                                                                                                                                                                                                                                            -
                                                                                                                                                                                                                                                                                                                                            - @endif - - - - - - - - - - @foreach($products as $product) - - - - - - - - @endforeach - -
                                                                                                                                                                                                                                                                                                                                            N° ArticleLibelléEANImage
                                                                                                                                                                                                                                                                                                                                            {{$product->no_art}}{{$product->name}}{{$product->code_ean}} - @if($product->picture) - - {{$product->name}} - - @endif - - Modifier -
                                                                                                                                                                                                                                                                                                                                            - @method('DELETE') - @csrf - -
                                                                                                                                                                                                                                                                                                                                            -
                                                                                                                                                                                                                                                                                                                                            -
                                                                                                                                                                                                                                                                                                                                            -
                                                                                                                                                                                                                                                                                                                                            -@endsection diff --git a/resources/views/bo/products/input-forms.blade.php b/resources/views/bo/products/input-forms.blade.php deleted file mode 100644 index 97db738..0000000 --- a/resources/views/bo/products/input-forms.blade.php +++ /dev/null @@ -1,38 +0,0 @@ -
                                                                                                                                                                                                                                                                                                                                            - - -
                                                                                                                                                                                                                                                                                                                                            -
                                                                                                                                                                                                                                                                                                                                            - - -
                                                                                                                                                                                                                                                                                                                                            -
                                                                                                                                                                                                                                                                                                                                            - - -
                                                                                                                                                                                                                                                                                                                                            -
                                                                                                                                                                                                                                                                                                                                            -
                                                                                                                                                                                                                                                                                                                                            - - @if (isset($product->picture) and $product->picture !== null) -
                                                                                                                                                                                                                                                                                                                                            -
                                                                                                                                                                                                                                                                                                                                            - - {{$product->name}} - - @endif -
                                                                                                                                                                                                                                                                                                                                            -
                                                                                                                                                                                                                                                                                                                                            -
                                                                                                                                                                                                                                                                                                                                            -
                                                                                                                                                                                                                                                                                                                                            - -
                                                                                                                                                                                                                                                                                                                                            - -
                                                                                                                                                                                                                                                                                                                                            -
                                                                                                                                                                                                                                                                                                                                            diff --git a/resources/views/bo/ranges/create.blade.php b/resources/views/bo/ranges/create.blade.php deleted file mode 100644 index 37dbb25..0000000 --- a/resources/views/bo/ranges/create.blade.php +++ /dev/null @@ -1,27 +0,0 @@ -@extends('layouts.bo') - -@section('content') -
                                                                                                                                                                                                                                                                                                                                            -
                                                                                                                                                                                                                                                                                                                                            - @csrf -
                                                                                                                                                                                                                                                                                                                                            -
                                                                                                                                                                                                                                                                                                                                            -
                                                                                                                                                                                                                                                                                                                                            - <{{ __('Gammes - Ajout') }} -
                                                                                                                                                                                                                                                                                                                                            -
                                                                                                                                                                                                                                                                                                                                            - -
                                                                                                                                                                                                                                                                                                                                            -
                                                                                                                                                                                                                                                                                                                                            - -
                                                                                                                                                                                                                                                                                                                                            -
                                                                                                                                                                                                                                                                                                                                            -
                                                                                                                                                                                                                                                                                                                                            -
                                                                                                                                                                                                                                                                                                                                            - @include('bo.ranges.input-forms') -
                                                                                                                                                                                                                                                                                                                                            -
                                                                                                                                                                                                                                                                                                                                            -
                                                                                                                                                                                                                                                                                                                                            -@endsection diff --git a/resources/views/bo/ranges/edit.blade.php b/resources/views/bo/ranges/edit.blade.php deleted file mode 100644 index 6a60b6b..0000000 --- a/resources/views/bo/ranges/edit.blade.php +++ /dev/null @@ -1,30 +0,0 @@ -@extends('layouts.bo') - -@section('content') -
                                                                                                                                                                                                                                                                                                                                            -
                                                                                                                                                                                                                                                                                                                                            - @method('PUT') - @csrf -
                                                                                                                                                                                                                                                                                                                                            -
                                                                                                                                                                                                                                                                                                                                            -
                                                                                                                                                                                                                                                                                                                                            - <{{ __('Gammes - Modification') }} -
                                                                                                                                                                                                                                                                                                                                            -
                                                                                                                                                                                                                                                                                                                                            - @if (session('success')) - {{ session('success') }} - @endif -
                                                                                                                                                                                                                                                                                                                                            -
                                                                                                                                                                                                                                                                                                                                            - -
                                                                                                                                                                                                                                                                                                                                            -
                                                                                                                                                                                                                                                                                                                                            -
                                                                                                                                                                                                                                                                                                                                            -
                                                                                                                                                                                                                                                                                                                                            - @include('bo.ranges.input-forms') -
                                                                                                                                                                                                                                                                                                                                            -
                                                                                                                                                                                                                                                                                                                                            -
                                                                                                                                                                                                                                                                                                                                            -@endsection diff --git a/resources/views/bo/ranges/index.blade.php b/resources/views/bo/ranges/index.blade.php deleted file mode 100644 index d48930f..0000000 --- a/resources/views/bo/ranges/index.blade.php +++ /dev/null @@ -1,52 +0,0 @@ -@extends('layouts.bo') - -@section('content') -
                                                                                                                                                                                                                                                                                                                                            -
                                                                                                                                                                                                                                                                                                                                            -
                                                                                                                                                                                                                                                                                                                                            -
                                                                                                                                                                                                                                                                                                                                            - {{ __('Gammes') }} -
                                                                                                                                                                                                                                                                                                                                            -
                                                                                                                                                                                                                                                                                                                                            - -
                                                                                                                                                                                                                                                                                                                                            - -
                                                                                                                                                                                                                                                                                                                                            -
                                                                                                                                                                                                                                                                                                                                            -
                                                                                                                                                                                                                                                                                                                                            - - - - - - - - @foreach($ranges as $range) - - - - - - @endforeach - -
                                                                                                                                                                                                                                                                                                                                            {{ __('Nom') }}Image
                                                                                                                                                                                                                                                                                                                                            {{$range->name}} - @if($range->picture) - - {{$range->name}} - - @endif - - {{ __('Modifier') }} -
                                                                                                                                                                                                                                                                                                                                            - @method('DELETE') - @csrf - -
                                                                                                                                                                                                                                                                                                                                            -
                                                                                                                                                                                                                                                                                                                                            -
                                                                                                                                                                                                                                                                                                                                            -
                                                                                                                                                                                                                                                                                                                                            -@endsection diff --git a/resources/views/bo/ranges/input-forms.blade.php b/resources/views/bo/ranges/input-forms.blade.php deleted file mode 100644 index 3cce4bd..0000000 --- a/resources/views/bo/ranges/input-forms.blade.php +++ /dev/null @@ -1,15 +0,0 @@ -
                                                                                                                                                                                                                                                                                                                                            - - -
                                                                                                                                                                                                                                                                                                                                            -
                                                                                                                                                                                                                                                                                                                                            -
                                                                                                                                                                                                                                                                                                                                            - - @if (isset($range->picture) and $range->picture !== null) -
                                                                                                                                                                                                                                                                                                                                            -
                                                                                                                                                                                                                                                                                                                                            - - {{$range->name}} - - @endif -
                                                                                                                                                                                                                                                                                                                                            diff --git a/resources/views/bo/settings/manage.blade.php b/resources/views/bo/settings/manage.blade.php deleted file mode 100644 index da1e4f6..0000000 --- a/resources/views/bo/settings/manage.blade.php +++ /dev/null @@ -1,401 +0,0 @@ -@extends('layouts.bo') - -@section('content') -
                                                                                                                                                                                                                                                                                                                                            -
                                                                                                                                                                                                                                                                                                                                            - Règlages du jeu -
                                                                                                                                                                                                                                                                                                                                            - -
                                                                                                                                                                                                                                                                                                                                            - @method('PUT') - @csrf -
                                                                                                                                                                                                                                                                                                                                            -
                                                                                                                                                                                                                                                                                                                                            -
                                                                                                                                                                                                                                                                                                                                            -
                                                                                                                                                                                                                                                                                                                                            - - -
                                                                                                                                                                                                                                                                                                                                            -
                                                                                                                                                                                                                                                                                                                                            -
                                                                                                                                                                                                                                                                                                                                            - Générale
                                                                                                                                                                                                                                                                                                                                            - Paramétres généraux du jeu -
                                                                                                                                                                                                                                                                                                                                            -
                                                                                                                                                                                                                                                                                                                                            - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
                                                                                                                                                                                                                                                                                                                                            - - - -
                                                                                                                                                                                                                                                                                                                                            - - - -
                                                                                                                                                                                                                                                                                                                                            - - - -
                                                                                                                                                                                                                                                                                                                                            - - - -
                                                                                                                                                                                                                                                                                                                                            - - - -
                                                                                                                                                                                                                                                                                                                                            - - - -
                                                                                                                                                                                                                                                                                                                                            - - -
                                                                                                                                                                                                                                                                                                                                            - @if ($settings->use_ean_codes === 1) - - @else - - @endif - -
                                                                                                                                                                                                                                                                                                                                            -
                                                                                                                                                                                                                                                                                                                                            - - -
                                                                                                                                                                                                                                                                                                                                            - @if ($settings->activated_teaser === 1) - - @else - - @endif - -
                                                                                                                                                                                                                                                                                                                                            -
                                                                                                                                                                                                                                                                                                                                            - - - -
                                                                                                                                                                                                                                                                                                                                            - - -
                                                                                                                                                                                                                                                                                                                                            - @if ($settings->activated_close_page === 1) - - @else - - @endif - -
                                                                                                                                                                                                                                                                                                                                            -
                                                                                                                                                                                                                                                                                                                                            - - - -
                                                                                                                                                                                                                                                                                                                                            - - - -
                                                                                                                                                                                                                                                                                                                                            - - -
                                                                                                                                                                                                                                                                                                                                            - @if ($settings->winning_proof === 1) - - @else - - @endif - -
                                                                                                                                                                                                                                                                                                                                            -
                                                                                                                                                                                                                                                                                                                                            - - - -
                                                                                                                                                                                                                                                                                                                                            -
                                                                                                                                                                                                                                                                                                                                            -
                                                                                                                                                                                                                                                                                                                                            - Les réductions
                                                                                                                                                                                                                                                                                                                                            - Paramétrages des bons de réduction MLDC -
                                                                                                                                                                                                                                                                                                                                            -
                                                                                                                                                                                                                                                                                                                                            - - - - - - - - - - - - - - - - - - -
                                                                                                                                                                                                                                                                                                                                            - - -
                                                                                                                                                                                                                                                                                                                                            - @if ($settings->reductions_activated === 1) - - @else - - @endif - -
                                                                                                                                                                                                                                                                                                                                            -
                                                                                                                                                                                                                                                                                                                                            - - - -
                                                                                                                                                                                                                                                                                                                                            - - - -
                                                                                                                                                                                                                                                                                                                                            - -
                                                                                                                                                                                                                                                                                                                                            -
                                                                                                                                                                                                                                                                                                                                            -
                                                                                                                                                                                                                                                                                                                                            - Facebook Connect
                                                                                                                                                                                                                                                                                                                                            - Paramétrage du Facebook Connect -
                                                                                                                                                                                                                                                                                                                                            -
                                                                                                                                                                                                                                                                                                                                            - - - - - - - - - - - - - - - -
                                                                                                                                                                                                                                                                                                                                            - - -
                                                                                                                                                                                                                                                                                                                                            - @if ($settings->facebook_activated === 1) - - @else - - @endif - -
                                                                                                                                                                                                                                                                                                                                            -
                                                                                                                                                                                                                                                                                                                                            - - - -
                                                                                                                                                                                                                                                                                                                                            - - - -
                                                                                                                                                                                                                                                                                                                                            -
                                                                                                                                                                                                                                                                                                                                            -
                                                                                                                                                                                                                                                                                                                                            - Destinataires des notifications de gain
                                                                                                                                                                                                                                                                                                                                            - Ces mails recevront toutes les notifications de gain. -
                                                                                                                                                                                                                                                                                                                                            -
                                                                                                                                                                                                                                                                                                                                            - -
                                                                                                                                                                                                                                                                                                                                            -
                                                                                                                                                                                                                                                                                                                                            - Google analytics
                                                                                                                                                                                                                                                                                                                                            - Insérer ici la clé analytics pour le jeu. -
                                                                                                                                                                                                                                                                                                                                            - - - - - -
                                                                                                                                                                                                                                                                                                                                            Clé analytics (eg: UA-XX196604-1)
                                                                                                                                                                                                                                                                                                                                            -
                                                                                                                                                                                                                                                                                                                                            -
                                                                                                                                                                                                                                                                                                                                            -
                                                                                                                                                                                                                                                                                                                                            - -
                                                                                                                                                                                                                                                                                                                                            -
                                                                                                                                                                                                                                                                                                                                            -@endsection - -@push('scripts') - -@endpush diff --git a/resources/views/bo/winners-list/arcadia.blade.php b/resources/views/bo/winners-list/arcadia.blade.php deleted file mode 100644 index f370aed..0000000 --- a/resources/views/bo/winners-list/arcadia.blade.php +++ /dev/null @@ -1,31 +0,0 @@ -@extends('layouts.bo') - -@section('content') -
                                                                                                                                                                                                                                                                                                                                            -
                                                                                                                                                                                                                                                                                                                                            - Envoyer le courrier à Arcadia pour {{ $participation->user->lastname }} {{ $participation->user->firstname }} - Retour -
                                                                                                                                                                                                                                                                                                                                            - -
                                                                                                                                                                                                                                                                                                                                            -
                                                                                                                                                                                                                                                                                                                                            - @csrf -
                                                                                                                                                                                                                                                                                                                                            -
                                                                                                                                                                                                                                                                                                                                            - ID CRM de l'utilisateur : {{ $crmId }} - -
                                                                                                                                                                                                                                                                                                                                            -
                                                                                                                                                                                                                                                                                                                                            -
                                                                                                                                                                                                                                                                                                                                            - - -
                                                                                                                                                                                                                                                                                                                                            - - -
                                                                                                                                                                                                                                                                                                                                            -
                                                                                                                                                                                                                                                                                                                                            -
                                                                                                                                                                                                                                                                                                                                            -@endsection diff --git a/resources/views/bo/winners-list/index.blade.php b/resources/views/bo/winners-list/index.blade.php deleted file mode 100644 index f90156c..0000000 --- a/resources/views/bo/winners-list/index.blade.php +++ /dev/null @@ -1,60 +0,0 @@ -@extends('layouts.bo') - -@section('content') -
                                                                                                                                                                                                                                                                                                                                            -
                                                                                                                                                                                                                                                                                                                                            - Liste des gagnants -
                                                                                                                                                                                                                                                                                                                                            - -
                                                                                                                                                                                                                                                                                                                                            - - - - - - @if ($settings->use_ean_codes === 1) - - @endif - - @if ($settings->winning_proof === 1) - - - - @endif - - - - @foreach($winnersList as $winner) - - - - - @if ($settings->use_ean_codes) - - @endif - - @if ($settings->winning_proof === 1) - @if ($winner->sticker !== null) - - @else - - @endif - @if ($winner->barcode !== null) - - @else - - @endif - @if ($winner->ticket !== null) - - @else - - @endif - @endif - - - @endforeach - -
                                                                                                                                                                                                                                                                                                                                            Date participationLotEmailCode EANCode uniqueStickerCode barreTicketArcadia
                                                                                                                                                                                                                                                                                                                                            {{ \Carbon\Carbon::parse($winner->created_at)->format('d/m/Y à H:i') }}{{$winner->instantWin()->first()->prize->label_one}}{{$winner->user->email}}{{$winner->codeEan->code}}{{$winner->code->code_unique}}Voir-Voir-Voir-Envoyer
                                                                                                                                                                                                                                                                                                                                            -
                                                                                                                                                                                                                                                                                                                                            -
                                                                                                                                                                                                                                                                                                                                            -@endsection diff --git a/resources/views/errors_example/404.blade.php b/resources/views/errors_example/404.blade.php deleted file mode 100644 index b5d5da1..0000000 --- a/resources/views/errors_example/404.blade.php +++ /dev/null @@ -1,13 +0,0 @@ -@extends('front.basic.layout') - -@section('title', 'Erreur 404') - -@section('content') -
                                                                                                                                                                                                                                                                                                                                            -

                                                                                                                                                                                                                                                                                                                                            Page non trouvée

                                                                                                                                                                                                                                                                                                                                            -

                                                                                                                                                                                                                                                                                                                                            La page que vous recherchez n'existe pas.

                                                                                                                                                                                                                                                                                                                                            -
                                                                                                                                                                                                                                                                                                                                            -

                                                                                                                                                                                                                                                                                                                                            Cliquez sur le bouton ci-dessous pour retourner à l'accueil.

                                                                                                                                                                                                                                                                                                                                            - Accueil -
                                                                                                                                                                                                                                                                                                                                            -@endsection diff --git a/resources/views/front/basic_example/charte.blade.php b/resources/views/front/basic_example/charte.blade.php deleted file mode 100644 index 0d1149d..0000000 --- a/resources/views/front/basic_example/charte.blade.php +++ /dev/null @@ -1,8 +0,0 @@ -@extends('front.basic.layout') - -@section('title', 'Charte') - -@section('content') -

                                                                                                                                                                                                                                                                                                                                            Content charte :

                                                                                                                                                                                                                                                                                                                                            -

                                                                                                                                                                                                                                                                                                                                            {!!$content->value!!}

                                                                                                                                                                                                                                                                                                                                            -@endsection diff --git a/resources/views/front/basic_example/confirm-email.blade.php b/resources/views/front/basic_example/confirm-email.blade.php deleted file mode 100644 index a346ac7..0000000 --- a/resources/views/front/basic_example/confirm-email.blade.php +++ /dev/null @@ -1,35 +0,0 @@ -@extends('front.basic.layout') - -@section('title', 'Activation de votre compte') - -@section('content') - @if ($result) -

                                                                                                                                                                                                                                                                                                                                            Compte activé avec succès, vous pouvez désormais vous connecter

                                                                                                                                                                                                                                                                                                                                            - Se connecter - @if (session('success')) -
                                                                                                                                                                                                                                                                                                                                            - {{ session('success') }} -
                                                                                                                                                                                                                                                                                                                                            - @endif - @else - @if ($errors->any()) -
                                                                                                                                                                                                                                                                                                                                            -
                                                                                                                                                                                                                                                                                                                                              - @foreach ($errors->all() as $error) -
                                                                                                                                                                                                                                                                                                                                            • {{ $error }}
                                                                                                                                                                                                                                                                                                                                            • - @endforeach -
                                                                                                                                                                                                                                                                                                                                            -
                                                                                                                                                                                                                                                                                                                                            - @endif - @if ($email !== null) -
                                                                                                                                                                                                                                                                                                                                            -

                                                                                                                                                                                                                                                                                                                                            Oups !

                                                                                                                                                                                                                                                                                                                                            -

                                                                                                                                                                                                                                                                                                                                            Votre compte n'a pu être activé. Le lien d'activation que vous avez reçu par mail doit être périmé.


                                                                                                                                                                                                                                                                                                                                            -

                                                                                                                                                                                                                                                                                                                                            Cliquez sur le bouton ci-dessous pour vous inscrire.

                                                                                                                                                                                                                                                                                                                                            -
                                                                                                                                                                                                                                                                                                                                            - - @endif - @endif -@endsection diff --git a/resources/views/front/basic_example/end.blade.php b/resources/views/front/basic_example/end.blade.php deleted file mode 100644 index 58bc7df..0000000 --- a/resources/views/front/basic_example/end.blade.php +++ /dev/null @@ -1,8 +0,0 @@ -@extends('front.basic.layout') - -@section('title', 'Fin du jeu') - -@section('content') -

                                                                                                                                                                                                                                                                                                                                            Date début : {{$settings->start_date}}, date de fin : {{$settings->end_date}} et la société : {{$settingsGlobal->company}}

                                                                                                                                                                                                                                                                                                                                            -

                                                                                                                                                                                                                                                                                                                                            Page de redirection : {{$settings->redirect_close}}

                                                                                                                                                                                                                                                                                                                                            -@endsection diff --git a/resources/views/front/basic_example/enter-code.blade.php b/resources/views/front/basic_example/enter-code.blade.php deleted file mode 100644 index a5f1110..0000000 --- a/resources/views/front/basic_example/enter-code.blade.php +++ /dev/null @@ -1,24 +0,0 @@ -@extends('front.basic.layout') - -@section('title', 'Saisie du code') - -@section('content') -

                                                                                                                                                                                                                                                                                                                                            Code EAN actif ? {{$settings->use_ean_codes === 1 ? 'Oui' : 'Non'}}

                                                                                                                                                                                                                                                                                                                                            - @if ($errors->any()) -
                                                                                                                                                                                                                                                                                                                                            -
                                                                                                                                                                                                                                                                                                                                              - @foreach ($errors->all() as $error) -
                                                                                                                                                                                                                                                                                                                                            • {{ $error }}
                                                                                                                                                                                                                                                                                                                                            • - @endforeach -
                                                                                                                                                                                                                                                                                                                                            -
                                                                                                                                                                                                                                                                                                                                            - @endif -
                                                                                                                                                                                                                                                                                                                                            - @csrf - @if ($settings->use_ean_codes === 1) - - @endif - - -
                                                                                                                                                                                                                                                                                                                                            -@endsection diff --git a/resources/views/front/basic_example/error-arcadia-email.blade.php b/resources/views/front/basic_example/error-arcadia-email.blade.php deleted file mode 100644 index 9ed386a..0000000 --- a/resources/views/front/basic_example/error-arcadia-email.blade.php +++ /dev/null @@ -1,3 +0,0 @@ -

                                                                                                                                                                                                                                                                                                                                            Bonjour,

                                                                                                                                                                                                                                                                                                                                            -

                                                                                                                                                                                                                                                                                                                                            Le courrier arcadia pour le gain de lot de {{ $user->lastname }} {{ $user->firstname }} est tombé en erreur.

                                                                                                                                                                                                                                                                                                                                            -

                                                                                                                                                                                                                                                                                                                                            ID CRM de l'utilisateur : {{ $user->crm_id }}, email de l'utilisateur : {{ $user->email }}

                                                                                                                                                                                                                                                                                                                                            diff --git a/resources/views/front/basic_example/faq.blade.php b/resources/views/front/basic_example/faq.blade.php deleted file mode 100644 index 6dff4a4..0000000 --- a/resources/views/front/basic_example/faq.blade.php +++ /dev/null @@ -1,36 +0,0 @@ -@extends('front.basic.layout') - -@section('title', 'Accueil') - -@section('content') -

                                                                                                                                                                                                                                                                                                                                            Thèmes FAQ

                                                                                                                                                                                                                                                                                                                                            -
                                                                                                                                                                                                                                                                                                                                              - @foreach ($themes as $t) -
                                                                                                                                                                                                                                                                                                                                            • {{$t->name}}
                                                                                                                                                                                                                                                                                                                                            • - @endforeach -
                                                                                                                                                                                                                                                                                                                                            - -

                                                                                                                                                                                                                                                                                                                                            Questions FAQ

                                                                                                                                                                                                                                                                                                                                            - - - - - - - - - - - @foreach ($questions as $q) - - - - - - - - - @endforeach - -
                                                                                                                                                                                                                                                                                                                                            QuestionRéponseVote positifVote négatifUtilitéThème
                                                                                                                                                                                                                                                                                                                                            {{$q->question}}{{$q->answer}}{{$q->positive_vote}}{{$q->negative_vote}}{{$q->utility}}%{{$q->theme->name}}
                                                                                                                                                                                                                                                                                                                                            -@endsection diff --git a/resources/views/front/basic_example/forgot-password.blade.php b/resources/views/front/basic_example/forgot-password.blade.php deleted file mode 100644 index 6ba86a9..0000000 --- a/resources/views/front/basic_example/forgot-password.blade.php +++ /dev/null @@ -1,92 +0,0 @@ -@extends('front.basic.layout') - -@section('title', 'Mot de passe oublié') - -@section('content') -
                                                                                                                                                                                                                                                                                                                                            -
                                                                                                                                                                                                                                                                                                                                            -
                                                                                                                                                                                                                                                                                                                                            -
                                                                                                                                                                                                                                                                                                                                            - @if (!isset($tokenValid) || !$tokenValid) -
                                                                                                                                                                                                                                                                                                                                            Mot de passe oublié
                                                                                                                                                                                                                                                                                                                                            - -
                                                                                                                                                                                                                                                                                                                                            -
                                                                                                                                                                                                                                                                                                                                            - @method('PUT') - @csrf - @if ($errors->any()) -
                                                                                                                                                                                                                                                                                                                                            -
                                                                                                                                                                                                                                                                                                                                              - @foreach ($errors->all() as $error) -
                                                                                                                                                                                                                                                                                                                                            • {{ $error }}
                                                                                                                                                                                                                                                                                                                                            • - @endforeach -
                                                                                                                                                                                                                                                                                                                                            -
                                                                                                                                                                                                                                                                                                                                            - @endif - @if (session('success')) -
                                                                                                                                                                                                                                                                                                                                            - {{ session('success') }} -
                                                                                                                                                                                                                                                                                                                                            - @endif - -
                                                                                                                                                                                                                                                                                                                                            - - -
                                                                                                                                                                                                                                                                                                                                            - -
                                                                                                                                                                                                                                                                                                                                            -
                                                                                                                                                                                                                                                                                                                                            - -
                                                                                                                                                                                                                                                                                                                                            -
                                                                                                                                                                                                                                                                                                                                            - Envoyer -
                                                                                                                                                                                                                                                                                                                                            -
                                                                                                                                                                                                                                                                                                                                            -
                                                                                                                                                                                                                                                                                                                                            -
                                                                                                                                                                                                                                                                                                                                            - @elseif ($tokenValid) -
                                                                                                                                                                                                                                                                                                                                            Changement de votre mot de passe
                                                                                                                                                                                                                                                                                                                                            - -
                                                                                                                                                                                                                                                                                                                                            -
                                                                                                                                                                                                                                                                                                                                            - @method('PUT') - @csrf - @if ($errors->any()) -
                                                                                                                                                                                                                                                                                                                                            -
                                                                                                                                                                                                                                                                                                                                              - @foreach ($errors->all() as $error) -
                                                                                                                                                                                                                                                                                                                                            • {{ $error }}
                                                                                                                                                                                                                                                                                                                                            • - @endforeach -
                                                                                                                                                                                                                                                                                                                                            -
                                                                                                                                                                                                                                                                                                                                            - @endif - @if (session('success')) -
                                                                                                                                                                                                                                                                                                                                            - {{ session('success') }} -
                                                                                                                                                                                                                                                                                                                                            - @endif - -
                                                                                                                                                                                                                                                                                                                                            - - -
                                                                                                                                                                                                                                                                                                                                            -
                                                                                                                                                                                                                                                                                                                                            - - -
                                                                                                                                                                                                                                                                                                                                            - -
                                                                                                                                                                                                                                                                                                                                            -
                                                                                                                                                                                                                                                                                                                                            - - -
                                                                                                                                                                                                                                                                                                                                            -
                                                                                                                                                                                                                                                                                                                                            -
                                                                                                                                                                                                                                                                                                                                            -
                                                                                                                                                                                                                                                                                                                                            - @endif -
                                                                                                                                                                                                                                                                                                                                            -
                                                                                                                                                                                                                                                                                                                                            -
                                                                                                                                                                                                                                                                                                                                            -
                                                                                                                                                                                                                                                                                                                                            -@endsection diff --git a/resources/views/front/basic_example/gain1.blade.php b/resources/views/front/basic_example/gain1.blade.php deleted file mode 100644 index bdd2317..0000000 --- a/resources/views/front/basic_example/gain1.blade.php +++ /dev/null @@ -1,18 +0,0 @@ -@extends('front.basic.layout') - -@section('title') - {{$prize->gain_view->name}} -@endsection - -@section('content') -

                                                                                                                                                                                                                                                                                                                                            Vous avez gagné {{$prize->label_one}} !

                                                                                                                                                                                                                                                                                                                                            - @if ($settings->winning_proof === 1) -
                                                                                                                                                                                                                                                                                                                                            - @method('PUT') - @csrf - -
                                                                                                                                                                                                                                                                                                                                            - @else - Rejouer - @endif -@endsection diff --git a/resources/views/front/basic_example/gains.blade.php b/resources/views/front/basic_example/gains.blade.php deleted file mode 100644 index 5df4b51..0000000 --- a/resources/views/front/basic_example/gains.blade.php +++ /dev/null @@ -1,35 +0,0 @@ -@extends('front.basic.layout') - -@section('title', 'Les gains') - -@section('content') -

                                                                                                                                                                                                                                                                                                                                            Lots (valeur à 0 ou 1 : 0 = faux, 1 = vrai) :

                                                                                                                                                                                                                                                                                                                                            - - - - - - - - - - - - - - @foreach ($prizesGlobal as $p) - - - - - - - - - - - - @endforeach - -
                                                                                                                                                                                                                                                                                                                                            ID ArcadiaLabel singulierLabel plurielQuantitéNotification activéFormulaire suppl.ID mail ArcadiaPdf preuve de gainLot par défaut
                                                                                                                                                                                                                                                                                                                                            {{$p->arcadia_id}}{{$p->label_one}}{{$p->label_many}}{{$p->quantity}}{{$p->notifications}}{{$p->additional_form}}{{$p->arcadia_mail_id}}{{$p->pdf_winning_proof}}{{$p->need_proof}}
                                                                                                                                                                                                                                                                                                                                            -@endsection diff --git a/resources/views/front/basic_example/home.blade.php b/resources/views/front/basic_example/home.blade.php deleted file mode 100644 index 4280317..0000000 --- a/resources/views/front/basic_example/home.blade.php +++ /dev/null @@ -1,56 +0,0 @@ -@extends('front.basic.layout') - -@section('title', 'Accueil') - -@section('content') -

                                                                                                                                                                                                                                                                                                                                            Société : {{$settingsGlobal->company}} et nom du jeu : {{$settingsGlobal->name}}

                                                                                                                                                                                                                                                                                                                                            -

                                                                                                                                                                                                                                                                                                                                            -

                                                                                                                                                                                                                                                                                                                                            -

                                                                                                                                                                                                                                                                                                                                            -

                                                                                                                                                                                                                                                                                                                                            Lots (valeur à 0 ou 1 : 0 = faux, 1 = vrai) :

                                                                                                                                                                                                                                                                                                                                            - - - - - - - - - - - - - - @foreach ($prizesGlobal as $p) - - - - - - - - - - - - @endforeach - -
                                                                                                                                                                                                                                                                                                                                            ID ArcadiaLabel singulierLabel plurielQuantitéNotification activéFormulaire suppl.ID mail ArcadiaPdf preuve de gainLot par défaut
                                                                                                                                                                                                                                                                                                                                            {{$p->arcadia_id}}{{$p->label_one}}{{$p->label_many}}{{$p->quantity}}{{$p->notifications}}{{$p->additional_form}}{{$p->arcadia_mail_id}}{{$p->pdf_winning_proof}}{{$p->need_proof}}
                                                                                                                                                                                                                                                                                                                                            - - @if (isset($prizesGlobal[0])) - {{$prizesGlobal[0]->label_one}} - @endif -@endsection diff --git a/resources/views/front/basic_example/how-to-play.blade.php b/resources/views/front/basic_example/how-to-play.blade.php deleted file mode 100644 index c3610a5..0000000 --- a/resources/views/front/basic_example/how-to-play.blade.php +++ /dev/null @@ -1,35 +0,0 @@ -@extends('front.basic.layout') - -@section('title', 'Comment jouer') - -@section('content') -

                                                                                                                                                                                                                                                                                                                                            Lots (valeur à 0 ou 1 : 0 = faux, 1 = vrai) :

                                                                                                                                                                                                                                                                                                                                            - - - - - - - - - - - - - - @foreach ($prizesGlobal as $p) - - - - - - - - - - - - @endforeach - -
                                                                                                                                                                                                                                                                                                                                            ID ArcadiaLabel singulierLabel plurielQuantitéNotification activéFormulaire suppl.ID mail ArcadiaPdf preuve de gainLot par défaut
                                                                                                                                                                                                                                                                                                                                            {{$p->arcadia_id}}{{$p->label_one}}{{$p->label_many}}{{$p->quantity}}{{$p->notifications}}{{$p->additional_form}}{{$p->arcadia_mail_id}}{{$p->pdf_winning_proof}}{{$p->need_proof}}
                                                                                                                                                                                                                                                                                                                                            -@endsection diff --git a/resources/views/front/basic_example/layout.blade.php b/resources/views/front/basic_example/layout.blade.php deleted file mode 100644 index c2b4709..0000000 --- a/resources/views/front/basic_example/layout.blade.php +++ /dev/null @@ -1,89 +0,0 @@ - - - - @yield('title') - {{$settingsGlobal->name}} - - - - - - {{-- TODO : Ajouter jQuery dans app.js --}} - - {{-- TODO : Voir l'inclusion de Font Awesome, pour le moment c'est fait avec mon compte FA --}} - - {!! !empty($settingsGlobal->analytics) ? $settingsGlobal->analytics : '' !!} - - - - - - - - - - -
                                                                                                                                                                                                                                                                                                                                            - {{-- Header --}} - - {{-- Fin du header --}} - {{-- Contenu --}} -
                                                                                                                                                                                                                                                                                                                                            - @yield('content') -
                                                                                                                                                                                                                                                                                                                                            - {{-- Fin du contenu --}} - {{-- Footer --}} -
                                                                                                                                                                                                                                                                                                                                            -
                                                                                                                                                                                                                                                                                                                                            - Footer {{$settingsGlobal->company}} -
                                                                                                                                                                                                                                                                                                                                            -
                                                                                                                                                                                                                                                                                                                                            - {{-- Fin du footer --}} -
                                                                                                                                                                                                                                                                                                                                            - - @stack('scripts') - - diff --git a/resources/views/front/basic_example/legals.blade.php b/resources/views/front/basic_example/legals.blade.php deleted file mode 100644 index 823d54c..0000000 --- a/resources/views/front/basic_example/legals.blade.php +++ /dev/null @@ -1,8 +0,0 @@ -@extends('front.basic.layout') - -@section('title', 'Mentions légales') - -@section('content') -

                                                                                                                                                                                                                                                                                                                                            Content mentions :

                                                                                                                                                                                                                                                                                                                                            -

                                                                                                                                                                                                                                                                                                                                            {!!$content->value!!}

                                                                                                                                                                                                                                                                                                                                            -@endsection diff --git a/resources/views/front/basic_example/login.blade.php b/resources/views/front/basic_example/login.blade.php deleted file mode 100644 index 81375a7..0000000 --- a/resources/views/front/basic_example/login.blade.php +++ /dev/null @@ -1,71 +0,0 @@ -@extends('front.basic.layout') - -@section('title', 'Connexion') - -@section('content') -
                                                                                                                                                                                                                                                                                                                                            -
                                                                                                                                                                                                                                                                                                                                            -
                                                                                                                                                                                                                                                                                                                                            -
                                                                                                                                                                                                                                                                                                                                            -
                                                                                                                                                                                                                                                                                                                                            ConnexionInscription
                                                                                                                                                                                                                                                                                                                                            - -
                                                                                                                                                                                                                                                                                                                                            -
                                                                                                                                                                                                                                                                                                                                            - @csrf - @if ($errors->any()) -
                                                                                                                                                                                                                                                                                                                                            -
                                                                                                                                                                                                                                                                                                                                              - @foreach ($errors->all() as $error) -
                                                                                                                                                                                                                                                                                                                                            • {{ $error }}
                                                                                                                                                                                                                                                                                                                                            • - @endforeach -
                                                                                                                                                                                                                                                                                                                                            -
                                                                                                                                                                                                                                                                                                                                            - @endif - @if (session('success')) -
                                                                                                                                                                                                                                                                                                                                            - {{ session('success') }} -
                                                                                                                                                                                                                                                                                                                                            - @endif - -
                                                                                                                                                                                                                                                                                                                                            - - -
                                                                                                                                                                                                                                                                                                                                            - -
                                                                                                                                                                                                                                                                                                                                            -
                                                                                                                                                                                                                                                                                                                                            - -
                                                                                                                                                                                                                                                                                                                                            - - -
                                                                                                                                                                                                                                                                                                                                            - -
                                                                                                                                                                                                                                                                                                                                            -
                                                                                                                                                                                                                                                                                                                                            - -
                                                                                                                                                                                                                                                                                                                                            -
                                                                                                                                                                                                                                                                                                                                            -
                                                                                                                                                                                                                                                                                                                                            - - - -
                                                                                                                                                                                                                                                                                                                                            -
                                                                                                                                                                                                                                                                                                                                            -
                                                                                                                                                                                                                                                                                                                                            - - -
                                                                                                                                                                                                                                                                                                                                            -
                                                                                                                                                                                                                                                                                                                                            -
                                                                                                                                                                                                                                                                                                                                            -
                                                                                                                                                                                                                                                                                                                                            -
                                                                                                                                                                                                                                                                                                                                            -
                                                                                                                                                                                                                                                                                                                                            -@endsection - diff --git a/resources/views/front/basic_example/loose.blade.php b/resources/views/front/basic_example/loose.blade.php deleted file mode 100644 index 54cc3dd..0000000 --- a/resources/views/front/basic_example/loose.blade.php +++ /dev/null @@ -1,6 +0,0 @@ -@extends('front.basic.layout') - -@section('content') -

                                                                                                                                                                                                                                                                                                                                            C'est perdu

                                                                                                                                                                                                                                                                                                                                            -

                                                                                                                                                                                                                                                                                                                                            Rejouer !

                                                                                                                                                                                                                                                                                                                                            -@endsection diff --git a/resources/views/front/basic_example/notif-admin.blade.php b/resources/views/front/basic_example/notif-admin.blade.php deleted file mode 100644 index 90072e8..0000000 --- a/resources/views/front/basic_example/notif-admin.blade.php +++ /dev/null @@ -1,2 +0,0 @@ -

                                                                                                                                                                                                                                                                                                                                            Bonjour,

                                                                                                                                                                                                                                                                                                                                            -

                                                                                                                                                                                                                                                                                                                                            {{ $msg }}

                                                                                                                                                                                                                                                                                                                                            diff --git a/resources/views/front/basic_example/notif-win-admin-email.blade.php b/resources/views/front/basic_example/notif-win-admin-email.blade.php deleted file mode 100644 index c44e8f5..0000000 --- a/resources/views/front/basic_example/notif-win-admin-email.blade.php +++ /dev/null @@ -1,21 +0,0 @@ -
                                                                                                                                                                                                                                                                                                                                            -
                                                                                                                                                                                                                                                                                                                                            -
                                                                                                                                                                                                                                                                                                                                            -

                                                                                                                                                                                                                                                                                                                                            Bonjour,

                                                                                                                                                                                                                                                                                                                                            -

                                                                                                                                                                                                                                                                                                                                            Le lot suivant a été gagné : {{ $participation->instantWin()->first()->prize->label_one }} le {{ \Carbon\Carbon::parse($participation->created_at)->format('d/m/Y à H:i') }}


                                                                                                                                                                                                                                                                                                                                            -

                                                                                                                                                                                                                                                                                                                                            Gagnant :

                                                                                                                                                                                                                                                                                                                                            -

                                                                                                                                                                                                                                                                                                                                            {{ $participation->user->lastname }} {{ $participation->user->firstname }}

                                                                                                                                                                                                                                                                                                                                            -

                                                                                                                                                                                                                                                                                                                                            {{ $participation->user->address }}

                                                                                                                                                                                                                                                                                                                                            - @if ($participation->user->address2 !== null) -

                                                                                                                                                                                                                                                                                                                                            {{ $participation->user->address2 }}

                                                                                                                                                                                                                                                                                                                                            - @endif -

                                                                                                                                                                                                                                                                                                                                            {{ $participation->user->postal_code }} {{ $participation->user->town }} - {{ $participation->user->country }}

                                                                                                                                                                                                                                                                                                                                            -

                                                                                                                                                                                                                                                                                                                                            {{ $participation->user->email }}


                                                                                                                                                                                                                                                                                                                                            -

                                                                                                                                                                                                                                                                                                                                            Codes utilisé@if ($settings->use_ean_codes)s @endif :

                                                                                                                                                                                                                                                                                                                                            - @if ($settings->use_ean_codes) -

                                                                                                                                                                                                                                                                                                                                            - Code On Pack : {{ $participation->codeEan->code }}

                                                                                                                                                                                                                                                                                                                                            - @endif -

                                                                                                                                                                                                                                                                                                                                            - Code Unique : {{ $participation->code->code_unique }}

                                                                                                                                                                                                                                                                                                                                            -
                                                                                                                                                                                                                                                                                                                                            -
                                                                                                                                                                                                                                                                                                                                            -
                                                                                                                                                                                                                                                                                                                                            \ No newline at end of file diff --git a/resources/views/front/basic_example/participation-exhausted.blade.php b/resources/views/front/basic_example/participation-exhausted.blade.php deleted file mode 100644 index b733105..0000000 --- a/resources/views/front/basic_example/participation-exhausted.blade.php +++ /dev/null @@ -1,7 +0,0 @@ -@extends('front.basic.layout') - -@section('title', 'Plus de participations') - -@section('content') -

                                                                                                                                                                                                                                                                                                                                            Vous ne pouvez plus participer à ce jeu car vous avez déjà participer {{$settings->nb_participation_player}} fois.

                                                                                                                                                                                                                                                                                                                                            -@endsection diff --git a/resources/views/front/basic_example/password-email.blade.php b/resources/views/front/basic_example/password-email.blade.php deleted file mode 100644 index 22f5b55..0000000 --- a/resources/views/front/basic_example/password-email.blade.php +++ /dev/null @@ -1,4 +0,0 @@ -

                                                                                                                                                                                                                                                                                                                                            Pour réinitialiser votre mot de passe pour vous connecter au site {{ $settings->name }}, cliquez sur le lien suivant :


                                                                                                                                                                                                                                                                                                                                            -

                                                                                                                                                                                                                                                                                                                                            Réinitialisez votre mot de passe


                                                                                                                                                                                                                                                                                                                                            -

                                                                                                                                                                                                                                                                                                                                            Ce lien expirera dans 3 heures.


                                                                                                                                                                                                                                                                                                                                            -
                                                                                                                                                                                                                                                                                                                                            diff --git a/resources/views/front/basic_example/prize-mail.blade.php b/resources/views/front/basic_example/prize-mail.blade.php deleted file mode 100644 index f5df352..0000000 --- a/resources/views/front/basic_example/prize-mail.blade.php +++ /dev/null @@ -1,2 +0,0 @@ -

                                                                                                                                                                                                                                                                                                                                            Bonjour {{ $user->firstname }},

                                                                                                                                                                                                                                                                                                                                            -

                                                                                                                                                                                                                                                                                                                                            Félicitation, vous avez gagné 1 {{ $prize->label_one }} en jouant à notre jeu {{ $settings->name }} !

                                                                                                                                                                                                                                                                                                                                            diff --git a/resources/views/front/basic_example/reduction-mail.blade.php b/resources/views/front/basic_example/reduction-mail.blade.php deleted file mode 100644 index dd6ad1f..0000000 --- a/resources/views/front/basic_example/reduction-mail.blade.php +++ /dev/null @@ -1,3 +0,0 @@ -

                                                                                                                                                                                                                                                                                                                                            Bonjour {{ $user->firstname }},

                                                                                                                                                                                                                                                                                                                                            -

                                                                                                                                                                                                                                                                                                                                            Félicitation pour votre gain d'un bon de reduction d'une valeur de {{$coupon->face_value}}€ {{$coupon->valid_on}} !

                                                                                                                                                                                                                                                                                                                                            -J'imprime mon coupon ! diff --git a/resources/views/front/basic_example/reduction.blade.php b/resources/views/front/basic_example/reduction.blade.php deleted file mode 100644 index 328abc7..0000000 --- a/resources/views/front/basic_example/reduction.blade.php +++ /dev/null @@ -1,9 +0,0 @@ -@extends('front.basic.layout') - -@section('title', 'Réduction') - -@section('content') -

                                                                                                                                                                                                                                                                                                                                            Gain d'une réduction :

                                                                                                                                                                                                                                                                                                                                            -

                                                                                                                                                                                                                                                                                                                                            {{$crmCoupon->link}}

                                                                                                                                                                                                                                                                                                                                            -

                                                                                                                                                                                                                                                                                                                                            Rejouer ! -@endsection diff --git a/resources/views/front/basic_example/register-crm.blade.php b/resources/views/front/basic_example/register-crm.blade.php deleted file mode 100644 index fa4b6bd..0000000 --- a/resources/views/front/basic_example/register-crm.blade.php +++ /dev/null @@ -1,92 +0,0 @@ -@extends('front.basic.layout') - -@section('title', 'Connexion') - -@section('content') -

                                                                                                                                                                                                                                                                                                                                            -
                                                                                                                                                                                                                                                                                                                                            -
                                                                                                                                                                                                                                                                                                                                            -
                                                                                                                                                                                                                                                                                                                                            -
                                                                                                                                                                                                                                                                                                                                            Inscription
                                                                                                                                                                                                                                                                                                                                            - -
                                                                                                                                                                                                                                                                                                                                            - @if ($errors->any()) -
                                                                                                                                                                                                                                                                                                                                            -
                                                                                                                                                                                                                                                                                                                                              - @foreach ($errors->all() as $error) -
                                                                                                                                                                                                                                                                                                                                            • {{ $error }}
                                                                                                                                                                                                                                                                                                                                            • - @endforeach -
                                                                                                                                                                                                                                                                                                                                            -
                                                                                                                                                                                                                                                                                                                                            - @endif -
                                                                                                                                                                                                                                                                                                                                            - @csrf -
                                                                                                                                                                                                                                                                                                                                            - - -
                                                                                                                                                                                                                                                                                                                                            -
                                                                                                                                                                                                                                                                                                                                            - - -
                                                                                                                                                                                                                                                                                                                                            -
                                                                                                                                                                                                                                                                                                                                            - - -
                                                                                                                                                                                                                                                                                                                                            -
                                                                                                                                                                                                                                                                                                                                            - - -
                                                                                                                                                                                                                                                                                                                                            -
                                                                                                                                                                                                                                                                                                                                            - - -
                                                                                                                                                                                                                                                                                                                                            -
                                                                                                                                                                                                                                                                                                                                            - - -
                                                                                                                                                                                                                                                                                                                                            -
                                                                                                                                                                                                                                                                                                                                            - - -
                                                                                                                                                                                                                                                                                                                                            -
                                                                                                                                                                                                                                                                                                                                            - - -
                                                                                                                                                                                                                                                                                                                                            -
                                                                                                                                                                                                                                                                                                                                            - - -
                                                                                                                                                                                                                                                                                                                                            -
                                                                                                                                                                                                                                                                                                                                            - - -
                                                                                                                                                                                                                                                                                                                                            -
                                                                                                                                                                                                                                                                                                                                            - - -
                                                                                                                                                                                                                                                                                                                                            -
                                                                                                                                                                                                                                                                                                                                            - - -
                                                                                                                                                                                                                                                                                                                                            -
                                                                                                                                                                                                                                                                                                                                            -
                                                                                                                                                                                                                                                                                                                                            - -
                                                                                                                                                                                                                                                                                                                                            -
                                                                                                                                                                                                                                                                                                                                            - -
                                                                                                                                                                                                                                                                                                                                            -
                                                                                                                                                                                                                                                                                                                                            -
                                                                                                                                                                                                                                                                                                                                            -
                                                                                                                                                                                                                                                                                                                                            -
                                                                                                                                                                                                                                                                                                                                            -
                                                                                                                                                                                                                                                                                                                                            -
                                                                                                                                                                                                                                                                                                                                            -@endsection diff --git a/resources/views/front/basic_example/reglement.blade.php b/resources/views/front/basic_example/reglement.blade.php deleted file mode 100644 index 819955f..0000000 --- a/resources/views/front/basic_example/reglement.blade.php +++ /dev/null @@ -1,8 +0,0 @@ -@extends('front.basic.layout') - -@section('title', 'Règlement') - -@section('content') -

                                                                                                                                                                                                                                                                                                                                            Content règlement :

                                                                                                                                                                                                                                                                                                                                            -

                                                                                                                                                                                                                                                                                                                                            {!!$content->value!!}

                                                                                                                                                                                                                                                                                                                                            -@endsection diff --git a/resources/views/front/basic_example/replay.blade.php b/resources/views/front/basic_example/replay.blade.php deleted file mode 100644 index 303e0db..0000000 --- a/resources/views/front/basic_example/replay.blade.php +++ /dev/null @@ -1,8 +0,0 @@ -@extends('front.basic.layout') - -@section('title', 'Rejouer') - -@section('content') -

                                                                                                                                                                                                                                                                                                                                            Félicitations pour votre gain !

                                                                                                                                                                                                                                                                                                                                            -

                                                                                                                                                                                                                                                                                                                                            Rejouer !

                                                                                                                                                                                                                                                                                                                                            -@endsection diff --git a/resources/views/front/basic_example/teaser.blade.php b/resources/views/front/basic_example/teaser.blade.php deleted file mode 100644 index 5a03944..0000000 --- a/resources/views/front/basic_example/teaser.blade.php +++ /dev/null @@ -1,36 +0,0 @@ -@extends('front.basic.layout') - -@section('title', 'Accueil') - -@section('content') -

                                                                                                                                                                                                                                                                                                                                            Date début : {{$settings->start_date}}, date de fin : {{$settings->end_date}} et la société : {{$settingsGlobal->company}}

                                                                                                                                                                                                                                                                                                                                            -

                                                                                                                                                                                                                                                                                                                                            Lots (valeur à 0 ou 1 : 0 = faux, 1 = vrai) :

                                                                                                                                                                                                                                                                                                                                            - - - - - - - - - - - - - - @foreach ($prizesGlobal as $p) - - - - - - - - - - - - @endforeach - -
                                                                                                                                                                                                                                                                                                                                            ID ArcadiaLabel singulierLabel plurielQuantitéNotification activéFormulaire suppl.ID mail ArcadiaPdf preuve de gainLot par défaut
                                                                                                                                                                                                                                                                                                                                            {{$p->arcadia_id}}{{$p->label_one}}{{$p->label_many}}{{$p->quantity}}{{$p->notifications}}{{$p->additional_form}}{{$p->arcadia_mail_id}}{{$p->pdf_winning_proof}}{{$p->need_proof}}
                                                                                                                                                                                                                                                                                                                                            -@endsection diff --git a/resources/views/front/basic_example/verifyemail.blade.php b/resources/views/front/basic_example/verifyemail.blade.php deleted file mode 100644 index 74c58e2..0000000 --- a/resources/views/front/basic_example/verifyemail.blade.php +++ /dev/null @@ -1,5 +0,0 @@ -

                                                                                                                                                                                                                                                                                                                                            Confirmation d'email

                                                                                                                                                                                                                                                                                                                                            -

                                                                                                                                                                                                                                                                                                                                            Bonjour {{ $user->firstname }},

                                                                                                                                                                                                                                                                                                                                            -

                                                                                                                                                                                                                                                                                                                                            Merci pour votre inscription à notre jeu !

                                                                                                                                                                                                                                                                                                                                            -

                                                                                                                                                                                                                                                                                                                                            Afin d'activer votre compte, merci de confirmer votre email en cliquant sur le lien ci-dessous :

                                                                                                                                                                                                                                                                                                                                            -

                                                                                                                                                                                                                                                                                                                                            Confirmer mon adresse email

                                                                                                                                                                                                                                                                                                                                            diff --git a/resources/views/front/basic_example/winning-proof-email.blade.php b/resources/views/front/basic_example/winning-proof-email.blade.php deleted file mode 100644 index 1cd5518..0000000 --- a/resources/views/front/basic_example/winning-proof-email.blade.php +++ /dev/null @@ -1,19 +0,0 @@ -

                                                                                                                                                                                                                                                                                                                                            Bonjour,

                                                                                                                                                                                                                                                                                                                                            -

                                                                                                                                                                                                                                                                                                                                            Vous trouverez en PJ les preuves de gain du joueur suivant :

                                                                                                                                                                                                                                                                                                                                            -

                                                                                                                                                                                                                                                                                                                                            - Lot : {{ $participation->instantWin()->first()->prize->label_one ?? ''}}
                                                                                                                                                                                                                                                                                                                                            - {{$user->lastname}} {{$user->firstname}}
                                                                                                                                                                                                                                                                                                                                            - {{$user->address}}
                                                                                                                                                                                                                                                                                                                                            - @if ($user->address2 !== null) - {{$user->address2}}
                                                                                                                                                                                                                                                                                                                                            - @endif - {{$user->postal_code}} {{$user->town}} - {{$user->country}}
                                                                                                                                                                                                                                                                                                                                            - {{$user->email}} -

                                                                                                                                                                                                                                                                                                                                            -

                                                                                                                                                                                                                                                                                                                                            Codes utilisés :

                                                                                                                                                                                                                                                                                                                                            -

                                                                                                                                                                                                                                                                                                                                            - @if ($settings->use_ean_codes) - Code On Pack : {{ $participation->codeEan->code }}
                                                                                                                                                                                                                                                                                                                                            - @endif - Code Unique : {{ $participation->code->code_unique ?? ''}} -

                                                                                                                                                                                                                                                                                                                                            \ No newline at end of file diff --git a/resources/views/front/basic_example/winning-proof.blade.php b/resources/views/front/basic_example/winning-proof.blade.php deleted file mode 100644 index 649f3ee..0000000 --- a/resources/views/front/basic_example/winning-proof.blade.php +++ /dev/null @@ -1,59 +0,0 @@ -@extends('front.basic.layout') - -@section('title', 'Preuve de gain') - -@section('content') -

                                                                                                                                                                                                                                                                                                                                            Envoyer vos preuves de gain

                                                                                                                                                                                                                                                                                                                                            -
                                                                                                                                                                                                                                                                                                                                            - @method('PUT') - @csrf - @if ($errors->any()) -
                                                                                                                                                                                                                                                                                                                                            -
                                                                                                                                                                                                                                                                                                                                              - @foreach ($errors->all() as $error) -
                                                                                                                                                                                                                                                                                                                                            • {{ $error }}
                                                                                                                                                                                                                                                                                                                                            • - @endforeach -
                                                                                                                                                                                                                                                                                                                                            -
                                                                                                                                                                                                                                                                                                                                            - @endif -
                                                                                                                                                                                                                                                                                                                                            - -
                                                                                                                                                                                                                                                                                                                                            -
                                                                                                                                                                                                                                                                                                                                            - -
                                                                                                                                                                                                                                                                                                                                            -
                                                                                                                                                                                                                                                                                                                                            - -
                                                                                                                                                                                                                                                                                                                                            -
                                                                                                                                                                                                                                                                                                                                            - -
                                                                                                                                                                                                                                                                                                                                            -
                                                                                                                                                                                                                                                                                                                                            - -
                                                                                                                                                                                                                                                                                                                                            -
                                                                                                                                                                                                                                                                                                                                            - -
                                                                                                                                                                                                                                                                                                                                            -
                                                                                                                                                                                                                                                                                                                                            - -
                                                                                                                                                                                                                                                                                                                                            -
                                                                                                                                                                                                                                                                                                                                            - -
                                                                                                                                                                                                                                                                                                                                            -
                                                                                                                                                                                                                                                                                                                                            -
                                                                                                                                                                                                                                                                                                                                            - -
                                                                                                                                                                                                                                                                                                                                            -
                                                                                                                                                                                                                                                                                                                                            -
                                                                                                                                                                                                                                                                                                                                            - -
                                                                                                                                                                                                                                                                                                                                            -
                                                                                                                                                                                                                                                                                                                                            -
                                                                                                                                                                                                                                                                                                                                            - -
                                                                                                                                                                                                                                                                                                                                            -
                                                                                                                                                                                                                                                                                                                                            - -
                                                                                                                                                                                                                                                                                                                                            -
                                                                                                                                                                                                                                                                                                                                            -@endsection diff --git a/resources/views/home.blade.php b/resources/views/home.blade.php deleted file mode 100644 index 1f34466..0000000 --- a/resources/views/home.blade.php +++ /dev/null @@ -1,23 +0,0 @@ -@extends('layouts.app') - -@section('content') -
                                                                                                                                                                                                                                                                                                                                            -
                                                                                                                                                                                                                                                                                                                                            -
                                                                                                                                                                                                                                                                                                                                            -
                                                                                                                                                                                                                                                                                                                                            -
                                                                                                                                                                                                                                                                                                                                            {{ __('Dashboard') }}
                                                                                                                                                                                                                                                                                                                                            - -
                                                                                                                                                                                                                                                                                                                                            - @if (session('status')) - - @endif - - {{ __('You are logged in!') }} -
                                                                                                                                                                                                                                                                                                                                            -
                                                                                                                                                                                                                                                                                                                                            -
                                                                                                                                                                                                                                                                                                                                            -
                                                                                                                                                                                                                                                                                                                                            -
                                                                                                                                                                                                                                                                                                                                            -@endsection diff --git a/resources/views/layout.blade.php b/resources/views/layout.blade.php new file mode 100644 index 0000000..7b21d82 --- /dev/null +++ b/resources/views/layout.blade.php @@ -0,0 +1,42 @@ + + + + + @include('back::layouts.head') + + + + + @include('back::layouts.header') + + +
                                                                                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                                                                                            + +
                                                                                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                                                                                            + @include('back::modules.flash-messages') +
                                                                                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                                                                                            + +
                                                                                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                                                                                            + @yield('content') +
                                                                                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                                                                                            + + + @include('back::layouts.footer') + + + @include('modules.script-routes') + @vite(['resources/ts/bo.ts']) + @stack('scripts') + + + diff --git a/resources/views/layouts/app.blade.php b/resources/views/layouts/app.blade.php deleted file mode 100644 index 9e795f4..0000000 --- a/resources/views/layouts/app.blade.php +++ /dev/null @@ -1,80 +0,0 @@ - - - - - - - - - - {{ config('app.name', 'Laravel') }} - - - - - - - - - - - - -
                                                                                                                                                                                                                                                                                                                                            - - -
                                                                                                                                                                                                                                                                                                                                            - @yield('content') -
                                                                                                                                                                                                                                                                                                                                            -
                                                                                                                                                                                                                                                                                                                                            - - diff --git a/resources/views/layouts/bo.blade.php b/resources/views/layouts/bo.blade.php deleted file mode 100644 index c43b997..0000000 --- a/resources/views/layouts/bo.blade.php +++ /dev/null @@ -1,125 +0,0 @@ - - - - - - - - - - {{ config('app.name', 'Laravel') }} - - - {{-- TODO : Ajouter jQuery dans app.js --}} - - {{-- TODO : Voir l'inclusion de Font Awesome, pour le moment c'est fait avec mon compte FA --}} - - - - - - - - - @yield('styles') - - -
                                                                                                                                                                                                                                                                                                                                            - - -
                                                                                                                                                                                                                                                                                                                                            -
                                                                                                                                                                                                                                                                                                                                            -
                                                                                                                                                                                                                                                                                                                                            - -
                                                                                                                                                                                                                                                                                                                                            - @include('modules.flashMessage') - @yield('content') -
                                                                                                                                                                                                                                                                                                                                            -
                                                                                                                                                                                                                                                                                                                                            -
                                                                                                                                                                                                                                                                                                                                            -
                                                                                                                                                                                                                                                                                                                                            -
                                                                                                                                                                                                                                                                                                                                            - - @stack('scripts') - - diff --git a/resources/views/layouts/footer.blade.php b/resources/views/layouts/footer.blade.php new file mode 100644 index 0000000..15d04b5 --- /dev/null +++ b/resources/views/layouts/footer.blade.php @@ -0,0 +1,10 @@ +
                                                                                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                                                                                            + @if (isset($cpsr_name) && isset($cpsr_version)) + {{ $cpsr_name }} - {{ $cpsr_version }} + - + @endif + {{ __('UWIL') }} + © {{ date('Y') }} +
                                                                                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                                                                                            diff --git a/resources/views/layouts/head.blade.php b/resources/views/layouts/head.blade.php new file mode 100644 index 0000000..76df358 --- /dev/null +++ b/resources/views/layouts/head.blade.php @@ -0,0 +1,46 @@ +{{-- Meta --}} + +{{-- blade-formatter-disable --}} +@hasSection('metaIndex') + +@else + +@endif +{{-- blade-formatter-enable --}} + + + + +{{-- Favicon --}} +{{-- GENERER favicon avec un outil https://realfavicongenerator.net/ --}} + + + + + + + + +{{-- Others --}} +{{-- blade-formatter-disable-next-line --}} +{{ __('Bo') }} - {{ $settingsGlobal->name ?? config('app.name') }}@hasSection('title') - @yield('title')@endif + +{{-- blade-formatter-disable --}} +@hasSection('canonical') + +@else + +@endif +{{-- blade-formatter-enable --}} + +@include('modules.breadcrumbs.breadcrumb-head') + +{{-- STYLES --}} +@vite(['resources/sass/bo.scss']) +@stack('styles') + +@if (config('app.debug')) + +@endif diff --git a/resources/views/layouts/header.blade.php b/resources/views/layouts/header.blade.php new file mode 100644 index 0000000..c69aff6 --- /dev/null +++ b/resources/views/layouts/header.blade.php @@ -0,0 +1,111 @@ + + +@can('fo.showRe7') + @include('back::layouts.re7-offcanvas') +@endcan diff --git a/resources/views/layouts/nav-list.blade.php b/resources/views/layouts/nav-list.blade.php new file mode 100644 index 0000000..fdb44f9 --- /dev/null +++ b/resources/views/layouts/nav-list.blade.php @@ -0,0 +1,172 @@ + diff --git a/resources/views/layouts/re7-offcanvas.blade.php b/resources/views/layouts/re7-offcanvas.blade.php new file mode 100644 index 0000000..729a9f0 --- /dev/null +++ b/resources/views/layouts/re7-offcanvas.blade.php @@ -0,0 +1,95 @@ +
                                                                                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                                                                                            {{ __('Menu de recettage') }}
                                                                                                                                                                                                                                                                                                                                            + +
                                                                                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                                                                                            + {{ __('Liste de liens pour visualiser les pages du jeu.') }} +
                                                                                                                                                                                                                                                                                                                                            + + {{-- HOME --}} + {{ __('Home') }} + + {{-- TEASER --}} + {{ __('Teaser') }} + + {{-- ENDGAME --}} + {{ __('Fin du jeu') }} 🫰 + + {{-- WON --}} +
                                                                                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                                                                                            + {{ __('Participation') }} + + @if ($settingsGlobal->discounts_activated) + {{-- WON BR --}} + {{ __('Bon de réduction') }} + @endif + + {{-- WON PRIZE --}} + @foreach (\App\Models\Prize::getCached() as $prize) + {{-- WON PRIZE X --}} + + {{ __('Lot :name', ['name' => $prize->label]) }} + + @endforeach + + {{-- LOOSE --}} + {{ __('Perdu') }} +
                                                                                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                                                                                            + + {{-- MAILS --}} +
                                                                                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                                                                                            + {{ __('Mails') }} + + @if ($settingsGlobal->notify_prize_sent) + {{-- PRIZE SENT --}} + {{ __('Le lot à été envoyé') }} + @endif + + {{-- WON PROOF RECEIVED --}} + {{ __('Preuves de gains reçus') }} + + @if ($settingsGlobal->discounts_activated) + {{-- WON BR MAIL --}} + {{ __('Bon de réduction') }} + @endif + + {{-- WON PRIZE MAIL --}} + @foreach (\App\Models\Prize::getCached() as $prize) + {{-- WON PRIZE X MAIL --}} + + {{ __('Lot :name', ['name' => $prize->label]) }} + + @endforeach +
                                                                                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                                                                                            diff --git a/resources/views/mails/jobs/code-generation-succeed.blade.php b/resources/views/mails/jobs/code-generation-succeed.blade.php new file mode 100644 index 0000000..6a8d09a --- /dev/null +++ b/resources/views/mails/jobs/code-generation-succeed.blade.php @@ -0,0 +1,9 @@ +{{-- blade-formatter-disable --}} + +# Génération de codes uniques + +Génération des `{{ $quantity }}` codes uniques terminés sur le jeu **{{ $gameName }}**. + +Merci,
                                                                                                                                                                                                                                                                                                                                            +{{ config('app.name') }} +
                                                                                                                                                                                                                                                                                                                                            diff --git a/resources/views/mails/jobs/code-unique-export-succeed.blade.php b/resources/views/mails/jobs/code-unique-export-succeed.blade.php new file mode 100644 index 0000000..cb1eb26 --- /dev/null +++ b/resources/views/mails/jobs/code-unique-export-succeed.blade.php @@ -0,0 +1,17 @@ +{{-- blade-formatter-disable --}} + +# Export de codes uniques + +*L'export des codes uniques est terminé, nom de l'archive : `{{ pathinfo($archive_path, \PATHINFO_BASENAME) }}`* + +Vous trouverez le fichier dans `{{ $archive_path }}`. + +Paramètres utilisés pour la génération : + + - Nombre de code par fichier : `{{ $nbCodeFic }}` + - Nombre total de code à exporter : `{{ $nbCodeTot }}` + - Nombre de code par ligne : `{{ $nbCodeLigne }}` + +Merci,
                                                                                                                                                                                                                                                                                                                                            +{{ config('app.name') }} +
                                                                                                                                                                                                                                                                                                                                            diff --git a/resources/views/mails/jobs/failure.blade.php b/resources/views/mails/jobs/failure.blade.php new file mode 100644 index 0000000..337347c --- /dev/null +++ b/resources/views/mails/jobs/failure.blade.php @@ -0,0 +1,15 @@ +{{-- blade-formatter-disable --}} + +# Erreur lors de la tache + +Job : {{ $job }}

                                                                                                                                                                                                                                                                                                                                            +Exception : {{ Arr::get($exception, 'message') }}

                                                                                                                                                                                                                                                                                                                                            +Trace :
                                                                                                                                                                                                                                                                                                                                            + +```` +{{ Arr::get($exception, 'trace') }} +``` + +Merci,
                                                                                                                                                                                                                                                                                                                                            +{{ config('app.name') }} +
                                                                                                                                                                                                                                                                                                                                            diff --git a/resources/views/modules/breadcrumbs/breadcrumb-body.blade.php b/resources/views/modules/breadcrumbs/breadcrumb-body.blade.php new file mode 100644 index 0000000..51b36a8 --- /dev/null +++ b/resources/views/modules/breadcrumbs/breadcrumb-body.blade.php @@ -0,0 +1,7 @@ +@hasSection('breadcrumb') + @if (Breadcrumbs::exists(app()->view->getSections()['breadcrumb'])) + {{ call_user_func_array('Breadcrumbs::render', array_merge([app()->view->getSections()['breadcrumb']], Arr::wrap($brParam))) }} + @endif +@elseif(Breadcrumbs::exists(request()->route()->getName())) + {{ Breadcrumbs::render(request()->route()->getName()) }} +@endif diff --git a/resources/views/modules/breadcrumbs/breadcrumb-head.blade.php b/resources/views/modules/breadcrumbs/breadcrumb-head.blade.php new file mode 100644 index 0000000..ac3e053 --- /dev/null +++ b/resources/views/modules/breadcrumbs/breadcrumb-head.blade.php @@ -0,0 +1,10 @@ +@hasSection('breadcrumb') + @if (Breadcrumbs::exists(app()->view->getSections()['breadcrumb'])) + {{ call_user_func_array( + 'Breadcrumbs::view', + array_merge(['breadcrumbs::json-ld', app()->view->getSections()['breadcrumb']], Arr::wrap($brParam)), + ) }} + @endif +@elseif(Breadcrumbs::exists(request()->route()->getName())) + {{ Breadcrumbs::view('breadcrumbs::json-ld',request()->route()->getName()) }} +@endif diff --git a/resources/views/modules/breadcrumbs/breadcrumb-layout.blade.php b/resources/views/modules/breadcrumbs/breadcrumb-layout.blade.php new file mode 100644 index 0000000..e1b07cd --- /dev/null +++ b/resources/views/modules/breadcrumbs/breadcrumb-layout.blade.php @@ -0,0 +1,17 @@ +@if (count($breadcrumbs)) + +@endif diff --git a/resources/views/modules/change-model-order.blade.php b/resources/views/modules/change-model-order.blade.php new file mode 100644 index 0000000..a76ed7c --- /dev/null +++ b/resources/views/modules/change-model-order.blade.php @@ -0,0 +1,32 @@ + + @can('changeOrder', $model) +
                                                                                                                                                                                                                                                                                                                                            + + +
                                                                                                                                                                                                                                                                                                                                            + @else + + + + @endcan + diff --git a/resources/views/modules/change-published-status.blade.php b/resources/views/modules/change-published-status.blade.php new file mode 100644 index 0000000..3322e5a --- /dev/null +++ b/resources/views/modules/change-published-status.blade.php @@ -0,0 +1,20 @@ + + @can('changePublished', $model) +
                                                                                                                                                                                                                                                                                                                                            + @csrf + @method('PATCH') + +
                                                                                                                                                                                                                                                                                                                                            + @else + + + + @endcan + diff --git a/resources/views/modules/flash-messages.blade.php b/resources/views/modules/flash-messages.blade.php new file mode 100644 index 0000000..3482a10 --- /dev/null +++ b/resources/views/modules/flash-messages.blade.php @@ -0,0 +1,49 @@ +@if (!request()->routeIs('login')) + @if ($message = Session::get('success', Session::get('bo.success'))) + + @endif + + @if ($message = Session::get('error', Session::get('bo.error'))) + + @endif + + @if ($message = Session::get('warning', Session::get('bo.warning'))) + + @endif + + @if ($message = Session::get('status', Session::get('bo.status'))) + + @endif + + @if ($message = Session::get('info', Session::get('bo.info'))) + + @endif + + @if ($errors->any()) + + @endif +@endif diff --git a/resources/views/modules/flashMessage.blade.php b/resources/views/modules/flashMessage.blade.php deleted file mode 100644 index cf0c257..0000000 --- a/resources/views/modules/flashMessage.blade.php +++ /dev/null @@ -1,54 +0,0 @@ -@if ($message = Session::get('success')) - -@endif - - -@if ($message = Session::get('error')) - -@endif - - -@if ($message = Session::get('warning')) - -@endif - - -@if ($message = Session::get('info')) - -@endif - - -@if ($errors->any()) - -@endif diff --git a/resources/views/modules/input-error.blade.php b/resources/views/modules/input-error.blade.php new file mode 100644 index 0000000..8f09499 --- /dev/null +++ b/resources/views/modules/input-error.blade.php @@ -0,0 +1,9 @@ +@if ($errors->has($inputName)) +
                                                                                                                                                                                                                                                                                                                                            + {{ implode(',', Arr::flatten(Arr::wrap($errors->get($inputName)))) }} +
                                                                                                                                                                                                                                                                                                                                            +@endif +@if (isset($helper)) + {{ $helper }} +@endif diff --git a/resources/views/modules/minicrud-form-inputs.blade.php b/resources/views/modules/minicrud-form-inputs.blade.php new file mode 100644 index 0000000..8781d93 --- /dev/null +++ b/resources/views/modules/minicrud-form-inputs.blade.php @@ -0,0 +1,8 @@ +@if($errors->has($inputName)) +
                                                                                                                                                                                                                                                                                                                                            + {{ implode(',', $errors->get($inputName)) }} +
                                                                                                                                                                                                                                                                                                                                            +@endif +@if(isset($helper)) +{{ $helper }} +@endif diff --git a/resources/views/modules/pagination.blade.php b/resources/views/modules/pagination.blade.php new file mode 100644 index 0000000..5ce1e6b --- /dev/null +++ b/resources/views/modules/pagination.blade.php @@ -0,0 +1,114 @@ +{{-- GET ACTUAL PAGINATION --}} +@php + $pagination = intval( + Cache::get( + 'pagination.' . + \Illuminate\Support\Str::slug( + request() + ->route() + ->getName(), + ), + ), + ); +@endphp +@if ($paginator->items()) + +@endif diff --git a/resources/views/modules/script-constants.blade.php b/resources/views/modules/script-constants.blade.php new file mode 100644 index 0000000..16d5d9d --- /dev/null +++ b/resources/views/modules/script-constants.blade.php @@ -0,0 +1,8 @@ + diff --git a/resources/views/modules/script-routes.blade.php b/resources/views/modules/script-routes.blade.php new file mode 100644 index 0000000..f55b99d --- /dev/null +++ b/resources/views/modules/script-routes.blade.php @@ -0,0 +1,11 @@ +@include('modules.script-constants') + diff --git a/resources/views/modules/search-bar.blade.php b/resources/views/modules/search-bar.blade.php new file mode 100644 index 0000000..f8f7c62 --- /dev/null +++ b/resources/views/modules/search-bar.blade.php @@ -0,0 +1,48 @@ +@php + $iArgs = []; + if (request()->sort_col) { + $iArgs['sort_col'] = request()->sort_col; + } + + if (request()->search) { + $iArgs['search'] = request()->sort_way; + } +@endphp +
                                                                                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                                                                                            + + @if (request()->sort_col) + + @endif + @if (request()->sort_way) + + @endif + @if (request()->rangefilter) + + @endif + @if (request()->group) + + @endif + + + + @push('scripts') + + @endpush +
                                                                                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                                                                                            diff --git a/resources/views/modules/table-col-sorter.blade.php b/resources/views/modules/table-col-sorter.blade.php new file mode 100644 index 0000000..fcf00bb --- /dev/null +++ b/resources/views/modules/table-col-sorter.blade.php @@ -0,0 +1,76 @@ +@php + $route = request()->route(); + $routeName = $route->getName(); + $rst = !is_null(request()->rst) || !Session::has("$routeName.sorted"); + $noOrder = !empty($noOrder); + $noOrder = $noOrder || (Session::get("$routeName.sort_col") !== 'order' and (Session::has("$routeName.sort_col") or Session::has("$routeName.sort_way"))); + $noOrder = $noOrder || !empty(request()->search); + $ignore = (isset($ignore) and is_array($ignore)) ? $ignore : []; +@endphp + + @foreach ($cols as $col => $colname) + @php + $iArgs = ['sort_col' => $col]; + if (request()->search) { + $iArgs['search'] = request()->search; + } + @endphp + {{-- NO Sort for order column --}} + @if ($col === 'order' or in_array($col, $ignore)) + @if ($noOrder and !in_array($col, $ignore)) + @continue + @endif + +
                                                                                                                                                                                                                                                                                                                                            + {{ $colname }} +
                                                                                                                                                                                                                                                                                                                                            + + @continue + @endif + +
                                                                                                                                                                                                                                                                                                                                            + + {{ $colname }} + + @if ( + !session("$routeName.sort_way") or + session("$routeName.sort_col") !== $col or + session("$routeName.sort_way") === 'desc' and session("$routeName.sort_col") === $col) + + + + @endif + @if ( + !session("$routeName.sort_way") or + session("$routeName.sort_col") !== $col or + session("$routeName.sort_way") === 'asc' and session("$routeName.sort_col") === $col) + + + + @endif +
                                                                                                                                                                                                                                                                                                                                            + + @endforeach + {{-- Buttons Col --}} + + @if (!$rst) + + + + @else + + + + @endif + + diff --git a/resources/views/pages/activity_logs/index-list.blade.php b/resources/views/pages/activity_logs/index-list.blade.php new file mode 100644 index 0000000..cb1e0a4 --- /dev/null +++ b/resources/views/pages/activity_logs/index-list.blade.php @@ -0,0 +1,72 @@ + + @if (count($activitylogModels) > 0) + + @include('back::modules.table-col-sorter', [ + 'cols' => [ + 'event' => Str::ucfirst(__('validation.custom.event')), + 'user' => Str::ucfirst(__('models.classes.user')), + 'model' => Str::ucfirst(__('validation.custom.model')), + 'created_at' => Str::ucfirst(__('validation.attributes.created_at')), + ], + ]) + + + @foreach ($activitylogModels as $activitylogModel) + + + + @php + $targetModel = $activitylogModel->model_class::where((new $activitylogModel->model_class())->getRouteKeyName(), $activitylogModel->model_id)->first(); + $editRouteName = 'bo.' . optional($targetModel)->getTable() . '.edit'; + @endphp + + + + + @endforeach + + @else + + + + @endif +
                                                                                                                                                                                                                                                                                                                                            + {{ $activitylogModel->event->label() }} + + @if (isset($activitylogModel->user)) + + {{ $activitylogModel->user->last_name }} {{ $activitylogModel->user->first_name }} + + @elseif($activitylogModel->is_console) + {{ __('Utilisateur dans la console') }} + @elseif($activitylogModel->is_anonymous) + {{ __('Utilisateur anonyme') }} + @else + {{ __('Utilisateur supprimé') }} + @endif + + @if (!empty($targetModel) and Route::has($editRouteName)) + + @endif + {{ $activitylogModel->model_class }} + @if (!empty($targetModel) and Route::has($editRouteName)) + + @endif + + + {{ $activitylogModel->created_at->isoFormat('LLLL') }} + + + @can('isConceptor') + + + + @endcan +
                                                                                                                                                                                                                                                                                                                                            {{ __('crud.other.no_model_found', ['model' => trans_choice('models.classes.activity_log', 1)]) }}
                                                                                                                                                                                                                                                                                                                                            diff --git a/resources/views/pages/activity_logs/index.blade.php b/resources/views/pages/activity_logs/index.blade.php new file mode 100644 index 0000000..a7eb42a --- /dev/null +++ b/resources/views/pages/activity_logs/index.blade.php @@ -0,0 +1,15 @@ +@extends('back::layout') + +@section('title', Str::ucfirst(trans_choice('models.classes.activity_log', '*'))) +@section('description', __('Liste de tous les :model', ['model' => trans_choice('models.classes.activity_log', '*')])) + +@section('content') +
                                                                                                                                                                                                                                                                                                                                            + @include('modules.breadcrumbs.breadcrumb-body') +
                                                                                                                                                                                                                                                                                                                                            + @include('back::modules.search-bar') +
                                                                                                                                                                                                                                                                                                                                            + @include('back::pages.activity_logs.index-list') +
                                                                                                                                                                                                                                                                                                                                            + {{ $activitylogModels->links() }} +@endsection diff --git a/resources/views/pages/activity_logs/show.blade.php b/resources/views/pages/activity_logs/show.blade.php new file mode 100644 index 0000000..27b33b8 --- /dev/null +++ b/resources/views/pages/activity_logs/show.blade.php @@ -0,0 +1,121 @@ +@extends('back::layout', ['brParam' => $activitylogModel]) + +@section('title', __('Édition d\'un :model', ['model' => __('models.classes.activity_log')])) +@section('description', __('Édition d\'un :model déjà existant', ['model' => __('models.classes.activity_log')])) +@section('breadcrumb', + request()->route()->getName()) + +@section('content') +
                                                                                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                                                                                            + + + + @include('modules.breadcrumbs.breadcrumb-body', ['brParam' => $activitylogModel]) +
                                                                                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                                                                                            + {{ __('Informations principales') }} +
                                                                                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                                                                                            + + + + + + + + + + + + + + + + + + + +
                                                                                                                                                                                                                                                                                                                                            {{ __('Auteur') }} + @if (isset($activitylogModel->user)) + + {{ $activitylogModel->user->last_name }} {{ $activitylogModel->user->first_name }} + + @elseif($activitylogModel->is_console) + {{ __('Utilisateur dans la console') }} + @elseif($activitylogModel->is_anonymous) + {{ __('Utilisateur anonyme') }} + @else + {{ __('Utilisateur supprimé') }} + @endif +
                                                                                                                                                                                                                                                                                                                                            {{ __('Évènement') }} + + {{ $activitylogModel->event->label() }} + +
                                                                                                                                                                                                                                                                                                                                            {{ __('Élément ciblé') }} + @php + $editRouteName = 'bo.' . optional($targetModel)->getTable() . '.edit'; + @endphp + @if (isset($targetModel) and Route::has($editRouteName)) + + @endif + {{ $activitylogModel->model_class }} + @if (isset($targetModel) and Route::has($editRouteName)) + + @endif +
                                                                                                                                                                                                                                                                                                                                            {{ __('Réalisé le') }} + {{ $activitylogModel->created_at }} +
                                                                                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                                                                                            + @if (isset($activitylogModel->data)) +
                                                                                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                                                                                            + {{ __('Modifications apportées') }} +
                                                                                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                                                                                            + + + + + + + + + + @foreach ($activitylogModel->data as $key => $dataType) + + + + + + @endforeach +
                                                                                                                                                                                                                                                                                                                                            {{ __('Column') }} + + {{ __('Type') }}
                                                                                                                                                                                                                                                                                                                                            {{ $key }} + + + {{ $dataType }} +
                                                                                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                                                                                            + @endif +
                                                                                                                                                                                                                                                                                                                                            +@endsection diff --git a/resources/views/pages/banned-ips/create.blade.php b/resources/views/pages/banned-ips/create.blade.php new file mode 100644 index 0000000..f953c1a --- /dev/null +++ b/resources/views/pages/banned-ips/create.blade.php @@ -0,0 +1,36 @@ +@extends('back::layout', ['brParam' => $bannedipModel]) + +@section('title', __('Création d\'une :model', ['model' => Str::singular(__('models.classes.banned_ips'))])) +@section('description', __('Création d\'une toute nouvelle :model', ['model' => Str::singular(__('models.classes.banned_ips'))])) +@section('breadcrumb', + request()->route()->getName()) + +@section('content') +
                                                                                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                                                                                            + + + + @include('modules.breadcrumbs.breadcrumb-body', ['brParam' => $bannedipModel]) +
                                                                                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                                                                                            + +
                                                                                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                                                                                            + @csrf + @include('back::pages.banned-ips.form-inputs') +
                                                                                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                                                                                            + +
                                                                                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                                                                                            +@endsection diff --git a/resources/views/pages/banned-ips/edit.blade.php b/resources/views/pages/banned-ips/edit.blade.php new file mode 100644 index 0000000..a1f164d --- /dev/null +++ b/resources/views/pages/banned-ips/edit.blade.php @@ -0,0 +1,49 @@ +@extends('back::layout', ['brParam' => $bannedipModel]) + +@section('title', __('Édition d\'une :model', ['model' => Str::singular(__('models.classes.banned_ips'))])) +@section('description', __('Édition d\'une :model déjà existante', ['model' => Str::singular(__('models.classes.banned_ips'))])) +@section('breadcrumb', + request()->route()->getName()) + +@section('content') +
                                                                                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                                                                                            + + + + @include('modules.breadcrumbs.breadcrumb-body', ['brParam' => $bannedipModel]) +
                                                                                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                                                                                            + + @can('delete', $bannedipModel) + @csrf + @method('DELETE') + + @endcan +
                                                                                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                                                                                            + @csrf + @method('PUT') + @include('back::pages.banned-ips.form-inputs') +
                                                                                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                                                                                            + +
                                                                                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                                                                                            +@endsection diff --git a/resources/views/pages/banned-ips/form-inputs.blade.php b/resources/views/pages/banned-ips/form-inputs.blade.php new file mode 100644 index 0000000..4b9f715 --- /dev/null +++ b/resources/views/pages/banned-ips/form-inputs.blade.php @@ -0,0 +1,44 @@ +
                                                                                                                                                                                                                                                                                                                                            + {{-- IP --}} +
                                                                                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                                                                                            + {{ Str::ucfirst(__('validation.custom.ip')) }} +
                                                                                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                                                                                            + @include('back::partials.inputs.varchar', [ + 'id' => 'bannedipIp', + 'label' => __(':field à bannir', [ + 'field' => Str::ucfirst(__('validation.custom.ip')), + ]), + 'hasWordCounter' => true, + 'name' => 'ip', + 'required' => true, + 'model' => $bannedipModel ?? null, + 'helper' => __('validation.ip', [ + 'attribute' => __(':field à bannir', [ + 'field' => Str::ucfirst(__('validation.custom.ip')), + ]), + ]), + 'placeholder' => __(':field à bannir', [ + 'field' => Str::ucfirst(__('validation.custom.ip')), + ]), + ]) +
                                                                                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                                                                                            + +@push('scripts') + +@endpush diff --git a/resources/views/pages/banned-ips/index.blade.php b/resources/views/pages/banned-ips/index.blade.php new file mode 100644 index 0000000..ba35baf --- /dev/null +++ b/resources/views/pages/banned-ips/index.blade.php @@ -0,0 +1,61 @@ +@extends('back::layout') + +@section('title', __('models.classes.banned_ips')) +@section('description', __('Liste de toutes les :model', ['model' => __('models.classes.banned_ips')])) + +@section('content') +
                                                                                                                                                                                                                                                                                                                                            + @include('modules.breadcrumbs.breadcrumb-body') + @can('create', \App\Models\BannedIp::class) + + + + @endcan +
                                                                                                                                                                                                                                                                                                                                            + @include('back::modules.search-bar') + + @if (count($bannedipModels) > 0) + + @include('back::modules.table-col-sorter', [ + 'cols' => [ + 'ip' => Str::ucfirst(__('validation.custom.ip')), + ], + ]) + + + @foreach ($bannedipModels as $bannedipModel) + + + + + @endforeach + + @else + + + + @endif +
                                                                                                                                                                                                                                                                                                                                            {{ $bannedipModel->ip }} +
                                                                                                                                                                                                                                                                                                                                            + @can('update', $bannedipModel) + + + + @endcan + @can('delete', $bannedipModel) + @csrf + @method('DELETE') + + @endcan +
                                                                                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                                                                                            + {{ __('crud.other.no_model_found', ['model' => Str::singular(__('models.classes.banned_ips'))]) }}
                                                                                                                                                                                                                                                                                                                                            + {{ $bannedipModels->links() }} +@endsection diff --git a/resources/views/pages/bs-demo.blade.php b/resources/views/pages/bs-demo.blade.php new file mode 100644 index 0000000..13748f2 --- /dev/null +++ b/resources/views/pages/bs-demo.blade.php @@ -0,0 +1,1690 @@ +@extends('back::layout') + +@section('title', __('Bootstrap')) +@section('description', __('Demonstration of Bootstrap\'s components/items')) +@section('breadcrumb', request()->route()->getName()) + +@section('content') +
                                                                                                                                                                                                                                                                                                                                            + +
                                                                                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                                                                                            + +
                                                                                                                                                                                                                                                                                                                                            + +
                                                                                                                                                                                                                                                                                                                                            + +
                                                                                                                                                                                                                                                                                                                                            + +
                                                                                                                                                                                                                                                                                                                                            + +
                                                                                                                                                                                                                                                                                                                                            + +
                                                                                                                                                                                                                                                                                                                                            + +
                                                                                                                                                                                                                                                                                                                                            + +
                                                                                                                                                                                                                                                                                                                                            + +
                                                                                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                                                                                            + + +
                                                                                                                                                                                                                                                                                                                                            + + +
                                                                                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                                                                                            +

                                                                                                                                                                                                                                                                                                                                            + + + + + + + + + +

                                                                                                                                                                                                                                                                                                                                            + +

                                                                                                                                                                                                                                                                                                                                            + + + + + + + + + +

                                                                                                                                                                                                                                                                                                                                            + +

                                                                                                                                                                                                                                                                                                                                            + + + + + + + + +

                                                                                                                                                                                                                                                                                                                                            + +
                                                                                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                                                                                            + + +
                                                                                                                                                                                                                                                                                                                                            + +
                                                                                                                                                                                                                                                                                                                                            + + +
                                                                                                                                                                                                                                                                                                                                            + +
                                                                                                                                                                                                                                                                                                                                            + + +
                                                                                                                                                                                                                                                                                                                                            + +
                                                                                                                                                                                                                                                                                                                                            + + +
                                                                                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                                                                                            + +
                                                                                                                                                                                                                                                                                                                                            + + + +
                                                                                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                                                                                            + + +
                                                                                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                                                                                            + +
                                                                                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                                                                                            + + + + + + +
                                                                                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                                                                                            + +
                                                                                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                                                                                            + + + + + + +
                                                                                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                                                                                            + +
                                                                                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                                                                                            + + + + + + +
                                                                                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                                                                                            + +
                                                                                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                                                                                            + + + +
                                                                                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                                                                                            + +
                                                                                                                                                                                                                                                                                                                                            + +
                                                                                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                                                                                            + + +
                                                                                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                                                                                            + +
                                                                                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                                                                                            + + + +
                                                                                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                                                                                            +

                                                                                                                                                                                                                                                                                                                                            Heading 1

                                                                                                                                                                                                                                                                                                                                            +

                                                                                                                                                                                                                                                                                                                                            Heading 2

                                                                                                                                                                                                                                                                                                                                            +

                                                                                                                                                                                                                                                                                                                                            Heading 3

                                                                                                                                                                                                                                                                                                                                            +

                                                                                                                                                                                                                                                                                                                                            Heading 4

                                                                                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                                                                                            Heading 5
                                                                                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                                                                                            Heading 6
                                                                                                                                                                                                                                                                                                                                            +

                                                                                                                                                                                                                                                                                                                                            + Heading + with faded secondary text +

                                                                                                                                                                                                                                                                                                                                            +

                                                                                                                                                                                                                                                                                                                                            Vivamus sagittis lacus vel augue laoreet rutrum faucibus dolor auctor.

                                                                                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                                                                                            +

                                                                                                                                                                                                                                                                                                                                            Example body text

                                                                                                                                                                                                                                                                                                                                            +

                                                                                                                                                                                                                                                                                                                                            Nullam quis risus eget urna mollis ornare vel eu leo. Cum sociis natoque penatibus et + magnis dis parturient montes, nascetur ridiculus mus. Nullam id dolor id nibh ultricies vehicula.

                                                                                                                                                                                                                                                                                                                                            +

                                                                                                                                                                                                                                                                                                                                            This line of text is meant to be treated as fine print.

                                                                                                                                                                                                                                                                                                                                            +

                                                                                                                                                                                                                                                                                                                                            The following is rendered as bold text.

                                                                                                                                                                                                                                                                                                                                            +

                                                                                                                                                                                                                                                                                                                                            The following is rendered as italicized text.

                                                                                                                                                                                                                                                                                                                                            +

                                                                                                                                                                                                                                                                                                                                            An abbreviation of the word attribute is attr.

                                                                                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                                                                                            +

                                                                                                                                                                                                                                                                                                                                            Emphasis classes

                                                                                                                                                                                                                                                                                                                                            +

                                                                                                                                                                                                                                                                                                                                            .text-primary

                                                                                                                                                                                                                                                                                                                                            +

                                                                                                                                                                                                                                                                                                                                            .text-primary-emphasis

                                                                                                                                                                                                                                                                                                                                            +

                                                                                                                                                                                                                                                                                                                                            .text-secondary

                                                                                                                                                                                                                                                                                                                                            +

                                                                                                                                                                                                                                                                                                                                            .text-secondary-emphasis

                                                                                                                                                                                                                                                                                                                                            +

                                                                                                                                                                                                                                                                                                                                            .text-success

                                                                                                                                                                                                                                                                                                                                            +

                                                                                                                                                                                                                                                                                                                                            .text-success-emphasis

                                                                                                                                                                                                                                                                                                                                            +

                                                                                                                                                                                                                                                                                                                                            .text-danger

                                                                                                                                                                                                                                                                                                                                            +

                                                                                                                                                                                                                                                                                                                                            .text-danger-emphasis

                                                                                                                                                                                                                                                                                                                                            +

                                                                                                                                                                                                                                                                                                                                            .text-warning

                                                                                                                                                                                                                                                                                                                                            +

                                                                                                                                                                                                                                                                                                                                            .text-warning-emphasis

                                                                                                                                                                                                                                                                                                                                            +

                                                                                                                                                                                                                                                                                                                                            .text-info

                                                                                                                                                                                                                                                                                                                                            +

                                                                                                                                                                                                                                                                                                                                            .text-info-emphasis

                                                                                                                                                                                                                                                                                                                                            +

                                                                                                                                                                                                                                                                                                                                            .text-light

                                                                                                                                                                                                                                                                                                                                            +

                                                                                                                                                                                                                                                                                                                                            .text-light-emphasis

                                                                                                                                                                                                                                                                                                                                            +

                                                                                                                                                                                                                                                                                                                                            .text-dark

                                                                                                                                                                                                                                                                                                                                            +

                                                                                                                                                                                                                                                                                                                                            .text-dark-emphasis

                                                                                                                                                                                                                                                                                                                                            +

                                                                                                                                                                                                                                                                                                                                            .text-body

                                                                                                                                                                                                                                                                                                                                            +

                                                                                                                                                                                                                                                                                                                                            .text-body-emphasis

                                                                                                                                                                                                                                                                                                                                            +

                                                                                                                                                                                                                                                                                                                                            .text-body-secondary

                                                                                                                                                                                                                                                                                                                                            +

                                                                                                                                                                                                                                                                                                                                            .text-body-tertiary

                                                                                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                                                                                            + + + +
                                                                                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                                                                                            +

                                                                                                                                                                                                                                                                                                                                            Blockquotes

                                                                                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                                                                                            +

                                                                                                                                                                                                                                                                                                                                            Lorem ipsum dolor sit amet, consectetur adipiscing elit. Integer posuere erat a ante.

                                                                                                                                                                                                                                                                                                                                            + +
                                                                                                                                                                                                                                                                                                                                            + +
                                                                                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                                                                                            +

                                                                                                                                                                                                                                                                                                                                            Lorem ipsum dolor sit amet, consectetur adipiscing elit. Integer posuere erat a ante.

                                                                                                                                                                                                                                                                                                                                            + +
                                                                                                                                                                                                                                                                                                                                            + +
                                                                                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                                                                                            +

                                                                                                                                                                                                                                                                                                                                            Lorem ipsum dolor sit amet, consectetur adipiscing elit. Integer posuere erat a ante.

                                                                                                                                                                                                                                                                                                                                            + +
                                                                                                                                                                                                                                                                                                                                            + +
                                                                                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                                                                                            + + +
                                                                                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                                                                                            + + +
                                                                                                                                                                                                                                                                                                                                            + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
                                                                                                                                                                                                                                                                                                                                            TypeColumn headingColumn headingColumn heading
                                                                                                                                                                                                                                                                                                                                            ActiveColumn contentColumn contentColumn content
                                                                                                                                                                                                                                                                                                                                            DefaultColumn contentColumn contentColumn content
                                                                                                                                                                                                                                                                                                                                            PrimaryColumn contentColumn contentColumn content
                                                                                                                                                                                                                                                                                                                                            SecondaryColumn contentColumn contentColumn content
                                                                                                                                                                                                                                                                                                                                            SuccessColumn contentColumn contentColumn content
                                                                                                                                                                                                                                                                                                                                            DangerColumn contentColumn contentColumn content
                                                                                                                                                                                                                                                                                                                                            WarningColumn contentColumn contentColumn content
                                                                                                                                                                                                                                                                                                                                            InfoColumn contentColumn contentColumn content
                                                                                                                                                                                                                                                                                                                                            LightColumn contentColumn contentColumn content
                                                                                                                                                                                                                                                                                                                                            DarkColumn contentColumn contentColumn content
                                                                                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                                                                                            + + +
                                                                                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                                                                                            + +
                                                                                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                                                                                            + +
                                                                                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                                                                                            + Legend control-plaintext +
                                                                                                                                                                                                                                                                                                                                            + +
                                                                                                                                                                                                                                                                                                                                            + +
                                                                                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                                                                                            + + + We'll never share your email with anyone + else. +
                                                                                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                                                                                            + + +
                                                                                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                                                                                            + + +
                                                                                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                                                                                            + + +
                                                                                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                                                                                            + + +
                                                                                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                                                                                            + + +
                                                                                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                                                                                            + + +
                                                                                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                                                                                            + Radio buttons +
                                                                                                                                                                                                                                                                                                                                            + + +
                                                                                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                                                                                            + + +
                                                                                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                                                                                            + + +
                                                                                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                                                                                            + Checkboxes +
                                                                                                                                                                                                                                                                                                                                            + + +
                                                                                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                                                                                            + + +
                                                                                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                                                                                            + Switches +
                                                                                                                                                                                                                                                                                                                                            + + +
                                                                                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                                                                                            + + +
                                                                                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                                                                                            + Ranges + + + + + + +
                                                                                                                                                                                                                                                                                                                                            + +
                                                                                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                                                                                            + + +
                                                                                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                                                                                            + +
                                                                                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                                                                                            + + +
                                                                                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                                                                                            + +
                                                                                                                                                                                                                                                                                                                                            + + +
                                                                                                                                                                                                                                                                                                                                            Success! You've done it.
                                                                                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                                                                                            + +
                                                                                                                                                                                                                                                                                                                                            + + +
                                                                                                                                                                                                                                                                                                                                            Sorry, that username's taken. Try another?
                                                                                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                                                                                            + +
                                                                                                                                                                                                                                                                                                                                            + + +
                                                                                                                                                                                                                                                                                                                                            + +
                                                                                                                                                                                                                                                                                                                                            + + +
                                                                                                                                                                                                                                                                                                                                            + +
                                                                                                                                                                                                                                                                                                                                            + + +
                                                                                                                                                                                                                                                                                                                                            + +
                                                                                                                                                                                                                                                                                                                                            + +
                                                                                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                                                                                            + $ + + .00 +
                                                                                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                                                                                            + + +
                                                                                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                                                                                            + +
                                                                                                                                                                                                                                                                                                                                            + +
                                                                                                                                                                                                                                                                                                                                            + + +
                                                                                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                                                                                            + + +
                                                                                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                                                                                            + +
                                                                                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                                                                                            + + +
                                                                                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                                                                                            + +
                                                                                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                                                                                            + +
                                                                                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                                                                                            + +
                                                                                                                                                                                                                                                                                                                                            + +
                                                                                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                                                                                            +

                                                                                                                                                                                                                                                                                                                                            Raw denim you probably haven't heard of them jean shorts Austin. Nesciunt tofu stumptown aliqua, retro + synth master cleanse. Mustache cliche tempor, williamsburg carles vegan helvetica. Reprehenderit butcher + retro keffiyeh dreamcatcher synth. Cosby sweater eu banh mi, qui irure terry richardson ex squid. + Aliquip placeat salvia cillum iphone. Seitan aliquip quis cardigan american apparel, butcher voluptate + nisi qui. +

                                                                                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                                                                                            +

                                                                                                                                                                                                                                                                                                                                            Food truck fixie locavore, accusamus mcsweeney's marfa nulla single-origin coffee squid. Exercitation +1 + labore velit, blog sartorial PBR leggings next level wes anderson artisan four loko farm-to-table craft + beer twee. Qui photo booth letterpress, commodo enim craft beer mlkshk aliquip jean shorts ullamco ad + vinyl cillum PBR. Homo nostrud organic, assumenda labore aesthetic magna delectus mollit.

                                                                                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                                                                                            + + +
                                                                                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                                                                                            + +
                                                                                                                                                                                                                                                                                                                                            + +
                                                                                                                                                                                                                                                                                                                                            + +
                                                                                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                                                                                            + +
                                                                                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                                                                                            + +
                                                                                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                                                                                            + +
                                                                                                                                                                                                                                                                                                                                            + + + +
                                                                                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                                                                                            + +
                                                                                                                                                                                                                                                                                                                                            +

                                                                                                                                                                                                                                                                                                                                            Pagination

                                                                                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                                                                                              +
                                                                                                                                                                                                                                                                                                                                            • + « +
                                                                                                                                                                                                                                                                                                                                            • +
                                                                                                                                                                                                                                                                                                                                            • + 1 +
                                                                                                                                                                                                                                                                                                                                            • +
                                                                                                                                                                                                                                                                                                                                            • + 2 +
                                                                                                                                                                                                                                                                                                                                            • +
                                                                                                                                                                                                                                                                                                                                            • + 3 +
                                                                                                                                                                                                                                                                                                                                            • +
                                                                                                                                                                                                                                                                                                                                            • + 4 +
                                                                                                                                                                                                                                                                                                                                            • +
                                                                                                                                                                                                                                                                                                                                            • + 5 +
                                                                                                                                                                                                                                                                                                                                            • +
                                                                                                                                                                                                                                                                                                                                            • + » +
                                                                                                                                                                                                                                                                                                                                            • +
                                                                                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                                                                                            + +
                                                                                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                                                                                              +
                                                                                                                                                                                                                                                                                                                                            • + « +
                                                                                                                                                                                                                                                                                                                                            • +
                                                                                                                                                                                                                                                                                                                                            • + 1 +
                                                                                                                                                                                                                                                                                                                                            • +
                                                                                                                                                                                                                                                                                                                                            • + 2 +
                                                                                                                                                                                                                                                                                                                                            • +
                                                                                                                                                                                                                                                                                                                                            • + 3 +
                                                                                                                                                                                                                                                                                                                                            • +
                                                                                                                                                                                                                                                                                                                                            • + 4 +
                                                                                                                                                                                                                                                                                                                                            • +
                                                                                                                                                                                                                                                                                                                                            • + 5 +
                                                                                                                                                                                                                                                                                                                                            • +
                                                                                                                                                                                                                                                                                                                                            • + » +
                                                                                                                                                                                                                                                                                                                                            • +
                                                                                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                                                                                            + +
                                                                                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                                                                                              +
                                                                                                                                                                                                                                                                                                                                            • + « +
                                                                                                                                                                                                                                                                                                                                            • +
                                                                                                                                                                                                                                                                                                                                            • + 1 +
                                                                                                                                                                                                                                                                                                                                            • +
                                                                                                                                                                                                                                                                                                                                            • + 2 +
                                                                                                                                                                                                                                                                                                                                            • +
                                                                                                                                                                                                                                                                                                                                            • + 3 +
                                                                                                                                                                                                                                                                                                                                            • +
                                                                                                                                                                                                                                                                                                                                            • + 4 +
                                                                                                                                                                                                                                                                                                                                            • +
                                                                                                                                                                                                                                                                                                                                            • + 5 +
                                                                                                                                                                                                                                                                                                                                            • +
                                                                                                                                                                                                                                                                                                                                            • + » +
                                                                                                                                                                                                                                                                                                                                            • +
                                                                                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                                                                                            + + +
                                                                                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                                                                                            + +
                                                                                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                                                                                            + +
                                                                                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                                                                                            +

                                                                                                                                                                                                                                                                                                                                            Alerts

                                                                                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                                                                                            + +

                                                                                                                                                                                                                                                                                                                                            Warning!

                                                                                                                                                                                                                                                                                                                                            +

                                                                                                                                                                                                                                                                                                                                            Best check yo self, you're not looking too good. Nulla vitae elit libero, a pharetra augue. + Praesent commodo cursus magna, vel scelerisque nisl consectetur + et. +

                                                                                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                                                                                            + + Oh snap! Change a few things up and try submitting + again. +
                                                                                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                                                                                            + + Well done! You successfully read this important alert + message. +
                                                                                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                                                                                            + + Heads up! This alert needs your attention, but + it's not super important. +
                                                                                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                                                                                            + + Oh snap! Change a few things up and try submitting + again. +
                                                                                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                                                                                            + + Well done! You successfully read this important alert + message. +
                                                                                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                                                                                            + + Heads up! This alert needs your attention, but + it's not super important. +
                                                                                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                                                                                            +

                                                                                                                                                                                                                                                                                                                                            Badges

                                                                                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                                                                                            + Primary + Secondary + Success + Danger + Warning + Info + Light + Dark +
                                                                                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                                                                                            + Primary + Secondary + Success + Danger + Warning + Info + Light + Dark +
                                                                                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                                                                                            + + +
                                                                                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                                                                                            + + +

                                                                                                                                                                                                                                                                                                                                            Basic

                                                                                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                                                                                            + +

                                                                                                                                                                                                                                                                                                                                            Contextual alternatives

                                                                                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                                                                                            + +

                                                                                                                                                                                                                                                                                                                                            Multiple bars

                                                                                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                                                                                            + +

                                                                                                                                                                                                                                                                                                                                            Striped

                                                                                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                                                                                            + +

                                                                                                                                                                                                                                                                                                                                            Animated

                                                                                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                                                                                            + + +
                                                                                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                                                                                            + +
                                                                                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                                                                                            +

                                                                                                                                                                                                                                                                                                                                            Hello, world!

                                                                                                                                                                                                                                                                                                                                            +

                                                                                                                                                                                                                                                                                                                                            This is a simple hero unit, a simple jumbotron-style component for calling extra attention + to featured content or information.

                                                                                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                                                                                            +

                                                                                                                                                                                                                                                                                                                                            It uses utility classes for typography and spacing to space content out within the larger container.

                                                                                                                                                                                                                                                                                                                                            +

                                                                                                                                                                                                                                                                                                                                            + Learn more +

                                                                                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                                                                                            + +
                                                                                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                                                                                            +

                                                                                                                                                                                                                                                                                                                                            List groups

                                                                                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                                                                                            + + + +
                                                                                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                                                                                            +

                                                                                                                                                                                                                                                                                                                                            Cards

                                                                                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                                                                                            + +
                                                                                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                                                                                            Header
                                                                                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                                                                                            +

                                                                                                                                                                                                                                                                                                                                            Primary card title

                                                                                                                                                                                                                                                                                                                                            +

                                                                                                                                                                                                                                                                                                                                            Some quick example text to build on the card title and make up the bulk of the card's + content.

                                                                                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                                                                                            Header
                                                                                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                                                                                            +

                                                                                                                                                                                                                                                                                                                                            Secondary card title

                                                                                                                                                                                                                                                                                                                                            +

                                                                                                                                                                                                                                                                                                                                            Some quick example text to build on the card title and make up the bulk of the card's + content.

                                                                                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                                                                                            Header
                                                                                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                                                                                            +

                                                                                                                                                                                                                                                                                                                                            Success card title

                                                                                                                                                                                                                                                                                                                                            +

                                                                                                                                                                                                                                                                                                                                            Some quick example text to build on the card title and make up the bulk of the card's + content.

                                                                                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                                                                                            Header
                                                                                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                                                                                            +

                                                                                                                                                                                                                                                                                                                                            Danger card title

                                                                                                                                                                                                                                                                                                                                            +

                                                                                                                                                                                                                                                                                                                                            Some quick example text to build on the card title and make up the bulk of the card's + content.

                                                                                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                                                                                            Header
                                                                                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                                                                                            +

                                                                                                                                                                                                                                                                                                                                            Warning card title

                                                                                                                                                                                                                                                                                                                                            +

                                                                                                                                                                                                                                                                                                                                            Some quick example text to build on the card title and make up the bulk of the card's + content.

                                                                                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                                                                                            Header
                                                                                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                                                                                            +

                                                                                                                                                                                                                                                                                                                                            Info card title

                                                                                                                                                                                                                                                                                                                                            +

                                                                                                                                                                                                                                                                                                                                            Some quick example text to build on the card title and make up the bulk of the card's + content.

                                                                                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                                                                                            Header
                                                                                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                                                                                            +

                                                                                                                                                                                                                                                                                                                                            Light card title

                                                                                                                                                                                                                                                                                                                                            +

                                                                                                                                                                                                                                                                                                                                            Some quick example text to build on the card title and make up the bulk of the card's + content.

                                                                                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                                                                                            Header
                                                                                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                                                                                            +

                                                                                                                                                                                                                                                                                                                                            Dark card title

                                                                                                                                                                                                                                                                                                                                            +

                                                                                                                                                                                                                                                                                                                                            Some quick example text to build on the card title and make up the bulk of the card's + content.

                                                                                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                                                                                            Header
                                                                                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                                                                                            +

                                                                                                                                                                                                                                                                                                                                            Primary card title

                                                                                                                                                                                                                                                                                                                                            +

                                                                                                                                                                                                                                                                                                                                            Some quick example text to build on the card title and make up the bulk of the card's + content.

                                                                                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                                                                                            Header
                                                                                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                                                                                            +

                                                                                                                                                                                                                                                                                                                                            Secondary card title

                                                                                                                                                                                                                                                                                                                                            +

                                                                                                                                                                                                                                                                                                                                            Some quick example text to build on the card title and make up the bulk of the card's + content.

                                                                                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                                                                                            Header
                                                                                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                                                                                            +

                                                                                                                                                                                                                                                                                                                                            Success card title

                                                                                                                                                                                                                                                                                                                                            +

                                                                                                                                                                                                                                                                                                                                            Some quick example text to build on the card title and make up the bulk of the card's + content.

                                                                                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                                                                                            Header
                                                                                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                                                                                            +

                                                                                                                                                                                                                                                                                                                                            Danger card title

                                                                                                                                                                                                                                                                                                                                            +

                                                                                                                                                                                                                                                                                                                                            Some quick example text to build on the card title and make up the bulk of the card's + content.

                                                                                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                                                                                            Header
                                                                                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                                                                                            +

                                                                                                                                                                                                                                                                                                                                            Warning card title

                                                                                                                                                                                                                                                                                                                                            +

                                                                                                                                                                                                                                                                                                                                            Some quick example text to build on the card title and make up the bulk of the card's + content.

                                                                                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                                                                                            Header
                                                                                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                                                                                            +

                                                                                                                                                                                                                                                                                                                                            Info card title

                                                                                                                                                                                                                                                                                                                                            +

                                                                                                                                                                                                                                                                                                                                            Some quick example text to build on the card title and make up the bulk of the card's + content.

                                                                                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                                                                                            Header
                                                                                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                                                                                            +

                                                                                                                                                                                                                                                                                                                                            Light card title

                                                                                                                                                                                                                                                                                                                                            +

                                                                                                                                                                                                                                                                                                                                            Some quick example text to build on the card title and make up the bulk of the card's + content.

                                                                                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                                                                                            Header
                                                                                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                                                                                            +

                                                                                                                                                                                                                                                                                                                                            Dark card title

                                                                                                                                                                                                                                                                                                                                            +

                                                                                                                                                                                                                                                                                                                                            Some quick example text to build on the card title and make up the bulk of the card's + content.

                                                                                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                                                                                            + +
                                                                                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                                                                                            +

                                                                                                                                                                                                                                                                                                                                            Card header

                                                                                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                                                                                            Special title treatment
                                                                                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                                                                                            Support card subtitle
                                                                                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                                                                                            + + + Image cap + +
                                                                                                                                                                                                                                                                                                                                            +

                                                                                                                                                                                                                                                                                                                                            Some quick example text to build on the card title and make up the bulk of the card's + content.

                                                                                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                                                                                              +
                                                                                                                                                                                                                                                                                                                                            • Cras justo odio
                                                                                                                                                                                                                                                                                                                                            • +
                                                                                                                                                                                                                                                                                                                                            • Dapibus ac facilisis in
                                                                                                                                                                                                                                                                                                                                            • +
                                                                                                                                                                                                                                                                                                                                            • Vestibulum at eros
                                                                                                                                                                                                                                                                                                                                            • +
                                                                                                                                                                                                                                                                                                                                            + + +
                                                                                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                                                                                            +

                                                                                                                                                                                                                                                                                                                                            Card title

                                                                                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                                                                                            Card subtitle
                                                                                                                                                                                                                                                                                                                                            +

                                                                                                                                                                                                                                                                                                                                            Some quick example text to build on the card title and make up the bulk of the card's + content.

                                                                                                                                                                                                                                                                                                                                            + Card link + Another link +
                                                                                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                                                                                            + +
                                                                                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                                                                                            +

                                                                                                                                                                                                                                                                                                                                            Accordions

                                                                                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                                                                                            + +
                                                                                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                                                                                            +

                                                                                                                                                                                                                                                                                                                                            + +

                                                                                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                                                                                            + This is the first item's accordion body. It is shown by default, until the collapse + plugin adds the appropriate classes that we use to style each element. These classes control the + overall appearance, as well as the showing and hiding via CSS transitions. You can modify any of + this with custom CSS or overriding our default variables. It's also worth noting that just about any + HTML can go within the .accordion-body, though the transition does limit overflow. +
                                                                                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                                                                                            +

                                                                                                                                                                                                                                                                                                                                            + +

                                                                                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                                                                                            + This is the second item's accordion body. It is hidden by default, until the + collapse plugin adds the appropriate classes that we use to style each element. These classes + control the overall appearance, as well as the showing and hiding via CSS transitions. You can + modify any of this with custom CSS or overriding our default variables. It's also worth noting that + just about any HTML can go within the .accordion-body, though the transition does limit + overflow. +
                                                                                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                                                                                            +

                                                                                                                                                                                                                                                                                                                                            + +

                                                                                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                                                                                            + This is the third item's accordion body. It is hidden by default, until the + collapse plugin adds the appropriate classes that we use to style each element. These classes + control the overall appearance, as well as the showing and hiding via CSS transitions. You can + modify any of this with custom CSS or overriding our default variables. It's also worth noting that + just about any HTML can go within the .accordion-body, though the transition does limit + overflow. +
                                                                                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                                                                                            + + +
                                                                                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                                                                                            + +
                                                                                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                                                                                            +

                                                                                                                                                                                                                                                                                                                                            Modals

                                                                                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                                                                                            + +
                                                                                                                                                                                                                                                                                                                                            +

                                                                                                                                                                                                                                                                                                                                            Offcanvas

                                                                                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                                                                                            + + Link with href + + + +
                                                                                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                                                                                            Offcanvas
                                                                                                                                                                                                                                                                                                                                            + +
                                                                                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                                                                                            + Some text as placeholder. In real life you can have the elements you have chosen. Like, text, images, + lists, etc. +
                                                                                                                                                                                                                                                                                                                                            + +
                                                                                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                                                                                            +

                                                                                                                                                                                                                                                                                                                                            Popovers

                                                                                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                                                                                            + + + + +
                                                                                                                                                                                                                                                                                                                                            +

                                                                                                                                                                                                                                                                                                                                            Tooltips

                                                                                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                                                                                            + + + + +
                                                                                                                                                                                                                                                                                                                                            +

                                                                                                                                                                                                                                                                                                                                            Toasts

                                                                                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                                                                                            + +
                                                                                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                                                                                            + + +
                                                                                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                                                                                            + +
                                                                                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                                                                                            +@endsection diff --git a/resources/views/pages/codes/form-inputs.blade.php b/resources/views/pages/codes/form-inputs.blade.php new file mode 100644 index 0000000..96ae81e --- /dev/null +++ b/resources/views/pages/codes/form-inputs.blade.php @@ -0,0 +1,59 @@ +
                                                                                                                                                                                                                                                                                                                                            + {{-- QUANTITY --}} +
                                                                                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                                                                                            + {{ __('Nombre de codes à générer') }} +
                                                                                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                                                                                            + @include('back::partials.inputs.int-number', [ + 'id' => 'codeGenerationQuantity', + 'label' => __(':field', [ + 'field' => Str::ucfirst(__('validation.custom.quantity')), + ]), + 'name' => 'quantity', + 'required' => true, + 'model' => null, + 'helper' => __('validation.min.numeric', [ + 'attribute' => __(':field', [ + 'field' => Str::ucfirst(__('validation.custom.quantity')), + ]), + 'min' => 1, + ]), + 'min' => 1, + ]) +
                                                                                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                                                                                            + {{-- CODE_LENGTH --}} +
                                                                                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                                                                                            + {{ __('Longueur des codes') }} +
                                                                                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                                                                                            + {{ __('Cette valeur doit se configurer dans la partie variable d\'environnement') }} + @include('back::partials.inputs.int-number', [ + 'id' => 'codeGenerationLength', + 'label' => __(':field', [ + 'field' => Str::ucfirst(__('validation.custom.code_length')), + ]), + 'name' => 'code_length', + 'required' => false, + 'readonly' => true, + 'disabled' => true, + 'value' => config('codes.codeLength'), + 'model' => null, + 'helper' => __('validation.min.numeric', [ + 'attribute' => __(':field', [ + 'field' => Str::ucfirst(__('validation.custom.code_length')), + ]), + 'min' => 1, + ]), + 'min' => 1, + ]) +
                                                                                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                                                                                            diff --git a/resources/views/pages/codes/index.blade.php b/resources/views/pages/codes/index.blade.php new file mode 100644 index 0000000..2e7ca5b --- /dev/null +++ b/resources/views/pages/codes/index.blade.php @@ -0,0 +1,107 @@ +@extends('back::layout') + +@section('title', + Str::of(__('validation.custom.unique_code'))->plural()->ucfirst()) +@section('description', __('Générer des codes uniques')) + +@section('content') +
                                                                                                                                                                                                                                                                                                                                            + @include('modules.breadcrumbs.breadcrumb-body') + @can('export', \App\Models\Code::class) + + @endcan +
                                                                                                                                                                                                                                                                                                                                            + @can('search', \App\Models\Code::class) + @include('back::pages.codes.search-form') + @endcan +
                                                                                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                                                                                            + @csrf +
                                                                                                                                                                                                                                                                                                                                            +

                                                                                                                                                                                                                                                                                                                                            {{ __('Nombre de code(s)') }}

                                                                                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                                                                                              +
                                                                                                                                                                                                                                                                                                                                            • {{ Str::ucfirst(__('en base')) }} : {{ $nbCodeBase }}
                                                                                                                                                                                                                                                                                                                                            • +
                                                                                                                                                                                                                                                                                                                                            • {{ Str::ucfirst(__('utilisé(s)')) }} : {{ $nbCodeUsed }}
                                                                                                                                                                                                                                                                                                                                            • +
                                                                                                                                                                                                                                                                                                                                            • {{ Str::ucfirst(__('déjà exporté(s)')) }} : {{ $nbCodeExported }}
                                                                                                                                                                                                                                                                                                                                            • +
                                                                                                                                                                                                                                                                                                                                            • {{ Str::ucfirst(__('restant à exporté(s)')) }} : {{ $nbCodeRemainingToExport }}
                                                                                                                                                                                                                                                                                                                                            • +
                                                                                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                                                                                            + @include('back::pages.codes.form-inputs') + {{ __('Il est possible de générer') }} 0 {{ __('codes uniques.') }}
                                                                                                                                                                                                                                                                                                                                            + {{ __('!! Si la longueur des codes est changé l\'export pourra prendre plus de temps. !!') }} +
                                                                                                                                                                                                                                                                                                                                            + +
                                                                                                                                                                                                                                                                                                                                            + + + +@endsection + +@push('scripts') + +@endpush diff --git a/resources/views/pages/codes/search-form.blade.php b/resources/views/pages/codes/search-form.blade.php new file mode 100644 index 0000000..d375393 --- /dev/null +++ b/resources/views/pages/codes/search-form.blade.php @@ -0,0 +1,6 @@ +
                                                                                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                                                                                            + + +
                                                                                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                                                                                            diff --git a/resources/views/pages/codes/search.blade.php b/resources/views/pages/codes/search.blade.php new file mode 100644 index 0000000..f5f5f34 --- /dev/null +++ b/resources/views/pages/codes/search.blade.php @@ -0,0 +1,49 @@ +@extends('back::layout') + +@section('title', + Str::of(__('validation.custom.unique_code'))->plural()->ucfirst() . + ' - ' . + __('Recherche')) +@section('description', __('Rechercher des codes uniques')) + +@section('content') +
                                                                                                                                                                                                                                                                                                                                            + @include('modules.breadcrumbs.breadcrumb-body') +
                                                                                                                                                                                                                                                                                                                                            + @can('search', \App\Models\Code::class) + @include('back::pages.codes.search-form') + @endcan +
                                                                                                                                                                                                                                                                                                                                            + @if (!$code) + {{ __('Veuillez entrer un code ci-dessus pour en obtenir les informations.') }} + @else +
                                                                                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                                                                                            {{ __('Voici l\'état du code trouvé') }}
                                                                                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                                                                                            {{ __('Code') }} : {{ $code->code_unique }}
                                                                                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                                                                                            {{ __('ID') }} : {{ $code->id }}
                                                                                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                                                                                            {{ __('À atteint son nombre maximal d\'utilisation ?') }} : + + @if ($code->has_been_used_too_many_times) + {{ Str::ucfirst(__('oui')) }} + @else + {{ Str::ucfirst(__('non')) }} + @endif + +
                                                                                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                                                                                            {{ __('Exporté ?') }} : + + @if ($code->code_exported) + {{ Str::ucfirst(__('oui')) }} + @else + {{ Str::ucfirst(__('non')) }} + @endif + +
                                                                                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                                                                                            + {{ Str::ucfirst(__('validation.attributes.created_at')) }} : + {{ $code->date_creation->isoFormat('DD/MM/YYYY') }} +
                                                                                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                                                                                            {{ __('Nombre de fois utilisés') }} : {{ $used_counter }}
                                                                                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                                                                                            + @endif +@endsection diff --git a/resources/views/pages/dashboard/index.blade.php b/resources/views/pages/dashboard/index.blade.php new file mode 100644 index 0000000..e92c469 --- /dev/null +++ b/resources/views/pages/dashboard/index.blade.php @@ -0,0 +1,34 @@ +@extends('back::layout') + +@section('content') +
                                                                                                                                                                                                                                                                                                                                            +

                                                                                                                                                                                                                                                                                                                                            {{ __('Dashboard') }}

                                                                                                                                                                                                                                                                                                                                            + + {{ __('Accéder au jeu') }} + +
                                                                                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                                                                                            +

                                                                                                                                                                                                                                                                                                                                            + {{ __('Nombre de participations total') }} : {{ $participationsTotal }}
                                                                                                                                                                                                                                                                                                                                            + {{ __('Nombre de participations moyenne par joueur') }} : {{ $avgParticipUser }}
                                                                                                                                                                                                                                                                                                                                            + @if ($settings->use_ean_codes) + {{ __('Top 3 des codes EAN les plus utilisés') }} : +

                                                                                                                                                                                                                                                                                                                                              + @foreach ($codesEan as $codeEan) +
                                                                                                                                                                                                                                                                                                                                            • {{ $codeEan->ean_code }} : {{ $codeEan->nb_usage }}
                                                                                                                                                                                                                                                                                                                                            • + @endforeach +
                                                                                                                                                                                                                                                                                                                                            + @endif +

                                                                                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                                                                                            + @php + $data = [ + 'dates' => $dates, + 'count' => $count, + 'countUnique' => $countUnique, + ]; + @endphp +
                                                                                                                                                                                                                                                                                                                                            +@endsection diff --git a/resources/views/pages/faq-questions/create.blade.php b/resources/views/pages/faq-questions/create.blade.php new file mode 100644 index 0000000..0c567f4 --- /dev/null +++ b/resources/views/pages/faq-questions/create.blade.php @@ -0,0 +1,36 @@ +@extends('back::layout', ['brParam' => $faqQuestionModel]) + +@section('title', __('Création d\'une :model', ['model' => trans_choice('models.classes.faq-questions', 1)])) +@section('description', __('Création d\'une toute nouvelle :model', ['model' => trans_choice('models.classes.faq-questions', 1)])) +@section('breadcrumb', + request()->route()->getName()) + +@section('content') +
                                                                                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                                                                                            + + + + @include('modules.breadcrumbs.breadcrumb-body', ['brParam' => $faqQuestionModel]) +
                                                                                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                                                                                            + +
                                                                                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                                                                                            + @csrf + @include('back::pages.faq-questions.form-inputs') +
                                                                                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                                                                                            + +
                                                                                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                                                                                            +@endsection diff --git a/resources/views/pages/faq-questions/edit.blade.php b/resources/views/pages/faq-questions/edit.blade.php new file mode 100644 index 0000000..323d3dd --- /dev/null +++ b/resources/views/pages/faq-questions/edit.blade.php @@ -0,0 +1,49 @@ +@extends('back::layout', ['brParam' => $faqQuestionModel]) + +@section('title', __('Édition d\'une :model', ['model' => trans_choice('models.classes.faq-questions', 1)])) +@section('description', __('Édition d\'une :model déjà existante', ['model' => trans_choice('models.classes.faq-questions', 1)])) +@section('breadcrumb', + request()->route()->getName()) + +@section('content') +
                                                                                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                                                                                            + + + + @include('modules.breadcrumbs.breadcrumb-body', ['brParam' => $faqQuestionModel]) +
                                                                                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                                                                                            + @csrf + @method('DELETE') +
                                                                                                                                                                                                                                                                                                                                            + + @can('delete', $faqQuestionModel) + + @endcan +
                                                                                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                                                                                            + @csrf + @method('PUT') + @include('back::pages.faq-questions.form-inputs') +
                                                                                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                                                                                            + +
                                                                                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                                                                                            +@endsection diff --git a/resources/views/pages/faq-questions/form-inputs.blade.php b/resources/views/pages/faq-questions/form-inputs.blade.php new file mode 100644 index 0000000..ba09448 --- /dev/null +++ b/resources/views/pages/faq-questions/form-inputs.blade.php @@ -0,0 +1,88 @@ +
                                                                                                                                                                                                                                                                                                                                            + {{-- QUESTION --}} +
                                                                                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                                                                                            + {{ Str::ucfirst(__('validation.custom.question')) }} +
                                                                                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                                                                                            + @include('back::partials.inputs.varchar', [ + 'id' => 'faqQuestionQuestion', + 'label' => __(':field à intégrer à la faq', [ + 'field' => Str::ucfirst(__('validation.custom.question')), + ]), + 'hasWordCounter' => true, + 'name' => 'question', + 'required' => true, + 'model' => $faqQuestionModel ?? null, + 'helper' => __('validation.between.string', [ + 'attribute' => __(':field', [ + 'field' => Str::ucfirst(__('validation.custom.question')), + ]), + 'min' => 3, + 'max' => 255, + ]), + 'placeholder' => __(':field à intégrer à la faq', [ + 'field' => Str::ucfirst(__('validation.custom.question')), + ]), + ]) +
                                                                                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                                                                                            + {{-- ANSWER --}} +
                                                                                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                                                                                            + {{ Str::ucfirst(__('validation.custom.answer')) }} +
                                                                                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                                                                                            + @include('back::partials.inputs.text-html', [ + 'id' => 'faqQuestionAnswer', + 'label' => __(':field :inter:model', [ + 'field' => Str::ucfirst(__('validation.custom.answer')), + 'inter' => __('validation.custom.of_the.female'), + 'model' => __('validation.custom.question'), + ]), + 'name' => 'answer', + 'model' => $faqQuestionModel ?? null, + 'required' => true, + 'helper' => __('crud.minicrud.text_warning', ['number' => 0]), + ]) +
                                                                                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                                                                                            + {{-- THEME_ID --}} +
                                                                                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                                                                                            + {{ __('Thème') }} +
                                                                                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                                                                                            + @include('back::partials.inputs.bigint-foreign-id', [ + 'id' => 'faqQuestionTheme', + 'label' => __('crud.minicrud.associated', ['entity' => trans_choice('models.classes.faq-themes', 1)]), + 'name' => 'theme_id', + 'size' => 5, + 'model' => $faqQuestionModel ?? null, + 'associatedModels' => $faqThemeModels, + 'foreignLabel' => 'name', + 'helper' => __('crud.minicrud.select', ['entity' => trans_choice('models.classes.faq-themes', 1)]), + ]) +
                                                                                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                                                                                            + +@push('scripts') + +@endpush diff --git a/resources/views/pages/faq-questions/index.blade.php b/resources/views/pages/faq-questions/index.blade.php new file mode 100644 index 0000000..f5fc739 --- /dev/null +++ b/resources/views/pages/faq-questions/index.blade.php @@ -0,0 +1,64 @@ +@extends('back::layout') + +@section('title', trans_choice('models.classes.faq-questions', 2)) +@section('description', __('Liste de toutes les :model', ['model' => trans_choice('models.classes.faq-questions', 2)])) + +@section('content') +
                                                                                                                                                                                                                                                                                                                                            + @include('modules.breadcrumbs.breadcrumb-body') + @can('create', \App\Models\FaqQuestion::class) + + + + @endcan +
                                                                                                                                                                                                                                                                                                                                            + @include('back::modules.search-bar') + + @if (count($faqQuestionModels) > 0) + + @include('back::modules.table-col-sorter', [ + 'cols' => [ + 'question' => Str::ucfirst(__('validation.custom.question')), + 'answer' => Str::ucfirst(__('validation.custom.answer')), + 'theme_id' => Str::ucfirst(__('validation.custom.theme')), + ], + ]) + + + @foreach ($faqQuestionModels as $faqQuestionModel) + + + + + + + @endforeach + + @else + + + + @endif +
                                                                                                                                                                                                                                                                                                                                            {{ $faqQuestionModel->question }}{{ Str::limit(strip_tags($faqQuestionModel->answer)) }}{{ $faqQuestionModel->theme->name }} +
                                                                                                                                                                                                                                                                                                                                            + @can('update', $faqQuestionModel) + + + + @endcan + @csrf + @method('DELETE') + @can('delete', $faqQuestionModel) + + @endcan +
                                                                                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                                                                                            + {{ __('crud.other.no_model_found', ['model' => trans_choice('models.classes.faq-questions', 1)]) }}
                                                                                                                                                                                                                                                                                                                                            + {{ $faqQuestionModels->links() }} +@endsection diff --git a/resources/views/pages/faq-themes/create.blade.php b/resources/views/pages/faq-themes/create.blade.php new file mode 100644 index 0000000..8886be1 --- /dev/null +++ b/resources/views/pages/faq-themes/create.blade.php @@ -0,0 +1,36 @@ +@extends('back::layout', ['brParam' => $faqThemeModel]) + +@section('title', __('Création d\'une :model', ['model' => trans_choice('models.classes.faq-themes', 1)])) +@section('description', __('Création d\'une toute nouvelle :model', ['model' => trans_choice('models.classes.faq-themes', 1)])) +@section('breadcrumb', + request()->route()->getName()) + +@section('content') +
                                                                                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                                                                                            + + + + @include('modules.breadcrumbs.breadcrumb-body', ['brParam' => $faqThemeModel]) +
                                                                                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                                                                                            + +
                                                                                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                                                                                            + @csrf + @include('back::pages.faq-themes.form-inputs') +
                                                                                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                                                                                            + +
                                                                                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                                                                                            +@endsection diff --git a/resources/views/pages/faq-themes/edit.blade.php b/resources/views/pages/faq-themes/edit.blade.php new file mode 100644 index 0000000..8384821 --- /dev/null +++ b/resources/views/pages/faq-themes/edit.blade.php @@ -0,0 +1,49 @@ +@extends('back::layout', ['brParam' => $faqThemeModel]) + +@section('title', __('Édition d\'une :model', ['model' => trans_choice('models.classes.faq-themes', 1)])) +@section('description', __('Édition d\'une :model déjà existante', ['model' => trans_choice('models.classes.faq-themes', 1)])) +@section('breadcrumb', + request()->route()->getName()) + +@section('content') +
                                                                                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                                                                                            + + + + @include('modules.breadcrumbs.breadcrumb-body', ['brParam' => $faqThemeModel]) +
                                                                                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                                                                                            + + @can('delete', $faqThemeModel) + @csrf + @method('DELETE') + + @endcan +
                                                                                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                                                                                            + @csrf + @method('PUT') + @include('back::pages.faq-themes.form-inputs') +
                                                                                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                                                                                            + +
                                                                                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                                                                                            +@endsection diff --git a/resources/views/pages/faq-themes/form-inputs.blade.php b/resources/views/pages/faq-themes/form-inputs.blade.php new file mode 100644 index 0000000..6b48b7d --- /dev/null +++ b/resources/views/pages/faq-themes/form-inputs.blade.php @@ -0,0 +1,48 @@ +
                                                                                                                                                                                                                                                                                                                                            + {{-- NAME --}} +
                                                                                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                                                                                            + {{ Str::ucfirst(__('validation.attributes.name')) }} +
                                                                                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                                                                                            + @include('back::partials.inputs.varchar', [ + 'id' => 'faqThemeName', + 'label' => __(':field du :model', [ + 'field' => Str::ucfirst(__('validation.attributes.name')), + 'model' => trans_choice('models.classes.faq-themes', 1), + ]), + 'hasWordCounter' => true, + 'name' => 'name', + 'required' => true, + 'model' => $faqThemeModel ?? null, + 'helper' => __('validation.between.string', [ + 'attribute' => __(':field', [ + 'field' => Str::ucfirst(__('validation.custom.question')), + ]), + 'min' => 3, + 'max' => 255, + ]), + 'placeholder' => __(':field du :model', [ + 'field' => Str::ucfirst(__('validation.attributes.name')), + 'model' => trans_choice('models.classes.faq-themes', 1), + ]), + ]) +
                                                                                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                                                                                            + +@push('scripts') + +@endpush diff --git a/resources/views/pages/faq-themes/index.blade.php b/resources/views/pages/faq-themes/index.blade.php new file mode 100644 index 0000000..40a31ee --- /dev/null +++ b/resources/views/pages/faq-themes/index.blade.php @@ -0,0 +1,60 @@ +@extends('back::layout') + +@section('title', trans_choice('models.classes.faq-themes', 2)) +@section('description', __('Liste de toutes les :model', ['model' => trans_choice('models.classes.faq-themes', 2)])) + +@section('content') +
                                                                                                                                                                                                                                                                                                                                            + @include('modules.breadcrumbs.breadcrumb-body') + @can('create', \App\Models\FaqTheme::class) + + + + @endcan +
                                                                                                                                                                                                                                                                                                                                            + @include('back::modules.search-bar') + + @if (count($faqThemeModels) > 0) + + @include('back::modules.table-col-sorter', [ + 'cols' => [ + 'name' => Str::ucfirst(__('validation.attributes.name')), + ], + ]) + + + @foreach ($faqThemeModels as $faqThemeModel) + + + + + @endforeach + + @else + + + + @endif +
                                                                                                                                                                                                                                                                                                                                            {{ $faqThemeModel->name }} +
                                                                                                                                                                                                                                                                                                                                            + @can('update', $faqThemeModel) + + + + @endcan + @can('delete', $faqThemeModel) + @csrf + @method('DELETE') + + @endcan +
                                                                                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                                                                                            + {{ __('crud.other.no_model_found', ['model' => trans_choice('models.classes.faq-themes', 1)]) }}
                                                                                                                                                                                                                                                                                                                                            + {{ $faqThemeModels->links() }} +@endsection diff --git a/resources/views/pages/instant-win/index.blade.php b/resources/views/pages/instant-win/index.blade.php new file mode 100644 index 0000000..375c462 --- /dev/null +++ b/resources/views/pages/instant-win/index.blade.php @@ -0,0 +1,11 @@ +@extends('back::layout') + +@section('content') + @php + $data = [ + 'cangenerate' => Gate::check('generate', \App\Models\InstantWin::class), + 'instantwin' => $instantWinModelList, + ]; + @endphp +
                                                                                                                                                                                                                                                                                                                                            +@endsection diff --git a/resources/views/pages/prizes/create.blade.php b/resources/views/pages/prizes/create.blade.php new file mode 100644 index 0000000..1eea462 --- /dev/null +++ b/resources/views/pages/prizes/create.blade.php @@ -0,0 +1,36 @@ +@extends('back::layout', ['brParam' => $prizeModel]) + +@section('title', __('Création d\'un :model', ['model' => Str::singular(__('models.classes.prize'))])) +@section('description', __('Création d\'un tout nouveau :model', ['model' => Str::singular(__('models.classes.prize'))])) +@section('breadcrumb', + request()->route()->getName()) + +@section('content') +
                                                                                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                                                                                            + + + + @include('modules.breadcrumbs.breadcrumb-body', ['brParam' => $prizeModel]) +
                                                                                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                                                                                            + +
                                                                                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                                                                                            + @csrf + @include('back::pages.prizes.form-inputs') +
                                                                                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                                                                                            + +
                                                                                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                                                                                            +@endsection diff --git a/resources/views/pages/prizes/edit.blade.php b/resources/views/pages/prizes/edit.blade.php new file mode 100644 index 0000000..6e06244 --- /dev/null +++ b/resources/views/pages/prizes/edit.blade.php @@ -0,0 +1,49 @@ +@extends('back::layout', ['brParam' => $prizeModel]) + +@section('title', __('Édition d\'un :model', ['model' => Str::singular(__('models.classes.prize'))])) +@section('description', __('Édition d\'un :model déjà existant', ['model' => Str::singular(__('models.classes.prize'))])) +@section('breadcrumb', + request()->route()->getName()) + +@section('content') +
                                                                                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                                                                                            + + + + @include('modules.breadcrumbs.breadcrumb-body', ['brParam' => $prizeModel]) +
                                                                                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                                                                                            + + @can('delete', $prizeModel) + @csrf + @method('DELETE') + + @endcan +
                                                                                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                                                                                            + @csrf + @method('PUT') + @include('back::pages.prizes.form-inputs') +
                                                                                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                                                                                            + +
                                                                                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                                                                                            +@endsection diff --git a/resources/views/pages/prizes/form-inputs.blade.php b/resources/views/pages/prizes/form-inputs.blade.php new file mode 100644 index 0000000..81cf1d1 --- /dev/null +++ b/resources/views/pages/prizes/form-inputs.blade.php @@ -0,0 +1,245 @@ +
                                                                                                                                                                                                                                                                                                                                            + {{-- LABEL --}} +
                                                                                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                                                                                            + {{ Str::ucfirst(__('validation.custom.label')) }} +
                                                                                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                                                                                            + @include('back::partials.inputs.varchar', [ + 'id' => 'prizeLabelOne', + 'label' => __(':field', [ + 'field' => Str::ucfirst(__('validation.custom.label')), + ]), + 'hasWordCounter' => true, + 'name' => 'label', + 'required' => true, + 'model' => $prizeModel ?? null, + 'helper' => __('validation.between.string', [ + 'attribute' => __(':field', [ + 'field' => Str::ucfirst(__('validation.attributes.name')), + ]), + 'min' => 3, + 'max' => 255, + ]), + 'placeholder' => __(':field du :model', [ + 'field' => Str::ucfirst(__('validation.custom.label')), + 'model' => Str::singular(__('models.classes.prize')), + ]), + ]) +
                                                                                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                                                                                            + {{-- PICTURE --}} +
                                                                                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                                                                                            + {{ Str::ucfirst(__('validation.attributes.image')) }} +
                                                                                                                                                                                                                                                                                                                                            + {{-- PICTURE_ALT --}} +
                                                                                                                                                                                                                                                                                                                                            + @include('back::partials.inputs.varchar', [ + 'id' => 'prizePictureAlt', + 'label' => __(':field1 :inter1:field2 :inter2:model', [ + 'field1' => Str::ucfirst(__('validation.custom.attribute_alt')), + 'inter1' => __('validation.custom.of_the.vowel'), + 'field2' => __('validation.attributes.image'), + 'inter2' => __('validation.custom.of_the.male'), + 'model' => __('models.classes.prize'), + ]), + 'hasWordCounter' => true, + 'name' => 'picture_alt', + 'required' => false, + 'model' => $prizeModel ?? null, + 'helper' => __('crud.minicrud.picture_alt_helper'), + 'placeholder' => __(':field1 :inter1:field2 :inter2:model', [ + 'field1' => Str::ucfirst(__('validation.custom.attribute_alt')), + 'inter1' => __('validation.custom.of_the.vowel'), + 'field2' => __('validation.attributes.image'), + 'inter2' => __('validation.custom.of_the.male'), + 'model' => __('models.classes.prize'), + ]), + ]) +
                                                                                                                                                                                                                                                                                                                                            + {{-- PICTURE_TITLE --}} +
                                                                                                                                                                                                                                                                                                                                            + @include('back::.partials.inputs.varchar', [ + 'id' => 'productPictureTitle', + 'label' => __(':field1 :inter1:field2 :inter2:model', [ + 'field1' => Str::ucfirst(__('validation.custom.attribute_title')), + 'inter1' => __('validation.custom.of_the.vowel'), + 'field2' => __('validation.attributes.image'), + 'inter2' => __('validation.custom.of_the.male'), + 'model' => __('models.classes.prize'), + ]), + 'hasWordCounter' => true, + 'name' => 'picture_title', + 'required' => false, + 'model' => $prizeModel ?? null, + 'helper' => __('crud.minicrud.picture_title_helper'), + 'placeholder' => __(':field1 :inter1:field2 :inter2:model', [ + 'field1' => Str::ucfirst(__('validation.custom.attribute_title')), + 'inter1' => __('validation.custom.of_the.vowel'), + 'field2' => __('validation.attributes.image'), + 'inter2' => __('validation.custom.of_the.male'), + 'model' => __('models.classes.prize'), + ]), + ]) +
                                                                                                                                                                                                                                                                                                                                            + {{-- PICTURE --}} +
                                                                                                                                                                                                                                                                                                                                            + @include('back::partials.inputs.varchar-picture', [ + 'id' => 'prizePicture', + 'name' => 'picture', + 'width' => config('theme.models.prizes.picture_max_width'), + 'height' => config('theme.models.prizes.picture_max_height'), + 'model' => $prizeModel ?? null, + 'helper' => __('crud.minicrud.dimensions_must_be', [ + 'widthpx' => config('theme.models.prizes.picture_max_width') . 'px', + 'heightpx' => config('theme.models.prizes.picture_max_height') . 'px', + ]), + 'required' => false, + 'preview' => true, + ]) +
                                                                                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                                                                                            + {{-- ARG --}} +
                                                                                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                                                                                            + {{ Str::ucfirst(__('validation.custom.arg')) }} +
                                                                                                                                                                                                                                                                                                                                            + {{-- ARG_TITLE --}} +
                                                                                                                                                                                                                                                                                                                                            + @include('back::partials.inputs.varchar', [ + 'id' => 'prizeArgTitle', + 'label' => __(':field', [ + 'field' => Str::ucfirst(__('validation.attributes.title')), + ]), + 'hasWordCounter' => true, + 'name' => 'arg_title', + 'required' => true, + 'model' => $prizeModel ?? null, + 'helper' => __('validation.between.string', [ + 'attribute' => __(':field', [ + 'field' => Str::ucfirst(__('validation.attributes.title')), + ]), + 'min' => 3, + 'max' => 255, + ]), + 'placeholder' => __(':field du :model', [ + 'field' => Str::ucfirst(__('validation.attributes.title')), + 'model' => Str::singular(__('models.classes.prize')), + ]), + ]) +
                                                                                                                                                                                                                                                                                                                                            + {{-- ARG_SUBTITLE --}} +
                                                                                                                                                                                                                                                                                                                                            + @include('back::partials.inputs.varchar', [ + 'id' => 'prizeArgSubtitle', + 'label' => __(':field', [ + 'field' => Str::ucfirst(__('validation.custom.subtitle')), + ]), + 'hasWordCounter' => true, + 'name' => 'arg_subtitle', + 'required' => false, + 'model' => $prizeModel ?? null, + 'helper' => __('validation.between.string', [ + 'attribute' => __(':field', [ + 'field' => Str::ucfirst(__('validation.custom.subtitle')), + ]), + 'min' => 3, + 'max' => 255, + ]), + 'placeholder' => __(':field du :model', [ + 'field' => Str::ucfirst(__('validation.custom.subtitle')), + 'model' => Str::singular(__('models.classes.prize')), + ]), + ]) +
                                                                                                                                                                                                                                                                                                                                            + {{-- ARG CONTENT --}} +
                                                                                                                                                                                                                                                                                                                                            + @include('back::partials.inputs.text-html', [ + 'id' => 'contentValue', + 'label' => __(':field', [ + 'field' => Str::ucfirst(__('validation.attributes.content')), + ]), + 'name' => 'arg_content', + 'model' => $prizeModel ?? null, + 'required' => true, + 'helper' => __('crud.minicrud.text_warning', [ + 'number' => 15, + ]), + ]) +
                                                                                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                                                                                            + {{-- QUANTITY --}} +
                                                                                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                                                                                            + {{ Str::ucfirst(__('validation.custom.quantity')) }} +
                                                                                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                                                                                            + @include('back::partials.inputs.int-number', [ + 'id' => 'prizeQuantity', + 'label' => __(':field', [ + 'field' => Str::ucfirst(__('validation.custom.quantity')), + ]), + 'name' => 'quantity', + 'required' => true, + 'model' => $prizeModel ?? null, + 'helper' => __('validation.min.numeric', [ + 'attribute' => __(':field', [ + 'field' => Str::ucfirst(__('validation.custom.quantity')), + ]), + 'min' => 1, + ]), + 'min' => 1, + ]) +
                                                                                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                                                                                            + + {{-- PDF_WINNING_PROOF --}} +
                                                                                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                                                                                            + {{ Str::ucfirst(__('validation.custom.pdf_winning_proof')) }} +
                                                                                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                                                                                            + @include('back::partials.inputs.varchar-file', [ + 'id' => 'prizePdfWinningProof', + 'label' => __(':field', [ + 'field' => Str::ucfirst(__('validation.custom.pdf_winning_proof')), + ]), + 'name' => 'pdf_winning_proof', + 'required' => false, + 'model' => $prizeModel ?? null, + 'helper' => __('validation.mimes', [ + 'attribute' => __(':field', [ + 'field' => Str::ucfirst(__('validation.custom.pdf_winning_proof')), + ]), + 'values' => 'pdf', + ]), + 'file' => 'pdf', + ]) +
                                                                                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                                                                                            + +@push('scripts') + +@endpush diff --git a/resources/views/pages/prizes/index.blade.php b/resources/views/pages/prizes/index.blade.php new file mode 100644 index 0000000..7f1d3c8 --- /dev/null +++ b/resources/views/pages/prizes/index.blade.php @@ -0,0 +1,68 @@ +@extends('back::layout') + +@section('title', Str::plural(__('models.classes.prize'))) +@section('description', __('Liste de toutes les :model', ['model' => Str::plural(__('models.classes.prize'))])) + +@section('content') +
                                                                                                                                                                                                                                                                                                                                            + @include('modules.breadcrumbs.breadcrumb-body') + @can('create', \App\Models\Prize::class) + + + + @endcan +
                                                                                                                                                                                                                                                                                                                                            + @include('back::modules.search-bar') + + @if (count($prizeModels) > 0) + + @include('back::modules.table-col-sorter', [ + 'cols' => [ + 'label' => Str::ucfirst(__('validation.custom.label')), + 'quantity' => Str::ucfirst(__('validation.custom.quantity')), + ], + ]) + + + @foreach ($prizeModels as $prizeModel) + + + + + + @endforeach + + @else + + + + @endif +
                                                                                                                                                                                                                                                                                                                                            {{ $prizeModel->label }}{{ $prizeModel->quantity }} +
                                                                                                                                                                                                                                                                                                                                            + @can('view', $prizeModel) + + + + @endcan + @can('update', $prizeModel) + + + + @endcan + @can('delete', $prizeModel) + @csrf + @method('DELETE') + + @endcan +
                                                                                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                                                                                            + {{ __('crud.other.no_model_found', ['model' => Str::singular(__('models.classes.prize'))]) }}
                                                                                                                                                                                                                                                                                                                                            + {{ $prizeModels->links() }} +@endsection diff --git a/resources/views/pages/prizes/show.blade.php b/resources/views/pages/prizes/show.blade.php new file mode 100644 index 0000000..348cc9b --- /dev/null +++ b/resources/views/pages/prizes/show.blade.php @@ -0,0 +1,69 @@ +@extends('back::layout', ['brParam' => $prizeModel]) + +@section('title', __('Vue d\'un :model', ['model' => Str::singular(__('models.classes.prize'))])) +@section('description', __('Vue d\'un :model déjà existante', ['model' => Str::singular(__('models.classes.prize'))])) +@section('breadcrumb', + request()->route()->getName()) + +@section('content') +
                                                                                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                                                                                            + + + + @include('modules.breadcrumbs.breadcrumb-body', ['brParam' => $prizeModel]) +
                                                                                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                                                                                            + @can('update', $prizeModel) + + + + @endcan + @can('delete', $prizeModel) + @csrf + @method('DELETE') + + @endcan +
                                                                                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                                                                                            +

                                                                                                                                                                                                                                                                                                                                            {{ $prizeModel->label }}

                                                                                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                                                                                            + {{ Str::ucfirst(__('validation.attributes.title')) }} + {{ $prizeModel->arg_title }} +
                                                                                                                                                                                                                                                                                                                                            + @if ($prizeModel->arg_subtitle) +
                                                                                                                                                                                                                                                                                                                                            + {{ Str::ucfirst(__('validation.custom.subtitle')) }} + {{ $prizeModel->arg_subtitle }} +
                                                                                                                                                                                                                                                                                                                                            + @endif +
                                                                                                                                                                                                                                                                                                                                            + {{ Str::ucfirst(__('validation.attributes.content')) }} +
                                                                                                                                                                                                                                                                                                                                            {!! clean($prizeModel->arg_content) !!}
                                                                                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                                                                                            + {{ Str::ucfirst(__('validation.custom.quantity')) }} + {{ $prizeModel->quantity }} +
                                                                                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                                                                                            + {{ Str::ucfirst(__('validation.custom.winning_proof')) }} + {{ $prizeModel->pdf_winning_proof ? __('Oui') : __('Non') }} +
                                                                                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                                                                                            + {{ $prizeModel->picture_alt }} +
                                                                                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                                                                                            +@endsection diff --git a/resources/views/pages/products/create.blade.php b/resources/views/pages/products/create.blade.php new file mode 100644 index 0000000..5b281d0 --- /dev/null +++ b/resources/views/pages/products/create.blade.php @@ -0,0 +1,36 @@ +@extends('back::layout', ['brParam' => $productModel]) + +@section('title', __('Création d\'un :model', ['model' => Str::singular(__('models.classes.product'))])) +@section('description', __('Création d\'un tout nouveau :model', ['model' => Str::singular(__('models.classes.product'))])) +@section('breadcrumb', + request()->route()->getName()) + +@section('content') +
                                                                                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                                                                                            + + + + @include('modules.breadcrumbs.breadcrumb-body', ['brParam' => $productModel]) +
                                                                                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                                                                                            + +
                                                                                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                                                                                            + @csrf + @include('back::pages.products.form-inputs') +
                                                                                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                                                                                            + +
                                                                                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                                                                                            +@endsection diff --git a/resources/views/pages/products/edit.blade.php b/resources/views/pages/products/edit.blade.php new file mode 100644 index 0000000..526de88 --- /dev/null +++ b/resources/views/pages/products/edit.blade.php @@ -0,0 +1,49 @@ +@extends('back::layout', ['brParam' => $productModel]) + +@section('title', __('Édition d\'un :model', ['model' => Str::singular(__('models.classes.product'))])) +@section('description', __('Édition d\'un :model déjà existant', ['model' => Str::singular(__('models.classes.product'))])) +@section('breadcrumb', + request()->route()->getName()) + +@section('content') +
                                                                                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                                                                                            + + + + @include('modules.breadcrumbs.breadcrumb-body', ['brParam' => $productModel]) +
                                                                                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                                                                                            + + @can('delete', $productModel) + @csrf + @method('DELETE') + + @endcan +
                                                                                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                                                                                            + @csrf + @method('PUT') + @include('back::pages.products.form-inputs') +
                                                                                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                                                                                            + +
                                                                                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                                                                                            +@endsection diff --git a/resources/views/pages/products/form-inputs.blade.php b/resources/views/pages/products/form-inputs.blade.php new file mode 100644 index 0000000..d1d07d2 --- /dev/null +++ b/resources/views/pages/products/form-inputs.blade.php @@ -0,0 +1,168 @@ +
                                                                                                                                                                                                                                                                                                                                            + {{-- NAME --}} +
                                                                                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                                                                                            + {{ Str::ucfirst(__('validation.attributes.name')) }} +
                                                                                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                                                                                            + @include('back::partials.inputs.varchar', [ + 'id' => 'productName', + 'label' => __(':field', [ + 'field' => Str::ucfirst(__('validation.attributes.name')), + ]), + 'hasWordCounter' => true, + 'name' => 'name', + 'required' => true, + 'model' => $productModel ?? null, + 'helper' => __('validation.between.string', [ + 'attribute' => __(':field', [ + 'field' => Str::ucfirst(__('validation.attributes.name')), + ]), + 'min' => 3, + 'max' => 255, + ]), + 'placeholder' => __(':field du :model', [ + 'field' => Str::ucfirst(__('validation.attributes.name')), + 'model' => Str::singular(__('models.classes.product')), + ]), + ]) +
                                                                                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                                                                                            + {{-- PICTURE --}} +
                                                                                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                                                                                            + {{ Str::ucfirst(__('validation.attributes.image')) }} +
                                                                                                                                                                                                                                                                                                                                            + {{-- PICTURE_ALT --}} +
                                                                                                                                                                                                                                                                                                                                            + @include('back::partials.inputs.varchar', [ + 'id' => 'productPictureAlt', + 'label' => __(':field1 :inter1:field2 :inter2:model', [ + 'field1' => Str::ucfirst(__('validation.custom.attribute_alt')), + 'inter1' => __('validation.custom.of_the.vowel'), + 'field2' => __('validation.attributes.image'), + 'inter2' => __('validation.custom.of_the.male'), + 'model' => __('models.classes.product'), + ]), + 'hasWordCounter' => true, + 'name' => 'picture_alt', + 'required' => false, + 'model' => $productModel ?? null, + 'helper' => __('crud.minicrud.picture_alt_helper'), + 'placeholder' => __(':field1 :inter1:field2 :inter2:model', [ + 'field1' => Str::ucfirst(__('validation.custom.attribute_alt')), + 'inter1' => __('validation.custom.of_the.vowel'), + 'field2' => __('validation.attributes.image'), + 'inter2' => __('validation.custom.of_the.male'), + 'model' => __('models.classes.product'), + ]), + ]) +
                                                                                                                                                                                                                                                                                                                                            + {{-- PICTURE_TITLE --}} +
                                                                                                                                                                                                                                                                                                                                            + @include('back::.partials.inputs.varchar', [ + 'id' => 'productPictureTitle', + 'label' => __(':field1 :inter1:field2 :inter2:model', [ + 'field1' => Str::ucfirst(__('validation.custom.attribute_title')), + 'inter1' => __('validation.custom.of_the.vowel'), + 'field2' => __('validation.attributes.image'), + 'inter2' => __('validation.custom.of_the.male'), + 'model' => __('models.classes.product'), + ]), + 'hasWordCounter' => true, + 'name' => 'picture_title', + 'required' => false, + 'model' => $productModel ?? null, + 'helper' => __('crud.minicrud.picture_title_helper'), + 'placeholder' => __(':field1 :inter1:field2 :inter2:model', [ + 'field1' => Str::ucfirst(__('validation.custom.attribute_title')), + 'inter1' => __('validation.custom.of_the.vowel'), + 'field2' => __('validation.attributes.image'), + 'inter2' => __('validation.custom.of_the.male'), + 'model' => __('models.classes.product'), + ]), + ]) +
                                                                                                                                                                                                                                                                                                                                            + {{-- PICTURE --}} +
                                                                                                                                                                                                                                                                                                                                            + @include('back::partials.inputs.varchar-picture', [ + 'id' => 'productPicture', + 'name' => 'picture', + 'width' => config('theme.models.products.picture_max_width'), + 'height' => config('theme.models.products.picture_max_height'), + 'model' => $productModel ?? null, + 'helper' => __('crud.minicrud.dimensions_must_be', [ + 'widthpx' => config('theme.models.products.picture_max_width') . 'px', + 'heightpx' => config('theme.models.products.picture_max_height') . 'px', + ]), + 'required' => false, + 'preview' => true, + ]) +
                                                                                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                                                                                            + {{-- EAN_CODE --}} +
                                                                                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                                                                                            + {{ Str::ucfirst(__('validation.custom.ean_code')) }} +
                                                                                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                                                                                            + @include('back::partials.inputs.int-number', [ + 'id' => 'productEANCode', + 'label' => __(':field', [ + 'field' => Str::ucfirst(__('validation.custom.ean_code')), + ]), + 'name' => 'ean_code', + 'required' => true, + 'model' => $productModel ?? null, + 'helper' => __('validation.ean', [ + 'attribute' => __(':field', [ + 'field' => Str::ucfirst(__('validation.custom.ean_code')), + ]), + ]), + // Unsigned between 7 and 13 digits + 'min' => 1000000, + 'max' => 9999999999999, + ]) +
                                                                                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                                                                                            + {{-- RANGE_ID --}} +
                                                                                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                                                                                            + {{ __('models.classes.range') }} +
                                                                                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                                                                                            + @include('back::partials.inputs.bigint-foreign-id', [ + 'id' => 'productRange', + 'label' => __('crud.minicrud.associated', ['entity' => __('models.classes.range')]), + 'name' => 'range_id', + 'size' => 5, + 'model' => $productModel ?? null, + 'associatedModels' => $rangeModels, + 'foreignLabel' => 'name', + 'helper' => __('crud.minicrud.select', ['entity' => __('models.classes.range')]), + ]) +
                                                                                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                                                                                            + +@push('scripts') + +@endpush diff --git a/resources/views/pages/products/index.blade.php b/resources/views/pages/products/index.blade.php new file mode 100644 index 0000000..5800d72 --- /dev/null +++ b/resources/views/pages/products/index.blade.php @@ -0,0 +1,70 @@ +@extends('back::layout') + +@section('title', Str::plural(__('models.classes.product'))) +@section('description', __('Liste de toutes les :model', ['model' => Str::plural(__('models.classes.product'))])) + +@section('content') +
                                                                                                                                                                                                                                                                                                                                            + @include('modules.breadcrumbs.breadcrumb-body') + @can('create', \App\Models\Product::class) + + + + @endcan +
                                                                                                                                                                                                                                                                                                                                            + @include('back::modules.search-bar') + + @if (count($productModels) > 0) + + @include('back::modules.table-col-sorter', [ + 'cols' => [ + 'name' => Str::ucfirst(__('validation.attributes.name')), + 'ean_code' => Str::ucfirst(__('validation.custom.ean_code')), + 'range_id' => Str::ucfirst(__('models.classes.range')), + ], + ]) + + + @foreach ($productModels as $productModel) + + + + + + + @endforeach + + @else + + + + @endif +
                                                                                                                                                                                                                                                                                                                                            {{ $productModel->name }}{{ $productModel->ean_code }}{{ $productModel->range->name }} +
                                                                                                                                                                                                                                                                                                                                            + @can('view', $productModel) + + + + @endcan + @can('update', $productModel) + + + + @endcan + @can('delete', $productModel) + @csrf + @method('DELETE') + + @endcan +
                                                                                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                                                                                            + {{ __('crud.other.no_model_found', ['model' => Str::singular(__('models.classes.product'))]) }}
                                                                                                                                                                                                                                                                                                                                            + {{ $productModels->links() }} +@endsection diff --git a/resources/views/pages/products/show.blade.php b/resources/views/pages/products/show.blade.php new file mode 100644 index 0000000..16afe60 --- /dev/null +++ b/resources/views/pages/products/show.blade.php @@ -0,0 +1,56 @@ +@extends('back::layout', ['brParam' => $productModel]) + +@section('title', __('Vue d\'un :model', ['model' => Str::singular(__('models.classes.product'))])) +@section('description', __('Vue d\'un :model déjà existante', ['model' => Str::singular(__('models.classes.product'))])) +@section('breadcrumb', + request()->route()->getName()) + +@section('content') +
                                                                                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                                                                                            + + + + @include('modules.breadcrumbs.breadcrumb-body', ['brParam' => $productModel]) +
                                                                                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                                                                                            + @can('update', $productModel) + + + + @endcan + @can('delete', $productModel) + @csrf + @method('DELETE') + + @endcan +
                                                                                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                                                                                            +

                                                                                                                                                                                                                                                                                                                                            {{ $productModel->name }}

                                                                                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                                                                                            + {{ Str::ucfirst(__('validation.custom.ean_code')) }} + {{ $productModel->ean_code }} +
                                                                                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                                                                                            + {{ Str::ucfirst(__('models.classes.range')) }} + {{ $productModel->range->name }} +
                                                                                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                                                                                            + {{ $productModel->picture_alt }} +
                                                                                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                                                                                            +@endsection diff --git a/resources/views/pages/ranges/create.blade.php b/resources/views/pages/ranges/create.blade.php new file mode 100644 index 0000000..d7ea03e --- /dev/null +++ b/resources/views/pages/ranges/create.blade.php @@ -0,0 +1,36 @@ +@extends('back::layout', ['brParam' => $rangeModel]) + +@section('title', __('Création d\'une :model', ['model' => Str::singular(__('models.classes.range'))])) +@section('description', __('Création d\'une toute nouvelle :model', ['model' => Str::singular(__('models.classes.range'))])) +@section('breadcrumb', + request()->route()->getName()) + +@section('content') +
                                                                                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                                                                                            + + + + @include('modules.breadcrumbs.breadcrumb-body', ['brParam' => $rangeModel]) +
                                                                                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                                                                                            + +
                                                                                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                                                                                            + @csrf + @include('back::pages.ranges.form-inputs') +
                                                                                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                                                                                            + +
                                                                                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                                                                                            +@endsection diff --git a/resources/views/pages/ranges/edit.blade.php b/resources/views/pages/ranges/edit.blade.php new file mode 100644 index 0000000..8b766a4 --- /dev/null +++ b/resources/views/pages/ranges/edit.blade.php @@ -0,0 +1,49 @@ +@extends('back::layout', ['brParam' => $rangeModel]) + +@section('title', __('Édition d\'une :model', ['model' => Str::singular(__('models.classes.range'))])) +@section('description', __('Édition d\'une :model déjà existante', ['model' => Str::singular(__('models.classes.range'))])) +@section('breadcrumb', + request()->route()->getName()) + +@section('content') +
                                                                                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                                                                                            + + + + @include('modules.breadcrumbs.breadcrumb-body', ['brParam' => $rangeModel]) +
                                                                                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                                                                                            + + @can('delete', $rangeModel) + @csrf + @method('DELETE') + + @endcan +
                                                                                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                                                                                            + @csrf + @method('PUT') + @include('back::pages.ranges.form-inputs') +
                                                                                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                                                                                            + +
                                                                                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                                                                                            +@endsection diff --git a/resources/views/pages/ranges/form-inputs.blade.php b/resources/views/pages/ranges/form-inputs.blade.php new file mode 100644 index 0000000..4fdffbe --- /dev/null +++ b/resources/views/pages/ranges/form-inputs.blade.php @@ -0,0 +1,121 @@ +
                                                                                                                                                                                                                                                                                                                                            + {{-- NAME --}} +
                                                                                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                                                                                            + {{ Str::ucfirst(__('validation.attributes.name')) }} +
                                                                                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                                                                                            + @include('back::partials.inputs.varchar', [ + 'id' => 'rangeName', + 'label' => __(':field', [ + 'field' => Str::ucfirst(__('validation.attributes.name')), + ]), + 'hasWordCounter' => true, + 'name' => 'name', + 'required' => true, + 'model' => $rangeModel ?? null, + 'helper' => __('validation.between.string', [ + 'attribute' => __(':field', [ + 'field' => Str::ucfirst(__('validation.attributes.name')), + ]), + 'min' => 3, + 'max' => 255, + ]), + 'placeholder' => __(':field de la :model', [ + 'field' => Str::ucfirst(__('validation.attributes.name')), + 'model' => Str::singular(__('models.classes.range')), + ]), + ]) +
                                                                                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                                                                                            + {{-- PICTURE --}} +
                                                                                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                                                                                            + {{ Str::ucfirst(__('validation.attributes.image')) }} +
                                                                                                                                                                                                                                                                                                                                            + {{-- PICTURE_ALT --}} +
                                                                                                                                                                                                                                                                                                                                            + @include('back::partials.inputs.varchar', [ + 'id' => 'rangePictureAlt', + 'label' => __(':field1 :inter1:field2 :inter2:model', [ + 'field1' => Str::ucfirst(__('validation.custom.attribute_alt')), + 'inter1' => __('validation.custom.of_the.vowel'), + 'field2' => __('validation.attributes.image'), + 'inter2' => __('validation.custom.of_the.male'), + 'model' => __('models.classes.range'), + ]), + 'hasWordCounter' => true, + 'name' => 'picture_alt', + 'required' => false, + 'model' => $rangeModel ?? null, + 'helper' => __('crud.minicrud.picture_alt_helper'), + 'placeholder' => __(':field1 :inter1:field2 :inter2:model', [ + 'field1' => Str::ucfirst(__('validation.custom.attribute_alt')), + 'inter1' => __('validation.custom.of_the.vowel'), + 'field2' => __('validation.attributes.image'), + 'inter2' => __('validation.custom.of_the.male'), + 'model' => __('models.classes.range'), + ]), + ]) +
                                                                                                                                                                                                                                                                                                                                            + {{-- PICTURE_TITLE --}} +
                                                                                                                                                                                                                                                                                                                                            + @include('back::.partials.inputs.varchar', [ + 'id' => 'rangePictureTitle', + 'label' => __(':field1 :inter1:field2 :inter2:model', [ + 'field1' => Str::ucfirst(__('validation.custom.attribute_title')), + 'inter1' => __('validation.custom.of_the.vowel'), + 'field2' => __('validation.attributes.image'), + 'inter2' => __('validation.custom.of_the.male'), + 'model' => __('models.classes.range'), + ]), + 'hasWordCounter' => true, + 'name' => 'picture_title', + 'required' => false, + 'model' => $rangeModel ?? null, + 'helper' => __('crud.minicrud.picture_title_helper'), + 'placeholder' => __(':field1 :inter1:field2 :inter2:model', [ + 'field1' => Str::ucfirst(__('validation.custom.attribute_title')), + 'inter1' => __('validation.custom.of_the.vowel'), + 'field2' => __('validation.attributes.image'), + 'inter2' => __('validation.custom.of_the.male'), + 'model' => __('models.classes.range'), + ]), + ]) +
                                                                                                                                                                                                                                                                                                                                            + {{-- PICTURE --}} +
                                                                                                                                                                                                                                                                                                                                            + @include('back::partials.inputs.varchar-picture', [ + 'id' => 'rangePicture', + 'name' => 'picture', + 'width' => config('theme.models.ranges.picture_max_width'), + 'height' => config('theme.models.ranges.picture_max_height'), + 'model' => $rangeModel ?? null, + 'helper' => __('crud.minicrud.dimensions_must_be', [ + 'widthpx' => config('theme.models.ranges.picture_max_width') . 'px', + 'heightpx' => config('theme.models.ranges.picture_max_height') . 'px', + ]), + 'required' => false, + 'preview' => true, + ]) +
                                                                                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                                                                                            + +@push('scripts') + +@endpush diff --git a/resources/views/pages/ranges/index.blade.php b/resources/views/pages/ranges/index.blade.php new file mode 100644 index 0000000..9d77133 --- /dev/null +++ b/resources/views/pages/ranges/index.blade.php @@ -0,0 +1,66 @@ +@extends('back::layout') + +@section('title', Str::plural(__('models.classes.range'))) +@section('description', __('Liste de toutes les :model', ['model' => Str::plural(__('models.classes.range'))])) + +@section('content') +
                                                                                                                                                                                                                                                                                                                                            + @include('modules.breadcrumbs.breadcrumb-body') + @can('create', \App\Models\Range::class) + + + + @endcan +
                                                                                                                                                                                                                                                                                                                                            + @include('back::modules.search-bar') + + @if (count($rangeModels) > 0) + + @include('back::modules.table-col-sorter', [ + 'cols' => [ + 'name' => Str::ucfirst(__('validation.attributes.name')), + ], + ]) + + + @foreach ($rangeModels as $rangeModel) + + + + + @endforeach + + @else + + + + @endif +
                                                                                                                                                                                                                                                                                                                                            {{ $rangeModel->name }} +
                                                                                                                                                                                                                                                                                                                                            + @can('view', $rangeModel) + + + + @endcan + @can('update', $rangeModel) + + + + @endcan + @can('delete', $rangeModel) + @method('DELETE') + @csrf + + @endcan +
                                                                                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                                                                                            + {{ __('crud.other.no_model_found', ['model' => Str::singular(__('models.classes.range'))]) }}
                                                                                                                                                                                                                                                                                                                                            + {{ $rangeModels->links() }} +@endsection diff --git a/resources/views/pages/ranges/show.blade.php b/resources/views/pages/ranges/show.blade.php new file mode 100644 index 0000000..d2f2601 --- /dev/null +++ b/resources/views/pages/ranges/show.blade.php @@ -0,0 +1,47 @@ +@extends('back::layout', ['brParam' => $rangeModel]) + +@section('title', __('Vue d\'une :model', ['model' => Str::singular(__('models.classes.range'))])) +@section('description', __('Vue d\'une :model déjà existante', ['model' => Str::singular(__('models.classes.range'))])) +@section('breadcrumb', + request()->route()->getName()) + +@section('content') +
                                                                                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                                                                                            + + + + @include('modules.breadcrumbs.breadcrumb-body', ['brParam' => $rangeModel]) +
                                                                                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                                                                                            + @can('update', $rangeModel) + + + + @endcan + @can('delete', $rangeModel) + @csrf + @method('DELETE') + + @endcan +
                                                                                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                                                                                            +

                                                                                                                                                                                                                                                                                                                                            {{ $rangeModel->name }}

                                                                                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                                                                                            + {{ $rangeModel->picture_alt }} +
                                                                                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                                                                                            +@endsection diff --git a/resources/views/pages/re7-preview-mail.blade.php b/resources/views/pages/re7-preview-mail.blade.php new file mode 100644 index 0000000..46a592c --- /dev/null +++ b/resources/views/pages/re7-preview-mail.blade.php @@ -0,0 +1,21 @@ +@extends('back::layout') + +@section('title', __('Mail preview')) +@section('breadcrumb', + request()->route()->getName()) + +@section('content') + +@endsection + +@push('scripts') + +@endpush diff --git a/resources/views/pages/settings/edit.blade.php b/resources/views/pages/settings/edit.blade.php new file mode 100644 index 0000000..432d88e --- /dev/null +++ b/resources/views/pages/settings/edit.blade.php @@ -0,0 +1,36 @@ +@extends('back::layout', ['brParam' => $settingsModel]) + +@section('title', __('Édition d\'une :model', ['model' => Str::singular(__('models.classes.settings'))])) +@section('description', __('Édition d\'une :model déjà existante', ['model' => Str::singular(__('models.classes.settings'))])) +@section('breadcrumb', + request()->route()->getName()) + +@section('main-class', 'settings-page') +@section('content') +
                                                                                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                                                                                            + @include('modules.breadcrumbs.breadcrumb-body', ['brParam' => $settingsModel]) +
                                                                                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                                                                                            + +
                                                                                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                                                                                            + @csrf + @method('PUT') + @include('back::pages.settings.form-inputs') +
                                                                                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                                                                                            + +
                                                                                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                                                                                            +@endsection diff --git a/resources/views/pages/settings/form-inputs.blade.php b/resources/views/pages/settings/form-inputs.blade.php new file mode 100644 index 0000000..8fecf62 --- /dev/null +++ b/resources/views/pages/settings/form-inputs.blade.php @@ -0,0 +1,457 @@ +
                                                                                                                                                                                                                                                                                                                                            + {{-- CODE VAR --}} +
                                                                                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                                                                                            + {{ __('Codes configuration') }} +
                                                                                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                                                                                              +
                                                                                                                                                                                                                                                                                                                                            • + {{ __('Dictionnaire utilisé') }}  +
                                                                                                                                                                                                                                                                                                                                              {{ config('codes.codeCharList') }}
                                                                                                                                                                                                                                                                                                                                              +
                                                                                                                                                                                                                                                                                                                                            • +
                                                                                                                                                                                                                                                                                                                                            • + {{ __('Longueur des codes uniques') }}  + {{ config('codes.codeLength') }} +
                                                                                                                                                                                                                                                                                                                                            • +
                                                                                                                                                                                                                                                                                                                                            • + {{ __('Longueur des codes uniques') }}  +
                                                                                                                                                                                                                                                                                                                                              {{ config('codes.paginate') }}
                                                                                                                                                                                                                                                                                                                                              +
                                                                                                                                                                                                                                                                                                                                            • +
                                                                                                                                                                                                                                                                                                                                            • + {{ __('HASH') }}  + + {{ \App\Models\Code::serialKeyHash() }} + +
                                                                                                                                                                                                                                                                                                                                            • +
                                                                                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                                                                                            + +

                                                                                                                                                                                                                                                                                                                                            + {{ __('Général') }} + {{ __('Paramètres généraux du jeu') }} +

                                                                                                                                                                                                                                                                                                                                            + +
                                                                                                                                                                                                                                                                                                                                            + {{-- NAME --}} +
                                                                                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                                                                                            + {{ Str::ucfirst(__('validation.attributes.name')) }} +
                                                                                                                                                                                                                                                                                                                                            + @include('back::partials.inputs.varchar', [ + 'id' => 'settings-name', + 'label' => __(':field du jeu', [ + 'field' => Str::ucfirst(__('validation.attributes.name')), + ]), + 'hasWordCounter' => true, + 'name' => 'name', + 'required' => true, + 'model' => $settingsModel ?? null, + 'helper' => __('validation.between.string', [ + 'attribute' => __(':field du jeu', [ + 'field' => Str::ucfirst(__('validation.attributes.name')), + ]), + 'min' => 3, + 'max' => 255, + ]), + 'placeholder' => __(':field du jeu', [ + 'field' => Str::ucfirst(__('validation.attributes.name')), + ]), + ]) +
                                                                                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                                                                                            + {{-- COMPANY --}} +
                                                                                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                                                                                            + {{ Str::ucfirst(__('validation.custom.company')) }} +
                                                                                                                                                                                                                                                                                                                                            + @include('back::partials.inputs.varchar', [ + 'id' => 'settings-company', + 'label' => __('Nom de la :field qui organise le jeu', [ + 'field' => Str::ucfirst(__('validation.custom.company')), + ]), + 'hasWordCounter' => true, + 'name' => 'company', + 'required' => true, + 'model' => $settingsModel ?? null, + 'helper' => __('validation.between.string', [ + 'attribute' => __('Nom de la :field', [ + 'field' => Str::ucfirst(__('validation.custom.company')), + ]), + 'min' => 3, + 'max' => 255, + ]), + 'placeholder' => __(':field', [ + 'field' => Str::ucfirst(__('validation.custom.company')), + ]), + ]) +
                                                                                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                                                                                            + {{-- START_DATE --}} +
                                                                                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                                                                                            + {{ Str::ucfirst(__('validation.custom.start_date')) }} +
                                                                                                                                                                                                                                                                                                                                            + @include('back::partials.inputs.timestamp-datetime', [ + 'id' => 'settings-start-date', + 'label' => Str::ucfirst(__('validation.custom.start_date')), + 'name' => 'start_date', + 'defaultValue' => true, + 'required' => true, + 'model' => $settingsModel ?? null, + 'helper' => __('La date doit être supérieure ou égale à aujourd\'hui.'), + ]) +
                                                                                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                                                                                            + {{-- END_DATE --}} +
                                                                                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                                                                                            + {{ Str::ucfirst(__('validation.custom.end_date')) }} +
                                                                                                                                                                                                                                                                                                                                            + @include('back::partials.inputs.timestamp-datetime', [ + 'id' => 'settings-end-date', + 'label' => Str::ucfirst(__('validation.custom.end_date')), + 'name' => 'end_date', + 'defaultValue' => true, + 'required' => true, + 'model' => $settingsModel ?? null, + 'helper' => __('La date doit être supérieure ou égale à aujourd\'hui.'), + ]) +
                                                                                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                                                                                            + + + {{ __('Les participations') }} + {{ __('Paramétrages des seuils de participation') }} + + + {{-- Force next columns to break to new line --}} +
                                                                                                                                                                                                                                                                                                                                            + + {{-- NB_PARTICIPATION_PLAYER --}} +
                                                                                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                                                                                            + {{ Str::ucfirst(__('validation.custom.nb_participation_player')) }} +
                                                                                                                                                                                                                                                                                                                                            + @include('back::partials.inputs.int-number', [ + 'id' => 'settings-nb-participation-player', + 'label' => Str::ucfirst(__('validation.custom.nb_participation_player')), + 'name' => 'nb_participation_player', + 'required' => true, + 'model' => $settingsModel ?? null, + 'helper' => + __('validation.min.numeric', [ + 'attribute' => Str::ucfirst(__('validation.custom.nb_participation_player')), + 'min' => 0, + ]) . + "\u{00A0}\u{00A0}\u{00A0} " . + __('0 => illimité'), + 'min' => 0, + ]) +
                                                                                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                                                                                            + {{-- NB_PARTICIPATION_IP --}} +
                                                                                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                                                                                            + {{ Str::ucfirst(__('validation.custom.nb_participation_ip')) }} +
                                                                                                                                                                                                                                                                                                                                            + @include('back::partials.inputs.int-number', [ + 'id' => 'settings-nb-participation-ip', + 'label' => Str::ucfirst(__('validation.custom.nb_participation_ip')), + 'name' => 'nb_participation_ip', + 'required' => true, + 'model' => $settingsModel ?? null, + 'helper' => + __('validation.min.numeric', [ + 'attribute' => Str::ucfirst(__('validation.custom.nb_participation_ip')), + 'min' => 0, + ]) . + "\u{00A0}\u{00A0}\u{00A0} " . + __('0 => illimité'), + 'min' => 0, + ]) +
                                                                                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                                                                                            + {{-- NB_UNIQUE_CODE_USE --}} +
                                                                                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                                                                                            + {{ Str::ucfirst(__('validation.custom.nb_unique_code_use')) }} +
                                                                                                                                                                                                                                                                                                                                            + @include('back::partials.inputs.int-number', [ + 'id' => 'settings-nb-unique-code-use', + 'label' => Str::ucfirst(__('validation.custom.nb_unique_code_use')), + 'name' => 'nb_unique_code_use', + 'required' => true, + 'model' => $settingsModel ?? null, + 'helper' => + __('validation.min.numeric', [ + 'attribute' => Str::ucfirst(__('validation.custom.nb_unique_code_use')), + 'min' => 0, + ]) . + "\u{00A0}\u{00A0}\u{00A0} " . + __('0 => illimité'), + 'min' => 0, + ]) +
                                                                                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                                                                                            + + {{-- Force next columns to break to new line --}} +
                                                                                                                                                                                                                                                                                                                                            + +
                                                                                                                                                                                                                                                                                                                                            + + {{ __('Les Fonctionnalités') }} + {{ __('Paramétrages des fonctionnalités du jeu') }} + +
                                                                                                                                                                                                                                                                                                                                            + + {{-- REDIRECT_CLOSE --}} +
                                                                                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                                                                                            + {{ Str::ucfirst(__('validation.custom.redirect_close')) }} +
                                                                                                                                                                                                                                                                                                                                            + @include('back::partials.inputs.varchar', [ + 'id' => 'settings-redirect-close', + 'label' => Str::ucfirst(__('validation.custom.redirect_close')), + 'hasWordCounter' => true, + 'name' => 'redirect_close', + 'required' => true, + 'model' => $settingsModel ?? null, + 'helper' => __('crud.minicrud.url'), + 'placeholder' => 'https://example.test', + ]) +
                                                                                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                                                                                            + + {{-- ACTIVATED_TEASER --}} +
                                                                                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                                                                                            + {{ Str::ucfirst(__('validation.custom.activated_teaser')) }} +
                                                                                                                                                                                                                                                                                                                                            + @include('back::partials.inputs.tinyint-boolean', [ + 'id' => 'settings-activated-teaser', + 'label' => Str::ucfirst(__('validation.custom.activated_teaser')), + 'name' => 'activated_teaser', + 'required' => false, + 'model' => $settingsModel ?? null, + 'helper' => __('validation.boolean', [ + 'attribute' => Str::ucfirst(__('validation.custom.activated_teaser')), + ]), + ]) +
                                                                                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                                                                                            + + {{-- Force next columns to break to new line --}} +
                                                                                                                                                                                                                                                                                                                                            + + {{-- ACTIVATED_CLOSE_PAGE --}} +
                                                                                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                                                                                            + {{ Str::ucfirst(__('validation.custom.activated_close_page')) }} +
                                                                                                                                                                                                                                                                                                                                            + @include('back::partials.inputs.tinyint-boolean', [ + 'id' => 'settings-activated-close-page', + 'label' => Str::ucfirst(__('validation.custom.activated_close_page')), + 'name' => 'activated_close_page', + 'required' => false, + 'model' => $settingsModel ?? null, + 'helper' => __('validation.boolean', [ + 'attribute' => Str::ucfirst(__('validation.custom.activated_close_page')), + ]), + ]) +
                                                                                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                                                                                            + {{-- CLOSE_PAGE_ACTIVE_DATE --}} +
                                                                                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                                                                                            + {{ Str::ucfirst(__('validation.custom.close_page_active_date')) }} +
                                                                                                                                                                                                                                                                                                                                            + @include('back::partials.inputs.timestamp-datetime', [ + 'id' => 'settings-close-page-active-date', + 'label' => Str::ucfirst(__('validation.custom.close_page_active_date')), + 'name' => 'close_page_active_date', + 'defaultValue' => false, + 'required' => true, + 'model' => $settingsModel ?? null, + 'helper' => __('La date doit être supérieure ou égale à aujourd\'hui.'), + ]) +
                                                                                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                                                                                            + + {{-- Force next columns to break to new line --}} +
                                                                                                                                                                                                                                                                                                                                            + + {{-- USE_EAN_CODES --}} +
                                                                                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                                                                                            + {{ Str::ucfirst(__('validation.custom.use_ean_codes')) }} +
                                                                                                                                                                                                                                                                                                                                            + @include('back::partials.inputs.tinyint-boolean', [ + 'id' => 'settings-use-ean-codes', + 'label' => Str::ucfirst(__('validation.custom.use_ean_codes')), + 'name' => 'use_ean_codes', + 'required' => false, + 'model' => $settingsModel ?? null, + 'helper' => __('validation.boolean', [ + 'attribute' => Str::ucfirst(__('validation.custom.use_ean_codes')), + ]), + ]) +
                                                                                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                                                                                            + + {{-- WINNING_PROOF --}} +
                                                                                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                                                                                            + {{ Str::ucfirst(__('validation.custom.winning_proof')) }} +
                                                                                                                                                                                                                                                                                                                                            + @include('back::partials.inputs.tinyint-boolean', [ + 'id' => 'settings-winning-proof-activated', + 'label' => Str::ucfirst(__('validation.custom.winning_proof')), + 'name' => 'winning_proof', + 'required' => false, + 'model' => $settingsModel ?? null, + 'helper' => __('validation.boolean', [ + 'attribute' => Str::ucfirst(__('validation.custom.winning_proof')), + ]), + ]) +
                                                                                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                                                                                            + + {{-- NOTIFY_PRIZE_SENT --}} +
                                                                                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                                                                                            + {{ Str::ucfirst(__('validation.custom.notify_prize_sent')) }} +
                                                                                                                                                                                                                                                                                                                                            + @include('back::partials.inputs.tinyint-boolean', [ + 'id' => 'notify-prize-sent', + 'label' => Str::ucfirst(__('validation.custom.notify_prize_sent')), + 'name' => 'notify_prize_sent', + 'required' => false, + 'model' => $settingsModel ?? null, + 'helper' => __('validation.boolean', [ + 'attribute' => Str::ucfirst(__('validation.custom.notify_prize_sent')), + ]), + ]) +
                                                                                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                                                                                            + +
                                                                                                                                                                                                                                                                                                                                            + +
                                                                                                                                                                                                                                                                                                                                            + {{ __('Les réductions') }} + {{ __('Paramétrages des bons de réduction MLDC') }} +
                                                                                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                                                                                            + +
                                                                                                                                                                                                                                                                                                                                            + {{-- DISCOUNTS_ACTIVATED --}} +
                                                                                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                                                                                            + {{ Str::ucfirst(__('validation.custom.discounts_activated')) }} +
                                                                                                                                                                                                                                                                                                                                            + @include('back::partials.inputs.tinyint-boolean', [ + 'id' => 'settings-discounts-activated', + 'label' => Str::ucfirst(__('validation.custom.discounts_activated')), + 'name' => 'discounts_activated', + 'required' => false, + 'model' => $settingsModel ?? null, + 'helper' => __('validation.boolean', [ + 'attribute' => Str::ucfirst(__('validation.custom.discounts_activated')), + ]), + ]) +
                                                                                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                                                                                            + {{-- DISCOUNTS_SITE --}} +
                                                                                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                                                                                            + {{ Str::ucfirst(__('validation.custom.discounts_site')) }} +
                                                                                                                                                                                                                                                                                                                                            + @include('back::partials.inputs.varchar', [ + 'id' => 'settings-discounts-site', + 'label' => __('validation.custom.discounts_site'), + 'hasWordCounter' => true, + 'name' => 'discounts_site', + 'required' => false, + 'model' => $settingsModel ?? null, + 'helper' => __('validation.between.string', [ + 'attribute' => __('validation.custom.discounts_site'), + 'min' => 3, + 'max' => 255, + ]), + 'placeholder' => __('validation.custom.discounts_site'), + ]) +
                                                                                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                                                                                            + {{-- DISCOUNTS_CAMPAIGN --}} +
                                                                                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                                                                                            + {{ Str::ucfirst(__('validation.custom.discounts_campaign')) }} +
                                                                                                                                                                                                                                                                                                                                            + @include('back::partials.inputs.varchar', [ + 'id' => 'settings-discounts-campaign', + 'label' => __('validation.custom.discounts_campaign'), + 'hasWordCounter' => true, + 'name' => 'discounts_campaign', + 'required' => false, + 'model' => $settingsModel ?? null, + 'helper' => __('validation.between.string', [ + 'attribute' => __('validation.custom.discounts_campaign'), + 'min' => 3, + 'max' => 255, + ]), + 'placeholder' => __('validation.custom.discounts_campaign'), + ]) +
                                                                                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                                                                                            + {{-- WEB_COUPONS --}} + @php + $data = [ + 'coupon_list' => old('web_coupons', $settingsModel->web_coupons), + 'name' => 'web_coupons', + 'coupon_with' => 920, + 'coupon_height' => 409, + ]; + @endphp +
                                                                                                                                                                                                                                                                                                                                            + @include('back::modules.input-error', ['inputName' => 'web_coupons']) + @include('back::modules.input-error', ['inputName' => 'web_coupons.*']) +
                                                                                                                                                                                                                                                                                                                                            + +
                                                                                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                                                                                            + {{ __('Destinataires des notifications de gain') }}
                                                                                                                                                                                                                                                                                                                                            + {{ __('Ces mails recevront toutes les notifications de gain.') }} +
                                                                                                                                                                                                                                                                                                                                            + +
                                                                                                                                                                                                                                                                                                                                            + {{-- NOTIFICATION_EMAILS --}} + @php + $data = [ + 'emails' => old('notification_emails', $settingsModel->notification_emails), + 'name' => 'notification_emails', + ]; + @endphp +
                                                                                                                                                                                                                                                                                                                                            + @include('back::modules.input-error', ['inputName' => 'notification_emails']) + @include('back::modules.input-error', ['inputName' => 'notification_emails.*']) +
                                                                                                                                                                                                                                                                                                                                            diff --git a/resources/views/pages/static_pages/edit.blade.php b/resources/views/pages/static_pages/edit.blade.php new file mode 100644 index 0000000..f2133de --- /dev/null +++ b/resources/views/pages/static_pages/edit.blade.php @@ -0,0 +1,39 @@ +@extends('back::layout', ['brParam' => $staticPageModel]) + +@section('title', __('Édition d\'un :model', ['model' => __('models.classes.static_page')])) +@section('description', __('Édition d\'un :model déjà existant', ['model' => __('models.classes.static_page')])) +@section('breadcrumb', + request()->route()->getName()) + +@section('content') +
                                                                                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                                                                                            + + + + @include('modules.breadcrumbs.breadcrumb-body', ['brParam' => $staticPageModel]) +
                                                                                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                                                                                            + +
                                                                                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                                                                                            + @csrf + @method('PUT') + @include('back::pages.static_pages.form') +
                                                                                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                                                                                            + +
                                                                                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                                                                                            +@endsection diff --git a/resources/views/pages/static_pages/form.blade.php b/resources/views/pages/static_pages/form.blade.php new file mode 100644 index 0000000..2e3401f --- /dev/null +++ b/resources/views/pages/static_pages/form.blade.php @@ -0,0 +1,172 @@ +
                                                                                                                                                                                                                                                                                                                                            + {{-- TYPE --}} +
                                                                                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                                                                                            + {{ Str::ucfirst(__('validation.custom.static_page_type')) }} +
                                                                                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                                                                                            + @include('back::partials.inputs.tinyint-enum', [ + 'id' => 'staticPageType', + 'label' => __('Type de page'), + 'name' => 'type', + 'model' => $staticPageModel ?? null, + 'required' => false, + 'disabled' => true, + 'value' => optional(optional($staticPageModel ?? null)->type)->value(), + 'associatedModels' => \App\Enums\StaticPageType::toArray(), + 'helper' => '', + ]) +
                                                                                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                                                                                            + {{-- TITLE --}} +
                                                                                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                                                                                            + {{ Str::ucfirst(__('validation.attributes.title')) }} +
                                                                                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                                                                                            + @include('back::partials.inputs.varchar', [ + 'id' => 'userFirstname', + 'label' => __('Titre de la :model', ['model' => trans_choice('models.classes.static_page', 1)]), + 'hasWordCounter' => true, + 'name' => 'title', + 'required' => true, + 'model' => $staticPageModel ?? null, + 'helper' => __('validation.between.string', [ + 'attribute' => __('titre de la :model', ['model' => trans_choice('models.classes.static_page', 1)]), + 'min' => 3, + 'max' => 255, + ]), + 'placeholder' => __('Un titre clair et concis'), + ]) +
                                                                                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                                                                                            + +
                                                                                                                                                                                                                                                                                                                                            + {{-- SEO_TITLE --}} +
                                                                                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                                                                                            + {{ Str::ucfirst(__('validation.custom.seo_title')) }} +
                                                                                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                                                                                            + @include('back::partials.inputs.varchar', [ + 'id' => 'staticPagesSeoTitle', + 'label' => __(':field :inter:model', [ + 'field' => Str::ucfirst(__('validation.custom.seo_title')), + 'inter' => __('validation.custom.of_the.female'), + 'model' => trans_choice('models.classes.static_page', 1), + ]), + 'hasWordCounter' => true, + 'name' => 'seo_title', + 'required' => true, + 'model' => $staticPageModel ?? null, + 'helper' => sprintf( + '%s %s', + __('crud.helpers.seo_title'), + __('validation.between.string', [ + 'attribute' => __(':field :inter:model', [ + 'field' => __('validation.custom.seo_title'), + 'inter' => __('validation.custom.of_the.female'), + 'model' => trans_choice('models.classes.static_page', 1), + ]), + 'min' => 45, + 'max' => 70, + ])), + 'placeholder' => __(':field :inter:model', [ + 'field' => Str::ucfirst(__('validation.custom.seo_title')), + 'inter' => __('validation.custom.of_the.female'), + 'model' => trans_choice('models.classes.static_page', 1), + ]), + ]) +
                                                                                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                                                                                            + {{-- SEO_DESCRIPTION --}} +
                                                                                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                                                                                            + {{ Str::ucfirst(__('validation.custom.seo_description')) }} +
                                                                                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                                                                                            + @include('back::partials.inputs.varchar-multiline', [ + 'id' => 'staticPagesSeoDescription', + 'label' => __(':field :inter:model', [ + 'field' => Str::ucfirst(__('validation.custom.seo_description')), + 'inter' => __('validation.custom.of_the.female'), + 'model' => trans_choice('models.classes.static_page', 1), + ]), + 'name' => 'seo_description', + 'model' => $staticPageModel ?? null, + 'required' => true, + 'helper' => sprintf( + '%s %s', + __('crud.helpers.seo_description'), + __('validation.between.string', [ + 'attribute' => __(':field :inter:model', [ + 'field' => __('validation.custom.seo_description'), + 'inter' => __('validation.custom.of_the.female'), + 'model' => trans_choice('models.classes.static_page', 1), + ]), + 'min' => 50, + 'max' => 160, + ])), + 'placeholder' => __(':field :inter:model', [ + 'field' => Str::ucfirst(__('validation.custom.seo_description')), + 'inter' => __('validation.custom.of_the.female'), + 'model' => trans_choice('models.classes.static_page', 1), + ]), + ]) +
                                                                                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                                                                                            + +
                                                                                                                                                                                                                                                                                                                                            + {{-- CONTENT --}} +
                                                                                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                                                                                            + {{ Str::ucfirst(__('validation.attributes.content')) }} +
                                                                                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                                                                                            + @include('back::partials.inputs.text-html', [ + 'id' => 'articleContent', + 'label' => __(':field :inter:model', [ + 'field' => Str::ucfirst(__('validation.attributes.content')), + 'inter' => __('validation.custom.of_the.female'), + 'model' => trans_choice('models.classes.static_page', 1), + ]), + 'name' => 'content', + 'model' => $staticPageModel ?? null, + 'required' => true, + 'helper' => __('crud.minicrud.text_warning', ['number' => 0]), + ]) +
                                                                                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                                                                                            + +
                                                                                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                                                                                            +

                                                                                                                                                                                                                                                                                                                                            {{ __('* Champs obligatoires') }}

                                                                                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                                                                                            + +@push('scripts') + +@endpush diff --git a/resources/views/pages/static_pages/index-list.blade.php b/resources/views/pages/static_pages/index-list.blade.php new file mode 100644 index 0000000..2a9a6bf --- /dev/null +++ b/resources/views/pages/static_pages/index-list.blade.php @@ -0,0 +1,45 @@ + + @if (count($staticPageModelList) > 0) + + @include('back::modules.table-col-sorter', [ + 'cols' => [ + 'type' => Str::ucfirst(__('validation.custom.static_page_type')), + 'title' => Str::ucfirst(__('validation.attributes.title')), + 'updated_at' => Str::ucfirst(__('validation.attributes.updated_at')), + ], + ]) + + + @foreach ($staticPageModelList as $staticPageModel) + + + + + + + @endforeach + + @else + + + + @endif +
                                                                                                                                                                                                                                                                                                                                            {{ $staticPageModel->type->label() }}{{ $staticPageModel->title }} + {{ $staticPageModel->updated_at->isoFormat('LLLL') }} + + @canAny(['update'], $staticPageModel) +
                                                                                                                                                                                                                                                                                                                                            + @can('update', $staticPageModel) + + + + @endcan +
                                                                                                                                                                                                                                                                                                                                            + @else + + + + @endcan +
                                                                                                                                                                                                                                                                                                                                            {{ __('crud.other.no_model_found', ['model' => __('models.classes.static_page')]) }}
                                                                                                                                                                                                                                                                                                                                            diff --git a/resources/views/pages/static_pages/index.blade.php b/resources/views/pages/static_pages/index.blade.php new file mode 100644 index 0000000..0652d35 --- /dev/null +++ b/resources/views/pages/static_pages/index.blade.php @@ -0,0 +1,15 @@ +@extends('back::layout') + +@section('title', Str::ucfirst(__('models.classes.static_page'))) +@section('description', __('Liste de tous les :model', ['model' => Str::plural(__('models.classes.static_page'))])) + +@section('content') +
                                                                                                                                                                                                                                                                                                                                            + @include('modules.breadcrumbs.breadcrumb-body') +
                                                                                                                                                                                                                                                                                                                                            + @include('back::modules.search-bar') +
                                                                                                                                                                                                                                                                                                                                            + @include('back::pages.static_pages.index-list') +
                                                                                                                                                                                                                                                                                                                                            + {{ $staticPageModelList->links() }} +@endsection diff --git a/resources/views/pages/users/create.blade.php b/resources/views/pages/users/create.blade.php new file mode 100644 index 0000000..a7a860c --- /dev/null +++ b/resources/views/pages/users/create.blade.php @@ -0,0 +1,36 @@ +@extends('back::layout', ['brParam' => $userModel]) + +@section('title', __('Création d\'un :model', ['model' => __('models.classes.user')])) +@section('description', __('Création d\'un tout nouveau :model', ['model' => __('models.classes.user')])) +@section('breadcrumb', + request()->route()->getName()) + +@section('content') +
                                                                                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                                                                                            + + + + @include('modules.breadcrumbs.breadcrumb-body', ['brParam' => $userModel]) +
                                                                                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                                                                                            + +
                                                                                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                                                                                            + @csrf + @include('back::pages.users.form') +
                                                                                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                                                                                            + +
                                                                                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                                                                                            +@endsection diff --git a/resources/views/pages/users/edit.blade.php b/resources/views/pages/users/edit.blade.php new file mode 100644 index 0000000..bdb3ff5 --- /dev/null +++ b/resources/views/pages/users/edit.blade.php @@ -0,0 +1,52 @@ +@extends('back::layout', ['brParam' => $userModel]) + +@section('title', __('Édition d\'un :model', ['model' => __('models.classes.user')])) +@section('description', __('Édition d\'un :model déjà existant', ['model' => __('models.classes.user')])) +@section('breadcrumb', + request()->route()->getName()) + +@section('content') +
                                                                                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                                                                                            + + + + @include('modules.breadcrumbs.breadcrumb-body', ['brParam' => $userModel]) +
                                                                                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                                                                                            + @can('duplicate', $userModel) + + + + @endcan + + @can('delete', $userModel) + @csrf + @method('DELETE') + + @endcan +
                                                                                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                                                                                            + @csrf + @method('PUT') + @include('back::pages.users.form') +
                                                                                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                                                                                            + +
                                                                                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                                                                                            +@endsection diff --git a/resources/views/pages/users/form.blade.php b/resources/views/pages/users/form.blade.php new file mode 100644 index 0000000..15f2b1d --- /dev/null +++ b/resources/views/pages/users/form.blade.php @@ -0,0 +1,173 @@ +
                                                                                                                                                                                                                                                                                                                                            + {{-- FIRSTNAME --}} +
                                                                                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                                                                                            + {{ __('Prénom') }} +
                                                                                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                                                                                            + @include('back::partials.inputs.varchar', [ + 'id' => 'userFirstname', + 'label' => __('Prénom de l\':model', ['model' => __('models.classes.user')]), + 'hasWordCounter' => true, + 'name' => 'first_name', + 'required' => true, + 'model' => $userModel ?? null, + 'helper' => __('validation.between.string', [ + 'attribute' => __('prénom de l\':model', ['model' => __('models.classes.user')]), + 'min' => 3, + 'max' => 255, + ]), + 'placeholder' => __('Un beau prénom'), + ]) +
                                                                                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                                                                                            + {{-- LASTNAME --}} +
                                                                                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                                                                                            + {{ __('Nom') }} +
                                                                                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                                                                                            + @include('back::partials.inputs.varchar', [ + 'id' => 'userLastname', + 'label' => __('Nom de l\':model', ['model' => __('models.classes.user')]), + 'hasWordCounter' => true, + 'name' => 'last_name', + 'required' => true, + 'model' => $userModel ?? null, + 'helper' => __('validation.between.string', [ + 'attribute' => __('nom de l\':model', ['model' => __('models.classes.user')]), + 'min' => 3, + 'max' => 255, + ]), + 'placeholder' => __('Un beau nom'), + ]) +
                                                                                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                                                                                            + {{-- EMAIL --}} +
                                                                                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                                                                                            + {{ __('E-mail') }} +
                                                                                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                                                                                            + @include('back::partials.inputs.varchar-email', [ + 'id' => 'userEmail', + 'label' => __('E-mail de l\':model', ['model' => __('models.classes.user')]), + 'name' => 'email', + 'required' => true, + 'model' => $userModel ?? null, + 'helper' => __('validation.email', [ + 'attribute' => __('E-mail de l\':model', ['model' => __('models.classes.user')]), + ]), + 'placeholder' => __('aaaa.bbb@gmail.com'), + ]) +
                                                                                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                                                                                            + {{-- ROLE --}} +
                                                                                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                                                                                            + {{ __('Rôle') }} +
                                                                                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                                                                                            + @include('back::partials.inputs.tinyint-enum', [ + 'id' => 'userRole', + 'label' => __('Associer un rôle'), + 'name' => 'role', + 'model' => $userModel ?? null, + 'required' => true, + 'associatedModels' => Arr::where( + \App\Enums\Users\RoleEnum::toArray(), + fn(object $role) => $role->value >= + auth('backend')->user()->role->value()), + 'helper' => __('Sélectionnez un rôle dans la liste déroulante.'), + ]) +
                                                                                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                                                                                            + {{-- PASSWORD --}} +
                                                                                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                                                                                            + {{ __('Mot de passe') }} +
                                                                                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                                                                                            + @include('back::partials.inputs.varchar-password', [ + 'id' => 'userPassword', + 'label' => __('Mot de passe de l\':model', ['model' => __('models.classes.user')]), + 'name' => 'password', + 'hasWordCounter' => true, + 'required' => !$userModel->exists, + 'model' => null, + 'helper' => __( + 'Doît respecter certaines contraintes (8 caractères minimum, lettres, chiffres, caractères spéciaux).'), + ]) +
                                                                                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                                                                                            + @include('back::partials.inputs.varchar-password', [ + 'id' => 'userPassword_confirmation', + 'label' => __('Confirmation du mot de passe de l\':model', [ + 'model' => __('models.classes.user'), + ]), + 'name' => 'password_confirmation', + 'hasWordCounter' => true, + 'required' => !$userModel->exists, + 'model' => null, + 'helper' => __('Doît correspondre au mot de passe saisi précédemment.'), + ]) +
                                                                                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                                                                                            + {{-- STATUS --}} +
                                                                                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                                                                                            + {{ __('Visibilité') }} +
                                                                                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                                                                                            + @include('back::partials.inputs.tinyint-boolean', [ + 'id' => 'userPublished', + 'name' => 'published', + 'label' => __('État de publication de l\':model', ['model' => __('models.classes.user')]), + 'helper' => __('Deux réponses possibles : oui ou non.'), + 'model' => $userModel ?? null, + ]) +
                                                                                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                                                                                            +

                                                                                                                                                                                                                                                                                                                                            {{ __('* Champs obligatoires') }}

                                                                                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                                                                                            + +@push('scripts') + +@endpush diff --git a/resources/views/pages/users/index-list.blade.php b/resources/views/pages/users/index-list.blade.php new file mode 100644 index 0000000..5ecbd72 --- /dev/null +++ b/resources/views/pages/users/index-list.blade.php @@ -0,0 +1,70 @@ + + @if (count($userModels) > 0) + + @include('back::modules.table-col-sorter', [ + 'cols' => [ + 'role' => Str::ucfirst(__('validation.attributes.role')), + 'first_name' => Str::ucfirst(__('validation.attributes.first_name')), + 'last_name' => Str::ucfirst(__('validation.attributes.last_name')), + 'email' => Str::ucfirst(__('validation.attributes.email')), + 'published' => Str::ucfirst(__('validation.custom.activated')), + 'updated_at' => Str::ucfirst(__('validation.attributes.updated_at')), + ], + ]) + + + @foreach ($userModels as $userModel) + + + + + + @include('back::modules.change-published-status', [ + 'routeName' => 'users', + 'model' => $userModel, + ]) + + + + @endforeach + + @else + + + + @endif +
                                                                                                                                                                                                                                                                                                                                            {{ $userModel->role->label() }}{{ $userModel->first_name }}{{ $userModel->last_name }}{{ $userModel->email }} + {{ $userModel->updated_at->isoFormat('LLLL') }} + + @canAny(['delete', 'duplicate', 'update'], $userModel) +
                                                                                                                                                                                                                                                                                                                                            + @can('duplicate', $userModel) + + + + @endcan + @can('update', $userModel) + + + + @endcan + @can('delete', $userModel) + @csrf + @method('DELETE') + + @endcan +
                                                                                                                                                                                                                                                                                                                                            + @else + + + + @endcan +
                                                                                                                                                                                                                                                                                                                                            {{ __('crud.other.no_model_found', ['model' => __('models.classes.user')]) }}
                                                                                                                                                                                                                                                                                                                                            diff --git a/resources/views/pages/users/index.blade.php b/resources/views/pages/users/index.blade.php new file mode 100644 index 0000000..e0e7ab4 --- /dev/null +++ b/resources/views/pages/users/index.blade.php @@ -0,0 +1,21 @@ +@extends('back::layout') + +@section('title', Str::ucfirst(__('models.classes.user'))) +@section('description', __('Liste de tous les :model', ['model' => Str::plural(__('models.classes.user'))])) + +@section('content') +
                                                                                                                                                                                                                                                                                                                                            + @include('modules.breadcrumbs.breadcrumb-body') + @can('create', \App\Models\User::class) + + + + @endcan +
                                                                                                                                                                                                                                                                                                                                            + @include('back::modules.search-bar') +
                                                                                                                                                                                                                                                                                                                                            + @include('back::pages.users.index-list') +
                                                                                                                                                                                                                                                                                                                                            + {{ $userModels->links() }} +@endsection diff --git a/resources/views/pages/winners-list/form-inputs.blade.php b/resources/views/pages/winners-list/form-inputs.blade.php new file mode 100644 index 0000000..8baf3cd --- /dev/null +++ b/resources/views/pages/winners-list/form-inputs.blade.php @@ -0,0 +1,153 @@ +
                                                                                                                                                                                                                                                                                                                                            + + {{-- WINNER --}} +
                                                                                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                                                                                            {{ __('Gagnant') }}
                                                                                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                                                                                            + {{ Str::ucfirst(__('validation.attributes.email')) }} : + + {{ $participationModel->customer->api_data->email }} + +
                                                                                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                                                                                            + {{ Str::ucfirst(__('validation.attributes.phone')) }} : + + {{ $participationModel->customer->api_data->phone }} + +
                                                                                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                                                                                            + {{ Str::ucfirst(__('validation.attributes.last_name')) }} : + {{ $participationModel->customer->api_data->lastname }} +
                                                                                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                                                                                            + {{ Str::ucfirst(__('validation.attributes.first_name')) }} : + {{ $participationModel->customer->api_data->firstname }} +
                                                                                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                                                                                            + {{ Str::ucfirst(__('validation.attributes.line_address_1')) }} : + {{ $participationModel->customer->api_data->address }} +
                                                                                                                                                                                                                                                                                                                                            + @if ($participationModel->customer->api_data->address2) +
                                                                                                                                                                                                                                                                                                                                            + {{ Str::ucfirst(__('validation.attributes.line_address_2')) }} : + {{ $participationModel->customer->api_data->address2 }} +
                                                                                                                                                                                                                                                                                                                                            + @endif +
                                                                                                                                                                                                                                                                                                                                            + {{ Str::ucfirst(__('validation.attributes.postal_code')) }} : + {{ $participationModel->customer->api_data->postcode }} +
                                                                                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                                                                                            + {{ Str::ucfirst(__('validation.attributes.city')) }} : + {{ $participationModel->customer->api_data->city }} +
                                                                                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                                                                                            + {{ Str::ucfirst(__('validation.attributes.country')) }} : + {{ $participationModel->customer->api_data->country->label }} +
                                                                                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                                                                                            + + {{-- COMMENT --}} +
                                                                                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                                                                                            + {{ Str::ucfirst(__('validation.attributes.name')) }} +
                                                                                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                                                                                            + @include('back::partials.inputs.varchar-multiline', [ + 'id' => 'participation-comment', + 'label' => __(':field', [ + 'field' => Str::ucfirst(__('validation.custom.comment')), + ]), + 'hasWordCounter' => true, + 'name' => 'comment', + 'required' => true, + 'model' => $participationModel ?? null, + 'helper' => __('validation.between.string', [ + 'attribute' => __(':field', [ + 'field' => Str::ucfirst(__('validation.custom.comment')), + ]), + 'min' => 3, + 'max' => 255, + ]), + 'placeholder' => __(':field de la :model', [ + 'field' => Str::ucfirst(__('Commentaire')), + 'model' => Str::singular(__('models.classes.participation')), + ]), + ]) +
                                                                                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                                                                                            + + {{-- PARTICIPATION --}} +
                                                                                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                                                                                            {{ __('Participation') }}
                                                                                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                                                                                            + {{ Str::ucfirst(__('validation.custom.ip')) }} : + {{ $participationModel->ip }} +
                                                                                                                                                                                                                                                                                                                                            + @if ($participationModel->sticker) +
                                                                                                                                                                                                                                                                                                                                            + + + +
                                                                                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                                                                                            + @include('pages.winners-list.parts.display-file', [ + 'file_path' => asset($participationModel->sticker), + 'attribute' => __('validation.custom.sticker'), + ]) +
                                                                                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                                                                                            + @endif + @if ($participationModel->ticket) +
                                                                                                                                                                                                                                                                                                                                            + + + +
                                                                                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                                                                                            + @include('pages.winners-list.parts.display-file', [ + 'file_path' => asset($participationModel->ticket), + 'attribute' => __('validation.custom.ticket'), + ]) +
                                                                                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                                                                                            + @endif + @if ($participationModel->barcode) +
                                                                                                                                                                                                                                                                                                                                            + + + +
                                                                                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                                                                                            + @include('pages.winners-list.parts.display-file', [ + 'file_path' => asset($participationModel->barcode), + 'attribute' => __('validation.custom.barcode'), + ]) +
                                                                                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                                                                                            + @endif +
                                                                                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                                                                                            diff --git a/resources/views/pages/winners-list/index-list.blade.php b/resources/views/pages/winners-list/index-list.blade.php new file mode 100644 index 0000000..51be7ac --- /dev/null +++ b/resources/views/pages/winners-list/index-list.blade.php @@ -0,0 +1,124 @@ + + @if (count($participationModels) > 0) + + @php + $cols = [ + 'created_at' => __('Date participation'), + 'email' => __('Email'), + 'prize' => __('Lot'), + ]; + if ($settingsGlobal->use_ean_codes) { + $cols['ean_code_id'] = __('Code EAN'); + } + $cols['code_unique_id'] = __('Code unique'); + $cols['price_sent'] = __('Gain envoyé ?'); + if ($settingsGlobal->winning_proof) { + $cols['proof'] = __('Preuves'); + } + @endphp + @include('back::modules.table-col-sorter', [ + 'cols' => $cols, + 'ignore' => ['email', 'sticker', 'barcode', 'ticket'], + ]) + + + @foreach ($participationModels as $participationModel) + + + + + @if ($settingsGlobal->use_ean_codes) + + @endif + + + @if ($settingsGlobal->winning_proof) + + @endif + + + @endforeach + + @else + + + + @endif +
                                                                                                                                                                                                                                                                                                                                            + {{ \Carbon\Carbon::parse($participationModel->created_at)->isoFormat('DD/MM/Y à HH:mm') }} + + {{ $participationModel->customer->email }} + + + {{ __('N° :number', ['number' => $participationModel->instantWin->prize->id]) }} + + + {{ $participationModel->codeEan }} + + {{ $participationModel->code->code_unique }} + + @can('changePrizeSent', $participationModel) +
                                                                                                                                                                                                                                                                                                                                            + @csrf + @method('PATCH') + +
                                                                                                                                                                                                                                                                                                                                            + @else + + @endcan +
                                                                                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                                                                                            + @if ($participationModel->sticker) + + + + @endif + @if ($participationModel->barcode) + + + + @endif + @if ($participationModel->ticket) + + + + @endif +
                                                                                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                                                                                            + @canAny(['setComment'], $participationModel) +
                                                                                                                                                                                                                                                                                                                                            + @can('setComment', $participationModel) + + + + @endcan +
                                                                                                                                                                                                                                                                                                                                            + @else + + + + @endcan +
                                                                                                                                                                                                                                                                                                                                            {{ __('crud.other.no_model_found', ['model' => __('models.classes.winner')]) }}
                                                                                                                                                                                                                                                                                                                                            diff --git a/resources/views/pages/winners-list/index.blade.php b/resources/views/pages/winners-list/index.blade.php new file mode 100644 index 0000000..85b2d8c --- /dev/null +++ b/resources/views/pages/winners-list/index.blade.php @@ -0,0 +1,15 @@ +@extends('back::layout') + +@section('title', __('models.classes.winner')) +@section('description', __('Liste de tous les :model', ['model' => __('models.classes.winner')])) + +@section('main-class', 'winner-list-page') +@section('content') +
                                                                                                                                                                                                                                                                                                                                            + @include('modules.breadcrumbs.breadcrumb-body') +
                                                                                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                                                                                            + @include('back::pages.winners-list.index-list') +
                                                                                                                                                                                                                                                                                                                                            + {{ $participationModels->links() }} +@endsection diff --git a/resources/views/pages/winners-list/parts/display-file.blade.php b/resources/views/pages/winners-list/parts/display-file.blade.php new file mode 100644 index 0000000..29b8f39 --- /dev/null +++ b/resources/views/pages/winners-list/parts/display-file.blade.php @@ -0,0 +1,11 @@ +@if (Str::endsWith($file_path, '.pdf')) + +  {{ __('Ouvrir dans un nouvel onglet') }} + + +@else + {{ Str::ucfirst($attribute) }} +@endif diff --git a/resources/views/pages/winners-list/set-comment.blade.php b/resources/views/pages/winners-list/set-comment.blade.php new file mode 100644 index 0000000..b6ea87a --- /dev/null +++ b/resources/views/pages/winners-list/set-comment.blade.php @@ -0,0 +1,31 @@ +@extends('back::layout', ['brParam' => $participationModel]) + +@section('title', __('Édition d\'une :model', ['model' => Str::singular(__('models.classes.participation'))])) +@section('description', __('Édition d\'une :model déjà existante', ['model' => Str::singular(__('models.classes.participation'))])) +@section('breadcrumb', + request()->route()->getName()) + +@section('content') +
                                                                                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                                                                                            + + + + @include('modules.breadcrumbs.breadcrumb-body', ['brParam' => $participationModel]) +
                                                                                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                                                                                            + @csrf + @method('PATCH') + @include('back::pages.winners-list.form-inputs') +
                                                                                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                                                                                            + +
                                                                                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                                                                                            +@endsection diff --git a/resources/views/partials/inputs/bigint-foreign-id.blade.php b/resources/views/partials/inputs/bigint-foreign-id.blade.php new file mode 100644 index 0000000..3965cce --- /dev/null +++ b/resources/views/partials/inputs/bigint-foreign-id.blade.php @@ -0,0 +1,47 @@ +{{-- blade-formatter-disable --}} +{{-- + VARIABLE || COMMENT || TYPE || REQUIRED || DEFAULT + + $id || The id of the select tag. || string || REQUIRED || + $name || The name of the input tag. || string || REQUIRED || + $helper || The helper of the input. || string || REQUIRED || + $associatedModels || The models of the relation. || Collection || REQUIRED || + $foreignLabel || The field to display. || string || REQUIRED || + $label || The text displayed as a label. || string || OPTIONNAL || null + $size || The number of lines to display. || integer || OPTIONNAL || null + $required || Is the field required ? || boolean || OPTIONNAL || false + $model || The model we're creating/editing || Model class || OPTIONNAL || null +--}} + +@if(!empty($label)) + +@endif + +@include('modules.input-error', [ + 'inputName' => $name, + 'helperId' => "{$id}Help", + 'helper' => $helper +]) diff --git a/resources/views/partials/inputs/date.blade.php b/resources/views/partials/inputs/date.blade.php new file mode 100644 index 0000000..652dede --- /dev/null +++ b/resources/views/partials/inputs/date.blade.php @@ -0,0 +1,15 @@ + + +@include('modules.input-error', [ + 'inputName' => $name, + 'helperId' => "{$id}Help", + 'helper' => $helper +]) diff --git a/resources/views/partials/inputs/int-color.blade.php b/resources/views/partials/inputs/int-color.blade.php new file mode 100644 index 0000000..88eb0a4 --- /dev/null +++ b/resources/views/partials/inputs/int-color.blade.php @@ -0,0 +1,71 @@ +{{-- blade-formatter-disable --}} +@if(!empty($label)) + +@endif +@if(isset($appendText)) +
                                                                                                                                                                                                                                                                                                                                            + @endif + + @if(isset($appendText)) + +
                                                                                                                                                                                                                                                                                                                                            +@endif +@include('modules.input-error', [ + 'inputName' => $name, + 'helperId' => "{$id}Help", + 'helper' => $helper +]) + +@push('scripts') + +@endpush diff --git a/resources/views/partials/inputs/int-number.blade.php b/resources/views/partials/inputs/int-number.blade.php new file mode 100644 index 0000000..6885a98 --- /dev/null +++ b/resources/views/partials/inputs/int-number.blade.php @@ -0,0 +1,61 @@ +{{-- blade-formatter-disable --}} +{{-- + VARIABLE || COMMENT || TYPE || REQUIRED || DEFAULT + + $id || The id of the input tag. || string || REQUIRED || + $name || The name of the input tag. || string || REQUIRED || + $helper || The helper of the input. || string || REQUIRED || + $label || The text displayed as a label. || string || OPTIONNAL || null + $appendText || The text to append to the left + of the input. || string || OPTIONNAL || null + $required || Is the field required ? || boolean || OPTIONNAL || false + $value || The default value of the input. || integer || OPTIONNAL || 0 + $step || The step of the input. || integer || OPTIONNAL || 1 + $unsigned || Is the value unsigned ? || boolean || OPTIONNAL || false + $min || The min value of the input. || integer || OPTIONNAL || !empty($unsigned) ? 0 : -2147483648 + $max || The max value of the input. || integer || OPTIONNAL || !empty($unsigned) ? 4294967295 : 2147483647 + $model || The model we're creating/editing || Model class || OPTIONNAL || null +--}} + +@if(!empty($label)) + +@endif +@if(isset($appendText)) +
                                                                                                                                                                                                                                                                                                                                            + @endif + $errors->has($name) + ]) + aria-describedby="{{ $id }}Help" + @if(!empty($step)) + step="{{ Str::replace(',', '.', strval($step)) }}" + @else step="1" + @endif + @if(!empty($max)) + max="{{ $max }}" + @else + max="{{ !empty($unsigned) ? '4294967295' : '2147483647' }}" + @endif + @if(!empty($min)) min="{{ $min }}" + @else + min="{{ !empty($unsigned) ? '0' : '-2147483648' }}" + @endif + @disabled(!empty($disabled)) + @readonly(!empty($readonly)) + @required(!empty($required))> + @if(isset($appendText)) + +
                                                                                                                                                                                                                                                                                                                                            +@endif +@include('modules.input-error', [ + 'inputName' => $name, + 'helperId' => "{$id}Help", + 'helper' => $helper +]) diff --git a/resources/views/partials/inputs/pivot-belongsToMany.blade.php b/resources/views/partials/inputs/pivot-belongsToMany.blade.php new file mode 100644 index 0000000..2f8adbe --- /dev/null +++ b/resources/views/partials/inputs/pivot-belongsToMany.blade.php @@ -0,0 +1,28 @@ +{{-- + VARIABLE || COMMENT || TYPE || REQUIRED || DEFAULT + + $id || The id of the input tag. || string || REQUIRED || + $name || The name of the input tag. || string || REQUIRED || + $helper || The helper of the input. || string || REQUIRED || + $placeholder || The placeholder of the input. || string || REQUIRED || + $itemsList || Collection of available models. || Collection || REQUIRED || + $itemLimit || Array of min and max limits. || array || OPTIONNAL || [0, null] + $model || The model we're creating/editing || Model class || OPTIONNAL || null +--}} + +@php + $data = [ + 'name' => $name, + 'value' => Arr::wrap(old($name) ?? ($model->{$name} ?? [])), + 'placeholder' => $placeholder, + 'itemsList' => $itemsList, + 'itemLimit' => $itemLimit ?? null, + 'errors' => $errors->getBag('default')->getMessages() ?? [], + ]; +@endphp +
                                                                                                                                                                                                                                                                                                                                            +@include('modules.input-error', [ + 'inputName' => $name, + 'helperId' => "{$id}Help", + 'helper' => $helper, +]) diff --git a/resources/views/partials/inputs/publish-dates.blade.php b/resources/views/partials/inputs/publish-dates.blade.php new file mode 100644 index 0000000..56123cc --- /dev/null +++ b/resources/views/partials/inputs/publish-dates.blade.php @@ -0,0 +1,14 @@ + + +@include('modules.input-error', [ + 'inputName' => $name, + 'helperId' => $id . 'Help', + 'helper' => + (isset($model) and $model->{$name}) + ? __('Leave empty for immediate display of the slider.') + : __('Empty for immediate display of the slider.'), +]) diff --git a/resources/views/partials/inputs/search-belongs-to-dropdown.blade.php b/resources/views/partials/inputs/search-belongs-to-dropdown.blade.php new file mode 100644 index 0000000..85d83d5 --- /dev/null +++ b/resources/views/partials/inputs/search-belongs-to-dropdown.blade.php @@ -0,0 +1,28 @@ + +@php +if (old($name)) { + $model = $targetModel::find(old($name, [])); + $modelSelected = [ + 'id' => $model->id, + 'name' => $model->name, + 'value' => $model->id, + ]; +} +$data = [ + 'readonly' => $readonly, + 'name' => $name, + 'targetModel' => $targetModel, + 'routeName' => $routeName, + 'modelRelated' => $modelRelated, + 'modelSelected' => $modelSelected, + 'placeholder' => $placeholder, +]; +@endphp +
                                                                                                                                                                                                                                                                                                                                            +@include('modules.input-error', [ + 'inputName' => $name, + 'helperId' => "{$id}Help", + 'helper' => $helper, +]) diff --git a/resources/views/partials/inputs/select-multiple-enum.blade.php b/resources/views/partials/inputs/select-multiple-enum.blade.php new file mode 100644 index 0000000..c0b7c82 --- /dev/null +++ b/resources/views/partials/inputs/select-multiple-enum.blade.php @@ -0,0 +1,16 @@ +@php +$data = [ + "name" => $name, + "label" => $label, + "value" => $value ?? [], + "placeholder" => $placeholder, + "itemsSelected" => $itemsSelected, + "itemsList" => $itemsList, + "itemLimit" => $itemLimit, + "showSpecificItem" => $showSpecificItem ?? null, + "errors" => $errors->getBag("default")->getMessages() ?? [], + 'helper' => $helper, + 'require' => $require +]; +@endphp +
                                                                                                                                                                                                                                                                                                                                            diff --git a/resources/views/partials/inputs/text-html.blade.php b/resources/views/partials/inputs/text-html.blade.php new file mode 100644 index 0000000..3f3c814 --- /dev/null +++ b/resources/views/partials/inputs/text-html.blade.php @@ -0,0 +1,32 @@ +{{-- + VARIABLE || COMMENT || TYPE || REQUIRED || DEFAULT + + $id || The id of the input tag. || string || REQUIRED || + $name || The name of the input tag. || string || REQUIRED || + $helper || The helper of the input. || string || OPTIONNAL || __('crud.minicrud.text_warning') + $label || The text displayed as a label. || string || OPTIONNAL || null + $required || Is the field required ? || boolean || OPTIONNAL || false + $value || The default value of the input. || string || OPTIONNAL || '' + $model || The model we're creating/editing || Model class || OPTIONNAL || null +--}} + +@if(!empty($label)) + +@endif +@php +$data = [ + 'name' => $name, + 'text' => old($name, $model->{$name} ?? $value ?? '') +]; +@endphp +
                                                                                                                                                                                                                                                                                                                                            +@include('modules.input-error', [ + 'inputName' => $name, + 'helperId' => "{$id}Help", + 'helper' => $helper ?? __('crud.minicrud.text_warning') . '. ' . __('validation.min.string', [ + 'attribute' => $input['label'], + 'min' => 15 + ]), +]) diff --git a/resources/views/partials/inputs/text-list-items.blade.php b/resources/views/partials/inputs/text-list-items.blade.php new file mode 100644 index 0000000..6262b0b --- /dev/null +++ b/resources/views/partials/inputs/text-list-items.blade.php @@ -0,0 +1,31 @@ +
                                                                                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                                                                                            + +
                                                                                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                                                                                            + @php + $data = [ + 'itemList' => old($name, $model->{$name} ?? []) ?? [], + 'itemColumns' => $itemColumns, + 'itemType' => $itemType, + 'itemLimit' => $itemLimit ?? [], + 'inputName' => $name, + 'inputPlaceholder' => $inputPlaceholder, + 'header' => $header ?? false, + 'errors' => $errors->getBag('default')->getMessages() ?? [] + ]; + @endphp +
                                                                                                                                                                                                                                                                                                                                            + @include('modules.input-error', [ + 'inputName' => $name, + 'helperId' => "{$id}Help", + 'helper' => $helper, + ]) +
                                                                                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                                                                                            diff --git a/resources/views/partials/inputs/timestamp-datetime.blade.php b/resources/views/partials/inputs/timestamp-datetime.blade.php new file mode 100644 index 0000000..908fd5d --- /dev/null +++ b/resources/views/partials/inputs/timestamp-datetime.blade.php @@ -0,0 +1,28 @@ +{{-- + VARIABLE || COMMENT || TYPE || REQUIRED || DEFAULT + + $id || The id of the input tag. || string || REQUIRED || + $name || The name of the input tag. || string || REQUIRED || + $helper || The helper of the input. || string || REQUIRED || + $label || The text displayed as a label. || string || OPTIONNAL || null + $required || Is the field required ? || boolean || OPTIONNAL || false + $model || The model we're creating/editing || Model class || OPTIONNAL || null +--}} + +@if(!empty($label)) + +@endif + +@include('modules.input-error', [ + 'inputName' => $name, + 'helperId' => "{$id}Help", + 'helper' => $helper +]) diff --git a/resources/views/partials/inputs/tinyint-boolean.blade.php b/resources/views/partials/inputs/tinyint-boolean.blade.php new file mode 100644 index 0000000..1c1e537 --- /dev/null +++ b/resources/views/partials/inputs/tinyint-boolean.blade.php @@ -0,0 +1,30 @@ +{{-- blade-formatter-disable --}} +{{-- + VARIABLE || COMMENT || TYPE || REQUIRED || DEFAULT + + $id || The id of the input tag. || string || REQUIRED || + $name || The name of the input tag. || string || REQUIRED || + $helper || The helper of the input. || string || REQUIRED || + $label || The text displayed as a label. || string || REQUIRED || + $model || The model we're creating/editing || Model class || OPTIONNAL || null +--}} + +
                                                                                                                                                                                                                                                                                                                                            + + {$name} ?? false))))> +
                                                                                                                                                                                                                                                                                                                                            +@include('modules.input-error', [ + 'inputName' => $name, + 'helperId' => "{$id}Help", + 'helper' => $helper +]) diff --git a/resources/views/partials/inputs/tinyint-enum.blade.php b/resources/views/partials/inputs/tinyint-enum.blade.php new file mode 100644 index 0000000..68f183f --- /dev/null +++ b/resources/views/partials/inputs/tinyint-enum.blade.php @@ -0,0 +1,48 @@ +{{-- blade-formatter-disable --}} +{{-- + VARIABLE || COMMENT || TYPE || REQUIRED || DEFAULT + + $id || The id of the select tag. || string || REQUIRED || + $name || The name of the select tag. || string || REQUIRED || + $helper || The helper of the input. || string || REQUIRED || + $associatedModels || The enum to associate. || Enum || REQUIRED || + $label || The text displayed as a label. || string || OPTIONNAL || null + $disabled || Is the field disabled ? || boolean || OPTIONNAL || false + $required || Is the field required ? || boolean || OPTIONNAL || false + $value || The default selected option. || integer || OPTIONNAL || 1 + $model || The model we're creating/editing || Model class || OPTIONNAL || null +--}} + +@if(!empty($label)) + +@endif + +@include('modules.input-error', [ + 'inputName' => $name, + 'helperId' => "{$id}Help", + 'helper' => $helper +]) diff --git a/resources/views/partials/inputs/varchar-email.blade.php b/resources/views/partials/inputs/varchar-email.blade.php new file mode 100644 index 0000000..24e9e26 --- /dev/null +++ b/resources/views/partials/inputs/varchar-email.blade.php @@ -0,0 +1,34 @@ +{{-- blade-formatter-disable --}} +{{-- + VARIABLE || COMMENT || TYPE || REQUIRED || DEFAULT + + $id || The id of the input tag. || string || REQUIRED || + $name || The name of the input tag. || string || REQUIRED || + $helper || The helper of the input. || string || REQUIRED || + $label || The text displayed as a label. || string || OPTIONNAL || null + $required || Is the field required ? || boolean || OPTIONNAL || false + $placeholder || The placeholder of the input. || string || OPTIONNAL || __('aaa.bbb@example.com') + $model || The model we're creating/editing || Model class || OPTIONNAL || null +--}} + +@if (!empty($label)) + +@endif + +@include('modules.input-error', [ + 'inputName' => $name, + 'helperId' => "{$id}Help", + 'helper' => $helper, +]) diff --git a/resources/views/partials/inputs/varchar-file.blade.php b/resources/views/partials/inputs/varchar-file.blade.php new file mode 100644 index 0000000..04af256 --- /dev/null +++ b/resources/views/partials/inputs/varchar-file.blade.php @@ -0,0 +1,71 @@ +{{-- blade-formatter-disable --}} +{{-- + VARIABLE || COMMENT || TYPE || REQUIRED || DEFAULT + + $id || The id of the input tag. || string || REQUIRED || + $name || The name of the input tag. || string || REQUIRED || + $helper || The helper of the input. || string || REQUIRED || + $label || The text displayed as a label. || string || OPTIONNAL || null + $required || Is the field required ? || boolean || OPTIONNAL || false + $value || The default value of the input. || string || OPTIONNAL || '' + $file || The accepted files extensions. || string || OPTIONNAL || '.pdf' + $model || The model we're creating/editing || Model class || OPTIONNAL || null +--}} + +@if(!empty($label)) + +@endif +
                                                                                                                                                                                                                                                                                                                                            + + @if (!empty($model->{$name})) + basename($model->{$name})]) }}" + data-bs-toggle="tooltip"> + {{ basename($model->{$name}) }} + + @php + $removeBtnId = 'remove-btn-id-' . uniqid(); + @endphp + + @push('scripts') + + @endpush + @endif +
                                                                                                                                                                                                                                                                                                                                            +@include('modules.input-error', [ + 'inputName' => $name, + 'helperId' => "{$id}Help", + 'helper' => $helper +]) diff --git a/resources/views/partials/inputs/varchar-multiline.blade.php b/resources/views/partials/inputs/varchar-multiline.blade.php new file mode 100644 index 0000000..fa91727 --- /dev/null +++ b/resources/views/partials/inputs/varchar-multiline.blade.php @@ -0,0 +1,32 @@ +{{-- + VARIABLE || COMMENT || TYPE || REQUIRED || DEFAULT + + $id || The id of the input tag. || string || REQUIRED || + $name || The name of the input tag. || string || REQUIRED || + $helper || The helper of the input. || string || REQUIRED || + $placeholder || The placeholder of the input. || string || REQUIRED || + $label || The text displayed as a label. || string || OPTIONNAL || null + $required || Is the field required ? || boolean || OPTIONNAL || false + $model || The model we're creating/editing || Model class || OPTIONNAL || null +--}} + + +@php + $data = [ + 'id' => $id, + 'class' => 'w-100 form-control ' . ($errors->has($name) ? 'is-invalid ' : ''), + 'name' => $name, + 'placeholder' => $placeholder, + 'ariaDescribedby' => "{$id}Help", + 'required' => $required, + 'value' => old($name, $model->{$name} ?? ''), + ]; +@endphp +
                                                                                                                                                                                                                                                                                                                                            +@include('modules.input-error', [ + 'inputName' => $name, + 'helperId' => "{$id}Help", + 'helper' => $helper, +]) diff --git a/resources/views/partials/inputs/varchar-password.blade.php b/resources/views/partials/inputs/varchar-password.blade.php new file mode 100644 index 0000000..c6ec688 --- /dev/null +++ b/resources/views/partials/inputs/varchar-password.blade.php @@ -0,0 +1,49 @@ +{{-- blade-formatter-disable --}} +{{-- + VARIABLE || COMMENT || TYPE || REQUIRED || DEFAULT + + $id || The id of the input tag. || string || REQUIRED || + $name || The name of the input tag. || string || REQUIRED || + $helper || The helper of the input. || string || REQUIRED || + $label || The text displayed as a label. || string || OPTIONNAL || null + $required || Is the field required ? || boolean || OPTIONNAL || false + $placeholder || The placeholder of the input. || string || OPTIONNAL || __('Un beau mot de passe') + $hasWordCounter || Is the WordCounter needed ? || boolean || OPTIONNAL || false + $model || The model we're creating/editing || Model class || OPTIONNAL || null +--}} + +@if(!empty($label)) + +@endif +@if(!empty($hasWordCounter ?? false)) +
                                                                                                                                                                                                                                                                                                                                            "$id"])'>
                                                                                                                                                                                                                                                                                                                                            +@endif +
                                                                                                                                                                                                                                                                                                                                            + $errors->has($name), + 'need-word-counter-password' => !empty($hasWordCounter ?? false) + ]) + id="{{ $id }}" + aria-describedby="{{ $id }}Help" + placeholder="{{ $placeholder ?? __('Un beau mot de passe') }}" + autocomplete="current-password" + @disabled(!empty($disabled)) + @readonly(!empty($readonly)) + @required(!empty($required))> + @php $dataPassword = ['inputId' => $id]; @endphp + + +
                                                                                                                                                                                                                                                                                                                                            +@include('modules.input-error', [ + 'inputName' => $name, + 'helperId' => "{$id}Help", + 'helper' => $helper +]) diff --git a/resources/views/partials/inputs/varchar-picture.blade.php b/resources/views/partials/inputs/varchar-picture.blade.php new file mode 100644 index 0000000..3d2af0a --- /dev/null +++ b/resources/views/partials/inputs/varchar-picture.blade.php @@ -0,0 +1,31 @@ +{{-- + VARIABLE || COMMENT || TYPE || REQUIRED || DEFAULT + + $id || The id of the input tag. || string || REQUIRED || + $name || The name of the input tag. || string || REQUIRED || + $helper || The helper of the input. || string || REQUIRED || + $width || The width of the picture. || integer || REQUIRED || + $height || The name of the picture. || integer || REQUIRED || + $required || Is the field required ? || boolean || OPTIONNAL || false + $preview || Is the picture previewed ? || boolean || OPTIONNAL || false + $browseEvent || Let false if you need to import + a picture || boolean || OPTIONNAL || false + $value || The default value of the input. || string || OPTIONNAL || '' + $model || The model we're creating/editing || Model class || OPTIONNAL || null +--}} + +@php + $data = [ + 'id' => $id, + 'name' => $name, + 'helper' => $helper, + 'width' => $width, + 'height' => $height, + 'value' => $model->{$name} ?? ($value ?? ''), + 'preview' => $preview ?? false, + 'browseEvent' => $browseEvent ?? false, + 'required' => $required ?? false, + ]; +@endphp +
                                                                                                                                                                                                                                                                                                                                            +@include('modules.input-error', ['inputName' => $name, 'helper' => null]) diff --git a/resources/views/partials/inputs/varchar.blade.php b/resources/views/partials/inputs/varchar.blade.php new file mode 100644 index 0000000..52edee3 --- /dev/null +++ b/resources/views/partials/inputs/varchar.blade.php @@ -0,0 +1,42 @@ +{{-- blade-formatter-disable --}} +{{-- + VARIABLE || COMMENT || TYPE || REQUIRED || DEFAULT + + $id || The id of the input tag. || string || REQUIRED || + $name || The name of the input tag. || string || REQUIRED || + $helper || The helper of the input. || string || REQUIRED || + $label || The text displayed as a label. || string || OPTIONNAL || null + $required || Is the field required ? || boolean || OPTIONNAL || false + $value || The default value of the input. || string || OPTIONNAL || '' + $placeholder || The placeholder of the input. || string || OPTIONNAL || __('A beautiful title') + $hasWordCounter || Is the WordCounter needed ? || boolean || OPTIONNAL || false + $model || The model we're creating/editing || Model class || OPTIONNAL || null +--}} + +@if(!empty($label)) + +@endif +@if(!empty($hasWordCounter ?? false)) +
                                                                                                                                                                                                                                                                                                                                            $id])'>
                                                                                                                                                                                                                                                                                                                                            +@endif + $errors->has($name) + ]) + id="{{ $id }}" + aria-describedby="{{ $id }}Help" + placeholder="{{ $placeholder ?? __('A beautiful title') }}" + @disabled(!empty($disabled)) + @readonly(!empty($readonly)) + @required(!empty($required))> +@include('modules.input-error', [ + 'inputName' => $name, + 'helperId' => $id.'Help', + 'helper' => $helper +]) diff --git a/resources/views/re7.blade.php b/resources/views/re7.blade.php deleted file mode 100644 index ce164c1..0000000 --- a/resources/views/re7.blade.php +++ /dev/null @@ -1,28 +0,0 @@ -@extends('layouts.app') - -@section('content') -
                                                                                                                                                                                                                                                                                                                                            -
                                                                                                                                                                                                                                                                                                                                            -
                                                                                                                                                                                                                                                                                                                                            -
                                                                                                                                                                                                                                                                                                                                            -
                                                                                                                                                                                                                                                                                                                                            {{ __('Dashboard') }} - RE7
                                                                                                                                                                                                                                                                                                                                            - - -
                                                                                                                                                                                                                                                                                                                                            -
                                                                                                                                                                                                                                                                                                                                            -
                                                                                                                                                                                                                                                                                                                                            -
                                                                                                                                                                                                                                                                                                                                            -@endsection diff --git a/resources/views/vendor/errors/400.blade.php b/resources/views/vendor/errors/400.blade.php new file mode 100644 index 0000000..263e675 --- /dev/null +++ b/resources/views/vendor/errors/400.blade.php @@ -0,0 +1,5 @@ +@extends('errors::minimal') + +@section('title', __('Forbidden')) +@section('code', '400') +@section('message', __($exception->getMessage() ?: 'Forbidden')) diff --git a/resources/views/vendor/errors/401.blade.php b/resources/views/vendor/errors/401.blade.php new file mode 100644 index 0000000..5c586db --- /dev/null +++ b/resources/views/vendor/errors/401.blade.php @@ -0,0 +1,5 @@ +@extends('errors::minimal') + +@section('title', __('Unauthorized')) +@section('code', '401') +@section('message', __('Unauthorized')) diff --git a/resources/views/vendor/errors/403.blade.php b/resources/views/vendor/errors/403.blade.php new file mode 100644 index 0000000..7e326b5 --- /dev/null +++ b/resources/views/vendor/errors/403.blade.php @@ -0,0 +1,13 @@ +@extends('errors::illustrated-layout') + +@section('title', __('Forbidden')) +@section('code', '403') +@section('message', __($exception->getMessage() ?: 'Forbidden')) +@section('submessage', __('Vous n\'êtes pas authorisé à acceder a cet élément.')) + +@section('button', true) + +@section('image') + +@endsection diff --git a/resources/views/vendor/errors/404.blade.php b/resources/views/vendor/errors/404.blade.php new file mode 100644 index 0000000..b31fadb --- /dev/null +++ b/resources/views/vendor/errors/404.blade.php @@ -0,0 +1,13 @@ +@extends('errors::illustrated-layout') + +@section('title', __('Not Found')) +@section('code', '404') +@section('message', __('Not Found')) +@section('submessage', __('Ce n\'est pas la page que vous recherchez...')) + +@section('button', true) + +@section('image') + +@endsection diff --git a/resources/views/vendor/errors/419.blade.php b/resources/views/vendor/errors/419.blade.php new file mode 100644 index 0000000..b7644aa --- /dev/null +++ b/resources/views/vendor/errors/419.blade.php @@ -0,0 +1,15 @@ +@extends('errors::minimal') + +@section('title', __('Page Expired')) +@section('code', '419') +@section('message', __('Page Expired')) + +@push('scripts') + +@endpush diff --git a/resources/views/vendor/errors/429.blade.php b/resources/views/vendor/errors/429.blade.php new file mode 100644 index 0000000..f01b07b --- /dev/null +++ b/resources/views/vendor/errors/429.blade.php @@ -0,0 +1,5 @@ +@extends('errors::minimal') + +@section('title', __('Too Many Requests')) +@section('code', '429') +@section('message', __('Too Many Requests')) diff --git a/resources/views/vendor/errors/500.blade.php b/resources/views/vendor/errors/500.blade.php new file mode 100644 index 0000000..d9e95d9 --- /dev/null +++ b/resources/views/vendor/errors/500.blade.php @@ -0,0 +1,5 @@ +@extends('errors::minimal') + +@section('title', __('Server Error')) +@section('code', '500') +@section('message', __('Server Error')) diff --git a/resources/views/vendor/errors/503.blade.php b/resources/views/vendor/errors/503.blade.php new file mode 100644 index 0000000..ae9c7e2 --- /dev/null +++ b/resources/views/vendor/errors/503.blade.php @@ -0,0 +1,11 @@ +@extends('errors::illustrated-layout') + +@section('title', __('Service Unavailable')) +@section('code', '503') +@section('message', __('Service Unavailable')) +@section('submessage', __('Le site est en maintenance, nous reviendrons...')) + +@section('image') + +@endsection diff --git a/resources/views/vendor/errors/illustrated-layout.blade.php b/resources/views/vendor/errors/illustrated-layout.blade.php new file mode 100644 index 0000000..111d3cc --- /dev/null +++ b/resources/views/vendor/errors/illustrated-layout.blade.php @@ -0,0 +1,52 @@ + + + + + + + + @yield('title') + + @vite(['resources/sass/bo.scss']) + @stack('scripts') + + + +
                                                                                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                                                                                            + @yield('code', __('Oh no')) +
                                                                                                                                                                                                                                                                                                                                            + +
                                                                                                                                                                                                                                                                                                                                            + +

                                                                                                                                                                                                                                                                                                                                            + @yield('message') +

                                                                                                                                                                                                                                                                                                                                            + +

                                                                                                                                                                                                                                                                                                                                            + @yield('submessage') +

                                                                                                                                                                                                                                                                                                                                            + + @hasSection('button') + + {{ __('Go to page :page', [ + 'page' => __('Accueil'), + ]) }} + + @endif +
                                                                                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                                                                                            + +
                                                                                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                                                                                            + @yield('image') +
                                                                                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                                                                                            + + + diff --git a/resources/views/vendor/errors/minimal.blade.php b/resources/views/vendor/errors/minimal.blade.php new file mode 100644 index 0000000..6d5121b --- /dev/null +++ b/resources/views/vendor/errors/minimal.blade.php @@ -0,0 +1,37 @@ + + + + + + + + @yield('title') + + + + @vite(['resources/sass/bo.scss']) + @stack('scripts') + + + +
                                                                                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                                                                                            + @yield('code') +
                                                                                                                                                                                                                                                                                                                                            + +
                                                                                                                                                                                                                                                                                                                                            + @yield('message') +
                                                                                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                                                                                            + + + diff --git a/resources/views/vendor/mail/html/header.blade.php b/resources/views/vendor/mail/html/header.blade.php new file mode 100644 index 0000000..48c7bf2 --- /dev/null +++ b/resources/views/vendor/mail/html/header.blade.php @@ -0,0 +1,13 @@ + + + + @if (trim($slot) === 'Laravel') + + @else + + {{ $slot }} + @endif + + + diff --git a/resources/views/welcome.blade.php b/resources/views/welcome.blade.php deleted file mode 100644 index 3fb48cc..0000000 --- a/resources/views/welcome.blade.php +++ /dev/null @@ -1,100 +0,0 @@ - - - - - - - Laravel - - - - - - - - -
                                                                                                                                                                                                                                                                                                                                            - @if (Route::has('login')) - - @endif - -
                                                                                                                                                                                                                                                                                                                                            -
                                                                                                                                                                                                                                                                                                                                            - Laravel -
                                                                                                                                                                                                                                                                                                                                            - - -
                                                                                                                                                                                                                                                                                                                                            -
                                                                                                                                                                                                                                                                                                                                            - - diff --git a/routes/api.php b/routes/api.php new file mode 100644 index 0000000..b3d9bbc --- /dev/null +++ b/routes/api.php @@ -0,0 +1 @@ +push(trans('models.classes.banned_ips'), route('bo.banned_ips.index')); +}); +Breadcrumbs::for('bo.banned_ips.create', function (Generator $trail) { + $trail->parent('bo.banned_ips.index'); + $trail->push(trans('crud.actions.create'), route('bo.banned_ips.create')); +}); +Breadcrumbs::for('bo.banned_ips.edit', function (Generator $trail, BannedIp $bannedip) { + $trail->parent('bo.banned_ips.index'); + $trail->push(trans('crud.actions.edit'), route('bo.banned_ips.edit', $bannedip)); +}); + +// * CONTENTS +Breadcrumbs::for('bo.static_pages.index', function (Generator $trail) { + $trail->push(Str::ucfirst(trans_choice('models.classes.static_page', '*')), route('bo.static_pages.index')); +}); +Breadcrumbs::for('bo.static_pages.edit', function (Generator $trail, StaticPage $page) { + $trail->parent('bo.static_pages.index'); + $trail->push(trans('crud.actions.edit'), route('bo.static_pages.edit', $page)); +}); + +// * FAQ - QUESTIONS +Breadcrumbs::for('bo.faq-questions.index', function (Generator $trail) { + $trail->push(trans_choice('models.classes.faq-questions', 2), route('bo.faq-questions.index')); +}); +Breadcrumbs::for('bo.faq-questions.create', function (Generator $trail) { + $trail->parent('bo.faq-questions.index'); + $trail->push(trans('crud.actions.create'), route('bo.faq-questions.create')); +}); +Breadcrumbs::for('bo.faq-questions.edit', function (Generator $trail, FaqQuestion $faqQuestion) { + $trail->parent('bo.faq-questions.index'); + $trail->push(trans('crud.actions.edit'), route('bo.faq-questions.edit', $faqQuestion)); +}); + +// * FAQ - THEMES +Breadcrumbs::for('bo.faq-themes.index', function (Generator $trail) { + $trail->push(trans_choice('models.classes.faq-themes', 2), route('bo.faq-themes.index')); +}); +Breadcrumbs::for('bo.faq-themes.create', function (Generator $trail) { + $trail->parent('bo.faq-themes.index'); + $trail->push(trans('crud.actions.create'), route('bo.faq-themes.create')); +}); +Breadcrumbs::for('bo.faq-themes.edit', function (Generator $trail, FaqTheme $faqTheme) { + $trail->parent('bo.faq-themes.index'); + $trail->push(trans('crud.actions.edit'), route('bo.faq-themes.edit', $faqTheme)); +}); + +// * PRIZES +Breadcrumbs::for('bo.prizes.index', function (Generator $trail) { + $trail->push(Str::ucfirst(trans_choice('models.classes.prize', 2)), route('bo.prizes.index')); +}); +Breadcrumbs::for('bo.prizes.create', function (Generator $trail) { + $trail->parent('bo.prizes.index'); + $trail->push(trans('crud.actions.create'), route('bo.prizes.create')); +}); +Breadcrumbs::for('bo.prizes.edit', function (Generator $trail, Prize $prize) { + $trail->parent('bo.prizes.index'); + $trail->push(trans('crud.actions.edit'), route('bo.prizes.edit', $prize)); +}); +Breadcrumbs::for('bo.prizes.show', function (Generator $trail, Prize $prize) { + $trail->parent('bo.prizes.index'); + $trail->push(trans('crud.actions.view'), route('bo.prizes.show', $prize)); +}); + +// * RANGES +Breadcrumbs::for('bo.ranges.index', function (Generator $trail) { + $trail->push(Str::plural(trans('models.classes.range')), route('bo.ranges.index')); +}); +Breadcrumbs::for('bo.ranges.create', function (Generator $trail) { + $trail->parent('bo.ranges.index'); + $trail->push(trans('crud.actions.create'), route('bo.ranges.create')); +}); +Breadcrumbs::for('bo.ranges.edit', function (Generator $trail, Range $range) { + $trail->parent('bo.ranges.index'); + $trail->push(trans('crud.actions.edit'), route('bo.ranges.edit', $range)); +}); +Breadcrumbs::for('bo.ranges.show', function (Generator $trail, Range $range) { + $trail->parent('bo.ranges.index'); + $trail->push(trans('crud.actions.view'), route('bo.ranges.show', $range)); +}); + +// * PRODUCTS +Breadcrumbs::for('bo.products.index', function (Generator $trail) { + $trail->push(Str::plural(trans('models.classes.product')), route('bo.products.index')); +}); +Breadcrumbs::for('bo.products.create', function (Generator $trail) { + $trail->parent('bo.products.index'); + $trail->push(trans('crud.actions.create'), route('bo.products.create')); +}); +Breadcrumbs::for('bo.products.edit', function (Generator $trail, Product $product) { + $trail->parent('bo.products.index'); + $trail->push(trans('crud.actions.edit'), route('bo.products.edit', $product)); +}); +Breadcrumbs::for('bo.products.show', function (Generator $trail, Product $product) { + $trail->parent('bo.products.index'); + $trail->push(trans('crud.actions.view'), route('bo.products.show', $product)); +}); + +// * SETTINGS +Breadcrumbs::for('bo.settings.edit', function (Generator $trail) { + $trail->push(Str::ucfirst(trans('models.classes.settings')), route('bo.products.index')); +}); + +// * WINNERS LIST +Breadcrumbs::for('bo.participations.winners-list', function (Generator $trail) { + $trail->push(Str::of(trans('models.classes.winner'))->ucfirst()->plural(), route('bo.participations.winners-list')); +}); +Breadcrumbs::for('bo.participations.set-comment', function (Generator $trail, Participation $participation) { + $trail->parent('bo.participations.winners-list'); + $trail->push( + Str::ucfirst(trans('validation.custom.comment')), + route('bo.participations.set-comment', $participation) + ); +}); + +// * UNIQUES CODES +Breadcrumbs::for('bo.codes.index', function (Generator $trail) { + $trail->push(Str::of(trans('validation.custom.unique_code'))->plural()->ucfirst(), route('bo.codes.index')); +}); +Breadcrumbs::for('bo.codes.search', function (Generator $trail) { + $trail->parent('bo.codes.index'); + $trail->push(Str::ucfirst(trans('crud.actions.view')), route('bo.codes.search')); +}); diff --git a/routes/breadcrumbs-fo.php b/routes/breadcrumbs-fo.php new file mode 100644 index 0000000..b3d9bbc --- /dev/null +++ b/routes/breadcrumbs-fo.php @@ -0,0 +1 @@ +comment(Inspiring::quote()); -})->describe('Display an inspiring quote'); diff --git a/routes/web-bo.php b/routes/web-bo.php index d77de7c..8febdc6 100644 --- a/routes/web-bo.php +++ b/routes/web-bo.php @@ -1,79 +1,121 @@ name('bo.') -->middleware(['auth', 'is-admin', 'is-super-admin']) -->group(function () { - Route::get('/', [DashboardController::class, 'index']) - ->name('dashboard')->withoutMiddleware('is-super-admin'); - // Réglages. - Route::match(['get', 'put'], '/settings', [SettingsController::class, 'manage']) - ->name('settings'); - // Contenu. - Route::match(['get', 'put'], '/content/{id}', [ContentController::class, 'manage']) - ->name('content'); - // Pages liées au gains. - Route::get('/gain-views', [GainViewController::class, 'index']) - ->name('gain-views'); - Route::post('/ajax/delete-gain-views', [GainViewController::class, 'destroy']); - Route::post('/ajax/save-gain-views', [GainViewController::class, 'saveDatas']); - // Lots. - Route::get('/prizes', [PrizesController::class, 'index'])->name('prizes'); - Route::post('/ajax/delete-prize', [PrizesController::class, 'destroy']); - Route::post('/ajax/save-prizes', [PrizesController::class, 'saveDatas']); - // Instants gagnants. - Route::get('/instant-win', [InstantWinController::class, 'index'])->name('instant-win'); - Route::get('/ajax/instant-win-generate', [InstantWinController::class, 'instantWinGenerate']); - // Codes EAN. - Route::get('/codes-ean', [CodesEANController::class, 'index']) - ->name('codes-ean')->withoutMiddleware('is-super-admin'); - Route::post('/ajax/delete-codes-ean', [CodesEANController::class, 'destroy']) - ->withoutMiddleware('is-super-admin'); - Route::post('/ajax/save-codes-ean', [CodesEANController::class, 'saveDatas']) - ->withoutMiddleware('is-super-admin'); - // IP Bannies. - Route::get('/banned-ip', [BannedIpController::class, 'index'])->name('banned-ip'); - Route::post('/ajax/delete-banned-ip', [BannedIpController::class, 'destroy']); - Route::post('/ajax/save-banned-ip', [BannedIpController::class, 'saveDatas']); - // FAQ - Thèmes. - Route::get('/faq-themes', [FaqThemesController::class, 'index'])->name('faq-themes'); - Route::post('/ajax/delete-faq-theme', [FaqThemesController::class, 'destroy']); - Route::post('/ajax/save-faq-theme', [FaqThemesController::class, 'saveDatas']); - // FAQ - Questions. - Route::get('/faq-questions', [FaqQuestionsController::class, 'index'])->name('faq-questions'); - Route::post('/ajax/delete-faq-question', [FaqQuestionsController::class, 'destroy']); - Route::post('/ajax/save-faq-question', [FaqQuestionsController::class, 'saveDatas']); - // Codes uniques. - Route::get('/codes', [CodesController::class, 'index'])->name('codes'); - Route::post('/codes', [CodesController::class, 'generate'])->name('generate-codes'); - Route::get('/codes/search', [CodesController::class, 'search'])->name('codes.search'); - Route::post('/codes/export', [CodesController::class, 'export'])->name('export-codes'); - // Liste des gagnants. - Route::get('/winners-list', [WinnersListController::class, 'index'])->name('winners-list'); - Route::get('/winners-list/arcadia/{id}', [WinnersListController::class, 'courrierArcadia']) - ->name('winners-arcadia'); - Route::post('/winners-list/arcadia/{id}/send', [WinnersListController::class, 'createCourrierArcadia']) - ->name('courrier-arcadia'); - // Produits porteurs. - Route::resource('products', ProductsController::class) - ->withoutMiddleware('is-super-admin'); - Route::resource('ranges', RangeController::class) - ->withoutMiddleware('is-super-admin'); +Route::prefix('bo')->name('bo.')->group(function () { + + // * Authenticable routes + Route::namespace('\App\Http\Controllers\Bo')->group(function () { + Auth::routes( + [ + 'confirm' => false, + 'login' => true, + 'logout' => true, + 'register' => false, + 'reset' => false, + 'verify' => false, + ] + ); + }); + + // * Others routes + Route::post('theme/set', [Controller::class, 'setTheme'])->name('theme.set'); + + Route::middleware('auth:backend')->group(function () { + Route::get('/', [DashboardController::class, 'index'])->name('dashboard'); + + // * USERS. + Route::resource('users', UserController::class)->except('show'); + Route::patch('users/{user}/change-published', [ + UserController::class, 'changePublished' + ])->name('users.change-published'); + Route::get('users/{user}/duplicate', [ + UserController::class, 'duplicate' + ])->name('users.duplicate'); + + // * StaticPages + Route::resource('pages', StaticPageController::class) + ->names([ + 'index' => 'static_pages.index', + 'edit' => 'static_pages.edit', + 'update' => 'static_pages.update', + ])->parameters(['pages' => 'static_page']) + ->withoutMiddleware('htmlsanitize') + ->middleware('htmlsanitize:content') + ->only(['index', 'edit', 'update']); + + Route::middleware('can:isConceptor')->group(function () { + // * ACTIVITY LOGS. + Route::resource('activity_logs', ActivityLogController::class)->only(['index', 'show']); + }); + + // * RANGES + Route::resource('ranges', RangeController::class); + + // * PRODUCTS + Route::resource('products', ProductController::class); + + // * FAQ - THEMES + Route::resource('faq-themes', FaqThemeController::class)->except('show'); + + // * FAQ - QUESTIONS + Route::resource('faq-questions', FaqQuestionController::class)->except('show') + ->withoutMiddleware('htmlsanitize') + ->middleware('htmlsanitize:answer'); + + // * PRIZES + Route::resource('prizes', PrizeController::class) + ->withoutMiddleware('htmlsanitize') + ->middleware(['htmlsanitize:arg_content']); + + // * SETTINGS. + Route::resource('settings', SettingsController::class) + ->parameters(['settings' => 'settings']) + ->only(['edit', 'update']); + + // * INSTANT WIN + Route::prefix('instant-win')->name('instant-win.')->group(function () { + Route::get('/', [InstantWinController::class, 'index'])->name('index'); + Route::get('generate', [InstantWinController::class, 'generate'])->name('generate'); + }); + + // * PARTICIPATIONS + Route::prefix('participations')->name('participations.')->group(function () { + // * WINNERS LIST + Route::get('winners-list', [ParticipationController::class, 'viewWinnerList'])->name('winners-list'); + Route::get('{participation}/set-comment', [ParticipationController::class, 'setComment']) + ->name('set-comment'); + Route::patch('{participation}/set-comment', [ParticipationController::class, 'setCommentSubmit']) + ->name('set-comment-submit'); + Route::patch('{participation}/change-prize-sent', [ParticipationController::class, 'changePrizeSent']) + ->name('change-prize-sent'); + }); + + // * UNIQUES CODES. + Route::prefix('codes')->name('codes.')->group(function () { + Route::get('/', [CodeController::class, 'index'])->name('index'); + Route::post('/', [CodeController::class, 'generate'])->name('generate'); + Route::get('search', [CodeController::class, 'search'])->name('search'); + Route::post('export', [CodeController::class, 'export'])->name('export'); + }); + + // * BANNED IPS + Route::resource('banned_ips', BannedIpController::class)->except('show'); + }); }); diff --git a/routes/web-fo.php b/routes/web-fo.php new file mode 100644 index 0000000..8720c47 --- /dev/null +++ b/routes/web-fo.php @@ -0,0 +1,66 @@ +name('fo.')->group(function () { + + // * Dev route only + if (app()->environment() === 'local') { + Route::view('/bs-demo', 'back::pages.bs-demo')->name('bs-demo'); + } + + // * Pages début et fin de jeu + Route::get('teaser', [HomeController::class, 'teaser'])->name('teaser'); + Route::get('fin-du-jeu', [HomeController::class, 'endGame'])->name('end'); + + // * Routes nécessitant que le jeu soit activé. + Route::middleware('check-game-status')->group(function () { + // * FRONTEND AUTH + Route::namespace('\App\Http\Controllers\Fo')->group(function () { + Auth::routes([ + 'confirm' => true, + 'login' => true, + 'logout' => true, + 'register' => true, + 'reset' => true, + 'verify' => true, + ]); + }); + + // * Routes nécessitant d'être connecté. + Route::middleware(['auth:frontend', 'verified:fo.verification.notice'])->group(function () { + // * Participation routes + Route::get('saisir-code', [ParticipateController::class, 'participate'])->name('participate'); + Route::post('saisir-code', [ParticipateController::class, 'participateSubmit'])->name('participate-submit'); + + // * Winning Proof routes + Route::get('preuve-de-gains/{participation}', [WinningProofController::class, 'displayForm']) + ->name('winning-proof'); + Route::post('preuve-de-gains/{participation}', [WinningProofController::class, 'displayFormSubmit']) + ->name('winning-proof-submit'); + + // * View all winning participations + Route::get('mes-gains', [CustomerController::class, 'viewWinningParticipations']) + ->name('view-winning-participations'); + + // * Fill Missing Customer Info in order to use MesBr + Route::get('profil/verify', [CustomerController::class, 'profilVerify'])->name('profil.verify'); + Route::put('profil/verify', [CustomerController::class, 'profilVerifySubmit']) + ->name('profil.verify-submit'); + }); + + + Route::get('/', [HomeController::class, 'home'])->name('homepage'); + Route::get('produits-porteurs', [HomeController::class, 'showProducts'])->name('produits-porteurs'); + Route::get('faq', [HomeController::class, 'showFaq'])->name('faq'); + Route::get('reglement', [StaticPageController::class, 'reglement'])->name('reglement'); + Route::get('charte', [StaticPageController::class, 'charte'])->name('charte'); + Route::get('mentions-legales', [StaticPageController::class, 'legals'])->name('legals'); + }); +}); diff --git a/routes/web-re7.php b/routes/web-re7.php index 9e70d24..8820bb2 100644 --- a/routes/web-re7.php +++ b/routes/web-re7.php @@ -1,18 +1,19 @@ middleware(['re7']) - ->group(function () { - Route::get('/', [re7Controller::class, 'index']); - Route::get('/teaser', [re7Controller::class, 'teaser']); - Route::get('/mail-gain', [re7Controller::class, 'prizeMail']); - Route::get('/mail-reduction', [re7Controller::class, 'reductionMail']); - Route::get('/br', [re7Controller::class, 'br']); - // phpcs:ignore - // TODO : Rendre dynamique la partie gain par rapport au BO. - Route::get('/gain1', [re7Controller::class, 'gain1']); - Route::get('/gain2', [re7Controller::class, 'gain2']); - }); +Route::prefix('re7')->name('re7.')->middleware(['auth:backend'])->group(function () { + Route::get('home', [Re7Controller::class, 'home'])->name('home'); + Route::get('teaser', [Re7Controller::class, 'teaser'])->name('teaser'); + Route::get('end-game', [Re7Controller::class, 'endGame'])->name('end-game'); + Route::get('discount', [Re7Controller::class, 'discount'])->name('discount'); + Route::get('gain/{prize}', [Re7Controller::class, 'prize'])->name('prize'); + Route::get('perdu', [Re7Controller::class, 'loose'])->name('loose'); + Route::get('mail-prize/{prize}', [Re7Controller::class, 'mailPrize'])->name('mail-prize'); + Route::get('mail-discount', [Re7Controller::class, 'mailDiscount'])->name('mail-discount'); + Route::get('mail-proof', [Re7Controller::class, 'mailProofReceived'])->name('mail-proof'); + Route::get('mail-sent-prize', [Re7Controller::class, 'mailPrizeSent'])->name('mail-sent-prize'); + Route::get('mail/{type}/{prize?}', [Re7Controller::class, 'mailPrint'])->name('mail-print') + ->where('type', 'discount|prize|proof|prize-sent'); +}); diff --git a/routes/web.php b/routes/web.php deleted file mode 100644 index 3357169..0000000 --- a/routes/web.php +++ /dev/null @@ -1,53 +0,0 @@ - ['game-date']], function () { - // Front. - Route::get('/', [HomeController::class, 'home'])->name('home'); - Route::get('/reglement', [ViewContentController::class, 'reglement'])->name('reglement'); - Route::get('/charte', [ViewContentController::class, 'charte'])->name('charte'); - Route::get('/mentions-legales', [ViewContentController::class, 'legals'])->name('legals'); - Route::get('/faq', [FAQController::class, 'index'])->name('faq'); - Route::get('/comment-jouer', [HowToPlayController::class, 'index'])->name('comment-jouer'); - Route::get('/les-gains', [GainsController::class, 'index'])->name('les-gains'); - Route::get('/produits-porteurs', [ProduitsController::class, 'index'])->name('produits-porteurs'); - Route::get('/confirmation-email/{verifyToken}', [LoginController::class, 'confirmEmail'])->name('confirm-email'); - Route::get('/mot-de-passe-oublie', [LoginController::class, 'forgotPassword'])->name('forgot-password'); - Route::get('/mot-de-passe-oublie/reset/{token}', [LoginController::class, 'forgotPasswordReset']) - ->name('forgot-password-reset'); - Route::put('/mail-mot-de-passe', [LoginController::class, 'mailPassword'])->name('mail-password'); - Route::put('/change-mot-de-passe', [LoginController::class, 'changePassword'])->name('change-password'); - - // Front nécessitant d'être connecté. - Route::get('/saisir-code', [EnterCodeController::class, 'index'])->name('saisir-code')->middleware('auth'); - Route::post('/saisir-code', [EnterCodeController::class, 'participate']) - ->name('participate')->middleware('auth'); - Route::put('/saisir-code', [EnterCodeController::class, 'formWinningProof']) - ->name('winning-proof')->middleware('auth'); - Route::put('/rejouer', [WinningProofController::class, 'sendWinningProof']) - ->name('send-winning-proof')->middleware('auth'); - - // Authentification. - Route::post('/logout', [LoginController::class, 'logout'])->name('logout')->middleware('auth'); - Route::get('/inscription', [RegisterController::class, 'index'])->name('inscription'); - Route::post('/inscription', [RegisterController::class, 'register'])->name('register'); -}); - -// Login sans middleware pour la connexion admin, teaser et end pour ne pas redirigé en boucle. -Route::get('/login', [LoginController::class, 'index'])->name('login'); -Route::post('/login', [LoginController::class, 'authenticate'])->name('authenticate'); -Route::get('/teaser', [TeaserController::class, 'index'])->name('teaser'); -Route::get('/fin-du-jeu', [EndPageController::class, 'index'])->name('end'); diff --git a/server.php b/server.php deleted file mode 100644 index 5fb6379..0000000 --- a/server.php +++ /dev/null @@ -1,21 +0,0 @@ - - */ - -$uri = urldecode( - parse_url($_SERVER['REQUEST_URI'], PHP_URL_PATH) -); - -// This file allows us to emulate Apache's "mod_rewrite" functionality from the -// built-in PHP web server. This provides a convenient way to test a Laravel -// application without having installed a "real" web server software here. -if ($uri !== '/' && file_exists(__DIR__.'/public'.$uri)) { - return false; -} - -require_once __DIR__.'/public/index.php'; diff --git a/tests/CreatesApplication.php b/tests/CreatesApplication.php new file mode 100644 index 0000000..e3ad27e --- /dev/null +++ b/tests/CreatesApplication.php @@ -0,0 +1,21 @@ +make(Kernel::class)->bootstrap(); + + return $app; + } +} diff --git a/tests/Feature/ExampleTest.php b/tests/Feature/ExampleTest.php new file mode 100644 index 0000000..8364a84 --- /dev/null +++ b/tests/Feature/ExampleTest.php @@ -0,0 +1,19 @@ +get('/'); + + $response->assertStatus(200); + } +} diff --git a/tests/TestCase.php b/tests/TestCase.php new file mode 100644 index 0000000..2932d4a --- /dev/null +++ b/tests/TestCase.php @@ -0,0 +1,10 @@ +assertTrue(true); + } +} diff --git a/tsconfig.json b/tsconfig.json new file mode 100644 index 0000000..e87eb12 --- /dev/null +++ b/tsconfig.json @@ -0,0 +1,24 @@ +{ + "extends": "@vue/tsconfig/tsconfig.dom.json", + "sourceMap": true, + "compilerOptions": { + "lib": ["ESNEXT", "DOM", "DOM.Iterable"], + "baseUrl": ".", + "paths": { + "~/*": ["node_modules/*", "node_modules/@types/*"], + "@/*": ["resources/assets/*"] + }, + "moduleResolution": "node", + "typeRoots": [ + "resources/ts/@types", + "resources/theme/mounted/ts/@types", + "node_modules/@types" + ] + }, + "include": [ + "resources/js/**/*.js", + "resources/ts/**/*.ts", + "resources/ts/**/*.vue" + ], + "exclude": ["node_modules"] +} diff --git a/vite.config.ts b/vite.config.ts new file mode 100644 index 0000000..86780e2 --- /dev/null +++ b/vite.config.ts @@ -0,0 +1,192 @@ +import basicSsl from "@vitejs/plugin-basic-ssl"; +import vue from "@vitejs/plugin-vue"; +import laravel from "laravel-vite-plugin"; +import path from "path"; +import postcssDiscard from "postcss-discard-comments"; +import copy from "rollup-plugin-copy"; +import { defineConfig, loadEnv } from "vite"; +import babel from "vite-plugin-babel"; +import checker from "vite-plugin-checker"; +import eslint from "vite-plugin-eslint"; +import stylelint from "vite-plugin-stylelint"; + +const env = loadEnv("r", process.cwd(), ""); + +export default defineConfig({ + build: { + rollupOptions: { + output: { + entryFileNames: `assets/${ + process.env.NODE_ENV === "local" ? "[name]-" : "" + }[hash].js`, + chunkFileNames: `assets/${ + process.env.NODE_ENV === "local" ? "[name]-" : "" + }[hash].js`, + assetFileNames: (chunk) => { + if ( + String(chunk.name).endsWith("mail-theme.scss") || + chunk.name === "mail-theme.css" + ) { + return "vendor/mail/html/themes/default.[ext]"; + } + return `assets/${process.env.NODE_ENV === "local" ? "[name]-" : "" + }[hash].[ext]`; + }, + }, + }, + emptyOutDir: true, + sourcemap: process.env.NODE_ENV === "local" ? "inline" : false, + }, + css: { + preprocessorOptions: { + scss: { + quietDeps: true + } + }, + devSourcemap: process.env.NODE_ENV === "local" ? true : false, + postcss: { + map: { + inline: true, + }, + plugins: [ + postcssDiscard({ + removeAll: true, + }), + ], + }, + }, + plugins: [ + basicSsl(), + checker({ + enableBuild: true, + vueTsc: { + root: ".", + tsconfigPath: "tsconfig.json", + }, + typescript: { + root: ".", + tsconfigPath: "tsconfig.json", + }, + eslint: { + lintCommand: + "eslint --quiet -c .eslintrc.json \"./resources/ts/*\" \"./resources/theme/mounted/ts/*\"", + }, + stylelint: { + lintCommand: + "stylelint --quiet -c .stylelintrc.json --fix ./resources/sass/**/*.scss ./resources/theme/mounted/sass/**/*.scss", + }, + }), + laravel({ + input: [ + "resources/sass/bo.scss", + "resources/ts/bo.ts", + "resources/theme/mounted/sass/mail-theme.scss", + "resources/theme/mounted/sass/fo.scss", + "resources/theme/mounted/ts/fo.ts", + ], + refresh: true, + }), + copy({ + targets: [ + { + src: [ + // * Engine copy (Default favicon) + path.normalize("resources/favicon/android-chrome-192x192.png"), + path.normalize("resources/favicon/android-chrome-512x512.png"), + path.normalize("resources/favicon/apple-touch-icon.png"), + path.normalize("resources/favicon/browserconfig.xml"), + path.normalize("resources/favicon/browserconfig.xml"), + path.normalize("resources/favicon/favicon-16x16.png"), + path.normalize("resources/favicon/favicon-32x32.png"), + path.normalize("resources/favicon/favicon.ico"), + path.normalize("resources/favicon/mstile-150x150.png"), + path.normalize("resources/favicon/safari-pinned-tab.svg"), + path.normalize("resources/favicon/site.webmanifest"), + // * Theme Copy (override if present) favicon + path.normalize("resources/theme/mounted/favicon/android-chrome-192x192.png"), + path.normalize("resources/theme/mounted/favicon/android-chrome-512x512.png"), + path.normalize("resources/theme/mounted/favicon/apple-touch-icon.png"), + path.normalize("resources/theme/mounted/favicon/browserconfig.xml"), + path.normalize("resources/theme/mounted/favicon/browserconfig.xml"), + path.normalize("resources/theme/mounted/favicon/favicon-16x16.png"), + path.normalize("resources/theme/mounted/favicon/favicon-32x32.png"), + path.normalize("resources/theme/mounted/favicon/favicon.ico"), + path.normalize("resources/theme/mounted/favicon/mstile-150x150.png"), + path.normalize("resources/theme/mounted/favicon/safari-pinned-tab.svg"), + path.normalize("resources/theme/mounted/favicon/site.webmanifest"), + ], + dest: path.normalize("public") + }, + ], + copyOnce: true, + verbose: true + }), + stylelint({ + dev: false, + build: true, + cache: false, + chokidar: true, + include: [ + "**/resources/sass/**/*.scss", + "**/resources/sass/**/*.css" + ], + exclude: ["node_modules", "vendor"], + lintOnStart: false, + emitError: true, + emitWarning: true, + emitErrorAsWarning: false, + emitWarningAsError: true, + }), + eslint({ + cache: false, + extensions: ["js", "ts"], + include: "**/*.ts", + exclude: ["node_modules", "vendor"], + lintOnStart: false, + emitWarning: true, + emitError: true, + failOnWarning: false, + failOnError: false, + }), + babel({ + babelConfig: { + targets: "last 3 version, not dead, >0.3%" + } + }), + vue({ + isProduction: process.env.NODE_ENV !== "local" ? true : false, + exclude: ["node_modules", "vendor"], + }) + ], + server: { + https: true, + host: env["APP_URL"] ? new URL(env["APP_URL"]).hostname : "", + port: 4443, + watch: { + usePolling: true, + }, + }, + resolve: { + // * This is important for theme + preserveSymlinks: true, + extensions: ["*", ".js", ".ts", ".vue"], + alias: [ + { + find: "vue", + replacement: "vue/dist/vue.runtime.esm-bundler.js", + }, + { + find: "@", + replacement: "/resources/assets", + }, + { + find: "@Theme", + replacement: "/resources/theme/mounted/assets", + }, + { + find: "~", + replacement: path.resolve(__dirname, "./node_modules"), + }, + ], + }, +});