diff --git a/Makefile b/Makefile index 4bf82ca17..bc9a661a6 100755 --- a/Makefile +++ b/Makefile @@ -103,3 +103,8 @@ run-ps-unit-tests: create-env: echo "SENTRY_ENV='$(env)'" > .env + +rebuild-js: + cd views/js && npm i --legacy-peer-deps + cd views/js && npm install html-webpack-plugin@4.5.2 --legacy-peer-deps + cd views/js && npm run build \ No newline at end of file diff --git a/controllers/admin/AdminMollieAjaxController.php b/controllers/admin/AdminMollieAjaxController.php index a6442b15e..07c1a5e17 100644 --- a/controllers/admin/AdminMollieAjaxController.php +++ b/controllers/admin/AdminMollieAjaxController.php @@ -16,9 +16,16 @@ use Mollie\Provider\CreditCardLogoProvider; use Mollie\Provider\TaxCalculatorProvider; use Mollie\Repository\PaymentMethodRepository; +use Mollie\Repository\PaymentMethodRepositoryInterface; +use Mollie\Service\ApiService; +use Mollie\Service\CancelService; +use Mollie\Service\CaptureService; use Mollie\Service\MolliePaymentMailService; +use Mollie\Service\RefundService; +use Mollie\Service\ShipService; use Mollie\Utility\NumberUtility; use Mollie\Utility\TimeUtility; +use Mollie\Utility\TransactionUtility; if (!defined('_PS_VERSION_')) { exit; @@ -31,6 +38,10 @@ class AdminMollieAjaxController extends ModuleAdminController public function postProcess() { + if (!Tools::isSubmit('ajax')) { + return; + } + $action = Tools::getValue('action'); $this->context->smarty->assign('bootstrap', true); @@ -54,6 +65,25 @@ public function postProcess() case 'updateFixedPaymentFeePrice': $this->updateFixedPaymentFeePrice(); break; + case 'refundAll': + case 'refund': + $this->processRefund(); + break; + case 'shipAll': + case 'ship': + $this->processShip(); + break; + case 'captureAll': + case 'capture': + $this->processCapture(); + break; + case 'cancelAll': + case 'cancel': + $this->processCancel(); + break; + case 'retrieve': + $this->retrieveOrderInfo(); + break; default: break; } @@ -213,4 +243,202 @@ private function updateFixedPaymentFeePrice(): void ]) ); } + + private function processRefund(): void + { + try { + $transactionId = Tools::getValue('transactionId'); + $refundAmount = (float) Tools::getValue('refundAmount') ?: null; + $orderLineId = Tools::getValue('orderline') ?: null; + + /** @var RefundService $refundService */ + $refundService = $this->module->getService(RefundService::class); + + $status = $refundService->handleRefund($transactionId, $refundAmount, $orderLineId); + + $this->ajaxRender(json_encode($status)); + } catch (\Throwable $e) { + $this->ajaxRender( + json_encode([ + 'success' => false, + 'message' => $this->module->l('An error occurred while processing the request.'), + 'error' => $e->getMessage(), + ]) + ); + } + } + + private function processShip(): void + { + $orderId = (int) Tools::getValue('orderId'); + $orderLines = Tools::getValue('orderLines') ?: []; + $tracking = Tools::getValue('tracking'); + $orderlineId = Tools::getValue('orderline'); + + try { + $order = new Order($orderId); + + /** @var PaymentMethodRepositoryInterface $paymentMethodRepo */ + $paymentMethodRepo = $this->module->getService(PaymentMethodRepositoryInterface::class); + $transactionId = $paymentMethodRepo->getPaymentBy('order_id', (string) $orderId)['transaction_id']; + + /** @var ShipService $shipService */ + $shipService = $this->module->getService(ShipService::class); + $status = $shipService->handleShip($transactionId, $orderlineId, $tracking); + + $this->ajaxRender(json_encode($status)); + } catch (\Throwable $e) { + $this->ajaxRender( + json_encode([ + 'success' => false, + 'message' => $this->module->l('An error occurred while processing the request.'), + 'error' => $e->getMessage(), + ]) + ); + } + } + + private function processCapture(): void + { + $orderId = (int) Tools::getValue('orderId'); + $captureAmount = Tools::getValue('captureAmount') ?: null; + + try { + $order = new Order($orderId); + + /** @var PaymentMethodRepositoryInterface $paymentMethodRepo */ + $paymentMethodRepo = $this->module->getService(PaymentMethodRepositoryInterface::class); + $transactionId = $paymentMethodRepo->getPaymentBy('order_id', (string) $orderId)['transaction_id']; + + /** @var CaptureService $captureService */ + $captureService = $this->module->getService(CaptureService::class); + + // Use provided amount for individual product capture, or full order amount for capture all + $amount = $captureAmount ? (float) $captureAmount : $order->total_paid; + $status = $captureService->handleCapture($transactionId, $amount); + + $this->ajaxRender(json_encode($status)); + } catch (\Throwable $e) { + $this->ajaxRender( + json_encode([ + 'success' => false, + 'message' => $this->module->l('An error occurred while processing the request.'), + 'error' => $e->getMessage(), + ]) + ); + } + } + + private function processCancel(): void + { + $orderId = (int) Tools::getValue('orderId'); + $orderlineId = Tools::getValue('orderline') ?: null; + + try { + $order = new Order($orderId); + + /** @var PaymentMethodRepositoryInterface $paymentMethodRepo */ + $paymentMethodRepo = $this->module->getService(PaymentMethodRepositoryInterface::class); + $transactionId = $paymentMethodRepo->getPaymentBy('order_id', (string) $orderId)['transaction_id']; + + /** @var CancelService $cancelService */ + $cancelService = $this->module->getService(CancelService::class); + $status = $cancelService->handleCancel($transactionId, $orderlineId); + + $this->ajaxRender(json_encode($status)); + } catch (\Throwable $e) { + $this->ajaxRender( + json_encode([ + 'success' => false, + 'message' => $this->module->l('An error occurred while processing the request.'), + 'error' => $e->getMessage(), + ]) + ); + } + } + + private function retrieveOrderInfo(): void + { + $orderId = (int) Tools::getValue('orderId'); + + try { + $order = new Order($orderId); + + /** @var PaymentMethodRepositoryInterface $paymentMethodRepo */ + $paymentMethodRepo = $this->module->getService(PaymentMethodRepositoryInterface::class); + $transaction = $paymentMethodRepo->getPaymentBy('order_id', (string) $orderId); + + if (!$transaction) { + $this->ajaxRender( + json_encode([ + 'success' => false, + 'message' => $this->module->l('No Mollie transaction found for this order.'), + ]) + ); + + return; + } + + $transactionId = $transaction['transaction_id']; + $this->module->updateApiKey((int) $order->id_shop); + + if (!$this->module->getApiClient()) { + $this->ajaxRender( + json_encode([ + 'success' => false, + 'message' => $this->module->l('Unable to connect to Mollie API.'), + ]) + ); + + return; + } + + /** @var ApiService $apiService */ + $apiService = $this->module->getService(ApiService::class); + + $mollieApiType = TransactionUtility::isOrderTransaction($transactionId) ? 'orders' : 'payments'; + + if ($mollieApiType === 'orders') { + $orderInfo = $this->module->getApiClient()->orders->get($transactionId); + $isShipping = $orderInfo->status === 'completed'; + $isCaptured = $orderInfo->isPaid(); + $isRefunded = $orderInfo->amountRefunded->value > 0; + $isCanceled = $orderInfo->status === 'canceled'; + + $response = [ + 'success' => true, + 'isShipping' => $isShipping, + 'isCaptured' => $isCaptured, + 'isRefunded' => $isRefunded, + 'isCanceled' => $isCanceled, + 'orderStatus' => $orderInfo->status ?? null, + ]; + } else { + $paymentInfo = $this->module->getApiClient()->payments->get($transactionId); + $isShipping = false; + $isCaptured = false; + + $isCaptured = $paymentInfo->isPaid(); + $isRefunded = $paymentInfo->amountRefunded->value > 0; + + $response = [ + 'success' => true, + 'isShipping' => $isShipping, + 'isCaptured' => $isCaptured, + 'isRefunded' => $isRefunded, + 'orderStatus' => $paymentInfo->status ?? null, + ]; + } + + $this->ajaxRender(json_encode($response)); + } catch (Exception $e) { + $this->ajaxRender( + json_encode([ + 'success' => false, + 'message' => $this->module->l('An error occurred while retrieving order information.'), + 'error' => $e->getMessage(), + ]) + ); + } + } } diff --git a/controllers/admin/AdminMollieOrderController.php b/controllers/admin/AdminMollieOrderController.php new file mode 100644 index 000000000..7b7268c20 --- /dev/null +++ b/controllers/admin/AdminMollieOrderController.php @@ -0,0 +1,105 @@ +bootstrap = true; + parent::__construct(); + } + + public function postProcess(): bool + { + if (!$this->context->employee->can('edit', 'AdminOrders')) { + return false; + } + + /** @var ToolsAdapter $tools */ + $tools = $this->module->getService(ToolsAdapter::class); + /** @var LoggerInterface $logger */ + $logger = $this->module->getService(LoggerInterface::class); + $cookie = \Context::getContext()->cookie; + + $orderId = $tools->getValueAsInt('orderId'); + $errors = json_decode($cookie->__get('mollie_order_management_errors'), false) ?: []; + + if ($tools->isSubmit('capture-order')) { + try { + $amount = (float) $tools->getValue('capture_amount'); + /** @var CaptureService $captureService */ + $captureService = $this->module->getService(CaptureService::class); + $captureService->handleCapture($orderId, $amount); + } catch (\Throwable $exception) { + $errors[$orderId] = 'Capture failed. See logs.'; + $cookie->__set('mollie_order_management_errors', json_encode($errors)); + $logger->error('Failed to capture order.', [ + 'order_id' => $orderId, + 'amount' => $amount ?? null, + 'exception' => $exception->getMessage(), + ]); + } + } + + if ($tools->isSubmit('refund-order')) { + try { + $amount = (float) $tools->getValue('refund_amount'); + /** @var RefundService $refundService */ + $refundService = $this->module->getService(RefundService::class); + $refundService->handleRefund($orderId, $amount); + } catch (\Throwable $exception) { + $errors[$orderId] = 'Refund failed. See logs.'; + $cookie->__set('mollie_order_management_errors', json_encode($errors)); + $logger->error('Failed to refund order.', [ + 'order_id' => $orderId, + 'amount' => $amount ?? null, + 'exception' => $exception->getMessage(), + ]); + } + } + + if ($tools->isSubmit('ship-order')) { + try { + /** @var ShipService $shipService */ + $shipService = $this->module->getService(ShipService::class); + $shipService->handleShip($orderId); + } catch (\Throwable $exception) { + $errors[$orderId] = 'Shipping failed. See logs.'; + $cookie->__set('mollie_order_management_errors', json_encode($errors)); + $logger->error('Failed to ship order.', [ + 'order_id' => $orderId, + 'exception' => $exception->getMessage(), + ]); + } + } + + $this->redirectToOrderController('AdminOrders', $orderId); + + return true; + } + + private function redirectToOrderController(string $controller, int $orderId): void + { + $url = \Context::getContext()->link->getAdminLink($controller, true, [], ['id_order' => $orderId, 'vieworder' => 1]); + \Tools::redirectAdmin($url); + } +} diff --git a/mollie.php b/mollie.php index cf98cb0f9..2014ea2da 100755 --- a/mollie.php +++ b/mollie.php @@ -27,7 +27,12 @@ use Mollie\Provider\ProfileIdProviderInterface; use Mollie\Repository\MolOrderPaymentFeeRepositoryInterface; use Mollie\Repository\PaymentMethodRepositoryInterface; +use Mollie\Service\CancelService; +use Mollie\Service\CaptureService; use Mollie\Service\ExceptionService; +use Mollie\Service\MollieOrderService; +use Mollie\Service\RefundService; +use Mollie\Service\ShipService; use Mollie\ServiceProvider\LeagueServiceContainerProvider; use Mollie\Subscription\Config\Config as SubscriptionConfig; use Mollie\Subscription\Handler\CustomerAddressUpdateHandler; @@ -41,6 +46,7 @@ use Mollie\Subscription\Repository\RecurringOrderRepositoryInterface; use Mollie\Subscription\Validator\CanProductBeAddedToCartValidator; use Mollie\Utility\ExceptionUtility; +use Mollie\Utility\TransactionUtility; use Mollie\Utility\VersionUtility; use Mollie\Verification\IsPaymentInformationAvailable; use PrestaShop\PrestaShop\Core\Localization\Locale\Repository; @@ -462,6 +468,54 @@ public function hookActionAdminControllerSetMedia() } } + if ('AdminOrders' === $currentController && Tools::getValue('id_order')) { + $orderId = Tools::getValue('id_order'); + $order = new Order($orderId); + + if (Validate::isLoadedObject($order) && $order->module === $this->name) { + /** @var PaymentMethodRepositoryInterface $paymentMethodRepo */ + $paymentMethodRepo = $this->getService(PaymentMethodRepositoryInterface::class); + + $cartId = Cart::getCartIdByOrderId((int) $orderId); + $transaction = $paymentMethodRepo->getPaymentBy('cart_id', (string) $cartId); + + if (!empty($transaction)) { + $mollieTransactionId = isset($transaction['transaction_id']) ? $transaction['transaction_id'] : null; + $mollieApiType = null; + if ($mollieTransactionId) { + $mollieApiType = TransactionUtility::isOrderTransaction($mollieTransactionId) ? 'orders' : 'payments'; + } + + Media::addJsDef([ + 'ajax_url' => $this->context->link->getAdminLink('AdminMollieAjax'), + 'transaction_id' => $mollieTransactionId, + 'resource' => $mollieApiType, + 'order_id' => $orderId, + 'orderLines' => $order->getProducts(), + 'trans' => [ + 'processing' => $this->l('Processing...'), + 'configurationError' => $this->l('Configuration error'), + 'refundFullOrderConfirm' => $this->l('Are you sure you want to refund the full order amount? This action cannot be undone.'), + 'refundOrderConfirm' => $this->l('Are you sure you want to refund this order? This action cannot be undone.'), + 'captureFullOrderConfirm' => $this->l('Are you sure you want to capture the full order amount?'), + 'capturePaymentConfirm' => $this->l('Are you sure you want to capture this payment?'), + 'cancelFullOrderConfirm' => $this->l('Are you sure you want to cancel the entire order? This action cannot be undone.'), + 'cancelOrderLineConfirm' => $this->l('Are you sure you want to cancel this order line? This action cannot be undone.'), + 'validRefundAmountRequired' => $this->l('Please enter a valid refund amount'), + 'validCaptureAmountRequired' => $this->l('Please enter a valid capture amount'), + 'ajaxUrlNotFound' => $this->l('AJAX URL not found'), + 'actionCompletedSuccessfully' => $this->l('Action completed successfully'), + 'errorOccurred' => $this->l('An error occurred'), + 'networkErrorOccurred' => $this->l('Network error occurred'), + ] + ]); + + $this->context->controller->addJS($this->getPathUri() . 'views/js/admin/order_info.js'); + $this->context->controller->addCSS($this->getPathUri() . 'views/css/admin/order_info.css'); + } + } + } + // We are on module configuration page if ('AdminMollieSettings' === $currentController) { Media::addJsDef([ @@ -512,38 +566,81 @@ public function hookDisplayAdminOrder($params) /** @var PaymentMethodRepositoryInterface $paymentMethodRepo */ $paymentMethodRepo = $this->getService(PaymentMethodRepositoryInterface::class); - /** @var \Mollie\Service\ShipmentServiceInterface $shipmentService */ - $shipmentService = $this->getService(\Mollie\Service\ShipmentService::class); + /** @var ShipService $shipService */ + $shipService = $this->getService(ShipService::class); - $cartId = Cart::getCartIdByOrderId((int) $params['id_order']); - $transaction = $paymentMethodRepo->getPaymentBy('cart_id', (string) $cartId); - if (empty($transaction)) { - return false; - } - $currencies = []; - foreach (Currency::getCurrencies() as $currency) { - $currencies[Tools::strtoupper($currency['iso_code'])] = [ - 'name' => $currency['name'], - 'iso_code' => Tools::strtoupper($currency['iso_code']), - 'sign' => $currency['sign'], - 'blank' => (bool) isset($currency['blank']) ? $currency['blank'] : true, - 'format' => (int) $currency['format'], - 'decimals' => (bool) isset($currency['decimals']) ? $currency['decimals'] : true, - ]; - } + /** @var RefundService $refundService */ + $refundService = $this->getService(RefundService::class); - $order = new Order($params['id_order']); - $this->context->smarty->assign([ - 'ajaxEndpoint' => $this->context->link->getAdminLink('AdminModules', true) . '&configure=mollie&ajax=1&action=MollieOrderInfo', - 'transactionId' => $transaction['transaction_id'], - 'currencies' => $currencies, - 'tracking' => $shipmentService->getShipmentInformation($order->reference), - 'publicPath' => __PS_BASE_URI__ . 'modules/' . basename(__FILE__, '.php') . '/views/js/dist/', - 'webPackChunks' => \Mollie\Utility\UrlPathUtility::getWebpackChunks('app'), - 'errorDisplay' => Configuration::get(Mollie\Config\Config::MOLLIE_DISPLAY_ERRORS), - ]); + /** @var CaptureService $captureService */ + $captureService = $this->getService(CaptureService::class); + + /** @var CancelService $cancelService */ + $cancelService = $this->getService(CancelService::class); + + /** @var MollieOrderService $mollieOrderService */ + $mollieOrderService = $this->getService(MollieOrderService::class); + + /** @var LoggerInterface $logger */ + $logger = $this->getService(LoggerInterface::class); + + try { + $transaction = $paymentMethodRepo->getPaymentBy('cart_id', (string) Cart::getCartIdByOrderId((int) $params['id_order'])); + + if (empty($transaction)) { + $logger->error(sprintf('%s - Transaction not found. Cannot render order info.', self::FILE_NAME), [ + 'id_order' => $params['id_order'], + ]); + + return false; + } + + $mollieTransactionId = isset($transaction['transaction_id']) ? $transaction['transaction_id'] : null; + + $mollieApiType = null; + + if ($mollieTransactionId) { + $mollieApiType = TransactionUtility::isOrderTransaction($mollieTransactionId) ? 'orders' : 'payments'; + } + + $order = new Order($params['id_order']); - return $this->display($this->getLocalPath(), 'views/templates/hook/order_info.tpl'); + $products = TransactionUtility::isOrderTransaction($mollieTransactionId) + ? $this->getApiClient()->orders->get($mollieTransactionId, ['embed' => 'payments'])->lines + : $this->getApiClient()->payments->get($mollieTransactionId, ['embed' => 'payments'])->lines; // @phpstan-ignore-line + + $mollieLogoPath = $this->getMollieLogoPath(); + + $refundableAmount = $mollieOrderService->getRefundableAmount($mollieTransactionId); + $capturableAmount = $captureService->getCapturableAmount($mollieTransactionId); + + $isRefunded = $refundService->isRefunded($mollieTransactionId, (float) $order->total_paid); + $isCaptured = $captureService->isCaptured($mollieTransactionId); + $isShipped = $shipService->isShipped($mollieTransactionId); + $isCanceled = $cancelService->isCanceled($mollieTransactionId); + + $this->context->smarty->assign([ + 'order_reference' => $order->reference, + 'refundable_amount' => $refundableAmount, + 'capturable_amount' => $capturableAmount, + 'products' => $products, + 'mollie_logo_path' => $mollieLogoPath, + 'mollie_transaction_id' => $mollieTransactionId, + 'mollie_api_type' => $mollieApiType, + 'isRefunded' => $isRefunded, + 'isCaptured' => $isCaptured, + 'isShipped' => $isShipped, + 'isCanceled' => $isCanceled, + ]); + + return $this->display($this->getPathUri(), 'views/templates/hook/order_info.tpl'); + } catch (\Throwable $e) { + $logger->error(sprintf('%s - Error while rendering admin order info', self::FILE_NAME), [ + 'exceptions' => ExceptionUtility::getExceptions($e), + ]); + + return false; + } } /** @@ -627,23 +724,6 @@ public function hookDisplayOrderConfirmation() return ''; } - /** - * @return array - * - * @since 3.3.0 - */ - public function displayAjaxMollieOrderInfo() - { - header('Content-Type: application/json;charset=UTF-8'); - - /** @var \Mollie\Service\MollieOrderInfoService $orderInfoService */ - $orderInfoService = $this->getService(\Mollie\Service\MollieOrderInfoService::class); - - $input = @json_decode(Tools::file_get_contents('php://input'), true); - - return $orderInfoService->displayMollieOrderInfo($input); - } - /** * actionOrderStatusUpdate hook. * @@ -1681,4 +1761,9 @@ public function addCheckboxCountryRestrictionsForModule(array $shopsList = []) Db::INSERT_IGNORE ); } + + private function getMollieLogoPath(): string + { + return $this->getPathUri() . 'views/img/mollie_panel_icon.png'; + } } diff --git a/src/Builder/FormBuilder.php b/src/Builder/FormBuilder.php index 7058d7bf4..97c244905 100644 --- a/src/Builder/FormBuilder.php +++ b/src/Builder/FormBuilder.php @@ -423,7 +423,6 @@ protected function getAccountSettingsSection($isApiKeyProvided) 'applePayDirectProduct' => (int) $this->configuration->get(Config::MOLLIE_APPLE_PAY_DIRECT_PRODUCT), 'applePayDirectCart' => (int) $this->configuration->get(Config::MOLLIE_APPLE_PAY_DIRECT_CART), 'applePayDirectStyle' => (int) $this->configuration->get(Config::MOLLIE_APPLE_PAY_DIRECT_STYLE), - 'isBancontactQrCodeEnabled' => (int) $this->configuration->get(Config::MOLLIE_BANCONTACT_QR_CODE_ENABLED), 'isLive' => (int) $this->configuration->get(Config::MOLLIE_ENVIRONMENT), 'bancontactQRCodeDescription' => TagsUtility::ppTags( $this->module->l('Only available with your Live API key and Payments API. [1]Learn more[/1] about QR Codes.', self::FILE_NAME), diff --git a/src/Config/Config.php b/src/Config/Config.php index 316554492..4aebb0ea1 100644 --- a/src/Config/Config.php +++ b/src/Config/Config.php @@ -166,7 +166,6 @@ class Config const MOLLIE_APPLE_PAY_DIRECT_CART = 'MOLLIE_APPLE_PAY_DIRECT_CART'; const MOLLIE_APPLE_PAY_DIRECT_STYLE = 'MOLLIE_APPLE_PAY_DIRECT_STYLE'; - const MOLLIE_BANCONTACT_QR_CODE_ENABLED = 'MOLLIE_BANCONTACT_QR_CODE_ENABLED'; const MOLLIE_CARRIER_URL_SOURCE = 'MOLLIE_CARRIER_URL_SOURCE_'; const MOLLIE_CARRIER_CUSTOM_URL = 'MOLLIE_CARRIER_CUSTOM_URL_'; @@ -261,6 +260,7 @@ class Config const MOLLIE_VOUCHER_CATEGORY_MEAL = 'meal'; const MOLLIE_VOUCHER_CATEGORY_GIFT = 'gift'; const MOLLIE_VOUCHER_CATEGORY_ECO = 'eco'; + const MOLLIE_VOUCHER_CATEGORY_ALL = 'all'; const MOLLIE_REFUND_STATUS_CANCELED = 'canceled'; @@ -349,6 +349,10 @@ class Config const MOLLIE_METHOD_CUSTOMER_GROUPS = 'MOLLIE_METHOD_CUSTOMER_GROUPS_'; + public const MOLLIE_MANUAL_CAPTURE_METHODS = [ + self::RIVERTY, + ]; + // TODO migrate functions below to separate service public static function getStatuses() { diff --git a/src/DTO/OrderLine.php b/src/DTO/OrderLine.php index 02da0ba32..5902f287e 100644 --- a/src/DTO/OrderLine.php +++ b/src/DTO/OrderLine.php @@ -86,17 +86,17 @@ class OrderLine implements JsonSerializable private $category; /** - * @return string + * @return ?string */ - public function getType(): string + public function getType(): ?string { return $this->type; } /** - * @param string $type + * @param ?string $type */ - public function setType(string $type): void + public function setType(?string $type): void { $this->type = $type; } @@ -134,33 +134,33 @@ public function setName(string $name): void } /** - * @return string + * @return ?string */ - public function getProductUrl(): string + public function getProductUrl(): ?string { return $this->productUrl; } /** - * @param string $productUrl + * @param ?string $productUrl */ - public function setProductUrl(string $productUrl): void + public function setProductUrl(?string $productUrl): void { $this->productUrl = $productUrl; } /** - * @return string + * @return ?string */ - public function getImageUrl(): string + public function getImageUrl(): ?string { return $this->imageUrl; } /** - * @param string $imageUrl + * @param ?string $imageUrl */ - public function setImageUrl(string $imageUrl): void + public function setImageUrl(?string $imageUrl): void { $this->imageUrl = $imageUrl; } @@ -278,24 +278,24 @@ public function setVatAmount(Amount $vatAmount): void } /** - * @return string + * @return ?string */ - public function getCategory(): string + public function getCategory(): ?string { return $this->category; } /** - * @param string $category + * @param ?string $category */ - public function setCategory(string $category): void + public function setCategory(?string $category): void { $this->category = $category; } public function jsonSerialize(): array { - return [ + $result = [ 'sku' => $this->getSku(), 'name' => $this->getName(), 'productUrl' => $this->getProductUrl(), @@ -318,11 +318,20 @@ public function jsonSerialize(): array 'value' => $this->getDiscountAmount()->getValue(), ] : - [], + [ + 'currency' => $this->getUnitPrice()->getCurrency(), + 'value' => '0.00', + ], 'vatAmount' => [ 'currency' => $this->getVatAmount()->getCurrency(), 'value' => $this->getVatAmount()->getValue(), ], ]; + + if ($this->getType()) { + $result['type'] = $this->getType(); + } + + return $result; } } diff --git a/src/DTO/PaymentData.php b/src/DTO/PaymentData.php index 2162eea7c..aa092a7db 100644 --- a/src/DTO/PaymentData.php +++ b/src/DTO/PaymentData.php @@ -121,6 +121,11 @@ class PaymentData implements JsonSerializable */ private $title; + /** + * @var ?string + */ + private $captureMode; + public function __construct( Amount $amount, string $description, @@ -419,6 +424,22 @@ public function setTitle(?string $title): void $this->title = $title; } + /** + * @return ?string + */ + public function getCaptureMode(): ?string + { + return $this->captureMode; + } + + /** + * @param ?string $captureMode + */ + public function setCaptureMode(?string $captureMode): void + { + $this->captureMode = $captureMode; + } + public function jsonSerialize(): array { $result = [ @@ -458,6 +479,7 @@ public function jsonSerialize(): array 'cardToken' => $this->getCardToken(), 'customerId' => $this->getCustomerId(), 'applePayPaymentToken' => $this->getApplePayToken(), + 'captureMode' => $this->getCaptureMode(), ]; if ($this->sequenceType) { diff --git a/src/DTO/PaymentLine.php b/src/DTO/PaymentLine.php index 56c8a3851..5e4650dee 100644 --- a/src/DTO/PaymentLine.php +++ b/src/DTO/PaymentLine.php @@ -81,17 +81,17 @@ class PaymentLine implements JsonSerializable private $description = null; /** - * @return string + * @return ?string */ - public function getType(): string + public function getType(): ?string { return $this->type; } /** - * @param string $type + * @param ?string $type */ - public function setType(string $type): void + public function setType(?string $type): void { $this->type = $type; } @@ -113,9 +113,9 @@ public function setSku(string $sku): void } /** - * @return string + * @return ?string */ - public function getProductUrl(): string + public function getProductUrl(): ?string { return $this->productUrl; } @@ -129,9 +129,9 @@ public function setProductUrl(string $productUrl): void } /** - * @return string + * @return ?string */ - public function getImageUrl(): string + public function getImageUrl(): ?string { return $this->imageUrl; } @@ -241,9 +241,9 @@ public function setVatAmount(Amount $vatAmount): void } /** - * @return array + * @return ?array */ - public function getCategories(): array + public function getCategories(): ?array { return $this->categories; } @@ -274,7 +274,7 @@ public function setDescription(string $description): void public function jsonSerialize(): array { - return [ + $result = [ 'sku' => $this->getSku(), 'description' => $this->getDescription(), 'productUrl' => $this->getProductUrl(), @@ -305,5 +305,11 @@ public function jsonSerialize(): array 'value' => $this->getVatAmount()->getValue(), ], ]; + + if ($this->getType()) { + $result['type'] = $this->getType(); + } + + return $result; } } diff --git a/src/Handler/PaymentOption/PaymentOptionHandler.php b/src/Handler/PaymentOption/PaymentOptionHandler.php index 414490995..9a7cc36e6 100644 --- a/src/Handler/PaymentOption/PaymentOptionHandler.php +++ b/src/Handler/PaymentOption/PaymentOptionHandler.php @@ -36,7 +36,6 @@ namespace Mollie\Handler\PaymentOption; -use Configuration; use Mollie\Adapter\ConfigurationAdapter; use Mollie\Api\Types\PaymentMethod; use Mollie\Config\Config; @@ -109,9 +108,6 @@ public function handle(MolPaymentMethod $paymentMethod) return $this->cardSingleClickPaymentOptionProvider->getPaymentOption($paymentMethod); } } - if ($this->isBancontactWithQRCodePaymentMethod($paymentMethod)) { - return $this->bancontactPaymentOptionProvider->getPaymentOption($paymentMethod); - } return $this->basePaymentOptionProvider->getPaymentOption($paymentMethod); } @@ -135,12 +131,7 @@ private function isCreditCardPaymentMethod(MolPaymentMethod $paymentMethod): boo private function isBancontactWithQRCodePaymentMethod(MolPaymentMethod $paymentMethod): bool { - $isBancontactMethod = PaymentMethod::BANCONTACT === $paymentMethod->getPaymentMethodName(); - $isBancontactQRCodeEnabled = Configuration::get(Config::MOLLIE_BANCONTACT_QR_CODE_ENABLED); - $isPaymentApi = $paymentMethod->method === Config::MOLLIE_PAYMENTS_API; - $isLiveEnv = Configuration::get(Config::MOLLIE_ENVIRONMENT); - - return $isBancontactMethod && $isBancontactQRCodeEnabled && $isPaymentApi && $isLiveEnv; + return PaymentMethod::BANCONTACT === $paymentMethod->getPaymentMethodName(); } private function isIFrame() diff --git a/src/Install/Installer.php b/src/Install/Installer.php index db6793e89..9883ad727 100644 --- a/src/Install/Installer.php +++ b/src/Install/Installer.php @@ -221,7 +221,6 @@ protected function initConfig() $this->configurationAdapter->updateValue(Config::MOLLIE_API, Config::MOLLIE_ORDERS_API); $this->configurationAdapter->updateValue(Config::MOLLIE_APPLE_PAY_DIRECT_STYLE, 0); - $this->configurationAdapter->updateValue(Config::MOLLIE_BANCONTACT_QR_CODE_ENABLED, 0); $this->configurationAdapter->updateValue(Config::MOLLIE_SUBSCRIPTION_ORDER_CARRIER_ID, 0); $this->configurationAdapter->updateValue(Config::MOLLIE_SUBSCRIPTION_ENABLED, 0); diff --git a/src/Loader/OrderManagementAssetLoader.php b/src/Loader/OrderManagementAssetLoader.php new file mode 100644 index 000000000..39972c4d0 --- /dev/null +++ b/src/Loader/OrderManagementAssetLoader.php @@ -0,0 +1,51 @@ + + * @copyright Mollie B.V. + * @license https://github.com/mollie/PrestaShop/blob/master/LICENSE.md + * + * @see https://github.com/mollie/PrestaShop + * @codingStandardsIgnoreStart + */ + +namespace Mollie\Loader; + +use Media; +use Mollie; +use Mollie\Adapter\Link; + +if (!defined('_PS_VERSION_')) { + exit; +} + +class OrderManagementAssetLoader implements OrderManagementAssetLoaderInterface +{ + const FILE_NAME = 'OrderManagementAssetLoader'; + + private $module; + private $link; + + public function __construct( + Mollie $module, + Link $link + ) { + $this->module = $module; + $this->link = $link; + } + + public function register($controller, $vars = []): void + { + Media::addJsDef([ + 'mollieOrderInfoConfig' => [ + 'ajax_url' => $this->link->getAdminLink('AdminMollieAjax'), + 'transaction_id' => $vars['transaction_id'], + 'resource' => $vars['resource'], + 'order_id' => $vars['order_id'], + ], + ]); + + $controller->addJS($this->module->getPathUri() . 'views/js/admin/order_info.js'); + } +} diff --git a/views/js/dist/manifest.php b/src/Loader/OrderManagementAssetLoaderInterface.php similarity index 67% rename from views/js/dist/manifest.php rename to src/Loader/OrderManagementAssetLoaderInterface.php index 05d7e595f..4e4645c4b 100644 --- a/views/js/dist/manifest.php +++ b/src/Loader/OrderManagementAssetLoaderInterface.php @@ -4,11 +4,15 @@ * * @author Mollie B.V. * @copyright Mollie B.V. + * @license https://github.com/mollie/PrestaShop/blob/master/LICENSE.md * * @see https://github.com/mollie/PrestaShop - * - * @license https://github.com/mollie/PrestaShop/blob/master/LICENSE.md * @codingStandardsIgnoreStart */ -return json_decode('[{"name":"app","files":["vendors~app.min.js","app.min.js"]}]', true); +namespace Mollie\Loader; + +interface OrderManagementAssetLoaderInterface +{ + public function register($controller, $vars = []): void; +} diff --git a/src/Repository/ProductRepository.php b/src/Repository/ProductRepository.php index e5e94ce83..949b713e8 100644 --- a/src/Repository/ProductRepository.php +++ b/src/Repository/ProductRepository.php @@ -12,6 +12,7 @@ namespace Mollie\Repository; +use Context; use Mollie\Shared\Infrastructure\Repository\AbstractRepository; if (!defined('_PS_VERSION_')) { @@ -32,7 +33,7 @@ public function getCombinationImageById(int $productAttributeId, int $langId): ? return empty($result) ? null : $result; } - public function getCover(int $productId, \Context $context = null): array + public function getCover(int $productId, Context $context = null): array { return \Product::getCover($productId, $context); } diff --git a/src/Service/CancelService.php b/src/Service/CancelService.php index e506187be..fdb2a3303 100644 --- a/src/Service/CancelService.php +++ b/src/Service/CancelService.php @@ -14,9 +14,8 @@ use Mollie; use Mollie\Api\Exceptions\ApiException; -use Mollie\Api\Resources\Order; -use PrestaShopDatabaseException; -use PrestaShopException; +use Mollie\Logger\LoggerInterface; +use Mollie\Utility\ExceptionUtility; if (!defined('_PS_VERSION_')) { exit; @@ -25,53 +24,66 @@ class CancelService { const FILE_NAME = 'CancelService'; - /** - * @var Mollie - */ + private $module; + private $logger; public function __construct(Mollie $module) { $this->module = $module; + $this->logger = $this->module->getService(LoggerInterface::class); } - /** - * @param string $transactionId - * @param array $lines - * - * @return array - * - * @throws PrestaShopDatabaseException - * @throws PrestaShopException - * - * @since 3.3.0 - */ - public function doCancelOrderLines($transactionId, $lines = []) + public function handleCancel($transactionId, $orderlineId = null) { try { - /** @var Order $payment */ $order = $this->module->getApiClient()->orders->get($transactionId, ['embed' => 'payments']); - if ([] === $lines) { - $order->cancel(); + + if ($orderlineId) { + $order->cancelLines(['lines' => [['id' => $orderlineId]]]); + $message = $this->module->l('Order line has been canceled successfully.'); } else { - $cancelableLines = []; - foreach ($lines as $line) { - $cancelableLines[] = ['id' => $line['id'], 'quantity' => $line['quantity']]; - } - $order->cancelLines(['lines' => $cancelableLines]); + $order->cancel(); + $message = $this->module->l('Order has been canceled successfully.'); } - } catch (ApiException $e) { + return [ - 'success' => false, - 'message' => $this->module->l('The product(s) could not be canceled!', self::FILE_NAME), - 'detailed' => $e->getMessage(), + 'success' => true, + 'message' => $message, ]; + } catch (ApiException $e) { + return $this->createErrorResponse( + $this->module->l('The order could not be canceled!'), + $e + ); } + } + + public function isCanceled(string $transactionId): bool + { + try { + $order = $this->module->getApiClient()->orders->get($transactionId, ['embed' => 'payments']); + + return $order->status === 'canceled'; + } catch (ApiException $e) { + $this->logger->error(sprintf('%s - Error while checking cancel status.', self::FILE_NAME), [ + 'exceptions' => ExceptionUtility::getExceptions($e), + ]); + + return false; + } + } + + private function createErrorResponse(string $message, ?\Throwable $e = null): array + { + $this->logger->error(sprintf('%s - Error while processing the cancel.', self::FILE_NAME), [ + 'exceptions' => ExceptionUtility::getExceptions($e), + ]); return [ - 'success' => true, - 'message' => '', - 'detailed' => '', + 'success' => false, + 'message' => $message, + 'detailed' => $e ? $e->getMessage() : '', ]; } } diff --git a/src/Service/CaptureService.php b/src/Service/CaptureService.php new file mode 100644 index 000000000..1ff67152f --- /dev/null +++ b/src/Service/CaptureService.php @@ -0,0 +1,194 @@ + + * @copyright Mollie B.V. + * @license https://github.com/mollie/PrestaShop/blob/master/LICENSE.md + * + * @see https://github.com/mollie/PrestaShop + * @codingStandardsIgnoreStart + */ + +namespace Mollie\Service; + +use Mollie; +use Mollie\Api\Resources\Payment; +use Mollie\Utility\TextFormatUtility; +use Mollie\Utility\TransactionUtility; + +if (!defined('_PS_VERSION_')) { + exit; +} + +class CaptureService +{ + const FILE_NAME = 'CaptureService'; + + /** @var Mollie */ + private $module; + + public function __construct(Mollie $module) + { + $this->module = $module; + } + + /** + * Capture a payment by transaction ID (Payments API) + * + * @param string $transactionId + * @param float|null $amount + * + * @return array + */ + public function handleCapture($transactionId, $amount = null) + { + try { + $payment = $this->getPayment($transactionId); + $this->performCapture($transactionId, $payment, $amount); + + return $this->createSuccessResponse(); + } catch (\Throwable $e) { + return $this->createErrorResponse($e); + } + } + + /** + * Get payment from Mollie API + * + * @param string $transactionId + * + * @return Payment + */ + private function getPayment(string $transactionId): Payment + { + return $this->module->getApiClient()->payments->get($transactionId); + } + + /** + * Perform the actual capture operation + * + * @param string $transactionId + * @param Payment $payment + * @param float|null $amount + */ + private function performCapture(string $transactionId, Payment $payment, ?float $amount): void + { + if ($amount) { + $this->capturePartialAmount($transactionId, $payment, $amount); + } else { + $this->captureFullAmount($transactionId); + } + } + + /** + * Capture a partial amount + * + * @param string $transactionId + * @param Payment $payment + * @param float $amount + */ + private function capturePartialAmount(string $transactionId, Payment $payment, float $amount): void + { + $captureData = [ + 'amount' => [ + 'currency' => $payment->amount->currency, + 'value' => TextFormatUtility::formatNumber($amount, 2, '.', ''), + ], + ]; + + $this->module->getApiClient()->paymentCaptures->createForId($transactionId, $captureData); + } + + /** + * Capture the full amount + * + * @param string $transactionId + */ + private function captureFullAmount(string $transactionId): void + { + $this->module->getApiClient()->paymentCaptures->createForId($transactionId); + } + + /** + * Create success response + * + * @return array + */ + private function createSuccessResponse(): array + { + return [ + 'success' => true, + 'message' => '', + 'detailed' => '', + ]; + } + + /** + * Create error response + * + * @param \Throwable $exception + * + * @return array + */ + private function createErrorResponse(\Throwable $exception): array + { + return [ + 'success' => false, + 'message' => $this->module->l('The payment could not be captured!', self::FILE_NAME), + 'detailed' => $exception->getMessage(), + ]; + } + + /** + * Check if a payment is captured. Only applicable for payments API. + * + * @param string $transactionId + * + * @return bool + */ + public function isCaptured(string $transactionId): bool + { + $isOrderTransaction = TransactionUtility::isOrderTransaction($transactionId); + + if ($isOrderTransaction) { + return false; + } + + /** @var Payment $payment */ + $payment = $this->module->getApiClient()->payments->get($transactionId); + + $captures = $payment->captures(); + + $capturedAmount = 0; + + foreach ($captures as $capture) { + $capturedAmount += $capture->amount->value; + } + + return $capturedAmount >= $payment->amount->value || $payment->status == 'paid'; + } + + public function getCapturableAmount(string $transactionId): float + { + if (TransactionUtility::isOrderTransaction($transactionId)) { + return 0.0; + } + + /** @var Payment $payment */ + $payment = $this->module->getApiClient()->payments->get($transactionId); + + if ($payment->status === 'paid') { + return 0.0; + } + + $amount = (float) $payment->amount->value; + $capturedAmount = isset($payment->amountCaptured->value) + ? (float) $payment->amountCaptured->value + : 0.0; + + $capturable = $amount - $capturedAmount; + + return $capturable > 0.0 ? $capturable : 0.0; + } +} diff --git a/src/Service/CartLinesService.php b/src/Service/CartLinesService.php index c32cad156..0b50b1882 100644 --- a/src/Service/CartLinesService.php +++ b/src/Service/CartLinesService.php @@ -153,12 +153,15 @@ public static function spreadCartLineGroup($cartLineGroup, $newTotal) foreach ($spread as $unitPrice => $qty) { $newCartLineGroup[] = [ 'name' => $cartLineGroup[0]['name'], + 'type' => $cartLineGroup[0]['type'], 'quantity' => $qty, 'unitPrice' => (float) $unitPrice, 'totalAmount' => (float) $unitPrice * $qty, 'sku' => isset($cartLineGroup[0]['sku']) ? $cartLineGroup[0]['sku'] : '', 'targetVat' => $cartLineGroup[0]['targetVat'], 'categories' => $cartLineGroup[0]['categories'], + 'product_url' => isset($cartLineGroup[0]['product_url']) ? $cartLineGroup[0]['product_url'] : '', + 'image_url' => isset($cartLineGroup[0]['image_url']) ? $cartLineGroup[0]['image_url'] : '', ]; } @@ -199,6 +202,7 @@ private function createProductLines(array $cartItems, $apiRoundingPrecision, $gi $productHashGift = "{$idProduct}¤{$idProductAttribute}¤{$idCustomization}gift"; $orderLines[$productHashGift][] = [ 'name' => $cartItem['name'], + 'type' => 'physical', 'sku' => $productHashGift, 'targetVat' => (float) $cartItem['rate'], 'quantity' => $gift_product['cart_quantity'], @@ -207,6 +211,9 @@ private function createProductLines(array $cartItems, $apiRoundingPrecision, $gi 'categories' => [], 'product_url' => $this->context->getProductLink($cartItem['id_product']), 'image_url' => $this->context->getImageLink($cartItem['link_rewrite'], $cartItem['id_image']), + 'metadata' => [ + 'idProduct' => $cartItem['id_product'], + ], ]; continue; } @@ -219,6 +226,7 @@ private function createProductLines(array $cartItems, $apiRoundingPrecision, $gi // Try to spread this product evenly and account for rounding differences on the order line $orderLines[$productHash][] = [ 'name' => $cartItem['name'], + 'type' => 'physical', 'sku' => $productHash, 'targetVat' => (float) $cartItem['rate'], 'quantity' => $quantity, @@ -227,6 +235,9 @@ private function createProductLines(array $cartItems, $apiRoundingPrecision, $gi 'categories' => $this->voucherService->getVoucherCategory($cartItem, $selectedVoucherCategory), 'product_url' => $this->context->getProductLink($cartItem['id_product']), 'image_url' => $this->context->getImageLink($cartItem['link_rewrite'], $cartItem['id_image']), + 'metadata' => [ + 'idProduct' => $cartItem['id_product'], + ], ]; $remaining -= $roundedTotalWithTax; } @@ -248,6 +259,7 @@ private function addDiscountsToProductLines($totalDiscounts, $apiRoundingPrecisi $orderLines['discount'] = [ [ 'name' => 'Discount', + 'sku' => 'DISCOUNT', 'type' => 'discount', 'quantity' => 1, 'unitPrice' => -round($totalDiscounts, $apiRoundingPrecision), @@ -343,6 +355,7 @@ private function fillProductLinesWithRemainingData(array $orderLines, $apiRoundi $newItem = [ 'name' => $line['name'], 'categories' => $line['categories'], + 'type' => $line['type'] ?? null, 'quantity' => (int) $quantity, 'unitPrice' => round($unitPrice, $apiRoundingPrecision), 'totalAmount' => round($totalAmount, $apiRoundingPrecision), @@ -350,6 +363,7 @@ private function fillProductLinesWithRemainingData(array $orderLines, $apiRoundi 'vatAmount' => round($vatAmount, $apiRoundingPrecision), 'product_url' => $line['product_url'] ?? null, 'image_url' => $line['image_url'] ?? null, + 'metadata' => $line['metadata'] ?? [], ]; if (isset($line['sku'])) { $newItem['sku'] = $line['sku']; @@ -377,6 +391,7 @@ private function addShippingLine($roundedShippingCost, $cartSummary, $apiRoundin $orderLines['shipping'] = [ [ 'name' => $this->languageService->lang('Shipping'), + 'type' => 'shipping_fee', 'quantity' => 1, 'unitPrice' => round($roundedShippingCost, $apiRoundingPrecision), 'totalAmount' => round($roundedShippingCost, $apiRoundingPrecision), @@ -410,6 +425,7 @@ private function addWrappingLine($wrappingPrice, array $cartSummary, $vatRatePre $orderLines['wrapping'] = [ [ 'name' => $this->languageService->lang('Gift wrapping'), + 'type' => 'surcharge', 'quantity' => 1, 'unitPrice' => round($wrappingPrice, $apiRoundingPrecision), 'totalAmount' => round($wrappingPrice, $apiRoundingPrecision), @@ -438,6 +454,7 @@ private function addPaymentFeeLine($paymentFeeData, $apiRoundingPrecision, array [ 'name' => $this->languageService->lang('Payment fee'), 'sku' => Config::PAYMENT_FEE_SKU, + 'type' => 'surcharge', 'quantity' => 1, 'unitPrice' => round($paymentFeeData->getPaymentFeeTaxIncl(), $apiRoundingPrecision), 'totalAmount' => round($paymentFeeData->getPaymentFeeTaxIncl(), $apiRoundingPrecision), @@ -491,7 +508,8 @@ private function convertToLineArray(array $newItems, string $currencyIsoCode, in } $line->setQuantity((int) $item['quantity']); - $line->setSku(isset($item['sku']) ? $item['sku'] : ''); + $line->setSku(isset($item['sku']) ? $item['sku'] : $item['name']); + $line->setType($item['type'] ?? null); $currency = strtoupper(strtolower($currencyIsoCode)); @@ -533,14 +551,16 @@ private function convertToLineArray(array $newItems, string $currencyIsoCode, in $line->setVatRate(TextFormatUtility::formatNumber($item['vatRate'], $apiRoundingPrecision, '.', '')); - if (isset($item['product_url']) && $item['product_url']) { + if (isset($item['product_url'])) { $line->setProductUrl( - TextFormatUtility::replaceAccentedChars((string) $item['product_url']) + TextFormatUtility::replaceAccentedChars((string) $item['product_url']) ?: '' ); } - if (isset($item['image_url']) && $item['image_url']) { - $line->setImageUrl($item['image_url']); + if (isset($item['image_url'])) { + $line->setImageUrl( + TextFormatUtility::replaceAccentedChars((string) $item['image_url']) ?: '' + ); } $newItems[$index] = $line; diff --git a/src/Service/MollieOrderInfoService.php b/src/Service/MollieOrderInfoService.php deleted file mode 100644 index 9a87f08f4..000000000 --- a/src/Service/MollieOrderInfoService.php +++ /dev/null @@ -1,165 +0,0 @@ - - * @copyright Mollie B.V. - * @license https://github.com/mollie/PrestaShop/blob/master/LICENSE.md - * - * @see https://github.com/mollie/PrestaShop - * @codingStandardsIgnoreStart - */ - -namespace Mollie\Service; - -use Exception; -use Mollie; -use Mollie\Factory\ModuleFactory; -use Mollie\Logger\LoggerInterface; -use Mollie\Repository\PaymentMethodRepositoryInterface; -use Mollie\Utility\ExceptionUtility; -use Order; - -if (!defined('_PS_VERSION_')) { - exit; -} - -class MollieOrderInfoService -{ - const FILE_NAME = 'MollieOrderInfoService'; - - /** - * @var PaymentMethodRepositoryInterface - */ - private $paymentMethodRepository; - /** - * @var RefundService - */ - private $refundService; - /** - * @var ShipService - */ - private $shipService; - /** - * @var CancelService - */ - private $cancelService; - /** - * @var ShipmentServiceInterface - */ - private $shipmentService; - /** - * @var Mollie - */ - private $module; - /** - * @var ApiService - */ - private $apiService; - /** - * @var LoggerInterface - */ - private $logger; - - public function __construct( - ModuleFactory $module, - PaymentMethodRepositoryInterface $paymentMethodRepository, - RefundService $refundService, - ShipService $shipService, - CancelService $cancelService, - ShipmentServiceInterface $shipmentService, - ApiService $apiService, - LoggerInterface $logger - ) { - $this->module = $module->getModule(); - $this->paymentMethodRepository = $paymentMethodRepository; - $this->refundService = $refundService; - $this->shipService = $shipService; - $this->cancelService = $cancelService; - $this->shipmentService = $shipmentService; - $this->apiService = $apiService; - $this->logger = $logger; - } - - /** - * @param array $input - * - * @return array - * - * @since 3.3.0 - */ - public function displayMollieOrderInfo($input) - { - $transactionId = isset($input['transactionId']) ? $input['transactionId'] : $input['order']['id']; - $transaction = $this->paymentMethodRepository->getPaymentBy('transaction_id', $transactionId); - $order = new Order($transaction['order_id']); - - $this->module->updateApiKey((int) $order->id_shop); - - if (!$this->module->getApiClient()) { - return ['success' => false]; - } - try { - if ('payments' === $input['resource']) { - switch ($input['action']) { - case 'refund': - if (!isset($input['amount']) || empty($input['amount'])) { - // No amount = full refund - $status = $this->refundService->doPaymentRefund($transactionId); - } else { - $status = $this->refundService->doPaymentRefund($transactionId, $input['amount']); - } - - return [ - 'success' => isset($status['status']) && 'success' === $status['status'], - 'payment' => $this->apiService->getFilteredApiPayment($this->module->getApiClient(), $transactionId, false), - ]; - case 'retrieve': - return [ - 'success' => true, - 'payment' => $this->apiService->getFilteredApiPayment($this->module->getApiClient(), $transactionId, false), - ]; - default: - return ['success' => false]; - } - } elseif ('orders' === $input['resource']) { - switch ($input['action']) { - case 'retrieve': - $info = $this->paymentMethodRepository->getPaymentBy('transaction_id', $transactionId); - if (!$info) { - return ['success' => false]; - } - $tracking = $this->shipmentService->getShipmentInformation($info['order_reference']); - - return [ - 'success' => true, - 'order' => $this->apiService->getFilteredApiOrder($this->module->getApiClient(), $transactionId), - 'tracking' => $tracking, - ]; - case 'ship': - $status = $this->shipService->doShipOrderLines($transactionId, isset($input['orderLines']) ? $input['orderLines'] : [], isset($input['tracking']) ? $input['tracking'] : null); - - return array_merge($status, ['order' => $this->apiService->getFilteredApiOrder($this->module->getApiClient(), $transactionId)]); - case 'refund': - $status = $this->refundService->doRefundOrderLines($input['order'], isset($input['orderLines']) ? $input['orderLines'] : []); - - return array_merge($status, ['order' => $this->apiService->getFilteredApiOrder($this->module->getApiClient(), $input['order']['id'])]); - case 'cancel': - $status = $this->cancelService->doCancelOrderLines($transactionId, isset($input['orderLines']) ? $input['orderLines'] : []); - - return array_merge($status, ['order' => $this->apiService->getFilteredApiOrder($this->module->getApiClient(), $transactionId)]); - default: - return ['success' => false]; - } - } - } catch (Exception $e) { - $this->logger->error(sprintf('%s - Failed to display Mollie order info: %s', self::FILE_NAME, $e->getMessage()), [ - 'exceptions' => ExceptionUtility::getExceptions($e), - ]); - - return ['success' => false]; - } - - return ['success' => false]; - } -} diff --git a/src/Service/MollieOrderService.php b/src/Service/MollieOrderService.php new file mode 100644 index 000000000..59da654fb --- /dev/null +++ b/src/Service/MollieOrderService.php @@ -0,0 +1,61 @@ + + * @copyright Mollie B.V. + * @license https://github.com/mollie/PrestaShop/blob/master/LICENSE.md + * + * @see https://github.com/mollie/PrestaShop + * @codingStandardsIgnoreStart + */ + +namespace Mollie\Service; + +use Mollie; +use Mollie\Exception\MollieException; +use Mollie\Utility\NumberUtility; +use Mollie\Utility\TransactionUtility; + +if (!defined('_PS_VERSION_')) { + exit; +} + +class MollieOrderService +{ + const FILE_NAME = 'MollieOrderService'; + + /** @var Mollie */ + private $module; + + public function __construct(Mollie $module) + { + $this->module = $module; + } + + public function getRefundableAmount(string $mollieTransactionId): float + { + $mollieOrder = TransactionUtility::isOrderTransaction($mollieTransactionId) + ? $this->module->getApiClient()->orders->get($mollieTransactionId, ['embed' => 'payments']) + : $this->module->getApiClient()->payments->get($mollieTransactionId, ['embed' => 'payments']); + + if (TransactionUtility::isOrderTransaction($mollieOrder->id)) { + $amountRefunded = 0; + foreach ($mollieOrder->lines as $line) { + $amountRefunded += $line->amountRefunded->value; + } + + return NumberUtility::minus($mollieOrder->amount->value, $amountRefunded); + } + + if (isset($mollieOrder->amountRemaining)) { + return (float) $mollieOrder->amountRemaining->value; + } + + if (isset($mollieOrder->amount)) { + return (float) $mollieOrder->amount->value; + } + + throw new MollieException('Invalid payment type'); + } +} diff --git a/src/Service/PaymentMethodService.php b/src/Service/PaymentMethodService.php index c31130035..2ba08d59b 100644 --- a/src/Service/PaymentMethodService.php +++ b/src/Service/PaymentMethodService.php @@ -335,6 +335,10 @@ public function getPaymentData( if (Mollie\Config\Config::MOLLIE_ORDERS_API !== $molPaymentMethod->method) { $paymentData = new PaymentData($amountObj, $orderReference, $redirectUrl, $webhookUrl); + if (in_array($molPaymentMethod->id_method, Mollie\Config\Config::MOLLIE_MANUAL_CAPTURE_METHODS)) { + $paymentData->setCaptureMode('manual'); + } + $paymentData->setMetadata($metaData); $paymentData->setLocale($this->getLocale($molPaymentMethod->method)); diff --git a/src/Service/RefundService.php b/src/Service/RefundService.php index 574d1bb8b..e5339fb18 100644 --- a/src/Service/RefundService.php +++ b/src/Service/RefundService.php @@ -16,11 +16,12 @@ use Mollie\Api\Exceptions\ApiException; use Mollie\Api\Resources\Order as MollieOrderAlias; use Mollie\Api\Resources\Payment; -use Mollie\Api\Resources\PaymentCollection; +use Mollie\Logger\LoggerInterface; +use Mollie\Utility\ExceptionUtility; use Mollie\Utility\RefundUtility; use Mollie\Utility\TextFormatUtility; -use PrestaShopDatabaseException; -use PrestaShopException; +use Mollie\Utility\TransactionUtility; +use Throwable; if (!defined('_PS_VERSION_')) { exit; @@ -30,116 +31,139 @@ class RefundService { const FILE_NAME = 'RefundService'; - /** - * @var Mollie - */ + /** @var Mollie */ private $module; - public function __construct(Mollie $module) + /** @var LoggerInterface */ + private $logger; + + public function __construct(Mollie $module, LoggerInterface $logger) { $this->module = $module; + $this->logger = $logger; } /** * @param string $transactionId Transaction/Mollie Order ID * @param float|null $amount Amount to refund, refund all if `null` + * @param string|null $orderLineId Order line ID for partial refund * * @return array - * - * @throws PrestaShopDatabaseException - * @throws PrestaShopException - * @throws ApiException - * - * @since 3.3.0 Renamed `doRefund` to `doPaymentRefund`, added `$amount` - * @since 3.3.2 Omit $orderId */ - public function doPaymentRefund($transactionId, $amount = null) + public function handleRefund(string $transactionId, ?float $amount = null, ?string $orderLineId = null) { try { - /** @var Payment $payment */ - $payment = $this->module->getApiClient()->payments->get($transactionId); - if ($amount) { - $payment->refund([ - 'amount' => [ - 'currency' => (string) $payment->amount->currency, - 'value' => (string) TextFormatUtility::formatNumber($amount, 2), - ], - ]); - } elseif ((float) $payment->settlementAmount->value - (float) $payment->amountRefunded->value > 0) { + $payment = TransactionUtility::isOrderTransaction($transactionId) + ? $this->module->getApiClient()->orders->get($transactionId, ['embed' => 'payments,refunds']) + : $this->module->getApiClient()->payments->get($transactionId, ['embed' => 'refunds']); + + $isPartialRefund = !empty($orderLineId) || $amount !== null; + + if ($isPartialRefund && TransactionUtility::isOrderTransaction($transactionId)) { $payment->refund([ - 'amount' => [ - 'currency' => (string) $payment->amount->currency, - 'value' => (string) TextFormatUtility::formatNumber( - RefundUtility::getRefundableAmount( - (float) $payment->settlementAmount->value, - (float) RefundUtility::getRefundedAmount(iterator_to_array($payment->refunds())) - ), - 2 - ), + 'lines' => [ + ['id' => $orderLineId], ], ]); + + return $this->createSuccessResponse(); + } + + $refundAmount = $this->calculateRefundAmount($payment, $amount); + if (!$refundAmount) { + $refundAmount = $payment->amount->value; } + + $this->processRefund($payment, $refundAmount, TransactionUtility::isOrderTransaction($transactionId)); + + return $this->createSuccessResponse(); } catch (ApiException $e) { - return [ - 'status' => 'fail', - 'msg_fail' => $this->module->l('The order could not be refunded!', self::FILE_NAME), - 'msg_details' => $this->module->l('Reason:', self::FILE_NAME) . ' ' . $e->getMessage(), - ]; + return $this->createErrorResponse('The order could not be refunded!', $e); + } catch (Throwable $e) { + return $this->createErrorResponse('Something went wrong while processing the refund.', $e); } - - return [ - 'status' => 'success', - 'msg_success' => $this->module->l('The order has been refunded!', self::FILE_NAME), - 'msg_details' => $this->module->l('Mollie will transfer the amount back to the customer on the next business day.', self::FILE_NAME), - ]; } /** - * @param array $lines + * @param MollieOrderAlias|Payment $payment + * @param float|null $amount * - * @return array - * - * @throws PrestaShopDatabaseException - * @throws PrestaShopException + * @return string|null + */ + private function calculateRefundAmount($payment, ?float $amount): ?string + { + if ($amount) { + return TextFormatUtility::formatNumber($amount, 2); + } + + $settlementAmount = (float) $payment->settlementAmount->value; + $refundedAmount = (float) RefundUtility::getRefundedAmount(iterator_to_array($payment->refunds())); + $refundableAmount = RefundUtility::getRefundableAmount($settlementAmount, $refundedAmount); + + return $refundableAmount > 0 ? TextFormatUtility::formatNumber($refundableAmount, 2) : null; + } + + /** + * @param MollieOrderAlias|Payment $payment + * @param string $refundAmount + * @param bool $isOrderTransaction * - * @since 3.3.0 + * @throws ApiException */ - public function doRefundOrderLines(array $orderData, $lines = []) + private function processRefund($payment, string $refundAmount, bool $isOrderTransaction): void { - $transactionId = $orderData['id']; - $availableRefund = $orderData['availableRefundAmount']; - try { - /** @var MollieOrderAlias $payment */ - $order = $this->module->getApiClient()->orders->get($transactionId, ['embed' => 'payments']); - $isOrderLinesRefundPossible = RefundUtility::isOrderLinesRefundPossible($lines, $availableRefund); - if ($isOrderLinesRefundPossible) { - $refund = RefundUtility::getRefundLines($lines); - $order->refund($refund); - } else { - /** @var PaymentCollection $orderPayments */ - $orderPayments = $order->payments(); - /** @var \Mollie\Api\Resources\Payment $orderPayment */ - foreach ($orderPayments as $orderPayment) { - $orderPayment->refund( - [ - 'amount' => $availableRefund, - ] - ); - continue; - } - } - } catch (ApiException $e) { - return [ - 'success' => false, - 'message' => $this->module->l('The product(s) could not be refunded!', self::FILE_NAME), - 'detailed' => $e->getMessage(), - ]; + if ($isOrderTransaction) { + $payment->refundAll(); + + return; } + $payment->refund([ + 'amount' => [ + 'currency' => $payment->amount->currency, + 'value' => $refundAmount, + ], + ]); + } + + /** + * @param string $message + * @param Throwable|null $e + * + * @return array + */ + private function createErrorResponse(string $message, ?Throwable $e = null): array + { + $this->logger->error(sprintf('%s - Error while processing the refund.', self::FILE_NAME), [ + 'exceptions' => ExceptionUtility::getExceptions($e), + ]); + + return [ + 'success' => false, + 'message' => $this->module->l($message, self::FILE_NAME), + 'error' => $e ? $e->getMessage() : 'NaN', + ]; + } + + private function createSuccessResponse(): array + { return [ 'success' => true, - 'message' => '', - 'detailed' => '', + 'msg_success' => $this->module->l('The order has been refunded!', self::FILE_NAME), + 'msg_details' => $this->module->l('Mollie will transfer the amount back to the customer on the next business day.', self::FILE_NAME), ]; } + + public function isRefunded(string $transactionId, float $amount): bool + { + $transaction = TransactionUtility::isOrderTransaction($transactionId) + ? $this->module->getApiClient()->orders->get($transactionId, ['embed' => 'payments,refunds']) + : $this->module->getApiClient()->payments->get($transactionId, ['embed' => 'refunds']); + + $refundedAmount = $transaction->amountRefunded + ? (float) $transaction->amountRefunded->value + : RefundUtility::getRefundedAmount(iterator_to_array($transaction->refunds())); + + return $refundedAmount >= $amount; + } } diff --git a/src/Service/SettingsSaveService.php b/src/Service/SettingsSaveService.php index 68014f9bb..358c8d94d 100644 --- a/src/Service/SettingsSaveService.php +++ b/src/Service/SettingsSaveService.php @@ -265,7 +265,6 @@ public function saveSettings(&$errors = []) $mollieErrors = $this->tools->getValue(Config::MOLLIE_DISPLAY_ERRORS); $voucherCategory = $this->tools->getValue(Config::MOLLIE_VOUCHER_CATEGORY); $applePayDirectStyle = $this->tools->getValue(Config::MOLLIE_APPLE_PAY_DIRECT_STYLE); - $isBancontactQrCodeEnabled = $this->tools->getValue(Config::MOLLIE_BANCONTACT_QR_CODE_ENABLED); $mollieMailWhenFailed = (bool) $this->tools->getValue(Config::MOLLIE_MAIL_WHEN_FAILED); $mollieShipMain = $this->tools->getValue(Config::MOLLIE_AUTO_SHIP_MAIN); @@ -298,10 +297,6 @@ public function saveSettings(&$errors = []) } if (empty($errors)) { - if ($isBancontactQrCodeEnabled !== false) { - $this->configurationAdapter->updateValue(Config::MOLLIE_BANCONTACT_QR_CODE_ENABLED, $isBancontactQrCodeEnabled); - } - $this->configurationAdapter->updateValue(Config::MOLLIE_APPLE_PAY_DIRECT_PRODUCT, $isApplePayDirectProductEnabled); $this->configurationAdapter->updateValue(Config::MOLLIE_APPLE_PAY_DIRECT_CART, $isApplePayDirectCartEnabled); $this->configurationAdapter->updateValue(Config::MOLLIE_APPLE_PAY_DIRECT_STYLE, $applePayDirectStyle); diff --git a/src/Service/ShipService.php b/src/Service/ShipService.php index b7f2d8165..683952613 100644 --- a/src/Service/ShipService.php +++ b/src/Service/ShipService.php @@ -15,6 +15,9 @@ use Mollie; use Mollie\Api\Exceptions\ApiException; use Mollie\Api\Resources\Order as MollieOrderAlias; +use Mollie\Logger\LoggerInterface; +use Mollie\Utility\TransactionUtility; +use Validate; if (!defined('_PS_VERSION_')) { exit; @@ -36,33 +39,59 @@ public function __construct(Mollie $module) /** * @param string $transactionId - * @param array $lines + * @param string|null $orderlineId * @param array|null $tracking * * @return array * * @since 3.3.0 */ - public function doShipOrderLines($transactionId, $lines = [], $tracking = null) + public function handleShip($transactionId, $orderlineId = null, $tracking = null) { try { /** @var MollieOrderAlias $payment */ $order = $this->module->getApiClient()->orders->get($transactionId, ['embed' => 'payments']); - $shipment = [ - 'lines' => array_map(function ($line) { - return array_intersect_key( - (array) $line, - array_flip([ - 'id', - 'quantity', - ])); - }, $lines), - ]; - if ($tracking && !empty($tracking['carrier']) && !empty($tracking['code'])) { - $shipment['tracking'] = $tracking; + $shipmentData = []; + + if ($orderlineId) { + $shipmentData['lines'] = [ + [ + 'id' => $orderlineId, + ], + ]; + } + + if ($tracking['carrier'] && $tracking['code'] && $tracking['tracking_url']) { + $validationResult = $this->validateTracking($tracking); + + if (!$validationResult['success']) { + return $validationResult; + } + + $shipmentData['tracking'] = [ + 'carrier' => $tracking['carrier'], + 'code' => $tracking['code'], + 'url' => $tracking['tracking_url'], + ]; } - $order->createShipment($shipment); + + $order->createShipment($shipmentData); } catch (ApiException $e) { + /** @var LoggerInterface $logger */ + $logger = $this->module->getService(LoggerInterface::class); + + $logger->error(sprintf('%s - Failed to ship order lines', self::FILE_NAME), [ + 'error_message' => $e->getMessage(), + ]); + + if (strpos($e->getMessage(), 'exceeds the amount') !== false) { + return [ + 'success' => false, + 'message' => $this->module->l('The product(s) could not be shipped! The amount exceeds the order amount. Use "Ship All".', self::FILE_NAME), + 'detailed' => $e->getMessage(), + ]; + } + return [ 'success' => false, 'message' => $this->module->l('The product(s) could not be shipped!', self::FILE_NAME), @@ -76,4 +105,43 @@ public function doShipOrderLines($transactionId, $lines = [], $tracking = null) 'detailed' => '', ]; } + + public function isShipped(string $transactionId): bool + { + if (!TransactionUtility::isOrderTransaction($transactionId)) { + return false; + } + + $products = $this->module->getApiClient()->orders->get($transactionId, ['embed' => 'payments'])->lines; + + foreach ($products as $product) { + if ($product->quantity != $product->quantityShipped) { + return false; + } + } + + return true; + } + + private function validateTracking(array $tracking): array + { + if (!Validate::isAbsoluteUrl($tracking['tracking_url'])) { + return [ + 'success' => false, + 'message' => $this->module->l('Invalid tracking URL provided', self::FILE_NAME), + ]; + } + + if (!Validate::isString($tracking['carrier']) || !Validate::isString($tracking['code'])) { + return [ + 'success' => false, + 'message' => $this->module->l('Invalid tracking data provided', self::FILE_NAME), + ]; + } + + return [ + 'success' => true, + 'message' => '', + ]; + } } diff --git a/src/Service/VoucherService.php b/src/Service/VoucherService.php index 16125ce8f..881deaba3 100644 --- a/src/Service/VoucherService.php +++ b/src/Service/VoucherService.php @@ -44,12 +44,41 @@ public function getVoucherCategory(array $cartItem, $selectedVoucherCategory): a } return [$selectedVoucherCategory]; + case Config::MOLLIE_VOUCHER_CATEGORY_ALL: + $productCategories = $this->getProductCategories($cartItem); + + return $productCategories; case Config::MOLLIE_VOUCHER_CATEGORY_NULL: default: return $this->getProductCategory($cartItem); } } + public function getProductCategories(array $cartItem): array + { + if (!isset($cartItem['features'])) { + return []; + } + + $idFeatureValues = []; + + foreach ($cartItem['features'] as $feature) { + if (!$this->isVoucherFeature((int) $feature['id_feature'])) { + continue; + } + + $idFeatureValues[] = (int) $feature['id_feature_value']; + } + + if (empty($idFeatureValues)) { + return []; + } + + $category = $this->getVoucherCategoriesByFeatureValueIds($idFeatureValues); + + return $category; + } + public function getProductCategory(array $cartItem): array { if (!isset($cartItem['features'])) { @@ -90,4 +119,17 @@ private function getVoucherCategoryByFeatureValueId(int $idFeatureValue): string return ''; } + + private function getVoucherCategoriesByFeatureValueIds(array $idFeatureValues): array + { + $categoryNames = []; + + foreach (Config::MOLLIE_VOUCHER_CATEGORIES as $key => $categoryName) { + if (in_array((int) $this->configuration->get(Config::MOLLIE_VOUCHER_FEATURE . $key), $idFeatureValues, true)) { + $categoryNames[] = $key; + } + } + + return $categoryNames; + } } diff --git a/src/ServiceProvider/BaseServiceProvider.php b/src/ServiceProvider/BaseServiceProvider.php index 965117c6d..582b5d0f5 100644 --- a/src/ServiceProvider/BaseServiceProvider.php +++ b/src/ServiceProvider/BaseServiceProvider.php @@ -18,6 +18,7 @@ use Mollie; use Mollie\Adapter\ConfigurationAdapter; use Mollie\Adapter\Context; +use Mollie\Adapter\Link; use Mollie\Adapter\Shop; use Mollie\Adapter\ToolsAdapter; use Mollie\Builder\ApiTestFeedbackBuilder; @@ -39,6 +40,8 @@ use Mollie\Handler\Shipment\ShipmentSenderHandler; use Mollie\Handler\Shipment\ShipmentSenderHandlerInterface; use Mollie\Install\UninstallerInterface; +use Mollie\Loader\OrderManagementAssetLoader; +use Mollie\Loader\OrderManagementAssetLoaderInterface; use Mollie\Logger\LogFormatter; use Mollie\Logger\LogFormatterInterface; use Mollie\Logger\Logger; @@ -313,6 +316,11 @@ public function register(Container $container) $service = $this->addService($container, CustomerGroupRestrictionHandlerInterface::class, CustomerGroupRestrictionHandler::class); $this->addServiceArgument($service, ToolsAdapter::class); + + $service = $this->addService($container, OrderManagementAssetLoaderInterface::class, OrderManagementAssetLoader::class); + $this->addServiceArgument($service, Mollie::class); + $this->addServiceArgument($service, PaymentMethodRepository::class); + $this->addServiceArgument($service, Link::class); } private function addService(Container $container, $className, $service) diff --git a/src/Utility/RefundUtility.php b/src/Utility/RefundUtility.php index cc10bb408..5259fd122 100644 --- a/src/Utility/RefundUtility.php +++ b/src/Utility/RefundUtility.php @@ -20,34 +20,7 @@ class RefundUtility { - public static function getRefundLines(array $lines) - { - $refunds = []; - foreach ($lines as $line) { - $refund = array_intersect_key( - (array) $line, - array_flip([ - 'id', - 'quantity', - ])); - $refunds['lines'][] = $refund; - } - - return $refunds; - } - - public static function isOrderLinesRefundPossible(array $lines, $availableRefund) - { - $refundedAmount = 0; - foreach ($lines as $line) { - $lineRefundAmount = NumberUtility::times($line['unitPrice']['value'], $line['quantity']); - $refundedAmount = NumberUtility::plus($refundedAmount, $lineRefundAmount); - } - - return NumberUtility::isLowerOrEqualThan($refundedAmount, $availableRefund['value']); - } - - public static function getRefundedAmount($paymentRefunds) + public static function getRefundedAmount(array $paymentRefunds): float { $refundAmount = 0; foreach ($paymentRefunds as $refund) { @@ -59,7 +32,7 @@ public static function getRefundedAmount($paymentRefunds) return $refundAmount; } - public static function getRefundableAmount($paymentAmount, $refundedAmount) + public static function getRefundableAmount(float $paymentAmount, float $refundedAmount): float { return NumberUtility::minus((float) $paymentAmount, (float) $refundedAmount); } diff --git a/src/Utility/UrlPathUtility.php b/src/Utility/UrlPathUtility.php deleted file mode 100644 index 58b5ce9d9..000000000 --- a/src/Utility/UrlPathUtility.php +++ /dev/null @@ -1,91 +0,0 @@ - - * @copyright Mollie B.V. - * @license https://github.com/mollie/PrestaShop/blob/master/LICENSE.md - * - * @see https://github.com/mollie/PrestaShop - * @codingStandardsIgnoreStart - */ - -namespace Mollie\Utility; - -use Tools; - -if (!defined('_PS_VERSION_')) { - exit; -} - -class UrlPathUtility -{ - /** - * @param string $mediaUri - * @param string|null $cssMediaType - * - * @return array|bool|mixed|string - * - * @since 1.0.0 - * - * @version 1.0.0 Initial version - */ - public static function getMediaPath($mediaUri, $cssMediaType = null) - { - /* @phpstan-ignore-next-line */ - if (is_array($mediaUri) || null === $mediaUri || empty($mediaUri)) { - return false; - } - - $urlData = parse_url($mediaUri); - if (!is_array($urlData)) { - return false; - } - - if (!array_key_exists('host', $urlData)) { - $mediaUri = '/' . ltrim(str_replace(str_replace(['/', '\\'], DIRECTORY_SEPARATOR, _PS_ROOT_DIR_), __PS_BASE_URI__, $mediaUri), '/\\'); - // remove PS_BASE_URI on _PS_ROOT_DIR_ for the following - $fileUri = _PS_ROOT_DIR_ . Tools::str_replace_once(__PS_BASE_URI__, DIRECTORY_SEPARATOR, $mediaUri); - - if (!@filemtime($fileUri) || 0 === @filesize($fileUri)) { - return false; - } - - $mediaUri = str_replace('//', '/', $mediaUri); - } - - if ($cssMediaType) { - return [$mediaUri => $cssMediaType]; - } - - return $mediaUri; - } - - /** - * Get the webpack chunks for a given entry name. - * - * @param string $entry Entry name - * - * @return array Array with chunk files, should be loaded in the given order - * - * @since 3.4.0 - */ - public static function getWebpackChunks($entry): array - { - static $manifest = null; - if (!$manifest) { - $manifest = []; - $manifestFiles = include _PS_MODULE_DIR_ . 'mollie/views/js/dist/manifest.php'; - if (!$manifestFiles) { - return []; - } - foreach (include(_PS_MODULE_DIR_ . 'mollie/views/js/dist/manifest.php') as $chunk) { - $manifest[$chunk['name']] = array_map(function ($chunk) { - return UrlPathUtility::getMediaPath(_PS_MODULE_DIR_ . "mollie/views/js/dist/{$chunk}"); - }, $chunk['files']); - } - } - - return isset($manifest[$entry]) ? $manifest[$entry] : []; - } -} diff --git a/src/Verification/Shipment/CanSendShipment.php b/src/Verification/Shipment/CanSendShipment.php index 995d7064a..099cedf86 100644 --- a/src/Verification/Shipment/CanSendShipment.php +++ b/src/Verification/Shipment/CanSendShipment.php @@ -12,10 +12,8 @@ namespace Mollie\Verification\Shipment; -use Exception; use Mollie\Adapter\ConfigurationAdapter; use Mollie\Config\Config; -use Mollie\Enum\PaymentTypeEnum; use Mollie\Exception\ShipmentCannotBeSentException; use Mollie\Handler\Api\OrderEndpointPaymentTypeHandlerInterface; use Mollie\Provider\Shipment\AutomaticShipmentSenderStatusesProviderInterface; @@ -24,7 +22,6 @@ use Mollie\Verification\IsPaymentInformationAvailable; use Order; use OrderState; -use PrestaShopLogger; if (!defined('_PS_VERSION_')) { exit; @@ -80,11 +77,6 @@ public function __construct( */ public function verify(Order $order, OrderState $orderState): bool { - /* todo: doesnt work with no tracking information. Will need to create new validation */ - // if (!$this->hasShipmentInformation($order->reference)) { - // throw new ShipmentCannotBeSentException('Shipment information cannot be sent. No shipment information found by order reference', ShipmentCannotBeSentException::NO_SHIPPING_INFORMATION, $order->reference); - // } - if (!$this->isAutomaticShipmentAvailable((int) $orderState->id)) { return false; } @@ -93,26 +85,9 @@ public function verify(Order $order, OrderState $orderState): bool throw new ShipmentCannotBeSentException('Shipment information cannot be sent. Missing payment information', ShipmentCannotBeSentException::ORDER_HAS_NO_PAYMENT_INFORMATION, $order->reference); } - if (!$this->isRegularPayment((int) $order->id)) { - throw new ShipmentCannotBeSentException('Shipment information cannot be sent. Is regular payment. In order to ship, please use Orders API.', ShipmentCannotBeSentException::PAYMENT_IS_NOT_ORDER, $order->reference); - } - return true; } - private function isRegularPayment(int $orderId): bool - { - $payment = $this->paymentMethodRepository->getPaymentBy('order_id', (int) $orderId); - - if (empty($payment)) { - return false; - } - - $paymentType = $this->endpointPaymentTypeHandler->getPaymentTypeFromTransactionId($payment['transaction_id']); - - return (int) $paymentType === PaymentTypeEnum::PAYMENT_TYPE_ORDER; - } - private function isAutomaticShipmentAvailable(int $orderStateId): bool { if (!$this->isAutomaticShipmentInformationSenderEnabled()) { @@ -126,17 +101,6 @@ private function isAutomaticShipmentAvailable(int $orderStateId): bool return true; } - private function hasShipmentInformation(string $orderReference): bool - { - try { - return !empty($this->shipmentService->getShipmentInformation($orderReference)); - } catch (Exception $e) { - PrestaShopLogger::addLog($e); - - return false; - } - } - private function isAutomaticShipmentInformationSenderEnabled(): bool { return (bool) $this->configurationAdapter->get(Config::MOLLIE_AUTO_SHIP_MAIN); diff --git a/tests/Unit/Utility/RefundUtilityTest.php b/tests/Unit/Utility/RefundUtilityTest.php index 24b7e7821..30d6e541f 100644 --- a/tests/Unit/Utility/RefundUtilityTest.php +++ b/tests/Unit/Utility/RefundUtilityTest.php @@ -17,33 +17,6 @@ class RefundUtilityTest extends BaseTestCase { - /** - * @dataProvider getRefundLinesDataProvider - * - * @param $lines - * @param $result - */ - public function testGetRefundLines($lines, $result) - { - $refunds = RefundUtility::getRefundLines($lines); - - $this->assertEquals($result, $refunds); - } - - /** - * @dataProvider getIsOrderLinesRefundPossibleDataProvider - * - * @param $lines - * @param $availableRefund - * @param $result - */ - public function testIsOrderLinesRefundPossible($lines, $availableRefund, $result) - { - $refunds = RefundUtility::isOrderLinesRefundPossible($lines, $availableRefund); - - $this->assertEquals($result, $refunds); - } - public function getRefundLinesDataProvider() { return [ diff --git a/tests/Unit/Verification/Shipment/CanSendShipmentTest.php b/tests/Unit/Verification/Shipment/CanSendShipmentTest.php index 2175dde56..fcc885d25 100644 --- a/tests/Unit/Verification/Shipment/CanSendShipmentTest.php +++ b/tests/Unit/Verification/Shipment/CanSendShipmentTest.php @@ -124,12 +124,6 @@ public function testCanSendShipment( $this->order->reference = 'test'; $this->orderState->id = 1; - $this->shipmentService - ->expects($this->any()) - ->method('getShipmentInformation') - ->willReturn($shipmentInformation) - ; - foreach ($configuration as $key => $value) { $this->configurationAdapter ->expects($this->any()) @@ -145,18 +139,6 @@ public function testCanSendShipment( ->willReturn($automaticShipmentSenderStatuses) ; - $this->paymentMethodRepository - ->expects($this->any()) - ->method('getPaymentBy') - ->willReturn($paymentInformation) - ; - - $this->orderEndpointPaymentTypeHandler - ->expects($this->any()) - ->method('getPaymentTypeFromTransactionId') - ->willReturn($paymentType) - ; - $this->isPaymentInformationAvailable ->expects($this->any()) ->method('verify') @@ -296,11 +278,8 @@ public function getSendShipmentVerificationData() ], 'paymentInformationAvailable' => true, 'paymentType' => PaymentTypeEnum::PAYMENT_TYPE_PAYMENT, - 'exception' => [ - 'class' => ShipmentCannotBeSentException::class, - 'code' => ShipmentCannotBeSentException::PAYMENT_IS_NOT_ORDER, - ], - 'expected' => null, + 'exception' => [], + 'expected' => true, ], ]; } diff --git a/views/js/.babelrc b/views/js/.babelrc deleted file mode 100644 index f10cfd9ac..000000000 --- a/views/js/.babelrc +++ /dev/null @@ -1,22 +0,0 @@ -{ - "plugins": [ - "@babel/plugin-syntax-dynamic-import", - [ - "module-resolver", - { - "root": [ - "." - ], - "alias": { - "@carrierconfig": "./src/back/carrierconfig", - "@methodconfig": "./src/back/methodconfig", - "@transaction": "./src/back/transaction", - "@updater": "./src/back/updater", - "@banks": "./src/front/banks", - "@qrcode": "./src/front/qrcode", - "@shared": "./src/shared" - } - } - ] - ] -} diff --git a/views/js/.eslintrc b/views/js/.eslintrc deleted file mode 100644 index 25d382ba0..000000000 --- a/views/js/.eslintrc +++ /dev/null @@ -1,56 +0,0 @@ -{ - "extends": [ - "plugin:@typescript-eslint/recommended", - "@mollie/eslint-config-react" - ], - "parser": "@typescript-eslint/parser", - "parserOptions": { - "jsx": true, - "useJSXTextNode": true - }, - "settings": { - "react": { - "version": "detect" - }, - "import/resolver": { - "node": { - "extensions": [ - ".js", - ".jsx", - ".ts", - ".tsx" - ] - } - } - }, - "plugins": [ - "import", - "@typescript-eslint", - "react-hooks" - ], - "rules": { - "@typescript-eslint/interface-name-prefix": [ - "error", - "always" - ], - "@typescript-eslint/indent": [ - "error", - 2 - ], - "@typescript-eslint/array-type": [ - "error", - "generic" - ], - "@typescript-eslint/no-explicit-any": "off", - "react-hooks/rules-of-hooks": "error", - "no-console": "off" - }, - "overrides": [ - { - "files": "*.[jt]s" - }, - { - "files": "*.[jt]sx" - } - ] -} diff --git a/views/js/.gitignore b/views/js/.gitignore deleted file mode 100644 index b05624204..000000000 --- a/views/js/.gitignore +++ /dev/null @@ -1,3 +0,0 @@ -*.css.d.ts -ignoreme/** -node_modules/** diff --git a/views/js/admin/order_info.js b/views/js/admin/order_info.js new file mode 100644 index 000000000..40e21129a --- /dev/null +++ b/views/js/admin/order_info.js @@ -0,0 +1,339 @@ +/** + * Mollie https://www.mollie.nl + * + * @author Mollie B.V. + * @copyright Mollie B.V. + * @license https://github.com/mollie/PrestaShop/blob/master/LICENSE.md + * + * @see https://github.com/mollie/PrestaShop + */ +$(document).ready(function () { + var actionContext = {}; + + function showModal(action, productId, productAmount, orderline) { + var amount = productAmount; + + // For refund actions, get amount from input field if not provided + if ((action === 'refund' || action === 'refundAll') && amount === undefined) { + amount = $('#mollie-refund-amount').val(); + } + + // For capture actions, get amount from input field if not provided + if ((action === 'capture' || action === 'captureAll') && amount === undefined) { + amount = $('#mollie-capture-amount').val(); + } + + if (!transaction_id || !resource) { + console.error('Missing required config values:', { transaction_id, resource }); + showErrorMessage(trans.configurationError); + return; + } + + actionContext = { + action: action, + productId: productId, + transactionId: transaction_id, + resource: resource, + amount: amount, + orderline: orderline || null, + }; + + if (action === 'refund' || action === 'refundAll') { + // Update modal message based on action type + if (action === 'refundAll') { + $('#mollie-refund-modal-message').text(trans.refundFullOrderConfirm); + } else { + $('#mollie-refund-modal-message').text(trans.refundOrderConfirm); + } + $('#mollieRefundModal').modal('show'); + } else if (action === 'ship' || action === 'shipAll') { + $('#mollieShipModal').modal('show'); + } else if (action === 'capture' || action === 'captureAll') { + // Update modal message based on action type + if (action === 'captureAll') { + $('#mollie-capture-modal-message').text(trans.captureFullOrderConfirm); + } else { + $('#mollie-capture-modal-message').text(trans.capturePaymentConfirm); + } + $('#mollieCaptureModal').modal('show'); + } else if (action === 'cancel' || action === 'cancelAll') { + // Update modal message based on action type + if (action === 'cancelAll') { + $('#mollie-cancel-modal-message').text(trans.cancelFullOrderConfirm); + } else { + $('#mollie-cancel-modal-message').text(trans.cancelOrderLineConfirm); + } + $('#mollieCancelModal').modal('show'); + } + } + + $('.mollie-refund-btn').on('click', function() { + var productId = $(this).data('product'); + var amount = $(this).data('price'); + var orderline = $(this).data('orderline'); + + showModal('refund', productId, amount, orderline); + }); + + $('.mollie-ship-btn').on('click', function() { + var productId = $(this).data('product'); + var orderline = $(this).data('orderline'); + + showModal('ship', productId, null, orderline); + }); + + $('.mollie-capture-btn').on('click', function() { + var productId = $(this).data('product'); + var amount = $(this).data('price'); + + showModal('capture', productId, amount); + }); + + $('.mollie-cancel-btn').on('click', function() { + var orderline = $(this).data('orderline'); + + showModal('cancel', null, null, orderline); + }); + + $('#mollie-initiate-refund').on('click', function() { + var amount = $('#mollie-refund-amount').val(); + if (!amount || amount <= 0) { + showErrorMessage(trans.validRefundAmountRequired); + return; + } + showModal('refundAll', null); + }); + + $('#mollie-refund-all').on('click', function() { + showModal('refundAll', null); + }); + + $('#mollie-refund-all-orders').on('click', function() { + showModal('refundAll', null); + }); + + $('#mollie-initiate-capture').on('click', function() { + var amount = $('#mollie-capture-amount').val(); + if (!amount || amount <= 0) { + showErrorMessage(trans.validCaptureAmountRequired); + return; + } + showModal('captureAll', null, amount); + }); + + $('#mollie-ship-all').on('click', function() { + showModal('shipAll', null); + }); + + $('#mollie-capture-all').on('click', function() { + var amount = $('#mollie-capture-amount').val(); + if (!amount || amount <= 0) { + showErrorMessage(trans.validCaptureAmountRequired); + return; + } + showModal('captureAll', null, amount); + }); + + $('#mollie-cancel-all').on('click', function() { + showModal('cancelAll', null); + }); + + $('#mollieShipModal').on('show.bs.modal', function() { + $('#mollie-skip-shipping-details').prop('checked', false); + $('#mollie-carrier').val(''); + $('#mollie-tracking-number').val(''); + $('#mollie-tracking-url').val(''); + toggleShippingDetailsInputs(false); + }); + + $('#mollie-skip-shipping-details').on('change', function() { + var isChecked = $(this).is(':checked'); + toggleShippingDetailsInputs(isChecked); + }); + + function toggleShippingDetailsInputs(disabled) { + $('#mollie-carrier').prop('disabled', disabled); + $('#mollie-tracking-number').prop('disabled', disabled); + $('#mollie-tracking-url').prop('disabled', disabled); + + if (disabled) { + $('#mollie-shipping-details-container').addClass('disabled'); + $('#mollie-carrier').val(''); + $('#mollie-tracking-number').val(''); + $('#mollie-tracking-url').val(''); + } else { + $('#mollie-shipping-details-container').removeClass('disabled'); + } + } + + $('#mollieRefundModalConfirm').on('click', function() { + $('#mollieRefundModal').modal('hide'); + processOrderAction(actionContext); + }); + + $('#mollieShipModalConfirm').on('click', function() { + $('#mollieShipModal').modal('hide'); + processOrderAction(actionContext); + }); + + $('#mollieCaptureModalConfirm').on('click', function() { + $('#mollieCaptureModal').modal('hide'); + processOrderAction(actionContext); + }); + + $('#mollieCancelModalConfirm').on('click', function() { + $('#mollieCancelModal').modal('hide'); + processOrderAction(actionContext); + }); + + function processOrderAction(context) { + var data = { + ajax: 1, + action: context.action, + orderId: order_id, + transactionId: context.transactionId, + productId: context.productId, + + }; + + // Only add refundAmount for partial refunds, not for refundAll + if (context.action === 'refund' && context.amount) { + data.refundAmount = context.amount; + } else if (context.action === 'refundAll') { + // For refundAll, don't pass amount to let the service calculate the full refundable amount + data.refundAmount = null; + } + + // Add capture amount for capture actions + if (context.action === 'capture' || context.action === 'captureAll') { + data.captureAmount = context.amount; + } + + if (context.productId && (context.action === 'refund' || context.action === 'ship' || context.action === 'capture')) { + data.orderLines = [{ + id: context.productId, + }]; + } + + if (context.action === 'ship' || context.action === 'shipAll') { + var skipShippingDetails = $('#mollie-skip-shipping-details').is(':checked'); + + if (!skipShippingDetails) { + var carrier = $('#mollie-carrier').val().trim(); + var trackingNumber = $('#mollie-tracking-number').val().trim(); + var trackingUrl = $('#mollie-tracking-url').val().trim(); + + data.tracking = { + carrier: carrier || null, + code: trackingNumber || null, + tracking_url: trackingUrl || null + }; + + } + } + + if (actionContext.orderline) { + data.orderline = actionContext.orderline; + } + + // Add cancel-specific data + if (context.action === 'cancel' || context.action === 'cancelAll') { + // Cancel actions don't need additional data beyond orderline + } + + if (!ajax_url) { + console.error('AJAX URL not found in config'); + showErrorMessage(trans.ajaxUrlNotFound); + return; + } + + $.ajax({ + url: ajax_url, + type: 'POST', + data: data, + dataType: 'json', + beforeSend: function() { + showLoadingState(); + }, + success: function(response) { + $('#mollie-loading').remove(); + if (response.success) { + var successMessage = response.message || response.msg_success || trans.actionCompletedSuccessfully; + if (response.detailed || response.msg_details) { + successMessage += ' ' + (response.detailed || response.msg_details); + } + showSuccessMessage(successMessage); + if (response.payment) { + console.log('Payment updated:', response.payment); + } + if (response.order) { + console.log('Order updated:', response.order); + } + } else { + showErrorMessage(response.message || response.detailed || trans.errorOccurred); + } + }, + error: function(xhr, status, error) { + $('#mollie-loading').remove(); + showErrorMessage(trans.networkErrorOccurred); + console.error('AJAX Error:', error); + } + }); + } + + function showLoadingState() { + const overlayId = 'mollie-loading'; + if ($('#' + overlayId).length) { + return; + } + + const overlayStyles = [ + 'position: fixed', + 'top: 0', + 'left: 0', + 'width: 100%', + 'height: 100%', + 'background: rgba(0,0,0,0.5)', + 'z-index: 9999', + 'display: flex', + 'align-items: center', + 'justify-content: center' + ].join('; '); + + const boxStyles = [ + 'background: white', + 'padding: 20px', + 'border-radius: 5px', + 'font-size: 1.2em', + 'box-shadow: 0 2px 8px rgba(0,0,0,0.15)' + ].join('; '); + + const overlayHtml = ` +
+
${trans.processing}
+
+ `; + + $('body').append(overlayHtml); + } + + function showSuccessMessage(message) { + var alertHtml = ''; + + $('.mollie-order-info-panel').prepend(alertHtml); + + setTimeout(function() { + $('.alert-success').fadeOut(); + }, 5000); + } + + function showErrorMessage(message) { + var alertHtml = ''; + + $('.mollie-order-info-panel').prepend(alertHtml); + + setTimeout(function() { + $('.alert-danger').fadeOut(); + }, 5000); + } +}); \ No newline at end of file diff --git a/views/js/dist/0.min.js b/views/js/dist/0.min.js deleted file mode 100644 index 5a209e842..000000000 --- a/views/js/dist/0.min.js +++ /dev/null @@ -1,10 +0,0 @@ -/*! - * - * Mollie https://www.mollie.nl - * @author Mollie B.V. - * @copyright Mollie B.V. - * @link https://github.com/mollie/PrestaShop - * @license https://github.com/mollie/PrestaShop/blob/master/LICENSE.md - * - */ -(window.webpackJsonP_mollie=window.webpackJsonP_mollie||[]).push([[0],{205:function(e,n,t){"use strict";t.r(n),t.d(n,"default",(function(){return d}));var a=t(56),r=t.n(a),l=t(59),u=t(83),o=Object(a.lazy)((function(){return Promise.all([t.e("vendors~transactionOrder~transactionRefund~updater"),t.e("vendors~transactionOrder~transactionRefund"),t.e("transactionRefund")]).then(t.bind(null,273))})),c=Object(a.lazy)((function(){return Promise.all([t.e("vendors~transactionOrder~transactionRefund~updater"),t.e("vendors~transactionOrder~transactionRefund"),t.e("vendors~transactionOrder"),t.e("transactionOrder")]).then(t.bind(null,272))}));function d(){var e=Object(a.useMemo)((function(){return u.default.getState()}),[]),n=e.payment,t=e.order;return r.a.createElement(l.a.Provider,{value:u.default},r.a.createElement(r.a.Fragment,null,n&&r.a.createElement(a.Suspense,{fallback:null},r.a.createElement(o,null)),t&&r.a.createElement(a.Suspense,{fallback:null},r.a.createElement(c,null))))}}}]); \ No newline at end of file diff --git a/views/js/dist/0.min.js.map b/views/js/dist/0.min.js.map deleted file mode 100644 index 49707e1de..000000000 --- a/views/js/dist/0.min.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"sources":["webpack://MollieModule.[name]/./node_modules/redux/es/redux.js","webpack://MollieModule.[name]/./node_modules/symbol-observable/es/index.js","webpack://MollieModule.[name]/./node_modules/symbol-observable/es/ponyfill.js","webpack://MollieModule.[name]/(webpack)/buildin/harmony-module.js"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAA6C;;AAE7C;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA,WAAW,IAAI;AACf,aAAa,QAAQ;AACrB;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,WAAW,SAAS;AACpB;AACA;AACA,WAAW,IAAI;AACf;AACA;AACA;AACA;AACA;AACA,WAAW,SAAS;AACpB;AACA;AACA;AACA;AACA,aAAa,MAAM;AACnB;AACA;;AAEA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,eAAe,IAAI;AACnB;;;AAGA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,aAAa,SAAS;AACtB,eAAe,SAAS;AACxB;;;AAGA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,aAAa,OAAO;AACpB;AACA;AACA;AACA;AACA;AACA,eAAe,OAAO;AACtB;AACA;AACA;AACA;;;AAGA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA,KAAK;AACL;AACA;;AAEA;;AAEA,mBAAmB,sBAAsB;AACzC;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,aAAa,SAAS;AACtB,eAAe;AACf;;;AAGA;AACA;AACA;AACA;;AAEA,iCAAiC;AACjC;AACA;AACA;;AAEA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA,eAAe,WAAW;AAC1B;AACA;AACA;;;AAGA;AACA;;AAEA;AACA;AACA;AACA;AACA,iBAAiB,OAAO;AACxB;AACA,mBAAmB,aAAa;AAChC;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK,OAAO,yDAAY;AACxB;AACA,KAAK;AACL,GAAG;AACH;AACA;;;AAGA;AACA;AACA,GAAG;AACH;AACA;AACA;AACA;AACA;AACA,GAAG,QAAQ,yDAAY;AACvB;;AAEA;AACA;AACA;AACA,WAAW,OAAO;AAClB,aAAa;AACb;AACA;AACA;AACA;AACA;AACA;AACA;;;AAGA;AACA;AACA;AACA;AACA;AACA,GAAG,aAAa;;AAEhB;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA,oEAAoE;AACpE;;AAEA;AACA;AACA,GAAG;AACH;AACA;AACA,GAAG;AACH;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,KAAK;;AAEL;AACA;AACA;;AAEA;AACA;AACA,KAAK;AACL;AACA;AACA,GAAG;AACH;AACA;AACA;AACA;AACA;AACA;AACA;AACA,WAAW,OAAO;AAClB;AACA;AACA;AACA;AACA;AACA;AACA,aAAa,SAAS;AACtB;AACA;;;AAGA;AACA;AACA;;AAEA,iBAAiB,wBAAwB;AACzC;;AAEA,QAAQ,IAAqC;AAC7C;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA,oDAAoD;AACpD;;AAEA;;AAEA,MAAM,IAAqC;AAC3C;AACA;;AAEA;;AAEA;AACA;AACA,GAAG;AACH;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA,QAAQ,IAAqC;AAC7C;;AAEA;AACA;AACA;AACA;;AAEA;AACA;;AAEA,oBAAoB,8BAA8B;AAClD;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,WAAW,gBAAgB;AAC3B;AACA;AACA;AACA,WAAW,SAAS;AACpB;AACA;AACA,aAAa,gBAAgB;AAC7B;AACA;AACA;AACA;;;AAGA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;AACL,GAAG;AACH;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA,GAAG;AACH;AACA;;AAEA;AACA,iBAAiB,sBAAsB;AACvC;;AAEA;AACA;AACA;AACA,OAAO;AACP,KAAK;AACL;AACA,KAAK;AACL;AACA;AACA,OAAO;AACP;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,WAAW,YAAY;AACvB,aAAa,SAAS;AACtB;AACA;AACA;AACA;AACA,sEAAsE,aAAa;AACnF;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA,GAAG;AACH;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,WAAW,YAAY;AACvB,aAAa,SAAS;AACtB;;AAEA;AACA,4EAA4E,aAAa;AACzF;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,OAAO;AACP;AACA,8BAA8B;AAC9B;AACA,OAAO;AACP;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;;AAEA,IAAI,KAAqC;AACzC;AACA;;AAEgI;;;;;;;;;;;;;ACtpBhI;AAAA;AAAA;AACqC;;AAErC;;AAEA;AACA;AACA,CAAC;AACD;AACA,CAAC;AACD;AACA,CAAC,UAAU,IAA6B;AACxC;AACA,CAAC,MAAM,EAEN;;AAED,aAAa,4DAAQ;AACN,qEAAM,EAAC;;;;;;;;;;;;;;AClBtB;AAAA;AAAe;AACf;AACA;;AAEA;AACA;AACA;AACA,GAAG;AACH;AACA;AACA;AACA,EAAE;AACF;AACA;;AAEA;AACA;;;;;;;;;;;;AChBA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,GAAG;AACH;AACA;AACA;AACA;AACA;AACA,GAAG;AACH;AACA;AACA,GAAG;AACH;AACA;AACA;AACA","file":"0.min.js","sourcesContent":["import $$observable from 'symbol-observable';\n\n/**\n * These are private action types reserved by Redux.\n * For any unknown actions, you must return the current state.\n * If the current state is undefined, you must return the initial state.\n * Do not reference these action types directly in your code.\n */\nvar randomString = function randomString() {\n return Math.random().toString(36).substring(7).split('').join('.');\n};\n\nvar ActionTypes = {\n INIT: \"@@redux/INIT\" + randomString(),\n REPLACE: \"@@redux/REPLACE\" + randomString(),\n PROBE_UNKNOWN_ACTION: function PROBE_UNKNOWN_ACTION() {\n return \"@@redux/PROBE_UNKNOWN_ACTION\" + randomString();\n }\n};\n\n/**\n * @param {any} obj The object to inspect.\n * @returns {boolean} True if the argument appears to be a plain object.\n */\nfunction isPlainObject(obj) {\n if (typeof obj !== 'object' || obj === null) return false;\n var proto = obj;\n\n while (Object.getPrototypeOf(proto) !== null) {\n proto = Object.getPrototypeOf(proto);\n }\n\n return Object.getPrototypeOf(obj) === proto;\n}\n\n/**\n * Creates a Redux store that holds the state tree.\n * The only way to change the data in the store is to call `dispatch()` on it.\n *\n * There should only be a single store in your app. To specify how different\n * parts of the state tree respond to actions, you may combine several reducers\n * into a single reducer function by using `combineReducers`.\n *\n * @param {Function} reducer A function that returns the next state tree, given\n * the current state tree and the action to handle.\n *\n * @param {any} [preloadedState] The initial state. You may optionally specify it\n * to hydrate the state from the server in universal apps, or to restore a\n * previously serialized user session.\n * If you use `combineReducers` to produce the root reducer function, this must be\n * an object with the same shape as `combineReducers` keys.\n *\n * @param {Function} [enhancer] The store enhancer. You may optionally specify it\n * to enhance the store with third-party capabilities such as middleware,\n * time travel, persistence, etc. The only store enhancer that ships with Redux\n * is `applyMiddleware()`.\n *\n * @returns {Store} A Redux store that lets you read the state, dispatch actions\n * and subscribe to changes.\n */\n\nfunction createStore(reducer, preloadedState, enhancer) {\n var _ref2;\n\n if (typeof preloadedState === 'function' && typeof enhancer === 'function' || typeof enhancer === 'function' && typeof arguments[3] === 'function') {\n throw new Error('It looks like you are passing several store enhancers to ' + 'createStore(). This is not supported. Instead, compose them ' + 'together to a single function.');\n }\n\n if (typeof preloadedState === 'function' && typeof enhancer === 'undefined') {\n enhancer = preloadedState;\n preloadedState = undefined;\n }\n\n if (typeof enhancer !== 'undefined') {\n if (typeof enhancer !== 'function') {\n throw new Error('Expected the enhancer to be a function.');\n }\n\n return enhancer(createStore)(reducer, preloadedState);\n }\n\n if (typeof reducer !== 'function') {\n throw new Error('Expected the reducer to be a function.');\n }\n\n var currentReducer = reducer;\n var currentState = preloadedState;\n var currentListeners = [];\n var nextListeners = currentListeners;\n var isDispatching = false;\n /**\n * This makes a shallow copy of currentListeners so we can use\n * nextListeners as a temporary list while dispatching.\n *\n * This prevents any bugs around consumers calling\n * subscribe/unsubscribe in the middle of a dispatch.\n */\n\n function ensureCanMutateNextListeners() {\n if (nextListeners === currentListeners) {\n nextListeners = currentListeners.slice();\n }\n }\n /**\n * Reads the state tree managed by the store.\n *\n * @returns {any} The current state tree of your application.\n */\n\n\n function getState() {\n if (isDispatching) {\n throw new Error('You may not call store.getState() while the reducer is executing. ' + 'The reducer has already received the state as an argument. ' + 'Pass it down from the top reducer instead of reading it from the store.');\n }\n\n return currentState;\n }\n /**\n * Adds a change listener. It will be called any time an action is dispatched,\n * and some part of the state tree may potentially have changed. You may then\n * call `getState()` to read the current state tree inside the callback.\n *\n * You may call `dispatch()` from a change listener, with the following\n * caveats:\n *\n * 1. The subscriptions are snapshotted just before every `dispatch()` call.\n * If you subscribe or unsubscribe while the listeners are being invoked, this\n * will not have any effect on the `dispatch()` that is currently in progress.\n * However, the next `dispatch()` call, whether nested or not, will use a more\n * recent snapshot of the subscription list.\n *\n * 2. The listener should not expect to see all state changes, as the state\n * might have been updated multiple times during a nested `dispatch()` before\n * the listener is called. It is, however, guaranteed that all subscribers\n * registered before the `dispatch()` started will be called with the latest\n * state by the time it exits.\n *\n * @param {Function} listener A callback to be invoked on every dispatch.\n * @returns {Function} A function to remove this change listener.\n */\n\n\n function subscribe(listener) {\n if (typeof listener !== 'function') {\n throw new Error('Expected the listener to be a function.');\n }\n\n if (isDispatching) {\n throw new Error('You may not call store.subscribe() while the reducer is executing. ' + 'If you would like to be notified after the store has been updated, subscribe from a ' + 'component and invoke store.getState() in the callback to access the latest state. ' + 'See https://redux.js.org/api-reference/store#subscribelistener for more details.');\n }\n\n var isSubscribed = true;\n ensureCanMutateNextListeners();\n nextListeners.push(listener);\n return function unsubscribe() {\n if (!isSubscribed) {\n return;\n }\n\n if (isDispatching) {\n throw new Error('You may not unsubscribe from a store listener while the reducer is executing. ' + 'See https://redux.js.org/api-reference/store#subscribelistener for more details.');\n }\n\n isSubscribed = false;\n ensureCanMutateNextListeners();\n var index = nextListeners.indexOf(listener);\n nextListeners.splice(index, 1);\n currentListeners = null;\n };\n }\n /**\n * Dispatches an action. It is the only way to trigger a state change.\n *\n * The `reducer` function, used to create the store, will be called with the\n * current state tree and the given `action`. Its return value will\n * be considered the **next** state of the tree, and the change listeners\n * will be notified.\n *\n * The base implementation only supports plain object actions. If you want to\n * dispatch a Promise, an Observable, a thunk, or something else, you need to\n * wrap your store creating function into the corresponding middleware. For\n * example, see the documentation for the `redux-thunk` package. Even the\n * middleware will eventually dispatch plain object actions using this method.\n *\n * @param {Object} action A plain object representing “what changed”. It is\n * a good idea to keep actions serializable so you can record and replay user\n * sessions, or use the time travelling `redux-devtools`. An action must have\n * a `type` property which may not be `undefined`. It is a good idea to use\n * string constants for action types.\n *\n * @returns {Object} For convenience, the same action object you dispatched.\n *\n * Note that, if you use a custom middleware, it may wrap `dispatch()` to\n * return something else (for example, a Promise you can await).\n */\n\n\n function dispatch(action) {\n if (!isPlainObject(action)) {\n throw new Error('Actions must be plain objects. ' + 'Use custom middleware for async actions.');\n }\n\n if (typeof action.type === 'undefined') {\n throw new Error('Actions may not have an undefined \"type\" property. ' + 'Have you misspelled a constant?');\n }\n\n if (isDispatching) {\n throw new Error('Reducers may not dispatch actions.');\n }\n\n try {\n isDispatching = true;\n currentState = currentReducer(currentState, action);\n } finally {\n isDispatching = false;\n }\n\n var listeners = currentListeners = nextListeners;\n\n for (var i = 0; i < listeners.length; i++) {\n var listener = listeners[i];\n listener();\n }\n\n return action;\n }\n /**\n * Replaces the reducer currently used by the store to calculate the state.\n *\n * You might need this if your app implements code splitting and you want to\n * load some of the reducers dynamically. You might also need this if you\n * implement a hot reloading mechanism for Redux.\n *\n * @param {Function} nextReducer The reducer for the store to use instead.\n * @returns {void}\n */\n\n\n function replaceReducer(nextReducer) {\n if (typeof nextReducer !== 'function') {\n throw new Error('Expected the nextReducer to be a function.');\n }\n\n currentReducer = nextReducer; // This action has a similiar effect to ActionTypes.INIT.\n // Any reducers that existed in both the new and old rootReducer\n // will receive the previous state. This effectively populates\n // the new state tree with any relevant data from the old one.\n\n dispatch({\n type: ActionTypes.REPLACE\n });\n }\n /**\n * Interoperability point for observable/reactive libraries.\n * @returns {observable} A minimal observable of state changes.\n * For more information, see the observable proposal:\n * https://github.com/tc39/proposal-observable\n */\n\n\n function observable() {\n var _ref;\n\n var outerSubscribe = subscribe;\n return _ref = {\n /**\n * The minimal observable subscription method.\n * @param {Object} observer Any object that can be used as an observer.\n * The observer object should have a `next` method.\n * @returns {subscription} An object with an `unsubscribe` method that can\n * be used to unsubscribe the observable from the store, and prevent further\n * emission of values from the observable.\n */\n subscribe: function subscribe(observer) {\n if (typeof observer !== 'object' || observer === null) {\n throw new TypeError('Expected the observer to be an object.');\n }\n\n function observeState() {\n if (observer.next) {\n observer.next(getState());\n }\n }\n\n observeState();\n var unsubscribe = outerSubscribe(observeState);\n return {\n unsubscribe: unsubscribe\n };\n }\n }, _ref[$$observable] = function () {\n return this;\n }, _ref;\n } // When a store is created, an \"INIT\" action is dispatched so that every\n // reducer returns their initial state. This effectively populates\n // the initial state tree.\n\n\n dispatch({\n type: ActionTypes.INIT\n });\n return _ref2 = {\n dispatch: dispatch,\n subscribe: subscribe,\n getState: getState,\n replaceReducer: replaceReducer\n }, _ref2[$$observable] = observable, _ref2;\n}\n\n/**\n * Prints a warning in the console if it exists.\n *\n * @param {String} message The warning message.\n * @returns {void}\n */\nfunction warning(message) {\n /* eslint-disable no-console */\n if (typeof console !== 'undefined' && typeof console.error === 'function') {\n console.error(message);\n }\n /* eslint-enable no-console */\n\n\n try {\n // This error was thrown as a convenience so that if you enable\n // \"break on all exceptions\" in your console,\n // it would pause the execution at this line.\n throw new Error(message);\n } catch (e) {} // eslint-disable-line no-empty\n\n}\n\nfunction getUndefinedStateErrorMessage(key, action) {\n var actionType = action && action.type;\n var actionDescription = actionType && \"action \\\"\" + String(actionType) + \"\\\"\" || 'an action';\n return \"Given \" + actionDescription + \", reducer \\\"\" + key + \"\\\" returned undefined. \" + \"To ignore an action, you must explicitly return the previous state. \" + \"If you want this reducer to hold no value, you can return null instead of undefined.\";\n}\n\nfunction getUnexpectedStateShapeWarningMessage(inputState, reducers, action, unexpectedKeyCache) {\n var reducerKeys = Object.keys(reducers);\n var argumentName = action && action.type === ActionTypes.INIT ? 'preloadedState argument passed to createStore' : 'previous state received by the reducer';\n\n if (reducerKeys.length === 0) {\n return 'Store does not have a valid reducer. Make sure the argument passed ' + 'to combineReducers is an object whose values are reducers.';\n }\n\n if (!isPlainObject(inputState)) {\n return \"The \" + argumentName + \" has unexpected type of \\\"\" + {}.toString.call(inputState).match(/\\s([a-z|A-Z]+)/)[1] + \"\\\". Expected argument to be an object with the following \" + (\"keys: \\\"\" + reducerKeys.join('\", \"') + \"\\\"\");\n }\n\n var unexpectedKeys = Object.keys(inputState).filter(function (key) {\n return !reducers.hasOwnProperty(key) && !unexpectedKeyCache[key];\n });\n unexpectedKeys.forEach(function (key) {\n unexpectedKeyCache[key] = true;\n });\n if (action && action.type === ActionTypes.REPLACE) return;\n\n if (unexpectedKeys.length > 0) {\n return \"Unexpected \" + (unexpectedKeys.length > 1 ? 'keys' : 'key') + \" \" + (\"\\\"\" + unexpectedKeys.join('\", \"') + \"\\\" found in \" + argumentName + \". \") + \"Expected to find one of the known reducer keys instead: \" + (\"\\\"\" + reducerKeys.join('\", \"') + \"\\\". Unexpected keys will be ignored.\");\n }\n}\n\nfunction assertReducerShape(reducers) {\n Object.keys(reducers).forEach(function (key) {\n var reducer = reducers[key];\n var initialState = reducer(undefined, {\n type: ActionTypes.INIT\n });\n\n if (typeof initialState === 'undefined') {\n throw new Error(\"Reducer \\\"\" + key + \"\\\" returned undefined during initialization. \" + \"If the state passed to the reducer is undefined, you must \" + \"explicitly return the initial state. The initial state may \" + \"not be undefined. If you don't want to set a value for this reducer, \" + \"you can use null instead of undefined.\");\n }\n\n if (typeof reducer(undefined, {\n type: ActionTypes.PROBE_UNKNOWN_ACTION()\n }) === 'undefined') {\n throw new Error(\"Reducer \\\"\" + key + \"\\\" returned undefined when probed with a random type. \" + (\"Don't try to handle \" + ActionTypes.INIT + \" or other actions in \\\"redux/*\\\" \") + \"namespace. They are considered private. Instead, you must return the \" + \"current state for any unknown actions, unless it is undefined, \" + \"in which case you must return the initial state, regardless of the \" + \"action type. The initial state may not be undefined, but can be null.\");\n }\n });\n}\n/**\n * Turns an object whose values are different reducer functions, into a single\n * reducer function. It will call every child reducer, and gather their results\n * into a single state object, whose keys correspond to the keys of the passed\n * reducer functions.\n *\n * @param {Object} reducers An object whose values correspond to different\n * reducer functions that need to be combined into one. One handy way to obtain\n * it is to use ES6 `import * as reducers` syntax. The reducers may never return\n * undefined for any action. Instead, they should return their initial state\n * if the state passed to them was undefined, and the current state for any\n * unrecognized action.\n *\n * @returns {Function} A reducer function that invokes every reducer inside the\n * passed object, and builds a state object with the same shape.\n */\n\n\nfunction combineReducers(reducers) {\n var reducerKeys = Object.keys(reducers);\n var finalReducers = {};\n\n for (var i = 0; i < reducerKeys.length; i++) {\n var key = reducerKeys[i];\n\n if (process.env.NODE_ENV !== 'production') {\n if (typeof reducers[key] === 'undefined') {\n warning(\"No reducer provided for key \\\"\" + key + \"\\\"\");\n }\n }\n\n if (typeof reducers[key] === 'function') {\n finalReducers[key] = reducers[key];\n }\n }\n\n var finalReducerKeys = Object.keys(finalReducers); // This is used to make sure we don't warn about the same\n // keys multiple times.\n\n var unexpectedKeyCache;\n\n if (process.env.NODE_ENV !== 'production') {\n unexpectedKeyCache = {};\n }\n\n var shapeAssertionError;\n\n try {\n assertReducerShape(finalReducers);\n } catch (e) {\n shapeAssertionError = e;\n }\n\n return function combination(state, action) {\n if (state === void 0) {\n state = {};\n }\n\n if (shapeAssertionError) {\n throw shapeAssertionError;\n }\n\n if (process.env.NODE_ENV !== 'production') {\n var warningMessage = getUnexpectedStateShapeWarningMessage(state, finalReducers, action, unexpectedKeyCache);\n\n if (warningMessage) {\n warning(warningMessage);\n }\n }\n\n var hasChanged = false;\n var nextState = {};\n\n for (var _i = 0; _i < finalReducerKeys.length; _i++) {\n var _key = finalReducerKeys[_i];\n var reducer = finalReducers[_key];\n var previousStateForKey = state[_key];\n var nextStateForKey = reducer(previousStateForKey, action);\n\n if (typeof nextStateForKey === 'undefined') {\n var errorMessage = getUndefinedStateErrorMessage(_key, action);\n throw new Error(errorMessage);\n }\n\n nextState[_key] = nextStateForKey;\n hasChanged = hasChanged || nextStateForKey !== previousStateForKey;\n }\n\n hasChanged = hasChanged || finalReducerKeys.length !== Object.keys(state).length;\n return hasChanged ? nextState : state;\n };\n}\n\nfunction bindActionCreator(actionCreator, dispatch) {\n return function () {\n return dispatch(actionCreator.apply(this, arguments));\n };\n}\n/**\n * Turns an object whose values are action creators, into an object with the\n * same keys, but with every function wrapped into a `dispatch` call so they\n * may be invoked directly. This is just a convenience method, as you can call\n * `store.dispatch(MyActionCreators.doSomething())` yourself just fine.\n *\n * For convenience, you can also pass an action creator as the first argument,\n * and get a dispatch wrapped function in return.\n *\n * @param {Function|Object} actionCreators An object whose values are action\n * creator functions. One handy way to obtain it is to use ES6 `import * as`\n * syntax. You may also pass a single function.\n *\n * @param {Function} dispatch The `dispatch` function available on your Redux\n * store.\n *\n * @returns {Function|Object} The object mimicking the original object, but with\n * every action creator wrapped into the `dispatch` call. If you passed a\n * function as `actionCreators`, the return value will also be a single\n * function.\n */\n\n\nfunction bindActionCreators(actionCreators, dispatch) {\n if (typeof actionCreators === 'function') {\n return bindActionCreator(actionCreators, dispatch);\n }\n\n if (typeof actionCreators !== 'object' || actionCreators === null) {\n throw new Error(\"bindActionCreators expected an object or a function, instead received \" + (actionCreators === null ? 'null' : typeof actionCreators) + \". \" + \"Did you write \\\"import ActionCreators from\\\" instead of \\\"import * as ActionCreators from\\\"?\");\n }\n\n var boundActionCreators = {};\n\n for (var key in actionCreators) {\n var actionCreator = actionCreators[key];\n\n if (typeof actionCreator === 'function') {\n boundActionCreators[key] = bindActionCreator(actionCreator, dispatch);\n }\n }\n\n return boundActionCreators;\n}\n\nfunction _defineProperty(obj, key, value) {\n if (key in obj) {\n Object.defineProperty(obj, key, {\n value: value,\n enumerable: true,\n configurable: true,\n writable: true\n });\n } else {\n obj[key] = value;\n }\n\n return obj;\n}\n\nfunction ownKeys(object, enumerableOnly) {\n var keys = Object.keys(object);\n\n if (Object.getOwnPropertySymbols) {\n keys.push.apply(keys, Object.getOwnPropertySymbols(object));\n }\n\n if (enumerableOnly) keys = keys.filter(function (sym) {\n return Object.getOwnPropertyDescriptor(object, sym).enumerable;\n });\n return keys;\n}\n\nfunction _objectSpread2(target) {\n for (var i = 1; i < arguments.length; i++) {\n var source = arguments[i] != null ? arguments[i] : {};\n\n if (i % 2) {\n ownKeys(source, true).forEach(function (key) {\n _defineProperty(target, key, source[key]);\n });\n } else if (Object.getOwnPropertyDescriptors) {\n Object.defineProperties(target, Object.getOwnPropertyDescriptors(source));\n } else {\n ownKeys(source).forEach(function (key) {\n Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));\n });\n }\n }\n\n return target;\n}\n\n/**\n * Composes single-argument functions from right to left. The rightmost\n * function can take multiple arguments as it provides the signature for\n * the resulting composite function.\n *\n * @param {...Function} funcs The functions to compose.\n * @returns {Function} A function obtained by composing the argument functions\n * from right to left. For example, compose(f, g, h) is identical to doing\n * (...args) => f(g(h(...args))).\n */\nfunction compose() {\n for (var _len = arguments.length, funcs = new Array(_len), _key = 0; _key < _len; _key++) {\n funcs[_key] = arguments[_key];\n }\n\n if (funcs.length === 0) {\n return function (arg) {\n return arg;\n };\n }\n\n if (funcs.length === 1) {\n return funcs[0];\n }\n\n return funcs.reduce(function (a, b) {\n return function () {\n return a(b.apply(void 0, arguments));\n };\n });\n}\n\n/**\n * Creates a store enhancer that applies middleware to the dispatch method\n * of the Redux store. This is handy for a variety of tasks, such as expressing\n * asynchronous actions in a concise manner, or logging every action payload.\n *\n * See `redux-thunk` package as an example of the Redux middleware.\n *\n * Because middleware is potentially asynchronous, this should be the first\n * store enhancer in the composition chain.\n *\n * Note that each middleware will be given the `dispatch` and `getState` functions\n * as named arguments.\n *\n * @param {...Function} middlewares The middleware chain to be applied.\n * @returns {Function} A store enhancer applying the middleware.\n */\n\nfunction applyMiddleware() {\n for (var _len = arguments.length, middlewares = new Array(_len), _key = 0; _key < _len; _key++) {\n middlewares[_key] = arguments[_key];\n }\n\n return function (createStore) {\n return function () {\n var store = createStore.apply(void 0, arguments);\n\n var _dispatch = function dispatch() {\n throw new Error('Dispatching while constructing your middleware is not allowed. ' + 'Other middleware would not be applied to this dispatch.');\n };\n\n var middlewareAPI = {\n getState: store.getState,\n dispatch: function dispatch() {\n return _dispatch.apply(void 0, arguments);\n }\n };\n var chain = middlewares.map(function (middleware) {\n return middleware(middlewareAPI);\n });\n _dispatch = compose.apply(void 0, chain)(store.dispatch);\n return _objectSpread2({}, store, {\n dispatch: _dispatch\n });\n };\n };\n}\n\n/*\n * This is a dummy function to check if the function name has been altered by minification.\n * If the function has been minified and NODE_ENV !== 'production', warn the user.\n */\n\nfunction isCrushed() {}\n\nif (process.env.NODE_ENV !== 'production' && typeof isCrushed.name === 'string' && isCrushed.name !== 'isCrushed') {\n warning('You are currently using minified code outside of NODE_ENV === \"production\". ' + 'This means that you are running a slower development build of Redux. ' + 'You can use loose-envify (https://github.com/zertosh/loose-envify) for browserify ' + 'or setting mode to production in webpack (https://webpack.js.org/concepts/mode/) ' + 'to ensure you have the correct code for your production build.');\n}\n\nexport { ActionTypes as __DO_NOT_USE__ActionTypes, applyMiddleware, bindActionCreators, combineReducers, compose, createStore };\n","/* global window */\nimport ponyfill from './ponyfill.js';\n\nvar root;\n\nif (typeof self !== 'undefined') {\n root = self;\n} else if (typeof window !== 'undefined') {\n root = window;\n} else if (typeof global !== 'undefined') {\n root = global;\n} else if (typeof module !== 'undefined') {\n root = module;\n} else {\n root = Function('return this')();\n}\n\nvar result = ponyfill(root);\nexport default result;\n","export default function symbolObservablePonyfill(root) {\n\tvar result;\n\tvar Symbol = root.Symbol;\n\n\tif (typeof Symbol === 'function') {\n\t\tif (Symbol.observable) {\n\t\t\tresult = Symbol.observable;\n\t\t} else {\n\t\t\tresult = Symbol('observable');\n\t\t\tSymbol.observable = result;\n\t\t}\n\t} else {\n\t\tresult = '@@observable';\n\t}\n\n\treturn result;\n};\n","module.exports = function(originalModule) {\n\tif (!originalModule.webpackPolyfill) {\n\t\tvar module = Object.create(originalModule);\n\t\t// module.parent = undefined by default\n\t\tif (!module.children) module.children = [];\n\t\tObject.defineProperty(module, \"loaded\", {\n\t\t\tenumerable: true,\n\t\t\tget: function() {\n\t\t\t\treturn module.l;\n\t\t\t}\n\t\t});\n\t\tObject.defineProperty(module, \"id\", {\n\t\t\tenumerable: true,\n\t\t\tget: function() {\n\t\t\t\treturn module.i;\n\t\t\t}\n\t\t});\n\t\tObject.defineProperty(module, \"exports\", {\n\t\t\tenumerable: true\n\t\t});\n\t\tmodule.webpackPolyfill = 1;\n\t}\n\treturn module;\n};\n"],"sourceRoot":""} \ No newline at end of file diff --git a/views/js/dist/1.min.js b/views/js/dist/1.min.js deleted file mode 100644 index ea7193b0e..000000000 --- a/views/js/dist/1.min.js +++ /dev/null @@ -1,305 +0,0 @@ -/*! - * - * Mollie https://www.mollie.nl - * @author Mollie B.V. - * @copyright Mollie B.V. - * @link https://github.com/mollie/PrestaShop - * @license https://github.com/mollie/PrestaShop/blob/master/LICENSE.md - * - */ -(window["webpackJsonP_mollie"] = window["webpackJsonP_mollie"] || []).push([[1],{ - -/***/ "./src/back/transaction/components/MolliePanel.tsx": -/*!*********************************************************!*\ - !*** ./src/back/transaction/components/MolliePanel.tsx ***! - \*********************************************************/ -/*! exports provided: default */ -/***/ (function(module, __webpack_exports__, __webpack_require__) { - -"use strict"; -__webpack_require__.r(__webpack_exports__); -/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "default", function() { return MolliePanel; }); -/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "./node_modules/react/index.js"); -/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__); -/* harmony import */ var redux_react_hook__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! redux-react-hook */ "./node_modules/redux-react-hook/dist/index.es.js"); -/* harmony import */ var _store__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../store */ "./src/back/transaction/store/index.ts"); -/** - * Mollie https://www.mollie.nl - * - * @author Mollie B.V. - * @copyright Mollie B.V. - * @link https://github.com/mollie/PrestaShop - * @license https://github.com/mollie/PrestaShop/blob/master/LICENSE.md - * @codingStandardsIgnoreStart - */ - - - -var RefundPanel = /*#__PURE__*/Object(react__WEBPACK_IMPORTED_MODULE_0__["lazy"])(function () { - return Promise.all(/*! import() | transactionRefund */[__webpack_require__.e("vendors~banks~carrierconfig~methodconfig~transaction~transactionOrder~transactionRefund~updater"), __webpack_require__.e("vendors~banks~transactionOrder~transactionRefund~updater"), __webpack_require__.e("vendors~transactionOrder~transactionRefund"), __webpack_require__.e("transaction~transactionOrder~transactionRefund"), __webpack_require__.e("transactionOrder~transactionRefund"), __webpack_require__.e("transactionRefund")]).then(__webpack_require__.bind(null, /*! ./refund/RefundPanel */ "./src/back/transaction/components/refund/RefundPanel.tsx")); -}); -var OrderPanel = /*#__PURE__*/Object(react__WEBPACK_IMPORTED_MODULE_0__["lazy"])(function () { - return Promise.all(/*! import() | transactionOrder */[__webpack_require__.e("vendors~banks~carrierconfig~methodconfig~transaction~transactionOrder~transactionRefund~updater"), __webpack_require__.e("vendors~banks~transactionOrder~transactionRefund~updater"), __webpack_require__.e("vendors~carrierconfig~methodconfig~transactionOrder"), __webpack_require__.e("vendors~transactionOrder~transactionRefund"), __webpack_require__.e("vendors~transactionOrder"), __webpack_require__.e("transaction~transactionOrder~transactionRefund"), __webpack_require__.e("transactionOrder~transactionRefund"), __webpack_require__.e("transactionOrder")]).then(__webpack_require__.bind(null, /*! ./orderlines/OrderPanel */ "./src/back/transaction/components/orderlines/OrderPanel.tsx")); -}); -function MolliePanel() { - var _ref = Object(react__WEBPACK_IMPORTED_MODULE_0__["useMemo"])(function () { - return _store__WEBPACK_IMPORTED_MODULE_2__["default"].getState(); - }, []), - payment = _ref.payment, - order = _ref.order; - - return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(redux_react_hook__WEBPACK_IMPORTED_MODULE_1__["StoreContext"].Provider, { - value: _store__WEBPACK_IMPORTED_MODULE_2__["default"] - }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(react__WEBPACK_IMPORTED_MODULE_0___default.a.Fragment, null, payment && /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(react__WEBPACK_IMPORTED_MODULE_0__["Suspense"], { - fallback: null - }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(RefundPanel, null)), order && /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(react__WEBPACK_IMPORTED_MODULE_0__["Suspense"], { - fallback: null - }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(OrderPanel, null)))); -} - -/***/ }), - -/***/ "./src/back/transaction/store/actions.ts": -/*!***********************************************!*\ - !*** ./src/back/transaction/store/actions.ts ***! - \***********************************************/ -/*! exports provided: ReduxActionTypes, updateTranslations, updateCurrencies, updateConfig, updateOrder, updatePayment, updateViewportWidth, updateWarning */ -/***/ (function(module, __webpack_exports__, __webpack_require__) { - -"use strict"; -__webpack_require__.r(__webpack_exports__); -/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ReduxActionTypes", function() { return ReduxActionTypes; }); -/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "updateTranslations", function() { return updateTranslations; }); -/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "updateCurrencies", function() { return updateCurrencies; }); -/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "updateConfig", function() { return updateConfig; }); -/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "updateOrder", function() { return updateOrder; }); -/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "updatePayment", function() { return updatePayment; }); -/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "updateViewportWidth", function() { return updateViewportWidth; }); -/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "updateWarning", function() { return updateWarning; }); -/** - * Mollie https://www.mollie.nl - * - * @author Mollie B.V. - * @copyright Mollie B.V. - * @link https://github.com/mollie/PrestaShop - * @license https://github.com/mollie/PrestaShop/blob/master/LICENSE.md - * @codingStandardsIgnoreStart - */ -// Action types -var ReduxActionTypes; // Action creators - -(function (ReduxActionTypes) { - ReduxActionTypes["updateTranslations"] = "UPDATE_MOLLIE_ORDER_TRANSLATIONS"; - ReduxActionTypes["updateConfig"] = "UPDATE_MOLLIE_ORDER_CONFIG"; - ReduxActionTypes["updateOrder"] = "UPDATE_MOLLIE_ORDER"; - ReduxActionTypes["updatePayment"] = "UPDATE_MOLLIE_PAYMENT"; - ReduxActionTypes["updateWarning"] = "UPDATE_MOLLIE_WARNING"; - ReduxActionTypes["updateCurrencies"] = "UPDATE_MOLLIE_CURRENCIES"; - ReduxActionTypes["updateViewportWidth"] = "UPDATE_MOLLIE_VIEWPORT_WIDTH"; -})(ReduxActionTypes || (ReduxActionTypes = {})); - -function updateTranslations(translations) { - return { - type: ReduxActionTypes.updateTranslations, - translations: translations - }; -} -function updateCurrencies(currencies) { - return { - type: ReduxActionTypes.updateCurrencies, - currencies: currencies - }; -} -function updateConfig(config) { - return { - type: ReduxActionTypes.updateConfig, - config: config - }; -} -function updateOrder(order) { - return { - type: ReduxActionTypes.updateOrder, - order: order - }; -} -function updatePayment(payment) { - return { - type: ReduxActionTypes.updatePayment, - payment: payment - }; -} -function updateViewportWidth(width) { - return { - type: ReduxActionTypes.updateViewportWidth, - width: width - }; -} -function updateWarning(status) { - return { - type: ReduxActionTypes.updateWarning, - orderWarning: status - }; -} - -/***/ }), - -/***/ "./src/back/transaction/store/index.ts": -/*!*********************************************!*\ - !*** ./src/back/transaction/store/index.ts ***! - \*********************************************/ -/*! exports provided: default */ -/***/ (function(module, __webpack_exports__, __webpack_require__) { - -"use strict"; -__webpack_require__.r(__webpack_exports__); -/* harmony import */ var redux__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! redux */ "./node_modules/redux/es/redux.js"); -/* harmony import */ var _order__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./order */ "./src/back/transaction/store/order.ts"); -/** - * Mollie https://www.mollie.nl - * - * @author Mollie B.V. - * @copyright Mollie B.V. - * @link https://github.com/mollie/PrestaShop - * @license https://github.com/mollie/PrestaShop/blob/master/LICENSE.md - * @codingStandardsIgnoreStart - */ - - -var store; -var devTools = window.__REDUX_DEVTOOLS_EXTENSION__; -store = Object(redux__WEBPACK_IMPORTED_MODULE_0__["createStore"])(_order__WEBPACK_IMPORTED_MODULE_1__["default"], devTools && devTools()); -/* harmony default export */ __webpack_exports__["default"] = (store); - -/***/ }), - -/***/ "./src/back/transaction/store/order.ts": -/*!*********************************************!*\ - !*** ./src/back/transaction/store/order.ts ***! - \*********************************************/ -/*! exports provided: default */ -/***/ (function(module, __webpack_exports__, __webpack_require__) { - -"use strict"; -__webpack_require__.r(__webpack_exports__); -/* harmony import */ var redux__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! redux */ "./node_modules/redux/es/redux.js"); -/* harmony import */ var _actions__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./actions */ "./src/back/transaction/store/actions.ts"); -/** - * Mollie https://www.mollie.nl - * - * @author Mollie B.V. - * @copyright Mollie B.V. - * @link https://github.com/mollie/PrestaShop - * @license https://github.com/mollie/PrestaShop/blob/master/LICENSE.md - * @codingStandardsIgnoreStart - */ - - - -var translations = function translations() { - var state = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {}; - var action = arguments.length > 1 ? arguments[1] : undefined; - - switch (action.type) { - case _actions__WEBPACK_IMPORTED_MODULE_1__["ReduxActionTypes"].updateTranslations: - return action.translations; - - default: - return state; - } -}; - -var config = function config() { - var state = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {}; - var action = arguments.length > 1 ? arguments[1] : undefined; - - switch (action.type) { - case _actions__WEBPACK_IMPORTED_MODULE_1__["ReduxActionTypes"].updateConfig: - return action.config; - - default: - return state; - } -}; - -var order = function order() { - var state = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : null; - var action = arguments.length > 1 ? arguments[1] : undefined; - - switch (action.type) { - case _actions__WEBPACK_IMPORTED_MODULE_1__["ReduxActionTypes"].updateOrder: - return action.order; - - default: - return state; - } -}; - -var payment = function payment() { - var state = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : null; - var action = arguments.length > 1 ? arguments[1] : undefined; - - switch (action.type) { - case _actions__WEBPACK_IMPORTED_MODULE_1__["ReduxActionTypes"].updatePayment: - return action.payment; - - default: - return state; - } -}; - -var currencies = function currencies() { - var state = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {}; - var action = arguments.length > 1 ? arguments[1] : undefined; - - switch (action.type) { - case _actions__WEBPACK_IMPORTED_MODULE_1__["ReduxActionTypes"].updateCurrencies: - return action.currencies; - - default: - return state; - } -}; - -var initialViewportwidth = window.innerWidth; - -var viewportWidth = function viewportWidth() { - var state = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : initialViewportwidth; - var action = arguments.length > 1 ? arguments[1] : undefined; - - switch (action.type) { - case _actions__WEBPACK_IMPORTED_MODULE_1__["ReduxActionTypes"].updateViewportWidth: - return action.width; - - default: - return state; - } -}; - -var orderWarning = function orderWarning() { - var state = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {}; - var action = arguments.length > 1 ? arguments[1] : undefined; - - switch (action.type) { - case _actions__WEBPACK_IMPORTED_MODULE_1__["ReduxActionTypes"].updateWarning: - return action.orderWarning; - - default: - return state; - } -}; - -var checkoutApp = Object(redux__WEBPACK_IMPORTED_MODULE_0__["combineReducers"])({ - translations: translations, - config: config, - order: order, - payment: payment, - currencies: currencies, - viewportWidth: viewportWidth, - orderWarning: orderWarning -}); -/* harmony default export */ __webpack_exports__["default"] = (checkoutApp); - -/***/ }) - -}]); -//# sourceMappingURL=1.min.js.map \ No newline at end of file diff --git a/views/js/dist/1.min.js.map b/views/js/dist/1.min.js.map deleted file mode 100644 index 0532c701b..000000000 --- a/views/js/dist/1.min.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"sources":["webpack://MollieModule.[name]/./src/back/transaction/components/MolliePanel.tsx","webpack://MollieModule.[name]/./src/back/transaction/store/actions.ts","webpack://MollieModule.[name]/./src/back/transaction/store/index.ts","webpack://MollieModule.[name]/./src/back/transaction/store/order.ts"],"names":["RefundPanel","lazy","OrderPanel","MolliePanel","useMemo","store","getState","payment","order","ReduxActionTypes","updateTranslations","translations","type","updateCurrencies","currencies","updateConfig","config","updateOrder","updatePayment","updateViewportWidth","width","updateWarning","status","orderWarning","devTools","window","__REDUX_DEVTOOLS_EXTENSION__","createStore","orderApp","state","action","init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A8E;AAAA,MAA7EJ,KAA6E,uEAArEE,oBAAqE;AAAA,MAA/CD,MAA+C;;AAClG,UAAQA,MAAM,CAAClB,IAAf;AACE,SAAKH,yDAAgB,CAACU,mBAAtB;AACE,aAAOW,MAAM,CAACV,KAAd;;AACF;AACE,aAAOS,KAAP;AAJJ;AAMD,CAPD;;AASA,IAAMN,YAAY,GAAG,SAAfA,YAAe,GAA2D;AAAA,MAA1DM,KAA0D,uEAA7C,EAA6C;AAAA,MAAzCC,MAAyC;;AAC9E,UAAQA,MAAM,CAAClB,IAAf;AACE,SAAKH,yDAAgB,CAACY,aAAtB;AACE,aAAOS,MAAM,CAACP,YAAd;;AACF;AACE,aAAOM,KAAP;AAJJ;AAMD,CAPD;;AASA,IAAMK,WAAW,GAAGC,6DAAe,CAAC;AAClCxB,cAAY,EAAZA,YADkC;AAElCK,QAAM,EAANA,MAFkC;AAGlCR,OAAK,EAALA,KAHkC;AAIlCD,SAAO,EAAPA,OAJkC;AAKlCO,YAAU,EAAVA,UALkC;AAMlCmB,eAAa,EAAbA,aANkC;AAOlCV,cAAY,EAAZA;AAPkC,CAAD,CAAnC;AAUeW,0EAAf,E","file":"1.min.js","sourcesContent":["/**\n * Mollie https://www.mollie.nl\n *\n * @author Mollie B.V. \n * @copyright Mollie B.V.\n * @link https://github.com/mollie/PrestaShop\n * @license https://github.com/mollie/PrestaShop/blob/master/LICENSE.md\n * @codingStandardsIgnoreStart\n */\nimport React, { lazy, ReactElement, Suspense, useMemo } from 'react';\nimport { StoreContext } from 'redux-react-hook';\n\nimport store from '@transaction/store';\n\nconst RefundPanel = lazy(() => import(/* webpackChunkName: \"transactionRefund\" */ '@transaction/components/refund/RefundPanel'));\nconst OrderPanel = lazy(() => import(/* webpackChunkName: \"transactionOrder\" */ '@transaction/components/orderlines/OrderPanel'));\n\nexport default function MolliePanel(): ReactElement<{}> {\n const { payment, order }: Partial = useMemo(() => store.getState(), []) as any;\n\n return (\n \n <>\n {payment && (\n \n \n \n )}\n {order && (\n \n \n \n )}\n \n \n );\n}\n","/**\n * Mollie https://www.mollie.nl\n *\n * @author Mollie B.V. \n * @copyright Mollie B.V.\n * @link https://github.com/mollie/PrestaShop\n * @license https://github.com/mollie/PrestaShop/blob/master/LICENSE.md\n * @codingStandardsIgnoreStart\n */\n// Action types\nimport { ICurrencies, IMollieApiOrder, IMollieApiPayment, IMollieOrderConfig, ITranslations } from '@shared/globals';\n\nexport enum ReduxActionTypes {\n updateTranslations = 'UPDATE_MOLLIE_ORDER_TRANSLATIONS',\n updateConfig = 'UPDATE_MOLLIE_ORDER_CONFIG',\n updateOrder = 'UPDATE_MOLLIE_ORDER',\n updatePayment = 'UPDATE_MOLLIE_PAYMENT',\n updateWarning = 'UPDATE_MOLLIE_WARNING',\n updateCurrencies = 'UPDATE_MOLLIE_CURRENCIES',\n updateViewportWidth = 'UPDATE_MOLLIE_VIEWPORT_WIDTH',\n}\n\n// Action creators\nexport interface IUpdateTranslationsAction {\n type: string;\n translations: ITranslations;\n}\n\nexport interface IUpdateConfigAction {\n type: string;\n config: IMollieOrderConfig;\n}\n\nexport interface IUpdateOrderAction {\n type: string;\n order: IMollieApiOrder;\n}\n\nexport interface IUpdatePaymentAction {\n type: string;\n payment: IMollieApiPayment;\n}\n\nexport interface IUpdateWarningAction {\n type: string;\n orderWarning: string;\n}\n\nexport interface IUpdateCurrenciesAction {\n type: string;\n currencies: ICurrencies;\n}\n\nexport interface IUpdateViewportWidthAction {\n type: string;\n width: number;\n}\n\nexport function updateTranslations(translations: ITranslations): IUpdateTranslationsAction {\n return { type: ReduxActionTypes.updateTranslations, translations };\n}\n\nexport function updateCurrencies(currencies: ICurrencies): IUpdateCurrenciesAction {\n return { type: ReduxActionTypes.updateCurrencies, currencies };\n}\n\nexport function updateConfig(config: IMollieOrderConfig): IUpdateConfigAction {\n return { type: ReduxActionTypes.updateConfig, config };\n}\n\nexport function updateOrder(order: IMollieApiOrder): IUpdateOrderAction {\n return { type: ReduxActionTypes.updateOrder, order };\n}\n\nexport function updatePayment(payment: IMollieApiPayment): IUpdatePaymentAction {\n return { type: ReduxActionTypes.updatePayment, payment };\n}\n\nexport function updateViewportWidth(width: number): IUpdateViewportWidthAction {\n return { type: ReduxActionTypes.updateViewportWidth, width };\n}\n\nexport function updateWarning(status: string): IUpdateWarningAction {\n return { type: ReduxActionTypes.updateWarning, orderWarning: status };\n}\n","/**\n * Mollie https://www.mollie.nl\n *\n * @author Mollie B.V. \n * @copyright Mollie B.V.\n * @link https://github.com/mollie/PrestaShop\n * @license https://github.com/mollie/PrestaShop/blob/master/LICENSE.md\n * @codingStandardsIgnoreStart\n */\nimport { createStore, Store } from 'redux';\nimport orderApp from './order';\n\ndeclare let window: any;\n\nlet store: Store;\nconst devTools = window.__REDUX_DEVTOOLS_EXTENSION__;\n\nstore = createStore(\n orderApp,\n devTools && devTools(),\n);\n\nexport default store;\n","/**\n * Mollie https://www.mollie.nl\n *\n * @author Mollie B.V. \n * @copyright Mollie B.V.\n * @link https://github.com/mollie/PrestaShop\n * @license https://github.com/mollie/PrestaShop/blob/master/LICENSE.md\n * @codingStandardsIgnoreStart\n */\nimport { combineReducers } from 'redux';\nimport {\n IUpdateConfigAction,\n IUpdateCurrenciesAction,\n IUpdateOrderAction,\n IUpdatePaymentAction,\n IUpdateTranslationsAction,\n IUpdateViewportWidthAction, IUpdateWarningAction,\n ReduxActionTypes\n} from '@transaction/store/actions';\nimport {\n ICurrencies,\n IMollieApiOrder,\n IMollieApiPayment,\n IMollieOrderConfig,\n IMollieOrderDetails,\n ITranslations\n} from '@shared/globals';\n\ndeclare global {\n interface IMollieOrderState {\n translations: ITranslations;\n config: IMollieOrderConfig;\n viewportWidth: number;\n order: IMollieApiOrder;\n payment: IMollieApiPayment;\n currencies: ICurrencies;\n orderWarning: string;\n }\n}\n\nconst translations = (state: any = {}, action: IUpdateTranslationsAction): ITranslations => {\n switch (action.type) {\n case ReduxActionTypes.updateTranslations:\n return action.translations;\n default:\n return state;\n }\n};\n\nconst config = (state: any = {}, action: IUpdateConfigAction): IMollieOrderConfig => {\n switch (action.type) {\n case ReduxActionTypes.updateConfig:\n return action.config;\n default:\n return state;\n }\n};\n\nconst order = (state: IMollieApiOrder = null, action: IUpdateOrderAction): IMollieApiOrder => {\n switch (action.type) {\n case ReduxActionTypes.updateOrder:\n return action.order;\n default:\n return state;\n }\n};\n\nconst payment = (state: IMollieApiPayment = null, action: IUpdatePaymentAction): IMollieApiPayment => {\n switch (action.type) {\n case ReduxActionTypes.updatePayment:\n return action.payment;\n default:\n return state;\n }\n};\n\nconst currencies = (state: ICurrencies = {}, action: IUpdateCurrenciesAction): ICurrencies => {\n switch (action.type) {\n case ReduxActionTypes.updateCurrencies:\n return action.currencies;\n default:\n return state;\n }\n};\n\nconst initialViewportwidth = window.innerWidth;\nconst viewportWidth = (state = initialViewportwidth, action: IUpdateViewportWidthAction): number => {\n switch (action.type) {\n case ReduxActionTypes.updateViewportWidth:\n return action.width;\n default:\n return state;\n }\n};\n\nconst orderWarning = (state: any = {}, action: IUpdateWarningAction): string => {\n switch (action.type) {\n case ReduxActionTypes.updateWarning:\n return action.orderWarning;\n default:\n return state;\n }\n};\n\nconst checkoutApp = combineReducers({\n translations,\n config,\n order,\n payment,\n currencies,\n viewportWidth,\n orderWarning,\n});\n\nexport default checkoutApp;\n"],"sourceRoot":""} \ No newline at end of file diff --git a/views/js/dist/2.min.js b/views/js/dist/2.min.js deleted file mode 100644 index 946ad76cf..000000000 --- a/views/js/dist/2.min.js +++ /dev/null @@ -1,795 +0,0 @@ -/** - * Mollie https://www.mollie.nl - * - * @author Mollie B.V. - * @copyright Mollie B.V. - * @license https://github.com/mollie/PrestaShop/blob/master/LICENSE.md - * - * @see https://github.com/mollie/PrestaShop - * @codingStandardsIgnoreStart - */ -(window["webpackJsonP_mollie"] = window["webpackJsonP_mollie"] || []).push([[2],{ - -/***/ "./node_modules/redux/es/redux.js": -/*!****************************************!*\ - !*** ./node_modules/redux/es/redux.js ***! - \****************************************/ -/*! exports provided: __DO_NOT_USE__ActionTypes, applyMiddleware, bindActionCreators, combineReducers, compose, createStore */ -/***/ (function(module, __webpack_exports__, __webpack_require__) { - -"use strict"; -__webpack_require__.r(__webpack_exports__); -/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "__DO_NOT_USE__ActionTypes", function() { return ActionTypes; }); -/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "applyMiddleware", function() { return applyMiddleware; }); -/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "bindActionCreators", function() { return bindActionCreators; }); -/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "combineReducers", function() { return combineReducers; }); -/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "compose", function() { return compose; }); -/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "createStore", function() { return createStore; }); -/* harmony import */ var symbol_observable__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! symbol-observable */ "./node_modules/symbol-observable/es/index.js"); - - -/** - * These are private action types reserved by Redux. - * For any unknown actions, you must return the current state. - * If the current state is undefined, you must return the initial state. - * Do not reference these action types directly in your code. - */ -var randomString = function randomString() { - return Math.random().toString(36).substring(7).split('').join('.'); -}; - -var ActionTypes = { - INIT: "@@redux/INIT" + randomString(), - REPLACE: "@@redux/REPLACE" + randomString(), - PROBE_UNKNOWN_ACTION: function PROBE_UNKNOWN_ACTION() { - return "@@redux/PROBE_UNKNOWN_ACTION" + randomString(); - } -}; - -/** - * @param {any} obj The object to inspect. - * @returns {boolean} True if the argument appears to be a plain object. - */ -function isPlainObject(obj) { - if (typeof obj !== 'object' || obj === null) return false; - var proto = obj; - - while (Object.getPrototypeOf(proto) !== null) { - proto = Object.getPrototypeOf(proto); - } - - return Object.getPrototypeOf(obj) === proto; -} - -/** - * Creates a Redux store that holds the state tree. - * The only way to change the data in the store is to call `dispatch()` on it. - * - * There should only be a single store in your app. To specify how different - * parts of the state tree respond to actions, you may combine several reducers - * into a single reducer function by using `combineReducers`. - * - * @param {Function} reducer A function that returns the next state tree, given - * the current state tree and the action to handle. - * - * @param {any} [preloadedState] The initial state. You may optionally specify it - * to hydrate the state from the server in universal apps, or to restore a - * previously serialized user session. - * If you use `combineReducers` to produce the root reducer function, this must be - * an object with the same shape as `combineReducers` keys. - * - * @param {Function} [enhancer] The store enhancer. You may optionally specify it - * to enhance the store with third-party capabilities such as middleware, - * time travel, persistence, etc. The only store enhancer that ships with Redux - * is `applyMiddleware()`. - * - * @returns {Store} A Redux store that lets you read the state, dispatch actions - * and subscribe to changes. - */ - -function createStore(reducer, preloadedState, enhancer) { - var _ref2; - - if (typeof preloadedState === 'function' && typeof enhancer === 'function' || typeof enhancer === 'function' && typeof arguments[3] === 'function') { - throw new Error('It looks like you are passing several store enhancers to ' + 'createStore(). This is not supported. Instead, compose them ' + 'together to a single function.'); - } - - if (typeof preloadedState === 'function' && typeof enhancer === 'undefined') { - enhancer = preloadedState; - preloadedState = undefined; - } - - if (typeof enhancer !== 'undefined') { - if (typeof enhancer !== 'function') { - throw new Error('Expected the enhancer to be a function.'); - } - - return enhancer(createStore)(reducer, preloadedState); - } - - if (typeof reducer !== 'function') { - throw new Error('Expected the reducer to be a function.'); - } - - var currentReducer = reducer; - var currentState = preloadedState; - var currentListeners = []; - var nextListeners = currentListeners; - var isDispatching = false; - /** - * This makes a shallow copy of currentListeners so we can use - * nextListeners as a temporary list while dispatching. - * - * This prevents any bugs around consumers calling - * subscribe/unsubscribe in the middle of a dispatch. - */ - - function ensureCanMutateNextListeners() { - if (nextListeners === currentListeners) { - nextListeners = currentListeners.slice(); - } - } - /** - * Reads the state tree managed by the store. - * - * @returns {any} The current state tree of your application. - */ - - - function getState() { - if (isDispatching) { - throw new Error('You may not call store.getState() while the reducer is executing. ' + 'The reducer has already received the state as an argument. ' + 'Pass it down from the top reducer instead of reading it from the store.'); - } - - return currentState; - } - /** - * Adds a change listener. It will be called any time an action is dispatched, - * and some part of the state tree may potentially have changed. You may then - * call `getState()` to read the current state tree inside the callback. - * - * You may call `dispatch()` from a change listener, with the following - * caveats: - * - * 1. The subscriptions are snapshotted just before every `dispatch()` call. - * If you subscribe or unsubscribe while the listeners are being invoked, this - * will not have any effect on the `dispatch()` that is currently in progress. - * However, the next `dispatch()` call, whether nested or not, will use a more - * recent snapshot of the subscription list. - * - * 2. The listener should not expect to see all state changes, as the state - * might have been updated multiple times during a nested `dispatch()` before - * the listener is called. It is, however, guaranteed that all subscribers - * registered before the `dispatch()` started will be called with the latest - * state by the time it exits. - * - * @param {Function} listener A callback to be invoked on every dispatch. - * @returns {Function} A function to remove this change listener. - */ - - - function subscribe(listener) { - if (typeof listener !== 'function') { - throw new Error('Expected the listener to be a function.'); - } - - if (isDispatching) { - throw new Error('You may not call store.subscribe() while the reducer is executing. ' + 'If you would like to be notified after the store has been updated, subscribe from a ' + 'component and invoke store.getState() in the callback to access the latest state. ' + 'See https://redux.js.org/api-reference/store#subscribelistener for more details.'); - } - - var isSubscribed = true; - ensureCanMutateNextListeners(); - nextListeners.push(listener); - return function unsubscribe() { - if (!isSubscribed) { - return; - } - - if (isDispatching) { - throw new Error('You may not unsubscribe from a store listener while the reducer is executing. ' + 'See https://redux.js.org/api-reference/store#subscribelistener for more details.'); - } - - isSubscribed = false; - ensureCanMutateNextListeners(); - var index = nextListeners.indexOf(listener); - nextListeners.splice(index, 1); - currentListeners = null; - }; - } - /** - * Dispatches an action. It is the only way to trigger a state change. - * - * The `reducer` function, used to create the store, will be called with the - * current state tree and the given `action`. Its return value will - * be considered the **next** state of the tree, and the change listeners - * will be notified. - * - * The base implementation only supports plain object actions. If you want to - * dispatch a Promise, an Observable, a thunk, or something else, you need to - * wrap your store creating function into the corresponding middleware. For - * example, see the documentation for the `redux-thunk` package. Even the - * middleware will eventually dispatch plain object actions using this method. - * - * @param {Object} action A plain object representing “what changed”. It is - * a good idea to keep actions serializable so you can record and replay user - * sessions, or use the time travelling `redux-devtools`. An action must have - * a `type` property which may not be `undefined`. It is a good idea to use - * string constants for action types. - * - * @returns {Object} For convenience, the same action object you dispatched. - * - * Note that, if you use a custom middleware, it may wrap `dispatch()` to - * return something else (for example, a Promise you can await). - */ - - - function dispatch(action) { - if (!isPlainObject(action)) { - throw new Error('Actions must be plain objects. ' + 'Use custom middleware for async actions.'); - } - - if (typeof action.type === 'undefined') { - throw new Error('Actions may not have an undefined "type" property. ' + 'Have you misspelled a constant?'); - } - - if (isDispatching) { - throw new Error('Reducers may not dispatch actions.'); - } - - try { - isDispatching = true; - currentState = currentReducer(currentState, action); - } finally { - isDispatching = false; - } - - var listeners = currentListeners = nextListeners; - - for (var i = 0; i < listeners.length; i++) { - var listener = listeners[i]; - listener(); - } - - return action; - } - /** - * Replaces the reducer currently used by the store to calculate the state. - * - * You might need this if your app implements code splitting and you want to - * load some of the reducers dynamically. You might also need this if you - * implement a hot reloading mechanism for Redux. - * - * @param {Function} nextReducer The reducer for the store to use instead. - * @returns {void} - */ - - - function replaceReducer(nextReducer) { - if (typeof nextReducer !== 'function') { - throw new Error('Expected the nextReducer to be a function.'); - } - - currentReducer = nextReducer; // This action has a similiar effect to ActionTypes.INIT. - // Any reducers that existed in both the new and old rootReducer - // will receive the previous state. This effectively populates - // the new state tree with any relevant data from the old one. - - dispatch({ - type: ActionTypes.REPLACE - }); - } - /** - * Interoperability point for observable/reactive libraries. - * @returns {observable} A minimal observable of state changes. - * For more information, see the observable proposal: - * https://github.com/tc39/proposal-observable - */ - - - function observable() { - var _ref; - - var outerSubscribe = subscribe; - return _ref = { - /** - * The minimal observable subscription method. - * @param {Object} observer Any object that can be used as an observer. - * The observer object should have a `next` method. - * @returns {subscription} An object with an `unsubscribe` method that can - * be used to unsubscribe the observable from the store, and prevent further - * emission of values from the observable. - */ - subscribe: function subscribe(observer) { - if (typeof observer !== 'object' || observer === null) { - throw new TypeError('Expected the observer to be an object.'); - } - - function observeState() { - if (observer.next) { - observer.next(getState()); - } - } - - observeState(); - var unsubscribe = outerSubscribe(observeState); - return { - unsubscribe: unsubscribe - }; - } - }, _ref[symbol_observable__WEBPACK_IMPORTED_MODULE_0__["default"]] = function () { - return this; - }, _ref; - } // When a store is created, an "INIT" action is dispatched so that every - // reducer returns their initial state. This effectively populates - // the initial state tree. - - - dispatch({ - type: ActionTypes.INIT - }); - return _ref2 = { - dispatch: dispatch, - subscribe: subscribe, - getState: getState, - replaceReducer: replaceReducer - }, _ref2[symbol_observable__WEBPACK_IMPORTED_MODULE_0__["default"]] = observable, _ref2; -} - -/** - * Prints a warning in the console if it exists. - * - * @param {String} message The warning message. - * @returns {void} - */ -function warning(message) { - /* eslint-disable no-console */ - if (typeof console !== 'undefined' && typeof console.error === 'function') { - console.error(message); - } - /* eslint-enable no-console */ - - - try { - // This error was thrown as a convenience so that if you enable - // "break on all exceptions" in your console, - // it would pause the execution at this line. - throw new Error(message); - } catch (e) {} // eslint-disable-line no-empty - -} - -function getUndefinedStateErrorMessage(key, action) { - var actionType = action && action.type; - var actionDescription = actionType && "action \"" + String(actionType) + "\"" || 'an action'; - return "Given " + actionDescription + ", reducer \"" + key + "\" returned undefined. " + "To ignore an action, you must explicitly return the previous state. " + "If you want this reducer to hold no value, you can return null instead of undefined."; -} - -function getUnexpectedStateShapeWarningMessage(inputState, reducers, action, unexpectedKeyCache) { - var reducerKeys = Object.keys(reducers); - var argumentName = action && action.type === ActionTypes.INIT ? 'preloadedState argument passed to createStore' : 'previous state received by the reducer'; - - if (reducerKeys.length === 0) { - return 'Store does not have a valid reducer. Make sure the argument passed ' + 'to combineReducers is an object whose values are reducers.'; - } - - if (!isPlainObject(inputState)) { - return "The " + argumentName + " has unexpected type of \"" + {}.toString.call(inputState).match(/\s([a-z|A-Z]+)/)[1] + "\". Expected argument to be an object with the following " + ("keys: \"" + reducerKeys.join('", "') + "\""); - } - - var unexpectedKeys = Object.keys(inputState).filter(function (key) { - return !reducers.hasOwnProperty(key) && !unexpectedKeyCache[key]; - }); - unexpectedKeys.forEach(function (key) { - unexpectedKeyCache[key] = true; - }); - if (action && action.type === ActionTypes.REPLACE) return; - - if (unexpectedKeys.length > 0) { - return "Unexpected " + (unexpectedKeys.length > 1 ? 'keys' : 'key') + " " + ("\"" + unexpectedKeys.join('", "') + "\" found in " + argumentName + ". ") + "Expected to find one of the known reducer keys instead: " + ("\"" + reducerKeys.join('", "') + "\". Unexpected keys will be ignored."); - } -} - -function assertReducerShape(reducers) { - Object.keys(reducers).forEach(function (key) { - var reducer = reducers[key]; - var initialState = reducer(undefined, { - type: ActionTypes.INIT - }); - - if (typeof initialState === 'undefined') { - throw new Error("Reducer \"" + key + "\" returned undefined during initialization. " + "If the state passed to the reducer is undefined, you must " + "explicitly return the initial state. The initial state may " + "not be undefined. If you don't want to set a value for this reducer, " + "you can use null instead of undefined."); - } - - if (typeof reducer(undefined, { - type: ActionTypes.PROBE_UNKNOWN_ACTION() - }) === 'undefined') { - throw new Error("Reducer \"" + key + "\" returned undefined when probed with a random type. " + ("Don't try to handle " + ActionTypes.INIT + " or other actions in \"redux/*\" ") + "namespace. They are considered private. Instead, you must return the " + "current state for any unknown actions, unless it is undefined, " + "in which case you must return the initial state, regardless of the " + "action type. The initial state may not be undefined, but can be null."); - } - }); -} -/** - * Turns an object whose values are different reducer functions, into a single - * reducer function. It will call every child reducer, and gather their results - * into a single state object, whose keys correspond to the keys of the passed - * reducer functions. - * - * @param {Object} reducers An object whose values correspond to different - * reducer functions that need to be combined into one. One handy way to obtain - * it is to use ES6 `import * as reducers` syntax. The reducers may never return - * undefined for any action. Instead, they should return their initial state - * if the state passed to them was undefined, and the current state for any - * unrecognized action. - * - * @returns {Function} A reducer function that invokes every reducer inside the - * passed object, and builds a state object with the same shape. - */ - - -function combineReducers(reducers) { - var reducerKeys = Object.keys(reducers); - var finalReducers = {}; - - for (var i = 0; i < reducerKeys.length; i++) { - var key = reducerKeys[i]; - - if (true) { - if (typeof reducers[key] === 'undefined') { - warning("No reducer provided for key \"" + key + "\""); - } - } - - if (typeof reducers[key] === 'function') { - finalReducers[key] = reducers[key]; - } - } - - var finalReducerKeys = Object.keys(finalReducers); // This is used to make sure we don't warn about the same - // keys multiple times. - - var unexpectedKeyCache; - - if (true) { - unexpectedKeyCache = {}; - } - - var shapeAssertionError; - - try { - assertReducerShape(finalReducers); - } catch (e) { - shapeAssertionError = e; - } - - return function combination(state, action) { - if (state === void 0) { - state = {}; - } - - if (shapeAssertionError) { - throw shapeAssertionError; - } - - if (true) { - var warningMessage = getUnexpectedStateShapeWarningMessage(state, finalReducers, action, unexpectedKeyCache); - - if (warningMessage) { - warning(warningMessage); - } - } - - var hasChanged = false; - var nextState = {}; - - for (var _i = 0; _i < finalReducerKeys.length; _i++) { - var _key = finalReducerKeys[_i]; - var reducer = finalReducers[_key]; - var previousStateForKey = state[_key]; - var nextStateForKey = reducer(previousStateForKey, action); - - if (typeof nextStateForKey === 'undefined') { - var errorMessage = getUndefinedStateErrorMessage(_key, action); - throw new Error(errorMessage); - } - - nextState[_key] = nextStateForKey; - hasChanged = hasChanged || nextStateForKey !== previousStateForKey; - } - - hasChanged = hasChanged || finalReducerKeys.length !== Object.keys(state).length; - return hasChanged ? nextState : state; - }; -} - -function bindActionCreator(actionCreator, dispatch) { - return function () { - return dispatch(actionCreator.apply(this, arguments)); - }; -} -/** - * Turns an object whose values are action creators, into an object with the - * same keys, but with every function wrapped into a `dispatch` call so they - * may be invoked directly. This is just a convenience method, as you can call - * `store.dispatch(MyActionCreators.doSomething())` yourself just fine. - * - * For convenience, you can also pass an action creator as the first argument, - * and get a dispatch wrapped function in return. - * - * @param {Function|Object} actionCreators An object whose values are action - * creator functions. One handy way to obtain it is to use ES6 `import * as` - * syntax. You may also pass a single function. - * - * @param {Function} dispatch The `dispatch` function available on your Redux - * store. - * - * @returns {Function|Object} The object mimicking the original object, but with - * every action creator wrapped into the `dispatch` call. If you passed a - * function as `actionCreators`, the return value will also be a single - * function. - */ - - -function bindActionCreators(actionCreators, dispatch) { - if (typeof actionCreators === 'function') { - return bindActionCreator(actionCreators, dispatch); - } - - if (typeof actionCreators !== 'object' || actionCreators === null) { - throw new Error("bindActionCreators expected an object or a function, instead received " + (actionCreators === null ? 'null' : typeof actionCreators) + ". " + "Did you write \"import ActionCreators from\" instead of \"import * as ActionCreators from\"?"); - } - - var boundActionCreators = {}; - - for (var key in actionCreators) { - var actionCreator = actionCreators[key]; - - if (typeof actionCreator === 'function') { - boundActionCreators[key] = bindActionCreator(actionCreator, dispatch); - } - } - - return boundActionCreators; -} - -function _defineProperty(obj, key, value) { - if (key in obj) { - Object.defineProperty(obj, key, { - value: value, - enumerable: true, - configurable: true, - writable: true - }); - } else { - obj[key] = value; - } - - return obj; -} - -function ownKeys(object, enumerableOnly) { - var keys = Object.keys(object); - - if (Object.getOwnPropertySymbols) { - keys.push.apply(keys, Object.getOwnPropertySymbols(object)); - } - - if (enumerableOnly) keys = keys.filter(function (sym) { - return Object.getOwnPropertyDescriptor(object, sym).enumerable; - }); - return keys; -} - -function _objectSpread2(target) { - for (var i = 1; i < arguments.length; i++) { - var source = arguments[i] != null ? arguments[i] : {}; - - if (i % 2) { - ownKeys(source, true).forEach(function (key) { - _defineProperty(target, key, source[key]); - }); - } else if (Object.getOwnPropertyDescriptors) { - Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); - } else { - ownKeys(source).forEach(function (key) { - Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); - }); - } - } - - return target; -} - -/** - * Composes single-argument functions from right to left. The rightmost - * function can take multiple arguments as it provides the signature for - * the resulting composite function. - * - * @param {...Function} funcs The functions to compose. - * @returns {Function} A function obtained by composing the argument functions - * from right to left. For example, compose(f, g, h) is identical to doing - * (...args) => f(g(h(...args))). - */ -function compose() { - for (var _len = arguments.length, funcs = new Array(_len), _key = 0; _key < _len; _key++) { - funcs[_key] = arguments[_key]; - } - - if (funcs.length === 0) { - return function (arg) { - return arg; - }; - } - - if (funcs.length === 1) { - return funcs[0]; - } - - return funcs.reduce(function (a, b) { - return function () { - return a(b.apply(void 0, arguments)); - }; - }); -} - -/** - * Creates a store enhancer that applies middleware to the dispatch method - * of the Redux store. This is handy for a variety of tasks, such as expressing - * asynchronous actions in a concise manner, or logging every action payload. - * - * See `redux-thunk` package as an example of the Redux middleware. - * - * Because middleware is potentially asynchronous, this should be the first - * store enhancer in the composition chain. - * - * Note that each middleware will be given the `dispatch` and `getState` functions - * as named arguments. - * - * @param {...Function} middlewares The middleware chain to be applied. - * @returns {Function} A store enhancer applying the middleware. - */ - -function applyMiddleware() { - for (var _len = arguments.length, middlewares = new Array(_len), _key = 0; _key < _len; _key++) { - middlewares[_key] = arguments[_key]; - } - - return function (createStore) { - return function () { - var store = createStore.apply(void 0, arguments); - - var _dispatch = function dispatch() { - throw new Error('Dispatching while constructing your middleware is not allowed. ' + 'Other middleware would not be applied to this dispatch.'); - }; - - var middlewareAPI = { - getState: store.getState, - dispatch: function dispatch() { - return _dispatch.apply(void 0, arguments); - } - }; - var chain = middlewares.map(function (middleware) { - return middleware(middlewareAPI); - }); - _dispatch = compose.apply(void 0, chain)(store.dispatch); - return _objectSpread2({}, store, { - dispatch: _dispatch - }); - }; - }; -} - -/* - * This is a dummy function to check if the function name has been altered by minification. - * If the function has been minified and NODE_ENV !== 'production', warn the user. - */ - -function isCrushed() {} - -if ( true && typeof isCrushed.name === 'string' && isCrushed.name !== 'isCrushed') { - warning('You are currently using minified code outside of NODE_ENV === "production". ' + 'This means that you are running a slower development build of Redux. ' + 'You can use loose-envify (https://github.com/zertosh/loose-envify) for browserify ' + 'or setting mode to production in webpack (https://webpack.js.org/concepts/mode/) ' + 'to ensure you have the correct code for your production build.'); -} - - - - -/***/ }), - -/***/ "./node_modules/symbol-observable/es/index.js": -/*!****************************************************!*\ - !*** ./node_modules/symbol-observable/es/index.js ***! - \****************************************************/ -/*! exports provided: default */ -/***/ (function(module, __webpack_exports__, __webpack_require__) { - -"use strict"; -__webpack_require__.r(__webpack_exports__); -/* WEBPACK VAR INJECTION */(function(global, module) {/* harmony import */ var _ponyfill_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./ponyfill.js */ "./node_modules/symbol-observable/es/ponyfill.js"); -/* global window */ - - -var root; - -if (typeof self !== 'undefined') { - root = self; -} else if (typeof window !== 'undefined') { - root = window; -} else if (typeof global !== 'undefined') { - root = global; -} else if (true) { - root = module; -} else {} - -var result = Object(_ponyfill_js__WEBPACK_IMPORTED_MODULE_0__["default"])(root); -/* harmony default export */ __webpack_exports__["default"] = (result); - -/* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./../../webpack/buildin/global.js */ "./node_modules/webpack/buildin/global.js"), __webpack_require__(/*! ./../../webpack/buildin/harmony-module.js */ "./node_modules/webpack/buildin/harmony-module.js")(module))) - -/***/ }), - -/***/ "./node_modules/symbol-observable/es/ponyfill.js": -/*!*******************************************************!*\ - !*** ./node_modules/symbol-observable/es/ponyfill.js ***! - \*******************************************************/ -/*! exports provided: default */ -/***/ (function(module, __webpack_exports__, __webpack_require__) { - -"use strict"; -__webpack_require__.r(__webpack_exports__); -/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "default", function() { return symbolObservablePonyfill; }); -function symbolObservablePonyfill(root) { - var result; - var Symbol = root.Symbol; - - if (typeof Symbol === 'function') { - if (Symbol.observable) { - result = Symbol.observable; - } else { - result = Symbol('observable'); - Symbol.observable = result; - } - } else { - result = '@@observable'; - } - - return result; -}; - - -/***/ }), - -/***/ "./node_modules/webpack/buildin/harmony-module.js": -/*!*******************************************!*\ - !*** (webpack)/buildin/harmony-module.js ***! - \*******************************************/ -/*! no static exports found */ -/***/ (function(module, exports) { - -module.exports = function(originalModule) { - if (!originalModule.webpackPolyfill) { - var module = Object.create(originalModule); - // module.parent = undefined by default - if (!module.children) module.children = []; - Object.defineProperty(module, "loaded", { - enumerable: true, - get: function() { - return module.l; - } - }); - Object.defineProperty(module, "id", { - enumerable: true, - get: function() { - return module.i; - } - }); - Object.defineProperty(module, "exports", { - enumerable: true - }); - module.webpackPolyfill = 1; - } - return module; -}; - - -/***/ }) - -}]); -//# sourceMappingURL=2.min.js.map diff --git a/views/js/dist/2.min.js.map b/views/js/dist/2.min.js.map deleted file mode 100644 index 1c85dbf8c..000000000 --- a/views/js/dist/2.min.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"sources":["webpack://MollieModule.[name]/./node_modules/redux/es/redux.js","webpack://MollieModule.[name]/./node_modules/symbol-observable/es/index.js","webpack://MollieModule.[name]/./node_modules/symbol-observable/es/ponyfill.js","webpack://MollieModule.[name]/(webpack)/buildin/harmony-module.js"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAA6C;;AAE7C;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA,WAAW,IAAI;AACf,aAAa,QAAQ;AACrB;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,WAAW,SAAS;AACpB;AACA;AACA,WAAW,IAAI;AACf;AACA;AACA;AACA;AACA;AACA,WAAW,SAAS;AACpB;AACA;AACA;AACA;AACA,aAAa,MAAM;AACnB;AACA;;AAEA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,eAAe,IAAI;AACnB;;;AAGA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,aAAa,SAAS;AACtB,eAAe,SAAS;AACxB;;;AAGA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,aAAa,OAAO;AACpB;AACA;AACA;AACA;AACA;AACA,eAAe,OAAO;AACtB;AACA;AACA;AACA;;;AAGA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA,KAAK;AACL;AACA;;AAEA;;AAEA,mBAAmB,sBAAsB;AACzC;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,aAAa,SAAS;AACtB,eAAe;AACf;;;AAGA;AACA;AACA;AACA;;AAEA,iCAAiC;AACjC;AACA;AACA;;AAEA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA,eAAe,WAAW;AAC1B;AACA;AACA;;;AAGA;AACA;;AAEA;AACA;AACA;AACA;AACA,iBAAiB,OAAO;AACxB;AACA,mBAAmB,aAAa;AAChC;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK,OAAO,yDAAY;AACxB;AACA,KAAK;AACL,GAAG;AACH;AACA;;;AAGA;AACA;AACA,GAAG;AACH;AACA;AACA;AACA;AACA;AACA,GAAG,QAAQ,yDAAY;AACvB;;AAEA;AACA;AACA;AACA,WAAW,OAAO;AAClB,aAAa;AACb;AACA;AACA;AACA;AACA;AACA;AACA;;;AAGA;AACA;AACA;AACA;AACA;AACA,GAAG,aAAa;;AAEhB;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA,oEAAoE;AACpE;;AAEA;AACA;AACA,GAAG;AACH;AACA;AACA,GAAG;AACH;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,KAAK;;AAEL;AACA;AACA;;AAEA;AACA;AACA,KAAK;AACL;AACA;AACA,GAAG;AACH;AACA;AACA;AACA;AACA;AACA;AACA;AACA,WAAW,OAAO;AAClB;AACA;AACA;AACA;AACA;AACA;AACA,aAAa,SAAS;AACtB;AACA;;;AAGA;AACA;AACA;;AAEA,iBAAiB,wBAAwB;AACzC;;AAEA,QAAQ,IAAqC;AAC7C;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA,oDAAoD;AACpD;;AAEA;;AAEA,MAAM,IAAqC;AAC3C;AACA;;AAEA;;AAEA;AACA;AACA,GAAG;AACH;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA,QAAQ,IAAqC;AAC7C;;AAEA;AACA;AACA;AACA;;AAEA;AACA;;AAEA,oBAAoB,8BAA8B;AAClD;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,WAAW,gBAAgB;AAC3B;AACA;AACA;AACA,WAAW,SAAS;AACpB;AACA;AACA,aAAa,gBAAgB;AAC7B;AACA;AACA;AACA;;;AAGA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;AACL,GAAG;AACH;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA,GAAG;AACH;AACA;;AAEA;AACA,iBAAiB,sBAAsB;AACvC;;AAEA;AACA;AACA;AACA,OAAO;AACP,KAAK;AACL;AACA,KAAK;AACL;AACA;AACA,OAAO;AACP;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,WAAW,YAAY;AACvB,aAAa,SAAS;AACtB;AACA;AACA;AACA;AACA,sEAAsE,aAAa;AACnF;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA,GAAG;AACH;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,WAAW,YAAY;AACvB,aAAa,SAAS;AACtB;;AAEA;AACA,4EAA4E,aAAa;AACzF;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,OAAO;AACP;AACA,8BAA8B;AAC9B;AACA,OAAO;AACP;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;;AAEA,IAAI,KAAqC;AACzC;AACA;;AAEgI;;;;;;;;;;;;;ACtpBhI;AAAA;AAAA;AACqC;;AAErC;;AAEA;AACA;AACA,CAAC;AACD;AACA,CAAC;AACD;AACA,CAAC,UAAU,IAA6B;AACxC;AACA,CAAC,MAAM,EAEN;;AAED,aAAa,4DAAQ;AACN,qEAAM,EAAC;;;;;;;;;;;;;;AClBtB;AAAA;AAAe;AACf;AACA;;AAEA;AACA;AACA;AACA,GAAG;AACH;AACA;AACA;AACA,EAAE;AACF;AACA;;AAEA;AACA;;;;;;;;;;;;AChBA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,GAAG;AACH;AACA;AACA;AACA;AACA;AACA,GAAG;AACH;AACA;AACA,GAAG;AACH;AACA;AACA;AACA","file":"2.min.js","sourcesContent":["import $$observable from 'symbol-observable';\n\n/**\n * These are private action types reserved by Redux.\n * For any unknown actions, you must return the current state.\n * If the current state is undefined, you must return the initial state.\n * Do not reference these action types directly in your code.\n */\nvar randomString = function randomString() {\n return Math.random().toString(36).substring(7).split('').join('.');\n};\n\nvar ActionTypes = {\n INIT: \"@@redux/INIT\" + randomString(),\n REPLACE: \"@@redux/REPLACE\" + randomString(),\n PROBE_UNKNOWN_ACTION: function PROBE_UNKNOWN_ACTION() {\n return \"@@redux/PROBE_UNKNOWN_ACTION\" + randomString();\n }\n};\n\n/**\n * @param {any} obj The object to inspect.\n * @returns {boolean} True if the argument appears to be a plain object.\n */\nfunction isPlainObject(obj) {\n if (typeof obj !== 'object' || obj === null) return false;\n var proto = obj;\n\n while (Object.getPrototypeOf(proto) !== null) {\n proto = Object.getPrototypeOf(proto);\n }\n\n return Object.getPrototypeOf(obj) === proto;\n}\n\n/**\n * Creates a Redux store that holds the state tree.\n * The only way to change the data in the store is to call `dispatch()` on it.\n *\n * There should only be a single store in your app. To specify how different\n * parts of the state tree respond to actions, you may combine several reducers\n * into a single reducer function by using `combineReducers`.\n *\n * @param {Function} reducer A function that returns the next state tree, given\n * the current state tree and the action to handle.\n *\n * @param {any} [preloadedState] The initial state. You may optionally specify it\n * to hydrate the state from the server in universal apps, or to restore a\n * previously serialized user session.\n * If you use `combineReducers` to produce the root reducer function, this must be\n * an object with the same shape as `combineReducers` keys.\n *\n * @param {Function} [enhancer] The store enhancer. You may optionally specify it\n * to enhance the store with third-party capabilities such as middleware,\n * time travel, persistence, etc. The only store enhancer that ships with Redux\n * is `applyMiddleware()`.\n *\n * @returns {Store} A Redux store that lets you read the state, dispatch actions\n * and subscribe to changes.\n */\n\nfunction createStore(reducer, preloadedState, enhancer) {\n var _ref2;\n\n if (typeof preloadedState === 'function' && typeof enhancer === 'function' || typeof enhancer === 'function' && typeof arguments[3] === 'function') {\n throw new Error('It looks like you are passing several store enhancers to ' + 'createStore(). This is not supported. Instead, compose them ' + 'together to a single function.');\n }\n\n if (typeof preloadedState === 'function' && typeof enhancer === 'undefined') {\n enhancer = preloadedState;\n preloadedState = undefined;\n }\n\n if (typeof enhancer !== 'undefined') {\n if (typeof enhancer !== 'function') {\n throw new Error('Expected the enhancer to be a function.');\n }\n\n return enhancer(createStore)(reducer, preloadedState);\n }\n\n if (typeof reducer !== 'function') {\n throw new Error('Expected the reducer to be a function.');\n }\n\n var currentReducer = reducer;\n var currentState = preloadedState;\n var currentListeners = [];\n var nextListeners = currentListeners;\n var isDispatching = false;\n /**\n * This makes a shallow copy of currentListeners so we can use\n * nextListeners as a temporary list while dispatching.\n *\n * This prevents any bugs around consumers calling\n * subscribe/unsubscribe in the middle of a dispatch.\n */\n\n function ensureCanMutateNextListeners() {\n if (nextListeners === currentListeners) {\n nextListeners = currentListeners.slice();\n }\n }\n /**\n * Reads the state tree managed by the store.\n *\n * @returns {any} The current state tree of your application.\n */\n\n\n function getState() {\n if (isDispatching) {\n throw new Error('You may not call store.getState() while the reducer is executing. ' + 'The reducer has already received the state as an argument. ' + 'Pass it down from the top reducer instead of reading it from the store.');\n }\n\n return currentState;\n }\n /**\n * Adds a change listener. It will be called any time an action is dispatched,\n * and some part of the state tree may potentially have changed. You may then\n * call `getState()` to read the current state tree inside the callback.\n *\n * You may call `dispatch()` from a change listener, with the following\n * caveats:\n *\n * 1. The subscriptions are snapshotted just before every `dispatch()` call.\n * If you subscribe or unsubscribe while the listeners are being invoked, this\n * will not have any effect on the `dispatch()` that is currently in progress.\n * However, the next `dispatch()` call, whether nested or not, will use a more\n * recent snapshot of the subscription list.\n *\n * 2. The listener should not expect to see all state changes, as the state\n * might have been updated multiple times during a nested `dispatch()` before\n * the listener is called. It is, however, guaranteed that all subscribers\n * registered before the `dispatch()` started will be called with the latest\n * state by the time it exits.\n *\n * @param {Function} listener A callback to be invoked on every dispatch.\n * @returns {Function} A function to remove this change listener.\n */\n\n\n function subscribe(listener) {\n if (typeof listener !== 'function') {\n throw new Error('Expected the listener to be a function.');\n }\n\n if (isDispatching) {\n throw new Error('You may not call store.subscribe() while the reducer is executing. ' + 'If you would like to be notified after the store has been updated, subscribe from a ' + 'component and invoke store.getState() in the callback to access the latest state. ' + 'See https://redux.js.org/api-reference/store#subscribelistener for more details.');\n }\n\n var isSubscribed = true;\n ensureCanMutateNextListeners();\n nextListeners.push(listener);\n return function unsubscribe() {\n if (!isSubscribed) {\n return;\n }\n\n if (isDispatching) {\n throw new Error('You may not unsubscribe from a store listener while the reducer is executing. ' + 'See https://redux.js.org/api-reference/store#subscribelistener for more details.');\n }\n\n isSubscribed = false;\n ensureCanMutateNextListeners();\n var index = nextListeners.indexOf(listener);\n nextListeners.splice(index, 1);\n currentListeners = null;\n };\n }\n /**\n * Dispatches an action. It is the only way to trigger a state change.\n *\n * The `reducer` function, used to create the store, will be called with the\n * current state tree and the given `action`. Its return value will\n * be considered the **next** state of the tree, and the change listeners\n * will be notified.\n *\n * The base implementation only supports plain object actions. If you want to\n * dispatch a Promise, an Observable, a thunk, or something else, you need to\n * wrap your store creating function into the corresponding middleware. For\n * example, see the documentation for the `redux-thunk` package. Even the\n * middleware will eventually dispatch plain object actions using this method.\n *\n * @param {Object} action A plain object representing “what changed”. It is\n * a good idea to keep actions serializable so you can record and replay user\n * sessions, or use the time travelling `redux-devtools`. An action must have\n * a `type` property which may not be `undefined`. It is a good idea to use\n * string constants for action types.\n *\n * @returns {Object} For convenience, the same action object you dispatched.\n *\n * Note that, if you use a custom middleware, it may wrap `dispatch()` to\n * return something else (for example, a Promise you can await).\n */\n\n\n function dispatch(action) {\n if (!isPlainObject(action)) {\n throw new Error('Actions must be plain objects. ' + 'Use custom middleware for async actions.');\n }\n\n if (typeof action.type === 'undefined') {\n throw new Error('Actions may not have an undefined \"type\" property. ' + 'Have you misspelled a constant?');\n }\n\n if (isDispatching) {\n throw new Error('Reducers may not dispatch actions.');\n }\n\n try {\n isDispatching = true;\n currentState = currentReducer(currentState, action);\n } finally {\n isDispatching = false;\n }\n\n var listeners = currentListeners = nextListeners;\n\n for (var i = 0; i < listeners.length; i++) {\n var listener = listeners[i];\n listener();\n }\n\n return action;\n }\n /**\n * Replaces the reducer currently used by the store to calculate the state.\n *\n * You might need this if your app implements code splitting and you want to\n * load some of the reducers dynamically. You might also need this if you\n * implement a hot reloading mechanism for Redux.\n *\n * @param {Function} nextReducer The reducer for the store to use instead.\n * @returns {void}\n */\n\n\n function replaceReducer(nextReducer) {\n if (typeof nextReducer !== 'function') {\n throw new Error('Expected the nextReducer to be a function.');\n }\n\n currentReducer = nextReducer; // This action has a similiar effect to ActionTypes.INIT.\n // Any reducers that existed in both the new and old rootReducer\n // will receive the previous state. This effectively populates\n // the new state tree with any relevant data from the old one.\n\n dispatch({\n type: ActionTypes.REPLACE\n });\n }\n /**\n * Interoperability point for observable/reactive libraries.\n * @returns {observable} A minimal observable of state changes.\n * For more information, see the observable proposal:\n * https://github.com/tc39/proposal-observable\n */\n\n\n function observable() {\n var _ref;\n\n var outerSubscribe = subscribe;\n return _ref = {\n /**\n * The minimal observable subscription method.\n * @param {Object} observer Any object that can be used as an observer.\n * The observer object should have a `next` method.\n * @returns {subscription} An object with an `unsubscribe` method that can\n * be used to unsubscribe the observable from the store, and prevent further\n * emission of values from the observable.\n */\n subscribe: function subscribe(observer) {\n if (typeof observer !== 'object' || observer === null) {\n throw new TypeError('Expected the observer to be an object.');\n }\n\n function observeState() {\n if (observer.next) {\n observer.next(getState());\n }\n }\n\n observeState();\n var unsubscribe = outerSubscribe(observeState);\n return {\n unsubscribe: unsubscribe\n };\n }\n }, _ref[$$observable] = function () {\n return this;\n }, _ref;\n } // When a store is created, an \"INIT\" action is dispatched so that every\n // reducer returns their initial state. This effectively populates\n // the initial state tree.\n\n\n dispatch({\n type: ActionTypes.INIT\n });\n return _ref2 = {\n dispatch: dispatch,\n subscribe: subscribe,\n getState: getState,\n replaceReducer: replaceReducer\n }, _ref2[$$observable] = observable, _ref2;\n}\n\n/**\n * Prints a warning in the console if it exists.\n *\n * @param {String} message The warning message.\n * @returns {void}\n */\nfunction warning(message) {\n /* eslint-disable no-console */\n if (typeof console !== 'undefined' && typeof console.error === 'function') {\n console.error(message);\n }\n /* eslint-enable no-console */\n\n\n try {\n // This error was thrown as a convenience so that if you enable\n // \"break on all exceptions\" in your console,\n // it would pause the execution at this line.\n throw new Error(message);\n } catch (e) {} // eslint-disable-line no-empty\n\n}\n\nfunction getUndefinedStateErrorMessage(key, action) {\n var actionType = action && action.type;\n var actionDescription = actionType && \"action \\\"\" + String(actionType) + \"\\\"\" || 'an action';\n return \"Given \" + actionDescription + \", reducer \\\"\" + key + \"\\\" returned undefined. \" + \"To ignore an action, you must explicitly return the previous state. \" + \"If you want this reducer to hold no value, you can return null instead of undefined.\";\n}\n\nfunction getUnexpectedStateShapeWarningMessage(inputState, reducers, action, unexpectedKeyCache) {\n var reducerKeys = Object.keys(reducers);\n var argumentName = action && action.type === ActionTypes.INIT ? 'preloadedState argument passed to createStore' : 'previous state received by the reducer';\n\n if (reducerKeys.length === 0) {\n return 'Store does not have a valid reducer. Make sure the argument passed ' + 'to combineReducers is an object whose values are reducers.';\n }\n\n if (!isPlainObject(inputState)) {\n return \"The \" + argumentName + \" has unexpected type of \\\"\" + {}.toString.call(inputState).match(/\\s([a-z|A-Z]+)/)[1] + \"\\\". Expected argument to be an object with the following \" + (\"keys: \\\"\" + reducerKeys.join('\", \"') + \"\\\"\");\n }\n\n var unexpectedKeys = Object.keys(inputState).filter(function (key) {\n return !reducers.hasOwnProperty(key) && !unexpectedKeyCache[key];\n });\n unexpectedKeys.forEach(function (key) {\n unexpectedKeyCache[key] = true;\n });\n if (action && action.type === ActionTypes.REPLACE) return;\n\n if (unexpectedKeys.length > 0) {\n return \"Unexpected \" + (unexpectedKeys.length > 1 ? 'keys' : 'key') + \" \" + (\"\\\"\" + unexpectedKeys.join('\", \"') + \"\\\" found in \" + argumentName + \". \") + \"Expected to find one of the known reducer keys instead: \" + (\"\\\"\" + reducerKeys.join('\", \"') + \"\\\". Unexpected keys will be ignored.\");\n }\n}\n\nfunction assertReducerShape(reducers) {\n Object.keys(reducers).forEach(function (key) {\n var reducer = reducers[key];\n var initialState = reducer(undefined, {\n type: ActionTypes.INIT\n });\n\n if (typeof initialState === 'undefined') {\n throw new Error(\"Reducer \\\"\" + key + \"\\\" returned undefined during initialization. \" + \"If the state passed to the reducer is undefined, you must \" + \"explicitly return the initial state. The initial state may \" + \"not be undefined. If you don't want to set a value for this reducer, \" + \"you can use null instead of undefined.\");\n }\n\n if (typeof reducer(undefined, {\n type: ActionTypes.PROBE_UNKNOWN_ACTION()\n }) === 'undefined') {\n throw new Error(\"Reducer \\\"\" + key + \"\\\" returned undefined when probed with a random type. \" + (\"Don't try to handle \" + ActionTypes.INIT + \" or other actions in \\\"redux/*\\\" \") + \"namespace. They are considered private. Instead, you must return the \" + \"current state for any unknown actions, unless it is undefined, \" + \"in which case you must return the initial state, regardless of the \" + \"action type. The initial state may not be undefined, but can be null.\");\n }\n });\n}\n/**\n * Turns an object whose values are different reducer functions, into a single\n * reducer function. It will call every child reducer, and gather their results\n * into a single state object, whose keys correspond to the keys of the passed\n * reducer functions.\n *\n * @param {Object} reducers An object whose values correspond to different\n * reducer functions that need to be combined into one. One handy way to obtain\n * it is to use ES6 `import * as reducers` syntax. The reducers may never return\n * undefined for any action. Instead, they should return their initial state\n * if the state passed to them was undefined, and the current state for any\n * unrecognized action.\n *\n * @returns {Function} A reducer function that invokes every reducer inside the\n * passed object, and builds a state object with the same shape.\n */\n\n\nfunction combineReducers(reducers) {\n var reducerKeys = Object.keys(reducers);\n var finalReducers = {};\n\n for (var i = 0; i < reducerKeys.length; i++) {\n var key = reducerKeys[i];\n\n if (process.env.NODE_ENV !== 'production') {\n if (typeof reducers[key] === 'undefined') {\n warning(\"No reducer provided for key \\\"\" + key + \"\\\"\");\n }\n }\n\n if (typeof reducers[key] === 'function') {\n finalReducers[key] = reducers[key];\n }\n }\n\n var finalReducerKeys = Object.keys(finalReducers); // This is used to make sure we don't warn about the same\n // keys multiple times.\n\n var unexpectedKeyCache;\n\n if (process.env.NODE_ENV !== 'production') {\n unexpectedKeyCache = {};\n }\n\n var shapeAssertionError;\n\n try {\n assertReducerShape(finalReducers);\n } catch (e) {\n shapeAssertionError = e;\n }\n\n return function combination(state, action) {\n if (state === void 0) {\n state = {};\n }\n\n if (shapeAssertionError) {\n throw shapeAssertionError;\n }\n\n if (process.env.NODE_ENV !== 'production') {\n var warningMessage = getUnexpectedStateShapeWarningMessage(state, finalReducers, action, unexpectedKeyCache);\n\n if (warningMessage) {\n warning(warningMessage);\n }\n }\n\n var hasChanged = false;\n var nextState = {};\n\n for (var _i = 0; _i < finalReducerKeys.length; _i++) {\n var _key = finalReducerKeys[_i];\n var reducer = finalReducers[_key];\n var previousStateForKey = state[_key];\n var nextStateForKey = reducer(previousStateForKey, action);\n\n if (typeof nextStateForKey === 'undefined') {\n var errorMessage = getUndefinedStateErrorMessage(_key, action);\n throw new Error(errorMessage);\n }\n\n nextState[_key] = nextStateForKey;\n hasChanged = hasChanged || nextStateForKey !== previousStateForKey;\n }\n\n hasChanged = hasChanged || finalReducerKeys.length !== Object.keys(state).length;\n return hasChanged ? nextState : state;\n };\n}\n\nfunction bindActionCreator(actionCreator, dispatch) {\n return function () {\n return dispatch(actionCreator.apply(this, arguments));\n };\n}\n/**\n * Turns an object whose values are action creators, into an object with the\n * same keys, but with every function wrapped into a `dispatch` call so they\n * may be invoked directly. This is just a convenience method, as you can call\n * `store.dispatch(MyActionCreators.doSomething())` yourself just fine.\n *\n * For convenience, you can also pass an action creator as the first argument,\n * and get a dispatch wrapped function in return.\n *\n * @param {Function|Object} actionCreators An object whose values are action\n * creator functions. One handy way to obtain it is to use ES6 `import * as`\n * syntax. You may also pass a single function.\n *\n * @param {Function} dispatch The `dispatch` function available on your Redux\n * store.\n *\n * @returns {Function|Object} The object mimicking the original object, but with\n * every action creator wrapped into the `dispatch` call. If you passed a\n * function as `actionCreators`, the return value will also be a single\n * function.\n */\n\n\nfunction bindActionCreators(actionCreators, dispatch) {\n if (typeof actionCreators === 'function') {\n return bindActionCreator(actionCreators, dispatch);\n }\n\n if (typeof actionCreators !== 'object' || actionCreators === null) {\n throw new Error(\"bindActionCreators expected an object or a function, instead received \" + (actionCreators === null ? 'null' : typeof actionCreators) + \". \" + \"Did you write \\\"import ActionCreators from\\\" instead of \\\"import * as ActionCreators from\\\"?\");\n }\n\n var boundActionCreators = {};\n\n for (var key in actionCreators) {\n var actionCreator = actionCreators[key];\n\n if (typeof actionCreator === 'function') {\n boundActionCreators[key] = bindActionCreator(actionCreator, dispatch);\n }\n }\n\n return boundActionCreators;\n}\n\nfunction _defineProperty(obj, key, value) {\n if (key in obj) {\n Object.defineProperty(obj, key, {\n value: value,\n enumerable: true,\n configurable: true,\n writable: true\n });\n } else {\n obj[key] = value;\n }\n\n return obj;\n}\n\nfunction ownKeys(object, enumerableOnly) {\n var keys = Object.keys(object);\n\n if (Object.getOwnPropertySymbols) {\n keys.push.apply(keys, Object.getOwnPropertySymbols(object));\n }\n\n if (enumerableOnly) keys = keys.filter(function (sym) {\n return Object.getOwnPropertyDescriptor(object, sym).enumerable;\n });\n return keys;\n}\n\nfunction _objectSpread2(target) {\n for (var i = 1; i < arguments.length; i++) {\n var source = arguments[i] != null ? arguments[i] : {};\n\n if (i % 2) {\n ownKeys(source, true).forEach(function (key) {\n _defineProperty(target, key, source[key]);\n });\n } else if (Object.getOwnPropertyDescriptors) {\n Object.defineProperties(target, Object.getOwnPropertyDescriptors(source));\n } else {\n ownKeys(source).forEach(function (key) {\n Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));\n });\n }\n }\n\n return target;\n}\n\n/**\n * Composes single-argument functions from right to left. The rightmost\n * function can take multiple arguments as it provides the signature for\n * the resulting composite function.\n *\n * @param {...Function} funcs The functions to compose.\n * @returns {Function} A function obtained by composing the argument functions\n * from right to left. For example, compose(f, g, h) is identical to doing\n * (...args) => f(g(h(...args))).\n */\nfunction compose() {\n for (var _len = arguments.length, funcs = new Array(_len), _key = 0; _key < _len; _key++) {\n funcs[_key] = arguments[_key];\n }\n\n if (funcs.length === 0) {\n return function (arg) {\n return arg;\n };\n }\n\n if (funcs.length === 1) {\n return funcs[0];\n }\n\n return funcs.reduce(function (a, b) {\n return function () {\n return a(b.apply(void 0, arguments));\n };\n });\n}\n\n/**\n * Creates a store enhancer that applies middleware to the dispatch method\n * of the Redux store. This is handy for a variety of tasks, such as expressing\n * asynchronous actions in a concise manner, or logging every action payload.\n *\n * See `redux-thunk` package as an example of the Redux middleware.\n *\n * Because middleware is potentially asynchronous, this should be the first\n * store enhancer in the composition chain.\n *\n * Note that each middleware will be given the `dispatch` and `getState` functions\n * as named arguments.\n *\n * @param {...Function} middlewares The middleware chain to be applied.\n * @returns {Function} A store enhancer applying the middleware.\n */\n\nfunction applyMiddleware() {\n for (var _len = arguments.length, middlewares = new Array(_len), _key = 0; _key < _len; _key++) {\n middlewares[_key] = arguments[_key];\n }\n\n return function (createStore) {\n return function () {\n var store = createStore.apply(void 0, arguments);\n\n var _dispatch = function dispatch() {\n throw new Error('Dispatching while constructing your middleware is not allowed. ' + 'Other middleware would not be applied to this dispatch.');\n };\n\n var middlewareAPI = {\n getState: store.getState,\n dispatch: function dispatch() {\n return _dispatch.apply(void 0, arguments);\n }\n };\n var chain = middlewares.map(function (middleware) {\n return middleware(middlewareAPI);\n });\n _dispatch = compose.apply(void 0, chain)(store.dispatch);\n return _objectSpread2({}, store, {\n dispatch: _dispatch\n });\n };\n };\n}\n\n/*\n * This is a dummy function to check if the function name has been altered by minification.\n * If the function has been minified and NODE_ENV !== 'production', warn the user.\n */\n\nfunction isCrushed() {}\n\nif (process.env.NODE_ENV !== 'production' && typeof isCrushed.name === 'string' && isCrushed.name !== 'isCrushed') {\n warning('You are currently using minified code outside of NODE_ENV === \"production\". ' + 'This means that you are running a slower development build of Redux. ' + 'You can use loose-envify (https://github.com/zertosh/loose-envify) for browserify ' + 'or setting mode to production in webpack (https://webpack.js.org/concepts/mode/) ' + 'to ensure you have the correct code for your production build.');\n}\n\nexport { ActionTypes as __DO_NOT_USE__ActionTypes, applyMiddleware, bindActionCreators, combineReducers, compose, createStore };\n","/* global window */\nimport ponyfill from './ponyfill.js';\n\nvar root;\n\nif (typeof self !== 'undefined') {\n root = self;\n} else if (typeof window !== 'undefined') {\n root = window;\n} else if (typeof global !== 'undefined') {\n root = global;\n} else if (typeof module !== 'undefined') {\n root = module;\n} else {\n root = Function('return this')();\n}\n\nvar result = ponyfill(root);\nexport default result;\n","export default function symbolObservablePonyfill(root) {\n\tvar result;\n\tvar Symbol = root.Symbol;\n\n\tif (typeof Symbol === 'function') {\n\t\tif (Symbol.observable) {\n\t\t\tresult = Symbol.observable;\n\t\t} else {\n\t\t\tresult = Symbol('observable');\n\t\t\tSymbol.observable = result;\n\t\t}\n\t} else {\n\t\tresult = '@@observable';\n\t}\n\n\treturn result;\n};\n","module.exports = function(originalModule) {\n\tif (!originalModule.webpackPolyfill) {\n\t\tvar module = Object.create(originalModule);\n\t\t// module.parent = undefined by default\n\t\tif (!module.children) module.children = [];\n\t\tObject.defineProperty(module, \"loaded\", {\n\t\t\tenumerable: true,\n\t\t\tget: function() {\n\t\t\t\treturn module.l;\n\t\t\t}\n\t\t});\n\t\tObject.defineProperty(module, \"id\", {\n\t\t\tenumerable: true,\n\t\t\tget: function() {\n\t\t\t\treturn module.i;\n\t\t\t}\n\t\t});\n\t\tObject.defineProperty(module, \"exports\", {\n\t\t\tenumerable: true\n\t\t});\n\t\tmodule.webpackPolyfill = 1;\n\t}\n\treturn module;\n};\n"],"sourceRoot":""} \ No newline at end of file diff --git a/views/js/dist/3.min.js b/views/js/dist/3.min.js deleted file mode 100644 index f1d74da61..000000000 --- a/views/js/dist/3.min.js +++ /dev/null @@ -1,795 +0,0 @@ -/** - * Mollie https://www.mollie.nl - * - * @author Mollie B.V. - * @copyright Mollie B.V. - * @license https://github.com/mollie/PrestaShop/blob/master/LICENSE.md - * - * @see https://github.com/mollie/PrestaShop - * @codingStandardsIgnoreStart - */ -(window["webpackJsonP_mollie"] = window["webpackJsonP_mollie"] || []).push([[3],{ - -/***/ "./node_modules/redux/es/redux.js": -/*!****************************************!*\ - !*** ./node_modules/redux/es/redux.js ***! - \****************************************/ -/*! exports provided: __DO_NOT_USE__ActionTypes, applyMiddleware, bindActionCreators, combineReducers, compose, createStore */ -/***/ (function(module, __webpack_exports__, __webpack_require__) { - -"use strict"; -__webpack_require__.r(__webpack_exports__); -/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "__DO_NOT_USE__ActionTypes", function() { return ActionTypes; }); -/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "applyMiddleware", function() { return applyMiddleware; }); -/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "bindActionCreators", function() { return bindActionCreators; }); -/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "combineReducers", function() { return combineReducers; }); -/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "compose", function() { return compose; }); -/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "createStore", function() { return createStore; }); -/* harmony import */ var symbol_observable__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! symbol-observable */ "./node_modules/symbol-observable/es/index.js"); - - -/** - * These are private action types reserved by Redux. - * For any unknown actions, you must return the current state. - * If the current state is undefined, you must return the initial state. - * Do not reference these action types directly in your code. - */ -var randomString = function randomString() { - return Math.random().toString(36).substring(7).split('').join('.'); -}; - -var ActionTypes = { - INIT: "@@redux/INIT" + randomString(), - REPLACE: "@@redux/REPLACE" + randomString(), - PROBE_UNKNOWN_ACTION: function PROBE_UNKNOWN_ACTION() { - return "@@redux/PROBE_UNKNOWN_ACTION" + randomString(); - } -}; - -/** - * @param {any} obj The object to inspect. - * @returns {boolean} True if the argument appears to be a plain object. - */ -function isPlainObject(obj) { - if (typeof obj !== 'object' || obj === null) return false; - var proto = obj; - - while (Object.getPrototypeOf(proto) !== null) { - proto = Object.getPrototypeOf(proto); - } - - return Object.getPrototypeOf(obj) === proto; -} - -/** - * Creates a Redux store that holds the state tree. - * The only way to change the data in the store is to call `dispatch()` on it. - * - * There should only be a single store in your app. To specify how different - * parts of the state tree respond to actions, you may combine several reducers - * into a single reducer function by using `combineReducers`. - * - * @param {Function} reducer A function that returns the next state tree, given - * the current state tree and the action to handle. - * - * @param {any} [preloadedState] The initial state. You may optionally specify it - * to hydrate the state from the server in universal apps, or to restore a - * previously serialized user session. - * If you use `combineReducers` to produce the root reducer function, this must be - * an object with the same shape as `combineReducers` keys. - * - * @param {Function} [enhancer] The store enhancer. You may optionally specify it - * to enhance the store with third-party capabilities such as middleware, - * time travel, persistence, etc. The only store enhancer that ships with Redux - * is `applyMiddleware()`. - * - * @returns {Store} A Redux store that lets you read the state, dispatch actions - * and subscribe to changes. - */ - -function createStore(reducer, preloadedState, enhancer) { - var _ref2; - - if (typeof preloadedState === 'function' && typeof enhancer === 'function' || typeof enhancer === 'function' && typeof arguments[3] === 'function') { - throw new Error('It looks like you are passing several store enhancers to ' + 'createStore(). This is not supported. Instead, compose them ' + 'together to a single function.'); - } - - if (typeof preloadedState === 'function' && typeof enhancer === 'undefined') { - enhancer = preloadedState; - preloadedState = undefined; - } - - if (typeof enhancer !== 'undefined') { - if (typeof enhancer !== 'function') { - throw new Error('Expected the enhancer to be a function.'); - } - - return enhancer(createStore)(reducer, preloadedState); - } - - if (typeof reducer !== 'function') { - throw new Error('Expected the reducer to be a function.'); - } - - var currentReducer = reducer; - var currentState = preloadedState; - var currentListeners = []; - var nextListeners = currentListeners; - var isDispatching = false; - /** - * This makes a shallow copy of currentListeners so we can use - * nextListeners as a temporary list while dispatching. - * - * This prevents any bugs around consumers calling - * subscribe/unsubscribe in the middle of a dispatch. - */ - - function ensureCanMutateNextListeners() { - if (nextListeners === currentListeners) { - nextListeners = currentListeners.slice(); - } - } - /** - * Reads the state tree managed by the store. - * - * @returns {any} The current state tree of your application. - */ - - - function getState() { - if (isDispatching) { - throw new Error('You may not call store.getState() while the reducer is executing. ' + 'The reducer has already received the state as an argument. ' + 'Pass it down from the top reducer instead of reading it from the store.'); - } - - return currentState; - } - /** - * Adds a change listener. It will be called any time an action is dispatched, - * and some part of the state tree may potentially have changed. You may then - * call `getState()` to read the current state tree inside the callback. - * - * You may call `dispatch()` from a change listener, with the following - * caveats: - * - * 1. The subscriptions are snapshotted just before every `dispatch()` call. - * If you subscribe or unsubscribe while the listeners are being invoked, this - * will not have any effect on the `dispatch()` that is currently in progress. - * However, the next `dispatch()` call, whether nested or not, will use a more - * recent snapshot of the subscription list. - * - * 2. The listener should not expect to see all state changes, as the state - * might have been updated multiple times during a nested `dispatch()` before - * the listener is called. It is, however, guaranteed that all subscribers - * registered before the `dispatch()` started will be called with the latest - * state by the time it exits. - * - * @param {Function} listener A callback to be invoked on every dispatch. - * @returns {Function} A function to remove this change listener. - */ - - - function subscribe(listener) { - if (typeof listener !== 'function') { - throw new Error('Expected the listener to be a function.'); - } - - if (isDispatching) { - throw new Error('You may not call store.subscribe() while the reducer is executing. ' + 'If you would like to be notified after the store has been updated, subscribe from a ' + 'component and invoke store.getState() in the callback to access the latest state. ' + 'See https://redux.js.org/api-reference/store#subscribelistener for more details.'); - } - - var isSubscribed = true; - ensureCanMutateNextListeners(); - nextListeners.push(listener); - return function unsubscribe() { - if (!isSubscribed) { - return; - } - - if (isDispatching) { - throw new Error('You may not unsubscribe from a store listener while the reducer is executing. ' + 'See https://redux.js.org/api-reference/store#subscribelistener for more details.'); - } - - isSubscribed = false; - ensureCanMutateNextListeners(); - var index = nextListeners.indexOf(listener); - nextListeners.splice(index, 1); - currentListeners = null; - }; - } - /** - * Dispatches an action. It is the only way to trigger a state change. - * - * The `reducer` function, used to create the store, will be called with the - * current state tree and the given `action`. Its return value will - * be considered the **next** state of the tree, and the change listeners - * will be notified. - * - * The base implementation only supports plain object actions. If you want to - * dispatch a Promise, an Observable, a thunk, or something else, you need to - * wrap your store creating function into the corresponding middleware. For - * example, see the documentation for the `redux-thunk` package. Even the - * middleware will eventually dispatch plain object actions using this method. - * - * @param {Object} action A plain object representing “what changed”. It is - * a good idea to keep actions serializable so you can record and replay user - * sessions, or use the time travelling `redux-devtools`. An action must have - * a `type` property which may not be `undefined`. It is a good idea to use - * string constants for action types. - * - * @returns {Object} For convenience, the same action object you dispatched. - * - * Note that, if you use a custom middleware, it may wrap `dispatch()` to - * return something else (for example, a Promise you can await). - */ - - - function dispatch(action) { - if (!isPlainObject(action)) { - throw new Error('Actions must be plain objects. ' + 'Use custom middleware for async actions.'); - } - - if (typeof action.type === 'undefined') { - throw new Error('Actions may not have an undefined "type" property. ' + 'Have you misspelled a constant?'); - } - - if (isDispatching) { - throw new Error('Reducers may not dispatch actions.'); - } - - try { - isDispatching = true; - currentState = currentReducer(currentState, action); - } finally { - isDispatching = false; - } - - var listeners = currentListeners = nextListeners; - - for (var i = 0; i < listeners.length; i++) { - var listener = listeners[i]; - listener(); - } - - return action; - } - /** - * Replaces the reducer currently used by the store to calculate the state. - * - * You might need this if your app implements code splitting and you want to - * load some of the reducers dynamically. You might also need this if you - * implement a hot reloading mechanism for Redux. - * - * @param {Function} nextReducer The reducer for the store to use instead. - * @returns {void} - */ - - - function replaceReducer(nextReducer) { - if (typeof nextReducer !== 'function') { - throw new Error('Expected the nextReducer to be a function.'); - } - - currentReducer = nextReducer; // This action has a similiar effect to ActionTypes.INIT. - // Any reducers that existed in both the new and old rootReducer - // will receive the previous state. This effectively populates - // the new state tree with any relevant data from the old one. - - dispatch({ - type: ActionTypes.REPLACE - }); - } - /** - * Interoperability point for observable/reactive libraries. - * @returns {observable} A minimal observable of state changes. - * For more information, see the observable proposal: - * https://github.com/tc39/proposal-observable - */ - - - function observable() { - var _ref; - - var outerSubscribe = subscribe; - return _ref = { - /** - * The minimal observable subscription method. - * @param {Object} observer Any object that can be used as an observer. - * The observer object should have a `next` method. - * @returns {subscription} An object with an `unsubscribe` method that can - * be used to unsubscribe the observable from the store, and prevent further - * emission of values from the observable. - */ - subscribe: function subscribe(observer) { - if (typeof observer !== 'object' || observer === null) { - throw new TypeError('Expected the observer to be an object.'); - } - - function observeState() { - if (observer.next) { - observer.next(getState()); - } - } - - observeState(); - var unsubscribe = outerSubscribe(observeState); - return { - unsubscribe: unsubscribe - }; - } - }, _ref[symbol_observable__WEBPACK_IMPORTED_MODULE_0__["default"]] = function () { - return this; - }, _ref; - } // When a store is created, an "INIT" action is dispatched so that every - // reducer returns their initial state. This effectively populates - // the initial state tree. - - - dispatch({ - type: ActionTypes.INIT - }); - return _ref2 = { - dispatch: dispatch, - subscribe: subscribe, - getState: getState, - replaceReducer: replaceReducer - }, _ref2[symbol_observable__WEBPACK_IMPORTED_MODULE_0__["default"]] = observable, _ref2; -} - -/** - * Prints a warning in the console if it exists. - * - * @param {String} message The warning message. - * @returns {void} - */ -function warning(message) { - /* eslint-disable no-console */ - if (typeof console !== 'undefined' && typeof console.error === 'function') { - console.error(message); - } - /* eslint-enable no-console */ - - - try { - // This error was thrown as a convenience so that if you enable - // "break on all exceptions" in your console, - // it would pause the execution at this line. - throw new Error(message); - } catch (e) {} // eslint-disable-line no-empty - -} - -function getUndefinedStateErrorMessage(key, action) { - var actionType = action && action.type; - var actionDescription = actionType && "action \"" + String(actionType) + "\"" || 'an action'; - return "Given " + actionDescription + ", reducer \"" + key + "\" returned undefined. " + "To ignore an action, you must explicitly return the previous state. " + "If you want this reducer to hold no value, you can return null instead of undefined."; -} - -function getUnexpectedStateShapeWarningMessage(inputState, reducers, action, unexpectedKeyCache) { - var reducerKeys = Object.keys(reducers); - var argumentName = action && action.type === ActionTypes.INIT ? 'preloadedState argument passed to createStore' : 'previous state received by the reducer'; - - if (reducerKeys.length === 0) { - return 'Store does not have a valid reducer. Make sure the argument passed ' + 'to combineReducers is an object whose values are reducers.'; - } - - if (!isPlainObject(inputState)) { - return "The " + argumentName + " has unexpected type of \"" + {}.toString.call(inputState).match(/\s([a-z|A-Z]+)/)[1] + "\". Expected argument to be an object with the following " + ("keys: \"" + reducerKeys.join('", "') + "\""); - } - - var unexpectedKeys = Object.keys(inputState).filter(function (key) { - return !reducers.hasOwnProperty(key) && !unexpectedKeyCache[key]; - }); - unexpectedKeys.forEach(function (key) { - unexpectedKeyCache[key] = true; - }); - if (action && action.type === ActionTypes.REPLACE) return; - - if (unexpectedKeys.length > 0) { - return "Unexpected " + (unexpectedKeys.length > 1 ? 'keys' : 'key') + " " + ("\"" + unexpectedKeys.join('", "') + "\" found in " + argumentName + ". ") + "Expected to find one of the known reducer keys instead: " + ("\"" + reducerKeys.join('", "') + "\". Unexpected keys will be ignored."); - } -} - -function assertReducerShape(reducers) { - Object.keys(reducers).forEach(function (key) { - var reducer = reducers[key]; - var initialState = reducer(undefined, { - type: ActionTypes.INIT - }); - - if (typeof initialState === 'undefined') { - throw new Error("Reducer \"" + key + "\" returned undefined during initialization. " + "If the state passed to the reducer is undefined, you must " + "explicitly return the initial state. The initial state may " + "not be undefined. If you don't want to set a value for this reducer, " + "you can use null instead of undefined."); - } - - if (typeof reducer(undefined, { - type: ActionTypes.PROBE_UNKNOWN_ACTION() - }) === 'undefined') { - throw new Error("Reducer \"" + key + "\" returned undefined when probed with a random type. " + ("Don't try to handle " + ActionTypes.INIT + " or other actions in \"redux/*\" ") + "namespace. They are considered private. Instead, you must return the " + "current state for any unknown actions, unless it is undefined, " + "in which case you must return the initial state, regardless of the " + "action type. The initial state may not be undefined, but can be null."); - } - }); -} -/** - * Turns an object whose values are different reducer functions, into a single - * reducer function. It will call every child reducer, and gather their results - * into a single state object, whose keys correspond to the keys of the passed - * reducer functions. - * - * @param {Object} reducers An object whose values correspond to different - * reducer functions that need to be combined into one. One handy way to obtain - * it is to use ES6 `import * as reducers` syntax. The reducers may never return - * undefined for any action. Instead, they should return their initial state - * if the state passed to them was undefined, and the current state for any - * unrecognized action. - * - * @returns {Function} A reducer function that invokes every reducer inside the - * passed object, and builds a state object with the same shape. - */ - - -function combineReducers(reducers) { - var reducerKeys = Object.keys(reducers); - var finalReducers = {}; - - for (var i = 0; i < reducerKeys.length; i++) { - var key = reducerKeys[i]; - - if (true) { - if (typeof reducers[key] === 'undefined') { - warning("No reducer provided for key \"" + key + "\""); - } - } - - if (typeof reducers[key] === 'function') { - finalReducers[key] = reducers[key]; - } - } - - var finalReducerKeys = Object.keys(finalReducers); // This is used to make sure we don't warn about the same - // keys multiple times. - - var unexpectedKeyCache; - - if (true) { - unexpectedKeyCache = {}; - } - - var shapeAssertionError; - - try { - assertReducerShape(finalReducers); - } catch (e) { - shapeAssertionError = e; - } - - return function combination(state, action) { - if (state === void 0) { - state = {}; - } - - if (shapeAssertionError) { - throw shapeAssertionError; - } - - if (true) { - var warningMessage = getUnexpectedStateShapeWarningMessage(state, finalReducers, action, unexpectedKeyCache); - - if (warningMessage) { - warning(warningMessage); - } - } - - var hasChanged = false; - var nextState = {}; - - for (var _i = 0; _i < finalReducerKeys.length; _i++) { - var _key = finalReducerKeys[_i]; - var reducer = finalReducers[_key]; - var previousStateForKey = state[_key]; - var nextStateForKey = reducer(previousStateForKey, action); - - if (typeof nextStateForKey === 'undefined') { - var errorMessage = getUndefinedStateErrorMessage(_key, action); - throw new Error(errorMessage); - } - - nextState[_key] = nextStateForKey; - hasChanged = hasChanged || nextStateForKey !== previousStateForKey; - } - - hasChanged = hasChanged || finalReducerKeys.length !== Object.keys(state).length; - return hasChanged ? nextState : state; - }; -} - -function bindActionCreator(actionCreator, dispatch) { - return function () { - return dispatch(actionCreator.apply(this, arguments)); - }; -} -/** - * Turns an object whose values are action creators, into an object with the - * same keys, but with every function wrapped into a `dispatch` call so they - * may be invoked directly. This is just a convenience method, as you can call - * `store.dispatch(MyActionCreators.doSomething())` yourself just fine. - * - * For convenience, you can also pass an action creator as the first argument, - * and get a dispatch wrapped function in return. - * - * @param {Function|Object} actionCreators An object whose values are action - * creator functions. One handy way to obtain it is to use ES6 `import * as` - * syntax. You may also pass a single function. - * - * @param {Function} dispatch The `dispatch` function available on your Redux - * store. - * - * @returns {Function|Object} The object mimicking the original object, but with - * every action creator wrapped into the `dispatch` call. If you passed a - * function as `actionCreators`, the return value will also be a single - * function. - */ - - -function bindActionCreators(actionCreators, dispatch) { - if (typeof actionCreators === 'function') { - return bindActionCreator(actionCreators, dispatch); - } - - if (typeof actionCreators !== 'object' || actionCreators === null) { - throw new Error("bindActionCreators expected an object or a function, instead received " + (actionCreators === null ? 'null' : typeof actionCreators) + ". " + "Did you write \"import ActionCreators from\" instead of \"import * as ActionCreators from\"?"); - } - - var boundActionCreators = {}; - - for (var key in actionCreators) { - var actionCreator = actionCreators[key]; - - if (typeof actionCreator === 'function') { - boundActionCreators[key] = bindActionCreator(actionCreator, dispatch); - } - } - - return boundActionCreators; -} - -function _defineProperty(obj, key, value) { - if (key in obj) { - Object.defineProperty(obj, key, { - value: value, - enumerable: true, - configurable: true, - writable: true - }); - } else { - obj[key] = value; - } - - return obj; -} - -function ownKeys(object, enumerableOnly) { - var keys = Object.keys(object); - - if (Object.getOwnPropertySymbols) { - keys.push.apply(keys, Object.getOwnPropertySymbols(object)); - } - - if (enumerableOnly) keys = keys.filter(function (sym) { - return Object.getOwnPropertyDescriptor(object, sym).enumerable; - }); - return keys; -} - -function _objectSpread2(target) { - for (var i = 1; i < arguments.length; i++) { - var source = arguments[i] != null ? arguments[i] : {}; - - if (i % 2) { - ownKeys(source, true).forEach(function (key) { - _defineProperty(target, key, source[key]); - }); - } else if (Object.getOwnPropertyDescriptors) { - Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); - } else { - ownKeys(source).forEach(function (key) { - Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); - }); - } - } - - return target; -} - -/** - * Composes single-argument functions from right to left. The rightmost - * function can take multiple arguments as it provides the signature for - * the resulting composite function. - * - * @param {...Function} funcs The functions to compose. - * @returns {Function} A function obtained by composing the argument functions - * from right to left. For example, compose(f, g, h) is identical to doing - * (...args) => f(g(h(...args))). - */ -function compose() { - for (var _len = arguments.length, funcs = new Array(_len), _key = 0; _key < _len; _key++) { - funcs[_key] = arguments[_key]; - } - - if (funcs.length === 0) { - return function (arg) { - return arg; - }; - } - - if (funcs.length === 1) { - return funcs[0]; - } - - return funcs.reduce(function (a, b) { - return function () { - return a(b.apply(void 0, arguments)); - }; - }); -} - -/** - * Creates a store enhancer that applies middleware to the dispatch method - * of the Redux store. This is handy for a variety of tasks, such as expressing - * asynchronous actions in a concise manner, or logging every action payload. - * - * See `redux-thunk` package as an example of the Redux middleware. - * - * Because middleware is potentially asynchronous, this should be the first - * store enhancer in the composition chain. - * - * Note that each middleware will be given the `dispatch` and `getState` functions - * as named arguments. - * - * @param {...Function} middlewares The middleware chain to be applied. - * @returns {Function} A store enhancer applying the middleware. - */ - -function applyMiddleware() { - for (var _len = arguments.length, middlewares = new Array(_len), _key = 0; _key < _len; _key++) { - middlewares[_key] = arguments[_key]; - } - - return function (createStore) { - return function () { - var store = createStore.apply(void 0, arguments); - - var _dispatch = function dispatch() { - throw new Error('Dispatching while constructing your middleware is not allowed. ' + 'Other middleware would not be applied to this dispatch.'); - }; - - var middlewareAPI = { - getState: store.getState, - dispatch: function dispatch() { - return _dispatch.apply(void 0, arguments); - } - }; - var chain = middlewares.map(function (middleware) { - return middleware(middlewareAPI); - }); - _dispatch = compose.apply(void 0, chain)(store.dispatch); - return _objectSpread2({}, store, { - dispatch: _dispatch - }); - }; - }; -} - -/* - * This is a dummy function to check if the function name has been altered by minification. - * If the function has been minified and NODE_ENV !== 'production', warn the user. - */ - -function isCrushed() {} - -if ( true && typeof isCrushed.name === 'string' && isCrushed.name !== 'isCrushed') { - warning('You are currently using minified code outside of NODE_ENV === "production". ' + 'This means that you are running a slower development build of Redux. ' + 'You can use loose-envify (https://github.com/zertosh/loose-envify) for browserify ' + 'or setting mode to production in webpack (https://webpack.js.org/concepts/mode/) ' + 'to ensure you have the correct code for your production build.'); -} - - - - -/***/ }), - -/***/ "./node_modules/symbol-observable/es/index.js": -/*!****************************************************!*\ - !*** ./node_modules/symbol-observable/es/index.js ***! - \****************************************************/ -/*! exports provided: default */ -/***/ (function(module, __webpack_exports__, __webpack_require__) { - -"use strict"; -__webpack_require__.r(__webpack_exports__); -/* WEBPACK VAR INJECTION */(function(global, module) {/* harmony import */ var _ponyfill_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./ponyfill.js */ "./node_modules/symbol-observable/es/ponyfill.js"); -/* global window */ - - -var root; - -if (typeof self !== 'undefined') { - root = self; -} else if (typeof window !== 'undefined') { - root = window; -} else if (typeof global !== 'undefined') { - root = global; -} else if (true) { - root = module; -} else {} - -var result = Object(_ponyfill_js__WEBPACK_IMPORTED_MODULE_0__["default"])(root); -/* harmony default export */ __webpack_exports__["default"] = (result); - -/* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./../../webpack/buildin/global.js */ "./node_modules/webpack/buildin/global.js"), __webpack_require__(/*! ./../../webpack/buildin/harmony-module.js */ "./node_modules/webpack/buildin/harmony-module.js")(module))) - -/***/ }), - -/***/ "./node_modules/symbol-observable/es/ponyfill.js": -/*!*******************************************************!*\ - !*** ./node_modules/symbol-observable/es/ponyfill.js ***! - \*******************************************************/ -/*! exports provided: default */ -/***/ (function(module, __webpack_exports__, __webpack_require__) { - -"use strict"; -__webpack_require__.r(__webpack_exports__); -/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "default", function() { return symbolObservablePonyfill; }); -function symbolObservablePonyfill(root) { - var result; - var Symbol = root.Symbol; - - if (typeof Symbol === 'function') { - if (Symbol.observable) { - result = Symbol.observable; - } else { - result = Symbol('observable'); - Symbol.observable = result; - } - } else { - result = '@@observable'; - } - - return result; -}; - - -/***/ }), - -/***/ "./node_modules/webpack/buildin/harmony-module.js": -/*!*******************************************!*\ - !*** (webpack)/buildin/harmony-module.js ***! - \*******************************************/ -/*! no static exports found */ -/***/ (function(module, exports) { - -module.exports = function(originalModule) { - if (!originalModule.webpackPolyfill) { - var module = Object.create(originalModule); - // module.parent = undefined by default - if (!module.children) module.children = []; - Object.defineProperty(module, "loaded", { - enumerable: true, - get: function() { - return module.l; - } - }); - Object.defineProperty(module, "id", { - enumerable: true, - get: function() { - return module.i; - } - }); - Object.defineProperty(module, "exports", { - enumerable: true - }); - module.webpackPolyfill = 1; - } - return module; -}; - - -/***/ }) - -}]); -//# sourceMappingURL=3.min.js.map diff --git a/views/js/dist/3.min.js.map b/views/js/dist/3.min.js.map deleted file mode 100644 index a9e89e039..000000000 --- a/views/js/dist/3.min.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"sources":["webpack://MollieModule.[name]/./node_modules/redux/es/redux.js","webpack://MollieModule.[name]/./node_modules/symbol-observable/es/index.js","webpack://MollieModule.[name]/./node_modules/symbol-observable/es/ponyfill.js","webpack://MollieModule.[name]/(webpack)/buildin/harmony-module.js"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAA6C;;AAE7C;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA,WAAW,IAAI;AACf,aAAa,QAAQ;AACrB;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,WAAW,SAAS;AACpB;AACA;AACA,WAAW,IAAI;AACf;AACA;AACA;AACA;AACA;AACA,WAAW,SAAS;AACpB;AACA;AACA;AACA;AACA,aAAa,MAAM;AACnB;AACA;;AAEA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,eAAe,IAAI;AACnB;;;AAGA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,aAAa,SAAS;AACtB,eAAe,SAAS;AACxB;;;AAGA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,aAAa,OAAO;AACpB;AACA;AACA;AACA;AACA;AACA,eAAe,OAAO;AACtB;AACA;AACA;AACA;;;AAGA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA,KAAK;AACL;AACA;;AAEA;;AAEA,mBAAmB,sBAAsB;AACzC;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,aAAa,SAAS;AACtB,eAAe;AACf;;;AAGA;AACA;AACA;AACA;;AAEA,iCAAiC;AACjC;AACA;AACA;;AAEA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA,eAAe,WAAW;AAC1B;AACA;AACA;;;AAGA;AACA;;AAEA;AACA;AACA;AACA;AACA,iBAAiB,OAAO;AACxB;AACA,mBAAmB,aAAa;AAChC;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK,OAAO,yDAAY;AACxB;AACA,KAAK;AACL,GAAG;AACH;AACA;;;AAGA;AACA;AACA,GAAG;AACH;AACA;AACA;AACA;AACA;AACA,GAAG,QAAQ,yDAAY;AACvB;;AAEA;AACA;AACA;AACA,WAAW,OAAO;AAClB,aAAa;AACb;AACA;AACA;AACA;AACA;AACA;AACA;;;AAGA;AACA;AACA;AACA;AACA;AACA,GAAG,aAAa;;AAEhB;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA,oEAAoE;AACpE;;AAEA;AACA;AACA,GAAG;AACH;AACA;AACA,GAAG;AACH;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,KAAK;;AAEL;AACA;AACA;;AAEA;AACA;AACA,KAAK;AACL;AACA;AACA,GAAG;AACH;AACA;AACA;AACA;AACA;AACA;AACA;AACA,WAAW,OAAO;AAClB;AACA;AACA;AACA;AACA;AACA;AACA,aAAa,SAAS;AACtB;AACA;;;AAGA;AACA;AACA;;AAEA,iBAAiB,wBAAwB;AACzC;;AAEA,QAAQ,IAAqC;AAC7C;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA,oDAAoD;AACpD;;AAEA;;AAEA,MAAM,IAAqC;AAC3C;AACA;;AAEA;;AAEA;AACA;AACA,GAAG;AACH;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA,QAAQ,IAAqC;AAC7C;;AAEA;AACA;AACA;AACA;;AAEA;AACA;;AAEA,oBAAoB,8BAA8B;AAClD;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,WAAW,gBAAgB;AAC3B;AACA;AACA;AACA,WAAW,SAAS;AACpB;AACA;AACA,aAAa,gBAAgB;AAC7B;AACA;AACA;AACA;;;AAGA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;AACL,GAAG;AACH;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA,GAAG;AACH;AACA;;AAEA;AACA,iBAAiB,sBAAsB;AACvC;;AAEA;AACA;AACA;AACA,OAAO;AACP,KAAK;AACL;AACA,KAAK;AACL;AACA;AACA,OAAO;AACP;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,WAAW,YAAY;AACvB,aAAa,SAAS;AACtB;AACA;AACA;AACA;AACA,sEAAsE,aAAa;AACnF;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA,GAAG;AACH;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,WAAW,YAAY;AACvB,aAAa,SAAS;AACtB;;AAEA;AACA,4EAA4E,aAAa;AACzF;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,OAAO;AACP;AACA,8BAA8B;AAC9B;AACA,OAAO;AACP;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;;AAEA,IAAI,KAAqC;AACzC;AACA;;AAEgI;;;;;;;;;;;;;ACtpBhI;AAAA;AAAA;AACqC;;AAErC;;AAEA;AACA;AACA,CAAC;AACD;AACA,CAAC;AACD;AACA,CAAC,UAAU,IAA6B;AACxC;AACA,CAAC,MAAM,EAEN;;AAED,aAAa,4DAAQ;AACN,qEAAM,EAAC;;;;;;;;;;;;;;AClBtB;AAAA;AAAe;AACf;AACA;;AAEA;AACA;AACA;AACA,GAAG;AACH;AACA;AACA;AACA,EAAE;AACF;AACA;;AAEA;AACA;;;;;;;;;;;;AChBA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,GAAG;AACH;AACA;AACA;AACA;AACA;AACA,GAAG;AACH;AACA;AACA,GAAG;AACH;AACA;AACA;AACA","file":"3.min.js","sourcesContent":["import $$observable from 'symbol-observable';\n\n/**\n * These are private action types reserved by Redux.\n * For any unknown actions, you must return the current state.\n * If the current state is undefined, you must return the initial state.\n * Do not reference these action types directly in your code.\n */\nvar randomString = function randomString() {\n return Math.random().toString(36).substring(7).split('').join('.');\n};\n\nvar ActionTypes = {\n INIT: \"@@redux/INIT\" + randomString(),\n REPLACE: \"@@redux/REPLACE\" + randomString(),\n PROBE_UNKNOWN_ACTION: function PROBE_UNKNOWN_ACTION() {\n return \"@@redux/PROBE_UNKNOWN_ACTION\" + randomString();\n }\n};\n\n/**\n * @param {any} obj The object to inspect.\n * @returns {boolean} True if the argument appears to be a plain object.\n */\nfunction isPlainObject(obj) {\n if (typeof obj !== 'object' || obj === null) return false;\n var proto = obj;\n\n while (Object.getPrototypeOf(proto) !== null) {\n proto = Object.getPrototypeOf(proto);\n }\n\n return Object.getPrototypeOf(obj) === proto;\n}\n\n/**\n * Creates a Redux store that holds the state tree.\n * The only way to change the data in the store is to call `dispatch()` on it.\n *\n * There should only be a single store in your app. To specify how different\n * parts of the state tree respond to actions, you may combine several reducers\n * into a single reducer function by using `combineReducers`.\n *\n * @param {Function} reducer A function that returns the next state tree, given\n * the current state tree and the action to handle.\n *\n * @param {any} [preloadedState] The initial state. You may optionally specify it\n * to hydrate the state from the server in universal apps, or to restore a\n * previously serialized user session.\n * If you use `combineReducers` to produce the root reducer function, this must be\n * an object with the same shape as `combineReducers` keys.\n *\n * @param {Function} [enhancer] The store enhancer. You may optionally specify it\n * to enhance the store with third-party capabilities such as middleware,\n * time travel, persistence, etc. The only store enhancer that ships with Redux\n * is `applyMiddleware()`.\n *\n * @returns {Store} A Redux store that lets you read the state, dispatch actions\n * and subscribe to changes.\n */\n\nfunction createStore(reducer, preloadedState, enhancer) {\n var _ref2;\n\n if (typeof preloadedState === 'function' && typeof enhancer === 'function' || typeof enhancer === 'function' && typeof arguments[3] === 'function') {\n throw new Error('It looks like you are passing several store enhancers to ' + 'createStore(). This is not supported. Instead, compose them ' + 'together to a single function.');\n }\n\n if (typeof preloadedState === 'function' && typeof enhancer === 'undefined') {\n enhancer = preloadedState;\n preloadedState = undefined;\n }\n\n if (typeof enhancer !== 'undefined') {\n if (typeof enhancer !== 'function') {\n throw new Error('Expected the enhancer to be a function.');\n }\n\n return enhancer(createStore)(reducer, preloadedState);\n }\n\n if (typeof reducer !== 'function') {\n throw new Error('Expected the reducer to be a function.');\n }\n\n var currentReducer = reducer;\n var currentState = preloadedState;\n var currentListeners = [];\n var nextListeners = currentListeners;\n var isDispatching = false;\n /**\n * This makes a shallow copy of currentListeners so we can use\n * nextListeners as a temporary list while dispatching.\n *\n * This prevents any bugs around consumers calling\n * subscribe/unsubscribe in the middle of a dispatch.\n */\n\n function ensureCanMutateNextListeners() {\n if (nextListeners === currentListeners) {\n nextListeners = currentListeners.slice();\n }\n }\n /**\n * Reads the state tree managed by the store.\n *\n * @returns {any} The current state tree of your application.\n */\n\n\n function getState() {\n if (isDispatching) {\n throw new Error('You may not call store.getState() while the reducer is executing. ' + 'The reducer has already received the state as an argument. ' + 'Pass it down from the top reducer instead of reading it from the store.');\n }\n\n return currentState;\n }\n /**\n * Adds a change listener. It will be called any time an action is dispatched,\n * and some part of the state tree may potentially have changed. You may then\n * call `getState()` to read the current state tree inside the callback.\n *\n * You may call `dispatch()` from a change listener, with the following\n * caveats:\n *\n * 1. The subscriptions are snapshotted just before every `dispatch()` call.\n * If you subscribe or unsubscribe while the listeners are being invoked, this\n * will not have any effect on the `dispatch()` that is currently in progress.\n * However, the next `dispatch()` call, whether nested or not, will use a more\n * recent snapshot of the subscription list.\n *\n * 2. The listener should not expect to see all state changes, as the state\n * might have been updated multiple times during a nested `dispatch()` before\n * the listener is called. It is, however, guaranteed that all subscribers\n * registered before the `dispatch()` started will be called with the latest\n * state by the time it exits.\n *\n * @param {Function} listener A callback to be invoked on every dispatch.\n * @returns {Function} A function to remove this change listener.\n */\n\n\n function subscribe(listener) {\n if (typeof listener !== 'function') {\n throw new Error('Expected the listener to be a function.');\n }\n\n if (isDispatching) {\n throw new Error('You may not call store.subscribe() while the reducer is executing. ' + 'If you would like to be notified after the store has been updated, subscribe from a ' + 'component and invoke store.getState() in the callback to access the latest state. ' + 'See https://redux.js.org/api-reference/store#subscribelistener for more details.');\n }\n\n var isSubscribed = true;\n ensureCanMutateNextListeners();\n nextListeners.push(listener);\n return function unsubscribe() {\n if (!isSubscribed) {\n return;\n }\n\n if (isDispatching) {\n throw new Error('You may not unsubscribe from a store listener while the reducer is executing. ' + 'See https://redux.js.org/api-reference/store#subscribelistener for more details.');\n }\n\n isSubscribed = false;\n ensureCanMutateNextListeners();\n var index = nextListeners.indexOf(listener);\n nextListeners.splice(index, 1);\n currentListeners = null;\n };\n }\n /**\n * Dispatches an action. It is the only way to trigger a state change.\n *\n * The `reducer` function, used to create the store, will be called with the\n * current state tree and the given `action`. Its return value will\n * be considered the **next** state of the tree, and the change listeners\n * will be notified.\n *\n * The base implementation only supports plain object actions. If you want to\n * dispatch a Promise, an Observable, a thunk, or something else, you need to\n * wrap your store creating function into the corresponding middleware. For\n * example, see the documentation for the `redux-thunk` package. Even the\n * middleware will eventually dispatch plain object actions using this method.\n *\n * @param {Object} action A plain object representing “what changed”. It is\n * a good idea to keep actions serializable so you can record and replay user\n * sessions, or use the time travelling `redux-devtools`. An action must have\n * a `type` property which may not be `undefined`. It is a good idea to use\n * string constants for action types.\n *\n * @returns {Object} For convenience, the same action object you dispatched.\n *\n * Note that, if you use a custom middleware, it may wrap `dispatch()` to\n * return something else (for example, a Promise you can await).\n */\n\n\n function dispatch(action) {\n if (!isPlainObject(action)) {\n throw new Error('Actions must be plain objects. ' + 'Use custom middleware for async actions.');\n }\n\n if (typeof action.type === 'undefined') {\n throw new Error('Actions may not have an undefined \"type\" property. ' + 'Have you misspelled a constant?');\n }\n\n if (isDispatching) {\n throw new Error('Reducers may not dispatch actions.');\n }\n\n try {\n isDispatching = true;\n currentState = currentReducer(currentState, action);\n } finally {\n isDispatching = false;\n }\n\n var listeners = currentListeners = nextListeners;\n\n for (var i = 0; i < listeners.length; i++) {\n var listener = listeners[i];\n listener();\n }\n\n return action;\n }\n /**\n * Replaces the reducer currently used by the store to calculate the state.\n *\n * You might need this if your app implements code splitting and you want to\n * load some of the reducers dynamically. You might also need this if you\n * implement a hot reloading mechanism for Redux.\n *\n * @param {Function} nextReducer The reducer for the store to use instead.\n * @returns {void}\n */\n\n\n function replaceReducer(nextReducer) {\n if (typeof nextReducer !== 'function') {\n throw new Error('Expected the nextReducer to be a function.');\n }\n\n currentReducer = nextReducer; // This action has a similiar effect to ActionTypes.INIT.\n // Any reducers that existed in both the new and old rootReducer\n // will receive the previous state. This effectively populates\n // the new state tree with any relevant data from the old one.\n\n dispatch({\n type: ActionTypes.REPLACE\n });\n }\n /**\n * Interoperability point for observable/reactive libraries.\n * @returns {observable} A minimal observable of state changes.\n * For more information, see the observable proposal:\n * https://github.com/tc39/proposal-observable\n */\n\n\n function observable() {\n var _ref;\n\n var outerSubscribe = subscribe;\n return _ref = {\n /**\n * The minimal observable subscription method.\n * @param {Object} observer Any object that can be used as an observer.\n * The observer object should have a `next` method.\n * @returns {subscription} An object with an `unsubscribe` method that can\n * be used to unsubscribe the observable from the store, and prevent further\n * emission of values from the observable.\n */\n subscribe: function subscribe(observer) {\n if (typeof observer !== 'object' || observer === null) {\n throw new TypeError('Expected the observer to be an object.');\n }\n\n function observeState() {\n if (observer.next) {\n observer.next(getState());\n }\n }\n\n observeState();\n var unsubscribe = outerSubscribe(observeState);\n return {\n unsubscribe: unsubscribe\n };\n }\n }, _ref[$$observable] = function () {\n return this;\n }, _ref;\n } // When a store is created, an \"INIT\" action is dispatched so that every\n // reducer returns their initial state. This effectively populates\n // the initial state tree.\n\n\n dispatch({\n type: ActionTypes.INIT\n });\n return _ref2 = {\n dispatch: dispatch,\n subscribe: subscribe,\n getState: getState,\n replaceReducer: replaceReducer\n }, _ref2[$$observable] = observable, _ref2;\n}\n\n/**\n * Prints a warning in the console if it exists.\n *\n * @param {String} message The warning message.\n * @returns {void}\n */\nfunction warning(message) {\n /* eslint-disable no-console */\n if (typeof console !== 'undefined' && typeof console.error === 'function') {\n console.error(message);\n }\n /* eslint-enable no-console */\n\n\n try {\n // This error was thrown as a convenience so that if you enable\n // \"break on all exceptions\" in your console,\n // it would pause the execution at this line.\n throw new Error(message);\n } catch (e) {} // eslint-disable-line no-empty\n\n}\n\nfunction getUndefinedStateErrorMessage(key, action) {\n var actionType = action && action.type;\n var actionDescription = actionType && \"action \\\"\" + String(actionType) + \"\\\"\" || 'an action';\n return \"Given \" + actionDescription + \", reducer \\\"\" + key + \"\\\" returned undefined. \" + \"To ignore an action, you must explicitly return the previous state. \" + \"If you want this reducer to hold no value, you can return null instead of undefined.\";\n}\n\nfunction getUnexpectedStateShapeWarningMessage(inputState, reducers, action, unexpectedKeyCache) {\n var reducerKeys = Object.keys(reducers);\n var argumentName = action && action.type === ActionTypes.INIT ? 'preloadedState argument passed to createStore' : 'previous state received by the reducer';\n\n if (reducerKeys.length === 0) {\n return 'Store does not have a valid reducer. Make sure the argument passed ' + 'to combineReducers is an object whose values are reducers.';\n }\n\n if (!isPlainObject(inputState)) {\n return \"The \" + argumentName + \" has unexpected type of \\\"\" + {}.toString.call(inputState).match(/\\s([a-z|A-Z]+)/)[1] + \"\\\". Expected argument to be an object with the following \" + (\"keys: \\\"\" + reducerKeys.join('\", \"') + \"\\\"\");\n }\n\n var unexpectedKeys = Object.keys(inputState).filter(function (key) {\n return !reducers.hasOwnProperty(key) && !unexpectedKeyCache[key];\n });\n unexpectedKeys.forEach(function (key) {\n unexpectedKeyCache[key] = true;\n });\n if (action && action.type === ActionTypes.REPLACE) return;\n\n if (unexpectedKeys.length > 0) {\n return \"Unexpected \" + (unexpectedKeys.length > 1 ? 'keys' : 'key') + \" \" + (\"\\\"\" + unexpectedKeys.join('\", \"') + \"\\\" found in \" + argumentName + \". \") + \"Expected to find one of the known reducer keys instead: \" + (\"\\\"\" + reducerKeys.join('\", \"') + \"\\\". Unexpected keys will be ignored.\");\n }\n}\n\nfunction assertReducerShape(reducers) {\n Object.keys(reducers).forEach(function (key) {\n var reducer = reducers[key];\n var initialState = reducer(undefined, {\n type: ActionTypes.INIT\n });\n\n if (typeof initialState === 'undefined') {\n throw new Error(\"Reducer \\\"\" + key + \"\\\" returned undefined during initialization. \" + \"If the state passed to the reducer is undefined, you must \" + \"explicitly return the initial state. The initial state may \" + \"not be undefined. If you don't want to set a value for this reducer, \" + \"you can use null instead of undefined.\");\n }\n\n if (typeof reducer(undefined, {\n type: ActionTypes.PROBE_UNKNOWN_ACTION()\n }) === 'undefined') {\n throw new Error(\"Reducer \\\"\" + key + \"\\\" returned undefined when probed with a random type. \" + (\"Don't try to handle \" + ActionTypes.INIT + \" or other actions in \\\"redux/*\\\" \") + \"namespace. They are considered private. Instead, you must return the \" + \"current state for any unknown actions, unless it is undefined, \" + \"in which case you must return the initial state, regardless of the \" + \"action type. The initial state may not be undefined, but can be null.\");\n }\n });\n}\n/**\n * Turns an object whose values are different reducer functions, into a single\n * reducer function. It will call every child reducer, and gather their results\n * into a single state object, whose keys correspond to the keys of the passed\n * reducer functions.\n *\n * @param {Object} reducers An object whose values correspond to different\n * reducer functions that need to be combined into one. One handy way to obtain\n * it is to use ES6 `import * as reducers` syntax. The reducers may never return\n * undefined for any action. Instead, they should return their initial state\n * if the state passed to them was undefined, and the current state for any\n * unrecognized action.\n *\n * @returns {Function} A reducer function that invokes every reducer inside the\n * passed object, and builds a state object with the same shape.\n */\n\n\nfunction combineReducers(reducers) {\n var reducerKeys = Object.keys(reducers);\n var finalReducers = {};\n\n for (var i = 0; i < reducerKeys.length; i++) {\n var key = reducerKeys[i];\n\n if (process.env.NODE_ENV !== 'production') {\n if (typeof reducers[key] === 'undefined') {\n warning(\"No reducer provided for key \\\"\" + key + \"\\\"\");\n }\n }\n\n if (typeof reducers[key] === 'function') {\n finalReducers[key] = reducers[key];\n }\n }\n\n var finalReducerKeys = Object.keys(finalReducers); // This is used to make sure we don't warn about the same\n // keys multiple times.\n\n var unexpectedKeyCache;\n\n if (process.env.NODE_ENV !== 'production') {\n unexpectedKeyCache = {};\n }\n\n var shapeAssertionError;\n\n try {\n assertReducerShape(finalReducers);\n } catch (e) {\n shapeAssertionError = e;\n }\n\n return function combination(state, action) {\n if (state === void 0) {\n state = {};\n }\n\n if (shapeAssertionError) {\n throw shapeAssertionError;\n }\n\n if (process.env.NODE_ENV !== 'production') {\n var warningMessage = getUnexpectedStateShapeWarningMessage(state, finalReducers, action, unexpectedKeyCache);\n\n if (warningMessage) {\n warning(warningMessage);\n }\n }\n\n var hasChanged = false;\n var nextState = {};\n\n for (var _i = 0; _i < finalReducerKeys.length; _i++) {\n var _key = finalReducerKeys[_i];\n var reducer = finalReducers[_key];\n var previousStateForKey = state[_key];\n var nextStateForKey = reducer(previousStateForKey, action);\n\n if (typeof nextStateForKey === 'undefined') {\n var errorMessage = getUndefinedStateErrorMessage(_key, action);\n throw new Error(errorMessage);\n }\n\n nextState[_key] = nextStateForKey;\n hasChanged = hasChanged || nextStateForKey !== previousStateForKey;\n }\n\n hasChanged = hasChanged || finalReducerKeys.length !== Object.keys(state).length;\n return hasChanged ? nextState : state;\n };\n}\n\nfunction bindActionCreator(actionCreator, dispatch) {\n return function () {\n return dispatch(actionCreator.apply(this, arguments));\n };\n}\n/**\n * Turns an object whose values are action creators, into an object with the\n * same keys, but with every function wrapped into a `dispatch` call so they\n * may be invoked directly. This is just a convenience method, as you can call\n * `store.dispatch(MyActionCreators.doSomething())` yourself just fine.\n *\n * For convenience, you can also pass an action creator as the first argument,\n * and get a dispatch wrapped function in return.\n *\n * @param {Function|Object} actionCreators An object whose values are action\n * creator functions. One handy way to obtain it is to use ES6 `import * as`\n * syntax. You may also pass a single function.\n *\n * @param {Function} dispatch The `dispatch` function available on your Redux\n * store.\n *\n * @returns {Function|Object} The object mimicking the original object, but with\n * every action creator wrapped into the `dispatch` call. If you passed a\n * function as `actionCreators`, the return value will also be a single\n * function.\n */\n\n\nfunction bindActionCreators(actionCreators, dispatch) {\n if (typeof actionCreators === 'function') {\n return bindActionCreator(actionCreators, dispatch);\n }\n\n if (typeof actionCreators !== 'object' || actionCreators === null) {\n throw new Error(\"bindActionCreators expected an object or a function, instead received \" + (actionCreators === null ? 'null' : typeof actionCreators) + \". \" + \"Did you write \\\"import ActionCreators from\\\" instead of \\\"import * as ActionCreators from\\\"?\");\n }\n\n var boundActionCreators = {};\n\n for (var key in actionCreators) {\n var actionCreator = actionCreators[key];\n\n if (typeof actionCreator === 'function') {\n boundActionCreators[key] = bindActionCreator(actionCreator, dispatch);\n }\n }\n\n return boundActionCreators;\n}\n\nfunction _defineProperty(obj, key, value) {\n if (key in obj) {\n Object.defineProperty(obj, key, {\n value: value,\n enumerable: true,\n configurable: true,\n writable: true\n });\n } else {\n obj[key] = value;\n }\n\n return obj;\n}\n\nfunction ownKeys(object, enumerableOnly) {\n var keys = Object.keys(object);\n\n if (Object.getOwnPropertySymbols) {\n keys.push.apply(keys, Object.getOwnPropertySymbols(object));\n }\n\n if (enumerableOnly) keys = keys.filter(function (sym) {\n return Object.getOwnPropertyDescriptor(object, sym).enumerable;\n });\n return keys;\n}\n\nfunction _objectSpread2(target) {\n for (var i = 1; i < arguments.length; i++) {\n var source = arguments[i] != null ? arguments[i] : {};\n\n if (i % 2) {\n ownKeys(source, true).forEach(function (key) {\n _defineProperty(target, key, source[key]);\n });\n } else if (Object.getOwnPropertyDescriptors) {\n Object.defineProperties(target, Object.getOwnPropertyDescriptors(source));\n } else {\n ownKeys(source).forEach(function (key) {\n Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));\n });\n }\n }\n\n return target;\n}\n\n/**\n * Composes single-argument functions from right to left. The rightmost\n * function can take multiple arguments as it provides the signature for\n * the resulting composite function.\n *\n * @param {...Function} funcs The functions to compose.\n * @returns {Function} A function obtained by composing the argument functions\n * from right to left. For example, compose(f, g, h) is identical to doing\n * (...args) => f(g(h(...args))).\n */\nfunction compose() {\n for (var _len = arguments.length, funcs = new Array(_len), _key = 0; _key < _len; _key++) {\n funcs[_key] = arguments[_key];\n }\n\n if (funcs.length === 0) {\n return function (arg) {\n return arg;\n };\n }\n\n if (funcs.length === 1) {\n return funcs[0];\n }\n\n return funcs.reduce(function (a, b) {\n return function () {\n return a(b.apply(void 0, arguments));\n };\n });\n}\n\n/**\n * Creates a store enhancer that applies middleware to the dispatch method\n * of the Redux store. This is handy for a variety of tasks, such as expressing\n * asynchronous actions in a concise manner, or logging every action payload.\n *\n * See `redux-thunk` package as an example of the Redux middleware.\n *\n * Because middleware is potentially asynchronous, this should be the first\n * store enhancer in the composition chain.\n *\n * Note that each middleware will be given the `dispatch` and `getState` functions\n * as named arguments.\n *\n * @param {...Function} middlewares The middleware chain to be applied.\n * @returns {Function} A store enhancer applying the middleware.\n */\n\nfunction applyMiddleware() {\n for (var _len = arguments.length, middlewares = new Array(_len), _key = 0; _key < _len; _key++) {\n middlewares[_key] = arguments[_key];\n }\n\n return function (createStore) {\n return function () {\n var store = createStore.apply(void 0, arguments);\n\n var _dispatch = function dispatch() {\n throw new Error('Dispatching while constructing your middleware is not allowed. ' + 'Other middleware would not be applied to this dispatch.');\n };\n\n var middlewareAPI = {\n getState: store.getState,\n dispatch: function dispatch() {\n return _dispatch.apply(void 0, arguments);\n }\n };\n var chain = middlewares.map(function (middleware) {\n return middleware(middlewareAPI);\n });\n _dispatch = compose.apply(void 0, chain)(store.dispatch);\n return _objectSpread2({}, store, {\n dispatch: _dispatch\n });\n };\n };\n}\n\n/*\n * This is a dummy function to check if the function name has been altered by minification.\n * If the function has been minified and NODE_ENV !== 'production', warn the user.\n */\n\nfunction isCrushed() {}\n\nif (process.env.NODE_ENV !== 'production' && typeof isCrushed.name === 'string' && isCrushed.name !== 'isCrushed') {\n warning('You are currently using minified code outside of NODE_ENV === \"production\". ' + 'This means that you are running a slower development build of Redux. ' + 'You can use loose-envify (https://github.com/zertosh/loose-envify) for browserify ' + 'or setting mode to production in webpack (https://webpack.js.org/concepts/mode/) ' + 'to ensure you have the correct code for your production build.');\n}\n\nexport { ActionTypes as __DO_NOT_USE__ActionTypes, applyMiddleware, bindActionCreators, combineReducers, compose, createStore };\n","/* global window */\nimport ponyfill from './ponyfill.js';\n\nvar root;\n\nif (typeof self !== 'undefined') {\n root = self;\n} else if (typeof window !== 'undefined') {\n root = window;\n} else if (typeof global !== 'undefined') {\n root = global;\n} else if (typeof module !== 'undefined') {\n root = module;\n} else {\n root = Function('return this')();\n}\n\nvar result = ponyfill(root);\nexport default result;\n","export default function symbolObservablePonyfill(root) {\n\tvar result;\n\tvar Symbol = root.Symbol;\n\n\tif (typeof Symbol === 'function') {\n\t\tif (Symbol.observable) {\n\t\t\tresult = Symbol.observable;\n\t\t} else {\n\t\t\tresult = Symbol('observable');\n\t\t\tSymbol.observable = result;\n\t\t}\n\t} else {\n\t\tresult = '@@observable';\n\t}\n\n\treturn result;\n};\n","module.exports = function(originalModule) {\n\tif (!originalModule.webpackPolyfill) {\n\t\tvar module = Object.create(originalModule);\n\t\t// module.parent = undefined by default\n\t\tif (!module.children) module.children = [];\n\t\tObject.defineProperty(module, \"loaded\", {\n\t\t\tenumerable: true,\n\t\t\tget: function() {\n\t\t\t\treturn module.l;\n\t\t\t}\n\t\t});\n\t\tObject.defineProperty(module, \"id\", {\n\t\t\tenumerable: true,\n\t\t\tget: function() {\n\t\t\t\treturn module.i;\n\t\t\t}\n\t\t});\n\t\tObject.defineProperty(module, \"exports\", {\n\t\t\tenumerable: true\n\t\t});\n\t\tmodule.webpackPolyfill = 1;\n\t}\n\treturn module;\n};\n"],"sourceRoot":""} \ No newline at end of file diff --git a/views/js/dist/app.min.js b/views/js/dist/app.min.js deleted file mode 100644 index 710891a49..000000000 --- a/views/js/dist/app.min.js +++ /dev/null @@ -1,10 +0,0 @@ -/*! - * - * Mollie https://www.mollie.nl - * @author Mollie B.V. - * @copyright Mollie B.V. - * @link https://github.com/mollie/PrestaShop - * @license https://github.com/mollie/PrestaShop/blob/master/LICENSE.md - * - */ -var MollieModule="object"==typeof MollieModule?MollieModule:{};MollieModule.app=function(r){function n(n){for(var t,c,s=n[0],u=n[1],d=n[2],f=n[3]||[],p=0,g=[];p\n * @copyright Mollie B.V.\n * @link https://github.com/mollie/PrestaShop\n * @license https://github.com/mollie/PrestaShop/blob/master/LICENSE.md\n * @codingStandardsIgnoreStart\n */\nexport default {\n async bankList() {\n return await import(/* webpackChunkName: \"banks\" */ '@banks/index');\n },\n async qrCode() {\n return await import(/* webpackChunkName: \"qrcode\" */ '@qrcode/index');\n },\n async carrierConfig() {\n return await import(/* webpackChunkName: \"carrierconfig\" */ '@carrierconfig/index');\n },\n async methodConfig() {\n return await import(/* webpackChunkName: \"methodconfig\" */ '@methodconfig/index');\n },\n async transactionInfo() {\n return await import(/* webpackChunkName: \"transaction\" */ '@transaction/index');\n },\n async updater() {\n return await import(/* webpackChunkName: \"updater\" */ '@updater/index');\n },\n}\n"],"sourceRoot":""} \ No newline at end of file diff --git a/views/js/dist/banks.min.js b/views/js/dist/banks.min.js deleted file mode 100644 index cac9853ad..000000000 --- a/views/js/dist/banks.min.js +++ /dev/null @@ -1,10 +0,0 @@ -/*! - * - * Mollie https://www.mollie.nl - * @author Mollie B.V. - * @copyright Mollie B.V. - * @link https://github.com/mollie/PrestaShop - * @license https://github.com/mollie/PrestaShop/blob/master/LICENSE.md - * - */ -(window.webpackJsonP_mollie=window.webpackJsonP_mollie||[]).push([["banks","vendors~transactionOrder~transactionRefund~updater","vendors~sweetalert"],{100:function(t,e,n){var r=n(3),o=n(10),i=n(1)("match");t.exports=function(t){var e;return r(t)&&(void 0!==(e=t[i])?!!e:"RegExp"==o(t))}},104:function(t,e,n){var r=n(25),o=n(113)(!1);r(r.S,"Object",{values:function(t){return o(t)}})},105:function(t,e,n){(function(e,n){t.exports=function(t){function e(r){if(n[r])return n[r].exports;var o=n[r]={i:r,l:!1,exports:{}};return t[r].call(o.exports,o,o.exports,e),o.l=!0,o.exports}var n={};return e.m=t,e.c=n,e.d=function(t,n,r){e.o(t,n)||Object.defineProperty(t,n,{configurable:!1,enumerable:!0,get:r})},e.n=function(t){var n=t&&t.__esModule?function(){return t.default}:function(){return t};return e.d(n,"a",n),n},e.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},e.p="",e(e.s=8)}([function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r="swal-button";e.CLASS_NAMES={MODAL:"swal-modal",OVERLAY:"swal-overlay",SHOW_MODAL:"swal-overlay--show-modal",MODAL_TITLE:"swal-title",MODAL_TEXT:"swal-text",ICON:"swal-icon",ICON_CUSTOM:"swal-icon--custom",CONTENT:"swal-content",FOOTER:"swal-footer",BUTTON_CONTAINER:"swal-button-container",BUTTON:r,CONFIRM_BUTTON:r+"--confirm",CANCEL_BUTTON:r+"--cancel",DANGER_BUTTON:r+"--danger",BUTTON_LOADING:r+"--loading",BUTTON_LOADER:r+"__loader"},e.default=e.CLASS_NAMES},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.getNode=function(t){var e="."+t;return document.querySelector(e)},e.stringToNode=function(t){var e=document.createElement("div");return e.innerHTML=t.trim(),e.firstChild},e.insertAfter=function(t,e){var n=e.nextSibling;e.parentNode.insertBefore(t,n)},e.removeNode=function(t){t.parentElement.removeChild(t)},e.throwErr=function(t){throw"SweetAlert: "+(t=t.replace(/ +(?= )/g,"")).trim()},e.isPlainObject=function(t){if("[object Object]"!==Object.prototype.toString.call(t))return!1;var e=Object.getPrototypeOf(t);return null===e||e===Object.prototype},e.ordinalSuffixOf=function(t){var e=t%10,n=t%100;return 1===e&&11!==n?t+"st":2===e&&12!==n?t+"nd":3===e&&13!==n?t+"rd":t+"th"}},function(t,e,n){"use strict";function r(t){for(var n in t)e.hasOwnProperty(n)||(e[n]=t[n])}Object.defineProperty(e,"__esModule",{value:!0}),r(n(25));var o=n(26);e.overlayMarkup=o.default,r(n(27)),r(n(28)),r(n(29));var i=n(0),a=i.default.MODAL_TITLE,s=i.default.MODAL_TEXT,c=i.default.ICON,l=i.default.FOOTER;e.iconMarkup='\n
',e.titleMarkup='\n
\n',e.textMarkup='\n
',e.footerMarkup='\n
\n'},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(1);e.CONFIRM_KEY="confirm",e.CANCEL_KEY="cancel";var o={visible:!0,text:null,value:null,className:"",closeModal:!0},i=Object.assign({},o,{visible:!1,text:"Cancel",value:null}),a=Object.assign({},o,{text:"OK",value:!0});e.defaultButtonList={cancel:i,confirm:a};var s=function(t){switch(t){case e.CONFIRM_KEY:return a;case e.CANCEL_KEY:return i;default:var n=t.charAt(0).toUpperCase()+t.slice(1);return Object.assign({},o,{text:n,value:t})}},c=function(t,e){var n=s(t);return!0===e?Object.assign({},n,{visible:!0}):"string"==typeof e?Object.assign({},n,{visible:!0,text:e}):r.isPlainObject(e)?Object.assign({visible:!0},n,e):Object.assign({},n,{visible:!1})},l=function(t){var n={};switch(t.length){case 1:n[e.CANCEL_KEY]=Object.assign({},i,{visible:!1});break;case 2:n[e.CANCEL_KEY]=c(e.CANCEL_KEY,t[0]),n[e.CONFIRM_KEY]=c(e.CONFIRM_KEY,t[1]);break;default:r.throwErr("Invalid number of 'buttons' in array ("+t.length+").\n If you want more than 2 buttons, you need to use an object!")}return n};e.getButtonListOpts=function(t){var n=e.defaultButtonList;return"string"==typeof t?n[e.CONFIRM_KEY]=c(e.CONFIRM_KEY,t):Array.isArray(t)?n=l(t):r.isPlainObject(t)?n=function(t){for(var e={},n=0,r=Object.keys(t);n=0&&w.splice(e,1)}function s(t){var e=document.createElement("style");return t.attrs.type="text/css",l(e,t.attrs),i(t,e),e}function c(t){var e=document.createElement("link");return t.attrs.type="text/css",t.attrs.rel="stylesheet",l(e,t.attrs),i(t,e),e}function l(t,e){Object.keys(e).forEach((function(n){t.setAttribute(n,e[n])}))}function u(t,e){var n,r,o,i;if(e.transform&&t.css){if(!(i=e.transform(t.css)))return function(){};t.css=i}if(e.singleton){var l=v++;n=b||(b=s(e)),r=f.bind(null,n,l,!1),o=f.bind(null,n,l,!0)}else t.sourceMap&&"function"==typeof URL&&"function"==typeof URL.createObjectURL&&"function"==typeof URL.revokeObjectURL&&"function"==typeof Blob&&"function"==typeof btoa?(n=c(e),r=p.bind(null,n,e),o=function(){a(n),n.href&&URL.revokeObjectURL(n.href)}):(n=s(e),r=d.bind(null,n),o=function(){a(n)});return r(t),function(e){if(e){if(e.css===t.css&&e.media===t.media&&e.sourceMap===t.sourceMap)return;r(t=e)}else o()}}function f(t,e,n,r){var o=n?"":r.css;if(t.styleSheet)t.styleSheet.cssText=x(e,o);else{var i=document.createTextNode(o),a=t.childNodes;a[e]&&t.removeChild(a[e]),a.length?t.insertBefore(i,a[e]):t.appendChild(i)}}function d(t,e){var n=e.css,r=e.media;if(r&&t.setAttribute("media",r),t.styleSheet)t.styleSheet.cssText=n;else{for(;t.firstChild;)t.removeChild(t.firstChild);t.appendChild(document.createTextNode(n))}}function p(t,e,n){var r=n.css,o=n.sourceMap,i=void 0===e.convertToAbsoluteUrls&&o;(e.convertToAbsoluteUrls||i)&&(r=y(r)),o&&(r+="\n/*# sourceMappingURL=data:application/json;base64,"+btoa(unescape(encodeURIComponent(JSON.stringify(o))))+" */");var a=new Blob([r],{type:"text/css"}),s=t.href;t.href=URL.createObjectURL(a),s&&URL.revokeObjectURL(s)}var m={},h=function(t){var e;return function(){return void 0===e&&(e=t.apply(this,arguments)),e}}((function(){return window&&document&&document.all&&!window.atob})),g=function(t){var e={};return function(n){return void 0===e[n]&&(e[n]=t.call(this,n)),e[n]}}((function(t){return document.querySelector(t)})),b=null,v=0,w=[],y=n(15);t.exports=function(t,e){if("undefined"!=typeof DEBUG&&DEBUG&&"object"!=typeof document)throw new Error("The style-loader cannot be used in a non-browser environment");(e=e||{}).attrs="object"==typeof e.attrs?e.attrs:{},e.singleton||(e.singleton=h()),e.insertInto||(e.insertInto="head"),e.insertAt||(e.insertAt="bottom");var n=o(t,e);return r(n,e),function(t){for(var i=[],a=0;athis.length)&&-1!==this.indexOf(t,e)}),Array.prototype.includes||Object.defineProperty(Array.prototype,"includes",{value:function(t,e){if(null==this)throw new TypeError('"this" is null or not defined');var n=Object(this),r=n.length>>>0;if(0===r)return!1;for(var o=0|e,i=Math.max(o>=0?o:r-Math.abs(o),0);i=0&&(t._idleTimeoutId=setTimeout((function(){t._onTimeout&&t._onTimeout()}),e))},o(19),r.setImmediate=e,r.clearImmediate=n},function(t,e,n){(function(t,e){!function(t,n){"use strict";function r(t){delete s[t]}function o(t){if(c)setTimeout(o,0,t);else{var e=s[t];if(e){c=!0;try{!function(t){var e=t.callback,n=t.args;switch(n.length){case 0:e();break;case 1:e(n[0]);break;case 2:e(n[0],n[1]);break;case 3:e(n[0],n[1],n[2]);break;default:e.apply(void 0,n)}}(e)}finally{r(t),c=!1}}}}if(!t.setImmediate){var i,a=1,s={},c=!1,l=t.document,u=Object.getPrototypeOf&&Object.getPrototypeOf(t);u=u&&u.setTimeout?u:t,"[object process]"==={}.toString.call(t.process)?i=function(t){e.nextTick((function(){o(t)}))}:function(){if(t.postMessage&&!t.importScripts){var e=!0,n=t.onmessage;return t.onmessage=function(){e=!1},t.postMessage("","*"),t.onmessage=n,e}}()?function(){var e="setImmediate$"+Math.random()+"$",n=function(n){n.source===t&&"string"==typeof n.data&&0===n.data.indexOf(e)&&o(+n.data.slice(e.length))};t.addEventListener?t.addEventListener("message",n,!1):t.attachEvent("onmessage",n),i=function(n){t.postMessage(e+n,"*")}}():t.MessageChannel?function(){var t=new MessageChannel;t.port1.onmessage=function(t){o(t.data)},i=function(e){t.port2.postMessage(e)}}():l&&"onreadystatechange"in l.createElement("script")?function(){var t=l.documentElement;i=function(e){var n=l.createElement("script");n.onreadystatechange=function(){o(e),n.onreadystatechange=null,t.removeChild(n),n=null},t.appendChild(n)}}():i=function(t){setTimeout(o,0,t)},u.setImmediate=function(t){"function"!=typeof t&&(t=new Function(""+t));for(var e=new Array(arguments.length-1),n=0;n1)for(var n=1;n',e.default=e.modalMarkup},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r='
\n
';e.default=r},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(0).default.ICON;e.errorIconMarkup=function(){var t=r+"--error",e=t+"__line";return'\n
\n \n \n
\n '},e.warningIconMarkup=function(){var t=r+"--warning";return'\n \n \n \n '},e.successIconMarkup=function(){var t=r+"--success";return'\n \n \n\n
\n
\n '}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(0).default.CONTENT;e.contentMarkup='\n
\n\n
\n'},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(0),o=r.default.BUTTON_CONTAINER,i=r.default.BUTTON,a=r.default.BUTTON_LOADER;e.buttonMarkup='\n
\n\n \n\n
\n
\n
\n
\n
\n\n
\n'},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(4),o=n(2),i=n(0),a=i.default.ICON,s=i.default.ICON_CUSTOM,c=["error","warning","success","info"],l={error:o.errorIconMarkup(),warning:o.warningIconMarkup(),success:o.successIconMarkup()};e.default=function(t){if(t){var e=r.injectElIntoModal(o.iconMarkup);c.includes(t)?function(t,e){var n=a+"--"+t;e.classList.add(n);var r=l[t];r&&(e.innerHTML=r)}(t,e):function(t,e){e.classList.add(s);var n=document.createElement("img");n.src=t,e.appendChild(n)}(t,e)}}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(2),o=n(4),i=function(t){navigator.userAgent.includes("AppleWebKit")&&(t.style.display="none",t.offsetHeight,t.style.display="")};e.initTitle=function(t){if(t){var e=o.injectElIntoModal(r.titleMarkup);e.textContent=t,i(e)}},e.initText=function(t){if(t){var e=document.createDocumentFragment();t.split("\n").forEach((function(t,n,r){e.appendChild(document.createTextNode(t)),n0})).forEach((function(t){h.classList.add(t)})),n&&t===c.CONFIRM_KEY&&h.classList.add(s),h.textContent=o;var b={};return b[t]=i,f.setActionValue(b),f.setActionOptionsFor(t,{closeModal:p}),h.addEventListener("click",(function(){return u.onAction(t)})),m};e.default=function(t,e){var n=o.injectElIntoModal(l.footerMarkup);for(var r in t){var i=t[r],a=d(r,i,e);i.visible&&n.appendChild(a)}0===n.children.length&&n.remove()}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(3),o=n(4),i=n(2),a=n(5),s=n(6),c=n(0).default.CONTENT,l=function(t){t.addEventListener("input",(function(t){var e=t.target.value;a.setActionValue(e)})),t.addEventListener("keyup",(function(t){if("Enter"===t.key)return s.onAction(r.CONFIRM_KEY)})),setTimeout((function(){t.focus(),a.setActionValue("")}),0)};e.default=function(t){if(t){var e=o.injectElIntoModal(i.contentMarkup),n=t.element,r=t.attributes;"string"==typeof n?function(t,e,n){var r=document.createElement(e),o=c+"__"+e;for(var i in r.classList.add(o),n){var a=n[i];r[i]=a}"input"===e&&l(r),t.appendChild(r)}(e,n,r):e.appendChild(n)}}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(1),o=n(2);e.default=function(){var t=r.stringToNode(o.overlayMarkup);document.body.appendChild(t)}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(5),o=n(6),i=n(1),a=n(3),s=n(0),c=s.default.MODAL,l=s.default.BUTTON,u=s.default.OVERLAY,f=function(t){if(r.default.isOpen)switch(t.key){case"Escape":return o.onAction(a.CANCEL_KEY)}},d=function(t){if(r.default.isOpen)switch(t.key){case"Tab":return function(t){t.preventDefault(),m()}(t)}},p=function(t){if(r.default.isOpen)return"Tab"===t.key&&t.shiftKey?function(t){t.preventDefault(),h()}(t):void 0},m=function(){var t=i.getNode(l);t&&(t.tabIndex=0,t.focus())},h=function(){var t=i.getNode(c).querySelectorAll("."+l),e=t[t.length-1];e&&e.focus()},g=function(){var t=i.getNode(c).querySelectorAll("."+l);t.length&&(function(t){t[t.length-1].addEventListener("keydown",d)}(t),function(t){t[0].addEventListener("keydown",p)}(t))},b=function(t){if(i.getNode(u)===t.target)return o.onAction(a.CANCEL_KEY)};e.default=function(t){t.closeOnEsc?document.addEventListener("keyup",f):document.removeEventListener("keyup",f),t.dangerMode?m():h(),g(),function(t){var e=i.getNode(u);e.removeEventListener("click",b),t&&e.addEventListener("click",b)}(t.closeOnClickOutside),function(t){r.default.timer&&clearTimeout(r.default.timer),t&&(r.default.timer=window.setTimeout((function(){return o.onAction(a.CANCEL_KEY)}),t))}(t.timer)}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(1),o=n(3),i=n(37),a=n(38),s={title:null,text:null,icon:null,buttons:o.defaultButtonList,content:null,className:null,closeOnClickOutside:!0,closeOnEsc:!0,dangerMode:!1,timer:null},c=Object.assign({},s);e.setDefaults=function(t){c=Object.assign({},s,t)};var l=function(t){var e=t&&t.button,n=t&&t.buttons;return void 0!==e&&void 0!==n&&r.throwErr("Cannot set both 'button' and 'buttons' options!"),void 0!==e?{confirm:e}:n},u=function(t){return r.ordinalSuffixOf(t+1)},f=function(t,e){r.throwErr(u(e)+" argument ('"+t+"') is invalid")},d=function(t,e){var n=t+1,o=e[n];r.isPlainObject(o)||void 0===o||r.throwErr("Expected "+u(n)+" argument ('"+o+"') to be a plain object")},p=function(t,e,n,o){var i=e instanceof Element;if("string"==typeof e){if(0===n)return{text:e};if(1===n)return{text:e,title:o[0]};if(2===n)return d(n,o),{icon:e};f(e,n)}else{if(i&&0===n)return d(n,o),{content:e};if(r.isPlainObject(e))return function(t,e){var n=t+1,o=e[n];void 0!==o&&r.throwErr("Unexpected "+u(n)+" argument ("+o+")")}(n,o),e;f(e,n)}};e.getOpts=function(){for(var t=[],e=0;e1||"".split(/.?/)[p]?function(t,e){var o=String(this);if(void 0===t&&0===e)return[];if(!r(t))return n.call(o,t,e);for(var i,a,s,c=[],u=(t.ignoreCase?"i":"")+(t.multiline?"m":"")+(t.unicode?"u":"")+(t.sticky?"y":""),f=0,m=void 0===e?4294967295:e>>>0,h=new RegExp(t.source,u+"g");(i=l.call(h,o))&&!((a=h.lastIndex)>f&&(c.push(o.slice(f,i.index)),i[p]>1&&i.index=m));)h.lastIndex===i.index&&h.lastIndex++;return f===o[p]?!s&&h.test("")||c.push(""):c.push(o.slice(f)),c[p]>m?c.slice(0,m):c}:"0".split(void 0,0)[p]?function(t,e){return void 0===t&&0===e?[]:n.call(this,t,e)}:n,[function(n,r){var o=t(this),i=null==n?void 0:n[e];return void 0!==i?i.call(n,o,r):h.call(String(o),n,r)},function(t,e){var r=u(h,t,this,e,h!==n);if(r.done)return r.value;var l=o(t),d=String(this),p=i(l,RegExp),g=l.unicode,b=(l.ignoreCase?"i":"")+(l.multiline?"m":"")+(l.unicode?"u":"")+(m?"y":"g"),v=new p(m?l:"^(?:"+l.source+")",b),w=void 0===e?4294967295:e>>>0;if(0===w)return[];if(0===d.length)return null===c(v,d)?[d]:[];for(var y=0,x=0,k=[];xu;)n=c[u++],r&&!a.call(s,n)||f.push(t?[n,s[n]]:s[n]);return f}}},114:function(t,e,n){var r=n(95),o=n(115);n(96);function i(t){return null==t}function a(t){(t=function(t){var e={};for(var n in t)e[n]=t[n];return e}(t||{})).whiteList=t.whiteList||r.whiteList,t.onAttr=t.onAttr||r.onAttr,t.onIgnoreAttr=t.onIgnoreAttr||r.onIgnoreAttr,t.safeAttrValue=t.safeAttrValue||r.safeAttrValue,this.options=t}a.prototype.process=function(t){if(!(t=(t=t||"").toString()))return"";var e=this.options,n=e.whiteList,r=e.onAttr,a=e.onIgnoreAttr,s=e.safeAttrValue;return o(t,(function(t,e,o,c,l){var u=n[o],f=!1;if(!0===u?f=u:"function"==typeof u?f=u(c):u instanceof RegExp&&(f=u.test(c)),!0!==f&&(f=!1),c=s(o,c)){var d,p={position:e,sourcePosition:t,source:l,isWhite:f};return f?i(d=r(o,c,p))?o+":"+c:d:i(d=a(o,c,p))?void 0:d}}))},t.exports=a},115:function(t,e,n){var r=n(96);t.exports=function(t,e){";"!==(t=r.trimRight(t))[t.length-1]&&(t+=";");var n=t.length,o=!1,i=0,a=0,s="";function c(){if(!o){var n=r.trim(t.slice(i,a)),c=n.indexOf(":");if(-1!==c){var l=r.trim(n.slice(0,c)),u=r.trim(n.slice(c+1));if(l){var f=e(i,s.length,l,u,n);f&&(s+=f+"; ")}}}i=a+1}for(;a";var v=function(t){var e=c.spaceIndex(t);if(-1===e)return{html:"",closing:"/"===t[t.length-2]};var n="/"===(t=c.trim(t.slice(e+1,-1)))[t.length-1];return n&&(t=c.trim(t.slice(0,-1))),{html:t,closing:n}}(a),w=n[o],y=s(v.html,(function(t,e){var n,r=-1!==c.indexOf(w,t);return l(n=u(o,t,e,r))?r?(e=d(o,t,e,m))?t+'="'+e+'"':t:l(n=f(o,t,e,r))?void 0:n:n}));a="<"+o;return y&&(a+=" "+y),v.closing&&(a+=" /"),a+=">"}return l(g=i(o,a,b))?p(a):g}),p);return h&&(g=h.remove(g)),g},t.exports=u},117:function(t,e,n){"use strict";n.d(e,"a",(function(){return s}));n(62);var r=n(56),o=n.n(r);function i(){var t=function(t,e){e||(e=t.slice(0));return Object.freeze(Object.defineProperties(t,{raw:{value:Object.freeze(e)}}))}(["\n&&&& {\n position: absolute;\n top: 110px;\n left: 90px;\n}\n\n&&&& > div {\n width: 18px;\n height: 18px;\n background-color: #333;\n\n border-radius: 100%;\n display: inline-block;\n -webkit-animation: sk-bouncedelay 1.4s infinite ease-in-out both;\n animation: sk-bouncedelay 1.4s infinite ease-in-out both;\n}\n\n&&&& .bounce1 {\n -webkit-animation-delay: -0.32s;\n animation-delay: -0.32s;\n}\n\n&&&& .bounce2 {\n -webkit-animation-delay: -0.16s;\n animation-delay: -0.16s;\n}\n\n@-webkit-keyframes sk-bouncedelay {\n 0%, 80%, 100% { -webkit-transform: scale(0) }\n 40% { -webkit-transform: scale(1.0) }\n}\n\n@keyframes sk-bouncedelay {\n0%, 80%, 100% {\n -webkit-transform: scale(0);\n transform: scale(0);\n } 40% {\n -webkit-transform: scale(1.0);\n transform: scale(1.0);\n }\n}\n"]);return i=function(){return t},t}var a=n(60).default.div(i());function s(){return o.a.createElement(a,null,o.a.createElement("div",{className:"bounce1"}),o.a.createElement("div",{className:"bounce2"}),o.a.createElement("div",{className:"bounce3"}))}},154:function(t,e,n){"use strict";n.r(e),n.d(e,"default",(function(){return x}));n(23),n(72),n(69),n(65),n(70),n(71),n(22),n(61),n(66),n(67),n(62),n(109),n(24),n(196);var r,o=n(56),i=n.n(o),a=n(60),s=n(63),c=n(117),l=n(79);function u(t,e,n,r,o,i,a){try{var s=t[i](a),c=s.value}catch(t){return void n(t)}s.done?e(c):Promise.resolve(c).then(r,o)}function f(t){return function(){var e=this,n=arguments;return new Promise((function(r,o){var i=t.apply(e,n);function a(t){u(i,r,o,a,s,"next",t)}function s(t){u(i,r,o,a,s,"throw",t)}a(void 0)}))}}function d(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){if("undefined"==typeof Symbol||!(Symbol.iterator in Object(t)))return;var n=[],r=!0,o=!1,i=void 0;try{for(var a,s=t[Symbol.iterator]();!(r=(a=s.next()).done)&&(n.push(a.value),!e||n.length!==e);r=!0);}catch(t){o=!0,i=t}finally{try{r||null==s.return||s.return()}finally{if(o)throw i}}return n}(t,e)||function(t,e){if(!t)return;if("string"==typeof t)return p(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);"Object"===n&&t.constructor&&(n=t.constructor.name);if("Map"===n||"Set"===n)return Array.from(t);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return p(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 p(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n-1&&window.localStorage.removeItem(t)}function C(){p(window.innerWidth>800&&window.innerHeight>860)}function L(){return S.apply(this,arguments)}function S(){return(S=f(regeneratorRuntime.mark((function t(){var e,n;return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.prev=0,t.next=3,l.a.get(window.MollieModule.urls.qrCodeNew);case 3:return e=t.sent,n=e.data,window.localStorage.setItem("mollieqrcache-"+n.expires+"-"+n.amount,JSON.stringify({url:n.href,idTransaction:n.idTransaction})),_(n.href),t.abrupt("return",n.idTransaction);case 10:t.prev=10,t.t0=t.catch(0),console.error(t.t0);case 13:case"end":return t.stop()}}),t,null,[[0,10]])})))).apply(this,arguments)}function N(t){A&&setTimeout(f(regeneratorRuntime.mark((function e(){var n,o,i;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,l.a.get("".concat(window.MollieModule.urls.qrCodeStatus,"&transaction_id=").concat(t));case 3:n=e.sent,(o=n.data).status===r.success?(M(),(i=document.createElement("A")).href=o.href,i.hostname===window.location.hostname&&(window.location.href=o.href)):o.status===r.refresh?(M(),L().then()):o.status===r.pending?N(t):console.error("Invalid payment status"),e.next=11;break;case 8:e.prev=8,e.t0=e.catch(0),N(t);case 11:case"end":return e.stop()}}),e,null,[[0,8]])}))),5e3)}function R(){return(R=f(regeneratorRuntime.mark((function t(){var e,n;return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.prev=0,t.next=3,l.a.get(window.MollieModule.urls.cartAmount);case 3:return e=t.sent,n=e.data.amount,t.abrupt("return",n);case 8:t.prev=8,t.t0=t.catch(0),console.error(t.t0);case 11:case"end":return t.stop()}}),t,null,[[0,8]])})))).apply(this,arguments)}function P(t){var e=null,n=null;if(void 0!==window.localStorage){for(var r in window.localStorage)if(r.indexOf("mollieqrcache")>-1){var o=r.split("-");if(parseInt(o[1],10)>+new Date+6e4&&parseInt(o[2],10)===t){var i=JSON.parse(window.localStorage.getItem(r)),a=document.createElement("A");if(a.href=i.url,!/\.ideal\.nl$/i.test(a.hostname)||"https:"!==a.protocol){window.localStorage.removeItem(r);continue}e=i.url,n=i.idTransaction;break}window.localStorage.removeItem(r)}e&&n?(_(e),N(n)):L().then(N)}}var F=Object(o.useRef)(null),z=Object(s.throttle)((function(){C()}),200);return Object(o.useEffect)((function(){j(!0);var t=new IntersectionObserver((function(e){e.forEach((function(e){var n=e.isIntersecting,r=e.intersectionRatio;(!0===n||r>0)&&(g(!0),t.disconnect(),t=null)}))}),{});return t.observe(F.current),C(),window.addEventListener("resize",z),function(){j(!1),null!=t&&(t.disconnect(),t=null),window.removeEventListener("resize",z)}}),[]),Object(o.useEffect)((function(){u&&h&&!k&&!T&&(E(!0),function(){return R.apply(this,arguments)}().then(P))}),[u,h,k,T]),u&&h&&!b?i.a.createElement(i.a.Fragment,null,i.a.createElement(v,null,e),i.a.createElement(w,{center:n},!k&&i.a.createElement(c.a,null),k&&i.a.createElement(y,{src:k,center:n}))):i.a.createElement("p",{ref:F,style:{width:"20px"}}," ")}},195:function(t,e,n){"use strict";n.r(e),n.d(e,"default",(function(){return d}));n(62),n(65),n(61),n(68),n(22),n(104);var r=n(56),o=n.n(r),i=n(91),a=n.n(i),s=n(60),c=n(117);function l(){var t=function(t,e){e||(e=t.slice(0));return Object.freeze(Object.defineProperties(t,{raw:{value:Object.freeze(e)}}))}(['\n&&&& {\n padding-left: 80px;\n cursor: pointer;\n text-align: left;\n}\n\n&&&& label {\n display: inline-block;\n position: relative;\n padding-left: 5px;\n cursor: pointer;\n}\n\n&&&& label::before {\n content: "";\n display: inline-block;\n position: absolute;\n width: 17px;\n height: 17px;\n left: 0;\n top: 7px;\n margin-left: -20px;\n border: 1px solid #cccccc;\n border-radius: 50%;\n background-color: #fff;\n -webkit-transition: border 0.15s ease-in-out;\n -o-transition: border 0.15s ease-in-out;\n transition: border 0.15s ease-in-out;\n}\n\n&&&& label::after {\n display: inline-block;\n position: absolute;\n content: " ";\n width: 11px;\n height: 11px;\n left: 3px;\n top: 10px;\n margin-left: -20px;\n border-radius: 50%;\n background-color: #555555;\n -webkit-transform: scale(0, 0);\n -ms-transform: scale(0, 0);\n -o-transform: scale(0, 0);\n transform: scale(0, 0);\n -webkit-transition: -webkit-transform 0.1s cubic-bezier(0.8, -0.33, 0.2, 1.33);\n -moz-transition: -moz-transform 0.1s cubic-bezier(0.8, -0.33, 0.2, 1.33);\n -o-transition: -o-transform 0.1s cubic-bezier(0.8, -0.33, 0.2, 1.33);\n transition: transform 0.1s cubic-bezier(0.8, -0.33, 0.2, 1.33);\n}\n\n&&&& input[type="radio"] {\n opacity: 0;\n}\n\n&&&& input[type="radio"]:focus + label::before {\n outline: 5px auto -webkit-focus-ring-color;\n outline-offset: -2px;\n}\n\n&&&& input[type="radio"]:checked + label::after {\n -webkit-transform: scale(1, 1);\n -ms-transform: scale(1, 1);\n -o-transform: scale(1, 1);\n transform: scale(1, 1);\n}\n\n&&&& input[type="radio"]:disabled + label {\n opacity: 0.65;\n}\n\n&&&& input[type="radio"]:disabled + label::before {\n cursor: not-allowed;\n}\n\n&&&&&&&&-inline {\n margin-top: 0;\n}\n\n&&&& input[type="radio"] + label::after {\n background-color: #7cd1f9;\n}\n\n&&&& input[type="radio"]:checked + label::before {\n border-color: #7cd1f9;\n}\n\n&&&& input[type="radio"]:checked + label::after {\n background-color: #7cd1f9;\n}\n']);return l=function(){return t},t}var u=Object(r.lazy)((function(){return Promise.resolve().then(n.bind(null,154))})),f=s.default.div(l());function d(t){var e=t.banks,n=t.translations,i=t.setIssuer;function s(t){var e=t.target.value;i(e)}var l=Object.values(e)[0].id;return o.a.createElement("div",null,o.a.createElement("ul",null,Object.values(e).map((function(t){return o.a.createElement(f,{key:t.id},o.a.createElement("input",{type:"radio",defaultChecked:t.id===l,id:t.id,name:"mollie-bank",value:t.id,onChange:s}),o.a.createElement("label",{htmlFor:t.id,style:{lineHeight:"24px"}},o.a.createElement("img",{src:t.image.size2x,alt:a()(t.name),style:{height:"24px",width:"auto"}})," ",t.name))}))),window.mollieQrEnabled&&o.a.createElement(r.Suspense,{fallback:o.a.createElement(c.a,null)},o.a.createElement(u,{title:n.orPayByIdealQr,center:!0})))}},196:function(t,e){!function(t,e){"use strict";if("IntersectionObserver"in t&&"IntersectionObserverEntry"in t&&"intersectionRatio"in t.IntersectionObserverEntry.prototype)"isIntersecting"in t.IntersectionObserverEntry.prototype||Object.defineProperty(t.IntersectionObserverEntry.prototype,"isIntersecting",{get:function(){return this.intersectionRatio>0}});else{var n=[];o.prototype.THROTTLE_TIMEOUT=100,o.prototype.POLL_INTERVAL=null,o.prototype.USE_MUTATION_OBSERVER=!0,o.prototype.observe=function(t){if(!this._observationTargets.some((function(e){return e.element==t}))){if(!t||1!=t.nodeType)throw new Error("target must be an Element");this._registerInstance(),this._observationTargets.push({element:t,entry:null}),this._monitorIntersections(),this._checkForIntersections()}},o.prototype.unobserve=function(t){this._observationTargets=this._observationTargets.filter((function(e){return e.element!=t})),this._observationTargets.length||(this._unmonitorIntersections(),this._unregisterInstance())},o.prototype.disconnect=function(){this._observationTargets=[],this._unmonitorIntersections(),this._unregisterInstance()},o.prototype.takeRecords=function(){var t=this._queuedEntries.slice();return this._queuedEntries=[],t},o.prototype._initThresholds=function(t){var e=t||[0];return Array.isArray(e)||(e=[e]),e.sort().filter((function(t,e,n){if("number"!=typeof t||isNaN(t)||t<0||t>1)throw new Error("threshold must be a number between 0 and 1 inclusively");return t!==n[e-1]}))},o.prototype._parseRootMargin=function(t){var e=(t||"0px").split(/\s+/).map((function(t){var e=/^(-?\d*\.?\d+)(px|%)$/.exec(t);if(!e)throw new Error("rootMargin must be specified in pixels or percent");return{value:parseFloat(e[1]),unit:e[2]}}));return e[1]=e[1]||e[0],e[2]=e[2]||e[0],e[3]=e[3]||e[1],e},o.prototype._monitorIntersections=function(){this._monitoringIntersections||(this._monitoringIntersections=!0,this.POLL_INTERVAL?this._monitoringInterval=setInterval(this._checkForIntersections,this.POLL_INTERVAL):(i(t,"resize",this._checkForIntersections,!0),i(e,"scroll",this._checkForIntersections,!0),this.USE_MUTATION_OBSERVER&&"MutationObserver"in t&&(this._domObserver=new MutationObserver(this._checkForIntersections),this._domObserver.observe(e,{attributes:!0,childList:!0,characterData:!0,subtree:!0}))))},o.prototype._unmonitorIntersections=function(){this._monitoringIntersections&&(this._monitoringIntersections=!1,clearInterval(this._monitoringInterval),this._monitoringInterval=null,a(t,"resize",this._checkForIntersections,!0),a(e,"scroll",this._checkForIntersections,!0),this._domObserver&&(this._domObserver.disconnect(),this._domObserver=null))},o.prototype._checkForIntersections=function(){var e=this._rootIsInDom(),n=e?this._getRootRect():{top:0,bottom:0,left:0,right:0,width:0,height:0};this._observationTargets.forEach((function(o){var i=o.element,a=s(i),c=this._rootContainsTarget(i),l=o.entry,u=e&&c&&this._computeTargetAndRootIntersection(i,n),f=o.entry=new r({time:t.performance&&performance.now&&performance.now(),target:i,boundingClientRect:a,rootBounds:n,intersectionRect:u});l?e&&c?this._hasCrossedThreshold(l,f)&&this._queuedEntries.push(f):l&&l.isIntersecting&&this._queuedEntries.push(f):this._queuedEntries.push(f)}),this),this._queuedEntries.length&&this._callback(this.takeRecords(),this)},o.prototype._computeTargetAndRootIntersection=function(n,r){if("none"!=t.getComputedStyle(n).display){for(var o,i,a,c,u,f,d,p,m=s(n),h=l(n),g=!1;!g;){var b=null,v=1==h.nodeType?t.getComputedStyle(h):{};if("none"==v.display)return;if(h==this.root||h==e?(g=!0,b=r):h!=e.body&&h!=e.documentElement&&"visible"!=v.overflow&&(b=s(h)),b&&(o=b,i=m,a=void 0,c=void 0,u=void 0,f=void 0,d=void 0,p=void 0,a=Math.max(o.top,i.top),c=Math.min(o.bottom,i.bottom),u=Math.max(o.left,i.left),f=Math.min(o.right,i.right),p=c-a,!(m=(d=f-u)>=0&&p>=0&&{top:a,bottom:c,left:u,right:f,width:d,height:p})))break;h=l(h)}return m}},o.prototype._getRootRect=function(){var t;if(this.root)t=s(this.root);else{var n=e.documentElement,r=e.body;t={top:0,left:0,right:n.clientWidth||r.clientWidth,width:n.clientWidth||r.clientWidth,bottom:n.clientHeight||r.clientHeight,height:n.clientHeight||r.clientHeight}}return this._expandRectByRootMargin(t)},o.prototype._expandRectByRootMargin=function(t){var e=this._rootMarginValues.map((function(e,n){return"px"==e.unit?e.value:e.value*(n%2?t.width:t.height)/100})),n={top:t.top-e[0],right:t.right+e[1],bottom:t.bottom+e[2],left:t.left-e[3]};return n.width=n.right-n.left,n.height=n.bottom-n.top,n},o.prototype._hasCrossedThreshold=function(t,e){var n=t&&t.isIntersecting?t.intersectionRatio||0:-1,r=e.isIntersecting?e.intersectionRatio||0:-1;if(n!==r)for(var o=0;o=0&&(t._idleTimeoutId=setTimeout((function(){t._onTimeout&&t._onTimeout()}),e))},n(78),e.setImmediate="undefined"!=typeof self&&self.setImmediate||void 0!==t&&t.setImmediate||this&&this.setImmediate,e.clearImmediate="undefined"!=typeof self&&self.clearImmediate||void 0!==t&&t.clearImmediate||this&&this.clearImmediate}).call(this,n(64))},78:function(t,e,n){(function(t,e){!function(t,n){"use strict";if(!t.setImmediate){var r,o,i,a,s,c=1,l={},u=!1,f=t.document,d=Object.getPrototypeOf&&Object.getPrototypeOf(t);d=d&&d.setTimeout?d:t,"[object process]"==={}.toString.call(t.process)?r=function(t){e.nextTick((function(){m(t)}))}:!function(){if(t.postMessage&&!t.importScripts){var e=!0,n=t.onmessage;return t.onmessage=function(){e=!1},t.postMessage("","*"),t.onmessage=n,e}}()?t.MessageChannel?((i=new MessageChannel).port1.onmessage=function(t){m(t.data)},r=function(t){i.port2.postMessage(t)}):f&&"onreadystatechange"in f.createElement("script")?(o=f.documentElement,r=function(t){var e=f.createElement("script");e.onreadystatechange=function(){m(t),e.onreadystatechange=null,o.removeChild(e),e=null},o.appendChild(e)}):r=function(t){setTimeout(m,0,t)}:(a="setImmediate$"+Math.random()+"$",s=function(e){e.source===t&&"string"==typeof e.data&&0===e.data.indexOf(a)&&m(+e.data.slice(a.length))},t.addEventListener?t.addEventListener("message",s,!1):t.attachEvent("onmessage",s),r=function(e){t.postMessage(a+e,"*")}),d.setImmediate=function(t){"function"!=typeof t&&(t=new Function(""+t));for(var e=new Array(arguments.length-1),n=0;n/g,f=/"/g,d=/"/g,p=/&#([a-zA-Z0-9]*);?/gim,m=/:?/gim,h=/&newline;?/gim,g=/((j\s*a\s*v\s*a|v\s*b|l\s*i\s*v\s*e)\s*s\s*c\s*r\s*i\s*p\s*t\s*|m\s*o\s*c\s*h\s*a)\:/gi,b=/e\s*x\s*p\s*r\s*e\s*s\s*s\s*i\s*o\s*n\s*\(.*/gi,v=/u\s*r\s*l\s*\(.*/gi;function w(t){return t.replace(f,""")}function y(t){return t.replace(d,'"')}function x(t){return t.replace(p,(function(t,e){return"x"===e[0]||"X"===e[0]?String.fromCharCode(parseInt(e.substr(1),16)):String.fromCharCode(parseInt(e,10))}))}function k(t){return t.replace(m,":").replace(h," ")}function _(t){for(var e="",n=0,r=t.length;n/g;e.whiteList={a:["target","href","title"],abbr:["title"],address:[],area:["shape","coords","href","alt"],article:[],aside:[],audio:["autoplay","controls","loop","preload","src"],b:[],bdi:["dir"],bdo:["dir"],big:[],blockquote:["cite"],br:[],caption:[],center:[],cite:[],code:[],col:["align","valign","span","width"],colgroup:["align","valign","span","width"],dd:[],del:["datetime"],details:["open"],div:[],dl:[],dt:[],em:[],font:["color","size","face"],footer:[],h1:[],h2:[],h3:[],h4:[],h5:[],h6:[],header:[],hr:[],i:[],img:["src","alt","title","width","height"],ins:["datetime"],li:[],mark:[],nav:[],ol:[],p:[],pre:[],s:[],section:[],small:[],span:[],sub:[],sup:[],strong:[],table:["width","border","align","valign"],tbody:["align","valign"],td:["width","rowspan","colspan","align","valign"],tfoot:["align","valign"],th:["width","rowspan","colspan","align","valign"],thead:["align","valign"],tr:["rowspan","align","valign"],tt:[],u:[],ul:[],video:["autoplay","controls","loop","preload","src","height","width"]},e.getDefaultWhiteList=a,e.onTag=function(t,e,n){},e.onIgnoreTag=function(t,e,n){},e.onTagAttr=function(t,e,n){},e.onIgnoreTagAttr=function(t,e,n){},e.safeAttrValue=function(t,e,n,r){if(n=O(n),"href"===e||"src"===e){if("#"===(n=i.trim(n)))return"#";if("http://"!==n.substr(0,7)&&"https://"!==n.substr(0,8)&&"mailto:"!==n.substr(0,7)&&"tel:"!==n.substr(0,4)&&"data:image/"!==n.substr(0,11)&&"ftp://"!==n.substr(0,6)&&"./"!==n.substr(0,2)&&"../"!==n.substr(0,3)&&"#"!==n[0]&&"/"!==n[0])return""}else if("background"===e){if(g.lastIndex=0,g.test(n))return""}else if("style"===e){if(b.lastIndex=0,b.test(n))return"";if(v.lastIndex=0,v.test(n)&&(g.lastIndex=0,g.test(n)))return"";!1!==r&&(n=(r=r||s).process(n))}return n=T(n)},e.escapeHtml=c,e.escapeQuote=w,e.unescapeQuote=y,e.escapeHtmlEntities=x,e.escapeDangerHtml5Entities=k,e.clearNonPrintableCharacter=_,e.friendlyAttrValue=O,e.escapeAttrValue=T,e.onIgnoreTagStripAll=function(){return""},e.StripTagBody=function(t,e){"function"!=typeof e&&(e=function(){});var n=!Array.isArray(t),r=[],o=!1;return{onIgnoreTag:function(a,s,c){if(function(e){return!!n||-1!==i.indexOf(t,e)}(a)){if(c.isClosing){var l="[/removed]",u=c.position+l.length;return r.push([!1!==o?o:c.position,u]),o=!1,l}return o||(o=c.position),"[removed]"}return e(a,s,c)},remove:function(t){var e="",n=0;return i.forEach(r,(function(r){e+=t.slice(n,r[0]),n=r[1]})),e+=t.slice(n)}}},e.stripCommentTag=function(t){return t.replace(E,"")},e.stripBlankChar=function(t){var e=t.split("");return(e=e.filter((function(t){var e=t.charCodeAt(0);return 127!==e&&(!(e<=31)||(10===e||13===e))}))).join("")},e.cssFilter=s,e.getDefaultCSSWhiteList=o},95:function(t,e){function n(){var t={"align-content":!1,"align-items":!1,"align-self":!1,"alignment-adjust":!1,"alignment-baseline":!1,all:!1,"anchor-point":!1,animation:!1,"animation-delay":!1,"animation-direction":!1,"animation-duration":!1,"animation-fill-mode":!1,"animation-iteration-count":!1,"animation-name":!1,"animation-play-state":!1,"animation-timing-function":!1,azimuth:!1,"backface-visibility":!1,background:!0,"background-attachment":!0,"background-clip":!0,"background-color":!0,"background-image":!0,"background-origin":!0,"background-position":!0,"background-repeat":!0,"background-size":!0,"baseline-shift":!1,binding:!1,bleed:!1,"bookmark-label":!1,"bookmark-level":!1,"bookmark-state":!1,border:!0,"border-bottom":!0,"border-bottom-color":!0,"border-bottom-left-radius":!0,"border-bottom-right-radius":!0,"border-bottom-style":!0,"border-bottom-width":!0,"border-collapse":!0,"border-color":!0,"border-image":!0,"border-image-outset":!0,"border-image-repeat":!0,"border-image-slice":!0,"border-image-source":!0,"border-image-width":!0,"border-left":!0,"border-left-color":!0,"border-left-style":!0,"border-left-width":!0,"border-radius":!0,"border-right":!0,"border-right-color":!0,"border-right-style":!0,"border-right-width":!0,"border-spacing":!0,"border-style":!0,"border-top":!0,"border-top-color":!0,"border-top-left-radius":!0,"border-top-right-radius":!0,"border-top-style":!0,"border-top-width":!0,"border-width":!0,bottom:!1,"box-decoration-break":!0,"box-shadow":!0,"box-sizing":!0,"box-snap":!0,"box-suppress":!0,"break-after":!0,"break-before":!0,"break-inside":!0,"caption-side":!1,chains:!1,clear:!0,clip:!1,"clip-path":!1,"clip-rule":!1,color:!0,"color-interpolation-filters":!0,"column-count":!1,"column-fill":!1,"column-gap":!1,"column-rule":!1,"column-rule-color":!1,"column-rule-style":!1,"column-rule-width":!1,"column-span":!1,"column-width":!1,columns:!1,contain:!1,content:!1,"counter-increment":!1,"counter-reset":!1,"counter-set":!1,crop:!1,cue:!1,"cue-after":!1,"cue-before":!1,cursor:!1,direction:!1,display:!0,"display-inside":!0,"display-list":!0,"display-outside":!0,"dominant-baseline":!1,elevation:!1,"empty-cells":!1,filter:!1,flex:!1,"flex-basis":!1,"flex-direction":!1,"flex-flow":!1,"flex-grow":!1,"flex-shrink":!1,"flex-wrap":!1,float:!1,"float-offset":!1,"flood-color":!1,"flood-opacity":!1,"flow-from":!1,"flow-into":!1,font:!0,"font-family":!0,"font-feature-settings":!0,"font-kerning":!0,"font-language-override":!0,"font-size":!0,"font-size-adjust":!0,"font-stretch":!0,"font-style":!0,"font-synthesis":!0,"font-variant":!0,"font-variant-alternates":!0,"font-variant-caps":!0,"font-variant-east-asian":!0,"font-variant-ligatures":!0,"font-variant-numeric":!0,"font-variant-position":!0,"font-weight":!0,grid:!1,"grid-area":!1,"grid-auto-columns":!1,"grid-auto-flow":!1,"grid-auto-rows":!1,"grid-column":!1,"grid-column-end":!1,"grid-column-start":!1,"grid-row":!1,"grid-row-end":!1,"grid-row-start":!1,"grid-template":!1,"grid-template-areas":!1,"grid-template-columns":!1,"grid-template-rows":!1,"hanging-punctuation":!1,height:!0,hyphens:!1,icon:!1,"image-orientation":!1,"image-resolution":!1,"ime-mode":!1,"initial-letters":!1,"inline-box-align":!1,"justify-content":!1,"justify-items":!1,"justify-self":!1,left:!1,"letter-spacing":!0,"lighting-color":!0,"line-box-contain":!1,"line-break":!1,"line-grid":!1,"line-height":!1,"line-snap":!1,"line-stacking":!1,"line-stacking-ruby":!1,"line-stacking-shift":!1,"line-stacking-strategy":!1,"list-style":!0,"list-style-image":!0,"list-style-position":!0,"list-style-type":!0,margin:!0,"margin-bottom":!0,"margin-left":!0,"margin-right":!0,"margin-top":!0,"marker-offset":!1,"marker-side":!1,marks:!1,mask:!1,"mask-box":!1,"mask-box-outset":!1,"mask-box-repeat":!1,"mask-box-slice":!1,"mask-box-source":!1,"mask-box-width":!1,"mask-clip":!1,"mask-image":!1,"mask-origin":!1,"mask-position":!1,"mask-repeat":!1,"mask-size":!1,"mask-source-type":!1,"mask-type":!1,"max-height":!0,"max-lines":!1,"max-width":!0,"min-height":!0,"min-width":!0,"move-to":!1,"nav-down":!1,"nav-index":!1,"nav-left":!1,"nav-right":!1,"nav-up":!1,"object-fit":!1,"object-position":!1,opacity:!1,order:!1,orphans:!1,outline:!1,"outline-color":!1,"outline-offset":!1,"outline-style":!1,"outline-width":!1,overflow:!1,"overflow-wrap":!1,"overflow-x":!1,"overflow-y":!1,padding:!0,"padding-bottom":!0,"padding-left":!0,"padding-right":!0,"padding-top":!0,page:!1,"page-break-after":!1,"page-break-before":!1,"page-break-inside":!1,"page-policy":!1,pause:!1,"pause-after":!1,"pause-before":!1,perspective:!1,"perspective-origin":!1,pitch:!1,"pitch-range":!1,"play-during":!1,position:!1,"presentation-level":!1,quotes:!1,"region-fragment":!1,resize:!1,rest:!1,"rest-after":!1,"rest-before":!1,richness:!1,right:!1,rotation:!1,"rotation-point":!1,"ruby-align":!1,"ruby-merge":!1,"ruby-position":!1,"shape-image-threshold":!1,"shape-outside":!1,"shape-margin":!1,size:!1,speak:!1,"speak-as":!1,"speak-header":!1,"speak-numeral":!1,"speak-punctuation":!1,"speech-rate":!1,stress:!1,"string-set":!1,"tab-size":!1,"table-layout":!1,"text-align":!0,"text-align-last":!0,"text-combine-upright":!0,"text-decoration":!0,"text-decoration-color":!0,"text-decoration-line":!0,"text-decoration-skip":!0,"text-decoration-style":!0,"text-emphasis":!0,"text-emphasis-color":!0,"text-emphasis-position":!0,"text-emphasis-style":!0,"text-height":!0,"text-indent":!0,"text-justify":!0,"text-orientation":!0,"text-overflow":!0,"text-shadow":!0,"text-space-collapse":!0,"text-transform":!0,"text-underline-position":!0,"text-wrap":!0,top:!1,transform:!1,"transform-origin":!1,"transform-style":!1,transition:!1,"transition-delay":!1,"transition-duration":!1,"transition-property":!1,"transition-timing-function":!1,"unicode-bidi":!1,"vertical-align":!1,visibility:!1,"voice-balance":!1,"voice-duration":!1,"voice-family":!1,"voice-pitch":!1,"voice-range":!1,"voice-rate":!1,"voice-stress":!1,"voice-volume":!1,volume:!1,"white-space":!1,widows:!1,width:!0,"will-change":!1,"word-break":!0,"word-spacing":!0,"word-wrap":!0,"wrap-flow":!1,"wrap-through":!1,"writing-mode":!1,"z-index":!1};return t}var r=/javascript\s*\:/gim;e.whiteList=n(),e.getDefaultWhiteList=n,e.onAttr=function(t,e,n){},e.onIgnoreAttr=function(t,e,n){},e.safeAttrValue=function(t,e){return r.test(e)?"":e}},96:function(t,e){t.exports={indexOf:function(t,e){var n,r;if(Array.prototype.indexOf)return t.indexOf(e);for(n=0,r=t.length;n0;e--){var n=t[e];if(" "!==n)return"="===n?e:-1}}function l(t){return function(t){return'"'===t[0]&&'"'===t[t.length-1]||"'"===t[0]&&"'"===t[t.length-1]}(t)?t.substr(1,t.length-2):t}e.parseTag=function(t,e,n){"use strict";var r="",a=0,s=!1,c=!1,l=0,u=t.length,f="",d="";t:for(l=0;l"===p){r+=n(t.slice(a,s)),f=o(d=t.slice(s,l+1)),r+=e(s,r.length,f,d,i(d)),a=l+1,s=!1;continue}if('"'===p||"'"===p)for(var m=1,h=t.charAt(l-m);" "===h||"="===h;){if("="===h){c=p;continue t}h=t.charAt(l-++m)}}else if(p===c){c=!1;continue}}return a\n * @copyright Mollie B.V.\n * @link https://github.com/mollie/PrestaShop\n * @license https://github.com/mollie/PrestaShop/blob/master/LICENSE.md\n * @codingStandardsIgnoreStart\n */\nimport React, { ChangeEvent, ReactElement, Suspense, lazy } from 'react';\nimport xss from 'xss';\nimport styled from 'styled-components';\n\nimport { IBanks, ITranslations } from '@shared/globals';\nimport LoadingDotsCentered from '@shared/components/LoadingDotsCentered';\n\nconst QrCode = lazy(() => import(/* webpackChunkName: \"banks\" */ '@qrcode/components/QrCode'));\n\nconst Radio = styled.div`\n&&&& {\n padding-left: 80px;\n cursor: pointer;\n text-align: left;\n}\n\n&&&& label {\n display: inline-block;\n position: relative;\n padding-left: 5px;\n cursor: pointer;\n}\n\n&&&& label::before {\n content: \"\";\n display: inline-block;\n position: absolute;\n width: 17px;\n height: 17px;\n left: 0;\n top: 7px;\n margin-left: -20px;\n border: 1px solid #cccccc;\n border-radius: 50%;\n background-color: #fff;\n -webkit-transition: border 0.15s ease-in-out;\n -o-transition: border 0.15s ease-in-out;\n transition: border 0.15s ease-in-out;\n}\n\n&&&& label::after {\n display: inline-block;\n position: absolute;\n content: \" \";\n width: 11px;\n height: 11px;\n left: 3px;\n top: 10px;\n margin-left: -20px;\n border-radius: 50%;\n background-color: #555555;\n -webkit-transform: scale(0, 0);\n -ms-transform: scale(0, 0);\n -o-transform: scale(0, 0);\n transform: scale(0, 0);\n -webkit-transition: -webkit-transform 0.1s cubic-bezier(0.8, -0.33, 0.2, 1.33);\n -moz-transition: -moz-transform 0.1s cubic-bezier(0.8, -0.33, 0.2, 1.33);\n -o-transition: -o-transform 0.1s cubic-bezier(0.8, -0.33, 0.2, 1.33);\n transition: transform 0.1s cubic-bezier(0.8, -0.33, 0.2, 1.33);\n}\n\n&&&& input[type=\"radio\"] {\n opacity: 0;\n}\n\n&&&& input[type=\"radio\"]:focus + label::before {\n outline: 5px auto -webkit-focus-ring-color;\n outline-offset: -2px;\n}\n\n&&&& input[type=\"radio\"]:checked + label::after {\n -webkit-transform: scale(1, 1);\n -ms-transform: scale(1, 1);\n -o-transform: scale(1, 1);\n transform: scale(1, 1);\n}\n\n&&&& input[type=\"radio\"]:disabled + label {\n opacity: 0.65;\n}\n\n&&&& input[type=\"radio\"]:disabled + label::before {\n cursor: not-allowed;\n}\n\n&&&&&&&&-inline {\n margin-top: 0;\n}\n\n&&&& input[type=\"radio\"] + label::after {\n background-color: #7cd1f9;\n}\n\n&&&& input[type=\"radio\"]:checked + label::before {\n border-color: #7cd1f9;\n}\n\n&&&& input[type=\"radio\"]:checked + label::after {\n background-color: #7cd1f9;\n}\n`;\n\ndeclare let window: any;\n\ninterface IProps {\n banks: IBanks;\n translations: ITranslations;\n setIssuer: any;\n}\n\nexport default function Banks({ banks, translations, setIssuer }: IProps): ReactElement<{}> {\n function _handleChange({ target: { value } }: ChangeEvent): void {\n setIssuer(value);\n }\n\n const firstBankId = (Object.values(banks))[0].id;\n\n return (\n
\n
    \n {Object.values(banks).map((bank) => (\n \n \n \n \n ))}\n
\n {window.mollieQrEnabled && (\n }>\n \n \n )}\n
\n );\n}\n","/**\n * Mollie https://www.mollie.nl\n *\n * @author Mollie B.V. \n * @copyright Mollie B.V.\n * @link https://github.com/mollie/PrestaShop\n * @license https://github.com/mollie/PrestaShop/blob/master/LICENSE.md\n * @codingStandardsIgnoreStart\n */\nimport React, { lazy, Suspense } from 'react';\nimport { render, unmountComponentAtNode } from 'react-dom';\nimport swal from 'sweetalert';\nimport xss from 'xss';\n\nimport { IBanks, ITranslations } from '@shared/globals';\nimport LoadingDotsCentered from '@shared/components/LoadingDotsCentered';\n\nconst Banks = lazy(() => import(/* webpackPrefetch: true, webpackChunkName: \"banks\" */ '@banks/components/Banks'));\n\ndeclare let window: any;\n\nexport default function bankList(banks: IBanks, translations: ITranslations): void {\n let issuer = Object.values(banks)[0].id;\n function _setIssuer(newIssuer: string): void {\n issuer = newIssuer;\n }\n\n (async function () {\n const wrapper = document.createElement('DIV');\n render(\n (\n
\n }>\n \n \n
\n ),\n wrapper\n );\n const elem = wrapper.firstChild as Element;\n\n const value = await swal({\n title: xss(translations.chooseYourBank),\n content: {\n element: elem,\n },\n buttons: {\n cancel: {\n text: xss(translations.cancel),\n visible: true,\n },\n confirm: {\n text: xss(translations.choose),\n },\n },\n });\n if (value) {\n const win = window.open(banks[issuer].href, '_self');\n win.opener = null;\n } else {\n try {\n setTimeout(() => unmountComponentAtNode(wrapper), 2000);\n } catch (e) {\n }\n }\n }());\n}\n\n","/**\n * Mollie https://www.mollie.nl\n *\n * @author Mollie B.V. \n * @copyright Mollie B.V.\n * @link https://github.com/mollie/PrestaShop\n * @license https://github.com/mollie/PrestaShop/blob/master/LICENSE.md\n * @codingStandardsIgnoreStart\n */\nimport 'intersection-observer';\nimport React, { ReactElement, useEffect, useRef, useState } from 'react';\nimport styled from 'styled-components';\nimport { throttle } from 'lodash';\n\nimport LoadingDotsCentered from '@shared/components/LoadingDotsCentered';\nimport axios from '@shared/axios';\nimport { QrStatus } from '@shared/globals';\n\ndeclare let window: any;\n\nconst TitleSpan = styled.span`\n&&&& {\n font-size: 20px;\n display: block;\n}\n`;\n\nconst QrImageContainer = styled.div`\n&&&& {\n position: relative;\n display: block;\n text-align: ${({ center }: any) => center ? 'center' : 'left'};\n margin: ${({ center }: any) => center ? '0 auto' : 'inherit'};\n height: 240px;\n width: 240px;\n}\n` as any;\n\nconst QrImage = styled.img`\n&&&& {\n height: 240px;\n width: 240px;\n position: absolute;\n top: 0;\n left: 0;\n}\n` as any;\n\ninterface IProps {\n title?: string;\n center?: boolean;\n}\n\nexport default function QrCode({ title, center }: IProps): ReactElement<{}> {\n const [enoughSpace, setEnoughSpace] = useState(false);\n const [visible, setVisible] = useState(false);\n const [error] = useState(false);\n const [image, setImage] = useState('');\n const [initializing, setInitializing] = useState(false);\n const [mounted, setMounted] = useState(true);\n\n function _clearCache(): void {\n for (let key in window.localStorage) {\n if (key.indexOf('mollieqrcache') > -1) {\n window.localStorage.removeItem(key);\n }\n }\n }\n\n function _checkWindowSize(): void {\n setEnoughSpace(window.innerWidth > 800 && window.innerHeight > 860);\n }\n\n async function _grabNewUrl(): Promise {\n try {\n const { data } = await axios.get(window.MollieModule.urls.qrCodeNew);\n window.localStorage.setItem('mollieqrcache-' + data.expires + '-' + data.amount, JSON.stringify({\n url: data.href,\n idTransaction: data.idTransaction,\n }));\n setImage(data.href);\n return data.idTransaction;\n } catch (e) {\n console.error(e);\n }\n }\n\n function _pollStatus(idTransaction: string): void {\n if (!mounted) {\n return;\n }\n\n setTimeout(async (): Promise => {\n try {\n const { data } = await axios.get(`${window.MollieModule.urls.qrCodeStatus}&transaction_id=${idTransaction}`);\n if (data.status === QrStatus.success) {\n _clearCache();\n\n // Never redirect to a different domain\n const a = document.createElement('A') as HTMLAnchorElement;\n a.href = data.href;\n if (a.hostname === window.location.hostname) {\n window.location.href = data.href;\n }\n } else if (data.status === QrStatus.refresh) {\n _clearCache();\n _grabNewUrl().then();\n } else if (data.status === QrStatus.pending) {\n _pollStatus(idTransaction);\n } else {\n console.error('Invalid payment status');\n }\n } catch (e) {\n _pollStatus(idTransaction);\n }\n }, 5000);\n }\n\n async function _grabAmount(): Promise {\n try {\n const { data: { amount } } = await axios.get(window.MollieModule.urls.cartAmount);\n return amount;\n } catch (e) {\n console.error(e);\n }\n }\n\n function _initQrImage(amount: number): void {\n let url: string = null;\n let idTransaction: string = null;\n if (typeof window.localStorage !== 'undefined') {\n for (let key in window.localStorage) {\n if (key.indexOf('mollieqrcache') > -1) {\n const cacheInfo = key.split('-');\n if (parseInt(cacheInfo[1], 10) > (+new Date() + 60 * 1000) && parseInt(cacheInfo[2], 10) === amount) {\n const item = JSON.parse(window.localStorage.getItem(key));\n const a = document.createElement('A') as HTMLAnchorElement;\n a.href = item.url;\n if (!/\\.ideal\\.nl$/i.test(a.hostname) || a.protocol !== 'https:') {\n window.localStorage.removeItem(key);\n continue;\n }\n // Valid\n url = item.url;\n idTransaction = item.idTransaction;\n break;\n } else {\n window.localStorage.removeItem(key);\n }\n }\n }\n\n if (url && idTransaction) {\n setImage(url);\n _pollStatus(idTransaction);\n } else {\n _grabNewUrl().then(_pollStatus);\n }\n }\n }\n\n const ref = useRef<| null>(null);\n\n const resizeHandler = throttle(() => {\n _checkWindowSize();\n }, 200);\n\n useEffect(() => {\n setMounted(true);\n let observer = new IntersectionObserver(entries => {\n entries.forEach(entry => {\n const { isIntersecting, intersectionRatio } = entry;\n\n if (isIntersecting === true || intersectionRatio > 0) {\n setVisible(true);\n observer.disconnect();\n observer = null;\n }\n });\n }, {});\n observer.observe(ref.current);\n _checkWindowSize();\n window.addEventListener('resize', resizeHandler);\n\n return () => {\n setMounted(false);\n if (observer != null) {\n observer.disconnect();\n observer = null;\n }\n\n window.removeEventListener('resize', resizeHandler);\n }\n }, []);\n\n useEffect(() => {\n if (enoughSpace && visible && !image && !initializing) {\n setInitializing(true);\n _grabAmount().then(_initQrImage);\n }\n }, [enoughSpace, visible, image, initializing]);\n\n if (!enoughSpace || !visible || error) {\n return

 

;\n }\n\n return (\n <>\n {title}\n \n {!image && }\n {image && }\n \n \n );\n}\n","/**\n * Mollie https://www.mollie.nl\n *\n * @author Mollie B.V. \n * @copyright Mollie B.V.\n * @link https://github.com/mollie/PrestaShop\n * @license https://github.com/mollie/PrestaShop/blob/master/LICENSE.md\n * @codingStandardsIgnoreStart\n */\nimport axios from 'axios';\n\nexport default axios.create({\n transformResponse: [res => JSON.parse(res.replace(/^[^{[]*/mg, '').replace(/([^}\\]]*)$/mg, ''))],\n headers: {\n 'X-Requested-With': 'XMLHttpRequest',\n 'Content-Type': 'application/json',\n 'Accept': 'application/json',\n },\n});\n\n","/**\n * Mollie https://www.mollie.nl\n *\n * @author Mollie B.V. \n * @copyright Mollie B.V.\n * @link https://github.com/mollie/PrestaShop\n * @license https://github.com/mollie/PrestaShop/blob/master/LICENSE.md\n * @codingStandardsIgnoreStart\n */\nimport React, { ReactElement } from 'react';\nimport styled from 'styled-components';\n\nconst SpinnerDiv = styled.div`\n&&&& {\n position: absolute;\n top: 110px;\n left: 90px;\n}\n\n&&&& > div {\n width: 18px;\n height: 18px;\n background-color: #333;\n\n border-radius: 100%;\n display: inline-block;\n -webkit-animation: sk-bouncedelay 1.4s infinite ease-in-out both;\n animation: sk-bouncedelay 1.4s infinite ease-in-out both;\n}\n\n&&&& .bounce1 {\n -webkit-animation-delay: -0.32s;\n animation-delay: -0.32s;\n}\n\n&&&& .bounce2 {\n -webkit-animation-delay: -0.16s;\n animation-delay: -0.16s;\n}\n\n@-webkit-keyframes sk-bouncedelay {\n 0%, 80%, 100% { -webkit-transform: scale(0) }\n 40% { -webkit-transform: scale(1.0) }\n}\n\n@keyframes sk-bouncedelay {\n0%, 80%, 100% {\n -webkit-transform: scale(0);\n transform: scale(0);\n } 40% {\n -webkit-transform: scale(1.0);\n transform: scale(1.0);\n }\n}\n`;\n\nexport default function LoadingDotsCentered(): ReactElement<{}> {\n return (\n \n
\n
\n
\n \n );\n}\n","/**\n * Mollie https://www.mollie.nl\n *\n * @author Mollie B.V. \n * @copyright Mollie B.V.\n * @link https://github.com/mollie/PrestaShop\n * @license https://github.com/mollie/PrestaShop/blob/master/LICENSE.md\n * @codingStandardsIgnoreStart\n */\nimport {array} from \"locutus/php\";\n\nexport interface ITranslations {\n [key: string]: string;\n}\n\nexport interface IBankImage {\n size1x: string;\n size2x: string;\n}\n\nexport interface IBank {\n id: string;\n name: string;\n image: IBankImage;\n href: string;\n}\n\nexport interface IBanks {\n [key: string]: IBank;\n}\n\nexport interface IMollieAmount {\n value: string;\n currency: string;\n}\n\nexport interface IBankOptions {\n [key: string]: any;\n}\n\nexport interface IMollieOrderConfig {\n ajaxEndpoint: string;\n moduleDir: string;\n initialStatus: string;\n transactionId: string;\n legacy: boolean;\n tracking?: IMollieTracking;\n}\n\nexport interface IMollieCarrierConfig {\n ajaxEndpoint: string;\n carrierConfig: Array;\n legacy: boolean;\n}\n\nexport interface IMollieCarrierConfigItems {\n [key: string]: IMollieCarrierConfigItem;\n}\n\nexport interface IMollieCarrierConfigItem {\n 'id_carrier': string;\n 'name': string;\n 'source': 'do-not-track' | 'no-tracking-info' | 'module' | 'carrier_url' | 'custom_url';\n 'module'?: string;\n 'module_name': string;\n 'custom_url': string;\n}\n\nexport interface IMolliePaymentMethodImage {\n size1x: string;\n size2x: string;\n svg: string;\n}\n\nexport interface IMolliePaymentIssuer {\n [key: string]: any;\n}\n\nexport interface IMolliePaymentMethodItem {\n id: string;\n name: string;\n enabled: boolean;\n available?: boolean;\n tipEnableSSL?: boolean;\n image: IMolliePaymentMethodImage;\n issuers: Array;\n}\n\nexport interface IMolliePaymentMethodConfigItem extends IMolliePaymentMethodItem {\n position: number;\n}\n\nexport interface IMollieMethodConfig {\n ajaxEndpoint: string;\n moduleDir: string;\n legacy: boolean;\n}\n\nexport interface ICurrencies {\n [iso: string]: ICurrency;\n}\n\nexport interface ICurrency {\n format: number;\n sign: string;\n blank: string;\n name: string;\n iso_code: string;\n decimals: boolean;\n}\n\nexport interface IMollieApiOrder {\n resource: string;\n id: string;\n mode: string;\n amount: IMollieAmount;\n amountCaptured: IMollieAmount;\n status: string;\n method: string;\n metadata: any;\n isCancelable?: boolean;\n createdAt: string;\n lines: Array;\n refunds: Array;\n availableRefundAmount: IMollieAmount;\n details: IMollieOrderDetails;\n}\n\nexport interface IMollieOrderLine {\n resource: string;\n id: string;\n orderId: string;\n name: string;\n sku?: string;\n type: string;\n status: string;\n isCancelable: boolean;\n quantity: number;\n quantityShipped: number;\n amountShipped: IMollieAmount;\n quantityRefunded: number;\n amountRefunded: IMollieAmount;\n quantityCanceled: number;\n amountCanceled: IMollieAmount;\n shippableQuantity: number;\n refundableQuantity: number;\n cancelableQuantity: number;\n unitPrice: IMollieAmount;\n vatRate: string;\n vatAmount: IMollieAmount;\n totalAmount: IMollieAmount;\n createdAt: string;\n\n // PrestaShop additions\n newQuantity: number;\n}\n\nexport interface IMollieTracking {\n carrier: string;\n code: string;\n url?: string;\n}\n\nexport interface IMollieShipment {\n lines: Array;\n tracking: IMollieTracking;\n}\n\nexport interface IMollieApiPayment {\n resource: string;\n id: string;\n mode: string;\n amount: IMollieAmount;\n settlementAmount: IMollieAmount;\n amountRefunded: IMollieAmount;\n amountRemaining: IMollieAmount;\n description: string;\n method: string;\n status: string;\n createdAt: string;\n paidAt: string;\n canceledAt: string;\n expiresAt: string;\n failedAt: string;\n metaData: any;\n isCancelable: boolean;\n refunds: Array;\n}\n\nexport interface IMollieApiRefund {\n resource: string;\n id: string;\n amount: IMollieAmount;\n createdAt: string;\n description: string;\n paymentId: string;\n orderId: string;\n lines: string;\n settlementAmount: string;\n status: string;\n}\n\nexport enum QrStatus {\n pending = 1,\n success = 2,\n refresh = 3,\n}\n\nexport interface IMollieOrderDetails {\n issuer: string;\n remainderMethod: string;\n vouchers: Array;\n}\n\nexport interface IMollieVoucher {\n issuer: string;\n amount: IMollieAmount\n}\n"],"sourceRoot":""} \ No newline at end of file diff --git a/views/js/dist/carrierconfig.min.js b/views/js/dist/carrierconfig.min.js deleted file mode 100644 index f3cc6f172..000000000 --- a/views/js/dist/carrierconfig.min.js +++ /dev/null @@ -1,25 +0,0 @@ -/*! - * - * Mollie https://www.mollie.nl - * @author Mollie B.V. - * @copyright Mollie B.V. - * @link https://github.com/mollie/PrestaShop - * @license https://github.com/mollie/PrestaShop/blob/master/LICENSE.md - * - */ -(window.webpackJsonP_mollie=window.webpackJsonP_mollie||[]).push([["carrierconfig"],{101:function(e,t,n){"use strict";n.d(t,"a",(function(){return l})),n.d(t,"b",(function(){return c}));var r=n(123),a=function(){return Math.random().toString(36).substring(7).split("").join(".")},i={INIT:"@@redux/INIT"+a(),REPLACE:"@@redux/REPLACE"+a(),PROBE_UNKNOWN_ACTION:function(){return"@@redux/PROBE_UNKNOWN_ACTION"+a()}};function o(e){if("object"!=typeof e||null===e)return!1;for(var t=e;null!==Object.getPrototypeOf(t);)t=Object.getPrototypeOf(t);return Object.getPrototypeOf(e)===t}function c(e,t,n){var a;if("function"==typeof t&&"function"==typeof n||"function"==typeof n&&"function"==typeof arguments[3])throw new Error("It looks like you are passing several store enhancers to createStore(). This is not supported. Instead, compose them together to a single function.");if("function"==typeof t&&void 0===n&&(n=t,t=void 0),void 0!==n){if("function"!=typeof n)throw new Error("Expected the enhancer to be a function.");return n(c)(e,t)}if("function"!=typeof e)throw new Error("Expected the reducer to be a function.");var s=e,l=t,f=[],u=f,d=!1;function m(){u===f&&(u=f.slice())}function p(){if(d)throw new Error("You may not call store.getState() while the reducer is executing. The reducer has already received the state as an argument. Pass it down from the top reducer instead of reading it from the store.");return l}function h(e){if("function"!=typeof e)throw new Error("Expected the listener to be a function.");if(d)throw new Error("You may not call store.subscribe() while the reducer is executing. If you would like to be notified after the store has been updated, subscribe from a component and invoke store.getState() in the callback to access the latest state. See https://redux.js.org/api-reference/store#subscribelistener for more details.");var t=!0;return m(),u.push(e),function(){if(t){if(d)throw new Error("You may not unsubscribe from a store listener while the reducer is executing. See https://redux.js.org/api-reference/store#subscribelistener for more details.");t=!1,m();var n=u.indexOf(e);u.splice(n,1),f=null}}}function y(e){if(!o(e))throw new Error("Actions must be plain objects. Use custom middleware for async actions.");if(void 0===e.type)throw new Error('Actions may not have an undefined "type" property. Have you misspelled a constant?');if(d)throw new Error("Reducers may not dispatch actions.");try{d=!0,l=s(l,e)}finally{d=!1}for(var t=f=u,n=0;n-1;a--){var i=n[a],o=(i.tagName||"").toUpperCase();["STYLE","LINK"].indexOf(o)>-1&&(r=i)}return y.head.insertBefore(t,r),e}}function B(){for(var e=12,t="";e-- >0;)t+="0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ"[62*Math.random()|0];return t}function G(e){return"".concat(e).replace(/&/g,"&").replace(/"/g,""").replace(/'/g,"'").replace(//g,">")}function J(e){return Object.keys(e||{}).reduce((function(t,n){return t+"".concat(n,": ").concat(e[n],";")}),"")}function K(e){return e.size!==q.size||e.x!==q.x||e.y!==q.y||e.rotate!==q.rotate||e.flipX||e.flipY}function $(e){var t=e.transform,n=e.containerWidth,r=e.iconWidth,a={transform:"translate(".concat(n/2," 256)")},i="translate(".concat(32*t.x,", ").concat(32*t.y,") "),o="scale(".concat(t.size/16*(t.flipX?-1:1),", ").concat(t.size/16*(t.flipY?-1:1),") "),c="rotate(".concat(t.rotate," 0 0)");return{outer:a,inner:{transform:"".concat(i," ").concat(o," ").concat(c)},path:{transform:"translate(".concat(r/2*-1," -256)")}}}var Q={x:0,y:0,width:"100%",height:"100%"};function Z(e){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];return e.attributes&&(e.attributes.fill||t)&&(e.attributes.fill="black"),e}function ee(e){var t=e.icons,n=t.main,r=t.mask,a=e.prefix,i=e.iconName,o=e.transform,s=e.symbol,l=e.title,f=e.maskId,u=e.titleId,d=e.extra,m=e.watchable,p=void 0!==m&&m,h=r.found?r:n,y=h.width,g=h.height,b="fak"===a,v=b?"":"fa-w-".concat(Math.ceil(y/g*16)),w=[k.replacementClass,i?"".concat(k.familyPrefix,"-").concat(i):"",v].filter((function(e){return-1===d.classes.indexOf(e)})).filter((function(e){return""!==e||!!e})).concat(d.classes).join(" "),O={children:[],attributes:c({},d.attributes,{"data-prefix":a,"data-icon":i,class:w,role:d.attributes.role||"img",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 ".concat(y," ").concat(g)})},x=b&&!~d.classes.indexOf("fa-fw")?{width:"".concat(y/g*16*.0625,"em")}:{};p&&(O.attributes["data-fa-i2svg"]=""),l&&O.children.push({tag:"title",attributes:{id:O.attributes["aria-labelledby"]||"title-".concat(u||B())},children:[l]});var E=c({},O,{prefix:a,iconName:i,main:n,mask:r,maskId:f,transform:o,symbol:s,styles:c({},x,d.styles)}),_=r.found&&n.found?function(e){var t,n=e.children,r=e.attributes,a=e.main,i=e.mask,o=e.maskId,s=e.transform,l=a.width,f=a.icon,u=i.width,d=i.icon,m=$({transform:s,containerWidth:u,iconWidth:l}),p={tag:"rect",attributes:c({},Q,{fill:"white"})},h=f.children?{children:f.children.map(Z)}:{},y={tag:"g",attributes:c({},m.inner),children:[Z(c({tag:f.tag,attributes:c({},f.attributes,m.path)},h))]},g={tag:"g",attributes:c({},m.outer),children:[y]},b="mask-".concat(o||B()),v="clip-".concat(o||B()),w={tag:"mask",attributes:c({},Q,{id:b,maskUnits:"userSpaceOnUse",maskContentUnits:"userSpaceOnUse"}),children:[p,g]},O={tag:"defs",children:[{tag:"clipPath",attributes:{id:v},children:(t=d,"g"===t.tag?t.children:[t])},w]};return n.push(O,{tag:"rect",attributes:c({fill:"currentColor","clip-path":"url(#".concat(v,")"),mask:"url(#".concat(b,")")},Q)}),{children:n,attributes:r}}(E):function(e){var t=e.children,n=e.attributes,r=e.main,a=e.transform,i=J(e.styles);if(i.length>0&&(n.style=i),K(a)){var o=$({transform:a,containerWidth:r.width,iconWidth:r.width});t.push({tag:"g",attributes:c({},o.outer),children:[{tag:"g",attributes:c({},o.inner),children:[{tag:r.icon.tag,children:r.icon.children,attributes:c({},r.icon.attributes,o.path)}]}]})}else t.push(r.icon);return{children:t,attributes:n}}(E),j=_.children,C=_.attributes;return E.children=j,E.attributes=C,s?function(e){var t=e.prefix,n=e.iconName,r=e.children,a=e.attributes,i=e.symbol;return[{tag:"svg",attributes:{style:"display: none;"},children:[{tag:"symbol",attributes:c({},a,{id:!0===i?"".concat(t,"-").concat(k.familyPrefix,"-").concat(n):i}),children:r}]}]}(E):function(e){var t=e.children,n=e.main,r=e.mask,a=e.attributes,i=e.styles,o=e.transform;if(K(o)&&n.found&&!r.found){var s={x:n.width/n.height/2,y:.5};a.style=J(c({},i,{"transform-origin":"".concat(s.x+o.x/16,"em ").concat(s.y+o.y/16,"em")}))}return[{tag:"svg",attributes:a,children:t}]}(E)}var te=function(){},ne=(k.measurePerformance&&g&&g.mark&&g.measure,function(e,t,n,r){var a,i,o,c=Object.keys(e),s=c.length,l=void 0!==r?function(e,t){return function(n,r,a,i){return e.call(t,n,r,a,i)}}(t,r):t;for(void 0===n?(a=1,o=e[c[0]]):(a=0,o=n);a2&&void 0!==arguments[2]?arguments[2]:{},r=n.skipHooks,a=void 0!==r&&r,i=Object.keys(t).reduce((function(e,n){var r=t[n];return!!r.icon?e[r.iconName]=r.icon:e[n]=r,e}),{});"function"!=typeof j.hooks.addPack||a?j.styles[e]=c({},j.styles[e]||{},i):j.hooks.addPack(e,i),"fas"===e&&re("fa",t)}var ae=j.styles,ie=j.shims,oe=function(){var e=function(e){return ne(ae,(function(t,n,r){return t[r]=ne(n,e,{}),t}),{})};e((function(e,t,n){return t[3]&&(e[t[3]]=n),e})),e((function(e,t,n){var r=t[2];return e[n]=n,r.forEach((function(t){e[t]=n})),e}));var t="far"in ae;ne(ie,(function(e,n){var r=n[0],a=n[1],i=n[2];return"far"!==a||t||(a="fas"),e[r]={prefix:a,iconName:i},e}),{})};oe();j.styles;function ce(e,t,n){if(e&&e[t]&&e[t][n])return{prefix:t,iconName:n,icon:e[t][n]}}function se(e){var t=e.tag,n=e.attributes,r=void 0===n?{}:n,a=e.children,i=void 0===a?[]:a;return"string"==typeof e?G(e):"<".concat(t," ").concat(function(e){return Object.keys(e||{}).reduce((function(t,n){return t+"".concat(n,'="').concat(G(e[n]),'" ')}),"").trim()}(r),">").concat(i.map(se).join(""),"")}var le=function(e){var t={size:16,x:0,y:0,flipX:!1,flipY:!1,rotate:0};return e?e.toLowerCase().split(" ").reduce((function(e,t){var n=t.toLowerCase().split("-"),r=n[0],a=n.slice(1).join("-");if(r&&"h"===a)return e.flipX=!0,e;if(r&&"v"===a)return e.flipY=!0,e;if(a=parseFloat(a),isNaN(a))return e;switch(r){case"grow":e.size=e.size+a;break;case"shrink":e.size=e.size-a;break;case"left":e.x=e.x-a;break;case"right":e.x=e.x+a;break;case"up":e.y=e.y-a;break;case"down":e.y=e.y+a;break;case"rotate":e.rotate=e.rotate+a}return e}),t):t};function fe(e){this.name="MissingIcon",this.message=e||"Icon unavailable",this.stack=(new Error).stack}fe.prototype=Object.create(Error.prototype),fe.prototype.constructor=fe;var ue={fill:"currentColor"},de={attributeType:"XML",repeatCount:"indefinite",dur:"2s"},me={tag:"path",attributes:c({},ue,{d:"M156.5,447.7l-12.6,29.5c-18.7-9.5-35.9-21.2-51.5-34.9l22.7-22.7C127.6,430.5,141.5,440,156.5,447.7z M40.6,272H8.5 c1.4,21.2,5.4,41.7,11.7,61.1L50,321.2C45.1,305.5,41.8,289,40.6,272z M40.6,240c1.4-18.8,5.2-37,11.1-54.1l-29.5-12.6 C14.7,194.3,10,216.7,8.5,240H40.6z M64.3,156.5c7.8-14.9,17.2-28.8,28.1-41.5L69.7,92.3c-13.7,15.6-25.5,32.8-34.9,51.5 L64.3,156.5z M397,419.6c-13.9,12-29.4,22.3-46.1,30.4l11.9,29.8c20.7-9.9,39.8-22.6,56.9-37.6L397,419.6z M115,92.4 c13.9-12,29.4-22.3,46.1-30.4l-11.9-29.8c-20.7,9.9-39.8,22.6-56.8,37.6L115,92.4z M447.7,355.5c-7.8,14.9-17.2,28.8-28.1,41.5 l22.7,22.7c13.7-15.6,25.5-32.9,34.9-51.5L447.7,355.5z M471.4,272c-1.4,18.8-5.2,37-11.1,54.1l29.5,12.6 c7.5-21.1,12.2-43.5,13.6-66.8H471.4z M321.2,462c-15.7,5-32.2,8.2-49.2,9.4v32.1c21.2-1.4,41.7-5.4,61.1-11.7L321.2,462z M240,471.4c-18.8-1.4-37-5.2-54.1-11.1l-12.6,29.5c21.1,7.5,43.5,12.2,66.8,13.6V471.4z M462,190.8c5,15.7,8.2,32.2,9.4,49.2h32.1 c-1.4-21.2-5.4-41.7-11.7-61.1L462,190.8z M92.4,397c-12-13.9-22.3-29.4-30.4-46.1l-29.8,11.9c9.9,20.7,22.6,39.8,37.6,56.9 L92.4,397z M272,40.6c18.8,1.4,36.9,5.2,54.1,11.1l12.6-29.5C317.7,14.7,295.3,10,272,8.5V40.6z M190.8,50 c15.7-5,32.2-8.2,49.2-9.4V8.5c-21.2,1.4-41.7,5.4-61.1,11.7L190.8,50z M442.3,92.3L419.6,115c12,13.9,22.3,29.4,30.5,46.1 l29.8-11.9C470,128.5,457.3,109.4,442.3,92.3z M397,92.4l22.7-22.7c-15.6-13.7-32.8-25.5-51.5-34.9l-12.6,29.5 C370.4,72.1,384.4,81.5,397,92.4z"})},pe=c({},de,{attributeName:"opacity"});c({},ue,{cx:"256",cy:"364",r:"28"}),c({},de,{attributeName:"r",values:"28;14;28;28;14;28;"}),c({},pe,{values:"1;0;1;1;0;1;"}),c({},ue,{opacity:"1",d:"M263.7,312h-16c-6.6,0-12-5.4-12-12c0-71,77.4-63.9,77.4-107.8c0-20-17.8-40.2-57.4-40.2c-29.1,0-44.3,9.6-59.2,28.7 c-3.9,5-11.1,6-16.2,2.4l-13.1-9.2c-5.6-3.9-6.9-11.8-2.6-17.2c21.2-27.2,46.4-44.7,91.2-44.7c52.3,0,97.4,29.8,97.4,80.2 c0,67.6-77.4,63.5-77.4,107.8C275.7,306.6,270.3,312,263.7,312z"}),c({},pe,{values:"1;0;0;0;0;1;"}),c({},ue,{opacity:"0",d:"M232.5,134.5l7,168c0.3,6.4,5.6,11.5,12,11.5h9c6.4,0,11.7-5.1,12-11.5l7-168c0.3-6.8-5.2-12.5-12-12.5h-23 C237.7,122,232.2,127.7,232.5,134.5z"}),c({},pe,{values:"0;0;1;1;0;0;"}),j.styles;function he(e){var t=e[0],n=e[1],r=s(e.slice(4),1)[0];return{found:!0,width:t,height:n,icon:Array.isArray(r)?{tag:"g",attributes:{class:"".concat(k.familyPrefix,"-").concat(O.GROUP)},children:[{tag:"path",attributes:{class:"".concat(k.familyPrefix,"-").concat(O.SECONDARY),fill:"currentColor",d:r[0]}},{tag:"path",attributes:{class:"".concat(k.familyPrefix,"-").concat(O.PRIMARY),fill:"currentColor",d:r[1]}}]}:{tag:"path",attributes:{fill:"currentColor",d:r}}}}j.styles;function ye(){var e="svg-inline--fa",t=k.familyPrefix,n=k.replacementClass,r='svg:not(:root).svg-inline--fa {\n overflow: visible;\n}\n\n.svg-inline--fa {\n display: inline-block;\n font-size: inherit;\n height: 1em;\n overflow: visible;\n vertical-align: -0.125em;\n}\n.svg-inline--fa.fa-lg {\n vertical-align: -0.225em;\n}\n.svg-inline--fa.fa-w-1 {\n width: 0.0625em;\n}\n.svg-inline--fa.fa-w-2 {\n width: 0.125em;\n}\n.svg-inline--fa.fa-w-3 {\n width: 0.1875em;\n}\n.svg-inline--fa.fa-w-4 {\n width: 0.25em;\n}\n.svg-inline--fa.fa-w-5 {\n width: 0.3125em;\n}\n.svg-inline--fa.fa-w-6 {\n width: 0.375em;\n}\n.svg-inline--fa.fa-w-7 {\n width: 0.4375em;\n}\n.svg-inline--fa.fa-w-8 {\n width: 0.5em;\n}\n.svg-inline--fa.fa-w-9 {\n width: 0.5625em;\n}\n.svg-inline--fa.fa-w-10 {\n width: 0.625em;\n}\n.svg-inline--fa.fa-w-11 {\n width: 0.6875em;\n}\n.svg-inline--fa.fa-w-12 {\n width: 0.75em;\n}\n.svg-inline--fa.fa-w-13 {\n width: 0.8125em;\n}\n.svg-inline--fa.fa-w-14 {\n width: 0.875em;\n}\n.svg-inline--fa.fa-w-15 {\n width: 0.9375em;\n}\n.svg-inline--fa.fa-w-16 {\n width: 1em;\n}\n.svg-inline--fa.fa-w-17 {\n width: 1.0625em;\n}\n.svg-inline--fa.fa-w-18 {\n width: 1.125em;\n}\n.svg-inline--fa.fa-w-19 {\n width: 1.1875em;\n}\n.svg-inline--fa.fa-w-20 {\n width: 1.25em;\n}\n.svg-inline--fa.fa-pull-left {\n margin-right: 0.3em;\n width: auto;\n}\n.svg-inline--fa.fa-pull-right {\n margin-left: 0.3em;\n width: auto;\n}\n.svg-inline--fa.fa-border {\n height: 1.5em;\n}\n.svg-inline--fa.fa-li {\n width: 2em;\n}\n.svg-inline--fa.fa-fw {\n width: 1.25em;\n}\n\n.fa-layers svg.svg-inline--fa {\n bottom: 0;\n left: 0;\n margin: auto;\n position: absolute;\n right: 0;\n top: 0;\n}\n\n.fa-layers {\n display: inline-block;\n height: 1em;\n position: relative;\n text-align: center;\n vertical-align: -0.125em;\n width: 1em;\n}\n.fa-layers svg.svg-inline--fa {\n -webkit-transform-origin: center center;\n transform-origin: center center;\n}\n\n.fa-layers-counter, .fa-layers-text {\n display: inline-block;\n position: absolute;\n text-align: center;\n}\n\n.fa-layers-text {\n left: 50%;\n top: 50%;\n -webkit-transform: translate(-50%, -50%);\n transform: translate(-50%, -50%);\n -webkit-transform-origin: center center;\n transform-origin: center center;\n}\n\n.fa-layers-counter {\n background-color: #ff253a;\n border-radius: 1em;\n -webkit-box-sizing: border-box;\n box-sizing: border-box;\n color: #fff;\n height: 1.5em;\n line-height: 1;\n max-width: 5em;\n min-width: 1.5em;\n overflow: hidden;\n padding: 0.25em;\n right: 0;\n text-overflow: ellipsis;\n top: 0;\n -webkit-transform: scale(0.25);\n transform: scale(0.25);\n -webkit-transform-origin: top right;\n transform-origin: top right;\n}\n\n.fa-layers-bottom-right {\n bottom: 0;\n right: 0;\n top: auto;\n -webkit-transform: scale(0.25);\n transform: scale(0.25);\n -webkit-transform-origin: bottom right;\n transform-origin: bottom right;\n}\n\n.fa-layers-bottom-left {\n bottom: 0;\n left: 0;\n right: auto;\n top: auto;\n -webkit-transform: scale(0.25);\n transform: scale(0.25);\n -webkit-transform-origin: bottom left;\n transform-origin: bottom left;\n}\n\n.fa-layers-top-right {\n right: 0;\n top: 0;\n -webkit-transform: scale(0.25);\n transform: scale(0.25);\n -webkit-transform-origin: top right;\n transform-origin: top right;\n}\n\n.fa-layers-top-left {\n left: 0;\n right: auto;\n top: 0;\n -webkit-transform: scale(0.25);\n transform: scale(0.25);\n -webkit-transform-origin: top left;\n transform-origin: top left;\n}\n\n.fa-lg {\n font-size: 1.3333333333em;\n line-height: 0.75em;\n vertical-align: -0.0667em;\n}\n\n.fa-xs {\n font-size: 0.75em;\n}\n\n.fa-sm {\n font-size: 0.875em;\n}\n\n.fa-1x {\n font-size: 1em;\n}\n\n.fa-2x {\n font-size: 2em;\n}\n\n.fa-3x {\n font-size: 3em;\n}\n\n.fa-4x {\n font-size: 4em;\n}\n\n.fa-5x {\n font-size: 5em;\n}\n\n.fa-6x {\n font-size: 6em;\n}\n\n.fa-7x {\n font-size: 7em;\n}\n\n.fa-8x {\n font-size: 8em;\n}\n\n.fa-9x {\n font-size: 9em;\n}\n\n.fa-10x {\n font-size: 10em;\n}\n\n.fa-fw {\n text-align: center;\n width: 1.25em;\n}\n\n.fa-ul {\n list-style-type: none;\n margin-left: 2.5em;\n padding-left: 0;\n}\n.fa-ul > li {\n position: relative;\n}\n\n.fa-li {\n left: -2em;\n position: absolute;\n text-align: center;\n width: 2em;\n line-height: inherit;\n}\n\n.fa-border {\n border: solid 0.08em #eee;\n border-radius: 0.1em;\n padding: 0.2em 0.25em 0.15em;\n}\n\n.fa-pull-left {\n float: left;\n}\n\n.fa-pull-right {\n float: right;\n}\n\n.fa.fa-pull-left,\n.fas.fa-pull-left,\n.far.fa-pull-left,\n.fal.fa-pull-left,\n.fab.fa-pull-left {\n margin-right: 0.3em;\n}\n.fa.fa-pull-right,\n.fas.fa-pull-right,\n.far.fa-pull-right,\n.fal.fa-pull-right,\n.fab.fa-pull-right {\n margin-left: 0.3em;\n}\n\n.fa-spin {\n -webkit-animation: fa-spin 2s infinite linear;\n animation: fa-spin 2s infinite linear;\n}\n\n.fa-pulse {\n -webkit-animation: fa-spin 1s infinite steps(8);\n animation: fa-spin 1s infinite steps(8);\n}\n\n@-webkit-keyframes fa-spin {\n 0% {\n -webkit-transform: rotate(0deg);\n transform: rotate(0deg);\n }\n 100% {\n -webkit-transform: rotate(360deg);\n transform: rotate(360deg);\n }\n}\n\n@keyframes fa-spin {\n 0% {\n -webkit-transform: rotate(0deg);\n transform: rotate(0deg);\n }\n 100% {\n -webkit-transform: rotate(360deg);\n transform: rotate(360deg);\n }\n}\n.fa-rotate-90 {\n -ms-filter: "progid:DXImageTransform.Microsoft.BasicImage(rotation=1)";\n -webkit-transform: rotate(90deg);\n transform: rotate(90deg);\n}\n\n.fa-rotate-180 {\n -ms-filter: "progid:DXImageTransform.Microsoft.BasicImage(rotation=2)";\n -webkit-transform: rotate(180deg);\n transform: rotate(180deg);\n}\n\n.fa-rotate-270 {\n -ms-filter: "progid:DXImageTransform.Microsoft.BasicImage(rotation=3)";\n -webkit-transform: rotate(270deg);\n transform: rotate(270deg);\n}\n\n.fa-flip-horizontal {\n -ms-filter: "progid:DXImageTransform.Microsoft.BasicImage(rotation=0, mirror=1)";\n -webkit-transform: scale(-1, 1);\n transform: scale(-1, 1);\n}\n\n.fa-flip-vertical {\n -ms-filter: "progid:DXImageTransform.Microsoft.BasicImage(rotation=2, mirror=1)";\n -webkit-transform: scale(1, -1);\n transform: scale(1, -1);\n}\n\n.fa-flip-both, .fa-flip-horizontal.fa-flip-vertical {\n -ms-filter: "progid:DXImageTransform.Microsoft.BasicImage(rotation=2, mirror=1)";\n -webkit-transform: scale(-1, -1);\n transform: scale(-1, -1);\n}\n\n:root .fa-rotate-90,\n:root .fa-rotate-180,\n:root .fa-rotate-270,\n:root .fa-flip-horizontal,\n:root .fa-flip-vertical,\n:root .fa-flip-both {\n -webkit-filter: none;\n filter: none;\n}\n\n.fa-stack {\n display: inline-block;\n height: 2em;\n position: relative;\n width: 2.5em;\n}\n\n.fa-stack-1x,\n.fa-stack-2x {\n bottom: 0;\n left: 0;\n margin: auto;\n position: absolute;\n right: 0;\n top: 0;\n}\n\n.svg-inline--fa.fa-stack-1x {\n height: 1em;\n width: 1.25em;\n}\n.svg-inline--fa.fa-stack-2x {\n height: 2em;\n width: 2.5em;\n}\n\n.fa-inverse {\n color: #fff;\n}\n\n.sr-only {\n border: 0;\n clip: rect(0, 0, 0, 0);\n height: 1px;\n margin: -1px;\n overflow: hidden;\n padding: 0;\n position: absolute;\n width: 1px;\n}\n\n.sr-only-focusable:active, .sr-only-focusable:focus {\n clip: auto;\n height: auto;\n margin: 0;\n overflow: visible;\n position: static;\n width: auto;\n}\n\n.svg-inline--fa .fa-primary {\n fill: var(--fa-primary-color, currentColor);\n opacity: 1;\n opacity: var(--fa-primary-opacity, 1);\n}\n\n.svg-inline--fa .fa-secondary {\n fill: var(--fa-secondary-color, currentColor);\n opacity: 0.4;\n opacity: var(--fa-secondary-opacity, 0.4);\n}\n\n.svg-inline--fa.fa-swap-opacity .fa-primary {\n opacity: 0.4;\n opacity: var(--fa-secondary-opacity, 0.4);\n}\n\n.svg-inline--fa.fa-swap-opacity .fa-secondary {\n opacity: 1;\n opacity: var(--fa-primary-opacity, 1);\n}\n\n.svg-inline--fa mask .fa-primary,\n.svg-inline--fa mask .fa-secondary {\n fill: black;\n}\n\n.fad.fa-inverse {\n color: #fff;\n}';if("fa"!==t||n!==e){var a=new RegExp("\\.".concat("fa","\\-"),"g"),i=new RegExp("\\--".concat("fa","\\-"),"g"),o=new RegExp("\\.".concat(e),"g");r=r.replace(a,".".concat(t,"-")).replace(i,"--".concat(t,"-")).replace(o,".".concat(n))}return r}function ge(){k.autoAddCss&&!xe&&(V(ye()),xe=!0)}function be(e,t){return Object.defineProperty(e,"abstract",{get:t}),Object.defineProperty(e,"html",{get:function(){return e.abstract.map((function(e){return se(e)}))}}),Object.defineProperty(e,"node",{get:function(){if(b){var t=y.createElement("div");return t.innerHTML=e.html,t.children}}}),e}function ve(e){var t=e.prefix,n=void 0===t?"fa":t,r=e.iconName;if(r)return ce(Oe.definitions,n,r)||ce(j.styles,n,r)}var we,Oe=new(function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.definitions={}}var t,n,r;return t=e,(n=[{key:"add",value:function(){for(var e=this,t=arguments.length,n=new Array(t),r=0;r1&&void 0!==arguments[1]?arguments[1]:{},n=t.transform,r=void 0===n?q:n,a=t.symbol,i=void 0!==a&&a,o=t.mask,s=void 0===o?null:o,l=t.maskId,f=void 0===l?null:l,u=t.title,d=void 0===u?null:u,m=t.titleId,p=void 0===m?null:m,h=t.classes,y=void 0===h?[]:h,g=t.attributes,b=void 0===g?{}:g,v=t.styles,w=void 0===v?{}:v;if(e){var O=e.prefix,x=e.iconName,E=e.icon;return be(c({type:"icon"},e),(function(){return ge(),k.autoA11y&&(d?b["aria-labelledby"]="".concat(k.replacementClass,"-title-").concat(p||B()):(b["aria-hidden"]="true",b.focusable="false")),ee({icons:{main:he(E),mask:s?he(s.icon):{found:!1,width:null,height:null,icon:{}}},prefix:O,iconName:x,transform:c({},q,r),symbol:i,title:d,maskId:f,titleId:p,extra:{attributes:b,styles:w,classes:y}})}))}},function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=(e||{}).icon?e:ve(e||{}),r=t.mask;return r&&(r=(r||{}).icon?r:ve(r||{})),we(n,c({},t,{mask:r}))})}).call(this,n(64),n(74).setImmediate)},123:function(e,t,n){"use strict";(function(e,r){var a,i=n(125);a="undefined"!=typeof self?self:"undefined"!=typeof window?window:void 0!==e?e:r;var o=Object(i.a)(a);t.a=o}).call(this,n(64),n(124)(e))},124:function(e,t){e.exports=function(e){if(!e.webpackPolyfill){var t=Object.create(e);t.children||(t.children=[]),Object.defineProperty(t,"loaded",{enumerable:!0,get:function(){return t.l}}),Object.defineProperty(t,"id",{enumerable:!0,get:function(){return t.i}}),Object.defineProperty(t,"exports",{enumerable:!0}),t.webpackPolyfill=1}return t}},125:function(e,t,n){"use strict";function r(e){var t,n=e.Symbol;return"function"==typeof n?n.observable?t=n.observable:(t=n("observable"),n.observable=t):t="@@observable",t}n.d(t,"a",(function(){return r}))},150:function(e,t,n){"use strict";var r;function a(e){return{type:r.updateTranslations,translations:e}}function i(e){return{type:r.updateConfig,config:e}}n.r(t),n.d(t,"ReduxActionTypes",(function(){return r})),n.d(t,"updateTranslations",(function(){return a})),n.d(t,"updateConfig",(function(){return i})),function(e){e.updateTranslations="UPDATE_MOLLIE_CARRIER_TRANSLATIONS",e.updateConfig="UPDATE_MOLLIE_CARRIER_CONFIG"}(r||(r={}))},197:function(e,t,n){"use strict";n.r(t),n.d(t,"default",(function(){return h}));n(23),n(72),n(69),n(70),n(71),n(22),n(61),n(66),n(67),n(24),n(65);var r=n(56),a=n.n(r),i=n(76),o=n.n(i),c=n(63),s=n(79),l=n(88);function f(e,t,n,r,a,i,o){try{var c=e[i](o),s=c.value}catch(e){return void n(e)}c.done?t(s):Promise.resolve(s).then(r,a)}function u(e){return function(){var t=this,n=arguments;return new Promise((function(r,a){var i=e.apply(t,n);function o(e){f(i,r,a,o,c,"next",e)}function c(e){f(i,r,a,o,c,"throw",e)}o(void 0)}))}}function d(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if("undefined"==typeof Symbol||!(Symbol.iterator in Object(e)))return;var n=[],r=!0,a=!1,i=void 0;try{for(var o,c=e[Symbol.iterator]();!(r=(o=c.next()).done)&&(n.push(o.value),!t||n.length!==t);r=!0);}catch(e){a=!0,i=e}finally{try{r||null==c.return||c.return()}finally{if(a)throw i}}return n}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return m(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return m(e,t)}(e,t)||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 m(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;switch(t.type){case i.ReduxActionTypes.updateTranslations:return t.translations;default:return e}},config:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;switch(t.type){case i.ReduxActionTypes.updateConfig:return t.config;default:return e}}}),c=window.__REDUX_DEVTOOLS_EXTENSION__;r=Object(a.b)(o,c&&c());t.default=r},52:function(e,t,n){"use strict";n.r(t);n(69),n(65),n(70),n(71),n(66),n(67),n(23),n(61),n(68),n(22),n(72),n(24);var r=n(56),a=n.n(r),i=n(59),o=n(84);function c(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if("undefined"==typeof Symbol||!(Symbol.iterator in Object(e)))return;var n=[],r=!0,a=!1,i=void 0;try{for(var o,c=e[Symbol.iterator]();!(r=(o=c.next()).done)&&(n.push(o.value),!t||n.length!==t);r=!0);}catch(e){a=!0,i=e}finally{try{r||null==c.return||c.return()}finally{if(a)throw i}}return n}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return s(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return s(e,t)}(e,t)||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 s(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n")||this}return function(e,t){function n(){this.constructor=e}a(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}(t,e),t}(Error);function f(e){return e+1}var u=(c=function(){var e=Object(r.createContext)(null);return{StoreContext:e,useDispatch:function(){var t=Object(r.useContext)(e);if(!t)throw new l;return t.dispatch},useMappedState:function(t){var n=Object(r.useContext)(e);if(!n)throw new l;var a=Object(r.useMemo)((function(){return e=t,function(t){return r!==t&&(r=t,n=e(t)),n};var e,n,r}),[t]),c=n.getState(),u=a(c),d=Object(r.useState)(0)[1],m=Object(r.useRef)(u),p=Object(r.useRef)(a);return s((function(){m.current=u,p.current=a})),s((function(){var e=!1,t=function(){e||(function(e,t){if(o(e,t))return!0;if("object"!=typeof e||null===e||"object"!=typeof t||null===t)return!1;var n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(var a=0;a=0&&(e._idleTimeoutId=setTimeout((function(){e._onTimeout&&e._onTimeout()}),t))},n(78),t.setImmediate="undefined"!=typeof self&&self.setImmediate||void 0!==e&&e.setImmediate||this&&this.setImmediate,t.clearImmediate="undefined"!=typeof self&&self.clearImmediate||void 0!==e&&e.clearImmediate||this&&this.clearImmediate}).call(this,n(64))},76:function(e,t,n){var r; -/*! - Copyright (c) 2017 Jed Watson. - Licensed under the MIT License (MIT), see - http://jedwatson.github.io/classnames -*/!function(){"use strict";var n={}.hasOwnProperty;function a(){for(var e=[],t=0;t=0||(a[n]=e[n]);return a}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(a[n]=e[n])}return a}function m(e){return function(e){if(Array.isArray(e)){for(var t=0,n=new Array(e.length);t0||!Array.isArray(t)&&t?l({},e,t):{}}function v(e){var t=e.forwardedRef,n=d(e,["forwardedRef"]),a=n.icon,i=n.mask,o=n.symbol,c=n.className,s=n.title,f=g(a),p=b("classes",[].concat(m(function(e){var t,n=e.spin,r=e.pulse,a=e.fixedWidth,i=e.inverse,o=e.border,c=e.listItem,s=e.flip,f=e.size,u=e.rotation,d=e.pull,m=(l(t={"fa-spin":n,"fa-pulse":r,"fa-fw":a,"fa-inverse":i,"fa-border":o,"fa-li":c,"fa-flip-horizontal":"horizontal"===s||"both"===s,"fa-flip-vertical":"vertical"===s||"both"===s},"fa-".concat(f),null!=f),l(t,"fa-rotate-".concat(u),null!=u&&0!==u),l(t,"fa-pull-".concat(d),null!=d),l(t,"fa-swap-opacity",e.swapOpacity),t);return Object.keys(m).map((function(e){return m[e]?e:null})).filter((function(e){return e}))}(n)),m(c.split(" ")))),h=b("transform","string"==typeof n.transform?r.b.transform(n.transform):n.transform),O=b("mask",g(i)),x=Object(r.a)(f,u({},p,{},h,{},O,{symbol:o,title:s}));if(!x)return function(){var e;!y&&console&&"function"==typeof console.error&&(e=console).error.apply(e,arguments)}("Could not find icon",f),null;var E=x.abstract,k={ref:t};return Object.keys(n).forEach((function(e){v.defaultProps.hasOwnProperty(e)||(k[e]=n[e])})),w(E[0],k)}v.displayName="FontAwesomeIcon",v.propTypes={border:i.a.bool,className:i.a.string,mask:i.a.oneOfType([i.a.object,i.a.array,i.a.string]),fixedWidth:i.a.bool,inverse:i.a.bool,flip:i.a.oneOf(["horizontal","vertical","both"]),icon:i.a.oneOfType([i.a.object,i.a.array,i.a.string]),listItem:i.a.bool,pull:i.a.oneOf(["right","left"]),pulse:i.a.bool,rotation:i.a.oneOf([0,90,180,270]),size:i.a.oneOf(["lg","xs","sm","1x","2x","3x","4x","5x","6x","7x","8x","9x","10x"]),spin:i.a.bool,symbol:i.a.oneOfType([i.a.bool,i.a.string]),title:i.a.string,transform:i.a.oneOfType([i.a.string,i.a.object]),swapOpacity:i.a.bool},v.defaultProps={border:!1,className:"",mask:null,fixedWidth:!1,inverse:!1,flip:null,icon:null,listItem:!1,pull:null,pulse:!1,rotation:null,size:null,spin:!1,symbol:!1,title:"",transform:null,swapOpacity:!1};var w=function e(t,n){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};if("string"==typeof n)return n;var a=(n.children||[]).map((function(n){return e(t,n)})),i=Object.keys(n.attributes||{}).reduce((function(e,t){var r=n.attributes[t];switch(t){case"class":e.attrs.className=r,delete n.attributes.class;break;case"style":e.attrs.style=h(r);break;default:0===t.indexOf("aria-")||0===t.indexOf("data-")?e.attrs[t.toLowerCase()]=r:e.attrs[p(t)]=r}return e}),{attrs:{}}),o=r.style,c=void 0===o?{}:o,s=d(r,["style"]);return i.attrs.style=u({},i.attrs.style,{},c),t.apply(void 0,[n.tag,u({},i.attrs,{},s)].concat(m(a)))}.bind(null,c.a.createElement)},82:function(e,t,n){"use strict";n.d(t,"a",(function(){return r})),n.d(t,"b",(function(){return a})),n.d(t,"c",(function(){return i})),n.d(t,"d",(function(){return o})),n.d(t,"e",(function(){return c})),n.d(t,"f",(function(){return s})),n.d(t,"g",(function(){return l})),n.d(t,"h",(function(){return f})),n.d(t,"i",(function(){return u})),n.d(t,"j",(function(){return d})); -/*! - * Font Awesome Free 5.15.1 by @fontawesome - https://fontawesome.com - * License - https://fontawesome.com/license/free (Icons: CC BY 4.0, Fonts: SIL OFL 1.1, Code: MIT License) - */ -var r={prefix:"fas",iconName:"chevron-down",icon:[448,512,[],"f078","M207.029 381.476L12.686 187.132c-9.373-9.373-9.373-24.569 0-33.941l22.667-22.667c9.357-9.357 24.522-9.375 33.901-.04L224 284.505l154.745-154.021c9.379-9.335 24.544-9.317 33.901.04l22.667 22.667c9.373 9.373 9.373 24.569 0 33.941L240.971 381.476c-9.373 9.372-24.569 9.372-33.942 0z"]},a={prefix:"fas",iconName:"chevron-up",icon:[448,512,[],"f077","M240.971 130.524l194.343 194.343c9.373 9.373 9.373 24.569 0 33.941l-22.667 22.667c-9.357 9.357-24.522 9.375-33.901.04L224 227.495 69.255 381.516c-9.379 9.335-24.544 9.317-33.901-.04l-22.667-22.667c-9.373-9.373-9.373-24.569 0-33.941L207.03 130.525c9.372-9.373 24.568-9.373 33.941-.001z"]},i={prefix:"fas",iconName:"circle-notch",icon:[512,512,[],"f1ce","M288 39.056v16.659c0 10.804 7.281 20.159 17.686 23.066C383.204 100.434 440 171.518 440 256c0 101.689-82.295 184-184 184-101.689 0-184-82.295-184-184 0-84.47 56.786-155.564 134.312-177.219C216.719 75.874 224 66.517 224 55.712V39.064c0-15.709-14.834-27.153-30.046-23.234C86.603 43.482 7.394 141.206 8.003 257.332c.72 137.052 111.477 246.956 248.531 246.667C393.255 503.711 504 392.788 504 256c0-115.633-79.14-212.779-186.211-240.236C302.678 11.889 288 23.456 288 39.056z"]},o={prefix:"fas",iconName:"exclamation-triangle",icon:[576,512,[],"f071","M569.517 440.013C587.975 472.007 564.806 512 527.94 512H48.054c-36.937 0-59.999-40.055-41.577-71.987L246.423 23.985c18.467-32.009 64.72-31.951 83.154 0l239.94 416.028zM288 354c-25.405 0-46 20.595-46 46s20.595 46 46 46 46-20.595 46-46-20.595-46-46-46zm-43.673-165.346l7.418 136c.347 6.364 5.609 11.346 11.982 11.346h48.546c6.373 0 11.635-4.982 11.982-11.346l7.418-136c.375-6.874-5.098-12.654-11.982-12.654h-63.383c-6.884 0-12.356 5.78-11.981 12.654z"]},c={prefix:"fas",iconName:"redo-alt",icon:[512,512,[],"f2f9","M256.455 8c66.269.119 126.437 26.233 170.859 68.685l35.715-35.715C478.149 25.851 504 36.559 504 57.941V192c0 13.255-10.745 24-24 24H345.941c-21.382 0-32.09-25.851-16.971-40.971l41.75-41.75c-30.864-28.899-70.801-44.907-113.23-45.273-92.398-.798-170.283 73.977-169.484 169.442C88.764 348.009 162.184 424 256 424c41.127 0 79.997-14.678 110.629-41.556 4.743-4.161 11.906-3.908 16.368.553l39.662 39.662c4.872 4.872 4.631 12.815-.482 17.433C378.202 479.813 319.926 504 256 504 119.034 504 8.001 392.967 8 256.002 7.999 119.193 119.646 7.755 256.455 8z"]},s={prefix:"fas",iconName:"times",icon:[352,512,[],"f00d","M242.72 256l100.07-100.07c12.28-12.28 12.28-32.19 0-44.48l-22.24-22.24c-12.28-12.28-32.19-12.28-44.48 0L176 189.28 75.93 89.21c-12.28-12.28-32.19-12.28-44.48 0L9.21 111.45c-12.28 12.28-12.28 32.19 0 44.48L109.28 256 9.21 356.07c-12.28 12.28-12.28 32.19 0 44.48l22.24 22.24c12.28 12.28 32.2 12.28 44.48 0L176 322.72l100.07 100.07c12.28 12.28 32.2 12.28 44.48 0l22.24-22.24c12.28-12.28 12.28-32.19 0-44.48L242.72 256z"]},l={prefix:"fas",iconName:"times-circle",icon:[512,512,[],"f057","M256 8C119 8 8 119 8 256s111 248 248 248 248-111 248-248S393 8 256 8zm121.6 313.1c4.7 4.7 4.7 12.3 0 17L338 377.6c-4.7 4.7-12.3 4.7-17 0L256 312l-65.1 65.6c-4.7 4.7-12.3 4.7-17 0L134.4 338c-4.7-4.7-4.7-12.3 0-17l65.6-65-65.6-65.1c-4.7-4.7-4.7-12.3 0-17l39.6-39.6c4.7-4.7 12.3-4.7 17 0l65 65.7 65.1-65.6c4.7-4.7 12.3-4.7 17 0l39.6 39.6c4.7 4.7 4.7 12.3 0 17L312 256l65.6 65.1z"]},f={prefix:"fas",iconName:"truck",icon:[640,512,[],"f0d1","M624 352h-16V243.9c0-12.7-5.1-24.9-14.1-33.9L494 110.1c-9-9-21.2-14.1-33.9-14.1H416V48c0-26.5-21.5-48-48-48H48C21.5 0 0 21.5 0 48v320c0 26.5 21.5 48 48 48h16c0 53 43 96 96 96s96-43 96-96h128c0 53 43 96 96 96s96-43 96-96h48c8.8 0 16-7.2 16-16v-32c0-8.8-7.2-16-16-16zM160 464c-26.5 0-48-21.5-48-48s21.5-48 48-48 48 21.5 48 48-21.5 48-48 48zm320 0c-26.5 0-48-21.5-48-48s21.5-48 48-48 48 21.5 48 48-21.5 48-48 48zm80-208H416V144h44.1l99.9 99.9V256z"]},u={prefix:"fas",iconName:"undo",icon:[512,512,[],"f0e2","M212.333 224.333H12c-6.627 0-12-5.373-12-12V12C0 5.373 5.373 0 12 0h48c6.627 0 12 5.373 12 12v78.112C117.773 39.279 184.26 7.47 258.175 8.007c136.906.994 246.448 111.623 246.157 248.532C504.041 393.258 393.12 504 256.333 504c-64.089 0-122.496-24.313-166.51-64.215-5.099-4.622-5.334-12.554-.467-17.42l33.967-33.967c4.474-4.474 11.662-4.717 16.401-.525C170.76 415.336 211.58 432 256.333 432c97.268 0 176-78.716 176-176 0-97.267-78.716-176-176-176-58.496 0-110.28 28.476-142.274 72.333h98.274c6.627 0 12 5.373 12 12v48c0 6.627-5.373 12-12 12z"]},d={prefix:"fas",iconName:"undo-alt",icon:[512,512,[],"f2ea","M255.545 8c-66.269.119-126.438 26.233-170.86 68.685L48.971 40.971C33.851 25.851 8 36.559 8 57.941V192c0 13.255 10.745 24 24 24h134.059c21.382 0 32.09-25.851 16.971-40.971l-41.75-41.75c30.864-28.899 70.801-44.907 113.23-45.273 92.398-.798 170.283 73.977 169.484 169.442C423.236 348.009 349.816 424 256 424c-41.127 0-79.997-14.678-110.63-41.556-4.743-4.161-11.906-3.908-16.368.553L89.34 422.659c-4.872 4.872-4.631 12.815.482 17.433C133.798 479.813 192.074 504 256 504c136.966 0 247.999-111.033 248-247.998C504.001 119.193 392.354 7.755 255.545 8z"]}},88:function(e,t,n){"use strict";n(62);var r=n(56),a=n.n(r),i=n(60);function o(){var e=l(["\n background-color: black;\n border-radius: 50%;\n width: 10px;\n height: 10px;\n margin: 0 5px;\n opacity: 0.7;\n /* Animation */\n animation: "," 0.5s linear infinite;\n animation-delay: ",";\n"]);return o=function(){return e},e}function c(){var e=l(["\n display: flex;\n align-items: flex-end;\n min-height: 30px;\n"]);return c=function(){return e},e}function s(){var e=l(["\n 0% { margin-bottom: 0; }\n 50% { margin-bottom: 15px }\n 100% { margin-bottom: 0 }\n"]);return s=function(){return e},e}function l(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}var f=Object(i.keyframes)(s()),u=i.default.div(c()),d=i.default.div(o(),f,(function(e){return e.delay}));t.a=function(){return a.a.createElement(u,null,a.a.createElement(d,{delay:"0s"}),a.a.createElement(d,{delay:".1s"}),a.a.createElement(d,{delay:".2s"}))}}}]); \ No newline at end of file diff --git a/views/js/dist/carrierconfig.min.js.map b/views/js/dist/carrierconfig.min.js.map deleted file mode 100644 index 1581c4554..000000000 --- a/views/js/dist/carrierconfig.min.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"sources":["webpack://MollieModule.[name]/./src/back/carrierconfig/components/CarrierConfig.tsx","webpack://MollieModule.[name]/./src/back/carrierconfig/components/CarrierConfigError.tsx","webpack://MollieModule.[name]/./src/back/carrierconfig/index.tsx","webpack://MollieModule.[name]/./src/back/carrierconfig/store/actions.ts","webpack://MollieModule.[name]/./src/back/carrierconfig/store/carriers.ts","webpack://MollieModule.[name]/./src/back/carrierconfig/store/index.ts","webpack://MollieModule.[name]/./src/shared/axios.ts"],"names":["ConfigCarrierError","lazy","CarrierConfig","props","useState","undefined","carriers","setCarriers","message","setMessage","_init","ajaxEndpoint","config","axios","get","data","console","error","Error","_carrierConfig","carrierConfig","forEach","carrier","id_carrier","_updateCarrierConfig","id","key","value","newCarriers","cloneDeep","find","item","useEffect","then","translations","target","legacy","Array","isArray","isEmpty","cx","hereYouCanConfigureCarriers","youCanUseTheFollowingVariables","shippingNumber","invoiceCountryCode","invoicePostcode","deliveryCountryCode","deliveryPostcode","languageCode","name","urlSource","customUrl","map","source","doNotAutoShip","noTrackingInformation","carrierUrl","module","custom_url","JSON","stringify","Code","styled","code","retry","useCallback","useMappedState","state","unableToLoadCarriers","e","preventDefault","faRedoAlt","Promise","all","store","default","updateConfig","updateTranslations","dispatch","render","document","getElementById","ReduxActionTypes","type","action","checkoutApp","combineReducers","devTools","window","__REDUX_DEVTOOLS_EXTENSION__","createStore","carriersApp","create","transformResponse","res","parse","replace","headers"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAEA;AACA;AAQA,IAAMA,kBAAkB,gBAAGC,mDAAI,CAAC;AAAA,SAAM,m0BAAN;AAAA,CAAD,CAA/B;AAQe,SAASC,aAAT,CAAuBC,KAAvB,EAAwD;AAAA,kBACrCC,uDAAQ,CAAkCC,SAAlC,CAD6B;AAAA;AAAA,MAC9DC,QAD8D;AAAA,MACpDC,WADoD;;AAAA,mBAEvCH,uDAAQ,CAASC,SAAT,CAF+B;AAAA;AAAA,MAE9DG,OAF8D;AAAA,MAErDC,UAFqD;;AAAA,WAItDC,KAJsD;AAAA;AAAA;;AAAA;AAAA,qEAIrE;AAAA;;AAAA;AAAA;AAAA;AAAA;AACoBC,0BADpB,GACuCR,KADvC,CACUS,MADV,CACoBD,YADpB;AAAA;AAAA;AAAA,qBAG8DE,sDAAK,CAACC,GAAN,CAAUH,YAAV,CAH9D;;AAAA;AAAA;AAAA,uDAGYI,IAHZ;AAAA,yEA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;;;;;;;;;;;;;;;;ACvBA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAEe7D,2GAAK,CAAC+E,MAAN,CAAa;AAC1BC,mBAAiB,EAAE,CAAC,UAAAC,GAAG;AAAA,WAAInC,IAAI,CAACoC,KAAL,CAAWD,GAAG,CAACE,OAAJ,CAAY,WAAZ,EAAyB,EAAzB,EAA6BA,OAA7B,CAAqC,cAArC,EAAqD,EAArD,CAAX,CAAJ;AAAA,GAAJ,CADO;AAE1BC,SAAO,EAAE;AACP,wBAAoB,gBADb;AAEP,oBAAgB,kBAFT;AAGP,cAAU;AAHH;AAFiB,CAAb,CAAf,E","file":"carrierconfig.min.js","sourcesContent":["/**\n * Mollie https://www.mollie.nl\n *\n * @author Mollie B.V. \n * @copyright Mollie B.V.\n * @link https://github.com/mollie/PrestaShop\n * @license https://github.com/mollie/PrestaShop/blob/master/LICENSE.md\n * @codingStandardsIgnoreStart\n */\nimport React, { ReactElement, Suspense, useEffect, useState, lazy } from 'react';\nimport cx from 'classnames';\nimport { cloneDeep, find, forEach, isEmpty } from 'lodash';\n\nimport axios from '@shared/axios';\nimport LoadingDots from '@shared/components/LoadingDots';\nimport {\n IMollieCarrierConfig,\n IMollieCarrierConfigItem,\n IMollieCarrierConfigItems,\n ITranslations,\n} from '@shared/globals';\n\nconst ConfigCarrierError = lazy(() => import(/* webpackChunkName: \"carrierconfig\" */ '@carrierconfig/components/CarrierConfigError'));\n\ninterface IProps {\n config: IMollieCarrierConfig;\n translations: ITranslations;\n target: string;\n}\n\nexport default function CarrierConfig(props: IProps): ReactElement<{}> {\n const [carriers, setCarriers] = useState>(undefined);\n const [message, setMessage] = useState(undefined);\n\n async function _init(): Promise {\n const { config: { ajaxEndpoint } } = props;\n try {\n const { data: { carriers } = { carriers: null } } = await axios.get(ajaxEndpoint);\n setCarriers(carriers);\n } catch (e) {\n console.error(e);\n setCarriers(null);\n setMessage((e && e instanceof Error) ? e.message : 'Check the browser console for errors');\n }\n }\n\n function _carrierConfig(): IMollieCarrierConfigItems {\n const carrierConfig: IMollieCarrierConfigItems = {};\n forEach(carriers, (carrier: IMollieCarrierConfigItem) => {\n carrierConfig[carrier.id_carrier] = carrier;\n });\n\n return carrierConfig;\n }\n\n function _updateCarrierConfig(id: string, key: string, value: string|null): void {\n const newCarriers = cloneDeep(carriers);\n const config = find(newCarriers, (item: IMollieCarrierConfigItem) => item.id_carrier === id);\n if (typeof config === 'undefined') {\n return;\n }\n config[key] = value;\n\n setCarriers(newCarriers);\n }\n\n useEffect(() => {\n _init().then();\n }, []);\n\n const { translations, target, config: { legacy } } = props;\n\n if (typeof carriers === 'undefined') {\n return ;\n }\n\n if (!Array.isArray(carriers) || (Array.isArray(carriers) && isEmpty(carriers))) {\n return (\n \n \n \n );\n }\n\n return (\n <>\n
\n {translations.hereYouCanConfigureCarriers}\n
{translations.youCanUseTheFollowingVariables}\n
    \n
  • @ : {translations.shippingNumber}
  • \n
  • %%shipping_number%% : {translations.shippingNumber}
  • \n
  • %%invoice.country_iso%%: {translations.invoiceCountryCode}
  • \n
  • %%invoice.postcode%% : {translations.invoicePostcode}
  • \n
  • %%delivery.country_iso%%: {translations.deliveryCountryCode}
  • \n
  • %%delivery.postcode%% : {translations.deliveryPostcode}
  • \n
  • %%lang_iso%% : {translations.languageCode}
  • \n
\n
\n \n \n \n \n \n \n \n \n \n {carriers.map((carrier) => (\n \n \n \n \n \n ))}\n \n
{translations.name}{translations.urlSource}{translations.customUrl}
\n {carrier.name}\n \n _updateCarrierConfig(carrier.id_carrier, 'source', value)}\n >\n \n \n \n \n {carrier.module && }\n \n \n _updateCarrierConfig(carrier.id_carrier, 'custom_url', value)}\n />\n
\n \n \n );\n}\n","/**\n * Mollie https://www.mollie.nl\n *\n * @author Mollie B.V. \n * @copyright Mollie B.V.\n * @link https://github.com/mollie/PrestaShop\n * @license https://github.com/mollie/PrestaShop/blob/master/LICENSE.md\n * @codingStandardsIgnoreStart\n */\nimport React, { ReactElement, useCallback } from 'react';\nimport cx from 'classnames';\nimport { faRedoAlt } from '@fortawesome/free-solid-svg-icons';\nimport { FontAwesomeIcon } from '@fortawesome/react-fontawesome';\nimport styled from 'styled-components';\n\nimport { IMollieCarrierConfig, ITranslations } from '@shared/globals';\nimport { useMappedState } from 'redux-react-hook';\n\ninterface IProps {\n retry: Function;\n message?: string;\n}\n\nconst Code = styled.code`\n font-size: 14px!important;\n` as any;\n\nexport default function ConfigCarrierError({ retry, message }: IProps): ReactElement<{}> {\n const { translations, config: { legacy } }: Partial = useCallback(useMappedState((state: IMollieCarriersState): any => ({\n translations: state.translations,\n config: state.config,\n })), []);\n\n return (\n \n {translations.unableToLoadCarriers} \n {message && <>

{translations.error}: {message}

}\n {\n e.preventDefault();\n retry();\n }}\n >\n {!legacy && } {translations.retry}?\n \n
\n );\n}\n","/**\n * Mollie https://www.mollie.nl\n *\n * @author Mollie B.V. \n * @copyright Mollie B.V.\n * @link https://github.com/mollie/PrestaShop\n * @license https://github.com/mollie/PrestaShop/blob/master/LICENSE.md\n * @codingStandardsIgnoreStart\n */\nimport React from 'react';\nimport { StoreContext } from 'redux-react-hook';\nimport { render } from 'react-dom';\n\nimport { IMollieCarrierConfig, ITranslations } from '@shared/globals';\n\nexport default (\n target: string,\n config: IMollieCarrierConfig,\n translations: ITranslations\n) => {\n (async function() {\n const [\n { default: store },\n { updateConfig, updateTranslations },\n { default: CarrierConfig },\n ] = await Promise.all([\n import(/* webpackChunkName: \"carrierconfig\" */ '@carrierconfig/store'),\n import(/* webpackChunkName: \"carrierconfig\" */ '@carrierconfig/store/actions'),\n import(/* webpackChunkName: \"carrierconfig\" */ '@carrierconfig/components/CarrierConfig'),\n ]);\n\n store.dispatch(updateConfig(config));\n store.dispatch(updateTranslations(translations));\n\n return render(\n (\n \n \n \n ),\n document.getElementById(`${target}_container`)\n );\n }());\n};\n","/**\n * Mollie https://www.mollie.nl\n *\n * @author Mollie B.V. \n * @copyright Mollie B.V.\n * @link https://github.com/mollie/PrestaShop\n * @license https://github.com/mollie/PrestaShop/blob/master/LICENSE.md\n * @codingStandardsIgnoreStart\n */\n// Action types\nimport { IMollieCarrierConfig, ITranslations } from '@shared/globals';\n\nexport enum ReduxActionTypes {\n updateTranslations = 'UPDATE_MOLLIE_CARRIER_TRANSLATIONS',\n updateConfig = 'UPDATE_MOLLIE_CARRIER_CONFIG',\n}\n\n// Action creators\nexport interface IUpdateTranslationsAction {\n type: string;\n translations: ITranslations;\n}\n\nexport interface IUpdateCarrierConfigAction {\n type: string;\n config: IMollieCarrierConfig;\n}\n\nexport function updateTranslations(translations: ITranslations): IUpdateTranslationsAction {\n return { type: ReduxActionTypes.updateTranslations, translations };\n}\n\nexport function updateConfig(config: IMollieCarrierConfig): IUpdateCarrierConfigAction {\n return { type: ReduxActionTypes.updateConfig, config };\n}\n","/**\n * Mollie https://www.mollie.nl\n *\n * @author Mollie B.V. \n * @copyright Mollie B.V.\n * @link https://github.com/mollie/PrestaShop\n * @license https://github.com/mollie/PrestaShop/blob/master/LICENSE.md\n * @codingStandardsIgnoreStart\n */\nimport { combineReducers } from 'redux';\n\nimport { IUpdateCarrierConfigAction, IUpdateTranslationsAction, ReduxActionTypes } from '@carrierconfig/store/actions';\nimport { IMollieCarrierConfig, IMollieCarrierConfigItem, ITranslations } from '@shared/globals';\n\ndeclare global {\n interface IMollieCarriersState {\n translations: ITranslations;\n config: IMollieCarrierConfig;\n carriers: Array;\n }\n}\n\nconst translations = (state: any = {}, action: IUpdateTranslationsAction): ITranslations => {\n switch (action.type) {\n case ReduxActionTypes.updateTranslations:\n return action.translations;\n default:\n return state;\n }\n};\n\nconst config = (state: any = {}, action: IUpdateCarrierConfigAction): IMollieCarrierConfig => {\n switch (action.type) {\n case ReduxActionTypes.updateConfig:\n return action.config;\n default:\n return state;\n }\n};\n\nconst checkoutApp = combineReducers({\n translations,\n config,\n});\n\nexport default checkoutApp;\n","/**\n * Mollie https://www.mollie.nl\n *\n * @author Mollie B.V. \n * @copyright Mollie B.V.\n * @link https://github.com/mollie/PrestaShop\n * @license https://github.com/mollie/PrestaShop/blob/master/LICENSE.md\n * @codingStandardsIgnoreStart\n */\nimport { createStore, Store } from 'redux';\n\nimport carriersApp from '@carrierconfig/store/carriers';\n\ndeclare let window: any;\n\nlet store: Store;\nconst devTools = window.__REDUX_DEVTOOLS_EXTENSION__;\n\nstore = createStore(\n carriersApp,\n devTools && devTools(),\n);\n\nexport default store;\n","/**\n * Mollie https://www.mollie.nl\n *\n * @author Mollie B.V. \n * @copyright Mollie B.V.\n * @link https://github.com/mollie/PrestaShop\n * @license https://github.com/mollie/PrestaShop/blob/master/LICENSE.md\n * @codingStandardsIgnoreStart\n */\nimport axios from 'axios';\n\nexport default axios.create({\n transformResponse: [res => JSON.parse(res.replace(/^[^{[]*/mg, '').replace(/([^}\\]]*)$/mg, ''))],\n headers: {\n 'X-Requested-With': 'XMLHttpRequest',\n 'Content-Type': 'application/json',\n 'Accept': 'application/json',\n },\n});\n\n"],"sourceRoot":""} \ No newline at end of file diff --git a/views/js/dist/carrierconfig~transaction.min.js b/views/js/dist/carrierconfig~transaction.min.js deleted file mode 100644 index fb34bb57e..000000000 --- a/views/js/dist/carrierconfig~transaction.min.js +++ /dev/null @@ -1,305 +0,0 @@ -/*! - * - * Mollie https://www.mollie.nl - * @author Mollie B.V. - * @copyright Mollie B.V. - * @link https://github.com/mollie/PrestaShop - * @license https://github.com/mollie/PrestaShop/blob/master/LICENSE.md - * - */ -(window["webpackJsonP_mollie"] = window["webpackJsonP_mollie"] || []).push([["carrierconfig~transaction"],{ - -/***/ "./node_modules/redux-react-hook/dist/index.es.js": -/*!********************************************************!*\ - !*** ./node_modules/redux-react-hook/dist/index.es.js ***! - \********************************************************/ -/*! exports provided: StoreContext, create, useDispatch, useMappedState */ -/***/ (function(module, __webpack_exports__, __webpack_require__) { - -"use strict"; -__webpack_require__.r(__webpack_exports__); -/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "StoreContext", function() { return StoreContext; }); -/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "create", function() { return create; }); -/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "useDispatch", function() { return useDispatch; }); -/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "useMappedState", function() { return useMappedState; }); -/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "./node_modules/react/index.js"); -/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__); - - -/*! ***************************************************************************** -Copyright (c) Microsoft Corporation. All rights reserved. -Licensed under the Apache License, Version 2.0 (the "License"); you may not use -this file except in compliance with the License. You may obtain a copy of the -License at http://www.apache.org/licenses/LICENSE-2.0 - -THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED -WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE, -MERCHANTABLITY OR NON-INFRINGEMENT. - -See the Apache Version 2.0 License for specific language governing permissions -and limitations under the License. -***************************************************************************** */ -/* global Reflect, Promise */ - -var extendStatics = function(d, b) { - extendStatics = Object.setPrototypeOf || - ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) || - function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; }; - return extendStatics(d, b); -}; - -function __extends(d, b) { - extendStatics(d, b); - function __() { this.constructor = d; } - d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); -} - -// Copyright (c) Facebook, Inc. and its affiliates. All Rights Reserved -// From https://github.com/reduxjs/react-redux/blob/3e53ff96ed10f71c21346f08823e503df724db35/src/utils/shallowEqual.js -var hasOwn = Object.prototype.hasOwnProperty; -function is(x, y) { - if (x === y) { - return x !== 0 || y !== 0 || 1 / x === 1 / y; - } - else { - return x !== x && y !== y; - } -} -function shallowEqual(objA, objB) { - if (is(objA, objB)) { - return true; - } - if (typeof objA !== 'object' || - objA === null || - typeof objB !== 'object' || - objB === null) { - return false; - } - var keysA = Object.keys(objA); - var keysB = Object.keys(objB); - if (keysA.length !== keysB.length) { - return false; - } - // tslint:disable-next-line:prefer-for-of - for (var i = 0; i < keysA.length; i++) { - if (!hasOwn.call(objB, keysA[i]) || !is(objA[keysA[i]], objB[keysA[i]])) { - return false; - } - } - return true; -} - -// Copyright (c) Facebook, Inc. and its affiliates. All Rights Reserved -// React currently throws a warning when using useLayoutEffect on the server. -// To get around it, we can conditionally useEffect on the server (no-op) and -// useLayoutEffect in the browser. -var useIsomorphicLayoutEffect = typeof window !== 'undefined' ? react__WEBPACK_IMPORTED_MODULE_0__["useLayoutEffect"] : react__WEBPACK_IMPORTED_MODULE_0__["useEffect"]; -var MissingProviderError = /** @class */ (function (_super) { - __extends(MissingProviderError, _super); - function MissingProviderError() { - return _super.call(this, 'redux-react-hook requires your Redux store to be passed through ' + - 'context via the ') || this; - } - return MissingProviderError; -}(Error)); -function memoizeSingleArg(fn) { - var value; - var prevArg; - return function (arg) { - if (prevArg !== arg) { - prevArg = arg; - value = fn(arg); - } - return value; - }; -} -/** - * To use redux-react-hook with stronger type safety, or to use with multiple - * stores in the same app, create() your own instance and re-export the returned - * functions. - */ -function create() { - var StoreContext = Object(react__WEBPACK_IMPORTED_MODULE_0__["createContext"])(null); - /** - * Your passed in mapState function should be memoized with useCallback to avoid - * resubscribing every render. If you don't use other props in mapState, pass - * an empty array [] as the dependency list so the callback isn't recreated - * every render. - * - * const todo = useMappedState(useCallback( - * state => state.todos.get(id), - * [id], - * )); - */ - function useMappedState(mapState) { - var store = Object(react__WEBPACK_IMPORTED_MODULE_0__["useContext"])(StoreContext); - if (!store) { - throw new MissingProviderError(); - } - // We don't keep the derived state but call mapState on every render with current state. - // This approach guarantees that useMappedState returns up-to-date derived state. - // Since mapState can be expensive and must be a pure function of state we memoize it. - var memoizedMapState = Object(react__WEBPACK_IMPORTED_MODULE_0__["useMemo"])(function () { return memoizeSingleArg(mapState); }, [ - mapState, - ]); - var state = store.getState(); - var derivedState = memoizedMapState(state); - // Since we don't keep the derived state we still need to trigger - // an update when derived state changes. - var _a = Object(react__WEBPACK_IMPORTED_MODULE_0__["useState"])(0), forceUpdate = _a[1]; - // Keep previously commited derived state in a ref. Compare it to the new - // one when an action is dispatched and call forceUpdate if they are different. - var lastStateRef = Object(react__WEBPACK_IMPORTED_MODULE_0__["useRef"])(derivedState); - var memoizedMapStateRef = Object(react__WEBPACK_IMPORTED_MODULE_0__["useRef"])(memoizedMapState); - // We use useLayoutEffect to render once if we have multiple useMappedState. - // We need to update lastStateRef synchronously after rendering component, - // With useEffect we would have: - // 1) dispatch action - // 2) call subscription cb in useMappedState1, call forceUpdate - // 3) rerender component - // 4) call useMappedState1 and useMappedState2 code - // 5) calc new derivedState in useMappedState2, schedule updating lastStateRef, return new state, render component - // 6) call subscription cb in useMappedState2, check if lastStateRef !== newDerivedState, call forceUpdate, rerender. - // 7) update lastStateRef - it's too late, we already made one unnecessary render - useIsomorphicLayoutEffect(function () { - lastStateRef.current = derivedState; - memoizedMapStateRef.current = memoizedMapState; - }); - useIsomorphicLayoutEffect(function () { - var didUnsubscribe = false; - // Run the mapState callback and if the result has changed, make the - // component re-render with the new state. - var checkForUpdates = function () { - if (didUnsubscribe) { - // Don't run stale listeners. - // Redux doesn't guarantee unsubscriptions happen until next dispatch. - return; - } - var newDerivedState = memoizedMapStateRef.current(store.getState()); - if (!shallowEqual(newDerivedState, lastStateRef.current)) { - forceUpdate(increment); - } - }; - // Pull data from the store after first render in case the store has - // changed since we began. - checkForUpdates(); - // Subscribe to the store to be notified of subsequent changes. - var unsubscribe = store.subscribe(checkForUpdates); - // The return value of useEffect will be called when unmounting, so - // we use it to unsubscribe from the store. - return function () { - didUnsubscribe = true; - unsubscribe(); - }; - }, [store]); - return derivedState; - } - function useDispatch() { - var store = Object(react__WEBPACK_IMPORTED_MODULE_0__["useContext"])(StoreContext); - if (!store) { - throw new MissingProviderError(); - } - return store.dispatch; - } - return { - StoreContext: StoreContext, - useDispatch: useDispatch, - useMappedState: useMappedState, - }; -} -function increment(x) { - return x + 1; -} - -// Copyright (c) Facebook, Inc. and its affiliates. All Rights Reserved -var _a; -var StoreContext = (_a = create(), _a.StoreContext), useDispatch = _a.useDispatch, useMappedState = _a.useMappedState; - - -//# sourceMappingURL=index.es.js.map - - -/***/ }), - -/***/ "./src/shared/components/LoadingDots.tsx": -/*!***********************************************!*\ - !*** ./src/shared/components/LoadingDots.tsx ***! - \***********************************************/ -/*! exports provided: default */ -/***/ (function(module, __webpack_exports__, __webpack_require__) { - -"use strict"; -__webpack_require__.r(__webpack_exports__); -/* harmony import */ var core_js_modules_es6_object_freeze__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! core-js/modules/es6.object.freeze */ "./node_modules/core-js/modules/es6.object.freeze.js"); -/* harmony import */ var core_js_modules_es6_object_freeze__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es6_object_freeze__WEBPACK_IMPORTED_MODULE_0__); -/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react */ "./node_modules/react/index.js"); -/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_1__); -/* harmony import */ var styled_components__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! styled-components */ "./node_modules/styled-components/dist/styled-components.browser.esm.js"); - - -function _templateObject3() { - var data = _taggedTemplateLiteral(["\n background-color: black;\n border-radius: 50%;\n width: 10px;\n height: 10px;\n margin: 0 5px;\n opacity: 0.7;\n /* Animation */\n animation: ", " 0.5s linear infinite;\n animation-delay: ", ";\n"]); - - _templateObject3 = function _templateObject3() { - return data; - }; - - return data; -} - -function _templateObject2() { - var data = _taggedTemplateLiteral(["\n display: flex;\n align-items: flex-end;\n min-height: 30px;\n"]); - - _templateObject2 = function _templateObject2() { - return data; - }; - - return data; -} - -function _templateObject() { - var data = _taggedTemplateLiteral(["\n 0% { margin-bottom: 0; }\n 50% { margin-bottom: 15px }\n 100% { margin-bottom: 0 }\n"]); - - _templateObject = function _templateObject() { - return data; - }; - - return data; -} - -function _taggedTemplateLiteral(strings, raw) { if (!raw) { raw = strings.slice(0); } return Object.freeze(Object.defineProperties(strings, { raw: { value: Object.freeze(raw) } })); } - -/** - * Mollie https://www.mollie.nl - * - * @author Mollie B.V. - * @copyright Mollie B.V. - * @link https://github.com/mollie/PrestaShop - * @license https://github.com/mollie/PrestaShop/blob/master/LICENSE.md - * @codingStandardsIgnoreStart - */ - - -var BounceAnimation = Object(styled_components__WEBPACK_IMPORTED_MODULE_2__["keyframes"])(_templateObject()); -var DotWrapper = styled_components__WEBPACK_IMPORTED_MODULE_2__["default"].div(_templateObject2()); -var Dot = styled_components__WEBPACK_IMPORTED_MODULE_2__["default"].div(_templateObject3(), BounceAnimation, function (props) { - return props.delay; -}); - -function LoadingDots() { - return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(DotWrapper, null, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(Dot, { - delay: "0s" - }), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(Dot, { - delay: ".1s" - }), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(Dot, { - delay: ".2s" - })); -} - -/* harmony default export */ __webpack_exports__["default"] = (LoadingDots); - -/***/ }) - -}]); -//# sourceMappingURL=carrierconfig~transaction.min.js.map \ No newline at end of file diff --git a/views/js/dist/carrierconfig~transaction.min.js.map b/views/js/dist/carrierconfig~transaction.min.js.map deleted file mode 100644 index 401834a2c..000000000 --- a/views/js/dist/carrierconfig~transaction.min.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"sources":["webpack://MollieModule.[name]/./node_modules/redux-react-hook/dist/index.es.js","webpack://MollieModule.[name]/./src/shared/components/LoadingDots.tsx"],"names":["BounceAnimation","keyframes","DotWrapper","styled","div","Dot","props","delay","LoadingDots"],"mappings":";;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAyG;;AAEzG;AACA;AACA,+DAA+D;AAC/D;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA,UAAU,gBAAgB,sCAAsC,iBAAiB,EAAE;AACnF,yBAAyB,uDAAuD;AAChF;AACA;;AAEA;AACA;AACA,mBAAmB,sBAAsB;AACzC;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,mBAAmB,kBAAkB;AACrC;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA,gEAAgE,qDAAe,GAAG,+CAAS;AAC3F;AACA;AACA;AACA;AACA;AACA;AACA;AACA,CAAC;AACD;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,uBAAuB,2DAAa;AACpC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,oBAAoB,wDAAU;AAC9B;AACA;AACA;AACA;AACA;AACA;AACA,+BAA+B,qDAAO,cAAc,mCAAmC,EAAE;AACzF;AACA;AACA;AACA;AACA;AACA;AACA,iBAAiB,sDAAQ;AACzB;AACA;AACA,2BAA2B,oDAAM;AACjC,kCAAkC,oDAAM;AACxC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,SAAS;AACT;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,SAAS;AACT;AACA;AACA;AACA,oBAAoB,wDAAU;AAC9B;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAE6D;AAC7D;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;ACjMA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAEA,IAAMA,eAAe,GAAGC,mEAAH,mBAArB;AAMA,IAAMC,UAAU,GAAGC,yDAAM,CAACC,GAAV,oBAAhB;AAUA,IAAMC,GAAG,GAAGF,yDAAM,CAACC,GAAV,qBAQMJ,eARN,EASY,UAACM,KAAD;AAAA,SAAsBA,KAAK,CAACC,KAA5B;AAAA,CATZ,CAAT;;AAYA,SAASC,WAAT,GAAyC;AACvC,sBACE,2DAAC,UAAD,qBACE,2DAAC,GAAD;AAAK,SAAK,EAAC;AAAX,IADF,eAEE,2DAAC,GAAD;AAAK,SAAK,EAAC;AAAX,IAFF,eAGE,2DAAC,GAAD;AAAK,SAAK,EAAC;AAAX,IAHF,CADF;AAOD;;AAEcA,0EAAf,E","file":"carrierconfig~transaction.min.js","sourcesContent":["import { createContext, useContext, useMemo, useState, useRef, useLayoutEffect, useEffect } from 'react';\n\n/*! *****************************************************************************\r\nCopyright (c) Microsoft Corporation. All rights reserved.\r\nLicensed under the Apache License, Version 2.0 (the \"License\"); you may not use\r\nthis file except in compliance with the License. You may obtain a copy of the\r\nLicense at http://www.apache.org/licenses/LICENSE-2.0\r\n\r\nTHIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\r\nKIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED\r\nWARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,\r\nMERCHANTABLITY OR NON-INFRINGEMENT.\r\n\r\nSee the Apache Version 2.0 License for specific language governing permissions\r\nand limitations under the License.\r\n***************************************************************************** */\r\n/* global Reflect, Promise */\r\n\r\nvar extendStatics = function(d, b) {\r\n extendStatics = Object.setPrototypeOf ||\r\n ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||\r\n function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };\r\n return extendStatics(d, b);\r\n};\r\n\r\nfunction __extends(d, b) {\r\n extendStatics(d, b);\r\n function __() { this.constructor = d; }\r\n d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\r\n}\n\n// Copyright (c) Facebook, Inc. and its affiliates. All Rights Reserved\r\n// From https://github.com/reduxjs/react-redux/blob/3e53ff96ed10f71c21346f08823e503df724db35/src/utils/shallowEqual.js\r\nvar hasOwn = Object.prototype.hasOwnProperty;\r\nfunction is(x, y) {\r\n if (x === y) {\r\n return x !== 0 || y !== 0 || 1 / x === 1 / y;\r\n }\r\n else {\r\n return x !== x && y !== y;\r\n }\r\n}\r\nfunction shallowEqual(objA, objB) {\r\n if (is(objA, objB)) {\r\n return true;\r\n }\r\n if (typeof objA !== 'object' ||\r\n objA === null ||\r\n typeof objB !== 'object' ||\r\n objB === null) {\r\n return false;\r\n }\r\n var keysA = Object.keys(objA);\r\n var keysB = Object.keys(objB);\r\n if (keysA.length !== keysB.length) {\r\n return false;\r\n }\r\n // tslint:disable-next-line:prefer-for-of\r\n for (var i = 0; i < keysA.length; i++) {\r\n if (!hasOwn.call(objB, keysA[i]) || !is(objA[keysA[i]], objB[keysA[i]])) {\r\n return false;\r\n }\r\n }\r\n return true;\r\n}\n\n// Copyright (c) Facebook, Inc. and its affiliates. All Rights Reserved\r\n// React currently throws a warning when using useLayoutEffect on the server.\r\n// To get around it, we can conditionally useEffect on the server (no-op) and\r\n// useLayoutEffect in the browser.\r\nvar useIsomorphicLayoutEffect = typeof window !== 'undefined' ? useLayoutEffect : useEffect;\r\nvar MissingProviderError = /** @class */ (function (_super) {\r\n __extends(MissingProviderError, _super);\r\n function MissingProviderError() {\r\n return _super.call(this, 'redux-react-hook requires your Redux store to be passed through ' +\r\n 'context via the ') || this;\r\n }\r\n return MissingProviderError;\r\n}(Error));\r\nfunction memoizeSingleArg(fn) {\r\n var value;\r\n var prevArg;\r\n return function (arg) {\r\n if (prevArg !== arg) {\r\n prevArg = arg;\r\n value = fn(arg);\r\n }\r\n return value;\r\n };\r\n}\r\n/**\r\n * To use redux-react-hook with stronger type safety, or to use with multiple\r\n * stores in the same app, create() your own instance and re-export the returned\r\n * functions.\r\n */\r\nfunction create() {\r\n var StoreContext = createContext(null);\r\n /**\r\n * Your passed in mapState function should be memoized with useCallback to avoid\r\n * resubscribing every render. If you don't use other props in mapState, pass\r\n * an empty array [] as the dependency list so the callback isn't recreated\r\n * every render.\r\n *\r\n * const todo = useMappedState(useCallback(\r\n * state => state.todos.get(id),\r\n * [id],\r\n * ));\r\n */\r\n function useMappedState(mapState) {\r\n var store = useContext(StoreContext);\r\n if (!store) {\r\n throw new MissingProviderError();\r\n }\r\n // We don't keep the derived state but call mapState on every render with current state.\r\n // This approach guarantees that useMappedState returns up-to-date derived state.\r\n // Since mapState can be expensive and must be a pure function of state we memoize it.\r\n var memoizedMapState = useMemo(function () { return memoizeSingleArg(mapState); }, [\r\n mapState,\r\n ]);\r\n var state = store.getState();\r\n var derivedState = memoizedMapState(state);\r\n // Since we don't keep the derived state we still need to trigger\r\n // an update when derived state changes.\r\n var _a = useState(0), forceUpdate = _a[1];\r\n // Keep previously commited derived state in a ref. Compare it to the new\r\n // one when an action is dispatched and call forceUpdate if they are different.\r\n var lastStateRef = useRef(derivedState);\r\n var memoizedMapStateRef = useRef(memoizedMapState);\r\n // We use useLayoutEffect to render once if we have multiple useMappedState.\r\n // We need to update lastStateRef synchronously after rendering component,\r\n // With useEffect we would have:\r\n // 1) dispatch action\r\n // 2) call subscription cb in useMappedState1, call forceUpdate\r\n // 3) rerender component\r\n // 4) call useMappedState1 and useMappedState2 code\r\n // 5) calc new derivedState in useMappedState2, schedule updating lastStateRef, return new state, render component\r\n // 6) call subscription cb in useMappedState2, check if lastStateRef !== newDerivedState, call forceUpdate, rerender.\r\n // 7) update lastStateRef - it's too late, we already made one unnecessary render\r\n useIsomorphicLayoutEffect(function () {\r\n lastStateRef.current = derivedState;\r\n memoizedMapStateRef.current = memoizedMapState;\r\n });\r\n useIsomorphicLayoutEffect(function () {\r\n var didUnsubscribe = false;\r\n // Run the mapState callback and if the result has changed, make the\r\n // component re-render with the new state.\r\n var checkForUpdates = function () {\r\n if (didUnsubscribe) {\r\n // Don't run stale listeners.\r\n // Redux doesn't guarantee unsubscriptions happen until next dispatch.\r\n return;\r\n }\r\n var newDerivedState = memoizedMapStateRef.current(store.getState());\r\n if (!shallowEqual(newDerivedState, lastStateRef.current)) {\r\n forceUpdate(increment);\r\n }\r\n };\r\n // Pull data from the store after first render in case the store has\r\n // changed since we began.\r\n checkForUpdates();\r\n // Subscribe to the store to be notified of subsequent changes.\r\n var unsubscribe = store.subscribe(checkForUpdates);\r\n // The return value of useEffect will be called when unmounting, so\r\n // we use it to unsubscribe from the store.\r\n return function () {\r\n didUnsubscribe = true;\r\n unsubscribe();\r\n };\r\n }, [store]);\r\n return derivedState;\r\n }\r\n function useDispatch() {\r\n var store = useContext(StoreContext);\r\n if (!store) {\r\n throw new MissingProviderError();\r\n }\r\n return store.dispatch;\r\n }\r\n return {\r\n StoreContext: StoreContext,\r\n useDispatch: useDispatch,\r\n useMappedState: useMappedState,\r\n };\r\n}\r\nfunction increment(x) {\r\n return x + 1;\r\n}\n\n// Copyright (c) Facebook, Inc. and its affiliates. All Rights Reserved\r\nvar _a;\r\nvar StoreContext = (_a = create(), _a.StoreContext), useDispatch = _a.useDispatch, useMappedState = _a.useMappedState;\n\nexport { StoreContext, create, useDispatch, useMappedState };\n//# sourceMappingURL=index.es.js.map\n","/**\n * Mollie https://www.mollie.nl\n *\n * @author Mollie B.V. \n * @copyright Mollie B.V.\n * @link https://github.com/mollie/PrestaShop\n * @license https://github.com/mollie/PrestaShop/blob/master/LICENSE.md\n * @codingStandardsIgnoreStart\n */\nimport React, { ReactElement } from 'react';\nimport styled, { keyframes } from 'styled-components';\n\nconst BounceAnimation = keyframes`\n 0% { margin-bottom: 0; }\n 50% { margin-bottom: 15px }\n 100% { margin-bottom: 0 }\n` as any;\n\nconst DotWrapper = styled.div`\n display: flex;\n align-items: flex-end;\n min-height: 30px;\n` as any;\n\ninterface IDotProps {\n delay: string;\n}\n\nconst Dot = styled.div`\n background-color: black;\n border-radius: 50%;\n width: 10px;\n height: 10px;\n margin: 0 5px;\n opacity: 0.7;\n /* Animation */\n animation: ${BounceAnimation} 0.5s linear infinite;\n animation-delay: ${(props: IDotProps) => props.delay};\n` as any;\n\nfunction LoadingDots(): ReactElement<{}> {\n return (\n \n \n \n \n \n );\n}\n\nexport default LoadingDots;\n"],"sourceRoot":""} \ No newline at end of file diff --git a/views/js/dist/index.php b/views/js/dist/index.php deleted file mode 100644 index b7d7f433d..000000000 --- a/views/js/dist/index.php +++ /dev/null @@ -1,21 +0,0 @@ - - * @copyright Copyright (c) permanent, INVERTUS, UAB - * @license Addons PrestaShop license limitation - * - * @see /LICENSE - * - * International Registered Trademark & Property of INVERTUS, UAB - */ -header('Expires: Mon, 26 Jul 1997 05:00:00 GMT'); -header('Last-Modified: ' . gmdate('D, d M Y H:i:s') . ' GMT'); - -header('Cache-Control: no-store, no-cache, must-revalidate'); -header('Cache-Control: post-check=0, pre-check=0', false); -header('Pragma: no-cache'); - -header('Location: ../'); -exit; diff --git a/views/js/dist/methodconfig.min.js b/views/js/dist/methodconfig.min.js deleted file mode 100644 index 1f81bd1d3..000000000 --- a/views/js/dist/methodconfig.min.js +++ /dev/null @@ -1,25 +0,0 @@ -/*! - * - * Mollie https://www.mollie.nl - * @author Mollie B.V. - * @copyright Mollie B.V. - * @link https://github.com/mollie/PrestaShop - * @license https://github.com/mollie/PrestaShop/blob/master/LICENSE.md - * - */ -(window.webpackJsonP_mollie=window.webpackJsonP_mollie||[]).push([["methodconfig"],{100:function(e,n,t){var r=t(3),a=t(10),o=t(1)("match");e.exports=function(e){var n;return r(e)&&(void 0!==(n=e[o])?!!n:"RegExp"==a(e))}},102:function(e,n,t){"use strict";(function(e,r){ -/*! - * Font Awesome Free 5.15.1 by @fontawesome - https://fontawesome.com - * License - https://fontawesome.com/license/free (Icons: CC BY 4.0, Fonts: SIL OFL 1.1, Code: MIT License) - */ -function a(e){return(a="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function o(e,n){for(var t=0;t-1;a--){var o=t[a],i=(o.tagName||"").toUpperCase();["STYLE","LINK"].indexOf(i)>-1&&(r=o)}return g.head.insertBefore(n,r),e}}function X(){for(var e=12,n="";e-- >0;)n+="0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ"[62*Math.random()|0];return n}function G(e){return"".concat(e).replace(/&/g,"&").replace(/"/g,""").replace(/'/g,"'").replace(//g,">")}function $(e){return Object.keys(e||{}).reduce((function(n,t){return n+"".concat(t,": ").concat(e[t],";")}),"")}function V(e){return e.size!==Y.size||e.x!==Y.x||e.y!==Y.y||e.rotate!==Y.rotate||e.flipX||e.flipY}function J(e){var n=e.transform,t=e.containerWidth,r=e.iconWidth,a={transform:"translate(".concat(t/2," 256)")},o="translate(".concat(32*n.x,", ").concat(32*n.y,") "),i="scale(".concat(n.size/16*(n.flipX?-1:1),", ").concat(n.size/16*(n.flipY?-1:1),") "),l="rotate(".concat(n.rotate," 0 0)");return{outer:a,inner:{transform:"".concat(o," ").concat(i," ").concat(l)},path:{transform:"translate(".concat(r/2*-1," -256)")}}}var Q={x:0,y:0,width:"100%",height:"100%"};function Z(e){var n=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];return e.attributes&&(e.attributes.fill||n)&&(e.attributes.fill="black"),e}function ee(e){var n=e.icons,t=n.main,r=n.mask,a=e.prefix,o=e.iconName,i=e.transform,s=e.symbol,c=e.title,f=e.maskId,u=e.titleId,d=e.extra,p=e.watchable,h=void 0!==p&&p,m=r.found?r:t,g=m.width,b=m.height,y="fak"===a,v=y?"":"fa-w-".concat(Math.ceil(g/b*16)),w=[E.replacementClass,o?"".concat(E.familyPrefix,"-").concat(o):"",v].filter((function(e){return-1===d.classes.indexOf(e)})).filter((function(e){return""!==e||!!e})).concat(d.classes).join(" "),x={children:[],attributes:l({},d.attributes,{"data-prefix":a,"data-icon":o,class:w,role:d.attributes.role||"img",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 ".concat(g," ").concat(b)})},O=y&&!~d.classes.indexOf("fa-fw")?{width:"".concat(g/b*16*.0625,"em")}:{};h&&(x.attributes["data-fa-i2svg"]=""),c&&x.children.push({tag:"title",attributes:{id:x.attributes["aria-labelledby"]||"title-".concat(u||X())},children:[c]});var k=l({},x,{prefix:a,iconName:o,main:t,mask:r,maskId:f,transform:i,symbol:s,styles:l({},O,d.styles)}),S=r.found&&t.found?function(e){var n,t=e.children,r=e.attributes,a=e.main,o=e.mask,i=e.maskId,s=e.transform,c=a.width,f=a.icon,u=o.width,d=o.icon,p=J({transform:s,containerWidth:u,iconWidth:c}),h={tag:"rect",attributes:l({},Q,{fill:"white"})},m=f.children?{children:f.children.map(Z)}:{},g={tag:"g",attributes:l({},p.inner),children:[Z(l({tag:f.tag,attributes:l({},f.attributes,p.path)},m))]},b={tag:"g",attributes:l({},p.outer),children:[g]},y="mask-".concat(i||X()),v="clip-".concat(i||X()),w={tag:"mask",attributes:l({},Q,{id:y,maskUnits:"userSpaceOnUse",maskContentUnits:"userSpaceOnUse"}),children:[h,b]},x={tag:"defs",children:[{tag:"clipPath",attributes:{id:v},children:(n=d,"g"===n.tag?n.children:[n])},w]};return t.push(x,{tag:"rect",attributes:l({fill:"currentColor","clip-path":"url(#".concat(v,")"),mask:"url(#".concat(y,")")},Q)}),{children:t,attributes:r}}(k):function(e){var n=e.children,t=e.attributes,r=e.main,a=e.transform,o=$(e.styles);if(o.length>0&&(t.style=o),V(a)){var i=J({transform:a,containerWidth:r.width,iconWidth:r.width});n.push({tag:"g",attributes:l({},i.outer),children:[{tag:"g",attributes:l({},i.inner),children:[{tag:r.icon.tag,children:r.icon.children,attributes:l({},r.icon.attributes,i.path)}]}]})}else n.push(r.icon);return{children:n,attributes:t}}(k),I=S.children,C=S.attributes;return k.children=I,k.attributes=C,s?function(e){var n=e.prefix,t=e.iconName,r=e.children,a=e.attributes,o=e.symbol;return[{tag:"svg",attributes:{style:"display: none;"},children:[{tag:"symbol",attributes:l({},a,{id:!0===o?"".concat(n,"-").concat(E.familyPrefix,"-").concat(t):o}),children:r}]}]}(k):function(e){var n=e.children,t=e.main,r=e.mask,a=e.attributes,o=e.styles,i=e.transform;if(V(i)&&t.found&&!r.found){var s={x:t.width/t.height/2,y:.5};a.style=$(l({},o,{"transform-origin":"".concat(s.x+i.x/16,"em ").concat(s.y+i.y/16,"em")}))}return[{tag:"svg",attributes:a,children:n}]}(k)}var ne=function(){},te=(E.measurePerformance&&b&&b.mark&&b.measure,function(e,n,t,r){var a,o,i,l=Object.keys(e),s=l.length,c=void 0!==r?function(e,n){return function(t,r,a,o){return e.call(n,t,r,a,o)}}(n,r):n;for(void 0===t?(a=1,i=e[l[0]]):(a=0,i=t);a2&&void 0!==arguments[2]?arguments[2]:{},r=t.skipHooks,a=void 0!==r&&r,o=Object.keys(n).reduce((function(e,t){var r=n[t];return!!r.icon?e[r.iconName]=r.icon:e[t]=r,e}),{});"function"!=typeof I.hooks.addPack||a?I.styles[e]=l({},I.styles[e]||{},o):I.hooks.addPack(e,o),"fas"===e&&re("fa",n)}var ae=I.styles,oe=I.shims,ie=function(){var e=function(e){return te(ae,(function(n,t,r){return n[r]=te(t,e,{}),n}),{})};e((function(e,n,t){return n[3]&&(e[n[3]]=t),e})),e((function(e,n,t){var r=n[2];return e[t]=t,r.forEach((function(n){e[n]=t})),e}));var n="far"in ae;te(oe,(function(e,t){var r=t[0],a=t[1],o=t[2];return"far"!==a||n||(a="fas"),e[r]={prefix:a,iconName:o},e}),{})};ie();I.styles;function le(e,n,t){if(e&&e[n]&&e[n][t])return{prefix:n,iconName:t,icon:e[n][t]}}function se(e){var n=e.tag,t=e.attributes,r=void 0===t?{}:t,a=e.children,o=void 0===a?[]:a;return"string"==typeof e?G(e):"<".concat(n," ").concat(function(e){return Object.keys(e||{}).reduce((function(n,t){return n+"".concat(t,'="').concat(G(e[t]),'" ')}),"").trim()}(r),">").concat(o.map(se).join(""),"")}var ce=function(e){var n={size:16,x:0,y:0,flipX:!1,flipY:!1,rotate:0};return e?e.toLowerCase().split(" ").reduce((function(e,n){var t=n.toLowerCase().split("-"),r=t[0],a=t.slice(1).join("-");if(r&&"h"===a)return e.flipX=!0,e;if(r&&"v"===a)return e.flipY=!0,e;if(a=parseFloat(a),isNaN(a))return e;switch(r){case"grow":e.size=e.size+a;break;case"shrink":e.size=e.size-a;break;case"left":e.x=e.x-a;break;case"right":e.x=e.x+a;break;case"up":e.y=e.y-a;break;case"down":e.y=e.y+a;break;case"rotate":e.rotate=e.rotate+a}return e}),n):n};function fe(e){this.name="MissingIcon",this.message=e||"Icon unavailable",this.stack=(new Error).stack}fe.prototype=Object.create(Error.prototype),fe.prototype.constructor=fe;var ue={fill:"currentColor"},de={attributeType:"XML",repeatCount:"indefinite",dur:"2s"},pe={tag:"path",attributes:l({},ue,{d:"M156.5,447.7l-12.6,29.5c-18.7-9.5-35.9-21.2-51.5-34.9l22.7-22.7C127.6,430.5,141.5,440,156.5,447.7z M40.6,272H8.5 c1.4,21.2,5.4,41.7,11.7,61.1L50,321.2C45.1,305.5,41.8,289,40.6,272z M40.6,240c1.4-18.8,5.2-37,11.1-54.1l-29.5-12.6 C14.7,194.3,10,216.7,8.5,240H40.6z M64.3,156.5c7.8-14.9,17.2-28.8,28.1-41.5L69.7,92.3c-13.7,15.6-25.5,32.8-34.9,51.5 L64.3,156.5z M397,419.6c-13.9,12-29.4,22.3-46.1,30.4l11.9,29.8c20.7-9.9,39.8-22.6,56.9-37.6L397,419.6z M115,92.4 c13.9-12,29.4-22.3,46.1-30.4l-11.9-29.8c-20.7,9.9-39.8,22.6-56.8,37.6L115,92.4z M447.7,355.5c-7.8,14.9-17.2,28.8-28.1,41.5 l22.7,22.7c13.7-15.6,25.5-32.9,34.9-51.5L447.7,355.5z M471.4,272c-1.4,18.8-5.2,37-11.1,54.1l29.5,12.6 c7.5-21.1,12.2-43.5,13.6-66.8H471.4z M321.2,462c-15.7,5-32.2,8.2-49.2,9.4v32.1c21.2-1.4,41.7-5.4,61.1-11.7L321.2,462z M240,471.4c-18.8-1.4-37-5.2-54.1-11.1l-12.6,29.5c21.1,7.5,43.5,12.2,66.8,13.6V471.4z M462,190.8c5,15.7,8.2,32.2,9.4,49.2h32.1 c-1.4-21.2-5.4-41.7-11.7-61.1L462,190.8z M92.4,397c-12-13.9-22.3-29.4-30.4-46.1l-29.8,11.9c9.9,20.7,22.6,39.8,37.6,56.9 L92.4,397z M272,40.6c18.8,1.4,36.9,5.2,54.1,11.1l12.6-29.5C317.7,14.7,295.3,10,272,8.5V40.6z M190.8,50 c15.7-5,32.2-8.2,49.2-9.4V8.5c-21.2,1.4-41.7,5.4-61.1,11.7L190.8,50z M442.3,92.3L419.6,115c12,13.9,22.3,29.4,30.5,46.1 l29.8-11.9C470,128.5,457.3,109.4,442.3,92.3z M397,92.4l22.7-22.7c-15.6-13.7-32.8-25.5-51.5-34.9l-12.6,29.5 C370.4,72.1,384.4,81.5,397,92.4z"})},he=l({},de,{attributeName:"opacity"});l({},ue,{cx:"256",cy:"364",r:"28"}),l({},de,{attributeName:"r",values:"28;14;28;28;14;28;"}),l({},he,{values:"1;0;1;1;0;1;"}),l({},ue,{opacity:"1",d:"M263.7,312h-16c-6.6,0-12-5.4-12-12c0-71,77.4-63.9,77.4-107.8c0-20-17.8-40.2-57.4-40.2c-29.1,0-44.3,9.6-59.2,28.7 c-3.9,5-11.1,6-16.2,2.4l-13.1-9.2c-5.6-3.9-6.9-11.8-2.6-17.2c21.2-27.2,46.4-44.7,91.2-44.7c52.3,0,97.4,29.8,97.4,80.2 c0,67.6-77.4,63.5-77.4,107.8C275.7,306.6,270.3,312,263.7,312z"}),l({},he,{values:"1;0;0;0;0;1;"}),l({},ue,{opacity:"0",d:"M232.5,134.5l7,168c0.3,6.4,5.6,11.5,12,11.5h9c6.4,0,11.7-5.1,12-11.5l7-168c0.3-6.8-5.2-12.5-12-12.5h-23 C237.7,122,232.2,127.7,232.5,134.5z"}),l({},he,{values:"0;0;1;1;0;0;"}),I.styles;function me(e){var n=e[0],t=e[1],r=s(e.slice(4),1)[0];return{found:!0,width:n,height:t,icon:Array.isArray(r)?{tag:"g",attributes:{class:"".concat(E.familyPrefix,"-").concat(x.GROUP)},children:[{tag:"path",attributes:{class:"".concat(E.familyPrefix,"-").concat(x.SECONDARY),fill:"currentColor",d:r[0]}},{tag:"path",attributes:{class:"".concat(E.familyPrefix,"-").concat(x.PRIMARY),fill:"currentColor",d:r[1]}}]}:{tag:"path",attributes:{fill:"currentColor",d:r}}}}I.styles;function ge(){var e="svg-inline--fa",n=E.familyPrefix,t=E.replacementClass,r='svg:not(:root).svg-inline--fa {\n overflow: visible;\n}\n\n.svg-inline--fa {\n display: inline-block;\n font-size: inherit;\n height: 1em;\n overflow: visible;\n vertical-align: -0.125em;\n}\n.svg-inline--fa.fa-lg {\n vertical-align: -0.225em;\n}\n.svg-inline--fa.fa-w-1 {\n width: 0.0625em;\n}\n.svg-inline--fa.fa-w-2 {\n width: 0.125em;\n}\n.svg-inline--fa.fa-w-3 {\n width: 0.1875em;\n}\n.svg-inline--fa.fa-w-4 {\n width: 0.25em;\n}\n.svg-inline--fa.fa-w-5 {\n width: 0.3125em;\n}\n.svg-inline--fa.fa-w-6 {\n width: 0.375em;\n}\n.svg-inline--fa.fa-w-7 {\n width: 0.4375em;\n}\n.svg-inline--fa.fa-w-8 {\n width: 0.5em;\n}\n.svg-inline--fa.fa-w-9 {\n width: 0.5625em;\n}\n.svg-inline--fa.fa-w-10 {\n width: 0.625em;\n}\n.svg-inline--fa.fa-w-11 {\n width: 0.6875em;\n}\n.svg-inline--fa.fa-w-12 {\n width: 0.75em;\n}\n.svg-inline--fa.fa-w-13 {\n width: 0.8125em;\n}\n.svg-inline--fa.fa-w-14 {\n width: 0.875em;\n}\n.svg-inline--fa.fa-w-15 {\n width: 0.9375em;\n}\n.svg-inline--fa.fa-w-16 {\n width: 1em;\n}\n.svg-inline--fa.fa-w-17 {\n width: 1.0625em;\n}\n.svg-inline--fa.fa-w-18 {\n width: 1.125em;\n}\n.svg-inline--fa.fa-w-19 {\n width: 1.1875em;\n}\n.svg-inline--fa.fa-w-20 {\n width: 1.25em;\n}\n.svg-inline--fa.fa-pull-left {\n margin-right: 0.3em;\n width: auto;\n}\n.svg-inline--fa.fa-pull-right {\n margin-left: 0.3em;\n width: auto;\n}\n.svg-inline--fa.fa-border {\n height: 1.5em;\n}\n.svg-inline--fa.fa-li {\n width: 2em;\n}\n.svg-inline--fa.fa-fw {\n width: 1.25em;\n}\n\n.fa-layers svg.svg-inline--fa {\n bottom: 0;\n left: 0;\n margin: auto;\n position: absolute;\n right: 0;\n top: 0;\n}\n\n.fa-layers {\n display: inline-block;\n height: 1em;\n position: relative;\n text-align: center;\n vertical-align: -0.125em;\n width: 1em;\n}\n.fa-layers svg.svg-inline--fa {\n -webkit-transform-origin: center center;\n transform-origin: center center;\n}\n\n.fa-layers-counter, .fa-layers-text {\n display: inline-block;\n position: absolute;\n text-align: center;\n}\n\n.fa-layers-text {\n left: 50%;\n top: 50%;\n -webkit-transform: translate(-50%, -50%);\n transform: translate(-50%, -50%);\n -webkit-transform-origin: center center;\n transform-origin: center center;\n}\n\n.fa-layers-counter {\n background-color: #ff253a;\n border-radius: 1em;\n -webkit-box-sizing: border-box;\n box-sizing: border-box;\n color: #fff;\n height: 1.5em;\n line-height: 1;\n max-width: 5em;\n min-width: 1.5em;\n overflow: hidden;\n padding: 0.25em;\n right: 0;\n text-overflow: ellipsis;\n top: 0;\n -webkit-transform: scale(0.25);\n transform: scale(0.25);\n -webkit-transform-origin: top right;\n transform-origin: top right;\n}\n\n.fa-layers-bottom-right {\n bottom: 0;\n right: 0;\n top: auto;\n -webkit-transform: scale(0.25);\n transform: scale(0.25);\n -webkit-transform-origin: bottom right;\n transform-origin: bottom right;\n}\n\n.fa-layers-bottom-left {\n bottom: 0;\n left: 0;\n right: auto;\n top: auto;\n -webkit-transform: scale(0.25);\n transform: scale(0.25);\n -webkit-transform-origin: bottom left;\n transform-origin: bottom left;\n}\n\n.fa-layers-top-right {\n right: 0;\n top: 0;\n -webkit-transform: scale(0.25);\n transform: scale(0.25);\n -webkit-transform-origin: top right;\n transform-origin: top right;\n}\n\n.fa-layers-top-left {\n left: 0;\n right: auto;\n top: 0;\n -webkit-transform: scale(0.25);\n transform: scale(0.25);\n -webkit-transform-origin: top left;\n transform-origin: top left;\n}\n\n.fa-lg {\n font-size: 1.3333333333em;\n line-height: 0.75em;\n vertical-align: -0.0667em;\n}\n\n.fa-xs {\n font-size: 0.75em;\n}\n\n.fa-sm {\n font-size: 0.875em;\n}\n\n.fa-1x {\n font-size: 1em;\n}\n\n.fa-2x {\n font-size: 2em;\n}\n\n.fa-3x {\n font-size: 3em;\n}\n\n.fa-4x {\n font-size: 4em;\n}\n\n.fa-5x {\n font-size: 5em;\n}\n\n.fa-6x {\n font-size: 6em;\n}\n\n.fa-7x {\n font-size: 7em;\n}\n\n.fa-8x {\n font-size: 8em;\n}\n\n.fa-9x {\n font-size: 9em;\n}\n\n.fa-10x {\n font-size: 10em;\n}\n\n.fa-fw {\n text-align: center;\n width: 1.25em;\n}\n\n.fa-ul {\n list-style-type: none;\n margin-left: 2.5em;\n padding-left: 0;\n}\n.fa-ul > li {\n position: relative;\n}\n\n.fa-li {\n left: -2em;\n position: absolute;\n text-align: center;\n width: 2em;\n line-height: inherit;\n}\n\n.fa-border {\n border: solid 0.08em #eee;\n border-radius: 0.1em;\n padding: 0.2em 0.25em 0.15em;\n}\n\n.fa-pull-left {\n float: left;\n}\n\n.fa-pull-right {\n float: right;\n}\n\n.fa.fa-pull-left,\n.fas.fa-pull-left,\n.far.fa-pull-left,\n.fal.fa-pull-left,\n.fab.fa-pull-left {\n margin-right: 0.3em;\n}\n.fa.fa-pull-right,\n.fas.fa-pull-right,\n.far.fa-pull-right,\n.fal.fa-pull-right,\n.fab.fa-pull-right {\n margin-left: 0.3em;\n}\n\n.fa-spin {\n -webkit-animation: fa-spin 2s infinite linear;\n animation: fa-spin 2s infinite linear;\n}\n\n.fa-pulse {\n -webkit-animation: fa-spin 1s infinite steps(8);\n animation: fa-spin 1s infinite steps(8);\n}\n\n@-webkit-keyframes fa-spin {\n 0% {\n -webkit-transform: rotate(0deg);\n transform: rotate(0deg);\n }\n 100% {\n -webkit-transform: rotate(360deg);\n transform: rotate(360deg);\n }\n}\n\n@keyframes fa-spin {\n 0% {\n -webkit-transform: rotate(0deg);\n transform: rotate(0deg);\n }\n 100% {\n -webkit-transform: rotate(360deg);\n transform: rotate(360deg);\n }\n}\n.fa-rotate-90 {\n -ms-filter: "progid:DXImageTransform.Microsoft.BasicImage(rotation=1)";\n -webkit-transform: rotate(90deg);\n transform: rotate(90deg);\n}\n\n.fa-rotate-180 {\n -ms-filter: "progid:DXImageTransform.Microsoft.BasicImage(rotation=2)";\n -webkit-transform: rotate(180deg);\n transform: rotate(180deg);\n}\n\n.fa-rotate-270 {\n -ms-filter: "progid:DXImageTransform.Microsoft.BasicImage(rotation=3)";\n -webkit-transform: rotate(270deg);\n transform: rotate(270deg);\n}\n\n.fa-flip-horizontal {\n -ms-filter: "progid:DXImageTransform.Microsoft.BasicImage(rotation=0, mirror=1)";\n -webkit-transform: scale(-1, 1);\n transform: scale(-1, 1);\n}\n\n.fa-flip-vertical {\n -ms-filter: "progid:DXImageTransform.Microsoft.BasicImage(rotation=2, mirror=1)";\n -webkit-transform: scale(1, -1);\n transform: scale(1, -1);\n}\n\n.fa-flip-both, .fa-flip-horizontal.fa-flip-vertical {\n -ms-filter: "progid:DXImageTransform.Microsoft.BasicImage(rotation=2, mirror=1)";\n -webkit-transform: scale(-1, -1);\n transform: scale(-1, -1);\n}\n\n:root .fa-rotate-90,\n:root .fa-rotate-180,\n:root .fa-rotate-270,\n:root .fa-flip-horizontal,\n:root .fa-flip-vertical,\n:root .fa-flip-both {\n -webkit-filter: none;\n filter: none;\n}\n\n.fa-stack {\n display: inline-block;\n height: 2em;\n position: relative;\n width: 2.5em;\n}\n\n.fa-stack-1x,\n.fa-stack-2x {\n bottom: 0;\n left: 0;\n margin: auto;\n position: absolute;\n right: 0;\n top: 0;\n}\n\n.svg-inline--fa.fa-stack-1x {\n height: 1em;\n width: 1.25em;\n}\n.svg-inline--fa.fa-stack-2x {\n height: 2em;\n width: 2.5em;\n}\n\n.fa-inverse {\n color: #fff;\n}\n\n.sr-only {\n border: 0;\n clip: rect(0, 0, 0, 0);\n height: 1px;\n margin: -1px;\n overflow: hidden;\n padding: 0;\n position: absolute;\n width: 1px;\n}\n\n.sr-only-focusable:active, .sr-only-focusable:focus {\n clip: auto;\n height: auto;\n margin: 0;\n overflow: visible;\n position: static;\n width: auto;\n}\n\n.svg-inline--fa .fa-primary {\n fill: var(--fa-primary-color, currentColor);\n opacity: 1;\n opacity: var(--fa-primary-opacity, 1);\n}\n\n.svg-inline--fa .fa-secondary {\n fill: var(--fa-secondary-color, currentColor);\n opacity: 0.4;\n opacity: var(--fa-secondary-opacity, 0.4);\n}\n\n.svg-inline--fa.fa-swap-opacity .fa-primary {\n opacity: 0.4;\n opacity: var(--fa-secondary-opacity, 0.4);\n}\n\n.svg-inline--fa.fa-swap-opacity .fa-secondary {\n opacity: 1;\n opacity: var(--fa-primary-opacity, 1);\n}\n\n.svg-inline--fa mask .fa-primary,\n.svg-inline--fa mask .fa-secondary {\n fill: black;\n}\n\n.fad.fa-inverse {\n color: #fff;\n}';if("fa"!==n||t!==e){var a=new RegExp("\\.".concat("fa","\\-"),"g"),o=new RegExp("\\--".concat("fa","\\-"),"g"),i=new RegExp("\\.".concat(e),"g");r=r.replace(a,".".concat(n,"-")).replace(o,"--".concat(n,"-")).replace(i,".".concat(t))}return r}function be(){E.autoAddCss&&!Oe&&(q(ge()),Oe=!0)}function ye(e,n){return Object.defineProperty(e,"abstract",{get:n}),Object.defineProperty(e,"html",{get:function(){return e.abstract.map((function(e){return se(e)}))}}),Object.defineProperty(e,"node",{get:function(){if(y){var n=g.createElement("div");return n.innerHTML=e.html,n.children}}}),e}function ve(e){var n=e.prefix,t=void 0===n?"fa":n,r=e.iconName;if(r)return le(xe.definitions,t,r)||le(I.styles,t,r)}var we,xe=new(function(){function e(){!function(e,n){if(!(e instanceof n))throw new TypeError("Cannot call a class as a function")}(this,e),this.definitions={}}var n,t,r;return n=e,(t=[{key:"add",value:function(){for(var e=this,n=arguments.length,t=new Array(n),r=0;r1&&void 0!==arguments[1]?arguments[1]:{},t=n.transform,r=void 0===t?Y:t,a=n.symbol,o=void 0!==a&&a,i=n.mask,s=void 0===i?null:i,c=n.maskId,f=void 0===c?null:c,u=n.title,d=void 0===u?null:u,p=n.titleId,h=void 0===p?null:p,m=n.classes,g=void 0===m?[]:m,b=n.attributes,y=void 0===b?{}:b,v=n.styles,w=void 0===v?{}:v;if(e){var x=e.prefix,O=e.iconName,k=e.icon;return ye(l({type:"icon"},e),(function(){return be(),E.autoA11y&&(d?y["aria-labelledby"]="".concat(E.replacementClass,"-title-").concat(h||X()):(y["aria-hidden"]="true",y.focusable="false")),ee({icons:{main:me(k),mask:s?me(s.icon):{found:!1,width:null,height:null,icon:{}}},prefix:x,iconName:O,transform:l({},Y,r),symbol:o,title:d,maskId:f,titleId:h,extra:{attributes:y,styles:w,classes:g}})}))}},function(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},t=(e||{}).icon?e:ve(e||{}),r=n.mask;return r&&(r=(r||{}).icon?r:ve(r||{})),we(t,l({},n,{mask:r}))})}).call(this,t(64),t(74).setImmediate)},110:function(e,n,t){var r=t(90),a=t(80);t(118)("keys",(function(){return function(e){return a(r(e))}}))},198:function(e,n,t){var r=t(25),a=t(199),o=t(77),i=t(139),l=t(136);r(r.S,"Object",{getOwnPropertyDescriptors:function(e){for(var n,t,r=o(e),s=i.f,c=a(r),f={},u=0;c.length>u;)void 0!==(t=s(r,n=c[u++]))&&l(f,n,t);return f}})},199:function(e,n,t){var r=t(121),a=t(120),o=t(2),i=t(0).Reflect;e.exports=i&&i.ownKeys||function(e){var n=r.f(o(e)),t=a.f;return t?n.concat(t(e)):n}},200:function(e,n,t){"use strict";var r=t(25),a=t(133)(!0);r(r.P,"Array",{includes:function(e){return a(this,e,arguments.length>1?arguments[1]:void 0)}}),t(129)("includes")},201:function(e,n,t){"use strict";var r=t(25),a=t(202);r(r.P+r.F*t(203)("includes"),"String",{includes:function(e){return!!~a(this,e,"includes").indexOf(e,arguments.length>1?arguments[1]:void 0)}})},202:function(e,n,t){var r=t(100),a=t(92);e.exports=function(e,n,t){if(r(n))throw TypeError("String#"+t+" doesn't accept regex!");return String(a(e))}},203:function(e,n,t){var r=t(1)("match");e.exports=function(e){var n=/./;try{"/./"[e](n)}catch(t){try{return n[r]=!1,!"/./"[e](n)}catch(e){}}return!0}},204:function(e,n,t){"use strict";e.exports=function(e,n,t,r,a,o,i,l){if(!e){var s;if(void 0===n)s=new Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{var c=[t,r,a,o,i,l],f=0;(s=new Error(n.replace(/%s/g,(function(){return c[f++]})))).name="Invariant Violation"}throw s.framesToPop=1,s}}},271:function(e,n,t){"use strict";t.r(n),t.d(n,"default",(function(){return Fn}));t(23),t(72),t(69),t(65),t(70),t(71),t(22),t(61),t(66),t(67),t(24);var r=t(56),a=t.n(r),o=t(63);t(198),t(68),t(110),t(62),t(200),t(201);function i(){return(i=Object.assign||function(e){for(var n=1;ne.length)&&(n=e.length);for(var t=0,r=new Array(n);t0&&void 0!==arguments[0]?arguments[0]:this.active.collection;return this.refs[e].sort(j)}}]),e}();function j(e,n){return e.node.sortableInfo.index-n.node.sortableInfo.index}function T(e,n,t){return(e=e.slice()).splice(t<0?e.length+t:t,0,e.splice(n,1)[0]),e}function _(e,n){return Object.keys(e).reduce((function(t,r){return-1===n.indexOf(r)&&(t[r]=e[r]),t}),{})}var A={end:["touchend","touchcancel","mouseup"],move:["touchmove","mousemove"],start:["touchstart","mousedown"]},M=function(){if("undefined"==typeof window||"undefined"==typeof document)return"";var e=window.getComputedStyle(document.documentElement,"")||["-moz-hidden-iframe"],n=(Array.prototype.slice.call(e).join("").match(/-(moz|webkit|ms)-/)||""===e.OLink&&["","o"])[1];switch(n){case"ms":return"ms";default:return n&&n.length?n[0].toUpperCase()+n.substr(1):""}}();function P(e,n){Object.keys(n).forEach((function(t){e.style[t]=n[t]}))}function L(e,n){e.style["".concat(M,"Transform")]=null==n?"":"translate3d(".concat(n.x,"px,").concat(n.y,"px,0)")}function N(e,n){e.style["".concat(M,"TransitionDuration")]=null==n?"":"".concat(n,"ms")}function z(e,n){for(;e;){if(n(e))return e;e=e.parentNode}return null}function D(e,n,t){return Math.max(e,Math.min(t,n))}function R(e){return"px"===e.substr(-2)?parseFloat(e):0}function W(e){var n=window.getComputedStyle(e);return{bottom:R(n.marginBottom),left:R(n.marginLeft),right:R(n.marginRight),top:R(n.marginTop)}}function F(e,n){var t=n.displayName||n.name;return t?"".concat(e,"(").concat(t,")"):e}function H(e,n){var t=e.getBoundingClientRect();return{top:t.top+n.top,left:t.left+n.left}}function B(e){return e.touches&&e.touches.length?{x:e.touches[0].pageX,y:e.touches[0].pageY}:e.changedTouches&&e.changedTouches.length?{x:e.changedTouches[0].pageX,y:e.changedTouches[0].pageY}:{x:e.pageX,y:e.pageY}}function U(e){return e.touches&&e.touches.length||e.changedTouches&&e.changedTouches.length}function K(e,n){var t=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{left:0,top:0};if(e){var r={left:t.left+e.offsetLeft,top:t.top+e.offsetTop};return e.parentNode===n?r:K(e.parentNode,n,r)}}function Y(e,n,t){return en?e-1:e>t&&e0&&t[n].height>0)&&e.getContext("2d").drawImage(t[n],0,0)})),r}function ue(e){return null!=e.sortableHandle}var de=function(){function e(n,t){d(this,e),this.container=n,this.onScrollCallback=t}return h(e,[{key:"clear",value:function(){null!=this.interval&&(clearInterval(this.interval),this.interval=null)}},{key:"update",value:function(e){var n=this,t=e.translate,r=e.minTranslate,a=e.maxTranslate,o=e.width,i=e.height,l={x:0,y:0},s={x:1,y:1},c=10,f=10,u=this.container,d=u.scrollTop,p=u.scrollLeft,h=u.scrollHeight,m=u.scrollWidth,g=0===d,b=h-d-u.clientHeight==0,y=0===p,v=m-p-u.clientWidth==0;t.y>=a.y-i/2&&!b?(l.y=1,s.y=f*Math.abs((a.y-i/2-t.y)/i)):t.x>=a.x-o/2&&!v?(l.x=1,s.x=c*Math.abs((a.x-o/2-t.x)/o)):t.y<=r.y+i/2&&!g?(l.y=-1,s.y=f*Math.abs((t.y-i/2-r.y)/i)):t.x<=r.x+o/2&&!y&&(l.x=-1,s.x=c*Math.abs((t.x-o/2-r.x)/o)),this.interval&&(this.clear(),this.isAutoScrolling=!1),0===l.x&&0===l.y||(this.interval=setInterval((function(){n.isAutoScrolling=!0;var e={left:s.x*l.x,top:s.y*l.y};n.container.scrollTop+=e.top,n.container.scrollLeft+=e.left,n.onScrollCallback(e)}),5))}}]),e}();var pe={axis:O.a.oneOf(["x","y","xy"]),contentWindow:O.a.any,disableAutoscroll:O.a.bool,distance:O.a.number,getContainer:O.a.func,getHelperDimensions:O.a.func,helperClass:O.a.string,helperContainer:O.a.oneOfType([O.a.func,"undefined"==typeof HTMLElement?O.a.any:O.a.instanceOf(HTMLElement)]),hideSortableGhost:O.a.bool,keyboardSortingTransitionDuration:O.a.number,lockAxis:O.a.string,lockOffset:O.a.oneOfType([O.a.number,O.a.string,O.a.arrayOf(O.a.oneOfType([O.a.number,O.a.string]))]),lockToContainerEdges:O.a.bool,onSortEnd:O.a.func,onSortMove:O.a.func,onSortOver:O.a.func,onSortStart:O.a.func,pressDelay:O.a.number,pressThreshold:O.a.number,keyCodes:O.a.shape({lift:O.a.arrayOf(O.a.number),drop:O.a.arrayOf(O.a.number),cancel:O.a.arrayOf(O.a.number),up:O.a.arrayOf(O.a.number),down:O.a.arrayOf(O.a.number)}),shouldCancelStart:O.a.func,transitionDuration:O.a.number,updateBeforeSortStart:O.a.func,useDragHandle:O.a.bool,useWindowAsScrollContainer:O.a.bool},he={lift:[Q],drop:[Q],cancel:[J],up:[ee,Z],down:[te,ne]},me={axis:"y",disableAutoscroll:!1,distance:0,getHelperDimensions:function(e){var n=e.node;return{height:n.offsetHeight,width:n.offsetWidth}},hideSortableGhost:!0,lockOffset:"50%",lockToContainerEdges:!1,pressDelay:0,pressThreshold:5,keyCodes:he,shouldCancelStart:function(e){return-1!==[ie,se,ce,le,ae].indexOf(e.target.tagName)||!!z(e.target,(function(e){return"true"===e.contentEditable}))},transitionDuration:300,useWindowAsScrollContainer:!1},ge=Object.keys(pe);function be(e){S()(!(e.distance&&e.pressDelay),"Attempted to set both `pressDelay` and `distance` on SortableContainer, you may only use one or the other, not both at the same time.")}function ye(e,n){try{var t=e()}catch(e){return n(!0,e)}return t&&t.then?t.then(n.bind(null,!1),n.bind(null,!0)):n(!1,value)}var ve={index:O.a.number.isRequired,collection:O.a.oneOfType([O.a.number,O.a.string]),disabled:O.a.bool},we=Object.keys(ve);var xe=t(60),Oe=t(81),ke=t(82);function Ee(e){return Math.round(255*e)}function Se(e,n,t){return Ee(e)+","+Ee(n)+","+Ee(t)}function Ie(e,n,t,r){if(void 0===r&&(r=Se),0===n)return r(t,t,t);var a=e%360/60,o=(1-Math.abs(2*t-1))*n,i=o*(1-Math.abs(a%2-1)),l=0,s=0,c=0;a>=0&&a<1?(l=o,s=i):a>=1&&a<2?(l=i,s=o):a>=2&&a<3?(s=o,c=i):a>=3&&a<4?(s=i,c=o):a>=4&&a<5?(l=i,c=o):a>=5&&a<6&&(l=o,c=i);var f=t-o/2;return r(l+f,s+f,c+f)}var Ce={aliceblue:"f0f8ff",antiquewhite:"faebd7",aqua:"00ffff",aquamarine:"7fffd4",azure:"f0ffff",beige:"f5f5dc",bisque:"ffe4c4",black:"000",blanchedalmond:"ffebcd",blue:"0000ff",blueviolet:"8a2be2",brown:"a52a2a",burlywood:"deb887",cadetblue:"5f9ea0",chartreuse:"7fff00",chocolate:"d2691e",coral:"ff7f50",cornflowerblue:"6495ed",cornsilk:"fff8dc",crimson:"dc143c",cyan:"00ffff",darkblue:"00008b",darkcyan:"008b8b",darkgoldenrod:"b8860b",darkgray:"a9a9a9",darkgreen:"006400",darkgrey:"a9a9a9",darkkhaki:"bdb76b",darkmagenta:"8b008b",darkolivegreen:"556b2f",darkorange:"ff8c00",darkorchid:"9932cc",darkred:"8b0000",darksalmon:"e9967a",darkseagreen:"8fbc8f",darkslateblue:"483d8b",darkslategray:"2f4f4f",darkslategrey:"2f4f4f",darkturquoise:"00ced1",darkviolet:"9400d3",deeppink:"ff1493",deepskyblue:"00bfff",dimgray:"696969",dimgrey:"696969",dodgerblue:"1e90ff",firebrick:"b22222",floralwhite:"fffaf0",forestgreen:"228b22",fuchsia:"ff00ff",gainsboro:"dcdcdc",ghostwhite:"f8f8ff",gold:"ffd700",goldenrod:"daa520",gray:"808080",green:"008000",greenyellow:"adff2f",grey:"808080",honeydew:"f0fff0",hotpink:"ff69b4",indianred:"cd5c5c",indigo:"4b0082",ivory:"fffff0",khaki:"f0e68c",lavender:"e6e6fa",lavenderblush:"fff0f5",lawngreen:"7cfc00",lemonchiffon:"fffacd",lightblue:"add8e6",lightcoral:"f08080",lightcyan:"e0ffff",lightgoldenrodyellow:"fafad2",lightgray:"d3d3d3",lightgreen:"90ee90",lightgrey:"d3d3d3",lightpink:"ffb6c1",lightsalmon:"ffa07a",lightseagreen:"20b2aa",lightskyblue:"87cefa",lightslategray:"789",lightslategrey:"789",lightsteelblue:"b0c4de",lightyellow:"ffffe0",lime:"0f0",limegreen:"32cd32",linen:"faf0e6",magenta:"f0f",maroon:"800000",mediumaquamarine:"66cdaa",mediumblue:"0000cd",mediumorchid:"ba55d3",mediumpurple:"9370db",mediumseagreen:"3cb371",mediumslateblue:"7b68ee",mediumspringgreen:"00fa9a",mediumturquoise:"48d1cc",mediumvioletred:"c71585",midnightblue:"191970",mintcream:"f5fffa",mistyrose:"ffe4e1",moccasin:"ffe4b5",navajowhite:"ffdead",navy:"000080",oldlace:"fdf5e6",olive:"808000",olivedrab:"6b8e23",orange:"ffa500",orangered:"ff4500",orchid:"da70d6",palegoldenrod:"eee8aa",palegreen:"98fb98",paleturquoise:"afeeee",palevioletred:"db7093",papayawhip:"ffefd5",peachpuff:"ffdab9",peru:"cd853f",pink:"ffc0cb",plum:"dda0dd",powderblue:"b0e0e6",purple:"800080",rebeccapurple:"639",red:"f00",rosybrown:"bc8f8f",royalblue:"4169e1",saddlebrown:"8b4513",salmon:"fa8072",sandybrown:"f4a460",seagreen:"2e8b57",seashell:"fff5ee",sienna:"a0522d",silver:"c0c0c0",skyblue:"87ceeb",slateblue:"6a5acd",slategray:"708090",slategrey:"708090",snow:"fffafa",springgreen:"00ff7f",steelblue:"4682b4",tan:"d2b48c",teal:"008080",thistle:"d8bfd8",tomato:"ff6347",turquoise:"40e0d0",violet:"ee82ee",wheat:"f5deb3",white:"fff",whitesmoke:"f5f5f5",yellow:"ff0",yellowgreen:"9acd32"};var je=/^#[a-fA-F0-9]{6}$/,Te=/^#[a-fA-F0-9]{8}$/,_e=/^#[a-fA-F0-9]{3}$/,Ae=/^#[a-fA-F0-9]{4}$/,Me=/^rgb\(\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d{1,3})\s*\)$/,Pe=/^rgba\(\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*([-+]?[0-9]*[.]?[0-9]+)\s*\)$/,Le=/^hsl\(\s*(\d{0,3}[.]?[0-9]+)\s*,\s*(\d{1,3})%\s*,\s*(\d{1,3})%\s*\)$/,Ne=/^hsla\(\s*(\d{0,3}[.]?[0-9]+)\s*,\s*(\d{1,3})%\s*,\s*(\d{1,3})%\s*,\s*([-+]?[0-9]*[.]?[0-9]+)\s*\)$/;function ze(e){if("string"!=typeof e)throw new Error("Passed an incorrect argument to a color function, please pass a string representation of a color.");var n=function(e){if("string"!=typeof e)return e;var n=e.toLowerCase();return Ce[n]?"#"+Ce[n]:e}(e);if(n.match(je))return{red:parseInt(""+n[1]+n[2],16),green:parseInt(""+n[3]+n[4],16),blue:parseInt(""+n[5]+n[6],16)};if(n.match(Te)){var t=parseFloat((parseInt(""+n[7]+n[8],16)/255).toFixed(2));return{red:parseInt(""+n[1]+n[2],16),green:parseInt(""+n[3]+n[4],16),blue:parseInt(""+n[5]+n[6],16),alpha:t}}if(n.match(_e))return{red:parseInt(""+n[1]+n[1],16),green:parseInt(""+n[2]+n[2],16),blue:parseInt(""+n[3]+n[3],16)};if(n.match(Ae)){var r=parseFloat((parseInt(""+n[4]+n[4],16)/255).toFixed(2));return{red:parseInt(""+n[1]+n[1],16),green:parseInt(""+n[2]+n[2],16),blue:parseInt(""+n[3]+n[3],16),alpha:r}}var a=Me.exec(n);if(a)return{red:parseInt(""+a[1],10),green:parseInt(""+a[2],10),blue:parseInt(""+a[3],10)};var o=Pe.exec(n);if(o)return{red:parseInt(""+o[1],10),green:parseInt(""+o[2],10),blue:parseInt(""+o[3],10),alpha:parseFloat(""+o[4])};var i=Le.exec(n);if(i){var l="rgb("+Ie(parseInt(""+i[1],10),parseInt(""+i[2],10)/100,parseInt(""+i[3],10)/100)+")",s=Me.exec(l);if(!s)throw new Error("Couldn't generate valid rgb string from "+n+", it returned "+l+".");return{red:parseInt(""+s[1],10),green:parseInt(""+s[2],10),blue:parseInt(""+s[3],10)}}var c=Ne.exec(n);if(c){var f="rgb("+Ie(parseInt(""+c[1],10),parseInt(""+c[2],10)/100,parseInt(""+c[3],10)/100)+")",u=Me.exec(f);if(!u)throw new Error("Couldn't generate valid rgb string from "+n+", it returned "+f+".");return{red:parseInt(""+u[1],10),green:parseInt(""+u[2],10),blue:parseInt(""+u[3],10),alpha:parseFloat(""+c[4])}}throw new Error("Couldn't parse the color string. Please provide the color as a string in hex, rgb, rgba, hsl or hsla notation.")}function De(e){return function(e){var n,t=e.red/255,r=e.green/255,a=e.blue/255,o=Math.max(t,r,a),i=Math.min(t,r,a),l=(o+i)/2;if(o===i)return void 0!==e.alpha?{hue:0,saturation:0,lightness:l,alpha:e.alpha}:{hue:0,saturation:0,lightness:l};var s=o-i,c=l>.5?s/(2-o-i):s/(o+i);switch(o){case t:n=(r-a)/s+(r=1?Ue(e,n,t):"rgba("+e+","+n+","+t+","+r+")";if("object"==typeof e&&void 0===n&&void 0===t&&void 0===r)return e.alpha>=1?Ue(e.red,e.green,e.blue):"rgba("+e.red+","+e.green+","+e.blue+","+e.alpha+")";throw new Error("Passed invalid arguments to rgba, please pass multiple numbers e.g. rgb(255, 205, 100, 0.75) or an object e.g. rgb({ red: 255, green: 205, blue: 100, alpha: 0.75 }).")}var Ye="Passed invalid argument to toColorString, please pass a RgbColor, RgbaColor, HslColor or HslaColor object.";function qe(e){if("object"!=typeof e)throw new Error(Ye);if(function(e){return"number"==typeof e.red&&"number"==typeof e.green&&"number"==typeof e.blue&&"number"==typeof e.alpha}(e))return Ke(e);if(function(e){return"number"==typeof e.red&&"number"==typeof e.green&&"number"==typeof e.blue&&("number"!=typeof e.alpha||void 0===e.alpha)}(e))return Ue(e);if(function(e){return"number"==typeof e.hue&&"number"==typeof e.saturation&&"number"==typeof e.lightness&&"number"==typeof e.alpha}(e))return function(e,n,t,r){if("number"==typeof e&&"number"==typeof n&&"number"==typeof t&&"number"==typeof r)return r>=1?Be(e,n,t):"rgba("+Ie(e,n,t)+","+r+")";if("object"==typeof e&&void 0===n&&void 0===t&&void 0===r)return e.alpha>=1?Be(e.hue,e.saturation,e.lightness):"rgba("+Ie(e.hue,e.saturation,e.lightness)+","+e.alpha+")";throw new Error("Passed invalid arguments to hsla, please pass multiple numbers e.g. hsl(360, 0.75, 0.4, 0.7) or an object e.g. rgb({ hue: 255, saturation: 0.4, lightness: 0.75, alpha: 0.7 }).")}(e);if(function(e){return"number"==typeof e.hue&&"number"==typeof e.saturation&&"number"==typeof e.lightness&&("number"!=typeof e.alpha||void 0===e.alpha)}(e))return function(e,n,t){if("number"==typeof e&&"number"==typeof n&&"number"==typeof t)return Be(e,n,t);if("object"==typeof e&&void 0===n&&void 0===t)return Be(e.hue,e.saturation,e.lightness);throw new Error("Passed invalid arguments to hsl, please pass multiple numbers e.g. hsl(360, 0.75, 0.4) or an object e.g. rgb({ hue: 255, saturation: 0.4, lightness: 0.75 }).")}(e);throw new Error(Ye)}function Xe(e){return function e(n,t,r){return function(){var a=r.concat(Array.prototype.slice.call(arguments));return a.length>=t?n.apply(this,a):e(n,t,a)}}(e,e.length,[])}function Ge(e,n,t){return Math.max(e,Math.min(n,t))}function $e(e,n){var t=De(n);return qe(i({},t,{lightness:Ge(0,1,t.lightness+parseFloat(e))}))}var Ve=Xe($e);function Je(){var e=function(e,n){n||(n=e.slice(0));return Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(n)}}))}(["\ndisplay: block;\nheight: 26px;\nfloat: right;\nwidth: 100px;\nright: 20px;\n\na {\n display: block;\n transition: all 0.3s ease-out;\n}\nlabel,\n> span {\n line-height: 26px;\n vertical-align: middle;\n}\n\n* {\n box-sizing: border-box; \n outline: 0!important\n}\n\nposition: relative;\ninput {\n position: absolute;\n opacity: 0;\n}\n\nlabel {\n position: relative;\n z-index: 2;\n width: 50%;\n height: 100%;\n margin: "," 0 0 0;\n text-align: center;\n float: left;\n}\n\na {\n position: absolute;\n top: 0;\n padding: 0;\n z-index: 1;\n width: 50%;\n height: 100%;\n color: white;\n border: solid 1px #279CBB!important;\n background-color: #2EACCE!important;\n left: 0;\n border-radius: 3px!important;\n}\n\ninput:last-of-type:checked ~ a {\n border: solid 1px #CA6F6F!important;\n background-color: #E08F95!important;\n left: 50% ;\n border-radius: 3px!important;\n}\n\ninput:disabled ~ a {\n border: solid 1px lighten(gray,20%) !important;\n background-color: lighten(gray,30%)\t!important;\n // box-shadow: "," 0 -1px 0 inset !important;\n}\n\nmargin-top: ",";\nbackground-color: #eee;\nborder-radius: 3px!important;\ncolor: #555;\ntext-align: center;\nbox-shadow: "," 0 1px 4px 1px inset;\n\nlabel {\n text-transform: uppercase;\n color: #bbb;\n font-weight: 400;\n cursor: pointer;\n transition: color 0.2s ease-out;\n}\n\ninput:checked + label {\n color: white\n}\n\n> span {\n color: #666;\n text-transform: uppercase;\n cursor: pointer;\n}\n"]);return Je=function(){return e},e}var Qe=xe.default.span(Je(),(function(e){return e.legacy?"-2px":"0"}),Ve(.2,"gray"),(function(e){return e.legacy?"0":"3px"}),Ke("black",.15));function Ze(e){var n=e.enabled,t=e.onChange,r=e.id,o=e.translations;return a.a.createElement(Qe,e,a.a.createElement("input",{type:"radio","data-mollie-check":"",name:"MOLLIE_METHOD_ENABLED_".concat(r),id:"MOLLIE_METHOD_ENABLED_on_".concat(r),value:"1",checked:n,onChange:t}),a.a.createElement("label",{htmlFor:"MOLLIE_METHOD_ENABLED_on_".concat(r)},o.yes.toUpperCase()),a.a.createElement("input",{type:"radio",name:"MOLLIE_METHOD_ENABLED_".concat(r),id:"MOLLIE_METHOD_ENABLED_off_".concat(r),value:"",checked:!n,onChange:t}),a.a.createElement("label",{htmlFor:"MOLLIE_METHOD_ENABLED_off_".concat(r)},o.no.toUpperCase())," "," ",a.a.createElement("a",{className:"slide-button btn"}))}function en(){var e=sn(["\nmargin: 0 auto;\ntext-align: center;\n"]);return en=function(){return e},e}function nn(){var e=sn(["\npadding: 1px 5px;\nfont-size: 11px;\nline-height: 1.5;\nborder-radius: 3px;\ncolor: #363A41;\ndisplay: inline-block;\nmargin-bottom: 0;\nfont-weight: normal;\ntext-align: center;\nvertical-align: middle;\ncursor: pointer;\nbackground: #2eacce none;\nborder: 1px solid #0000;\nwhite-space: nowrap;\nfont-family: inherit;\nwidth: 26px!important;\nmargin-top: 6px!important;\nmargin-right: 2px!important;\n\n:hover {\n background-color: #008abd;\n -webkit-box-shadow: none;\n box-shadow: none;\n}\n\n:disabled {\n background-color: #2eacce;\n border-color: #2eacce;\n cursor: not-allowed;\n opacity: .65;\n filter: alpha(opacity=65);\n -webkit-box-shadow: none;\n box-shadow: none;\n}\n","\n"]);return nn=function(){return e},e}function tn(){var e=sn(["\nborder: solid 1px #ccc;\nbackground-color: #eee;\npadding: 0;\nfont-size: 1.4em;\ncolor: #aaa;\ncursor: move;\ntext-shadow: #fff 1px 1px;\n-webkit-border-radius: 3px;\nborder-radius: 3px;\n-webkit-box-shadow: rgba(0,0,0,0.2) 0 1px 3px inset;\nbox-shadow: rgba(0,0,0,0.2) 0 1px 3px inset;\ndisplay: block;\nwidth: 40px;\ntext-align: center;\nmargin: 0 auto;\n","\n"]);return tn=function(){return e},e}function rn(){var e=sn(["\ndisplay: table-cell;\nheight: 50px;\nvertical-align: middle;\nbox-sizing: border-box;\n"]);return rn=function(){return e},e}function an(){var e=sn(["\ndisplay: table-cell;\nwidth: 75px;\ntext-align: left;\nvertical-align: middle;\n"]);return an=function(){return e},e}function on(){var e=sn(["\ndisplay: table-cell;\nwidth: 80px!important;\nvertical-align: middle!important;\ntext-align: right!important;\n"]);return on=function(){return e},e}function ln(){var e=sn(["\ncursor: move!important;\n-webkit-touch-callout: none; /* iOS Safari */\n -webkit-user-select: none; /* Safari */\n -khtml-user-select: none; /* Konqueror HTML */\n -moz-user-select: none; /* Firefox */\n -ms-user-select: none; /* Internet Explorer/Edge */\n user-select: none; /* Non-prefixed version, currently\n supported by Chrome and Opera */\n \nborder: 1px solid #0c95fd;\nborder-bottom-width: ",";\nbackground-color: #fff;\ndisplay: table;\nwidth: 100%;\npadding: 5px 0;\nmargin-bottom: -1px;\n","\n"]);return ln=function(){return e},e}function sn(e,n){return n||(n=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(n)}}))}var cn=xe.default.li(ln(),(function(e){return e.last?"1px":"2px"}),(function(e){return e.legacy?"width: calc(100% - 2px);":""})),fn=xe.default.div(on()),un=xe.default.div(an()),dn=xe.default.div(rn()),pn=xe.default.span(tn(),(function(e){return e.legacy?"height: 24px;line-height: 24px;":""})),hn=xe.default.button(nn(),(function(e){return e.legacy?"height: 20px;line-height: 20px;":""})),mn=xe.default.div(en());var gn=function(e){var n,t,a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{withRef:!1};return t=n=function(n){function t(){return d(this,t),b(this,y(t).apply(this,arguments))}return w(t,n),h(t,[{key:"componentDidMount",value:function(){this.register()}},{key:"componentDidUpdate",value:function(e){this.node&&(e.index!==this.props.index&&(this.node.sortableInfo.index=this.props.index),e.disabled!==this.props.disabled&&(this.node.sortableInfo.disabled=this.props.disabled)),e.collection!==this.props.collection&&(this.unregister(e.collection),this.register())}},{key:"componentWillUnmount",value:function(){this.unregister()}},{key:"register",value:function(){var e=this.props,n=e.collection,t=e.disabled,r=e.index,a=Object(k.findDOMNode)(this);a.sortableInfo={collection:n,disabled:t,index:r,manager:this.context.manager},this.node=a,this.ref={node:a},this.context.manager.add(n,this.ref)}},{key:"unregister",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.props.collection;this.context.manager.remove(e,this.ref)}},{key:"getWrappedInstance",value:function(){return S()(a.withRef,"To access the wrapped instance, you need to pass in {withRef: true} as the second argument of the SortableElement() call"),this.refs.wrappedInstance}},{key:"render",value:function(){var n=a.withRef?"wrappedInstance":null;return Object(r.createElement)(e,i({ref:n},_(this.props,we)))}}]),t}(r.Component),f(n,"displayName",F("sortableElement",e)),f(n,"contextTypes",{manager:O.a.object.isRequired}),f(n,"propTypes",ve),f(n,"defaultProps",{collection:0}),t}((function(e){var n=e.enabled,t=e.onToggle,o=e.code,i=e.translations,l=e.position,s=e.max,c=e.name,f=e.imageUrl,u=e.moveMethod,d=e.available,p=e.tipEnableSSL,h=e.config.legacy;return Object(r.useEffect)((function(){"undefined"!=typeof $&&"function"==typeof $.prototype.tooltip&&$("[data-toggle=tooltip]").tooltip()})),a.a.createElement(cn,{last:l>=s,legacy:h},a.a.createElement(fn,null,a.a.createElement(pn,{legacy:h},l+1),a.a.createElement(mn,null,a.a.createElement(hn,{legacy:h,disabled:l<=0,onClick:function(e){e.preventDefault(),u({oldIndex:l-1,newIndex:l})}},a.a.createElement(Oe.a,{icon:ke.b,style:{color:"white",pointerEvents:"none"}})),a.a.createElement(hn,{legacy:h,disabled:l>=s,onClick:function(e){e.preventDefault(),u({oldIndex:l+1,newIndex:l})}},a.a.createElement(Oe.a,{icon:ke.a,style:{color:"white",pointerEvents:"none"}})))),a.a.createElement(un,null,a.a.createElement("img",{width:"57",src:f,alt:c,style:{width:"57px"}})),a.a.createElement(dn,null,a.a.createElement("div",{style:{display:"inline-block",marginTop:"5px"}},a.a.createElement("span",null,c)),!d&&p&&a.a.createElement("p",{style:{float:"right",marginRight:"20px"},title:i.thisPaymentMethodNeedsSSLEnabled,"data-toggle":"tooltip"},a.a.createElement(Oe.a,{icon:ke.d})," ",i.notAvailable),!d&&!p&&a.a.createElement("p",{style:{float:"right",marginRight:"20px"},title:i.thisPaymentMethodIsNotAvailableOnPaymentsApi,"data-toggle":"tooltip"},a.a.createElement(Oe.a,{icon:ke.d})," ",i.notAvailable),d&&a.a.createElement(Ze,{id:o,translations:i,enabled:n,onChange:function(e){return function(e){t(o,e)}(!!e.target.value)},legacy:h})))}));function bn(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);n&&(r=r.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),t.push.apply(t,r)}return t}function yn(e){for(var n=1;ne.length)&&(n=e.length);for(var t=0,r=new Array(n);t1&&void 0!==arguments[1]?arguments[1]:{withRef:!1};return t=n=function(n){function t(e){var n;return d(this,t),f(g(g(n=b(this,y(t).call(this,e)))),"state",{}),f(g(g(n)),"handleStart",(function(e){var t=n.props,r=t.distance,a=t.shouldCancelStart;if(2!==e.button&&!a(e)){n.touched=!0,n.position=B(e);var o=z(e.target,(function(e){return null!=e.sortableInfo}));if(o&&o.sortableInfo&&n.nodeIsChild(o)&&!n.state.sorting){var i=n.props.useDragHandle,l=o.sortableInfo,s=l.index,c=l.collection;if(l.disabled)return;if(i&&!z(e.target,ue))return;n.manager.active={collection:c,index:s},U(e)||e.target.tagName!==re||e.preventDefault(),r||(0===n.props.pressDelay?n.handlePress(e):n.pressTimer=setTimeout((function(){return n.handlePress(e)}),n.props.pressDelay))}}})),f(g(g(n)),"nodeIsChild",(function(e){return e.sortableInfo.manager===n.manager})),f(g(g(n)),"handleMove",(function(e){var t=n.props,r=t.distance,a=t.pressThreshold;if(!n.state.sorting&&n.touched&&!n._awaitingUpdateBeforeSortStart){var o=B(e),i={x:n.position.x-o.x,y:n.position.y-o.y},l=Math.abs(i.x)+Math.abs(i.y);n.delta=i,r||a&&!(l>=a)?r&&l>=r&&n.manager.isActive()&&n.handlePress(e):(clearTimeout(n.cancelTimer),n.cancelTimer=setTimeout(n.cancel,0))}})),f(g(g(n)),"handleEnd",(function(){n.touched=!1,n.cancel()})),f(g(g(n)),"cancel",(function(){var e=n.props.distance;n.state.sorting||(e||clearTimeout(n.pressTimer),n.manager.active=null)})),f(g(g(n)),"handlePress",(function(e){try{var t=n.manager.getActive(),r=function(){if(t){var r=function(){var t=p.sortableInfo.index,r=W(p),a=V(n.container),c=n.scrollContainer.getBoundingClientRect(),g=i({index:t,node:p,collection:h});if(n.node=p,n.margin=r,n.gridGap=a,n.width=g.width,n.height=g.height,n.marginOffset={x:n.margin.left+n.margin.right+n.gridGap.x,y:Math.max(n.margin.top,n.margin.bottom,n.gridGap.y)},n.boundingClientRect=p.getBoundingClientRect(),n.containerBoundingRect=c,n.index=t,n.newIndex=t,n.axis={x:o.indexOf("x")>=0,y:o.indexOf("y")>=0},n.offsetEdge=K(p,n.container),n.initialOffset=B(m?u({},e,{pageX:n.boundingClientRect.left,pageY:n.boundingClientRect.top}):e),n.initialScroll={left:n.scrollContainer.scrollLeft,top:n.scrollContainer.scrollTop},n.initialWindowScroll={left:window.pageXOffset,top:window.pageYOffset},n.helper=n.helperContainer.appendChild(fe(p)),P(n.helper,{boxSizing:"border-box",height:"".concat(n.height,"px"),left:"".concat(n.boundingClientRect.left-r.left,"px"),pointerEvents:"none",position:"fixed",top:"".concat(n.boundingClientRect.top-r.top,"px"),width:"".concat(n.width,"px")}),m&&n.helper.focus(),s&&(n.sortableGhost=p,P(p,{opacity:0,visibility:"hidden"})),n.minTranslate={},n.maxTranslate={},m){var b=d?{top:0,left:0,width:n.contentWindow.innerWidth,height:n.contentWindow.innerHeight}:n.containerBoundingRect,y=b.top,v=b.left,w=b.width,x=y+b.height,O=v+w;n.axis.x&&(n.minTranslate.x=v-n.boundingClientRect.left,n.maxTranslate.x=O-(n.boundingClientRect.left+n.width)),n.axis.y&&(n.minTranslate.y=y-n.boundingClientRect.top,n.maxTranslate.y=x-(n.boundingClientRect.top+n.height))}else n.axis.x&&(n.minTranslate.x=(d?0:c.left)-n.boundingClientRect.left-n.width/2,n.maxTranslate.x=(d?n.contentWindow.innerWidth:c.left+c.width)-n.boundingClientRect.left-n.width/2),n.axis.y&&(n.minTranslate.y=(d?0:c.top)-n.boundingClientRect.top-n.height/2,n.maxTranslate.y=(d?n.contentWindow.innerHeight:c.top+c.height)-n.boundingClientRect.top-n.height/2);l&&l.split(" ").forEach((function(e){return n.helper.classList.add(e)})),n.listenerNode=e.touches?p:n.contentWindow,m?(n.listenerNode.addEventListener("wheel",n.handleKeyEnd,!0),n.listenerNode.addEventListener("mousedown",n.handleKeyEnd,!0),n.listenerNode.addEventListener("keydown",n.handleKeyDown)):(A.move.forEach((function(e){return n.listenerNode.addEventListener(e,n.handleSortMove,!1)})),A.end.forEach((function(e){return n.listenerNode.addEventListener(e,n.handleSortEnd,!1)}))),n.setState({sorting:!0,sortingIndex:t}),f&&f({node:p,index:t,collection:h,isKeySorting:m,nodes:n.manager.getOrderedRefs(),helper:n.helper},e),m&&n.keyMove(0)},a=n.props,o=a.axis,i=a.getHelperDimensions,l=a.helperClass,s=a.hideSortableGhost,c=a.updateBeforeSortStart,f=a.onSortStart,d=a.useWindowAsScrollContainer,p=t.node,h=t.collection,m=n.manager.isKeySorting,g=function(){if("function"==typeof c){n._awaitingUpdateBeforeSortStart=!0;var t=ye((function(){var n=p.sortableInfo.index;return Promise.resolve(c({collection:h,index:n,node:p,isKeySorting:m},e)).then((function(){}))}),(function(e,t){if(n._awaitingUpdateBeforeSortStart=!1,e)throw t;return t}));if(t&&t.then)return t.then((function(){}))}}();return g&&g.then?g.then(r):r()}}();return Promise.resolve(r&&r.then?r.then((function(){})):void 0)}catch(e){return Promise.reject(e)}})),f(g(g(n)),"handleSortMove",(function(e){var t=n.props.onSortMove;"function"==typeof e.preventDefault&&e.preventDefault(),n.updateHelperPosition(e),n.animateNodes(),n.autoscroll(),t&&t(e)})),f(g(g(n)),"handleSortEnd",(function(e){var t=n.props,r=t.hideSortableGhost,a=t.onSortEnd,o=n.manager,i=o.active.collection,l=o.isKeySorting,s=n.manager.getOrderedRefs();n.listenerNode&&(l?(n.listenerNode.removeEventListener("wheel",n.handleKeyEnd,!0),n.listenerNode.removeEventListener("mousedown",n.handleKeyEnd,!0),n.listenerNode.removeEventListener("keydown",n.handleKeyDown)):(A.move.forEach((function(e){return n.listenerNode.removeEventListener(e,n.handleSortMove)})),A.end.forEach((function(e){return n.listenerNode.removeEventListener(e,n.handleSortEnd)})))),n.helper.parentNode.removeChild(n.helper),r&&n.sortableGhost&&P(n.sortableGhost,{opacity:"",visibility:""});for(var c=0,f=s.length;cr)){n.prevIndex=o,n.newIndex=a;var i=Y(n.newIndex,n.prevIndex,n.index),l=t.find((function(e){return e.node.sortableInfo.index===i})),s=l.node,c=n.containerScrollDelta,f=l.boundingClientRect||H(s,c),u=l.translate||{x:0,y:0},d=f.top+u.y-c.top,p=f.left+u.x-c.left,h=og?g/2:this.height/2,width:this.width>m?m/2:this.width/2},y=c&&h>this.index&&h<=f,v=c&&h=f,w={x:0,y:0},x=i[u].edgeOffset;x||(x=K(p,this.container),i[u].edgeOffset=x,c&&(i[u].boundingClientRect=H(p,a)));var O=u0&&i[u-1];O&&!O.edgeOffset&&(O.edgeOffset=K(O.node,this.container),c&&(O.boundingClientRect=H(O.node,a))),h!==this.index?(n&&N(p,n),this.axis.x?this.axis.y?v||hthis.containerBoundingRect.width-b.width&&O&&(w.x=O.edgeOffset.left-x.left,w.y=O.edgeOffset.top-x.top),null===this.newIndex&&(this.newIndex=h)):(y||h>this.index&&(l+o.left+b.width>=x.left&&s+o.top+b.height>=x.top||s+o.top+b.height>=x.top+g))&&(w.x=-(this.width+this.marginOffset.x),x.left+w.xthis.index&&l+o.left+b.width>=x.left?(w.x=-(this.width+this.marginOffset.x),this.newIndex=h):(v||hthis.index&&s+o.top+b.height>=x.top?(w.y=-(this.height+this.marginOffset.y),this.newIndex=h):(v||he.length)&&(n=e.length);for(var t=0,r=new Array(n);te.length)&&(n=e.length);for(var t=0,r=new Array(n);t=0&&(e._idleTimeoutId=setTimeout((function(){e._onTimeout&&e._onTimeout()}),n))},t(78),n.setImmediate="undefined"!=typeof self&&self.setImmediate||void 0!==e&&e.setImmediate||this&&this.setImmediate,n.clearImmediate="undefined"!=typeof self&&self.clearImmediate||void 0!==e&&e.clearImmediate||this&&this.clearImmediate}).call(this,t(64))},76:function(e,n,t){var r; -/*! - Copyright (c) 2017 Jed Watson. - Licensed under the MIT License (MIT), see - http://jedwatson.github.io/classnames -*/!function(){"use strict";var t={}.hasOwnProperty;function a(){for(var e=[],n=0;n=0||(a[t]=e[t]);return a}(e,n);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,t)&&(a[t]=e[t])}return a}function p(e){return function(e){if(Array.isArray(e)){for(var n=0,t=new Array(e.length);n0||!Array.isArray(n)&&n?c({},e,n):{}}function v(e){var n=e.forwardedRef,t=d(e,["forwardedRef"]),a=t.icon,o=t.mask,i=t.symbol,l=t.className,s=t.title,f=b(a),h=y("classes",[].concat(p(function(e){var n,t=e.spin,r=e.pulse,a=e.fixedWidth,o=e.inverse,i=e.border,l=e.listItem,s=e.flip,f=e.size,u=e.rotation,d=e.pull,p=(c(n={"fa-spin":t,"fa-pulse":r,"fa-fw":a,"fa-inverse":o,"fa-border":i,"fa-li":l,"fa-flip-horizontal":"horizontal"===s||"both"===s,"fa-flip-vertical":"vertical"===s||"both"===s},"fa-".concat(f),null!=f),c(n,"fa-rotate-".concat(u),null!=u&&0!==u),c(n,"fa-pull-".concat(d),null!=d),c(n,"fa-swap-opacity",e.swapOpacity),n);return Object.keys(p).map((function(e){return p[e]?e:null})).filter((function(e){return e}))}(t)),p(l.split(" ")))),m=y("transform","string"==typeof t.transform?r.b.transform(t.transform):t.transform),x=y("mask",b(o)),O=Object(r.a)(f,u({},h,{},m,{},x,{symbol:i,title:s}));if(!O)return function(){var e;!g&&console&&"function"==typeof console.error&&(e=console).error.apply(e,arguments)}("Could not find icon",f),null;var k=O.abstract,E={ref:n};return Object.keys(t).forEach((function(e){v.defaultProps.hasOwnProperty(e)||(E[e]=t[e])})),w(k[0],E)}v.displayName="FontAwesomeIcon",v.propTypes={border:o.a.bool,className:o.a.string,mask:o.a.oneOfType([o.a.object,o.a.array,o.a.string]),fixedWidth:o.a.bool,inverse:o.a.bool,flip:o.a.oneOf(["horizontal","vertical","both"]),icon:o.a.oneOfType([o.a.object,o.a.array,o.a.string]),listItem:o.a.bool,pull:o.a.oneOf(["right","left"]),pulse:o.a.bool,rotation:o.a.oneOf([0,90,180,270]),size:o.a.oneOf(["lg","xs","sm","1x","2x","3x","4x","5x","6x","7x","8x","9x","10x"]),spin:o.a.bool,symbol:o.a.oneOfType([o.a.bool,o.a.string]),title:o.a.string,transform:o.a.oneOfType([o.a.string,o.a.object]),swapOpacity:o.a.bool},v.defaultProps={border:!1,className:"",mask:null,fixedWidth:!1,inverse:!1,flip:null,icon:null,listItem:!1,pull:null,pulse:!1,rotation:null,size:null,spin:!1,symbol:!1,title:"",transform:null,swapOpacity:!1};var w=function e(n,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};if("string"==typeof t)return t;var a=(t.children||[]).map((function(t){return e(n,t)})),o=Object.keys(t.attributes||{}).reduce((function(e,n){var r=t.attributes[n];switch(n){case"class":e.attrs.className=r,delete t.attributes.class;break;case"style":e.attrs.style=m(r);break;default:0===n.indexOf("aria-")||0===n.indexOf("data-")?e.attrs[n.toLowerCase()]=r:e.attrs[h(n)]=r}return e}),{attrs:{}}),i=r.style,l=void 0===i?{}:i,s=d(r,["style"]);return o.attrs.style=u({},o.attrs.style,{},l),n.apply(void 0,[t.tag,u({},o.attrs,{},s)].concat(p(a)))}.bind(null,l.a.createElement)},82:function(e,n,t){"use strict";t.d(n,"a",(function(){return r})),t.d(n,"b",(function(){return a})),t.d(n,"c",(function(){return o})),t.d(n,"d",(function(){return i})),t.d(n,"e",(function(){return l})),t.d(n,"f",(function(){return s})),t.d(n,"g",(function(){return c})),t.d(n,"h",(function(){return f})),t.d(n,"i",(function(){return u})),t.d(n,"j",(function(){return d})); -/*! - * Font Awesome Free 5.15.1 by @fontawesome - https://fontawesome.com - * License - https://fontawesome.com/license/free (Icons: CC BY 4.0, Fonts: SIL OFL 1.1, Code: MIT License) - */ -var r={prefix:"fas",iconName:"chevron-down",icon:[448,512,[],"f078","M207.029 381.476L12.686 187.132c-9.373-9.373-9.373-24.569 0-33.941l22.667-22.667c9.357-9.357 24.522-9.375 33.901-.04L224 284.505l154.745-154.021c9.379-9.335 24.544-9.317 33.901.04l22.667 22.667c9.373 9.373 9.373 24.569 0 33.941L240.971 381.476c-9.373 9.372-24.569 9.372-33.942 0z"]},a={prefix:"fas",iconName:"chevron-up",icon:[448,512,[],"f077","M240.971 130.524l194.343 194.343c9.373 9.373 9.373 24.569 0 33.941l-22.667 22.667c-9.357 9.357-24.522 9.375-33.901.04L224 227.495 69.255 381.516c-9.379 9.335-24.544 9.317-33.901-.04l-22.667-22.667c-9.373-9.373-9.373-24.569 0-33.941L207.03 130.525c9.372-9.373 24.568-9.373 33.941-.001z"]},o={prefix:"fas",iconName:"circle-notch",icon:[512,512,[],"f1ce","M288 39.056v16.659c0 10.804 7.281 20.159 17.686 23.066C383.204 100.434 440 171.518 440 256c0 101.689-82.295 184-184 184-101.689 0-184-82.295-184-184 0-84.47 56.786-155.564 134.312-177.219C216.719 75.874 224 66.517 224 55.712V39.064c0-15.709-14.834-27.153-30.046-23.234C86.603 43.482 7.394 141.206 8.003 257.332c.72 137.052 111.477 246.956 248.531 246.667C393.255 503.711 504 392.788 504 256c0-115.633-79.14-212.779-186.211-240.236C302.678 11.889 288 23.456 288 39.056z"]},i={prefix:"fas",iconName:"exclamation-triangle",icon:[576,512,[],"f071","M569.517 440.013C587.975 472.007 564.806 512 527.94 512H48.054c-36.937 0-59.999-40.055-41.577-71.987L246.423 23.985c18.467-32.009 64.72-31.951 83.154 0l239.94 416.028zM288 354c-25.405 0-46 20.595-46 46s20.595 46 46 46 46-20.595 46-46-20.595-46-46-46zm-43.673-165.346l7.418 136c.347 6.364 5.609 11.346 11.982 11.346h48.546c6.373 0 11.635-4.982 11.982-11.346l7.418-136c.375-6.874-5.098-12.654-11.982-12.654h-63.383c-6.884 0-12.356 5.78-11.981 12.654z"]},l={prefix:"fas",iconName:"redo-alt",icon:[512,512,[],"f2f9","M256.455 8c66.269.119 126.437 26.233 170.859 68.685l35.715-35.715C478.149 25.851 504 36.559 504 57.941V192c0 13.255-10.745 24-24 24H345.941c-21.382 0-32.09-25.851-16.971-40.971l41.75-41.75c-30.864-28.899-70.801-44.907-113.23-45.273-92.398-.798-170.283 73.977-169.484 169.442C88.764 348.009 162.184 424 256 424c41.127 0 79.997-14.678 110.629-41.556 4.743-4.161 11.906-3.908 16.368.553l39.662 39.662c4.872 4.872 4.631 12.815-.482 17.433C378.202 479.813 319.926 504 256 504 119.034 504 8.001 392.967 8 256.002 7.999 119.193 119.646 7.755 256.455 8z"]},s={prefix:"fas",iconName:"times",icon:[352,512,[],"f00d","M242.72 256l100.07-100.07c12.28-12.28 12.28-32.19 0-44.48l-22.24-22.24c-12.28-12.28-32.19-12.28-44.48 0L176 189.28 75.93 89.21c-12.28-12.28-32.19-12.28-44.48 0L9.21 111.45c-12.28 12.28-12.28 32.19 0 44.48L109.28 256 9.21 356.07c-12.28 12.28-12.28 32.19 0 44.48l22.24 22.24c12.28 12.28 32.2 12.28 44.48 0L176 322.72l100.07 100.07c12.28 12.28 32.2 12.28 44.48 0l22.24-22.24c12.28-12.28 12.28-32.19 0-44.48L242.72 256z"]},c={prefix:"fas",iconName:"times-circle",icon:[512,512,[],"f057","M256 8C119 8 8 119 8 256s111 248 248 248 248-111 248-248S393 8 256 8zm121.6 313.1c4.7 4.7 4.7 12.3 0 17L338 377.6c-4.7 4.7-12.3 4.7-17 0L256 312l-65.1 65.6c-4.7 4.7-12.3 4.7-17 0L134.4 338c-4.7-4.7-4.7-12.3 0-17l65.6-65-65.6-65.1c-4.7-4.7-4.7-12.3 0-17l39.6-39.6c4.7-4.7 12.3-4.7 17 0l65 65.7 65.1-65.6c4.7-4.7 12.3-4.7 17 0l39.6 39.6c4.7 4.7 4.7 12.3 0 17L312 256l65.6 65.1z"]},f={prefix:"fas",iconName:"truck",icon:[640,512,[],"f0d1","M624 352h-16V243.9c0-12.7-5.1-24.9-14.1-33.9L494 110.1c-9-9-21.2-14.1-33.9-14.1H416V48c0-26.5-21.5-48-48-48H48C21.5 0 0 21.5 0 48v320c0 26.5 21.5 48 48 48h16c0 53 43 96 96 96s96-43 96-96h128c0 53 43 96 96 96s96-43 96-96h48c8.8 0 16-7.2 16-16v-32c0-8.8-7.2-16-16-16zM160 464c-26.5 0-48-21.5-48-48s21.5-48 48-48 48 21.5 48 48-21.5 48-48 48zm320 0c-26.5 0-48-21.5-48-48s21.5-48 48-48 48 21.5 48 48-21.5 48-48 48zm80-208H416V144h44.1l99.9 99.9V256z"]},u={prefix:"fas",iconName:"undo",icon:[512,512,[],"f0e2","M212.333 224.333H12c-6.627 0-12-5.373-12-12V12C0 5.373 5.373 0 12 0h48c6.627 0 12 5.373 12 12v78.112C117.773 39.279 184.26 7.47 258.175 8.007c136.906.994 246.448 111.623 246.157 248.532C504.041 393.258 393.12 504 256.333 504c-64.089 0-122.496-24.313-166.51-64.215-5.099-4.622-5.334-12.554-.467-17.42l33.967-33.967c4.474-4.474 11.662-4.717 16.401-.525C170.76 415.336 211.58 432 256.333 432c97.268 0 176-78.716 176-176 0-97.267-78.716-176-176-176-58.496 0-110.28 28.476-142.274 72.333h98.274c6.627 0 12 5.373 12 12v48c0 6.627-5.373 12-12 12z"]},d={prefix:"fas",iconName:"undo-alt",icon:[512,512,[],"f2ea","M255.545 8c-66.269.119-126.438 26.233-170.86 68.685L48.971 40.971C33.851 25.851 8 36.559 8 57.941V192c0 13.255 10.745 24 24 24h134.059c21.382 0 32.09-25.851 16.971-40.971l-41.75-41.75c30.864-28.899 70.801-44.907 113.23-45.273 92.398-.798 170.283 73.977 169.484 169.442C423.236 348.009 349.816 424 256 424c-41.127 0-79.997-14.678-110.63-41.556-4.743-4.161-11.906-3.908-16.368.553L89.34 422.659c-4.872 4.872-4.631 12.815.482 17.433C133.798 479.813 192.074 504 256 504c136.966 0 247.999-111.033 248-247.998C504.001 119.193 392.354 7.755 255.545 8z"]}},88:function(e,n,t){"use strict";t(62);var r=t(56),a=t.n(r),o=t(60);function i(){var e=c(["\n background-color: black;\n border-radius: 50%;\n width: 10px;\n height: 10px;\n margin: 0 5px;\n opacity: 0.7;\n /* Animation */\n animation: "," 0.5s linear infinite;\n animation-delay: ",";\n"]);return i=function(){return e},e}function l(){var e=c(["\n display: flex;\n align-items: flex-end;\n min-height: 30px;\n"]);return l=function(){return e},e}function s(){var e=c(["\n 0% { margin-bottom: 0; }\n 50% { margin-bottom: 15px }\n 100% { margin-bottom: 0 }\n"]);return s=function(){return e},e}function c(e,n){return n||(n=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(n)}}))}var f=Object(o.keyframes)(s()),u=o.default.div(l()),d=o.default.div(i(),f,(function(e){return e.delay}));n.a=function(){return a.a.createElement(u,null,a.a.createElement(d,{delay:"0s"}),a.a.createElement(d,{delay:".1s"}),a.a.createElement(d,{delay:".2s"}))}}},0,["vendors~banks~carrierconfig~methodconfig~qrcode~transaction~updater","vendors~banks~carrierconfig~methodconfig~transaction~updater","vendors~banks~carrierconfig~methodconfig~qrcode~transaction","vendors~banks~carrierconfig~methodconfig~transaction","methodconfig"]]); \ No newline at end of file diff --git a/views/js/dist/methodconfig.min.js.map b/views/js/dist/methodconfig.min.js.map deleted file mode 100644 index 4c3e67109..000000000 --- a/views/js/dist/methodconfig.min.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"sources":["webpack://MollieModule.[name]/./src/back/methodconfig/components/PaymentMethod.tsx","webpack://MollieModule.[name]/./src/back/methodconfig/components/PaymentMethodConfig.tsx","webpack://MollieModule.[name]/./src/back/methodconfig/components/PaymentMethods.tsx","webpack://MollieModule.[name]/./src/back/methodconfig/components/PaymentMethodsError.tsx","webpack://MollieModule.[name]/./src/back/methodconfig/components/Switch.tsx","webpack://MollieModule.[name]/./src/back/methodconfig/index.tsx","webpack://MollieModule.[name]/./src/shared/axios.ts","webpack://MollieModule.[name]/./src/shared/components/LoadingDots.tsx"],"names":["Li","styled","li","props","last","legacy","PositionColumn","div","IconColumn","InfoColumn","PositionIndicator","span","ArrowButton","button","ButtonBox","PaymentMethod","enabled","onToggle","code","translations","position","max","name","imageUrl","moveMethod","available","tipEnableSSL","config","_toggleMethod","useEffect","$","prototype","tooltip","e","preventDefault","oldIndex","newIndex","faChevronUp","color","pointerEvents","faChevronDown","width","display","marginTop","float","marginRight","thisPaymentMethodNeedsSSLEnabled","faExclamationTriangle","notAvailable","thisPaymentMethodIsNotAvailableOnPaymentsApi","value","target","SortableElement","PaymentMethodConfig","useState","undefined","methods","setMethods","message","setMessage","_init","ajaxEndpoint","axios","post","resource","action","data","newMethods","newMessage","Error","then","Array","isArray","isEmpty","Section","section","Ul","ul","SortableList","SortableContainer","items","onArrowClicked","maxWidth","map","item","index","image","svg","moduleDir","id","length","PaymentMethods","propsMethods","_onToggle","cloneDeep","method","find","_onArrowClicked","arrayMove","_onSortEnd","_shouldCancelStart","includes","tagName","toUpperCase","input","document","getElementById","JSON","stringify","Code","PaymentMethodsError","retry","cx","unableToLoadMethods","error","faRedoAlt","Span","lighten","rgba","Switch","onChange","yes","no","Promise","all","default","render","create","transformResponse","res","parse","replace","headers","BounceAnimation","keyframes","DotWrapper","Dot","delay","LoadingDots"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAEA;AAqBA,IAAMA,EAAE,GAAGC,yDAAM,CAACC,EAAV,oBAWe,UAACC,KAAD;AAAA,SAAgBA,KAAK,CAACC,IAAN,GAAa,KAAb,GAAqB,KAArC;AAAA,CAXf,EAiBN;AAAA,MAAGC,MAAH,QAAGA,MAAH;AAAA,SAAqBA,MAAM,GAAG,0BAAH,GAAgC,EAA3D;AAAA,CAjBM,CAAR;AAoBA,IAAMC,cAAc,GAAGL,yDAAM,CAACM,GAAV,oBAApB;AAOA,IAAMC,UAAU,GAAGP,yDAAM,CAACM,GAAV,oBAAhB;AAOA,IAAME,UAAU,GAAGR,yDAAM,CAACM,GAAV,oBAAhB;AAOA,IAAMG,iBAAiB,GAAGT,yDAAM,CAACU,IAAV,qBAgBrB;AAAA,MA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AACsI,KAA5B;AAAA,CATZ,CAAT;;AAYA,SAASC,WAAT,GAAyC;AACvC,sBACE,2DAAC,UAAD,qBACE,2DAAC,GAAD;AAAK,SAAK,EAAC;AAAX,IADF,eAEE,2DAAC,GAAD;AAAK,SAAK,EAAC;AAAX,IAFF,eAGE,2DAAC,GAAD;AAAK,SAAK,EAAC;AAAX,IAHF,CADF;AAOD;;AAEcA,0EAAf,E","file":"methodconfig.min.js","sourcesContent":["/**\n * Mollie https://www.mollie.nl\n *\n * @author Mollie B.V. \n * @copyright Mollie B.V.\n * @link https://github.com/mollie/PrestaShop\n * @license https://github.com/mollie/PrestaShop/blob/master/LICENSE.md\n * @codingStandardsIgnoreStart\n */\nimport React, { ReactElement, useEffect } from 'react';\nimport styled from 'styled-components';\nimport { SortableElement } from 'react-sortable-hoc';\nimport { FontAwesomeIcon } from '@fortawesome/react-fontawesome';\nimport { faChevronDown, faChevronUp, faExclamationTriangle } from '@fortawesome/free-solid-svg-icons';\n\nimport Switch from '@methodconfig/components/Switch';\nimport { IMollieMethodConfig, ITranslations } from '@shared/globals';\n\ninterface IProps {\n position: number;\n max: number;\n enabled: boolean;\n available: boolean;\n tipEnableSSL: boolean;\n name: string;\n code: string;\n imageUrl: string;\n translations: ITranslations;\n config: IMollieMethodConfig;\n\n moveMethod: Function;\n onToggle: Function;\n}\n\ndeclare let $: any;\n\nconst Li = styled.li`\ncursor: move!important;\n-webkit-touch-callout: none; /* iOS Safari */\n -webkit-user-select: none; /* Safari */\n -khtml-user-select: none; /* Konqueror HTML */\n -moz-user-select: none; /* Firefox */\n -ms-user-select: none; /* Internet Explorer/Edge */\n user-select: none; /* Non-prefixed version, currently\n supported by Chrome and Opera */\n \nborder: 1px solid #0c95fd;\nborder-bottom-width: ${(props: any) => props.last ? '1px' : '2px'};\nbackground-color: #fff;\ndisplay: table;\nwidth: 100%;\npadding: 5px 0;\nmargin-bottom: -1px;\n${({ legacy }: any) => legacy ? 'width: calc(100% - 2px);' : ''}\n` as any;\n\nconst PositionColumn = styled.div`\ndisplay: table-cell;\nwidth: 80px!important;\nvertical-align: middle!important;\ntext-align: right!important;\n` as any;\n\nconst IconColumn = styled.div`\ndisplay: table-cell;\nwidth: 75px;\ntext-align: left;\nvertical-align: middle;\n` as any;\n\nconst InfoColumn = styled.div`\ndisplay: table-cell;\nheight: 50px;\nvertical-align: middle;\nbox-sizing: border-box;\n` as any;\n\nconst PositionIndicator = styled.span`\nborder: solid 1px #ccc;\nbackground-color: #eee;\npadding: 0;\nfont-size: 1.4em;\ncolor: #aaa;\ncursor: move;\ntext-shadow: #fff 1px 1px;\n-webkit-border-radius: 3px;\nborder-radius: 3px;\n-webkit-box-shadow: rgba(0,0,0,0.2) 0 1px 3px inset;\nbox-shadow: rgba(0,0,0,0.2) 0 1px 3px inset;\ndisplay: block;\nwidth: 40px;\ntext-align: center;\nmargin: 0 auto;\n${({ legacy }: any) => legacy ? 'height: 24px;line-height: 24px;' : ''}\n` as any;\n\nconst ArrowButton = styled.button`\npadding: 1px 5px;\nfont-size: 11px;\nline-height: 1.5;\nborder-radius: 3px;\ncolor: #363A41;\ndisplay: inline-block;\nmargin-bottom: 0;\nfont-weight: normal;\ntext-align: center;\nvertical-align: middle;\ncursor: pointer;\nbackground: #2eacce none;\nborder: 1px solid #0000;\nwhite-space: nowrap;\nfont-family: inherit;\nwidth: 26px!important;\nmargin-top: 6px!important;\nmargin-right: 2px!important;\n\n:hover {\n background-color: #008abd;\n -webkit-box-shadow: none;\n box-shadow: none;\n}\n\n:disabled {\n background-color: #2eacce;\n border-color: #2eacce;\n cursor: not-allowed;\n opacity: .65;\n filter: alpha(opacity=65);\n -webkit-box-shadow: none;\n box-shadow: none;\n}\n${({ legacy }: any) => legacy ? 'height: 20px;line-height: 20px;' : ''}\n` as any;\n\nconst ButtonBox = styled.div`\nmargin: 0 auto;\ntext-align: center;\n` as any;\n\nfunction PaymentMethod({\n enabled,\n onToggle,\n code,\n translations,\n position,\n max,\n name,\n imageUrl,\n moveMethod,\n available,\n tipEnableSSL,\n config: { legacy }\n}: IProps\n): ReactElement<{}> {\n function _toggleMethod(enabled: boolean): void {\n onToggle(code, enabled);\n }\n\n useEffect(() => {\n if (typeof $ !== 'undefined' && typeof $.prototype.tooltip === 'function') {\n $('[data-toggle=tooltip]').tooltip();\n }\n });\n\n return (\n
  • = max} legacy={legacy}>\n \n {position + 1}\n \n {\n e.preventDefault();\n moveMethod({\n oldIndex: position - 1,\n newIndex: position,\n });\n }}\n >\n \n \n = max}\n onClick={(e: any) => {\n e.preventDefault();\n moveMethod({\n oldIndex: position + 1,\n newIndex: position,\n });\n }}\n >\n \n \n \n \n \n \n \n \n
    \n \n {name}\n \n
    \n {!available && tipEnableSSL &&(\n \n {translations.notAvailable}\n

    \n )}\n {!available && !tipEnableSSL &&(\n \n {translations.notAvailable}\n

    \n )}\n {available &&\n _toggleMethod(!!value)}\n legacy={legacy}\n />\n }\n
    \n
  • \n );\n}\n\nexport default SortableElement(PaymentMethod);\n","/**\n * Mollie https://www.mollie.nl\n *\n * @author Mollie B.V. \n * @copyright Mollie B.V.\n * @link https://github.com/mollie/PrestaShop\n * @license https://github.com/mollie/PrestaShop/blob/master/LICENSE.md\n * @codingStandardsIgnoreStart\n */\nimport React, { ReactElement, useEffect, useState } from 'react';\nimport { isEmpty } from 'lodash';\n\nimport PaymentMethods from '@methodconfig/components/PaymentMethods';\nimport PaymentMethodsError from '@methodconfig/components/PaymentMethodsError';\nimport axios from '@shared/axios';\nimport { IMollieMethodConfig, IMolliePaymentMethodItem, ITranslations } from '@shared/globals';\nimport LoadingDots from '@shared/components/LoadingDots';\n\ninterface IProps {\n config: IMollieMethodConfig;\n translations: ITranslations;\n target: string;\n}\n\nexport default function PaymentMethodConfig(props: IProps): ReactElement<{}> {\n const [methods, setMethods] = useState>(undefined);\n const [message, setMessage] = useState(undefined);\n\n async function _init(): Promise {\n try {\n const { config: { ajaxEndpoint } } = props;\n const { data: { methods: newMethods, message: newMessage } = { methods: null, message: '' } } = await axios.post(ajaxEndpoint, {\n resource: 'orders',\n action: 'retrieve',\n });\n\n setMethods(newMethods);\n setMessage(newMessage);\n } catch (e) {\n setMethods(null);\n setMessage((e instanceof Error && typeof e.message !== 'undefined') ? e.message : 'Check the browser console for errors');\n }\n }\n\n useEffect(() => {\n _init().then();\n }, []);\n\n const { target, translations, config } = props;\n\n if (typeof methods === 'undefined') {\n return ;\n }\n\n if (methods === null || !Array.isArray(methods) || (Array.isArray(methods) && isEmpty(methods))) {\n return ;\n }\n\n return (\n \n );\n}\n","/**\n * Mollie https://www.mollie.nl\n *\n * @author Mollie B.V. \n * @copyright Mollie B.V.\n * @link https://github.com/mollie/PrestaShop\n * @license https://github.com/mollie/PrestaShop/blob/master/LICENSE.md\n * @codingStandardsIgnoreStart\n */\nimport React, { ReactElement, useEffect, useState } from 'react';\nimport { arrayMove, SortableContainer } from 'react-sortable-hoc';\nimport styled from 'styled-components';\nimport { cloneDeep, find } from 'lodash';\n\nimport PaymentMethod from '@methodconfig/components/PaymentMethod';\nimport {\n IMollieMethodConfig,\n IMolliePaymentMethodConfigItem,\n IMolliePaymentMethodItem,\n ITranslations\n} from '@shared/globals';\n\nconst Section = styled.section`\nborder: 2px solid #0c95fd!important;\n` as any;\n\nconst Ul = styled.ul`\nmargin: -1px!important;\npadding: 0;\n` as any;\n\nconst SortableList = SortableContainer(({ items, translations, onArrowClicked, onToggle, config }: any): ReactElement<{}> => {\n return (\n
    \n
      \n {items.map((item: IMolliePaymentMethodItem, index: number) => (\n \n ))}\n
    \n
    \n );\n});\n\ninterface IProps {\n methods: Array;\n translations: ITranslations;\n target: string;\n config: IMollieMethodConfig;\n}\n\nexport default function PaymentMethods({ translations, config, methods: propsMethods, target }: IProps): ReactElement<{}> {\n const [methods, setMethods] = useState(propsMethods);\n\n function _onToggle(id: string, enabled: boolean): void {\n const newMethods = cloneDeep(methods);\n const method = find(newMethods, item => item.id === id);\n method.enabled = enabled;\n setMethods(newMethods);\n }\n\n function _onArrowClicked({ oldIndex, newIndex}: any): void {\n setMethods(arrayMove(cloneDeep(methods), oldIndex, newIndex));\n }\n\n function _onSortEnd({ oldIndex, newIndex }: any): void {\n setMethods(arrayMove(cloneDeep(methods), oldIndex, newIndex));\n }\n\n function _shouldCancelStart({ target }: any): boolean {\n return ['I', 'SVG', 'BUTTON', 'INPUT', 'SELECT', 'LABEL'].includes(target.tagName.toUpperCase());\n }\n\n useEffect(() => {\n const input: HTMLInputElement = document.getElementById(target) as HTMLInputElement;\n if (input != null) {\n input.value = JSON.stringify(methods.map((method: IMolliePaymentMethodItem, index: number): IMolliePaymentMethodConfigItem => ({\n ...method,\n position: index,\n })));\n }\n });\n\n return (\n \n );\n}\n","/**\n * Mollie https://www.mollie.nl\n *\n * @author Mollie B.V. \n * @copyright Mollie B.V.\n * @link https://github.com/mollie/PrestaShop\n * @license https://github.com/mollie/PrestaShop/blob/master/LICENSE.md\n * @codingStandardsIgnoreStart\n */\nimport React, { ReactElement } from 'react';\nimport cx from 'classnames';\nimport { faRedoAlt } from '@fortawesome/free-solid-svg-icons';\nimport { FontAwesomeIcon } from '@fortawesome/react-fontawesome';\nimport styled from 'styled-components';\n\nimport { IMollieMethodConfig, ITranslations } from '@shared/globals';\n\ninterface IProps {\n translations: ITranslations;\n config: IMollieMethodConfig;\n message: string;\n retry: Function;\n}\n\nconst Code = styled.code`\n font-size: 14px!important;\n` as any;\n\nexport default function PaymentMethodsError({ translations, config: { legacy }, retry, message }: IProps): ReactElement<{}> {\n return (\n \n {translations.unableToLoadMethods} \n {message && <>

    {translations.error}: {message}

    }\n {\n e.preventDefault();\n retry();\n }}\n >\n {!legacy && } {translations.retry}?\n \n
    \n );\n}\n","/**\n * Mollie https://www.mollie.nl\n *\n * @author Mollie B.V. \n * @copyright Mollie B.V.\n * @link https://github.com/mollie/PrestaShop\n * @license https://github.com/mollie/PrestaShop/blob/master/LICENSE.md\n * @codingStandardsIgnoreStart\n */\nimport React, { ReactElement } from 'react';\nimport styled from 'styled-components';\nimport { lighten, rgba } from 'polished';\n\nimport { ITranslations } from '@shared/globals';\n\ninterface IProps {\n enabled: boolean;\n onChange: any;\n id: string;\n translations: ITranslations;\n legacy: boolean;\n}\n\nconst Span = styled.span`\ndisplay: block;\nheight: 26px;\nfloat: right;\nwidth: 100px;\nright: 20px;\n\na {\n display: block;\n transition: all 0.3s ease-out;\n}\nlabel,\n> span {\n line-height: 26px;\n vertical-align: middle;\n}\n\n* {\n box-sizing: border-box; \n outline: 0!important\n}\n\nposition: relative;\ninput {\n position: absolute;\n opacity: 0;\n}\n\nlabel {\n position: relative;\n z-index: 2;\n width: 50%;\n height: 100%;\n margin: ${({ legacy }: IProps) => legacy ? '-2px' : '0'} 0 0 0;\n text-align: center;\n float: left;\n}\n\na {\n position: absolute;\n top: 0;\n padding: 0;\n z-index: 1;\n width: 50%;\n height: 100%;\n color: white;\n border: solid 1px #279CBB!important;\n background-color: #2EACCE!important;\n left: 0;\n border-radius: 3px!important;\n}\n\ninput:last-of-type:checked ~ a {\n border: solid 1px #CA6F6F!important;\n background-color: #E08F95!important;\n left: 50% ;\n border-radius: 3px!important;\n}\n\ninput:disabled ~ a {\n border: solid 1px lighten(gray,20%) !important;\n background-color: lighten(gray,30%)\t!important;\n // box-shadow: ${lighten(0.2, 'gray')} 0 -1px 0 inset !important;\n}\n\nmargin-top: ${({ legacy }: IProps) => legacy ? '0' : '3px'};\nbackground-color: #eee;\nborder-radius: 3px!important;\ncolor: #555;\ntext-align: center;\nbox-shadow: ${rgba('black', 0.15)} 0 1px 4px 1px inset;\n\nlabel {\n text-transform: uppercase;\n color: #bbb;\n font-weight: 400;\n cursor: pointer;\n transition: color 0.2s ease-out;\n}\n\ninput:checked + label {\n color: white\n}\n\n> span {\n color: #666;\n text-transform: uppercase;\n cursor: pointer;\n}\n` as any;\n\nexport default function Switch(props: IProps): ReactElement<{}> {\n const { enabled, onChange, id, translations } = props;\n\n return (\n \n \n \n {translations.yes.toUpperCase()}\n \n \n \n {translations.no.toUpperCase()}\n {\n // eslint-disable-next-line jsx-a11y/anchor-has-content\n } \n \n );\n}\n","/**\n * Mollie https://www.mollie.nl\n *\n * @author Mollie B.V. \n * @copyright Mollie B.V.\n * @link https://github.com/mollie/PrestaShop\n * @license https://github.com/mollie/PrestaShop/blob/master/LICENSE.md\n * @codingStandardsIgnoreStart\n */\nimport React from 'react';\nimport { render } from 'react-dom';\n\nimport { IMollieMethodConfig, ITranslations } from '@shared/globals';\n\nexport default (target: string, config: IMollieMethodConfig, translations: ITranslations): void => {\n (async function () {\n const [\n { default: PaymentMethodConfig },\n ] = await Promise.all([\n import(/* webpackPrefetch: true, webpackChunkName: \"methodconfig\" */ '@methodconfig/components/PaymentMethodConfig'),\n ]);\n\n render(, document.getElementById(`${target}_container`));\n }());\n};\n","/**\n * Mollie https://www.mollie.nl\n *\n * @author Mollie B.V. \n * @copyright Mollie B.V.\n * @link https://github.com/mollie/PrestaShop\n * @license https://github.com/mollie/PrestaShop/blob/master/LICENSE.md\n * @codingStandardsIgnoreStart\n */\nimport axios from 'axios';\n\nexport default axios.create({\n transformResponse: [res => JSON.parse(res.replace(/^[^{[]*/mg, '').replace(/([^}\\]]*)$/mg, ''))],\n headers: {\n 'X-Requested-With': 'XMLHttpRequest',\n 'Content-Type': 'application/json',\n 'Accept': 'application/json',\n },\n});\n\n","/**\n * Mollie https://www.mollie.nl\n *\n * @author Mollie B.V. \n * @copyright Mollie B.V.\n * @link https://github.com/mollie/PrestaShop\n * @license https://github.com/mollie/PrestaShop/blob/master/LICENSE.md\n * @codingStandardsIgnoreStart\n */\nimport React, { ReactElement } from 'react';\nimport styled, { keyframes } from 'styled-components';\n\nconst BounceAnimation = keyframes`\n 0% { margin-bottom: 0; }\n 50% { margin-bottom: 15px }\n 100% { margin-bottom: 0 }\n` as any;\n\nconst DotWrapper = styled.div`\n display: flex;\n align-items: flex-end;\n min-height: 30px;\n` as any;\n\ninterface IDotProps {\n delay: string;\n}\n\nconst Dot = styled.div`\n background-color: black;\n border-radius: 50%;\n width: 10px;\n height: 10px;\n margin: 0 5px;\n opacity: 0.7;\n /* Animation */\n animation: ${BounceAnimation} 0.5s linear infinite;\n animation-delay: ${(props: IDotProps) => props.delay};\n` as any;\n\nfunction LoadingDots(): ReactElement<{}> {\n return (\n \n \n \n \n \n );\n}\n\nexport default LoadingDots;\n"],"sourceRoot":""} \ No newline at end of file diff --git a/views/js/dist/qrcode.min.js b/views/js/dist/qrcode.min.js deleted file mode 100644 index 704b49df0..000000000 --- a/views/js/dist/qrcode.min.js +++ /dev/null @@ -1,10 +0,0 @@ -/*! - * - * Mollie https://www.mollie.nl - * @author Mollie B.V. - * @copyright Mollie B.V. - * @link https://github.com/mollie/PrestaShop - * @license https://github.com/mollie/PrestaShop/blob/master/LICENSE.md - * - */ -(window.webpackJsonP_mollie=window.webpackJsonP_mollie||[]).push([["qrcode"],{51:function(r,n,e){"use strict";e.r(n);e(69),e(65),e(70),e(71),e(66),e(67),e(23),e(61),e(68),e(22),e(72),e(24);var t=e(56),o=e.n(t),a=e(84);function i(r,n){return function(r){if(Array.isArray(r))return r}(r)||function(r,n){if("undefined"==typeof Symbol||!(Symbol.iterator in Object(r)))return;var e=[],t=!0,o=!1,a=void 0;try{for(var i,c=r[Symbol.iterator]();!(t=(i=c.next()).done)&&(e.push(i.value),!n||e.length!==n);t=!0);}catch(r){o=!0,a=r}finally{try{t||null==c.return||c.return()}finally{if(o)throw a}}return e}(r,n)||function(r,n){if(!r)return;if("string"==typeof r)return c(r,n);var e=Object.prototype.toString.call(r).slice(8,-1);"Object"===e&&r.constructor&&(e=r.constructor.name);if("Map"===e||"Set"===e)return Array.from(r);if("Arguments"===e||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(e))return c(r,n)}(r,n)||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 c(r,n){(null==n||n>r.length)&&(n=r.length);for(var e=0,t=new Array(n);e\n * @copyright Mollie B.V.\n * @link https://github.com/mollie/PrestaShop\n * @license https://github.com/mollie/PrestaShop/blob/master/LICENSE.md\n * @codingStandardsIgnoreStart\n */\nimport React from 'react';\nimport { render } from 'react-dom';\n\nexport default function (target: string|HTMLElement, title: string, center: boolean): void {\n const elem = (typeof target === 'string' ? document.getElementById(target) : target);\n (async function () {\n const [\n { default: QrCode },\n ] = await Promise.all([\n import(/* webpackChunkName: \"banks\" */ '@qrcode/components/QrCode'),\n ]);\n render(\n ,\n elem\n );\n }());\n\n}\n"],"sourceRoot":""} \ No newline at end of file diff --git a/views/js/dist/transaction.min.js b/views/js/dist/transaction.min.js deleted file mode 100644 index d35828f7d..000000000 --- a/views/js/dist/transaction.min.js +++ /dev/null @@ -1,10 +0,0 @@ -/*! - * - * Mollie https://www.mollie.nl - * @author Mollie B.V. - * @copyright Mollie B.V. - * @link https://github.com/mollie/PrestaShop - * @license https://github.com/mollie/PrestaShop/blob/master/LICENSE.md - * - */ -(window.webpackJsonP_mollie=window.webpackJsonP_mollie||[]).push([["transaction"],{101:function(e,t,r){"use strict";r.d(t,"a",(function(){return s})),r.d(t,"b",(function(){return i}));var n=r(123),o=function(){return Math.random().toString(36).substring(7).split("").join(".")},u={INIT:"@@redux/INIT"+o(),REPLACE:"@@redux/REPLACE"+o(),PROBE_UNKNOWN_ACTION:function(){return"@@redux/PROBE_UNKNOWN_ACTION"+o()}};function a(e){if("object"!=typeof e||null===e)return!1;for(var t=e;null!==Object.getPrototypeOf(t);)t=Object.getPrototypeOf(t);return Object.getPrototypeOf(e)===t}function i(e,t,r){var o;if("function"==typeof t&&"function"==typeof r||"function"==typeof r&&"function"==typeof arguments[3])throw new Error("It looks like you are passing several store enhancers to createStore(). This is not supported. Instead, compose them together to a single function.");if("function"==typeof t&&void 0===r&&(r=t,t=void 0),void 0!==r){if("function"!=typeof r)throw new Error("Expected the enhancer to be a function.");return r(i)(e,t)}if("function"!=typeof e)throw new Error("Expected the reducer to be a function.");var c=e,s=t,f=[],d=f,l=!1;function p(){d===f&&(d=f.slice())}function h(){if(l)throw new Error("You may not call store.getState() while the reducer is executing. The reducer has already received the state as an argument. Pass it down from the top reducer instead of reading it from the store.");return s}function y(e){if("function"!=typeof e)throw new Error("Expected the listener to be a function.");if(l)throw new Error("You may not call store.subscribe() while the reducer is executing. If you would like to be notified after the store has been updated, subscribe from a component and invoke store.getState() in the callback to access the latest state. See https://redux.js.org/api-reference/store#subscribelistener for more details.");var t=!0;return p(),d.push(e),function(){if(t){if(l)throw new Error("You may not unsubscribe from a store listener while the reducer is executing. See https://redux.js.org/api-reference/store#subscribelistener for more details.");t=!1,p();var r=d.indexOf(e);d.splice(r,1),f=null}}}function v(e){if(!a(e))throw new Error("Actions must be plain objects. Use custom middleware for async actions.");if(void 0===e.type)throw new Error('Actions may not have an undefined "type" property. Have you misspelled a constant?');if(l)throw new Error("Reducers may not dispatch actions.");try{l=!0,s=c(s,e)}finally{l=!1}for(var t=f=d,r=0;re.length)&&(t=e.length);for(var r=0,n=new Array(t);re.length)&&(t=e.length);for(var r=0,n=new Array(t);r")||this}return function(e,t){function r(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}(t,e),t}(Error);function f(e){return e+1}var d=(i=function(){var e=Object(n.createContext)(null);return{StoreContext:e,useDispatch:function(){var t=Object(n.useContext)(e);if(!t)throw new s;return t.dispatch},useMappedState:function(t){var r=Object(n.useContext)(e);if(!r)throw new s;var o=Object(n.useMemo)((function(){return e=t,function(t){return n!==t&&(n=t,r=e(t)),r};var e,r,n}),[t]),i=r.getState(),d=o(i),l=Object(n.useState)(0)[1],p=Object(n.useRef)(d),h=Object(n.useRef)(o);return c((function(){p.current=d,h.current=o})),c((function(){var e=!1,t=function(){e||(function(e,t){if(a(e,t))return!0;if("object"!=typeof e||null===e||"object"!=typeof t||null===t)return!1;var r=Object.keys(e),n=Object.keys(t);if(r.length!==n.length)return!1;for(var o=0;o0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;switch(t.type){case u.ReduxActionTypes.updateTranslations:return t.translations;default:return e}},config:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;switch(t.type){case u.ReduxActionTypes.updateConfig:return t.config;default:return e}},order:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,t=arguments.length>1?arguments[1]:void 0;switch(t.type){case u.ReduxActionTypes.updateOrder:return t.order;default:return e}},payment:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,t=arguments.length>1?arguments[1]:void 0;switch(t.type){case u.ReduxActionTypes.updatePayment:return t.payment;default:return e}},currencies:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;switch(t.type){case u.ReduxActionTypes.updateCurrencies:return t.currencies;default:return e}},viewportWidth:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:a,t=arguments.length>1?arguments[1]:void 0;switch(t.type){case u.ReduxActionTypes.updateViewportWidth:return t.width;default:return e}},orderWarning:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;switch(t.type){case u.ReduxActionTypes.updateWarning:return t.orderWarning;default:return e}}}),c=window.__REDUX_DEVTOOLS_EXTENSION__;n=Object(o.b)(i,c&&c());t.default=n},88:function(e,t,r){"use strict";r(62);var n=r(56),o=r.n(n),u=r(60);function a(){var e=s(["\n background-color: black;\n border-radius: 50%;\n width: 10px;\n height: 10px;\n margin: 0 5px;\n opacity: 0.7;\n /* Animation */\n animation: "," 0.5s linear infinite;\n animation-delay: ",";\n"]);return a=function(){return e},e}function i(){var e=s(["\n display: flex;\n align-items: flex-end;\n min-height: 30px;\n"]);return i=function(){return e},e}function c(){var e=s(["\n 0% { margin-bottom: 0; }\n 50% { margin-bottom: 15px }\n 100% { margin-bottom: 0 }\n"]);return c=function(){return e},e}function s(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}var f=Object(u.keyframes)(c()),d=u.default.div(i()),l=u.default.div(a(),f,(function(e){return e.delay}));t.a=function(){return o.a.createElement(d,null,o.a.createElement(l,{delay:"0s"}),o.a.createElement(l,{delay:".1s"}),o.a.createElement(l,{delay:".2s"}))}}}]); \ No newline at end of file diff --git a/views/js/dist/transaction.min.js.map b/views/js/dist/transaction.min.js.map deleted file mode 100644 index f112efee4..000000000 --- a/views/js/dist/transaction.min.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"sources":["webpack://MollieModule.[name]/./src/back/transaction/index.tsx","webpack://MollieModule.[name]/./src/back/transaction/store/actions.ts","webpack://MollieModule.[name]/./src/back/transaction/store/index.ts","webpack://MollieModule.[name]/./src/back/transaction/store/order.ts"],"names":["MolliePanel","lazy","transactionInfo","target","config","translations","currencies","Promise","all","store","default","updateConfig","updateCurrencies","updateOrder","updatePayment","updateTranslations","updateViewportWidth","retrieveOrder","retrievePayment","window","addEventListener","throttle","dispatch","innerWidth","transactionId","substr","render","document","querySelector","ReduxActionTypes","type","order","payment","width","updateWarning","status","orderWarning","devTools","__REDUX_DEVTOOLS_EXTENSION__","createStore","orderApp","state","action","initialViewportwidth","viewportWidth","checkoutApp","combineReducers"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAIA;AAGA,IAAMA,WAAW,gBAAGC,mDAAI,CAAC;AAAA,SAAM,0MAAN;AAAA,CAAD,CAAxB;AAEe,SAASC,eAAT,CACbC,MADa,EAEbC,MAFa,EAGbC,YAHa,EAIbC,UAJa,EAKP;AACL;AAAA;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,mBAYWC,OAAO,CAACC,GAAR,CAAY,CACpB,6HADoB,EAEpB,uIAFoB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;AAElCD,QAAM,EAANA,MAFkC;AAGlC2B,OAAK,EAALA,KAHkC;AAIlCC,SAAO,EAAPA,OAJkC;AAKlC1B,YAAU,EAAVA,UALkC;AAMlCsC,eAAa,EAAbA,aANkC;AAOlCR,cAAY,EAAZA;AAPkC,CAAD,CAAnC;AAUeS,0EAAf,E","file":"transaction.min.js","sourcesContent":["/**\n * Mollie https://www.mollie.nl\n *\n * @author Mollie B.V. \n * @copyright Mollie B.V.\n * @link https://github.com/mollie/PrestaShop\n * @license https://github.com/mollie/PrestaShop/blob/master/LICENSE.md\n * @codingStandardsIgnoreStart\n */\nimport React, { lazy, Suspense } from 'react';\nimport { render } from 'react-dom';\nimport { StoreContext } from 'redux-react-hook'\nimport { throttle } from 'lodash';\n\nimport { ICurrencies, IMollieOrderConfig, ITranslations } from '@shared/globals';\n\nimport LoadingDots from '@shared/components/LoadingDots';\nimport {updateWarning} from \"@transaction/store/actions\";\n\nconst MolliePanel = lazy(() => import('@transaction/components/MolliePanel'));\n\nexport default function transactionInfo (\n target: any,\n config: IMollieOrderConfig,\n translations: ITranslations,\n currencies: ICurrencies\n): void {\n (async function () {\n const [\n { default: store },\n {\n updateConfig,\n updateCurrencies,\n updateOrder,\n updatePayment,\n updateTranslations,\n updateViewportWidth,\n },\n { retrieveOrder, retrievePayment },\n ] = await Promise.all([\n import(/* webpackPrefetch: true, webpackChunkName: \"transaction\" */ '@transaction/store'),\n import(/* webpackPrefetch: true, webpackChunkName: \"transaction\" */ '@transaction/store/actions'),\n import(/* webpackPrefetch: true, webpackChunkName: \"transaction\" */ '@transaction/misc/ajax'),\n ]);\n\n // Listen for window resizes\n window.addEventListener('resize', throttle(() => {\n store.dispatch(updateViewportWidth(window.innerWidth));\n }, 200));\n\n store.dispatch(updateCurrencies(currencies));\n store.dispatch(updateTranslations(translations));\n store.dispatch(updateConfig(config));\n\n const { transactionId } = config;\n if (transactionId.substr(0, 3) === 'ord') {\n store.dispatch(updateOrder(await retrieveOrder(transactionId)));\n } else {\n store.dispatch(updatePayment(await retrievePayment(transactionId)));\n }\n\n render(\n \n }>\n \n \n ,\n typeof target === 'string' ? document.querySelector(target) : target\n );\n }());\n};\n","/**\n * Mollie https://www.mollie.nl\n *\n * @author Mollie B.V. \n * @copyright Mollie B.V.\n * @link https://github.com/mollie/PrestaShop\n * @license https://github.com/mollie/PrestaShop/blob/master/LICENSE.md\n * @codingStandardsIgnoreStart\n */\n// Action types\nimport { ICurrencies, IMollieApiOrder, IMollieApiPayment, IMollieOrderConfig, ITranslations } from '@shared/globals';\n\nexport enum ReduxActionTypes {\n updateTranslations = 'UPDATE_MOLLIE_ORDER_TRANSLATIONS',\n updateConfig = 'UPDATE_MOLLIE_ORDER_CONFIG',\n updateOrder = 'UPDATE_MOLLIE_ORDER',\n updatePayment = 'UPDATE_MOLLIE_PAYMENT',\n updateWarning = 'UPDATE_MOLLIE_WARNING',\n updateCurrencies = 'UPDATE_MOLLIE_CURRENCIES',\n updateViewportWidth = 'UPDATE_MOLLIE_VIEWPORT_WIDTH',\n}\n\n// Action creators\nexport interface IUpdateTranslationsAction {\n type: string;\n translations: ITranslations;\n}\n\nexport interface IUpdateConfigAction {\n type: string;\n config: IMollieOrderConfig;\n}\n\nexport interface IUpdateOrderAction {\n type: string;\n order: IMollieApiOrder;\n}\n\nexport interface IUpdatePaymentAction {\n type: string;\n payment: IMollieApiPayment;\n}\n\nexport interface IUpdateWarningAction {\n type: string;\n orderWarning: string;\n}\n\nexport interface IUpdateCurrenciesAction {\n type: string;\n currencies: ICurrencies;\n}\n\nexport interface IUpdateViewportWidthAction {\n type: string;\n width: number;\n}\n\nexport function updateTranslations(translations: ITranslations): IUpdateTranslationsAction {\n return { type: ReduxActionTypes.updateTranslations, translations };\n}\n\nexport function updateCurrencies(currencies: ICurrencies): IUpdateCurrenciesAction {\n return { type: ReduxActionTypes.updateCurrencies, currencies };\n}\n\nexport function updateConfig(config: IMollieOrderConfig): IUpdateConfigAction {\n return { type: ReduxActionTypes.updateConfig, config };\n}\n\nexport function updateOrder(order: IMollieApiOrder): IUpdateOrderAction {\n return { type: ReduxActionTypes.updateOrder, order };\n}\n\nexport function updatePayment(payment: IMollieApiPayment): IUpdatePaymentAction {\n return { type: ReduxActionTypes.updatePayment, payment };\n}\n\nexport function updateViewportWidth(width: number): IUpdateViewportWidthAction {\n return { type: ReduxActionTypes.updateViewportWidth, width };\n}\n\nexport function updateWarning(status: string): IUpdateWarningAction {\n return { type: ReduxActionTypes.updateWarning, orderWarning: status };\n}\n","/**\n * Mollie https://www.mollie.nl\n *\n * @author Mollie B.V. \n * @copyright Mollie B.V.\n * @link https://github.com/mollie/PrestaShop\n * @license https://github.com/mollie/PrestaShop/blob/master/LICENSE.md\n * @codingStandardsIgnoreStart\n */\nimport { createStore, Store } from 'redux';\nimport orderApp from './order';\n\ndeclare let window: any;\n\nlet store: Store;\nconst devTools = window.__REDUX_DEVTOOLS_EXTENSION__;\n\nstore = createStore(\n orderApp,\n devTools && devTools(),\n);\n\nexport default store;\n","/**\n * Mollie https://www.mollie.nl\n *\n * @author Mollie B.V. \n * @copyright Mollie B.V.\n * @link https://github.com/mollie/PrestaShop\n * @license https://github.com/mollie/PrestaShop/blob/master/LICENSE.md\n * @codingStandardsIgnoreStart\n */\nimport { combineReducers } from 'redux';\nimport {\n IUpdateConfigAction,\n IUpdateCurrenciesAction,\n IUpdateOrderAction,\n IUpdatePaymentAction,\n IUpdateTranslationsAction,\n IUpdateViewportWidthAction, IUpdateWarningAction,\n ReduxActionTypes\n} from '@transaction/store/actions';\nimport {\n ICurrencies,\n IMollieApiOrder,\n IMollieApiPayment,\n IMollieOrderConfig,\n IMollieOrderDetails,\n ITranslations\n} from '@shared/globals';\n\ndeclare global {\n interface IMollieOrderState {\n translations: ITranslations;\n config: IMollieOrderConfig;\n viewportWidth: number;\n order: IMollieApiOrder;\n payment: IMollieApiPayment;\n currencies: ICurrencies;\n orderWarning: string;\n }\n}\n\nconst translations = (state: any = {}, action: IUpdateTranslationsAction): ITranslations => {\n switch (action.type) {\n case ReduxActionTypes.updateTranslations:\n return action.translations;\n default:\n return state;\n }\n};\n\nconst config = (state: any = {}, action: IUpdateConfigAction): IMollieOrderConfig => {\n switch (action.type) {\n case ReduxActionTypes.updateConfig:\n return action.config;\n default:\n return state;\n }\n};\n\nconst order = (state: IMollieApiOrder = null, action: IUpdateOrderAction): IMollieApiOrder => {\n switch (action.type) {\n case ReduxActionTypes.updateOrder:\n return action.order;\n default:\n return state;\n }\n};\n\nconst payment = (state: IMollieApiPayment = null, action: IUpdatePaymentAction): IMollieApiPayment => {\n switch (action.type) {\n case ReduxActionTypes.updatePayment:\n return action.payment;\n default:\n return state;\n }\n};\n\nconst currencies = (state: ICurrencies = {}, action: IUpdateCurrenciesAction): ICurrencies => {\n switch (action.type) {\n case ReduxActionTypes.updateCurrencies:\n return action.currencies;\n default:\n return state;\n }\n};\n\nconst initialViewportwidth = window.innerWidth;\nconst viewportWidth = (state = initialViewportwidth, action: IUpdateViewportWidthAction): number => {\n switch (action.type) {\n case ReduxActionTypes.updateViewportWidth:\n return action.width;\n default:\n return state;\n }\n};\n\nconst orderWarning = (state: any = {}, action: IUpdateWarningAction): string => {\n switch (action.type) {\n case ReduxActionTypes.updateWarning:\n return action.orderWarning;\n default:\n return state;\n }\n};\n\nconst checkoutApp = combineReducers({\n translations,\n config,\n order,\n payment,\n currencies,\n viewportWidth,\n orderWarning,\n});\n\nexport default checkoutApp;\n"],"sourceRoot":""} \ No newline at end of file diff --git a/views/js/dist/transactionOrder.min.js b/views/js/dist/transactionOrder.min.js deleted file mode 100644 index a132f4c6c..000000000 --- a/views/js/dist/transactionOrder.min.js +++ /dev/null @@ -1,10 +0,0 @@ -/*! - * - * Mollie https://www.mollie.nl - * @author Mollie B.V. - * @copyright Mollie B.V. - * @link https://github.com/mollie/PrestaShop - * @license https://github.com/mollie/PrestaShop/blob/master/LICENSE.md - * - */ -(window.webpackJsonP_mollie=window.webpackJsonP_mollie||[]).push([["transactionOrder"],{128:function(e,t,n){"use strict";n.d(t,"a",(function(){return c}));var r=n(56),a=n.n(r),l=n(59);function c(){var e=Object(l.c)((function(e){return{orderWarning:e.orderWarning,translations:e.translations}})),t=e.orderWarning,n=e.translations,r="";switch(t){case"refunded":r=n.refundSuccessMessage;break;case"shipped":r=n.shipmentWarning;break;case"canceled":r=n.cancelWarning;break;default:r=""}return r?a.a.createElement(a.a.Fragment,null,a.a.createElement("div",{className:"alert alert-success"},r)):a.a.createElement(a.a.Fragment,null)}},272:function(e,t,n){"use strict";n.r(t),n.d(t,"default",(function(){return me}));n(61),n(68),n(22),n(110);var r=n(56),a=n.n(r),l=n(59),c=n(76),i=n.n(c),o=(n(62),n(60)),u=n(127),s=n.n(u),d=n(63),m=n(89);function f(){var e=Object(l.c)((function(e){return{order:e.order,currencies:e.currencies,translations:e.translations,config:e.config}})),t=e.translations,n=e.order,r=e.currencies,c=e.config.legacy;return a.a.createElement(a.a.Fragment,null,c&&a.a.createElement("h3",null,t.transactionInfo),!c&&a.a.createElement("h4",null,t.transactionInfo),a.a.createElement("strong",null,t.transactionId),": ",a.a.createElement("span",null,n.id),a.a.createElement("br",null),a.a.createElement("strong",null,t.method),": ",a.a.createElement("span",null,n.details.remainderMethod?n.details.remainderMethod:n.method),a.a.createElement("br",null),a.a.createElement("strong",null,t.date),": ",a.a.createElement("span",null,s()(n.createdAt).format("YYYY-MM-DD HH:mm:ss")),a.a.createElement("br",null),a.a.createElement("strong",null,t.amount),": ",a.a.createElement("span",null,Object(m.a)(parseFloat(n.amount.value),Object(d.get)(r,n.amount.currency))),a.a.createElement("br",null),a.a.createElement("strong",null,t.refundable),": ",a.a.createElement("span",null,Object(m.a)(parseFloat(n.availableRefundAmount.value),Object(d.get)(r,n.availableRefundAmount.currency))),a.a.createElement("br",null),(n.details.remainderMethod||n.details.issuer)&&a.a.createElement(a.a.Fragment,null,a.a.createElement("br",null),a.a.createElement("h4",null,t.voucherInfo)),n.details.issuer&&a.a.createElement(a.a.Fragment,null,a.a.createElement("span",null,a.a.createElement("strong",null,t.issuer),": ",a.a.createElement("span",null,n.details.issuer),a.a.createElement("br",null))),n.details.vouchers&&n.details.vouchers.map((function(e){return a.a.createElement(a.a.Fragment,null,a.a.createElement("span",null,a.a.createElement("strong",null,t.amount),": ",a.a.createElement("span",null,Object(m.a)(parseFloat(e.amount.value),Object(d.get)(r,e.amount.currency))),a.a.createElement("br",null)))})))}function p(){var e=function(e,t){t||(t=e.slice(0));return Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}(["\n@media only screen and (min-width: 992px) {\n margin-left: -5px!important;\n margin-right: 5px!important;\n}\n"]);return p=function(){return e},e}var b=o.default.div(p());function g(){var e=Object(l.c)((function(e){return{translations:e.translations,order:e.order,currencies:e.currencies,config:e.config}})),t=e.translations;return e.config.legacy?a.a.createElement(f,null):a.a.createElement(b,{className:"col-md-3"},a.a.createElement("div",{className:"panel card"},a.a.createElement("div",{className:"panel-heading card-header"},t.paymentInfo),a.a.createElement("div",{className:"card-body"},a.a.createElement(f,null))))}n(75),n(69),n(70),n(71),n(66),n(67),n(23),n(72),n(24),n(65);var y=n(84),h=n(91),v=n.n(h);function E(){var e=Object(r.useCallback)(Object(l.c)((function(e){return{translations:e.translations,viewportWidth:e.viewportWidth}})),[]),t=e.translations,n=e.viewportWidth;return a.a.createElement("thead",null,a.a.createElement("tr",null,a.a.createElement("th",null,a.a.createElement("span",{className:"title_box"},a.a.createElement("strong",null,t.product))),a.a.createElement("th",null,a.a.createElement("span",{className:"title_box"},t.status)),n<1390&&a.a.createElement("th",null,a.a.createElement("span",{className:"title_box"},a.a.createElement("span",null,t.shipped),a.a.createElement("br",null)," ",a.a.createElement("span",{style:{whiteSpace:"nowrap"}},"/ ",t.canceled),a.a.createElement("br",null)," ",a.a.createElement("span",{style:{whiteSpace:"nowrap"}},"/ ",t.refunded))),n>=1390&&a.a.createElement(a.a.Fragment,null,a.a.createElement("th",null,a.a.createElement("span",{className:"title_box"},t.shipped)),a.a.createElement("th",null,a.a.createElement("span",{className:"title_box"},t.canceled)),a.a.createElement("th",null,a.a.createElement("span",{className:"title_box"},t.refunded))),a.a.createElement("th",null,a.a.createElement("span",{className:"title_box"},t.unitPrice)),a.a.createElement("th",null,a.a.createElement("span",{className:"title_box"},t.vatAmount)),a.a.createElement("th",null,a.a.createElement("span",{className:"title_box"},t.totalAmount)),a.a.createElement("th",null)))}n(104);var w=n(81),O=n(82);function j(e){var t=e.loading,n=e.ship,r=e.cancel,c=e.refund,i=Object(l.c)((function(e){return{translations:e.translations,currencies:e.currencies,order:e.order,config:e.config}})),o=i.translations,u=i.order,s=(i.currencies,i.config.legacy);function m(){for(var e=0,t=Object.values(u.lines.filter((function(e){return"discount"!==e.type})));e=1)return!0}return!1}function f(){for(var e=0,t=Object.values(u.lines.filter((function(e){return"discount"!==e.type})));e=1)return!0}return!1}function p(){for(var e=0,t=Object.values(u.lines.filter((function(e){return"discount"!==e.type})));e=1&&parseFloat(u.availableRefundAmount.value)>0)return!0}return!1}return a.a.createElement("tfoot",null,a.a.createElement("tr",null,a.a.createElement("td",{colSpan:10},a.a.createElement("div",{className:"btn-group",role:"group"},a.a.createElement("button",{type:"button",onClick:function(){return n(Object(d.compact)(u.lines.filter((function(e){return"discount"!==e.type}))))},className:"btn btn-primary",disabled:t||!f(),style:{cursor:t||!f()?"not-allowed":"pointer",opacity:t||!f()?.8:1}},s&&a.a.createElement("img",{src:"../img/admin/delivery.gif",alt:"",style:{filter:t||!f()?"grayscale(100%)":null,WebkitFilter:t||!f()?"grayscale(100%)":null}}),!s&&a.a.createElement(w.a,{icon:t?O.c:O.h,spin:t})," ",o.shipAll),a.a.createElement("button",{type:"button",onClick:function(){return c(Object(d.compact)(u.lines.filter((function(e){return"discount"!==e.type}))))},className:"btn btn-default",disabled:t||!p(),style:{cursor:t||!p()?"not-allowed":"pointer",opacity:t||!p()?.8:1}},s&&a.a.createElement("img",{src:"../img/admin/money.gif",alt:"",style:{filter:t||!p()?"grayscale(100%)":null,WebkitFilter:t||!p()?"grayscale(100%)":null}}),!s&&a.a.createElement(w.a,{icon:t?O.c:O.j,spin:t})," ",o.refundAll),a.a.createElement("button",{type:"button",onClick:function(){return r(Object(d.compact)(u.lines.filter((function(e){return"discount"!==e.type}))))},className:"btn btn-default",disabled:t||!m(),style:{cursor:t||!m()?"not-allowed":"pointer",opacity:t||!m()?.8:1}},s&&a.a.createElement("img",{src:"../img/admin/disabled.gif",alt:"",style:{filter:t||!m()?"grayscale(100%)":null,WebkitFilter:t||!m()?"grayscale(100%)":null}}),!s&&a.a.createElement(w.a,{icon:t?O.c:O.f,spin:t})," ",o.cancelAll)))))}var x=n(208);function k(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if("undefined"==typeof Symbol||!(Symbol.iterator in Object(e)))return;var n=[],r=!0,a=!1,l=void 0;try{for(var c,i=e[Symbol.iterator]();!(r=(c=i.next()).done)&&(n.push(c.value),!t||n.length!==t);r=!0);}catch(e){a=!0,l=e}finally{try{r||null==i.return||i.return()}finally{if(a)throw l}}return n}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return S(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return S(e,t)}(e,t)||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 S(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n0}));var a=Object(d.findIndex)(r,(function(t){return t.id===e}));a<0||(n>0?r[a].newQuantity=n:r.length>1&&r.splice(a,1),o(Object(d.cloneDeep)(r)),n>0&&(r[a].quantity=r[a].newQuantity,delete r[a].newQuantity),t(r))}Object(r.useEffect)((function(){n.forEach((function(e){u(e.id,e["".concat(l,"Quantity")])}))}),[]);var s=Object(d.cloneDeep)(i);return Object(d.remove)(s,(function(e){return e["".concat(l,"Quantity")]<1})),a.a.createElement(x.Table,{bordered:!0},a.a.createElement("tbody",null,i.map((function(e){return a.a.createElement(x.Tr,{key:e.id,light:!0},a.a.createElement("td",{style:{color:"#555"}},e.name),a.a.createElement("td",{style:{color:"#555"}},a.a.createElement(_,{value:e.newQuantity||e["".concat(l,"Quantity")],onChange:function(t){var n=t.target.value;return u(e.id,parseInt(n,10))}},Object(d.range)(1,e["".concat(l,"Quantity")]+1).map((function(e){return a.a.createElement(I,{key:e,value:e},e,"x")}))),a.a.createElement(w.a,{icon:O.a,style:{marginLeft:"-20px",pointerEvents:"none"}})),a.a.createElement("td",{style:{display:i.length>1?"auto":"none"}},a.a.createElement(F,{icon:O.g,onClick:function(){return u(e.id,0)}})))}))))}function Q(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if("undefined"==typeof Symbol||!(Symbol.iterator in Object(e)))return;var n=[],r=!0,a=!1,l=void 0;try{for(var c,i=e[Symbol.iterator]();!(r=(c=i.next()).done)&&(n.push(c.value),!t||n.length!==t);r=!0);}catch(e){a=!0,l=e}finally{try{r||null==i.return||i.return()}finally{if(a)throw l}}return n}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return P(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return P(e,t)}(e,t)||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 P(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n=1&&parseFloat(s.value)>0},b=a.a.createElement("button",{style:{cursor:n||t.shippableQuantity<1||"discount"===t.type?"not-allowed":"pointer",width:m?"100px":"auto",textAlign:m?"left":"inherit",opacity:!n&&p()||!m?1:.8},className:i()({btn:!m,"btn-default":!m}),title:"",disabled:n||t.shippableQuantity<1||"discount"===t.type,onClick:function(){return c([t])}},m&&a.a.createElement("img",{src:"../img/admin/delivery.gif",alt:f.ship,style:{filter:n||t.shippableQuantity<1?"grayscale(100%)":void 0,WebkitFilter:n||t.shippableQuantity<1?"grayscale(100%)":void 0}}),!m&&a.a.createElement(w.a,{icon:n?O.c:O.h,spin:n})," ",f.ship),g=m?a.a.createElement("button",{style:{cursor:"discount"===(n||!p()||t.type)?"not-allowed":"pointer",width:"100px",textAlign:"left",opacity:n||!p()||"discount"===t.type?.8:1},title:"",disabled:n||!p()||"discount"===t.type,onClick:function(){return u([t])}},a.a.createElement("img",{src:"../img/admin/money.gif",alt:f.refund,style:{filter:n||!p()||"discount"===t.type?"grayscale(100%)":void 0,WebkitFilter:n||!p()||"discount"===t.type?"grayscale(100%)":void 0}})," ",f.refund):a.a.createElement("a",{style:{cursor:n||!p()||"discount"===t.type?"not-allowed":"pointer",opacity:n||!p()||"discount"===t.type?.8:1},onClick:function(){return p()&&u([t])},role:"button"},a.a.createElement(w.a,{icon:n?O.c:O.i,spin:n})," ",f.refund),y=m?a.a.createElement("button",{style:{cursor:t.cancelableQuantity<1?"not-allowed":"pointer",width:"100px",textAlign:"left",opacity:n||!p()||"discount"===t.type?.8:1},title:"",disabled:n||t.cancelableQuantity<1||"discount"===t.type,onClick:function(){return o([t])}},a.a.createElement("img",{src:"../img/admin/disabled.gif",alt:f.cancel,style:{filter:n||t.cancelableQuantity<1||"discount"===t.type?"grayscale(100%)":void 0,WebkitFilter:n||t.cancelableQuantity<1||"discount"===t.type?"grayscale(100%)":void 0}})," ",f.cancel):a.a.createElement("a",{style:{cursor:n||t.cancelableQuantity<1||"discount"===t.type?"not-allowed":"pointer",opacity:n||t.cancelableQuantity<1||"discount"===t.type?.8:1},onClick:function(){return t.cancelableQuantity>=1&&o([t])},role:"button"},a.a.createElement(w.a,{icon:n?O.c:O.f,spin:n})," ",f.cancel),h=m?a.a.createElement("div",null,b,a.a.createElement("br",null),g,a.a.createElement("br",null),y):a.a.createElement("div",{className:i()({"btn-group":!m})},b,a.a.createElement("button",{type:"button",className:i()({btn:!m,"btn-default":!m,"dropdown-toggle":!m}),"data-toggle":m?null:"dropdown",disabled:n||!p()&&t.cancelableQuantity<1||"discount"===t.type},a.a.createElement("span",{className:"caret"}," ")),a.a.createElement("ul",{className:"dropdown-menu"},a.a.createElement("li",null,g),a.a.createElement("li",null,y)));return a.a.createElement("div",{className:i()({"btn-group-action":!m})},h)}function X(e,t,n,r,a,l,c){try{var i=e[l](c),o=i.value}catch(e){return void n(e)}i.done?t(o):Promise.resolve(o).then(r,a)}function Z(e){return function(){var t=this,n=arguments;return new Promise((function(r,a){var l=e.apply(t,n);function c(e){X(l,r,a,c,i,"next",e)}function i(e){X(l,r,a,c,i,"throw",e)}c(void 0)}))}}function ee(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if("undefined"==typeof Symbol||!(Symbol.iterator in Object(e)))return;var n=[],r=!0,a=!1,l=void 0;try{for(var c,i=e[Symbol.iterator]();!(r=(c=i.next()).done)&&(n.push(c.value),!t||n.length!==t);r=!0);}catch(e){a=!0,l=e}finally{try{r||null==i.return||i.return()}finally{if(a)throw l}}return n}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return te(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return te(e,t)}(e,t)||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 te(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n0})),Object(y.render)(a.a.createElement(R,{lineType:"refundable",translations:u,lines:i,edited:function(e){return r=e}}),l),o=l.firstChild,e.next=7,n.e("vendors~sweetalert").then(n.t.bind(null,105,7));case 7:return d=e.sent,m=d.default,e.next=11,m({title:v()(u.reviewRefund),text:v()(u.reviewRefundProducts),buttons:{cancel:{text:v()(u.cancel),visible:!0},confirm:{text:v()(u.OK)}},closeOnClickOutside:!1,content:o});case 11:if(!e.sent){e.next=30;break}return e.prev=13,c(!0),e.next=17,Object($.refundOrder)(s,r);case 17:f=e.sent,p=f.success,b=f.order,p?(h(Object(J.updateWarning)("refunded")),h(Object(J.updateOrder)(b))):n.e("vendors~sweetalert").then(n.t.bind(null,105,7)).then((function(e){(0,e.default)({icon:"error",title:v()(u.anErrorOccurred),text:v()(u.unableToRefund)}).then()})),e.next=27;break;case 23:e.prev=23,e.t0=e.catch(13),"string"==typeof e.t0&&n.e("vendors~sweetalert").then(n.t.bind(null,105,7)).then((function(t){(0,t.default)({icon:"error",title:v()(u.anErrorOccurred),text:v()(e.t0)}).then()})),console.error(e.t0);case 27:return e.prev=27,c(!1),e.finish(27);case 30:case"end":return e.stop()}}),e,null,[[13,23,27,30]])})))).apply(this,arguments)}function S(e){return N.apply(this,arguments)}function N(){return(N=Z(regeneratorRuntime.mark((function e(t){var r,l,i,o,d,m,f,p;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return r=null,l=document.createElement("DIV"),Object(y.render)(a.a.createElement(R,{lineType:"cancelable",translations:u,lines:t,edited:function(e){return r=e}}),l),i=l.firstChild,e.next=6,n.e("vendors~sweetalert").then(n.t.bind(null,105,7));case 6:return o=e.sent,d=o.default,e.next=10,d({title:v()(u.reviewCancel),text:v()(u.reviewCancelProducts),buttons:{cancel:{text:v()(u.cancel),visible:!0},confirm:{text:v()(u.OK)}},closeOnClickOutside:!1,content:i});case 10:if(!e.sent){e.next=29;break}return e.prev=12,c(!0),e.next=16,Object($.cancelOrder)(s.id,r);case 16:m=e.sent,f=m.success,p=m.order,f?(h(Object(J.updateOrder)(p)),h(Object(J.updateWarning)("canceled"))):d({icon:"error",title:v()(u.anErrorOccurred),text:v()(u.unableToShip)}).then(),e.next=26;break;case 22:e.prev=22,e.t0=e.catch(12),"string"==typeof e.t0&&d({icon:"error",title:v()(u.anErrorOccurred),text:v()(e.t0)}).then(),console.error(e.t0);case 26:return e.prev=26,c(!1),e.finish(26);case 29:case"end":return e.stop()}}),e,null,[[12,22,26,29]])})))).apply(this,arguments)}return a.a.createElement(re,{className:i()({"table-responsive":!p}),order:s,currencies:f,translations:u,config:b,viewportWidth:g},a.a.createElement("table",{className:i()({table:!0})},a.a.createElement(E,null),a.a.createElement("tbody",null,s.lines.map((function(e){return a.a.createElement("tr",{key:e.id,style:{marginBottom:"100px"}},a.a.createElement("td",null,a.a.createElement("strong",null,e.quantity,"x")," ",e.name),a.a.createElement("td",null,e.status),g<1390&&a.a.createElement("td",null,e.quantityShipped," / ",e.quantityCanceled," / ",e.quantityRefunded),g>=1390&&a.a.createElement("td",null,e.quantityShipped),g>=1390&&a.a.createElement("td",null,e.quantityCanceled),g>=1390&&a.a.createElement("td",null,e.quantityRefunded),a.a.createElement("td",null,Object(m.a)(parseFloat(e.unitPrice.value),Object(d.get)(f,e.unitPrice.currency))),a.a.createElement("td",null,Object(m.a)(parseFloat(e.vatAmount.value),Object(d.get)(f,e.vatAmount.currency))," (",e.vatRate,"%)"),a.a.createElement("td",null,Object(m.a)(parseFloat(e.totalAmount.value),Object(d.get)(f,e.totalAmount.currency))),a.a.createElement("td",{className:i()({actions:!p})},a.a.createElement(G,{loading:t,line:e,availableRefundAmount:s.availableRefundAmount,refundLine:x,shipLine:w,cancelLine:S})))}))),a.a.createElement(j,{loading:t,ship:w,refund:x,cancel:S})))}function le(){var e=Object(r.useCallback)(Object(l.c)((function(e){return{translations:e.translations,config:e.config}})),[]),t=e.translations;return e.config.legacy?a.a.createElement("div",{className:"error"},t.thereAreNoProducts):a.a.createElement("div",{className:"table-responsive"},a.a.createElement("table",{className:"table"},a.a.createElement(E,null),a.a.createElement("tbody",null,a.a.createElement("tr",null,a.a.createElement("td",{className:"list-empty hidden-print",colSpan:3},a.a.createElement("div",{className:"list-empty-msg"},a.a.createElement("i",{className:"icon-warning-sign list-empty-icon"}),t.thereAreNoProducts))))))}function ce(){var e=function(e,t){t||(t=e.slice(0));return Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}(["\n@media only screen and (min-width: 992px) {\n margin-left: 5px!important;\n margin-right: -5px!important;\n}\n"]);return ce=function(){return e},e}var ie=o.default.div(ce());function oe(){var e=Object(l.c)((function(e){return{translations:e.translations,order:e.order,currencies:e.currencies,config:e.config}})),t=e.translations,n=e.order,r=e.currencies,c=e.config.legacy;return c?a.a.createElement(a.a.Fragment,null,c&&a.a.createElement("h3",null,t.products),!c&&a.a.createElement("h4",null,t.products),!n||!n.lines.length&&a.a.createElement(le,null),!!n&&!!n.lines.length&&a.a.createElement(ae,null)):a.a.createElement(ie,{className:"col-md-9"},a.a.createElement("div",{className:"panel card"},a.a.createElement("div",{className:"panel-heading card-header"},t.products),a.a.createElement("div",{className:"card-body"},n.details.vouchers&&a.a.createElement(a.a.Fragment,null,a.a.createElement("div",{className:"alert alert-warning",role:"alert"},t.refundWarning.replace("%1s",Object(m.a)(parseFloat(n.availableRefundAmount.value),Object(d.get)(r,n.availableRefundAmount.currency))))),!n||!n.lines.length&&a.a.createElement(le,null),!!n&&!!n.lines.length&&a.a.createElement(ae,null))))}var ue=n(88);function se(){var e=Object(r.useCallback)(Object(l.c)((function(e){return{order:e.order,config:e.config}})),[]),t=e.order,n=e.config.legacy;return a.a.createElement(a.a.Fragment,null,!t&&a.a.createElement(ue.a,null),!!t&&t.status&&a.a.createElement("div",{className:i()({"panel-body card-body":!n,row:!n})},a.a.createElement(g,null),a.a.createElement(oe,null)))}var de=n(128);function me(){var e=Object(r.useCallback)(Object(l.c)((function(e){return{translations:e.translations,config:e.config,order:e.order}})),[]),t=e.config,n=t.legacy,c=t.moduleDir,i=e.config;return Object.keys(i).length<=0?null:n?a.a.createElement("fieldset",{style:{marginTop:"14px"}},a.a.createElement("legend",null,a.a.createElement("img",{src:"".concat(c,"views/img/logo_small.png"),width:"32",height:"32",alt:"Mollie logo",style:{height:"16px",width:"16px",opacity:.8}})," ",a.a.createElement("span",null,"Mollie")," "),a.a.createElement(de.a,null),a.a.createElement(se,null)):a.a.createElement("div",{className:"panel card"},a.a.createElement("div",{className:"panel-heading card-header"},a.a.createElement("img",{src:"".concat(c,"views/img/mollie_panel_icon.png"),width:"32",height:"32",alt:"Mollie logo",style:{height:"16px",width:"16px",opacity:.8}})," ",a.a.createElement("span",null,"Mollie")," "),a.a.createElement(de.a,null),a.a.createElement(se,null))}},89:function(e,t,n){"use strict";n.d(t,"a",(function(){return s}));n(66),n(67),n(151),n(109),n(75);var r=n(152),a=n.n(r),l=n(63);function c(e){return(c="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}var i=function(e,t,n,r){"string"==typeof t&&(t=parseInt(t,10)),"string"==typeof e&&(e=parseFloat(e));for(var a=(e=e.toFixed(t))+"",l=a.split("."),c=2===l.length?l[0]:a,i=("0."+(2===l.length?l[1]:0)).substr(2),o=c.length,u=1;u<4;u++)parseFloat(e)>=Math.pow(10,3*u)&&(c=c.substring(0,o-3*u)+n+c.substring(o-3*u));return 0===t?c:c+r+(i||"00")};function o(e,t){var n;return e>=0?(n=Math.floor(e+.5),(3===t&&e===-.5+n||4===t&&e===.5+2*Math.floor(n/2)||5===t&&e===.5+2*Math.floor(n/2)-1)&&(n-=1)):(n=Math.ceil(e-.5),(3===t&&e===.5+n||4===t&&e===2*Math.ceil(n/2)-.5||5===t&&e===2*Math.ceil(n/2)-.5+1)&&(n+=1)),n}var u=function(e,t){var n,r;if("string"==typeof e&&(e=parseFloat(e)),void 0===t&&(t=2),0===(n=void 0===window.roundMode?2:window.roundMode))return function(e,t){void 0===t&&(t=0);var n=0===t?1:Math.pow(10,t),r=String(e*n);return"0"===r[r.length-1]?e:Math.ceil(e*n)/n}(e,t);if(1===n)return function(e,t){void 0===t&&(t=0);var n=0===t?1:Math.pow(10,t),r=String(e*n);return"0"===r[r.length-1]?e:Math.floor(e*n)/n}(e,t);if(2===n)return function(e,t){var n=Math.pow(10,t),r=e*n;return(r=Math.floor(10*r)-10*Math.floor(r)>=5?Math.ceil(r):Math.floor(r))/n}(e,t);if(3==n||4==n||5==n){var a=14-Math.floor(function(e){return Math.log(e)/Math.LN10}(Math.abs(e))),l=Math.pow(10,Math.abs(t));if(a>t&&a-t<15){var c=Math.pow(10,Math.abs(a));r=o(r=a>=0?e*c:e/c,n),r/=c=Math.pow(10,Math.abs(t-a))}else if(r=t>=0?e*l:e/l,Math.abs(r)>=1e15)return e;return r=o(r,n),t>0?r/=l:r*=l,r}},s=function(e,t){return void 0===t?(console.error("Currency undefined"),""):"string"==typeof window._PS_VERSION_&&a()(window._PS_VERSION_,"1.7.0.0",">=")||void 0!==window.formatCurrencyCldr?new Intl.NumberFormat(Object(l.get)(document.documentElement,"lang"),{style:"currency",currency:t.iso_code}).format(e):function(e,t,n,r){"string"==typeof e&&(e=parseFloat(e));var a,l="EUR";void 0!==window.currency_iso_code&&3===window.currency_iso_code.length?l=window.currency_iso_code:"object"===c(window.currency)&&void 0!==window.currency.iso_code&&3===window.currency.iso_code.length&&(l=window.currency.iso_code),void 0!==window.priceDisplayPrecision&&(a=window.priceDisplayPrecision);try{if(void 0!==window.currencyModes&&void 0!==window.currencyModes[l]&&window.currencyModes[l]){e=u(e.toFixed(10),a);var o=document.documentElement.lang;5===o.length?o=o.substring(0,2).toLowerCase()+"-"+o.substring(3,5).toUpperCase():void 0!==window.full_language_code&&5===window.full_language_code.length?o=window.full_language_code.substring(0,2).toLowerCase()+"-"+window.full_language_code.substring(3,5).toUpperCase():5===window.getBrowserLocale().length&&(o=window.getBrowserLocale().substring(0,2).toLowerCase()+"-"+window.getBrowserLocale().substring(3,5).toUpperCase());var s=e.toLocaleString(o,{style:"currency",currency:"USD",currencyDisplay:"code"});return n&&(s=s.replace("USD",n)),s}}catch(e){}var d="";return e=u(e.toFixed(10),a),void 0!==r&&r&&(d=" "),1==t?n+d+i(e,a,",","."):2==t?i(e,a," ",",")+d+n:3==t?n+d+i(e,a,".",","):4==t?i(e,a,",",".")+d+n:5==t?n+d+i(e,a,"'","."):String(e)}(e,t.format,t.sign,t.blank)}}},0,["vendors~sweetalert"]]); \ No newline at end of file diff --git a/views/js/dist/transactionOrder.min.js.map b/views/js/dist/transactionOrder.min.js.map deleted file mode 100644 index ed0bd744c..000000000 --- a/views/js/dist/transactionOrder.min.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"sources":["webpack://MollieModule.[name]/./src/back/transaction/components/orderlines/EmptyOrderLinesTable.tsx","webpack://MollieModule.[name]/./src/back/transaction/components/orderlines/OrderLinesEditor.tsx","webpack://MollieModule.[name]/./src/back/transaction/components/orderlines/OrderLinesInfo.tsx","webpack://MollieModule.[name]/./src/back/transaction/components/orderlines/OrderLinesTable.tsx","webpack://MollieModule.[name]/./src/back/transaction/components/orderlines/OrderLinesTableActions.tsx","webpack://MollieModule.[name]/./src/back/transaction/components/orderlines/OrderLinesTableFooter.tsx","webpack://MollieModule.[name]/./src/back/transaction/components/orderlines/OrderLinesTableHeader.tsx","webpack://MollieModule.[name]/./src/back/transaction/components/orderlines/OrderPanel.tsx","webpack://MollieModule.[name]/./src/back/transaction/components/orderlines/OrderPanelContent.tsx","webpack://MollieModule.[name]/./src/back/transaction/components/orderlines/PaymentInfo.tsx","webpack://MollieModule.[name]/./src/back/transaction/components/orderlines/PaymentInfoContent.tsx","webpack://MollieModule.[name]/./src/back/transaction/components/orderlines/ShipmentTrackingEditor.tsx"],"names":["EmptyOrderLinesTable","useCallback","useMappedState","state","translations","config","legacy","thereAreNoProducts","CloseIcon","styled","FontAwesomeIcon","QuantitySelect","select","QuantityOption","option","OrderLinesEditor","edited","lines","lineType","useState","stateLines","setStateLines","_updateQty","lineId","qty","newLines","compact","cloneDeep","filter","line","newLineIndex","findIndex","item","id","newQuantity","length","splice","quantity","useEffect","forEach","renderLines","remove","map","color","name","target","value","parseInt","range","faChevronDown","marginLeft","pointerEvents","display","faTimesCircle","Div","div","OrderLinesInfo","order","currencies","products","details","vouchers","refundWarning","replace","formatCurrency","parseFloat","availableRefundAmount","get","currency","TableContainer","OrderLinesTable","loading","setLoading","viewportWidth","dispatch","useDispatch","_ship","origLines","reviewWrapper","document","createElement","render","el","firstChild","swal","default","title","xss","reviewShipment","text","reviewShipmentProducts","buttons","cancel","visible","confirm","OK","closeOnClickOutside","content","input","tracking","carrier","code","url","checkSwalButton","elem","querySelector","disabled","isEmpty","updateTracking","newTracking","then","trackingWrapper","innerHTML","Promise","all","trackingDetails","addTrackingInfo","shipProducts","shipOrder","success","newOrder","updateOrder","updateWarning","icon","anErrorOccurred","unableToShip","console","error","_refund","filteredLines","refundableQuantity","refundOrder","unableToRefund","_cancel","cancelOrder","cx","marginBottom","status","quantityShipped","quantityCanceled","quantityRefunded","unitPrice","vatAmount","vatRate","totalAmount","OrderLinesTableActions","shipLine","cancelLine","refundLine","isRefundable","isCancelable","cancelableQuantity","shipButton","cursor","shippableQuantity","type","width","textAlign","opacity","ship","undefined","WebkitFilter","faTruck","faCircleNotch","refundButton","refund","faUndo","cancelButton","faTimes","buttonGroup","OrderLinesTableFooter","Object","values","isShippable","shipAll","faUndoAlt","refundAll","cancelAll","OrderLinesTableHeader","product","shipped","whiteSpace","canceled","refunded","OrderPanel","moduleDir","keys","marginTop","height","OrderPanelContent","PaymentInfo","paymentInfo","PaymentInfoContent","transactionInfo","transactionId","method","remainderMethod","date","moment","createdAt","format","amount","refundable","issuer","voucherInfo","voucher","ErrorMessage","p","show","FormGroup","Label","label","Input","InputContainer","ShipmentTrackingEditor","props","skipTracking","setSkipTracking","setCarrier","carrierChanged","setCarrierChanged","setCode","codeChanged","setCodeChanged","setUrl","_getCarrierInvalid","_getCodeInvalid","_updateSkipTracking","_updateCarrier","_updateCode","_updateUrl","checked","skipTrackingDetails","egFedex","thisInfoIsRequired","trackingCode","optional"],"mappings":";;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAEA;AAEA;AAQe,SAASA,oBAAT,GAAkD;AAAA,qBACVC,yDAAW,CAACC,uEAAc,CAAC,UAACC,KAAD;AAAA,WAAoC;AAClHC,kBAAY,EAAED,KAAK,CAACC,YAD8F;AAElHC,YAAM,EAAEF,KAAK,CAACE;AAFoG,KAApC;AAAA,GAAD,CAAf,EAG3D,EAH2D,CADD;AAAA,MACvDD,YADuD,gBACvDA,YADuD;AAAA,MAC/BE,MAD+B,gBACzCD,MADyC,CAC/BC,MAD+B;;AAM/D,MAAIA,MAAJ,EAAY;AACV,wBAAO;AAAK,eAAS,EAAC;AAAf,OAAwBF,YAAY,CAACG,kBAArC,CAAP;AACD;;AAED,sBACE;AAAK,aAAS,EAAC;AAAf,kBACE;AAAO,aAAS,EAAC;AAAjB,kBACE,2DAAC,8DAAD,OADF,eAEE,uFACE,oFACE;AAAI,aAAS,EAAC,yBAAd;AAAwC,WAAO,EAAE;AAAjD,kBACE;AAAK,aAAS,EAAC;AAAf,kBACE;AAAG,aAAS,EAAC;AAAb,IADF,EAEGH,YAAY,CAACG,kBAFhB,CADF,CADF,CADF,CAFF,CADF,CADF;AAiBD,C;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AChDD;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAWA,IAAMC,SAAS,GAAGC,kEAAM,CAACC,+EAAD,CAAT,mBAAf;AAYA,IAAMC,cAAc,GAAGF,0DAAM,CAACG,MAAV,oBAApB;AAeA,IAAMC,cAAc,GAAGJ,0DAAM,CAACK,MAAV,oBAApB;AAKe,SAASC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B,CATF,CAFF,CA/BF,eA+CE,4DAAC,SAAD,qBACE,4DAAC,KAAD;AAAO,WAAO,EAAC;AAAf,kBAA2B,uFAAM,0EAAOtO,YAAY,CAACkG,GAApB,CAAN,QAAwClG,YAAY,CAACwO,QAArD,MAA3B,CADF,eAEE,4DAAC,cAAD,qBACE,4DAAC,KAAD;AACE,QAAI,EAAC,MADP;AAEE,aAAS,EAAC,gBAFZ;AAGE,eAAW,EAAC,UAHd;AAIE,QAAI,EAAC,KAJP;AAKE,MAAE,EAAC,WALL;AAME,SAAK,EAAEtI,GANT;AAOE,YAAQ,EAAEkH,YAPZ;AAQE,YAAQ,EAAE;AAAA,UAAoBlH,GAApB,SAAGzD,MAAH,CAAaC,KAAb;AAAA,aAAqCwL,UAAU,CAAChI,GAAD,CAA/C;AAAA;AARZ,IADF,CAFF,CA/CF,CADF;AAiED,C","file":"transactionOrder.min.js","sourcesContent":["/**\n * Mollie https://www.mollie.nl\n *\n * @author Mollie B.V. \n * @copyright Mollie B.V.\n * @link https://github.com/mollie/PrestaShop\n * @license https://github.com/mollie/PrestaShop/blob/master/LICENSE.md\n * @codingStandardsIgnoreStart\n */\nimport React, { ReactElement, useCallback } from 'react';\n\nimport OrderLinesTableHeader from '@transaction/components/orderlines/OrderLinesTableHeader';\nimport { IMollieOrderConfig, ITranslations } from '@shared/globals';\nimport { useMappedState } from 'redux-react-hook';\n\ninterface IProps {\n // Redux\n translations?: ITranslations;\n config?: IMollieOrderConfig;\n}\n\nexport default function EmptyOrderLinesTable(): ReactElement<{}> {\n const { translations, config: { legacy } }: IProps = useCallback(useMappedState((state: IMollieOrderState): any => ({\n translations: state.translations,\n config: state.config,\n })), []);\n\n if (legacy) {\n return
    {translations.thereAreNoProducts}
    ;\n }\n\n return (\n
    \n \n \n \n \n \n \n \n
    \n
    \n \n {translations.thereAreNoProducts}\n
    \n
    \n
    \n );\n}\n","/**\n * Mollie https://www.mollie.nl\n *\n * @author Mollie B.V. \n * @copyright Mollie B.V.\n * @link https://github.com/mollie/PrestaShop\n * @license https://github.com/mollie/PrestaShop/blob/master/LICENSE.md\n * @codingStandardsIgnoreStart\n */\nimport React, { ReactElement, useEffect, useState } from 'react';\nimport { Table, Tr } from 'styled-table-component';\nimport { FontAwesomeIcon } from '@fortawesome/react-fontawesome'\nimport { faChevronDown, faTimesCircle } from '@fortawesome/free-solid-svg-icons'\nimport styled from 'styled-components';\nimport { cloneDeep, compact, filter, findIndex, forEach, range, remove } from 'lodash';\n\nimport { IMollieOrderLine, ITranslations } from '@shared/globals';\n\ninterface IProps {\n lineType: 'shippable' | 'refundable' | 'cancelable';\n translations: ITranslations;\n lines: Array;\n edited: (newLines: Array) => void;\n}\n\nconst CloseIcon = styled(FontAwesomeIcon)`\ncursor: pointer;\ncolor: #555;\n\n:hover {\n opacity: 0.8;\n}\n:active {\n opacity: 0.6;\n}\n` as any;\n\nconst QuantitySelect = styled.select`\n&&&& {\n cursor: pointer!important;\n appearance: none!important;\n color: #555!important;\n border: 0!important;\n background-color: transparent!important;\n display: inline-block!important;\n height: auto!important;\n padding: 0 25px 0 5px!important;\n font-size: medium!important;\n}\n\n` as any;\n\nconst QuantityOption = styled.option`\nfont-size: medium!important;\ncolor: #555!important;\n` as any;\n\nexport default function OrderLinesEditor({ edited, lines, lineType }: IProps): ReactElement<{}> {\n const [stateLines, setStateLines] = useState>(lines);\n\n function _updateQty(lineId: string, qty: number): void {\n let newLines = compact(cloneDeep(stateLines));\n newLines = filter(newLines, line => line[`${lineType}Quantity`] > 0);\n\n const newLineIndex = findIndex(newLines, item => item.id === lineId);\n if (newLineIndex < 0) {\n return;\n }\n\n if (qty > 0) {\n newLines[newLineIndex].newQuantity = qty;\n } else if (newLines.length > 1) {\n newLines.splice(newLineIndex, 1);\n }\n setStateLines(cloneDeep(newLines));\n\n if (qty > 0) {\n newLines[newLineIndex].quantity = newLines[newLineIndex].newQuantity;\n delete newLines[newLineIndex].newQuantity;\n }\n\n edited(newLines);\n }\n\n useEffect(() => {\n lines.forEach((line) => {\n _updateQty(line.id, line[`${lineType}Quantity`])\n })\n }, []);\n\n const renderLines = cloneDeep(stateLines);\n remove(renderLines, line => line[`${lineType}Quantity`] < 1);\n\n return (\n \n \n {stateLines.map((line) => (\n \n \n \n \n \n ))}\n \n
    {line.name}\n _updateQty(line.id, parseInt(qty, 10))}\n >\n {range(1, line[`${lineType}Quantity`] + 1).map((qty) => (\n {qty}x\n ))}\n \n \n 1 ? 'auto' : 'none' }}>\n _updateQty(line.id, 0)}/>\n
    \n )\n}\n","/**\n * Mollie https://www.mollie.nl\n *\n * @author Mollie B.V. \n * @copyright Mollie B.V.\n * @link https://github.com/mollie/PrestaShop\n * @license https://github.com/mollie/PrestaShop/blob/master/LICENSE.md\n * @codingStandardsIgnoreStart\n */\nimport React, {ReactElement, useCallback, useState} from 'react';\nimport styled from 'styled-components';\n\nimport OrderLinesTable from '@transaction/components/orderlines/OrderLinesTable';\nimport EmptyOrderLinesTable from '@transaction/components/orderlines/EmptyOrderLinesTable';\nimport {ICurrencies, IMollieApiOrder, IMollieOrderConfig, ITranslations} from '@shared/globals';\nimport {useMappedState} from 'redux-react-hook';\nimport {formatCurrency} from \"@shared/tools\";\nimport {get} from \"lodash\";\n\ninterface IProps {\n // Redux\n translations?: ITranslations;\n order?: IMollieApiOrder;\n currencies?: ICurrencies;\n config?: IMollieOrderConfig;\n}\n\nconst Div = styled.div`\n@media only screen and (min-width: 992px) {\n margin-left: 5px!important;\n margin-right: -5px!important;\n}\n` as any;\n\nexport default function OrderLinesInfo(): ReactElement<{}> {\n const {translations, order, currencies, config: {legacy}}: IProps = useMappedState((state: IMollieOrderState): any => ({\n translations: state.translations,\n order: state.order,\n currencies: state.currencies,\n config: state.config,\n }));\n\n if (legacy) {\n return (\n <>\n {legacy &&

    {translations.products}

    }\n {!legacy &&

    {translations.products}

    }\n {!order || (!order.lines.length && )}\n {!!order && !!order.lines.length && }\n \n );\n }\n\n return (\n
    \n
    \n
    {translations.products}
    \n
    \n {/*todo: move to order warning component*/}\n {order.details.vouchers &&\n <>\n
    \n {\n translations.refundWarning.replace(\n '%1s',\n formatCurrency(\n parseFloat(order.availableRefundAmount.value),\n get(currencies, order.availableRefundAmount.currency)\n )\n )\n }\n
    \n \n }\n {!order || (!order.lines.length && )}\n {!!order && !!order.lines.length && }\n
    \n
    \n
    \n );\n}\n","/**\n * Mollie https://www.mollie.nl\n *\n * @author Mollie B.V. \n * @copyright Mollie B.V.\n * @link https://github.com/mollie/PrestaShop\n * @license https://github.com/mollie/PrestaShop/blob/master/LICENSE.md\n * @codingStandardsIgnoreStart\n */\nimport React, { ReactElement, useCallback, useState } from 'react';\nimport { render } from 'react-dom';\nimport cx from 'classnames';\nimport xss from 'xss';\nimport { get, isEmpty } from 'lodash';\nimport styled from 'styled-components';\nimport { useDispatch, useMappedState } from 'redux-react-hook';\nimport { SweetAlert } from 'sweetalert/typings/core';\n\nimport OrderLinesTableHeader from '@transaction/components/orderlines/OrderLinesTableHeader';\nimport OrderLinesTableFooter from '@transaction/components/orderlines//OrderLinesTableFooter';\nimport OrderLinesEditor from '@transaction/components/orderlines//OrderLinesEditor';\nimport ShipmentTrackingEditor from '@transaction/components/orderlines//ShipmentTrackingEditor';\nimport { cancelOrder, refundOrder, shipOrder } from '@transaction/misc/ajax';\nimport {updateOrder, updateWarning} from '@transaction/store/actions';\nimport OrderLinesTableActions from '@transaction/components/orderlines//OrderLinesTableActions';\nimport { formatCurrency } from '@shared/tools';\nimport { IMollieApiOrder, IMollieOrderLine, IMollieTracking, } from '@shared/globals';\n\nconst TableContainer = styled.div`\n@media (min-width: 1280px) {\n overflow: ${({ config: { legacy } }: Partial) => legacy ? 'inherit' : 'visible!important'};\n}\n` as any;\n\nexport default function OrderLinesTable(): ReactElement<{}> {\n const [loading, setLoading] = useState(false);\n const { translations, order, currencies, config: { legacy }, config, viewportWidth }: Partial = useMappedState((state: IMollieOrderState): any => ({\n order: state.order,\n currencies: state.currencies,\n translations: state.translations,\n config: state.config,\n viewportWidth: state.viewportWidth,\n }));\n const dispatch = useDispatch();\n\n async function _ship(origLines: Array): Promise {\n let lines = null;\n\n const reviewWrapper = document.createElement('DIV');\n render( lines = newLines}/>, reviewWrapper);\n let el: any = reviewWrapper.firstChild;\n\n const { default: swal } = await import(/* webpackPrefetch: true, webpackChunkName: \"sweetalert\" */ 'sweetalert') as never as { default: SweetAlert };\n let input = await swal({\n title: xss(translations.reviewShipment),\n text: xss(translations.reviewShipmentProducts),\n buttons: {\n cancel: {\n text: xss(translations.cancel),\n visible: true,\n },\n confirm: {\n text: xss(translations.OK),\n }\n },\n closeOnClickOutside: false,\n content: el,\n });\n if (input) {\n let tracking: IMollieTracking = {\n carrier: '',\n code: '',\n url: '',\n };\n const checkSwalButton = async (): Promise => {\n const elem: HTMLInputElement = document.querySelector('.swal-button.swal-button--confirm');\n\n elem.disabled = tracking && (isEmpty(tracking.code.replace(/\\s+/, '')) || isEmpty(tracking.carrier.replace(/\\s+/, '')));\n };\n\n const updateTracking = (newTracking: IMollieTracking): void => {\n tracking = newTracking;\n checkSwalButton().then();\n };\n\n let trackingWrapper = document.createElement('DIV');\n trackingWrapper.innerHTML = '';\n render( updateTracking(newTracking)}/>, trackingWrapper);\n el = trackingWrapper.firstChild;\n [input] = await Promise.all([swal({\n title: xss(translations.trackingDetails),\n text: xss(translations.addTrackingInfo),\n buttons: {\n cancel: {\n text: xss(translations.cancel),\n visible: true,\n },\n confirm: {\n text: xss(translations.shipProducts),\n },\n },\n closeOnClickOutside: false,\n content: el,\n }), checkSwalButton()]);\n if (input) {\n try {\n setLoading(true);\n const { success, order: newOrder } = await shipOrder(order.id, lines, tracking);\n if (success) {\n dispatch(updateOrder(newOrder));\n dispatch(updateWarning('shipped'));\n } else {\n import(/* webpackPrefetch: true, webpackChunkName: \"sweetalert\" */ 'sweetalert').then(({ default: swal }) => {\n swal({\n icon: 'error',\n title: xss(translations.anErrorOccurred),\n text: xss(translations.unableToShip),\n }).then();\n });\n }\n } catch (e) {\n if (typeof e === 'string') {\n import(/* webpackPrefetch: true, webpackChunkName: \"sweetalert\" */ 'sweetalert').then(({ default: swal }) => {\n swal({\n icon: 'error',\n title: xss(translations.anErrorOccurred),\n text: xss(e),\n }).then();\n });\n }\n console.error(e);\n } finally {\n setLoading(false);\n }\n }\n }\n }\n\n async function _refund(origLines: Array): Promise {\n let lines = null;\n const reviewWrapper = document.createElement('DIV');\n\n const filteredLines = origLines.filter((line) => (line.refundableQuantity > 0))\n\n render( lines = newLines}/>, reviewWrapper);\n let el: any = reviewWrapper.firstChild;\n const { default: swal }= await import(/* webpackPrefetch: true, webpackChunkName: \"sweetalert\" */ 'sweetalert') as never as { default: SweetAlert };\n let input = await swal({\n title: xss(translations.reviewShipment),\n text: xss(translations.reviewShipmentProducts),\n buttons: {\n cancel: {\n text: xss(translations.cancel),\n visible: true,\n },\n confirm: {\n text: xss(translations.OK),\n },\n },\n closeOnClickOutside: false,\n content: el,\n });\n if (input) {\n try {\n setLoading(true);\n const { success, order: newOrder } = await refundOrder(order, lines);\n if (success) {\n dispatch(updateWarning('refunded'));\n dispatch(updateOrder(newOrder));\n } else {\n import(/* webpackPrefetch: true, webpackChunkName: \"sweetalert\" */ 'sweetalert').then(({ default: swal }) => {\n swal({\n icon: 'error',\n title: xss(translations.anErrorOccurred),\n text: xss(translations.unableToRefund),\n }).then();\n });\n }\n } catch (e) {\n if (typeof e === 'string') {\n import(/* webpackPrefetch: true, webpackChunkName: \"sweetalert\" */ 'sweetalert').then(({ default: swal }) => {\n swal({\n icon: 'error',\n title: xss(translations.anErrorOccurred),\n text: xss(e),\n }).then();\n });\n }\n console.error(e);\n } finally {\n setLoading(false);\n }\n }\n }\n\n async function _cancel(origLines: Array): Promise {\n let lines = null;\n const reviewWrapper = document.createElement('DIV');\n render( lines = newLines}/>, reviewWrapper);\n let el: any = reviewWrapper.firstChild;\n\n const { default: swal } = await import(/* webpackPrefetch: true, webpackChunkName: \"sweetalert\" */ 'sweetalert') as never as { default: SweetAlert };\n let input = await swal({\n title: xss(translations.reviewShipment),\n text: xss(translations.reviewShipmentProducts),\n buttons: {\n cancel: {\n text: xss(translations.cancel),\n visible: true,\n },\n confirm: {\n text: xss(translations.OK),\n },\n },\n closeOnClickOutside: false,\n content: el,\n });\n if (input) {\n try {\n setLoading(true);\n const { success, order: newOrder } = await cancelOrder(order.id, lines);\n if (success) {\n dispatch(updateOrder(newOrder));\n dispatch(updateWarning('canceled'));\n } else {\n swal({\n icon: 'error',\n title: xss(translations.anErrorOccurred),\n text: xss(translations.unableToShip),\n }).then();\n }\n } catch (e) {\n if (typeof e === 'string') {\n swal({\n icon: 'error',\n title: xss(translations.anErrorOccurred),\n text: xss(e),\n }).then();\n }\n console.error(e);\n } finally {\n setLoading(false);\n }\n }\n }\n\n return (\n \n \n \n \n {order.lines.map((line: IMollieOrderLine) => (\n \n \n \n {viewportWidth < 1390 && }\n {viewportWidth >= 1390 && }\n {viewportWidth >= 1390 && }\n {viewportWidth >= 1390 && }\n \n \n \n \n \n ))}\n \n \n
    {line.quantity}x {line.name}{line.status}{line.quantityShipped} / {line.quantityCanceled} / {line.quantityRefunded}{line.quantityShipped}{line.quantityCanceled}{line.quantityRefunded}{formatCurrency(parseFloat(line.unitPrice.value), get(currencies, line.unitPrice.currency))}{formatCurrency(parseFloat(line.vatAmount.value), get(currencies, line.vatAmount.currency))} ({line.vatRate}%){formatCurrency(parseFloat(line.totalAmount.value), get(currencies, line.totalAmount.currency))}\n \n
    \n \n );\n}\n","import React, {ReactElement, useCallback} from 'react';\nimport cx from 'classnames';\nimport {FontAwesomeIcon} from '@fortawesome/react-fontawesome';\nimport {faCircleNotch, faTimes, faTruck, faUndo} from '@fortawesome/free-solid-svg-icons';\nimport {useMappedState} from 'redux-react-hook';\n\nimport { IMollieAmount, IMollieOrderLine } from '@shared/globals';\n\ninterface IProps {\n line: IMollieOrderLine;\n loading: boolean;\n shipLine: Function;\n cancelLine: Function;\n refundLine: Function;\n availableRefundAmount: IMollieAmount;\n}\n\nexport default function OrderLinesTableActions({line, loading, shipLine, cancelLine, refundLine, availableRefundAmount }: IProps): ReactElement<{}> {\n const {config: {legacy}, translations }: Partial = useCallback(useMappedState((state: IMollieOrderState): any => ({\n translations: state.translations,\n config: state.config\n })), []);\n\n const isRefundable = (): boolean => line.refundableQuantity >= 1 && parseFloat(availableRefundAmount.value) > 0.0\n const isCancelable = (): boolean => line.cancelableQuantity >= 1\n\n let shipButton = (\n shipLine([line])}\n >\n {legacy && }\n {!legacy && } {translations.ship}\n \n );\n\n const refundButton = legacy ? (\n refundLine([line])}\n >\n {translations.refund}\n \n ) : (\n isRefundable() && refundLine([line])}\n role=\"button\"\n >\n {translations.refund}\n
    \n );\n\n const cancelButton = legacy ? (\n cancelLine([line])}\n >\n {translations.cancel}\n \n ) : (\n isCancelable() && cancelLine([line])}\n role=\"button\"\n >\n {translations.cancel}\n \n );\n\n const buttonGroup = legacy ? (\n
    \n {shipButton}
    \n {refundButton}
    \n {cancelButton}\n
    \n ) : (\n
    \n {shipButton}\n \n  \n \n
      \n
    • \n {refundButton}\n
    • \n
    • \n {cancelButton}\n
    • \n
    \n
    \n );\n\n return (\n
    \n {buttonGroup}\n
    \n );\n}\n","/**\n * Mollie https://www.mollie.nl\n *\n * @author Mollie B.V. \n * @copyright Mollie B.V.\n * @link https://github.com/mollie/PrestaShop\n * @license https://github.com/mollie/PrestaShop/blob/master/LICENSE.md\n * @codingStandardsIgnoreStart\n */\nimport React, { ReactElement, useCallback } from 'react';\nimport { FontAwesomeIcon } from '@fortawesome/react-fontawesome';\nimport { faCircleNotch, faTimes, faTruck, faUndoAlt } from '@fortawesome/free-solid-svg-icons';\nimport { compact, get } from 'lodash';\n\nimport { IMollieApiOrder, IMollieOrderConfig, ITranslations } from '@shared/globals';\nimport { useMappedState } from 'redux-react-hook';\nimport { formatCurrency } from \"@shared/tools\";\n\ninterface IProps {\n loading: boolean;\n ship: Function;\n refund: Function;\n cancel: Function;\n\n // Redux\n order?: IMollieApiOrder;\n translations?: ITranslations;\n config?: IMollieOrderConfig;\n}\n\nexport default function OrderLinesTableFooter({ loading, ship, cancel, refund }: IProps): ReactElement<{}> {\n const { translations, order, currencies, config: { legacy } }: Partial = useMappedState((state: IMollieOrderState): any => ({\n translations: state.translations,\n currencies: state.currencies,\n order: state.order,\n config: state.config,\n }));\n\n function isCancelable(): boolean {\n for (let line of Object.values(order.lines.filter(line => line.type !== 'discount'))) {\n if (line.cancelableQuantity >= 1) {\n return true;\n }\n }\n\n return false;\n }\n\n function isShippable(): boolean {\n for (let line of Object.values(order.lines.filter(line => line.type !== 'discount'))) {\n if (line.shippableQuantity >= 1) {\n return true;\n }\n }\n\n return false;\n }\n\n function isRefundable(): boolean {\n for (let line of Object.values(order.lines.filter(line => line.type !== 'discount'))) {\n if (line.refundableQuantity >= 1 && parseFloat(order.availableRefundAmount.value) > 0.0) {\n return true;\n }\n }\n\n return false;\n }\n\n return (\n \n \n \n
    \n ship(compact(order.lines.filter(line => line.type !== 'discount')))}\n className=\"btn btn-primary\"\n disabled={loading || !isShippable()}\n style={{\n cursor: (loading || !isShippable()) ? 'not-allowed' : 'pointer',\n opacity: (loading || !isShippable()) ? 0.8 : 1\n }}\n >\n {legacy && (\n \n )}\n {!legacy && } {translations.shipAll}\n \n refund(compact(order.lines.filter(line => line.type !== 'discount')))}\n className=\"btn btn-default\"\n disabled={loading || !isRefundable()}\n style={{\n cursor: (loading || !isRefundable()) ? 'not-allowed' : 'pointer',\n opacity: (loading || !isRefundable()) ? 0.8 : 1\n }}\n >\n {legacy && (\n \n )}\n {!legacy && } {translations.refundAll}\n \n cancel(compact(order.lines.filter(line => line.type !== 'discount')))}\n className=\"btn btn-default\"\n disabled={loading || !isCancelable()}\n style={{\n cursor: (loading || !isCancelable()) ? 'not-allowed' : 'pointer',\n opacity: (loading || !isCancelable()) ? 0.8 : 1\n }}\n >\n {legacy && (\n \n )}\n {!legacy && } {translations.cancelAll}\n \n
    \n \n \n \n );\n}\n","/**\n * Mollie https://www.mollie.nl\n *\n * @author Mollie B.V. \n * @copyright Mollie B.V.\n * @link https://github.com/mollie/PrestaShop\n * @license https://github.com/mollie/PrestaShop/blob/master/LICENSE.md\n * @codingStandardsIgnoreStart\n */\nimport React, { ReactElement, useCallback } from 'react';\n\nimport { ITranslations } from '@shared/globals';\nimport { useMappedState } from 'redux-react-hook';\n\ninterface IProps {\n // Redux\n translations?: ITranslations;\n viewportWidth?: number;\n}\n\nexport default function OrderLinesTableHeader(): ReactElement<{}> {\n const { translations, viewportWidth }: Partial = useCallback(useMappedState((state: IMollieOrderState): any => ({\n translations: state.translations,\n viewportWidth: state.viewportWidth,\n })), []);\n\n return (\n \n \n \n {translations.product}\n \n \n {translations.status}\n \n {viewportWidth < 1390 && (\n \n \n {translations.shipped}\n
    / {translations.canceled}\n
    / {translations.refunded}\n
    \n \n )}\n {viewportWidth >= 1390 && (\n <>\n \n {translations.shipped}\n \n \n {translations.canceled}\n \n \n {translations.refunded}\n \n \n )}\n \n {translations.unitPrice}\n \n \n {translations.vatAmount}\n \n \n {translations.totalAmount}\n \n \n \n \n );\n}\n","/**\n * Mollie https://www.mollie.nl\n *\n * @author Mollie B.V. \n * @copyright Mollie B.V.\n * @link https://github.com/mollie/PrestaShop\n * @license https://github.com/mollie/PrestaShop/blob/master/LICENSE.md\n * @codingStandardsIgnoreStart\n */\nimport React, {ReactElement, useCallback} from 'react';\nimport {useMappedState} from 'redux-react-hook';\n\nimport OrderPanelContent from '@transaction/components/orderlines/OrderPanelContent';\nimport WarningContent from '@transaction/components/orderlines/WarningContent';\n\nexport default function OrderPanel(): ReactElement<{}> {\n const {config: {legacy, moduleDir}, config} = useCallback(useMappedState((state: IMollieOrderState): any => ({\n translations: state.translations,\n config: state.config,\n order: state.order,\n })), []);\n\n if (Object.keys(config).length <= 0) {\n return null;\n }\n\n if (legacy) {\n return (\n
    \n \n \n  Mollie \n \n \n \n
    \n );\n }\n\n return (\n
    \n
    \n \n  Mollie \n
    \n \n \n
    \n );\n}\n","/**\n * Mollie https://www.mollie.nl\n *\n * @author Mollie B.V. \n * @copyright Mollie B.V.\n * @link https://github.com/mollie/PrestaShop\n * @license https://github.com/mollie/PrestaShop/blob/master/LICENSE.md\n * @codingStandardsIgnoreStart\n */\nimport React, { ReactElement, useCallback } from 'react';\nimport cx from 'classnames';\n\nimport PaymentInfo from '@transaction/components/orderlines/PaymentInfo';\nimport OrderLinesInfo from '@transaction/components/orderlines/OrderLinesInfo';\nimport LoadingDots from '@shared/components/LoadingDots';\nimport { useMappedState } from 'redux-react-hook';\n\nexport default function OrderPanelContent(): ReactElement<{}> {\n const { order, config: { legacy } }: Partial = useCallback(useMappedState( (state: IMollieOrderState): any => ({\n order: state.order,\n config: state.config,\n })), []);\n\n return (\n <>\n {!order && }\n {!!order && order.status && (\n
    \n \n \n
    \n )}\n \n );\n}\n","/**\n * Mollie https://www.mollie.nl\n *\n * @author Mollie B.V. \n * @copyright Mollie B.V.\n * @link https://github.com/mollie/PrestaShop\n * @license https://github.com/mollie/PrestaShop/blob/master/LICENSE.md\n * @codingStandardsIgnoreStart\n */\nimport React, { ReactElement, useCallback } from 'react';\nimport styled from 'styled-components';\nimport { useMappedState } from 'redux-react-hook';\n\nimport PaymentInfoContent from '@transaction/components/orderlines/PaymentInfoContent';\n\nconst Div = styled.div`\n@media only screen and (min-width: 992px) {\n margin-left: -5px!important;\n margin-right: 5px!important;\n}\n` as any;\n\nexport default function PaymentInfo(): ReactElement<{}> {\n const { translations, config: { legacy } }: Partial = useMappedState((state: IMollieOrderState): any => ({\n translations: state.translations,\n order: state.order,\n currencies: state.currencies,\n config: state.config,\n }));\n\n if (legacy) {\n return (\n \n );\n }\n\n return (\n
    \n
    \n
    {translations.paymentInfo}
    \n
    \n \n
    \n
    \n
    \n );\n}\n","/**\n * Mollie https://www.mollie.nl\n *\n * @author Mollie B.V. \n * @copyright Mollie B.V.\n * @link https://github.com/mollie/PrestaShop\n * @license https://github.com/mollie/PrestaShop/blob/master/LICENSE.md\n * @codingStandardsIgnoreStart\n */\nimport React, {ReactElement, useCallback} from 'react';\nimport moment from 'moment';\nimport {get} from 'lodash';\n\nimport {formatCurrency} from '@shared/tools';\nimport {useMappedState} from 'redux-react-hook';\n\nexport default function PaymentInfoContent(): ReactElement<{}> {\n const {translations, order, currencies, config: {legacy}}: Partial = useMappedState((state: IMollieOrderState): any => ({\n order: state.order,\n currencies: state.currencies,\n translations: state.translations,\n config: state.config,\n }));\n\n return (\n <>\n {legacy &&

    {translations.transactionInfo}

    }\n {!legacy &&

    {translations.transactionInfo}

    }\n {translations.transactionId}: {order.id}
    \n {translations.method}: {order.details.remainderMethod ? order.details.remainderMethod : order.method}
    \n {translations.date}: {moment(order.createdAt).format('YYYY-MM-DD HH:mm:ss')}
    \n {translations.amount}: {formatCurrency(parseFloat(order.amount.value), get(currencies, order.amount.currency))}
    \n {translations.refundable}: {formatCurrency(parseFloat(order.availableRefundAmount.value), get(currencies, order.availableRefundAmount.currency))}
    \n {(order.details.remainderMethod || order.details.issuer) &&\n <>\n
    \n

    {translations.voucherInfo}

    \n \n }\n {order.details.issuer &&\n <>\n {translations.issuer}: {order.details.issuer}
    \n \n }\n\n {order.details.vouchers &&\n order.details.vouchers.map(voucher =>\n <>\n {translations.amount}: {formatCurrency(parseFloat(voucher.amount.value), get(currencies, voucher.amount.currency))}
    \n \n )\n }\n \n );\n}\n","/**\n * Mollie https://www.mollie.nl\n *\n * @author Mollie B.V. \n * @copyright Mollie B.V.\n * @link https://github.com/mollie/PrestaShop\n * @license https://github.com/mollie/PrestaShop/blob/master/LICENSE.md\n * @codingStandardsIgnoreStart\n */\nimport React, { ReactElement, useEffect, useState } from 'react';\nimport styled from 'styled-components';\nimport { get, isEmpty } from 'lodash';\n\nimport { IMollieOrderConfig, IMollieTracking, ITranslations } from '@shared/globals';\nimport {useMappedState} from \"redux-react-hook\";\n\ninterface IProps {\n edited: (newLines: IMollieTracking) => void;\n translations: ITranslations;\n config: IMollieOrderConfig;\n checkButtons: () => Promise | void;\n}\n\n\nconst ErrorMessage = styled.p`\nmargin-top: 2px;\nvisibility: ${({ show }: any) => show ? 'auto' : 'hidden'};\ncolor: #f00;\n` as any;\n\nconst FormGroup = styled.div`\nmin-height: 60px!important;\n` as any;\n\nconst Label = styled.label`\nfont-size: medium!important;\ntext-align: left!important;\n` as any;\n\nconst Input = styled.input`\nfont-size: medium!important;\ntext-align: left!important;\n` as any;\n\nconst InputContainer = styled.div`\ntext-align: left!important;\n`;\n\nexport default function ShipmentTrackingEditor(props: IProps): ReactElement<{}> {\n const [skipTracking, setSkipTracking] = useState(false);\n const [carrier, setCarrier] = useState(get(props, 'config.tracking.tracking.carrier', ''));\n const [carrierChanged, setCarrierChanged] = useState(!!get(props, 'config.tracking.tracking.carrier', false));\n const [code, setCode] = useState(get(props, 'config.tracking.tracking.code', ''));\n const [codeChanged, setCodeChanged] = useState(!!get(props, 'config.tracking.tracking.code', ''));\n const [url, setUrl] = useState(get(props, 'config.tracking.tracking.url', ''));\n const { translations, edited } = props;\n function _getCarrierInvalid(): boolean {\n return !skipTracking && isEmpty(carrier.replace(/\\s+/, '')) && carrierChanged;\n }\n\n function _getCodeInvalid(): boolean {\n return !skipTracking && isEmpty(code.replace(/\\s+/, '')) && codeChanged;\n }\n\n function _updateSkipTracking(skipTracking: boolean): void {\n setSkipTracking(skipTracking);\n edited(skipTracking ? null : {\n carrier,\n code,\n url,\n });\n }\n\n function _updateCarrier(carrier: string): void {\n setCarrier(carrier);\n setCarrierChanged(true);\n\n edited({\n carrier,\n code,\n url,\n });\n }\n\n function _updateCode(code: string): void {\n setCode(code);\n setCodeChanged(true);\n edited({\n carrier,\n code,\n url,\n });\n }\n\n function _updateUrl(url: string): void {\n setUrl(url);\n edited({ carrier, code, url });\n }\n\n useEffect(() => {\n const { edited } = props;\n\n if (carrierChanged) {\n edited(skipTracking ? null : {\n carrier: carrier,\n code: code,\n url: url,\n });\n }\n }, []);\n\n return (\n
    \n \n
    \n
    \n \n \n \n _updateCarrier(carrier)}\n />\n \n {translations.thisInfoIsRequired}\n \n \n \n \n \n \n _updateCode(code)}\n />\n \n {translations.thisInfoIsRequired}\n \n \n \n \n \n \n _updateUrl(url)}\n />\n \n \n
    \n );\n}\n"],"sourceRoot":""} \ No newline at end of file diff --git a/views/js/dist/transactionOrder~transactionRefund.min.js b/views/js/dist/transactionOrder~transactionRefund.min.js deleted file mode 100644 index b4223b9e3..000000000 --- a/views/js/dist/transactionOrder~transactionRefund.min.js +++ /dev/null @@ -1,486 +0,0 @@ -/*! - * - * Mollie https://www.mollie.nl - * @author Mollie B.V. - * @copyright Mollie B.V. - * @link https://github.com/mollie/PrestaShop - * @license https://github.com/mollie/PrestaShop/blob/master/LICENSE.md - * - */ -(window["webpackJsonP_mollie"] = window["webpackJsonP_mollie"] || []).push([["transactionOrder~transactionRefund"],{ - -/***/ "./src/back/transaction/components/orderlines/WarningContent.tsx": -/*!***********************************************************************!*\ - !*** ./src/back/transaction/components/orderlines/WarningContent.tsx ***! - \***********************************************************************/ -/*! exports provided: default */ -/***/ (function(module, __webpack_exports__, __webpack_require__) { - -"use strict"; -__webpack_require__.r(__webpack_exports__); -/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "default", function() { return WarningContent; }); -/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "./node_modules/react/index.js"); -/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__); -/* harmony import */ var redux_react_hook__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! redux-react-hook */ "./node_modules/redux-react-hook/dist/index.es.js"); -/** - * Mollie https://www.mollie.nl - * - * @author Mollie B.V. - * @copyright Mollie B.V. - * @link https://github.com/mollie/PrestaShop - * @license https://github.com/mollie/PrestaShop/blob/master/LICENSE.md - * @codingStandardsIgnoreStart - */ - - -function WarningContent() { - var _useMappedState = Object(redux_react_hook__WEBPACK_IMPORTED_MODULE_1__["useMappedState"])(function (state) { - return { - orderWarning: state.orderWarning, - translations: state.translations - }; - }), - orderWarning = _useMappedState.orderWarning, - translations = _useMappedState.translations; - - var message = ''; - - switch (orderWarning) { - case "refunded": - message = translations.refundSuccessMessage; - break; - - case "shipped": - message = translations.shipmentWarning; - break; - - case "canceled": - message = translations.cancelWarning; - break; - - default: - message = ''; - } - - if (!message) { - return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(react__WEBPACK_IMPORTED_MODULE_0___default.a.Fragment, null); - } - - return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(react__WEBPACK_IMPORTED_MODULE_0___default.a.Fragment, null, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("div", { - className: "alert alert-success" - }, message)); -} - -/***/ }), - -/***/ "./src/shared/tools.ts": -/*!*****************************!*\ - !*** ./src/shared/tools.ts ***! - \*****************************/ -/*! exports provided: formattedNumberToFloat, formatNumber, psRound, getNumberFormat, findGetParameter, formatMoneyValue, psFormatCurrency, formatCurrency */ -/***/ (function(module, __webpack_exports__, __webpack_require__) { - -"use strict"; -__webpack_require__.r(__webpack_exports__); -/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "formattedNumberToFloat", function() { return formattedNumberToFloat; }); -/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "formatNumber", function() { return formatNumber; }); -/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "psRound", function() { return psRound; }); -/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "getNumberFormat", function() { return getNumberFormat; }); -/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "findGetParameter", function() { return findGetParameter; }); -/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "formatMoneyValue", function() { return formatMoneyValue; }); -/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "psFormatCurrency", function() { return psFormatCurrency; }); -/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "formatCurrency", function() { return formatCurrency; }); -/* harmony import */ var core_js_modules_es7_symbol_async_iterator__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! core-js/modules/es7.symbol.async-iterator */ "./node_modules/core-js/modules/es7.symbol.async-iterator.js"); -/* harmony import */ var core_js_modules_es7_symbol_async_iterator__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es7_symbol_async_iterator__WEBPACK_IMPORTED_MODULE_0__); -/* harmony import */ var core_js_modules_es6_symbol__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! core-js/modules/es6.symbol */ "./node_modules/core-js/modules/es6.symbol.js"); -/* harmony import */ var core_js_modules_es6_symbol__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es6_symbol__WEBPACK_IMPORTED_MODULE_1__); -/* harmony import */ var core_js_modules_es6_regexp_search__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! core-js/modules/es6.regexp.search */ "./node_modules/core-js/modules/es6.regexp.search.js"); -/* harmony import */ var core_js_modules_es6_regexp_search__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es6_regexp_search__WEBPACK_IMPORTED_MODULE_2__); -/* harmony import */ var core_js_modules_es6_regexp_split__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! core-js/modules/es6.regexp.split */ "./node_modules/core-js/modules/es6.regexp.split.js"); -/* harmony import */ var core_js_modules_es6_regexp_split__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es6_regexp_split__WEBPACK_IMPORTED_MODULE_3__); -/* harmony import */ var core_js_modules_es6_regexp_replace__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! core-js/modules/es6.regexp.replace */ "./node_modules/core-js/modules/es6.regexp.replace.js"); -/* harmony import */ var core_js_modules_es6_regexp_replace__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es6_regexp_replace__WEBPACK_IMPORTED_MODULE_4__); -/* harmony import */ var locutus_php_info_version_compare__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! locutus/php/info/version_compare */ "./node_modules/locutus/php/info/version_compare.js"); -/* harmony import */ var locutus_php_info_version_compare__WEBPACK_IMPORTED_MODULE_5___default = /*#__PURE__*/__webpack_require__.n(locutus_php_info_version_compare__WEBPACK_IMPORTED_MODULE_5__); -/* harmony import */ var lodash__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! lodash */ "./node_modules/lodash/lodash.js"); -/* harmony import */ var lodash__WEBPACK_IMPORTED_MODULE_6___default = /*#__PURE__*/__webpack_require__.n(lodash__WEBPACK_IMPORTED_MODULE_6__); - - - - - - -function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; } return _typeof(obj); } - -/** - * Mollie https://www.mollie.nl - * - * @author Mollie B.V. - * @copyright Mollie B.V. - * @link https://github.com/mollie/PrestaShop - * @license https://github.com/mollie/PrestaShop/blob/master/LICENSE.md - * @codingStandardsIgnoreStart - */ - -/*eslint @typescript-eslint/camelcase:off, eqeqeq:off */ - - - -function ceilf(value, precision) { - if (typeof precision === 'undefined') { - precision = 0; - } - - var precisionFactor = precision === 0 ? 1 : Math.pow(10, precision); - var tmp = value * precisionFactor; - var tmp2 = String(tmp); - - if (tmp2[tmp2.length - 1] === '0') { - return value; - } - - return Math.ceil(value * precisionFactor) / precisionFactor; -} - -function floorf(value, precision) { - if (typeof precision === 'undefined') { - precision = 0; - } - - var precisionFactor = precision === 0 ? 1 : Math.pow(10, precision); - var tmp = value * precisionFactor; - var tmp2 = String(tmp); - - if (tmp2[tmp2.length - 1] === '0') { - return value; - } - - return Math.floor(value * precisionFactor) / precisionFactor; -} - -var formattedNumberToFloat = function formattedNumberToFloat(price, currencyFormat, currencySign) { - if (typeof price === 'number') { - price = String(price); - } - - price = price.replace(currencySign, ''); - - if (currencyFormat === 1) { - return parseFloat(price.replace(',', '').replace(' ', '')); - } else if (currencyFormat === 2) { - return parseFloat(price.replace(' ', '').replace(',', '.')); - } else if (currencyFormat === 3) { - return parseFloat(price.replace('.', '').replace(' ', '').replace(',', '.')); - } else if (currencyFormat === 4) { - return parseFloat(price.replace(',', '').replace(' ', '')); - } - - return price; -}; // Return a formatted number - -var formatNumber = function formatNumber(value, numberOfDecimal, thousenSeparator, virgule) { - if (typeof numberOfDecimal === 'string') { - numberOfDecimal = parseInt(numberOfDecimal, 10); - } - - if (typeof value === 'string') { - value = parseFloat(value); - } - - value = value.toFixed(numberOfDecimal); - var valString = value + ''; - var tmp = valString.split('.'); - var absValString = tmp.length === 2 ? tmp[0] : valString; - var deciString = ('0.' + (tmp.length === 2 ? tmp[1] : 0)).substr(2); - var nb = absValString.length; - - for (var i = 1; i < 4; i++) { - if (parseFloat(value) >= Math.pow(10, 3 * i)) { - absValString = absValString.substring(0, nb - 3 * i) + thousenSeparator + absValString.substring(nb - 3 * i); - } - } - - if (numberOfDecimal === 0) { - return absValString; - } - - return absValString + virgule + (deciString ? deciString : '00'); -}; - -function psRoundHelper(value, mode) { - // From PHP Math.c - var tmpValue; - - if (value >= 0.0) { - tmpValue = Math.floor(value + 0.5); - - if (mode === 3 && value === -0.5 + tmpValue || mode === 4 && value === 0.5 + 2 * Math.floor(tmpValue / 2.0) || mode === 5 && value === 0.5 + 2 * Math.floor(tmpValue / 2.0) - 1.0) { - tmpValue -= 1.0; - } - } else { - tmpValue = Math.ceil(value - 0.5); - - if (mode === 3 && value === 0.5 + tmpValue || mode === 4 && value === -0.5 + 2 * Math.ceil(tmpValue / 2.0) || mode === 5 && value === -0.5 + 2 * Math.ceil(tmpValue / 2.0) + 1.0) { - tmpValue += 1.0; - } - } - - return tmpValue; -} - -function psLog10(value) { - return Math.log(value) / Math.LN10; -} - -function psRoundHalfUp(value, precision) { - var mul = Math.pow(10, precision); - var val = value * mul; - var nextDigit = Math.floor(val * 10) - 10 * Math.floor(val); - - if (nextDigit >= 5) { - val = Math.ceil(val); - } else { - val = Math.floor(val); - } - - return val / mul; -} - -var psRound = function psRound(value, places) { - var method; - - if (typeof value === 'string') { - value = parseFloat(value); - } - - if (typeof window.roundMode === 'undefined') { - method = 2; - } else { - method = window.roundMode; - } - - if (typeof places === 'undefined') { - places = 2; - } - - var tmpValue; - - if (method === 0) { - return ceilf(value, places); - } else if (method === 1) { - return floorf(value, places); - } else if (method === 2) { - return psRoundHalfUp(value, places); - } else if (method == 3 || method == 4 || method == 5) { - // From PHP Math.c - var precision_places = 14 - Math.floor(psLog10(Math.abs(value))); - var f1 = Math.pow(10, Math.abs(places)); - - if (precision_places > places && precision_places - places < 15) { - var f2 = Math.pow(10, Math.abs(precision_places)); - - if (precision_places >= 0) { - tmpValue = value * f2; - } else { - tmpValue = value / f2; - } - - tmpValue = psRoundHelper(tmpValue, method); - /* now correctly move the decimal point */ - - f2 = Math.pow(10, Math.abs(places - precision_places)); - /* because places < precision_places */ - - tmpValue /= f2; - } else { - /* adjust the value */ - if (places >= 0) { - tmpValue = value * f1; - } else { - tmpValue = value / f1; - } - - if (Math.abs(tmpValue) >= 1e15) { - return value; - } - } - - tmpValue = psRoundHelper(tmpValue, method); - - if (places > 0) { - tmpValue = tmpValue / f1; - } else { - tmpValue = tmpValue * f1; - } - - return tmpValue; - } -}; -var getNumberFormat = function getNumberFormat(currencyFormat) { - if (typeof currencyFormat === 'string') { - currencyFormat = parseInt(currencyFormat, 10); - } - - switch (currencyFormat) { - case 1: - return { - comma: '.', - thousands: ',' - }; - - case 2: - return { - comma: ',', - thousands: ' ' - }; - - case 4: - return { - comma: '.', - thousands: ',' - }; - - case 5: - return { - comma: '.', - thousands: '\'' - }; - - default: - return { - comma: ',', - thousands: '.' - }; - } -}; -var findGetParameter = function findGetParameter(parameterName) { - var result = null; - var tmp = []; - var items = window.location.search.substr(1).split('&'); - - for (var index = 0; index < items.length; index++) { - tmp = items[index].split('='); - - if (tmp[0] === parameterName) { - result = decodeURIComponent(tmp[1]); - } - } - - return result; -}; -/** - * Filter money value (EUR / 2 decimals) - * - * @param val {number|string} - * - * @returns {number} - */ - -var formatMoneyValue = function formatMoneyValue(val) { - if (typeof val === 'string') { - val = parseFloat(val.replace(/,/, '.')); - } - - if (typeof val !== 'number' || isNaN(val)) { - val = 0; - } - - return val; -}; -var psFormatCurrency = function psFormatCurrency(price, currencyFormat, currencySign, currencyBlank) { - if (typeof price === 'string') { - price = parseFloat(price); - } - - var currency = 'EUR'; - - if (typeof window.currency_iso_code !== 'undefined' && window.currency_iso_code.length === 3) { - currency = window.currency_iso_code; - } else if (_typeof(window.currency) === 'object' && typeof window.currency.iso_code !== 'undefined' && window.currency.iso_code.length === 3) { - currency = window.currency.iso_code; - } - - var displayPrecision; - - if (typeof window.priceDisplayPrecision !== 'undefined') { - displayPrecision = window.priceDisplayPrecision; - } - - try { - if (typeof window.currencyModes !== 'undefined' && typeof window.currencyModes[currency] !== 'undefined' && window.currencyModes[currency]) { - price = psRound(price.toFixed(10), displayPrecision); - var locale = document.documentElement.lang; - - if (locale.length === 5) { - locale = locale.substring(0, 2).toLowerCase() + '-' + locale.substring(3, 5).toUpperCase(); - } else if (typeof window.full_language_code !== 'undefined' && window.full_language_code.length === 5) { - locale = window.full_language_code.substring(0, 2).toLowerCase() + '-' + window.full_language_code.substring(3, 5).toUpperCase(); - } else if (window.getBrowserLocale().length === 5) { - locale = window.getBrowserLocale().substring(0, 2).toLowerCase() + '-' + window.getBrowserLocale().substring(3, 5).toUpperCase(); - } - - var formattedCurrency = price.toLocaleString(locale, { - style: 'currency', - currency: 'USD', - currencyDisplay: 'code' - }); - - if (currencySign) { - formattedCurrency = formattedCurrency.replace('USD', currencySign); - } - - return formattedCurrency; - } - } catch (e) {// Just continue, Intl data is not available on every browser and crashes - } - - var blank = ''; - price = psRound(price.toFixed(10), displayPrecision); - - if (typeof currencyBlank !== 'undefined' && currencyBlank) { - blank = ' '; - } - - if (currencyFormat == 1) { - return currencySign + blank + formatNumber(price, displayPrecision, ',', '.'); - } - - if (currencyFormat == 2) { - return formatNumber(price, displayPrecision, ' ', ',') + blank + currencySign; - } - - if (currencyFormat == 3) { - return currencySign + blank + formatNumber(price, displayPrecision, '.', ','); - } - - if (currencyFormat == 4) { - return formatNumber(price, displayPrecision, ',', '.') + blank + currencySign; - } - - if (currencyFormat == 5) { - return currencySign + blank + formatNumber(price, displayPrecision, '\'', '.'); - } - - return String(price); -}; -var formatCurrency = function formatCurrency(price, currency) { - if (typeof currency === 'undefined') { - console.error('Currency undefined'); - return ''; - } - - if (typeof window._PS_VERSION_ === 'string' && locutus_php_info_version_compare__WEBPACK_IMPORTED_MODULE_5___default()(window._PS_VERSION_, '1.7.0.0', '>=') || typeof window.formatCurrencyCldr !== 'undefined') { - // PrestaShop 1.7 CLDR - return new Intl.NumberFormat(Object(lodash__WEBPACK_IMPORTED_MODULE_6__["get"])(document.documentElement, 'lang'), { - style: 'currency', - currency: currency.iso_code - }).format(price); - } - - return psFormatCurrency(price, currency.format, currency.sign, currency.blank); -}; - -/***/ }) - -}]); -//# sourceMappingURL=transactionOrder~transactionRefund.min.js.map \ No newline at end of file diff --git a/views/js/dist/transactionOrder~transactionRefund.min.js.map b/views/js/dist/transactionOrder~transactionRefund.min.js.map deleted file mode 100644 index 720157e5b..000000000 --- a/views/js/dist/transactionOrder~transactionRefund.min.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"sources":["webpack://MollieModule.[name]/./src/back/transaction/components/orderlines/WarningContent.tsx","webpack://MollieModule.[name]/./src/shared/tools.ts"],"names":["WarningContent","useMappedState","state","orderWarning","translations","message","refundSuccessMessage","shipmentWarning","cancelWarning","ceilf","value","precision","precisionFactor","Math","pow","tmp","tmp2","String","length","ceil","floorf","floor","formattedNumberToFloat","price","currencyFormat","currencySign","replace","parseFloat","formatNumber","numberOfDecimal","thousenSeparator","virgule","parseInt","toFixed","valString","split","absValString","deciString","substr","nb","i","substring","psRoundHelper","mode","tmpValue","psLog10","log","LN10","psRoundHalfUp","mul","val","nextDigit","psRound","places","method","window","roundMode","precision_places","abs","f1","f2","getNumberFormat","comma","thousands","findGetParameter","parameterName","result","items","location","search","index","decodeURIComponent","formatMoneyValue","isNaN","psFormatCurrency","currencyBlank","currency","currency_iso_code","iso_code","displayPrecision","priceDisplayPrecision","currencyModes","locale","document","documentElement","lang","toLowerCase","toUpperCase","full_language_code","getBrowserLocale","formattedCurrency","toLocaleString","style","currencyDisplay","e","blank","formatCurrency","console","error","_PS_VERSION_","version_compare","formatCurrencyCldr","Intl","NumberFormat","get","format","sign"],"mappings":";;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAMA;AAEe,SAASA,cAAT,GAA4C;AAAA,wBAElBC,uEAAc,CAAC,UAACC,KAAD;AAAA,WAAiB;AACjEC,kBAAY,EAAED,KAAK,CAACC,YAD6C;AAEjEC,kBAAY,EAAEF,KAAK,CAACE;AAF6C,KAAjB;AAAA,GAAD,CAFI;AAAA,MAEhDD,YAFgD,mBAEhDA,YAFgD;AAAA,MAElCC,YAFkC,mBAElCA,YAFkC;;AAOvD,MAAIC,OAAO,GAAG,EAAd;;AACA,UAAQF,YAAR;AACI,SAAK,UAAL;AACIE,aAAO,GAAGD,YAAY,CAACE,oBAAvB;AACA;;AACJ,SAAK,SAAL;AACID,aAAO,GAAGD,YAAY,CAACG,eAAvB;AACA;;AACJ,SAAK,UAAL;AACIF,aAAO,GAAGD,YAAY,CAACI,aAAvB;AACA;;AACJ;AACIH,aAAO,GAAG,EAAV;AAXR;;AAcA,MAAI,CAACA,OAAL,EAAc;AACV,wBACI,uHADJ;AAIH;;AAED,sBAC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* @copyright Mollie B.V.\n * @link https://github.com/mollie/PrestaShop\n * @license https://github.com/mollie/PrestaShop/blob/master/LICENSE.md\n * @codingStandardsIgnoreStart\n */\nimport React, {ReactElement, useCallback} from 'react';\nimport cx from 'classnames';\n\nimport PaymentInfo from '@transaction/components/orderlines/PaymentInfo';\nimport OrderLinesInfo from '@transaction/components/orderlines/OrderLinesInfo';\nimport LoadingDots from '@shared/components/LoadingDots';\nimport {useMappedState} from 'redux-react-hook';\n\nexport default function WarningContent(): ReactElement<{}> {\n\n const {orderWarning, translations} = useMappedState((state): any => ({\n orderWarning: state.orderWarning,\n translations: state.translations,\n }));\n\n let message = '';\n switch (orderWarning) {\n case \"refunded\" :\n message = translations.refundSuccessMessage;\n break;\n case \"shipped\":\n message = translations.shipmentWarning;\n break;\n case \"canceled\":\n message = translations.cancelWarning;\n break;\n default:\n message = '';\n }\n\n if (!message) {\n return (\n <>\n \n );\n }\n\n return (\n <>\n
    {message}
    \n \n );\n}\n","/**\n * Mollie https://www.mollie.nl\n *\n * @author Mollie B.V. \n * @copyright Mollie B.V.\n * @link https://github.com/mollie/PrestaShop\n * @license https://github.com/mollie/PrestaShop/blob/master/LICENSE.md\n * @codingStandardsIgnoreStart\n */\n/*eslint @typescript-eslint/camelcase:off, eqeqeq:off */\nimport version_compare from 'locutus/php/info/version_compare';\nimport { get } from 'lodash';\n\nimport { ICurrency } from './globals';\n\ndeclare let window: any;\n\nfunction ceilf(value: number, precision?: number): number {\n if (typeof precision === 'undefined') {\n precision = 0;\n }\n\n const precisionFactor = precision === 0 ? 1 : Math.pow(10, precision);\n const tmp = value * precisionFactor;\n const tmp2 = String(tmp);\n if (tmp2[tmp2.length - 1] === '0') {\n return value;\n }\n\n return Math.ceil(value * precisionFactor) / precisionFactor;\n}\n\nfunction floorf(value: number, precision?: number): number {\n if (typeof precision === 'undefined') {\n precision = 0;\n }\n\n const precisionFactor = precision === 0 ? 1 : Math.pow(10, precision);\n const tmp = value * precisionFactor;\n const tmp2 = String(tmp);\n if (tmp2[tmp2.length - 1] === '0') {\n return value;\n }\n\n return Math.floor(value * precisionFactor) / precisionFactor;\n}\n\nexport const formattedNumberToFloat = (price: string | number, currencyFormat: number, currencySign: string): number|string => {\n if (typeof price === 'number') {\n price = String(price);\n }\n price = price.replace(currencySign, '');\n if (currencyFormat === 1) {\n return parseFloat(price.replace(',', '').replace(' ', ''));\n } else if (currencyFormat === 2) {\n return parseFloat(price.replace(' ', '').replace(',', '.'));\n } else if (currencyFormat === 3) {\n return parseFloat(price.replace('.', '').replace(' ', '').replace(',', '.'));\n } else if (currencyFormat === 4) {\n return parseFloat(price.replace(',', '').replace(' ', ''));\n }\n\n return price;\n};\n\n// Return a formatted number\nexport const formatNumber = (value: number | string, numberOfDecimal: number | string, thousenSeparator: string, virgule: string): string => {\n if (typeof numberOfDecimal === 'string') {\n numberOfDecimal = parseInt(numberOfDecimal, 10);\n }\n if (typeof value === 'string') {\n value = parseFloat(value);\n }\n value = value.toFixed(numberOfDecimal);\n const valString: string = value + '';\n const tmp = valString.split('.');\n let absValString = (tmp.length === 2) ? tmp[0] : valString;\n const deciString: string = ('0.' + (tmp.length === 2 ? tmp[1] : 0)).substr(2);\n const nb = absValString.length;\n\n for (let i = 1; i < 4; i++) {\n if (parseFloat(value) >= Math.pow(10, (3 * i))) {\n absValString = absValString.substring(0, nb - (3 * i)) + thousenSeparator + absValString.substring(nb - (3 * i));\n }\n }\n\n if (numberOfDecimal === 0) {\n return absValString;\n }\n\n return absValString + virgule + (deciString ? deciString : '00');\n};\n\nfunction psRoundHelper(value: number, mode: number): number {\n // From PHP Math.c\n let tmpValue;\n if (value >= 0.0) {\n tmpValue = Math.floor(value + 0.5);\n if ((mode === 3 && value === (-0.5 + tmpValue)) ||\n (mode === 4 && value === (0.5 + 2 * Math.floor(tmpValue / 2.0))) ||\n (mode === 5 && value === (0.5 + 2 * Math.floor(tmpValue / 2.0) - 1.0))) {\n tmpValue -= 1.0;\n }\n } else {\n tmpValue = Math.ceil(value - 0.5);\n if ((mode === 3 && value === (0.5 + tmpValue)) ||\n (mode === 4 && value === (-0.5 + 2 * Math.ceil(tmpValue / 2.0))) ||\n (mode === 5 && value === (-0.5 + 2 * Math.ceil(tmpValue / 2.0) + 1.0))) {\n tmpValue += 1.0;\n }\n }\n\n return tmpValue;\n}\n\nfunction psLog10(value: number): number {\n return Math.log(value) / Math.LN10;\n}\n\nfunction psRoundHalfUp(value: number, precision: number): number {\n const mul = Math.pow(10, precision);\n let val = value * mul;\n\n const nextDigit = Math.floor(val * 10) - 10 * Math.floor(val);\n if (nextDigit >= 5) {\n val = Math.ceil(val);\n } else {\n val = Math.floor(val);\n }\n\n return val / mul;\n}\n\nexport const psRound = (value: number | string, places?: number): number => {\n let method;\n if (typeof value === 'string') {\n value = parseFloat(value);\n }\n if (typeof window.roundMode === 'undefined') {\n method = 2;\n } else {\n method = window.roundMode;\n }\n if (typeof places === 'undefined') {\n places = 2;\n }\n\n let tmpValue;\n\n if (method === 0) {\n return ceilf(value, places);\n } else if (method === 1) {\n return floorf(value, places);\n } else if (method === 2) {\n return psRoundHalfUp(value, places);\n } else if (method == 3 || method == 4 || method == 5) {\n // From PHP Math.c\n const precision_places = 14 - Math.floor(psLog10(Math.abs(value)));\n const f1 = Math.pow(10, Math.abs(places));\n\n if (precision_places > places && precision_places - places < 15) {\n let f2 = Math.pow(10, Math.abs(precision_places));\n if (precision_places >= 0) {\n tmpValue = value * f2;\n } else {\n tmpValue = value / f2;\n }\n\n tmpValue = psRoundHelper(tmpValue, method);\n\n /* now correctly move the decimal point */\n f2 = Math.pow(10, Math.abs(places - precision_places));\n /* because places < precision_places */\n tmpValue /= f2;\n } else {\n /* adjust the value */\n if (places >= 0) {\n tmpValue = value * f1;\n } else {\n tmpValue = value / f1;\n }\n\n if (Math.abs(tmpValue) >= 1e15) {\n return value;\n }\n }\n\n tmpValue = psRoundHelper(tmpValue, method);\n if (places > 0) {\n tmpValue = tmpValue / f1;\n } else {\n tmpValue = tmpValue * f1;\n }\n\n return tmpValue;\n }\n};\n\nexport const getNumberFormat = (currencyFormat: number | string): any => {\n if (typeof currencyFormat === 'string') {\n currencyFormat = parseInt(currencyFormat, 10);\n }\n switch (currencyFormat) {\n case 1:\n return {\n comma: '.',\n thousands: ',',\n };\n case 2:\n return {\n comma: ',',\n thousands: ' ',\n };\n case 4:\n return {\n comma: '.',\n thousands: ',',\n };\n case 5:\n return {\n comma: '.',\n thousands: '\\'',\n };\n default:\n return {\n comma: ',',\n thousands: '.',\n };\n }\n};\n\nexport const findGetParameter = (parameterName: string): any => {\n let result = null;\n let tmp = [];\n const items = window.location.search.substr(1).split('&');\n for (let index = 0; index < items.length; index++) {\n tmp = items[index].split('=');\n if (tmp[0] === parameterName) {\n result = decodeURIComponent(tmp[1]);\n }\n }\n\n return result;\n};\n\n/**\n * Filter money value (EUR / 2 decimals)\n *\n * @param val {number|string}\n *\n * @returns {number}\n */\nexport const formatMoneyValue = (val: string | number): number => {\n if (typeof val === 'string') {\n val = parseFloat(val.replace(/,/, '.'));\n }\n if (typeof val !== 'number' || isNaN(val)) {\n val = 0;\n }\n\n return val;\n};\n\nexport const psFormatCurrency = (price: string | number, currencyFormat: number, currencySign: string, currencyBlank: string): string => {\n if (typeof price === 'string') {\n price = parseFloat(price);\n }\n let currency = 'EUR';\n if (typeof window.currency_iso_code !== 'undefined' && window.currency_iso_code.length === 3) {\n currency = window.currency_iso_code;\n } else if (typeof window.currency === 'object'\n && typeof window.currency.iso_code !== 'undefined'\n && window.currency.iso_code.length === 3\n ) {\n currency = window.currency.iso_code;\n }\n\n let displayPrecision;\n if (typeof window.priceDisplayPrecision !== 'undefined') {\n displayPrecision = window.priceDisplayPrecision;\n }\n\n try {\n if (typeof window.currencyModes !== 'undefined'\n && typeof window.currencyModes[currency] !== 'undefined'\n && window.currencyModes[currency]\n ) {\n price = psRound(price.toFixed(10), displayPrecision);\n let locale = document.documentElement.lang;\n if (locale.length === 5) {\n locale = locale.substring(0, 2).toLowerCase() + '-' + locale.substring(3, 5).toUpperCase();\n } else if (typeof window.full_language_code !== 'undefined' && window.full_language_code.length === 5) {\n locale = window.full_language_code.substring(0, 2).toLowerCase() + '-' + window.full_language_code.substring(3, 5).toUpperCase();\n } else if (window.getBrowserLocale().length === 5) {\n locale = window.getBrowserLocale().substring(0, 2).toLowerCase() + '-' + window.getBrowserLocale().substring(3, 5).toUpperCase();\n }\n\n let formattedCurrency = price.toLocaleString(locale, {\n style: 'currency',\n currency: 'USD',\n currencyDisplay: 'code',\n });\n if (currencySign) {\n formattedCurrency = formattedCurrency.replace('USD', currencySign);\n }\n\n return formattedCurrency;\n }\n } catch (e) {\n // Just continue, Intl data is not available on every browser and crashes\n }\n\n let blank = '';\n\n price = psRound(price.toFixed(10), displayPrecision);\n if (typeof currencyBlank !== 'undefined' && currencyBlank) {\n blank = ' ';\n }\n\n if (currencyFormat == 1) {\n return currencySign + blank + formatNumber(price, displayPrecision, ',', '.');\n }\n if (currencyFormat == 2) {\n return (formatNumber(price, displayPrecision, ' ', ',') + blank + currencySign);\n }\n if (currencyFormat == 3) {\n return (currencySign + blank + formatNumber(price, displayPrecision, '.', ','));\n }\n if (currencyFormat == 4) {\n return (formatNumber(price, displayPrecision, ',', '.') + blank + currencySign);\n }\n if (currencyFormat == 5) {\n return (currencySign + blank + formatNumber(price, displayPrecision, '\\'', '.'));\n }\n\n return String(price);\n};\n\nexport const formatCurrency = (price: number, currency: ICurrency): string => {\n if (typeof currency === 'undefined') {\n console.error('Currency undefined');\n return '';\n }\n\n if ((typeof window._PS_VERSION_ === 'string' && version_compare(window._PS_VERSION_, '1.7.0.0', '>='))\n || typeof window.formatCurrencyCldr !== 'undefined'\n ) {\n // PrestaShop 1.7 CLDR\n return (new Intl.NumberFormat(get(document.documentElement, 'lang'), { style: 'currency', currency: currency.iso_code })).format(price);\n }\n\n return psFormatCurrency(price, currency.format, currency.sign, currency.blank);\n};\n"],"sourceRoot":""} \ No newline at end of file diff --git a/views/js/dist/transactionRefund.min.js b/views/js/dist/transactionRefund.min.js deleted file mode 100644 index abc986b3b..000000000 --- a/views/js/dist/transactionRefund.min.js +++ /dev/null @@ -1,10 +0,0 @@ -/*! - * - * Mollie https://www.mollie.nl - * @author Mollie B.V. - * @copyright Mollie B.V. - * @link https://github.com/mollie/PrestaShop - * @license https://github.com/mollie/PrestaShop/blob/master/LICENSE.md - * - */ -(window.webpackJsonP_mollie=window.webpackJsonP_mollie||[]).push([["transactionRefund"],{128:function(e,n,t){"use strict";t.d(n,"a",(function(){return c}));var a=t(56),r=t.n(a),l=t(59);function c(){var e=Object(l.c)((function(e){return{orderWarning:e.orderWarning,translations:e.translations}})),n=e.orderWarning,t=e.translations,a="";switch(n){case"refunded":a=t.refundSuccessMessage;break;case"shipped":a=t.shipmentWarning;break;case"canceled":a=t.cancelWarning;break;default:a=""}return a?r.a.createElement(r.a.Fragment,null,r.a.createElement("div",{className:"alert alert-success"},a)):r.a.createElement(r.a.Fragment,null)}},273:function(e,n,t){"use strict";t.r(n),t.d(n,"default",(function(){return Y}));t(61),t(68),t(22),t(110);var a=t(56),r=t.n(a),l=t(59),c=(t(62),t(60)),o=t(127),i=t.n(o),u=t(63),s=t(89);function m(){var e=Object(l.c)((function(e){return{payment:e.payment,currencies:e.currencies,translations:e.translations,config:e.config}})),n=e.translations,t=e.payment,a=e.currencies,c=e.config.legacy;return r.a.createElement(r.a.Fragment,null,c&&r.a.createElement("h3",null,n.transactionInfo),!c&&r.a.createElement("h4",null,n.transactionInfo),r.a.createElement("strong",null,n.transactionId),": ",r.a.createElement("span",null,t.id),r.a.createElement("br",null),r.a.createElement("strong",null,n.date),": ",r.a.createElement("span",null,i()(t.createdAt).format("YYYY-MM-DD HH:mm:ss")),r.a.createElement("br",null),r.a.createElement("strong",null,n.amount),": ",r.a.createElement("span",null,Object(s.a)(parseFloat(t.amount.value),Object(u.get)(a,t.amount.currency))),r.a.createElement("br",null))}function d(){var e=function(e,n){n||(n=e.slice(0));return Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(n)}}))}(["\n@media only screen and (min-width: 992px) {\n margin-left: -5px!important;\n margin-right: 5px!important;\n}\n"]);return d=function(){return e},e}var f=c.default.div(d());function p(){var e=Object(l.c)((function(e){return{translations:e.translations,config:e.config}})),n=e.translations;return e.config.legacy?r.a.createElement(r.a.Fragment,null,r.a.createElement(m,null),r.a.createElement("br",null)):r.a.createElement(f,{className:"col-md-3"},r.a.createElement("div",{className:"panel card"},r.a.createElement("div",{className:"panel-heading card-header"},n.paymentInfo),r.a.createElement("div",{className:"card-body"},r.a.createElement(m,null))))}function g(){var e=Object(l.c)((function(e){return{translations:e.translations}})).translations;return r.a.createElement("thead",null,r.a.createElement("tr",null,r.a.createElement("th",null,r.a.createElement("span",{className:"title_box"},r.a.createElement("strong",null,e.ID))),r.a.createElement("th",null,r.a.createElement("span",{className:"title_box"},e.date)),r.a.createElement("th",null,r.a.createElement("span",{className:"title_box"},e.amount))))}function y(){var e=Object(l.c)((function(e){return{translations:e.translations}})).translations;return r.a.createElement("div",{className:"table-responsive"},r.a.createElement("table",{className:"table"},r.a.createElement(g,null),r.a.createElement("tbody",null,r.a.createElement("tr",null,r.a.createElement("td",{className:"list-empty hidden-print",colSpan:3},r.a.createElement("div",{className:"list-empty-msg"},r.a.createElement("i",{className:"icon-warning-sign list-empty-icon"}),e.thereAreNoRefunds))))))}function b(){var e=Object(l.c)((function(e){return{payment:e.payment,currencies:e.currencies}})),n=e.payment,t=e.currencies;return r.a.createElement("div",{className:"table-responsive"},r.a.createElement("table",{className:"table"},r.a.createElement(g,null),r.a.createElement("tbody",null,n.refunds.map((function(e){return r.a.createElement("tr",{key:e.id,style:{marginBottom:"100px"}},r.a.createElement("td",{style:{width:"100px"}},r.a.createElement("strong",null,e.id)),r.a.createElement("td",null,i()(e.createdAt).format("YYYY-MM-DD HH:mm:ss")),r.a.createElement("td",null,Object(s.a)(parseFloat(e.amount.value),Object(u.get)(t,e.amount.currency))))})))))}function v(){var e=Object(l.c)((function(e){return{translations:e.translations,payment:e.payment}})),n=e.translations,t=e.payment;return r.a.createElement(r.a.Fragment,null,r.a.createElement("h4",null,n.refundHistory),!t.refunds.length&&r.a.createElement(y,null),!!t.refunds.length&&r.a.createElement(b,null))}t(23),t(72),t(69),t(65),t(70),t(71),t(66),t(67),t(75),t(24);var h=t(91),E=t.n(h),w=t(103),x=t(76),N=t.n(x);function M(e){var n=e.loading,t=e.disabled,a=e.refundPayment,c=Object(l.c)((function(e){return{translations:e.translations}})).translations;return r.a.createElement("button",{type:"button",className:"btn btn-default",disabled:n||t,onClick:function(){return a(!1)},style:{marginRight:"10px"}},r.a.createElement("i",{className:N()({icon:!0,"icon-undo":!n,"icon-circle-o-notch":n,"icon-spin":n})})," ",c.refundOrder)}function O(e){var n=e.loading,t=e.disabled,a=e.refundPayment,c=Object(l.c)((function(e){return{translations:e.translations,config:e.config}})),o=c.translations,i=c.config.legacy,u=r.a.createElement("button",{className:"btn btn-default",type:"button",disabled:n||t,onClick:function(){return a(!0)}},!i&&r.a.createElement("i",{className:N()({icon:!0,"icon-undo":!n,"icon-circle-o-notch":n,"icon-spin":n})})," ",o.partialRefund);return i?u:r.a.createElement("div",{className:"input-group-btn"},u)}var j=t(126);function _(e,n,t,a,r,l,c){try{var o=e[l](c),i=o.value}catch(e){return void t(e)}o.done?n(i):Promise.resolve(i).then(a,r)}function F(e){return function(){var n=this,t=arguments;return new Promise((function(a,r){var l=e.apply(n,t);function c(e){_(l,a,r,c,o,"next",e)}function o(e){_(l,a,r,c,o,"throw",e)}c(void 0)}))}}function S(e,n){return function(e){if(Array.isArray(e))return e}(e)||function(e,n){if("undefined"==typeof Symbol||!(Symbol.iterator in Object(e)))return;var t=[],a=!0,r=!1,l=void 0;try{for(var c,o=e[Symbol.iterator]();!(a=(c=o.next()).done)&&(t.push(c.value),!n||t.length!==n);a=!0);}catch(e){r=!0,l=e}finally{try{a||null==o.return||o.return()}finally{if(r)throw l}}return t}(e,n)||function(e,n){if(!e)return;if("string"==typeof e)return R(e,n);var t=Object.prototype.toString.call(e).slice(8,-1);"Object"===t&&e.constructor&&(t=e.constructor.name);if("Map"===t||"Set"===t)return Array.from(e);if("Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t))return R(e,n)}(e,n)||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 R(e,n){(null==n||n>e.length)&&(n=e.length);for(var t=0,a=new Array(n);t0&&void 0!==f[0]&&f[0])){e.next=6;break}if(n=parseFloat(m.replace(/[^0-9.,]/g,"").replace(",",".")),!isNaN(n)){e.next=6;break}return t.e("vendors~sweetalert").then(t.t.bind(null,105,7)).then((function(e){(0,e.default)({icon:"error",title:p.invalidAmount,text:p.notAValidAmount}).then()})),e.abrupt("return",!1);case 6:return e.next=8,t.e("vendors~sweetalert").then(t.t.bind(null,105,7));case 8:return a=e.sent,r=a.default,e.next=12,r({dangerMode:!0,icon:"warning",title:E()(p.areYouSure),text:E()(p.areYouSureYouWantToRefund),buttons:{cancel:{text:E()(p.cancel),visible:!0},confirm:{text:E()(p.refund)}}});case 12:if(!e.sent){e.next=32;break}return e.prev=14,o(!0),e.next=18,Object(j.refundPayment)(g,n);case 18:l=e.sent,c=l.success,i=void 0!==c&&c,u=l.payment,s=void 0===u?null:u,i?s&&(h(Object(w.updateWarning)("refunded")),h(Object(w.updatePayment)(s)),d("")):r({icon:"error",title:p.refundFailed,text:p.unableToRefund}).then(),e.next=29;break;case 26:e.prev=26,e.t0=e.catch(14),console.error(e.t0);case 29:return e.prev=29,o(!1),e.finish(29);case 32:case"end":return e.stop()}}),e,null,[[14,26,29,32]])})))).apply(this,arguments)}return v?r.a.createElement(r.a.Fragment,null,r.a.createElement("h3",null,p.refund),r.a.createElement("span",null,r.a.createElement(M,{refundPayment:x,loading:c,disabled:parseFloat(y.settlementAmount.value)<=parseFloat(y.amountRefunded.value)}),r.a.createElement("span",null,p.refundable,":"),r.a.createElement("input",{type:"text",placeholder:Object(s.a)(parseFloat(y.amountRemaining.value),Object(u.get)(b,y.amountRemaining.currency)),disabled:c,value:m,onChange:function(e){var n=e.target.value;return d(n)},style:{width:"80px",height:"15px",margin:"-2px 4px 0 4px"}}),r.a.createElement(O,{refundPayment:x,loading:c,disabled:parseFloat(y.amountRemaining.value)<=0}))):(e=y.settlementAmount?r.a.createElement(M,{refundPayment:x,loading:c,disabled:parseFloat(y.settlementAmount.value)<=parseFloat(y.amountRefunded.value)}):"",r.a.createElement(r.a.Fragment,null,r.a.createElement("h4",null,p.refund),r.a.createElement("div",{className:"well well-sm"},r.a.createElement("div",{className:"form-inline"},r.a.createElement("div",{className:"form-group"},e),r.a.createElement("div",{className:"form-group"},r.a.createElement("div",{className:"input-group",style:{minWidth:"100px"}},r.a.createElement("div",{className:"input-group-addon input-group-prepend"},r.a.createElement("span",{className:"input-group-text"},p.refundable,":")),r.a.createElement("input",{type:"text",className:"form-control",placeholder:Object(s.a)(parseFloat(y.amountRemaining.value),Object(u.get)(b,y.amountRemaining.currency)),disabled:c,value:m,onChange:function(e){var n=e.target.value;return d(n)},style:{width:"80px"}}),r.a.createElement(O,{refundPayment:x,loading:c,disabled:parseFloat(y.amountRemaining.value)<=0})))))))}function A(){var e=function(e,n){n||(n=e.slice(0));return Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(n)}}))}(["\n@media only screen and (min-width: 992px) {\n margin-left: 5px!important;\n margin-right: -5px!important;\n}\n"]);return A=function(){return e},e}var C=c.default.div(A());function k(){var e=Object(l.c)((function(e){return{payment:e.payment,translations:e.translations,config:e.config}})),n=e.translations,t=e.config.legacy,a=e.payment;return t?r.a.createElement(r.a.Fragment,null,r.a.createElement("h3",null,n.refunds),a.amountRefunded&&r.a.createElement(v,null),a.amountRefunded&&r.a.createElement(P,null),!a.amountRefunded&&r.a.createElement("div",{className:"warn"},n.refundsAreCurrentlyUnavailable)):r.a.createElement(C,{className:"col-md-9"},r.a.createElement("div",{className:"panel card"},r.a.createElement("div",{className:"panel-heading card-header"},n.refunds),r.a.createElement("div",{className:"card-body"},a.amountRefunded&&r.a.createElement(v,null),a.amountRefunded&&r.a.createElement(P,null),!a.amountRefunded&&r.a.createElement("div",{className:"alert alert-warning"},n.refundsAreCurrentlyUnavailable))))}var I=t(88),D=t(128);function Y(){var e=Object(l.c)((function(e){return{config:e.config,payment:e.payment}})),n=e.payment,t=e.config;if(Object.keys(t).length<=0)return null;var a=t.moduleDir;return t.legacy?r.a.createElement("fieldset",{style:{marginTop:"14px"}},r.a.createElement("legend",{className:"panel-heading card-header"},r.a.createElement("img",{src:"".concat(a,"views/img/logo_small.png"),width:"32",height:"32",alt:"",style:{height:"16px",width:"16px",opacity:.8}}),r.a.createElement("span",null,"Mollie")," "),r.a.createElement(D.a,null),!n&&r.a.createElement(I.a,null),!!n&&n.status&&r.a.createElement(r.a.Fragment,null,r.a.createElement(p,null),r.a.createElement(k,null))):r.a.createElement("div",{className:"panel card"},r.a.createElement("div",{className:"panel-heading card-header"},r.a.createElement("img",{src:"".concat(a,"views/img/mollie_panel_icon.png"),width:"32",height:"32",alt:"",style:{height:"16px",width:"16px",opacity:.8}})," ",r.a.createElement("span",null,"Mollie")," "),r.a.createElement(D.a,null),!n&&r.a.createElement(I.a,null),!!n&&n.status&&r.a.createElement("div",{className:"panel-body card-body row"},r.a.createElement(p,null),r.a.createElement(k,null)))}},89:function(e,n,t){"use strict";t.d(n,"a",(function(){return s}));t(66),t(67),t(151),t(109),t(75);var a=t(152),r=t.n(a),l=t(63);function c(e){return(c="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}var o=function(e,n,t,a){"string"==typeof n&&(n=parseInt(n,10)),"string"==typeof e&&(e=parseFloat(e));for(var r=(e=e.toFixed(n))+"",l=r.split("."),c=2===l.length?l[0]:r,o=("0."+(2===l.length?l[1]:0)).substr(2),i=c.length,u=1;u<4;u++)parseFloat(e)>=Math.pow(10,3*u)&&(c=c.substring(0,i-3*u)+t+c.substring(i-3*u));return 0===n?c:c+a+(o||"00")};function i(e,n){var t;return e>=0?(t=Math.floor(e+.5),(3===n&&e===-.5+t||4===n&&e===.5+2*Math.floor(t/2)||5===n&&e===.5+2*Math.floor(t/2)-1)&&(t-=1)):(t=Math.ceil(e-.5),(3===n&&e===.5+t||4===n&&e===2*Math.ceil(t/2)-.5||5===n&&e===2*Math.ceil(t/2)-.5+1)&&(t+=1)),t}var u=function(e,n){var t,a;if("string"==typeof e&&(e=parseFloat(e)),void 0===n&&(n=2),0===(t=void 0===window.roundMode?2:window.roundMode))return function(e,n){void 0===n&&(n=0);var t=0===n?1:Math.pow(10,n),a=String(e*t);return"0"===a[a.length-1]?e:Math.ceil(e*t)/t}(e,n);if(1===t)return function(e,n){void 0===n&&(n=0);var t=0===n?1:Math.pow(10,n),a=String(e*t);return"0"===a[a.length-1]?e:Math.floor(e*t)/t}(e,n);if(2===t)return function(e,n){var t=Math.pow(10,n),a=e*t;return(a=Math.floor(10*a)-10*Math.floor(a)>=5?Math.ceil(a):Math.floor(a))/t}(e,n);if(3==t||4==t||5==t){var r=14-Math.floor(function(e){return Math.log(e)/Math.LN10}(Math.abs(e))),l=Math.pow(10,Math.abs(n));if(r>n&&r-n<15){var c=Math.pow(10,Math.abs(r));a=i(a=r>=0?e*c:e/c,t),a/=c=Math.pow(10,Math.abs(n-r))}else if(a=n>=0?e*l:e/l,Math.abs(a)>=1e15)return e;return a=i(a,t),n>0?a/=l:a*=l,a}},s=function(e,n){return void 0===n?(console.error("Currency undefined"),""):"string"==typeof window._PS_VERSION_&&r()(window._PS_VERSION_,"1.7.0.0",">=")||void 0!==window.formatCurrencyCldr?new Intl.NumberFormat(Object(l.get)(document.documentElement,"lang"),{style:"currency",currency:n.iso_code}).format(e):function(e,n,t,a){"string"==typeof e&&(e=parseFloat(e));var r,l="EUR";void 0!==window.currency_iso_code&&3===window.currency_iso_code.length?l=window.currency_iso_code:"object"===c(window.currency)&&void 0!==window.currency.iso_code&&3===window.currency.iso_code.length&&(l=window.currency.iso_code),void 0!==window.priceDisplayPrecision&&(r=window.priceDisplayPrecision);try{if(void 0!==window.currencyModes&&void 0!==window.currencyModes[l]&&window.currencyModes[l]){e=u(e.toFixed(10),r);var i=document.documentElement.lang;5===i.length?i=i.substring(0,2).toLowerCase()+"-"+i.substring(3,5).toUpperCase():void 0!==window.full_language_code&&5===window.full_language_code.length?i=window.full_language_code.substring(0,2).toLowerCase()+"-"+window.full_language_code.substring(3,5).toUpperCase():5===window.getBrowserLocale().length&&(i=window.getBrowserLocale().substring(0,2).toLowerCase()+"-"+window.getBrowserLocale().substring(3,5).toUpperCase());var s=e.toLocaleString(i,{style:"currency",currency:"USD",currencyDisplay:"code"});return t&&(s=s.replace("USD",t)),s}}catch(e){}var m="";return e=u(e.toFixed(10),r),void 0!==a&&a&&(m=" "),1==n?t+m+o(e,r,",","."):2==n?o(e,r," ",",")+m+t:3==n?t+m+o(e,r,".",","):4==n?o(e,r,",",".")+m+t:5==n?t+m+o(e,r,"'","."):String(e)}(e,n.format,n.sign,n.blank)}}},0,["vendors~sweetalert"]]); \ No newline at end of file diff --git a/views/js/dist/transactionRefund.min.js.map b/views/js/dist/transactionRefund.min.js.map deleted file mode 100644 index c7be50663..000000000 --- a/views/js/dist/transactionRefund.min.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"sources":["webpack://MollieModule.[name]/./node_modules/classnames/index.js","webpack://MollieModule.[name]/./src/back/transaction/components/refund/EmptyRefundTable.tsx","webpack://MollieModule.[name]/./src/back/transaction/components/refund/PartialRefundButton.tsx","webpack://MollieModule.[name]/./src/back/transaction/components/refund/PaymentInfo.tsx","webpack://MollieModule.[name]/./src/back/transaction/components/refund/PaymentInfoContent.tsx","webpack://MollieModule.[name]/./src/back/transaction/components/refund/RefundButton.tsx","webpack://MollieModule.[name]/./src/back/transaction/components/refund/RefundForm.tsx","webpack://MollieModule.[name]/./src/back/transaction/components/refund/RefundHistory.tsx","webpack://MollieModule.[name]/./src/back/transaction/components/refund/RefundInfo.tsx","webpack://MollieModule.[name]/./src/back/transaction/components/refund/RefundPanel.tsx","webpack://MollieModule.[name]/./src/back/transaction/components/refund/RefundTable.tsx","webpack://MollieModule.[name]/./src/back/transaction/components/refund/RefundTableHeader.tsx"],"names":["EmptyRefundTable","useMappedState","state","translations","thereAreNoRefunds","PartialRefundButton","loading","disabled","refundPayment","config","legacy","content","cx","partialRefund","Div","styled","div","PaymentInfo","paymentInfo","PaymentInfoContent","payment","currencies","transactionInfo","transactionId","id","date","moment","createdAt","format","amount","formatCurrency","parseFloat","value","get","currency","RefundButton","marginRight","refundOrder","RefundForm","useState","setLoading","refundInput","setRefundInput","dispatch","useDispatch","_refundPayment","partial","replace","isNaN","then","swal","default","icon","title","invalidAmount","text","notAValidAmount","dangerMode","xss","areYouSure","areYouSureYouWantToRefund","buttons","cancel","visible","confirm","refund","input","refundPaymentAjax","success","updateWarning","updatePayment","refundFailed","unableToRefund","console","error","settlementAmount","amountRefunded","refundable","amountRemaining","target","width","height","margin","html","minWidth","RefundHistory","refundHistory","refunds","length","RefundInfo","refundsAreCurrentlyUnavailable","RefundPanel","Object","keys","moduleDir","marginTop","opacity","status","RefundTable","map","marginBottom","RefundTableHeader","ID"],"mappings":";;;;;;;;;;;;;;;;;;AAAA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA,gBAAgB;;AAEhB;AACA;;AAEA,iBAAiB,sBAAsB;AACvC;AACA;;AAEA;;AAEA;AACA;AACA,IAAI;AACJ;AACA;AACA;AACA;AACA,IAAI;AACJ;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA,KAAK,KAA6B;AAClC;AACA;AACA,EAAE,UAAU,IAA4E;AACxF;AACA,EAAE,iCAAqB,EAAE,mCAAE;AAC3B;AACA,GAAG;AAAA,oGAAC;AACJ,EAAE,MAAM,EA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,aAAS,EAAC;AAAhB,KAA6BnG,YAAY,CAACsB,IAA1C,CADF,CAJF,eAOE,oFACE;AAAM,aAAS,EAAC;AAAhB,KAA6BtB,YAAY,CAAC0B,MAA1C,CADF,CAPF,CADF,CADF;AAeD,C","file":"transactionRefund.min.js","sourcesContent":["/*!\n Copyright (c) 2017 Jed Watson.\n Licensed under the MIT License (MIT), see\n http://jedwatson.github.io/classnames\n*/\n/* global define */\n\n(function () {\n\t'use strict';\n\n\tvar hasOwn = {}.hasOwnProperty;\n\n\tfunction classNames () {\n\t\tvar classes = [];\n\n\t\tfor (var i = 0; i < arguments.length; i++) {\n\t\t\tvar arg = arguments[i];\n\t\t\tif (!arg) continue;\n\n\t\t\tvar argType = typeof arg;\n\n\t\t\tif (argType === 'string' || argType === 'number') {\n\t\t\t\tclasses.push(arg);\n\t\t\t} else if (Array.isArray(arg) && arg.length) {\n\t\t\t\tvar inner = classNames.apply(null, arg);\n\t\t\t\tif (inner) {\n\t\t\t\t\tclasses.push(inner);\n\t\t\t\t}\n\t\t\t} else if (argType === 'object') {\n\t\t\t\tfor (var key in arg) {\n\t\t\t\t\tif (hasOwn.call(arg, key) && arg[key]) {\n\t\t\t\t\t\tclasses.push(key);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\treturn classes.join(' ');\n\t}\n\n\tif (typeof module !== 'undefined' && module.exports) {\n\t\tclassNames.default = classNames;\n\t\tmodule.exports = classNames;\n\t} else if (typeof define === 'function' && typeof define.amd === 'object' && define.amd) {\n\t\t// register as 'classnames', consistent with npm package name\n\t\tdefine('classnames', [], function () {\n\t\t\treturn classNames;\n\t\t});\n\t} else {\n\t\twindow.classNames = classNames;\n\t}\n}());\n","/**\n * Mollie https://www.mollie.nl\n *\n * @author Mollie B.V. \n * @copyright Mollie B.V.\n * @link https://github.com/mollie/PrestaShop\n * @license https://github.com/mollie/PrestaShop/blob/master/LICENSE.md\n * @codingStandardsIgnoreStart\n */\nimport React, { ReactElement, useCallback } from 'react';\n\nimport RefundTableHeader from '@transaction/components/refund/RefundTableHeader';\nimport { useMappedState } from 'redux-react-hook';\n\nexport default function EmptyRefundTable(): ReactElement<{}> {\n const { translations }: Partial = useMappedState((state: IMollieOrderState): any => ({\n translations: state.translations\n }));\n\n return (\n
    \n \n \n \n \n \n \n \n
    \n
    \n \n {translations.thereAreNoRefunds}\n
    \n
    \n
    \n );\n}\n","/**\n * Mollie https://www.mollie.nl\n *\n * @author Mollie B.V. \n * @copyright Mollie B.V.\n * @link https://github.com/mollie/PrestaShop\n * @license https://github.com/mollie/PrestaShop/blob/master/LICENSE.md\n * @codingStandardsIgnoreStart\n */\n\nimport React, { ReactElement, useCallback } from 'react';\nimport cx from 'classnames';\nimport { useMappedState } from 'redux-react-hook';\n\ninterface IProps {\n loading: boolean;\n disabled: boolean;\n refundPayment: any;\n}\n\nexport default function PartialRefundButton({ loading, disabled, refundPayment }: IProps): ReactElement<{}> {\n const { translations, config: { legacy } }: Partial = useMappedState((state: IMollieOrderState): any => ({\n translations: state.translations,\n config: state.config,\n }));\n\n const content = (\n refundPayment(true)}\n >\n {!legacy && ()} {translations.partialRefund}\n \n );\n\n if (legacy) {\n return content;\n }\n\n return (\n
    \n {content}\n
    \n );\n}\n","/**\n * Mollie https://www.mollie.nl\n *\n * @author Mollie B.V. \n * @copyright Mollie B.V.\n * @link https://github.com/mollie/PrestaShop\n * @license https://github.com/mollie/PrestaShop/blob/master/LICENSE.md\n * @codingStandardsIgnoreStart\n */\nimport React, { ReactElement, useCallback } from 'react';\nimport styled from 'styled-components';\nimport { useMappedState } from 'redux-react-hook';\n\nimport PaymentInfoContent from '@transaction/components/refund/PaymentInfoContent';\n\nconst Div = styled.div`\n@media only screen and (min-width: 992px) {\n margin-left: -5px!important;\n margin-right: 5px!important;\n}\n` as any;\n\nexport default function PaymentInfo(): ReactElement<{}> {\n const { translations, config: { legacy } } = useMappedState((state: IMollieOrderState): any => ({\n translations: state.translations,\n config: state.config,\n }));\n\n if (legacy) {\n return (\n <>\n \n
    \n \n );\n }\n\n return (\n
    \n
    \n
    {translations.paymentInfo}
    \n
    \n \n
    \n
    \n
    \n );\n}\n","/**\n * Mollie https://www.mollie.nl\n *\n * @author Mollie B.V. \n * @copyright Mollie B.V.\n * @link https://github.com/mollie/PrestaShop\n * @license https://github.com/mollie/PrestaShop/blob/master/LICENSE.md\n * @codingStandardsIgnoreStart\n */\nimport React, { ReactElement, useCallback } from 'react';\nimport moment from 'moment';\nimport { get } from 'lodash';\nimport { useMappedState } from 'redux-react-hook';\n\nimport { formatCurrency } from '@shared/tools';\n\nexport default function PaymentInfoContent(): ReactElement<{}> {\n const { translations, payment, currencies, config: { legacy } }: Partial = useMappedState((state: IMollieOrderState): any => ({\n payment: state.payment,\n currencies: state.currencies,\n translations: state.translations,\n config: state.config,\n }));\n\n return (\n <>\n {legacy &&

    {translations.transactionInfo}

    }\n {!legacy &&

    {translations.transactionInfo}

    }\n {translations.transactionId}: {payment.id}
    \n {translations.date}: {moment(payment.createdAt).format('YYYY-MM-DD HH:mm:ss')}
    \n {translations.amount}: {formatCurrency(parseFloat(payment.amount.value), get(currencies, payment.amount.currency))}
    \n \n );\n}\n","/**\n * Mollie https://www.mollie.nl\n *\n * @author Mollie B.V. \n * @copyright Mollie B.V.\n * @link https://github.com/mollie/PrestaShop\n * @license https://github.com/mollie/PrestaShop/blob/master/LICENSE.md\n * @codingStandardsIgnoreStart\n */\nimport React, { ReactElement, useCallback } from 'react';\nimport cx from 'classnames';\nimport { useMappedState } from 'redux-react-hook';\n\ninterface IProps {\n loading: boolean;\n disabled: boolean;\n refundPayment: any;\n}\n\nexport default function RefundButton({ loading, disabled, refundPayment }: IProps): ReactElement<{}> {\n const { translations, }: Partial = useMappedState((state: IMollieOrderState): any => ({\n translations: state.translations,\n }));\n\n return (\n refundPayment(false)}\n style={{ marginRight: '10px' }}\n >\n {translations.refundOrder}\n \n );\n}\n","/**\n * Mollie https://www.mollie.nl\n *\n * @author Mollie B.V. \n * @copyright Mollie B.V.\n * @link https://github.com/mollie/PrestaShop\n * @license https://github.com/mollie/PrestaShop/blob/master/LICENSE.md\n * @codingStandardsIgnoreStart\n */\nimport React, { ReactElement, useCallback, useState } from 'react';\nimport xss from 'xss';\nimport { get } from 'lodash';\n\nimport { updatePayment } from '@transaction/store/actions';\nimport { updateWarning } from '@transaction/store/actions';\nimport RefundButton from '@transaction/components/refund/RefundButton';\nimport PartialRefundButton from '@transaction/components/refund/PartialRefundButton';\nimport { refundPayment as refundPaymentAjax } from '@transaction/misc/ajax';\nimport { formatCurrency } from '@shared/tools';\nimport { IMollieApiPayment } from '@shared/globals';\nimport { SweetAlert } from 'sweetalert/typings/core';\nimport { useDispatch, useMappedState } from 'redux-react-hook';\n\nexport default function RefundForm(): ReactElement<{}> {\n const [loading, setLoading] = useState(false);\n const [refundInput, setRefundInput] = useState('');\n const { translations, payment: { id: transactionId }, payment, currencies, config: { legacy } }: Partial = useMappedState((state: IMollieOrderState): any => ({\n translations: state.translations,\n config: state.config,\n payment: state.payment,\n currencies: state.currencies,\n }),);\n const dispatch = useDispatch();\n\n async function _refundPayment(partial = false): Promise {\n let amount;\n if (partial) {\n amount = parseFloat(refundInput.replace(/[^0-9.,]/g, '').replace(',', '.'));\n if (isNaN(amount)) {\n import(/* webpackPrefetch: true, webpackChunkName: \"sweetalert\" */ 'sweetalert').then(({ default: swal }) => {\n swal({\n icon: 'error',\n title: translations.invalidAmount,\n text: translations.notAValidAmount,\n }).then();\n });\n\n return false;\n }\n }\n\n const { default: swal } = await import(/* webpackPrefetch: true, webpackChunkName: \"sweetalert\" */ 'sweetalert') as never as { default: SweetAlert };\n const input = await swal({\n dangerMode: true,\n icon: 'warning',\n title: xss(translations.areYouSure),\n text: xss(translations.areYouSureYouWantToRefund),\n buttons: {\n cancel: {\n text: xss(translations.cancel),\n visible: true,\n },\n confirm: {\n text: xss(translations.refund),\n },\n },\n });\n if (input) {\n try {\n setLoading(true);\n const { success = false, payment = null } = await refundPaymentAjax(transactionId, amount);\n if (success) {\n if (payment) {\n dispatch(updateWarning('refunded'));\n dispatch(updatePayment(payment));\n setRefundInput('');\n }\n } else {\n swal({\n icon: 'error',\n title: translations.refundFailed,\n text: translations.unableToRefund,\n }).then();\n }\n } catch (e) {\n console.error(e);\n } finally {\n setLoading(false);\n }\n }\n }\n if (legacy) {\n return (\n <>\n

    {translations.refund}

    \n \n \n \n {translations.refundable}:\n \n setRefundInput(value)}\n style={{\n width: '80px',\n height: '15px',\n margin: '-2px 4px 0 4px',\n }}\n />\n \n \n \n );\n }\n let html;\n if (payment.settlementAmount) {\n html = ();\n } else {\n html = '';\n }\n return (\n <>\n

    {translations.refund}

    \n
    \n
    \n
    \n {html}\n
    \n
    \n
    \n
    \n {translations.refundable}:\n
    \n setRefundInput(value)}\n style={{ width: '80px' }}\n />\n \n
    \n
    \n
    \n
    \n \n );\n}\n\n","/**\n * Mollie https://www.mollie.nl\n *\n * @author Mollie B.V. \n * @copyright Mollie B.V.\n * @link https://github.com/mollie/PrestaShop\n * @license https://github.com/mollie/PrestaShop/blob/master/LICENSE.md\n * @codingStandardsIgnoreStart\n */\nimport React, { ReactElement, useCallback } from 'react';\nimport { useMappedState } from 'redux-react-hook';\n\nimport EmptyRefundTable from '@transaction/components/refund/EmptyRefundTable';\nimport RefundTable from '@transaction/components/refund/RefundTable';\n\nexport default function RefundHistory(): ReactElement<{}> {\n const { translations, payment }: Partial = useMappedState((state: IMollieOrderState): any => ({\n translations: state.translations,\n payment: state.payment,\n }));\n\n return (\n <>\n

    {translations.refundHistory}

    \n {!payment.refunds.length && }\n {!!payment.refunds.length && }\n \n );\n}\n","/**\n * Mollie https://www.mollie.nl\n *\n * @author Mollie B.V. \n * @copyright Mollie B.V.\n * @link https://github.com/mollie/PrestaShop\n * @license https://github.com/mollie/PrestaShop/blob/master/LICENSE.md\n * @codingStandardsIgnoreStart\n */\nimport React, { ReactElement, useCallback } from 'react';\nimport styled from 'styled-components';\n\nimport RefundHistory from '@transaction/components/refund/RefundHistory';\nimport RefundForm from '@transaction/components/refund/RefundForm';\nimport { useMappedState } from 'redux-react-hook';\n\nconst Div = styled.div`\n@media only screen and (min-width: 992px) {\n margin-left: 5px!important;\n margin-right: -5px!important;\n}\n` as any;\n\nexport default function RefundInfo(): ReactElement<{}> {\n const { translations, config: { legacy }, payment }: Partial = useMappedState( (state: IMollieOrderState): any => ({\n payment: state.payment,\n translations: state.translations,\n config: state.config,\n }));\n\n if (legacy) {\n return (\n <>\n

    {translations.refunds}

    \n {payment.amountRefunded && }\n {payment.amountRefunded && }\n {!payment.amountRefunded &&
    {translations.refundsAreCurrentlyUnavailable}
    }\n \n );\n }\n\n return (\n
    \n
    \n
    {translations.refunds}
    \n
    \n {payment.amountRefunded && }\n {payment.amountRefunded && }\n {!payment.amountRefunded &&\n
    {translations.refundsAreCurrentlyUnavailable}
    }\n
    \n
    \n
    \n );\n}\n","/**\n * Mollie https://www.mollie.nl\n *\n * @author Mollie B.V. \n * @copyright Mollie B.V.\n * @link https://github.com/mollie/PrestaShop\n * @license https://github.com/mollie/PrestaShop/blob/master/LICENSE.md\n * @codingStandardsIgnoreStart\n */\nimport React, { ReactElement, useCallback } from 'react';\nimport { useMappedState } from 'redux-react-hook';\n\nimport PaymentInfo from '@transaction/components/refund/PaymentInfo';\nimport RefundInfo from '@transaction/components/refund/RefundInfo';\nimport LoadingDots from '@shared/components/LoadingDots';\nimport WarningContent from \"@transaction/components/orderlines/WarningContent\";\n\nexport default function RefundPanel(): ReactElement<{}> {\n const { payment, config }: Partial = useMappedState((state: IMollieOrderState): any => ({\n config: state.config,\n payment: state.payment,\n }),);\n\n if (Object.keys(config).length <= 0) {\n return null;\n }\n const { moduleDir, legacy } = config;\n\n if (legacy) {\n return (\n
    \n \n \n Mollie \n \n \n {!payment && }\n {!!payment && payment.status && (\n <>\n \n \n \n )}\n
    \n );\n }\n\n return (\n
    \n
    \n Mollie \n
    \n \n {!payment && }\n {!!payment && payment.status && (\n
    \n \n \n
    \n )}\n
    \n );\n}\n\n","/**\n * Mollie https://www.mollie.nl\n *\n * @author Mollie B.V. \n * @copyright Mollie B.V.\n * @link https://github.com/mollie/PrestaShop\n * @license https://github.com/mollie/PrestaShop/blob/master/LICENSE.md\n * @codingStandardsIgnoreStart\n */\nimport React, { ReactElement, useCallback } from 'react';\nimport RefundTableHeader from './RefundTableHeader';\nimport moment from 'moment';\nimport { get } from 'lodash';\nimport { useMappedState } from 'redux-react-hook';\n\nimport { formatCurrency } from '@shared/tools';\nimport { IMollieApiRefund } from '@shared/globals';\n\nexport default function RefundTable(): ReactElement<{}> {\n const { payment, currencies }: Partial = useMappedState((state: IMollieOrderState): any => ({\n payment: state.payment,\n currencies: state.currencies,\n }));\n\n return (\n
    \n \n \n \n {payment.refunds.map((refund: IMollieApiRefund) => (\n \n \n \n \n \n ))}\n \n
    {refund.id}{moment(refund.createdAt).format('YYYY-MM-DD HH:mm:ss')}{formatCurrency(parseFloat(refund.amount.value), get(currencies, refund.amount.currency))}
    \n
    \n );\n}\n\n","/**\n * Mollie https://www.mollie.nl\n *\n * @author Mollie B.V. \n * @copyright Mollie B.V.\n * @link https://github.com/mollie/PrestaShop\n * @license https://github.com/mollie/PrestaShop/blob/master/LICENSE.md\n * @codingStandardsIgnoreStart\n */\nimport React, { ReactElement, useCallback } from 'react';\nimport { useMappedState } from 'redux-react-hook';\n\nexport default function RefundTableHeader(): ReactElement<{}> {\n const { translations }: Partial = useMappedState((state: IMollieOrderState): any => ({\n translations: state.translations,\n }));\n\n return (\n \n \n \n {translations.ID}\n \n \n {translations.date}\n \n \n {translations.amount}\n \n \n \n );\n}\n"],"sourceRoot":""} \ No newline at end of file diff --git a/views/js/dist/transaction~transactionOrder~transactionRefund.min.js b/views/js/dist/transaction~transactionOrder~transactionRefund.min.js deleted file mode 100644 index ae8240e85..000000000 --- a/views/js/dist/transaction~transactionOrder~transactionRefund.min.js +++ /dev/null @@ -1,515 +0,0 @@ -/*! - * - * Mollie https://www.mollie.nl - * @author Mollie B.V. - * @copyright Mollie B.V. - * @link https://github.com/mollie/PrestaShop - * @license https://github.com/mollie/PrestaShop/blob/master/LICENSE.md - * - */ -(window["webpackJsonP_mollie"] = window["webpackJsonP_mollie"] || []).push([["transaction~transactionOrder~transactionRefund"],{ - -/***/ "./src/back/transaction/misc/ajax.ts": -/*!*******************************************!*\ - !*** ./src/back/transaction/misc/ajax.ts ***! - \*******************************************/ -/*! exports provided: retrievePayment, retrieveOrder, refundPayment, refundOrder, cancelOrder, shipOrder */ -/***/ (function(module, __webpack_exports__, __webpack_require__) { - -"use strict"; -__webpack_require__.r(__webpack_exports__); -/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "retrievePayment", function() { return retrievePayment; }); -/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "retrieveOrder", function() { return retrieveOrder; }); -/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "refundPayment", function() { return refundPayment; }); -/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "refundOrder", function() { return refundOrder; }); -/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "cancelOrder", function() { return cancelOrder; }); -/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "shipOrder", function() { return shipOrder; }); -/* harmony import */ var core_js_modules_es6_array_from__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! core-js/modules/es6.array.from */ "./node_modules/core-js/modules/es6.array.from.js"); -/* harmony import */ var core_js_modules_es6_array_from__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es6_array_from__WEBPACK_IMPORTED_MODULE_0__); -/* harmony import */ var core_js_modules_es6_function_name__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! core-js/modules/es6.function.name */ "./node_modules/core-js/modules/es6.function.name.js"); -/* harmony import */ var core_js_modules_es6_function_name__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es6_function_name__WEBPACK_IMPORTED_MODULE_1__); -/* harmony import */ var core_js_modules_es6_regexp_to_string__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! core-js/modules/es6.regexp.to-string */ "./node_modules/core-js/modules/es6.regexp.to-string.js"); -/* harmony import */ var core_js_modules_es6_regexp_to_string__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es6_regexp_to_string__WEBPACK_IMPORTED_MODULE_2__); -/* harmony import */ var core_js_modules_es6_date_to_string__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! core-js/modules/es6.date.to-string */ "./node_modules/core-js/modules/es6.date.to-string.js"); -/* harmony import */ var core_js_modules_es6_date_to_string__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es6_date_to_string__WEBPACK_IMPORTED_MODULE_3__); -/* harmony import */ var core_js_modules_es7_symbol_async_iterator__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! core-js/modules/es7.symbol.async-iterator */ "./node_modules/core-js/modules/es7.symbol.async-iterator.js"); -/* harmony import */ var core_js_modules_es7_symbol_async_iterator__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es7_symbol_async_iterator__WEBPACK_IMPORTED_MODULE_4__); -/* harmony import */ var core_js_modules_es6_symbol__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! core-js/modules/es6.symbol */ "./node_modules/core-js/modules/es6.symbol.js"); -/* harmony import */ var core_js_modules_es6_symbol__WEBPACK_IMPORTED_MODULE_5___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es6_symbol__WEBPACK_IMPORTED_MODULE_5__); -/* harmony import */ var core_js_modules_es6_promise__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! core-js/modules/es6.promise */ "./node_modules/core-js/modules/es6.promise.js"); -/* harmony import */ var core_js_modules_es6_promise__WEBPACK_IMPORTED_MODULE_6___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es6_promise__WEBPACK_IMPORTED_MODULE_6__); -/* harmony import */ var core_js_modules_web_dom_iterable__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! core-js/modules/web.dom.iterable */ "./node_modules/core-js/modules/web.dom.iterable.js"); -/* harmony import */ var core_js_modules_web_dom_iterable__WEBPACK_IMPORTED_MODULE_7___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_web_dom_iterable__WEBPACK_IMPORTED_MODULE_7__); -/* harmony import */ var core_js_modules_es6_array_iterator__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! core-js/modules/es6.array.iterator */ "./node_modules/core-js/modules/es6.array.iterator.js"); -/* harmony import */ var core_js_modules_es6_array_iterator__WEBPACK_IMPORTED_MODULE_8___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es6_array_iterator__WEBPACK_IMPORTED_MODULE_8__); -/* harmony import */ var core_js_modules_es6_object_to_string__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! core-js/modules/es6.object.to-string */ "./node_modules/core-js/modules/es6.object.to-string.js"); -/* harmony import */ var core_js_modules_es6_object_to_string__WEBPACK_IMPORTED_MODULE_9___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es6_object_to_string__WEBPACK_IMPORTED_MODULE_9__); -/* harmony import */ var core_js_modules_es6_string_iterator__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! core-js/modules/es6.string.iterator */ "./node_modules/core-js/modules/es6.string.iterator.js"); -/* harmony import */ var core_js_modules_es6_string_iterator__WEBPACK_IMPORTED_MODULE_10___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es6_string_iterator__WEBPACK_IMPORTED_MODULE_10__); -/* harmony import */ var regenerator_runtime_runtime__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! regenerator-runtime/runtime */ "./node_modules/regenerator-runtime/runtime.js"); -/* harmony import */ var regenerator_runtime_runtime__WEBPACK_IMPORTED_MODULE_11___default = /*#__PURE__*/__webpack_require__.n(regenerator_runtime_runtime__WEBPACK_IMPORTED_MODULE_11__); -/* harmony import */ var _shared_axios__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! ../../../shared/axios */ "./src/shared/axios.ts"); -/* harmony import */ var lodash__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(/*! lodash */ "./node_modules/lodash/lodash.js"); -/* harmony import */ var lodash__WEBPACK_IMPORTED_MODULE_13___default = /*#__PURE__*/__webpack_require__.n(lodash__WEBPACK_IMPORTED_MODULE_13__); - - - - - - - - - - - - - -function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); } - -function _nonIterableRest() { 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 _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); } - -function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) { arr2[i] = arr[i]; } return arr2; } - -function _iterableToArrayLimit(arr, i) { if (typeof Symbol === "undefined" || !(Symbol.iterator in Object(arr))) return; var _arr = []; var _n = true; var _d = false; var _e = undefined; try { for (var _i = arr[Symbol.iterator](), _s; !(_n = (_s = _i.next()).done); _n = true) { _arr.push(_s.value); if (i && _arr.length === i) break; } } catch (err) { _d = true; _e = err; } finally { try { if (!_n && _i["return"] != null) _i["return"](); } finally { if (_d) throw _e; } } return _arr; } - -function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; } - -function asyncGeneratorStep(gen, resolve, reject, _next, _throw, key, arg) { try { var info = gen[key](arg); var value = info.value; } catch (error) { reject(error); return; } if (info.done) { resolve(value); } else { Promise.resolve(value).then(_next, _throw); } } - -function _asyncToGenerator(fn) { return function () { var self = this, args = arguments; return new Promise(function (resolve, reject) { var gen = fn.apply(self, args); function _next(value) { asyncGeneratorStep(gen, resolve, reject, _next, _throw, "next", value); } function _throw(err) { asyncGeneratorStep(gen, resolve, reject, _next, _throw, "throw", err); } _next(undefined); }); }; } - -/** - * Mollie https://www.mollie.nl - * - * @author Mollie B.V. - * @copyright Mollie B.V. - * @link https://github.com/mollie/PrestaShop - * @license https://github.com/mollie/PrestaShop/blob/master/LICENSE.md - * @codingStandardsIgnoreStart - */ - - -var retrievePayment = /*#__PURE__*/function () { - var _ref = _asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee(transactionId) { - var _yield$Promise$all, _yield$Promise$all2, store, ajaxEndpoint, _yield$axios$post, _yield$axios$post$dat, payment; - - return regeneratorRuntime.wrap(function _callee$(_context) { - while (1) { - switch (_context.prev = _context.next) { - case 0: - _context.next = 2; - return Promise.all([Promise.resolve(/*! import() */).then(__webpack_require__.bind(null, /*! ../store */ "./src/back/transaction/store/index.ts"))]); - - case 2: - _yield$Promise$all = _context.sent; - _yield$Promise$all2 = _slicedToArray(_yield$Promise$all, 1); - store = _yield$Promise$all2[0].default; - _context.prev = 5; - ajaxEndpoint = store.getState().config.ajaxEndpoint; - _context.next = 9; - return _shared_axios__WEBPACK_IMPORTED_MODULE_12__["default"].post(ajaxEndpoint, { - resource: 'payments', - action: 'retrieve', - transactionId: transactionId - }); - - case 9: - _yield$axios$post = _context.sent; - _yield$axios$post$dat = _yield$axios$post.data; - _yield$axios$post$dat = _yield$axios$post$dat === void 0 ? { - payment: null - } : _yield$axios$post$dat; - payment = _yield$axios$post$dat.payment; - return _context.abrupt("return", payment || null); - - case 16: - _context.prev = 16; - _context.t0 = _context["catch"](5); - console.error(_context.t0); - return _context.abrupt("return", null); - - case 20: - case "end": - return _context.stop(); - } - } - }, _callee, null, [[5, 16]]); - })); - - return function retrievePayment(_x) { - return _ref.apply(this, arguments); - }; -}(); -var retrieveOrder = /*#__PURE__*/function () { - var _ref2 = _asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee2(transactionId) { - var _yield$Promise$all3, _yield$Promise$all4, store, ajaxEndpoint, _yield$axios$post2, _yield$axios$post2$da, order; - - return regeneratorRuntime.wrap(function _callee2$(_context2) { - while (1) { - switch (_context2.prev = _context2.next) { - case 0: - _context2.next = 2; - return Promise.all([Promise.resolve(/*! import() */).then(__webpack_require__.bind(null, /*! ../store */ "./src/back/transaction/store/index.ts"))]); - - case 2: - _yield$Promise$all3 = _context2.sent; - _yield$Promise$all4 = _slicedToArray(_yield$Promise$all3, 1); - store = _yield$Promise$all4[0].default; - _context2.prev = 5; - ajaxEndpoint = store.getState().config.ajaxEndpoint; - _context2.next = 9; - return _shared_axios__WEBPACK_IMPORTED_MODULE_12__["default"].post(ajaxEndpoint, { - resource: 'orders', - action: 'retrieve', - transactionId: transactionId - }); - - case 9: - _yield$axios$post2 = _context2.sent; - _yield$axios$post2$da = _yield$axios$post2.data; - _yield$axios$post2$da = _yield$axios$post2$da === void 0 ? { - order: null - } : _yield$axios$post2$da; - order = _yield$axios$post2$da.order; - return _context2.abrupt("return", order || null); - - case 16: - _context2.prev = 16; - _context2.t0 = _context2["catch"](5); - console.error(_context2.t0); - return _context2.abrupt("return", null); - - case 20: - case "end": - return _context2.stop(); - } - } - }, _callee2, null, [[5, 16]]); - })); - - return function retrieveOrder(_x2) { - return _ref2.apply(this, arguments); - }; -}(); -var refundPayment = /*#__PURE__*/function () { - var _ref3 = _asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee3(transactionId, amount) { - var _yield$Promise$all5, _yield$Promise$all6, store, ajaxEndpoint, _yield$axios$post3, data; - - return regeneratorRuntime.wrap(function _callee3$(_context3) { - while (1) { - switch (_context3.prev = _context3.next) { - case 0: - _context3.next = 2; - return Promise.all([Promise.resolve(/*! import() */).then(__webpack_require__.bind(null, /*! ../store */ "./src/back/transaction/store/index.ts"))]); - - case 2: - _yield$Promise$all5 = _context3.sent; - _yield$Promise$all6 = _slicedToArray(_yield$Promise$all5, 1); - store = _yield$Promise$all6[0].default; - _context3.prev = 5; - ajaxEndpoint = store.getState().config.ajaxEndpoint; - _context3.next = 9; - return _shared_axios__WEBPACK_IMPORTED_MODULE_12__["default"].post(ajaxEndpoint, { - resource: 'payments', - action: 'refund', - transactionId: transactionId, - amount: amount - }); - - case 9: - _yield$axios$post3 = _context3.sent; - data = _yield$axios$post3.data; - - if (!(!data.success && typeof data.message === 'string')) { - _context3.next = 13; - break; - } - - throw data.detailed ? data.detailed : data.message; - - case 13: - return _context3.abrupt("return", Object(lodash__WEBPACK_IMPORTED_MODULE_13__["defaults"])(data, { - success: false, - payment: null - })); - - case 16: - _context3.prev = 16; - _context3.t0 = _context3["catch"](5); - - if (!(typeof _context3.t0 === 'string')) { - _context3.next = 20; - break; - } - - throw _context3.t0; - - case 20: - console.error(_context3.t0); - return _context3.abrupt("return", false); - - case 22: - case "end": - return _context3.stop(); - } - } - }, _callee3, null, [[5, 16]]); - })); - - return function refundPayment(_x3, _x4) { - return _ref3.apply(this, arguments); - }; -}(); -var refundOrder = /*#__PURE__*/function () { - var _ref4 = _asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee4(order, orderLines) { - var _yield$Promise$all7, _yield$Promise$all8, store, ajaxEndpoint, _yield$axios$post4, data; - - return regeneratorRuntime.wrap(function _callee4$(_context4) { - while (1) { - switch (_context4.prev = _context4.next) { - case 0: - _context4.next = 2; - return Promise.all([Promise.resolve(/*! import() */).then(__webpack_require__.bind(null, /*! ../store */ "./src/back/transaction/store/index.ts"))]); - - case 2: - _yield$Promise$all7 = _context4.sent; - _yield$Promise$all8 = _slicedToArray(_yield$Promise$all7, 1); - store = _yield$Promise$all8[0].default; - _context4.prev = 5; - ajaxEndpoint = store.getState().config.ajaxEndpoint; - _context4.next = 9; - return _shared_axios__WEBPACK_IMPORTED_MODULE_12__["default"].post(ajaxEndpoint, { - resource: 'orders', - action: 'refund', - orderLines: orderLines, - order: order - }); - - case 9: - _yield$axios$post4 = _context4.sent; - data = _yield$axios$post4.data; - - if (!(!data.success && typeof data.message === 'string')) { - _context4.next = 13; - break; - } - - throw data.detailed ? data.detailed : data.message; - - case 13: - return _context4.abrupt("return", Object(lodash__WEBPACK_IMPORTED_MODULE_13__["defaults"])(data, { - success: false, - order: null - })); - - case 16: - _context4.prev = 16; - _context4.t0 = _context4["catch"](5); - - if (!(typeof _context4.t0 === 'string')) { - _context4.next = 20; - break; - } - - throw _context4.t0; - - case 20: - console.error(_context4.t0); - return _context4.abrupt("return", false); - - case 22: - case "end": - return _context4.stop(); - } - } - }, _callee4, null, [[5, 16]]); - })); - - return function refundOrder(_x5, _x6) { - return _ref4.apply(this, arguments); - }; -}(); -var cancelOrder = /*#__PURE__*/function () { - var _ref5 = _asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee5(transactionId, orderLines) { - var _yield$Promise$all9, _yield$Promise$all10, store, ajaxEndpoint, _yield$axios$post5, data; - - return regeneratorRuntime.wrap(function _callee5$(_context5) { - while (1) { - switch (_context5.prev = _context5.next) { - case 0: - _context5.next = 2; - return Promise.all([Promise.resolve(/*! import() */).then(__webpack_require__.bind(null, /*! ../store */ "./src/back/transaction/store/index.ts"))]); - - case 2: - _yield$Promise$all9 = _context5.sent; - _yield$Promise$all10 = _slicedToArray(_yield$Promise$all9, 1); - store = _yield$Promise$all10[0].default; - _context5.prev = 5; - ajaxEndpoint = store.getState().config.ajaxEndpoint; - _context5.next = 9; - return _shared_axios__WEBPACK_IMPORTED_MODULE_12__["default"].post(ajaxEndpoint, { - resource: 'orders', - action: 'cancel', - transactionId: transactionId, - orderLines: orderLines - }); - - case 9: - _yield$axios$post5 = _context5.sent; - data = _yield$axios$post5.data; - - if (!(!data.success && typeof data.message === 'string')) { - _context5.next = 13; - break; - } - - throw data.detailed ? data.detailed : data.message; - - case 13: - return _context5.abrupt("return", Object(lodash__WEBPACK_IMPORTED_MODULE_13__["defaults"])(data, { - success: false, - order: null - })); - - case 16: - _context5.prev = 16; - _context5.t0 = _context5["catch"](5); - - if (!(typeof _context5.t0 === 'string')) { - _context5.next = 20; - break; - } - - throw _context5.t0; - - case 20: - console.error(_context5.t0); - return _context5.abrupt("return", false); - - case 22: - case "end": - return _context5.stop(); - } - } - }, _callee5, null, [[5, 16]]); - })); - - return function cancelOrder(_x7, _x8) { - return _ref5.apply(this, arguments); - }; -}(); -var shipOrder = /*#__PURE__*/function () { - var _ref6 = _asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee6(transactionId, orderLines, tracking) { - var _yield$Promise$all11, _yield$Promise$all12, store, ajaxEndpoint, _yield$axios$post6, data; - - return regeneratorRuntime.wrap(function _callee6$(_context6) { - while (1) { - switch (_context6.prev = _context6.next) { - case 0: - _context6.next = 2; - return Promise.all([Promise.resolve(/*! import() */).then(__webpack_require__.bind(null, /*! ../store */ "./src/back/transaction/store/index.ts"))]); - - case 2: - _yield$Promise$all11 = _context6.sent; - _yield$Promise$all12 = _slicedToArray(_yield$Promise$all11, 1); - store = _yield$Promise$all12[0].default; - _context6.prev = 5; - ajaxEndpoint = store.getState().config.ajaxEndpoint; - _context6.next = 9; - return _shared_axios__WEBPACK_IMPORTED_MODULE_12__["default"].post(ajaxEndpoint, { - resource: 'orders', - action: 'ship', - transactionId: transactionId, - orderLines: orderLines, - tracking: tracking - }); - - case 9: - _yield$axios$post6 = _context6.sent; - data = _yield$axios$post6.data; - - if (!(!data.success && typeof data.message === 'string')) { - _context6.next = 13; - break; - } - - throw data.detailed ? data.detailed : data.message; - - case 13: - return _context6.abrupt("return", Object(lodash__WEBPACK_IMPORTED_MODULE_13__["defaults"])(data, { - success: false, - order: null - })); - - case 16: - _context6.prev = 16; - _context6.t0 = _context6["catch"](5); - - if (!(typeof _context6.t0 === 'string')) { - _context6.next = 20; - break; - } - - throw _context6.t0; - - case 20: - console.error(_context6.t0); - return _context6.abrupt("return", false); - - case 22: - case "end": - return _context6.stop(); - } - } - }, _callee6, null, [[5, 16]]); - })); - - return function shipOrder(_x9, _x10, _x11) { - return _ref6.apply(this, arguments); - }; -}(); - -/***/ }), - -/***/ "./src/shared/axios.ts": -/*!*****************************!*\ - !*** ./src/shared/axios.ts ***! - \*****************************/ -/*! exports provided: default */ -/***/ (function(module, __webpack_exports__, __webpack_require__) { - -"use strict"; -__webpack_require__.r(__webpack_exports__); -/* harmony import */ var core_js_modules_es6_regexp_replace__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! core-js/modules/es6.regexp.replace */ "./node_modules/core-js/modules/es6.regexp.replace.js"); -/* harmony import */ var core_js_modules_es6_regexp_replace__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es6_regexp_replace__WEBPACK_IMPORTED_MODULE_0__); -/* harmony import */ var axios__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! axios */ "./node_modules/axios/index.js"); -/* harmony import */ var axios__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(axios__WEBPACK_IMPORTED_MODULE_1__); - - -/** - * Mollie https://www.mollie.nl - * - * @author Mollie B.V. - * @copyright Mollie B.V. - * @link https://github.com/mollie/PrestaShop - * @license https://github.com/mollie/PrestaShop/blob/master/LICENSE.md - * @codingStandardsIgnoreStart - */ - -/* harmony default export */ __webpack_exports__["default"] = (axios__WEBPACK_IMPORTED_MODULE_1___default.a.create({ - transformResponse: [function (res) { - return JSON.parse(res.replace(/^[^{[]*/mg, '').replace(/([^}\]]*)$/mg, '')); - }], - headers: { - 'X-Requested-With': 'XMLHttpRequest', - 'Content-Type': 'application/json', - 'Accept': 'application/json' - } -})); - -/***/ }) - -}]); -//# sourceMappingURL=transaction~transactionOrder~transactionRefund.min.js.map \ No newline at end of file diff --git a/views/js/dist/transaction~transactionOrder~transactionRefund.min.js.map b/views/js/dist/transaction~transactionOrder~transactionRefund.min.js.map deleted file mode 100644 index 6a5a16919..000000000 --- a/views/js/dist/transaction~transactionOrder~transactionRefund.min.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"sources":["webpack://MollieModule.[name]/./src/back/transaction/misc/ajax.ts","webpack://MollieModule.[name]/./src/shared/axios.ts"],"names":["retrievePayment","transactionId","Promise","all","store","default","ajaxEndpoint","getState","config","axios","post","resource","action","data","payment","console","error","retrieveOrder","order","refundPayment","amount","success","message","detailed","defaults","refundOrder","orderLines","cancelOrder","shipOrder","tracking","create","transformResponse","res","JSON","parse","replace","headers"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAIO,IAAMA,eAAe;AAAA,qEAAG,iBAAOC,aAAP;AAAA;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,mBAGnBC,OAAO,CAACC,GAAR,CAAY,CACpB,8HADoB,CAAZ,CAHmB;;AAAA;AAAA;AAAA;AAEhBC,iBAFgB,0BAEzBC,OAFyB;AAAA;AAOrBC,wBAPqB,GAONF,KAAK,CAACG,QAAN,GAAiBC,MAAjB,CAAwBF,YAPlB;AAAA;AAAA,mBAS6BG,sDAAK,CAACC,IAAN,CAAWJ,YAAX,EAAyB;AAC/EK,sBAAQ,EAAE,UADqE;AAE/EC,oBAAM,EAAE,UAFuE;AAG/EX,2BAAa,EAAbA;AAH+E,aAAzB,CAT7B;;AAAA;AAAA;AAAA,sDASnBY,IATmB;AAAA,uEASC;AAAEC,qBAAO,EAAE;AAAX,aATD;AASXA,mBATW,yBASXA,OATW;AAAA,6CAepBA,OAAO,IAAI,IAfS;;AAAA;AAAA;AAAA;AAiB3BC,mBAAO,CAACC,KAAR;AAjB2B,6CAmBpB,IA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O,EAAE,KAAX;AAAkBH,mBAAK,EAAE;AAAzB,aAAP,CApBM;;AAAA;AAAA;AAAA;;AAAA,kBAsBjB,wBAAa,QAtBI;AAAA;AAAA;AAAA;;AAAA;;AAAA;AAyBrBH,mBAAO,CAACC,KAAR;AAzBqB,8CA2Bd,KA3Bc;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,GAAH;;AAAA,kBAATY,SAAS;AAAA;AAAA;AAAA,GAAf,C;;;;;;;;;;;;;;;;;;;ACpJP;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAEenB,2GAAK,CAACqB,MAAN,CAAa;AAC1BC,mBAAiB,EAAE,CAAC,UAAAC,GAAG;AAAA,WAAIC,IAAI,CAACC,KAAL,CAAWF,GAAG,CAACG,OAAJ,CAAY,WAAZ,EAAyB,EAAzB,EAA6BA,OAA7B,CAAqC,cAArC,EAAqD,EAArD,CAAX,CAAJ;AAAA,GAAJ,CADO;AAE1BC,SAAO,EAAE;AACP,wBAAoB,gBADb;AAEP,oBAAgB,kBAFT;AAGP,cAAU;AAHH;AAFiB,CAAb,CAAf,E","file":"transaction~transactionOrder~transactionRefund.min.js","sourcesContent":["/**\n * Mollie https://www.mollie.nl\n *\n * @author Mollie B.V. \n * @copyright Mollie B.V.\n * @link https://github.com/mollie/PrestaShop\n * @license https://github.com/mollie/PrestaShop/blob/master/LICENSE.md\n * @codingStandardsIgnoreStart\n */\nimport axios from '@shared/axios';\nimport { defaults } from 'lodash';\n\nimport { IMollieApiOrder, IMollieApiPayment, IMollieOrderLine, IMollieTracking } from '@shared/globals';\n\nexport const retrievePayment = async (transactionId: string): Promise => {\n const [\n { default: store },\n ] = await Promise.all([\n import(/* webpackPrefetch: true, webpackChunkName: \"transaction\" */ '@transaction/store'),\n ]);\n try {\n const ajaxEndpoint = store.getState().config.ajaxEndpoint;\n\n const { data: { payment } = { payment: null } } = await axios.post(ajaxEndpoint, {\n resource: 'payments',\n action: 'retrieve',\n transactionId,\n });\n\n return payment || null;\n } catch (e) {\n console.error(e);\n\n return null;\n }\n};\n\nexport const retrieveOrder = async (transactionId: string): Promise => {\n const [\n { default: store }\n ] = await Promise.all([\n import(/* webpackPrefetch: true, webpackChunkName: \"transaction\" */ '@transaction/store'),\n ]);\n try {\n const ajaxEndpoint = store.getState().config.ajaxEndpoint;\n\n const { data: { order } = { order: null } } = await axios.post(ajaxEndpoint, {\n resource: 'orders',\n action: 'retrieve',\n transactionId,\n });\n\n return order || null;\n } catch (e) {\n console.error(e);\n\n return null;\n }\n};\n\nexport const refundPayment = async (transactionId: string, amount?: number): Promise => {\n const [\n { default: store },\n ] = await Promise.all([\n import(/* webpackPrefetch: true, webpackChunkName: \"transaction\" */ '@transaction/store'),\n ]);\n try {\n const ajaxEndpoint = store.getState().config.ajaxEndpoint;\n\n const { data } = await axios.post(ajaxEndpoint, {\n resource: 'payments',\n action: 'refund',\n transactionId,\n amount,\n });\n if (!data.success && typeof data.message === 'string') {\n throw data.detailed ? data.detailed : data.message;\n }\n\n return defaults(data, { success: false, payment: null });\n } catch (e) {\n if (typeof e === 'string') {\n throw e;\n }\n console.error(e);\n\n return false;\n }\n};\n\nexport const refundOrder = async (order: IMollieApiOrder, orderLines?: Array): Promise => {\n const [\n { default: store},\n ] = await Promise.all([\n import(/* webpackPrefetch: true, webpackChunkName: \"transaction\" */ '@transaction/store'),\n ]);\n try {\n const ajaxEndpoint = store.getState().config.ajaxEndpoint;\n\n const { data } = await axios.post(ajaxEndpoint, {\n resource: 'orders',\n action: 'refund',\n orderLines,\n order\n });\n if (!data.success && typeof data.message === 'string') {\n throw data.detailed ? data.detailed : data.message;\n }\n return defaults(data, { success: false, order: null });\n } catch (e) {\n if (typeof e === 'string') {\n throw e;\n }\n console.error(e);\n\n return false;\n }\n};\n\nexport const cancelOrder = async (transactionId: string, orderLines?: Array): Promise => {\n const [\n { default: store },\n ] = await Promise.all([\n import(/* webpackPrefetch: true, webpackChunkName: \"transaction\" */ '@transaction/store'),\n ]);\n try {\n const ajaxEndpoint = store.getState().config.ajaxEndpoint;\n\n const { data } = await axios.post(ajaxEndpoint, {\n resource: 'orders',\n action: 'cancel',\n transactionId,\n orderLines,\n });\n if (!data.success && typeof data.message === 'string') {\n throw data.detailed ? data.detailed : data.message;\n }\n return defaults(data, { success: false, order: null });\n } catch (e) {\n if (typeof e === 'string') {\n throw e;\n }\n console.error(e);\n\n return false;\n }\n};\n\nexport const shipOrder = async (transactionId: string, orderLines?: Array, tracking?: IMollieTracking): Promise => {\n const [\n { default: store },\n ] = await Promise.all([\n import(/* webpackPrefetch: true, webpackChunkName: \"transaction\" */ '@transaction/store'),\n ]);\n try {\n const ajaxEndpoint = store.getState().config.ajaxEndpoint;\n\n const { data } = await axios.post(ajaxEndpoint, {\n resource: 'orders',\n action: 'ship',\n transactionId,\n orderLines,\n tracking,\n });\n if (!data.success && typeof data.message === 'string') {\n throw data.detailed ? data.detailed : data.message;\n }\n\n return defaults(data, { success: false, order: null });\n } catch (e) {\n if (typeof e === 'string') {\n throw e;\n }\n console.error(e);\n\n return false;\n }\n};\n","/**\n * Mollie https://www.mollie.nl\n *\n * @author Mollie B.V. \n * @copyright Mollie B.V.\n * @link https://github.com/mollie/PrestaShop\n * @license https://github.com/mollie/PrestaShop/blob/master/LICENSE.md\n * @codingStandardsIgnoreStart\n */\nimport axios from 'axios';\n\nexport default axios.create({\n transformResponse: [res => JSON.parse(res.replace(/^[^{[]*/mg, '').replace(/([^}\\]]*)$/mg, ''))],\n headers: {\n 'X-Requested-With': 'XMLHttpRequest',\n 'Content-Type': 'application/json',\n 'Accept': 'application/json',\n },\n});\n\n"],"sourceRoot":""} \ No newline at end of file diff --git a/views/js/dist/transaction~transactionRefund.min.js b/views/js/dist/transaction~transactionRefund.min.js deleted file mode 100644 index 3d8d6fd58..000000000 --- a/views/js/dist/transaction~transactionRefund.min.js +++ /dev/null @@ -1,516 +0,0 @@ -/** - * Mollie https://www.mollie.nl - * - * @author Mollie B.V. - * @copyright Mollie B.V. - * @license https://github.com/mollie/PrestaShop/blob/master/LICENSE.md - * - * @see https://github.com/mollie/PrestaShop - * @codingStandardsIgnoreStart - */ -(window["webpackJsonP_mollie"] = window["webpackJsonP_mollie"] || []).push([["transaction~transactionRefund"],{ - -/***/ "./src/back/transaction/misc/ajax.ts": -/*!*******************************************!*\ - !*** ./src/back/transaction/misc/ajax.ts ***! - \*******************************************/ -/*! exports provided: retrievePayment, retrieveOrder, refundPayment, refundOrder, cancelOrder, shipOrder */ -/***/ (function(module, __webpack_exports__, __webpack_require__) { - -"use strict"; -__webpack_require__.r(__webpack_exports__); -/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "retrievePayment", function() { return retrievePayment; }); -/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "retrieveOrder", function() { return retrieveOrder; }); -/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "refundPayment", function() { return refundPayment; }); -/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "refundOrder", function() { return refundOrder; }); -/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "cancelOrder", function() { return cancelOrder; }); -/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "shipOrder", function() { return shipOrder; }); -/* harmony import */ var core_js_modules_es6_array_from__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! core-js/modules/es6.array.from */ "./node_modules/core-js/modules/es6.array.from.js"); -/* harmony import */ var core_js_modules_es6_array_from__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es6_array_from__WEBPACK_IMPORTED_MODULE_0__); -/* harmony import */ var core_js_modules_es6_function_name__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! core-js/modules/es6.function.name */ "./node_modules/core-js/modules/es6.function.name.js"); -/* harmony import */ var core_js_modules_es6_function_name__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es6_function_name__WEBPACK_IMPORTED_MODULE_1__); -/* harmony import */ var core_js_modules_es6_regexp_to_string__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! core-js/modules/es6.regexp.to-string */ "./node_modules/core-js/modules/es6.regexp.to-string.js"); -/* harmony import */ var core_js_modules_es6_regexp_to_string__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es6_regexp_to_string__WEBPACK_IMPORTED_MODULE_2__); -/* harmony import */ var core_js_modules_es6_date_to_string__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! core-js/modules/es6.date.to-string */ "./node_modules/core-js/modules/es6.date.to-string.js"); -/* harmony import */ var core_js_modules_es6_date_to_string__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es6_date_to_string__WEBPACK_IMPORTED_MODULE_3__); -/* harmony import */ var core_js_modules_es7_symbol_async_iterator__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! core-js/modules/es7.symbol.async-iterator */ "./node_modules/core-js/modules/es7.symbol.async-iterator.js"); -/* harmony import */ var core_js_modules_es7_symbol_async_iterator__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es7_symbol_async_iterator__WEBPACK_IMPORTED_MODULE_4__); -/* harmony import */ var core_js_modules_es6_symbol__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! core-js/modules/es6.symbol */ "./node_modules/core-js/modules/es6.symbol.js"); -/* harmony import */ var core_js_modules_es6_symbol__WEBPACK_IMPORTED_MODULE_5___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es6_symbol__WEBPACK_IMPORTED_MODULE_5__); -/* harmony import */ var core_js_modules_es6_promise__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! core-js/modules/es6.promise */ "./node_modules/core-js/modules/es6.promise.js"); -/* harmony import */ var core_js_modules_es6_promise__WEBPACK_IMPORTED_MODULE_6___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es6_promise__WEBPACK_IMPORTED_MODULE_6__); -/* harmony import */ var core_js_modules_web_dom_iterable__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! core-js/modules/web.dom.iterable */ "./node_modules/core-js/modules/web.dom.iterable.js"); -/* harmony import */ var core_js_modules_web_dom_iterable__WEBPACK_IMPORTED_MODULE_7___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_web_dom_iterable__WEBPACK_IMPORTED_MODULE_7__); -/* harmony import */ var core_js_modules_es6_array_iterator__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! core-js/modules/es6.array.iterator */ "./node_modules/core-js/modules/es6.array.iterator.js"); -/* harmony import */ var core_js_modules_es6_array_iterator__WEBPACK_IMPORTED_MODULE_8___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es6_array_iterator__WEBPACK_IMPORTED_MODULE_8__); -/* harmony import */ var core_js_modules_es6_object_to_string__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! core-js/modules/es6.object.to-string */ "./node_modules/core-js/modules/es6.object.to-string.js"); -/* harmony import */ var core_js_modules_es6_object_to_string__WEBPACK_IMPORTED_MODULE_9___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es6_object_to_string__WEBPACK_IMPORTED_MODULE_9__); -/* harmony import */ var core_js_modules_es6_string_iterator__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! core-js/modules/es6.string.iterator */ "./node_modules/core-js/modules/es6.string.iterator.js"); -/* harmony import */ var core_js_modules_es6_string_iterator__WEBPACK_IMPORTED_MODULE_10___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es6_string_iterator__WEBPACK_IMPORTED_MODULE_10__); -/* harmony import */ var regenerator_runtime_runtime__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! regenerator-runtime/runtime */ "./node_modules/regenerator-runtime/runtime.js"); -/* harmony import */ var regenerator_runtime_runtime__WEBPACK_IMPORTED_MODULE_11___default = /*#__PURE__*/__webpack_require__.n(regenerator_runtime_runtime__WEBPACK_IMPORTED_MODULE_11__); -/* harmony import */ var _shared_axios__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! ../../../shared/axios */ "./src/shared/axios.ts"); -/* harmony import */ var lodash__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(/*! lodash */ "./node_modules/lodash/lodash.js"); -/* harmony import */ var lodash__WEBPACK_IMPORTED_MODULE_13___default = /*#__PURE__*/__webpack_require__.n(lodash__WEBPACK_IMPORTED_MODULE_13__); - - - - - - - - - - - - - -function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); } - -function _nonIterableRest() { 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 _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); } - -function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) { arr2[i] = arr[i]; } return arr2; } - -function _iterableToArrayLimit(arr, i) { if (typeof Symbol === "undefined" || !(Symbol.iterator in Object(arr))) return; var _arr = []; var _n = true; var _d = false; var _e = undefined; try { for (var _i = arr[Symbol.iterator](), _s; !(_n = (_s = _i.next()).done); _n = true) { _arr.push(_s.value); if (i && _arr.length === i) break; } } catch (err) { _d = true; _e = err; } finally { try { if (!_n && _i["return"] != null) _i["return"](); } finally { if (_d) throw _e; } } return _arr; } - -function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; } - -function asyncGeneratorStep(gen, resolve, reject, _next, _throw, key, arg) { try { var info = gen[key](arg); var value = info.value; } catch (error) { reject(error); return; } if (info.done) { resolve(value); } else { Promise.resolve(value).then(_next, _throw); } } - -function _asyncToGenerator(fn) { return function () { var self = this, args = arguments; return new Promise(function (resolve, reject) { var gen = fn.apply(self, args); function _next(value) { asyncGeneratorStep(gen, resolve, reject, _next, _throw, "next", value); } function _throw(err) { asyncGeneratorStep(gen, resolve, reject, _next, _throw, "throw", err); } _next(undefined); }); }; } - -/** - * Mollie https://www.mollie.nl - * - * @author Mollie B.V. - * @copyright Mollie B.V. - * @link https://github.com/mollie/PrestaShop - * @license https://github.com/mollie/PrestaShop/blob/master/LICENSE.md - * @codingStandardsIgnoreStart - */ - - -var retrievePayment = /*#__PURE__*/function () { - var _ref = _asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee(transactionId) { - var _yield$Promise$all, _yield$Promise$all2, store, ajaxEndpoint, _yield$axios$post, _yield$axios$post$dat, payment; - - return regeneratorRuntime.wrap(function _callee$(_context) { - while (1) { - switch (_context.prev = _context.next) { - case 0: - _context.next = 2; - return Promise.all([Promise.resolve(/*! import() */).then(__webpack_require__.bind(null, /*! ../store */ "./src/back/transaction/store/index.ts"))]); - - case 2: - _yield$Promise$all = _context.sent; - _yield$Promise$all2 = _slicedToArray(_yield$Promise$all, 1); - store = _yield$Promise$all2[0].default; - _context.prev = 5; - ajaxEndpoint = store.getState().config.ajaxEndpoint; - _context.next = 9; - return _shared_axios__WEBPACK_IMPORTED_MODULE_12__["default"].post(ajaxEndpoint, { - resource: 'payments', - action: 'retrieve', - transactionId: transactionId - }); - - case 9: - _yield$axios$post = _context.sent; - _yield$axios$post$dat = _yield$axios$post.data; - _yield$axios$post$dat = _yield$axios$post$dat === void 0 ? { - payment: null - } : _yield$axios$post$dat; - payment = _yield$axios$post$dat.payment; - return _context.abrupt("return", payment || null); - - case 16: - _context.prev = 16; - _context.t0 = _context["catch"](5); - console.error(_context.t0); - return _context.abrupt("return", null); - - case 20: - case "end": - return _context.stop(); - } - } - }, _callee, null, [[5, 16]]); - })); - - return function retrievePayment(_x) { - return _ref.apply(this, arguments); - }; -}(); -var retrieveOrder = /*#__PURE__*/function () { - var _ref2 = _asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee2(transactionId) { - var _yield$Promise$all3, _yield$Promise$all4, store, ajaxEndpoint, _yield$axios$post2, _yield$axios$post2$da, order; - - return regeneratorRuntime.wrap(function _callee2$(_context2) { - while (1) { - switch (_context2.prev = _context2.next) { - case 0: - _context2.next = 2; - return Promise.all([Promise.resolve(/*! import() */).then(__webpack_require__.bind(null, /*! ../store */ "./src/back/transaction/store/index.ts"))]); - - case 2: - _yield$Promise$all3 = _context2.sent; - _yield$Promise$all4 = _slicedToArray(_yield$Promise$all3, 1); - store = _yield$Promise$all4[0].default; - _context2.prev = 5; - ajaxEndpoint = store.getState().config.ajaxEndpoint; - _context2.next = 9; - return _shared_axios__WEBPACK_IMPORTED_MODULE_12__["default"].post(ajaxEndpoint, { - resource: 'orders', - action: 'retrieve', - transactionId: transactionId - }); - - case 9: - _yield$axios$post2 = _context2.sent; - _yield$axios$post2$da = _yield$axios$post2.data; - _yield$axios$post2$da = _yield$axios$post2$da === void 0 ? { - order: null - } : _yield$axios$post2$da; - order = _yield$axios$post2$da.order; - return _context2.abrupt("return", order || null); - - case 16: - _context2.prev = 16; - _context2.t0 = _context2["catch"](5); - console.error(_context2.t0); - return _context2.abrupt("return", null); - - case 20: - case "end": - return _context2.stop(); - } - } - }, _callee2, null, [[5, 16]]); - })); - - return function retrieveOrder(_x2) { - return _ref2.apply(this, arguments); - }; -}(); -var refundPayment = /*#__PURE__*/function () { - var _ref3 = _asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee3(transactionId, amount) { - var _yield$Promise$all5, _yield$Promise$all6, store, ajaxEndpoint, _yield$axios$post3, data; - - return regeneratorRuntime.wrap(function _callee3$(_context3) { - while (1) { - switch (_context3.prev = _context3.next) { - case 0: - _context3.next = 2; - return Promise.all([Promise.resolve(/*! import() */).then(__webpack_require__.bind(null, /*! ../store */ "./src/back/transaction/store/index.ts"))]); - - case 2: - _yield$Promise$all5 = _context3.sent; - _yield$Promise$all6 = _slicedToArray(_yield$Promise$all5, 1); - store = _yield$Promise$all6[0].default; - _context3.prev = 5; - ajaxEndpoint = store.getState().config.ajaxEndpoint; - _context3.next = 9; - return _shared_axios__WEBPACK_IMPORTED_MODULE_12__["default"].post(ajaxEndpoint, { - resource: 'payments', - action: 'refund', - transactionId: transactionId, - amount: amount - }); - - case 9: - _yield$axios$post3 = _context3.sent; - data = _yield$axios$post3.data; - - if (!(!data.success && typeof data.message === 'string')) { - _context3.next = 13; - break; - } - - throw data.detailed ? data.detailed : data.message; - - case 13: - return _context3.abrupt("return", Object(lodash__WEBPACK_IMPORTED_MODULE_13__["defaults"])(data, { - success: false, - payment: null - })); - - case 16: - _context3.prev = 16; - _context3.t0 = _context3["catch"](5); - - if (!(typeof _context3.t0 === 'string')) { - _context3.next = 20; - break; - } - - throw _context3.t0; - - case 20: - console.error(_context3.t0); - return _context3.abrupt("return", false); - - case 22: - case "end": - return _context3.stop(); - } - } - }, _callee3, null, [[5, 16]]); - })); - - return function refundPayment(_x3, _x4) { - return _ref3.apply(this, arguments); - }; -}(); -var refundOrder = /*#__PURE__*/function () { - var _ref4 = _asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee4(order, orderLines) { - var _yield$Promise$all7, _yield$Promise$all8, store, ajaxEndpoint, _yield$axios$post4, data; - - return regeneratorRuntime.wrap(function _callee4$(_context4) { - while (1) { - switch (_context4.prev = _context4.next) { - case 0: - _context4.next = 2; - return Promise.all([Promise.resolve(/*! import() */).then(__webpack_require__.bind(null, /*! ../store */ "./src/back/transaction/store/index.ts"))]); - - case 2: - _yield$Promise$all7 = _context4.sent; - _yield$Promise$all8 = _slicedToArray(_yield$Promise$all7, 1); - store = _yield$Promise$all8[0].default; - _context4.prev = 5; - ajaxEndpoint = store.getState().config.ajaxEndpoint; - _context4.next = 9; - return _shared_axios__WEBPACK_IMPORTED_MODULE_12__["default"].post(ajaxEndpoint, { - resource: 'orders', - action: 'refund', - orderLines: orderLines, - order: order - }); - - case 9: - _yield$axios$post4 = _context4.sent; - data = _yield$axios$post4.data; - - if (!(!data.success && typeof data.message === 'string')) { - _context4.next = 13; - break; - } - - throw data.detailed ? data.detailed : data.message; - - case 13: - return _context4.abrupt("return", Object(lodash__WEBPACK_IMPORTED_MODULE_13__["defaults"])(data, { - success: false, - order: null - })); - - case 16: - _context4.prev = 16; - _context4.t0 = _context4["catch"](5); - - if (!(typeof _context4.t0 === 'string')) { - _context4.next = 20; - break; - } - - throw _context4.t0; - - case 20: - console.error(_context4.t0); - return _context4.abrupt("return", false); - - case 22: - case "end": - return _context4.stop(); - } - } - }, _callee4, null, [[5, 16]]); - })); - - return function refundOrder(_x5, _x6) { - return _ref4.apply(this, arguments); - }; -}(); -var cancelOrder = /*#__PURE__*/function () { - var _ref5 = _asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee5(transactionId, orderLines) { - var _yield$Promise$all9, _yield$Promise$all10, store, ajaxEndpoint, _yield$axios$post5, data; - - return regeneratorRuntime.wrap(function _callee5$(_context5) { - while (1) { - switch (_context5.prev = _context5.next) { - case 0: - _context5.next = 2; - return Promise.all([Promise.resolve(/*! import() */).then(__webpack_require__.bind(null, /*! ../store */ "./src/back/transaction/store/index.ts"))]); - - case 2: - _yield$Promise$all9 = _context5.sent; - _yield$Promise$all10 = _slicedToArray(_yield$Promise$all9, 1); - store = _yield$Promise$all10[0].default; - _context5.prev = 5; - ajaxEndpoint = store.getState().config.ajaxEndpoint; - _context5.next = 9; - return _shared_axios__WEBPACK_IMPORTED_MODULE_12__["default"].post(ajaxEndpoint, { - resource: 'orders', - action: 'cancel', - transactionId: transactionId, - orderLines: orderLines - }); - - case 9: - _yield$axios$post5 = _context5.sent; - data = _yield$axios$post5.data; - - if (!(!data.success && typeof data.message === 'string')) { - _context5.next = 13; - break; - } - - throw data.detailed ? data.detailed : data.message; - - case 13: - return _context5.abrupt("return", Object(lodash__WEBPACK_IMPORTED_MODULE_13__["defaults"])(data, { - success: false, - order: null - })); - - case 16: - _context5.prev = 16; - _context5.t0 = _context5["catch"](5); - - if (!(typeof _context5.t0 === 'string')) { - _context5.next = 20; - break; - } - - throw _context5.t0; - - case 20: - console.error(_context5.t0); - return _context5.abrupt("return", false); - - case 22: - case "end": - return _context5.stop(); - } - } - }, _callee5, null, [[5, 16]]); - })); - - return function cancelOrder(_x7, _x8) { - return _ref5.apply(this, arguments); - }; -}(); -var shipOrder = /*#__PURE__*/function () { - var _ref6 = _asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee6(transactionId, orderLines, tracking) { - var _yield$Promise$all11, _yield$Promise$all12, store, ajaxEndpoint, _yield$axios$post6, data; - - return regeneratorRuntime.wrap(function _callee6$(_context6) { - while (1) { - switch (_context6.prev = _context6.next) { - case 0: - _context6.next = 2; - return Promise.all([Promise.resolve(/*! import() */).then(__webpack_require__.bind(null, /*! ../store */ "./src/back/transaction/store/index.ts"))]); - - case 2: - _yield$Promise$all11 = _context6.sent; - _yield$Promise$all12 = _slicedToArray(_yield$Promise$all11, 1); - store = _yield$Promise$all12[0].default; - _context6.prev = 5; - ajaxEndpoint = store.getState().config.ajaxEndpoint; - _context6.next = 9; - return _shared_axios__WEBPACK_IMPORTED_MODULE_12__["default"].post(ajaxEndpoint, { - resource: 'orders', - action: 'ship', - transactionId: transactionId, - orderLines: orderLines, - tracking: tracking - }); - - case 9: - _yield$axios$post6 = _context6.sent; - data = _yield$axios$post6.data; - - if (!(!data.success && typeof data.message === 'string')) { - _context6.next = 13; - break; - } - - throw data.detailed ? data.detailed : data.message; - - case 13: - return _context6.abrupt("return", Object(lodash__WEBPACK_IMPORTED_MODULE_13__["defaults"])(data, { - success: false, - order: null - })); - - case 16: - _context6.prev = 16; - _context6.t0 = _context6["catch"](5); - - if (!(typeof _context6.t0 === 'string')) { - _context6.next = 20; - break; - } - - throw _context6.t0; - - case 20: - console.error(_context6.t0); - return _context6.abrupt("return", false); - - case 22: - case "end": - return _context6.stop(); - } - } - }, _callee6, null, [[5, 16]]); - })); - - return function shipOrder(_x9, _x10, _x11) { - return _ref6.apply(this, arguments); - }; -}(); - -/***/ }), - -/***/ "./src/shared/axios.ts": -/*!*****************************!*\ - !*** ./src/shared/axios.ts ***! - \*****************************/ -/*! exports provided: default */ -/***/ (function(module, __webpack_exports__, __webpack_require__) { - -"use strict"; -__webpack_require__.r(__webpack_exports__); -/* harmony import */ var core_js_modules_es6_regexp_replace__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! core-js/modules/es6.regexp.replace */ "./node_modules/core-js/modules/es6.regexp.replace.js"); -/* harmony import */ var core_js_modules_es6_regexp_replace__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es6_regexp_replace__WEBPACK_IMPORTED_MODULE_0__); -/* harmony import */ var axios__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! axios */ "./node_modules/axios/index.js"); -/* harmony import */ var axios__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(axios__WEBPACK_IMPORTED_MODULE_1__); - - -/** - * Mollie https://www.mollie.nl - * - * @author Mollie B.V. - * @copyright Mollie B.V. - * @link https://github.com/mollie/PrestaShop - * @license https://github.com/mollie/PrestaShop/blob/master/LICENSE.md - * @codingStandardsIgnoreStart - */ - -/* harmony default export */ __webpack_exports__["default"] = (axios__WEBPACK_IMPORTED_MODULE_1___default.a.create({ - transformResponse: [function (res) { - return JSON.parse(res.replace(/^[^{[]*/mg, '').replace(/([^}\]]*)$/mg, '')); - }], - headers: { - 'X-Requested-With': 'XMLHttpRequest', - 'Content-Type': 'application/json', - 'Accept': 'application/json' - } -})); - -/***/ }) - -}]); -//# sourceMappingURL=transaction~transactionRefund.min.js.map diff --git a/views/js/dist/transaction~transactionRefund.min.js.map b/views/js/dist/transaction~transactionRefund.min.js.map deleted file mode 100644 index 4c79cb2e7..000000000 --- a/views/js/dist/transaction~transactionRefund.min.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"sources":["webpack://MollieModule.[name]/./src/back/transaction/misc/ajax.ts","webpack://MollieModule.[name]/./src/shared/axios.ts"],"names":["retrievePayment","transactionId","Promise","all","store","default","ajaxEndpoint","getState","config","axios","post","resource","action","data","payment","console","error","retrieveOrder","order","refundPayment","amount","success","message","detailed","defaults","refundOrder","orderLines","cancelOrder","shipOrder","tracking","create","transformResponse","res","JSON","parse","replace","headers"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAIO,IAAMA,eAAe;AAAA,qEAAG,iBAAOC,aAAP;AAAA;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,mBAGnBC,OAAO,CAACC,GAAR,CAAY,CACpB,8HADoB,CAAZ,CAHmB;;AAAA;AAAA;AAAA;AAEhBC,iBAFgB,0BAEzBC,OAFyB;AAAA;AAOrBC,wBAPqB,GAONF,KAAK,CAACG,QAAN,GAAiBC,MAAjB,CAAwBF,YAPlB;AAAA;AAAA,mBAS6BG,sDAAK,CAACC,IAAN,CAAWJ,YAAX,EAAyB;AAC/EK,sBAAQ,EAAE,UADqE;AAE/EC,oBAAM,EAAE,UAFuE;AAG/EX,2BAAa,EAAbA;AAH+E,aAAzB,CAT7B;;AAAA;AAAA;AAAA,sDASnBY,IATmB;AAAA,uEASC;AAAEC,qBAAO,EAAE;AAAX,aATD;AASXA,mBATW,yBASXA,OATW;AAAA,6CAepBA,OAAO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AAI,CAACS,OAjBxB;;AAAA;AAAA,8CAoBdE,wDAAQ,CAACX,IAAD,EAAO;AAAEQ,qBAAO,EAAE,KAAX;AAAkBH,mBAAK,EAAE;AAAzB,aAAP,CApBM;;AAAA;AAAA;AAAA;;AAAA,kBAsBjB,wBAAa,QAtBI;AAAA;AAAA;AAAA;;AAAA;;AAAA;AAyBrBH,mBAAO,CAACC,KAAR;AAzBqB,8CA2Bd,KA3Bc;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,GAAH;;AAAA,kBAATY,SAAS;AAAA;AAAA;AAAA,GAAf,C;;;;;;;;;;;;;;;;;;;AC3KP;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAEenB,2GAAK,CAACqB,MAAN,CAAa;AAC1BC,mBAAiB,EAAE,CAAC,UAAAC,GAAG;AAAA,WAAIC,IAAI,CAACC,KAAL,CAAWF,GAAG,CAACG,OAAJ,CAAY,WAAZ,EAAyB,EAAzB,EAA6BA,OAA7B,CAAqC,cAArC,EAAqD,EAArD,CAAX,CAAJ;AAAA,GAAJ,CADO;AAE1BC,SAAO,EAAE;AACP,wBAAoB,gBADb;AAEP,oBAAgB,kBAFT;AAGP,cAAU;AAHH;AAFiB,CAAb,CAAf,E","file":"transaction~transactionRefund.min.js","sourcesContent":["/**\n * Copyright (c) 2012-2020, Mollie B.V.\n * All rights reserved.\n *\n * Redistribution and use in source and binary forms, with or without\n * modification, are permitted provided that the following conditions are met:\n *\n * - Redistributions of source code must retain the above copyright notice,\n * this list of conditions and the following disclaimer.\n * - Redistributions in binary form must reproduce the above copyright\n * notice, this list of conditions and the following disclaimer in the\n * documentation and/or other materials provided with the distribution.\n *\n * THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND ANY\n * EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED\n * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE\n * DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE FOR ANY\n * DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES\n * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR\n * SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER\n * CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT\n * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY\n * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH\n * DAMAGE.\n *\n * @author Mollie B.V. \n * @copyright Mollie B.V.\n * @license Berkeley Software Distribution License (BSD-License 2) http://www.opensource.org/licenses/bsd-license.php\n * @category Mollie\n * @package Mollie\n * @link https://www.mollie.nl\n */\nimport axios from '@shared/axios';\nimport { defaults } from 'lodash';\n\nimport { IMollieApiOrder, IMollieApiPayment, IMollieOrderLine, IMollieTracking } from '@shared/globals';\n\nexport const retrievePayment = async (transactionId: string): Promise => {\n const [\n { default: store },\n ] = await Promise.all([\n import(/* webpackPrefetch: true, webpackChunkName: \"transaction\" */ '@transaction/store'),\n ]);\n try {\n const ajaxEndpoint = store.getState().config.ajaxEndpoint;\n\n const { data: { payment } = { payment: null } } = await axios.post(ajaxEndpoint, {\n resource: 'payments',\n action: 'retrieve',\n transactionId,\n });\n\n return payment || null;\n } catch (e) {\n console.error(e);\n\n return null;\n }\n};\n\nexport const retrieveOrder = async (transactionId: string): Promise => {\n const [\n { default: store }\n ] = await Promise.all([\n import(/* webpackPrefetch: true, webpackChunkName: \"transaction\" */ '@transaction/store'),\n ]);\n try {\n const ajaxEndpoint = store.getState().config.ajaxEndpoint;\n\n const { data: { order } = { order: null } } = await axios.post(ajaxEndpoint, {\n resource: 'orders',\n action: 'retrieve',\n transactionId,\n });\n\n return order || null;\n } catch (e) {\n console.error(e);\n\n return null;\n }\n};\n\nexport const refundPayment = async (transactionId: string, amount?: number): Promise => {\n const [\n { default: store },\n ] = await Promise.all([\n import(/* webpackPrefetch: true, webpackChunkName: \"transaction\" */ '@transaction/store'),\n ]);\n try {\n const ajaxEndpoint = store.getState().config.ajaxEndpoint;\n\n const { data } = await axios.post(ajaxEndpoint, {\n resource: 'payments',\n action: 'refund',\n transactionId,\n amount,\n });\n if (!data.success && typeof data.message === 'string') {\n throw data.detailed ? data.detailed : data.message;\n }\n\n return defaults(data, { success: false, payment: null });\n } catch (e) {\n if (typeof e === 'string') {\n throw e;\n }\n console.error(e);\n\n return false;\n }\n};\n\nexport const refundOrder = async (order: IMollieApiOrder, orderLines?: Array): Promise => {\n const [\n { default: store},\n ] = await Promise.all([\n import(/* webpackPrefetch: true, webpackChunkName: \"transaction\" */ '@transaction/store'),\n ]);\n try {\n const ajaxEndpoint = store.getState().config.ajaxEndpoint;\n\n const { data } = await axios.post(ajaxEndpoint, {\n resource: 'orders',\n action: 'refund',\n orderLines,\n order\n });\n if (!data.success && typeof data.message === 'string') {\n throw data.detailed ? data.detailed : data.message;\n }\n return defaults(data, { success: false, order: null });\n } catch (e) {\n if (typeof e === 'string') {\n throw e;\n }\n console.error(e);\n\n return false;\n }\n};\n\nexport const cancelOrder = async (transactionId: string, orderLines?: Array): Promise => {\n const [\n { default: store },\n ] = await Promise.all([\n import(/* webpackPrefetch: true, webpackChunkName: \"transaction\" */ '@transaction/store'),\n ]);\n try {\n const ajaxEndpoint = store.getState().config.ajaxEndpoint;\n\n const { data } = await axios.post(ajaxEndpoint, {\n resource: 'orders',\n action: 'cancel',\n transactionId,\n orderLines,\n });\n if (!data.success && typeof data.message === 'string') {\n throw data.detailed ? data.detailed : data.message;\n }\n return defaults(data, { success: false, order: null });\n } catch (e) {\n if (typeof e === 'string') {\n throw e;\n }\n console.error(e);\n\n return false;\n }\n};\n\nexport const shipOrder = async (transactionId: string, orderLines?: Array, tracking?: IMollieTracking): Promise => {\n const [\n { default: store },\n ] = await Promise.all([\n import(/* webpackPrefetch: true, webpackChunkName: \"transaction\" */ '@transaction/store'),\n ]);\n try {\n const ajaxEndpoint = store.getState().config.ajaxEndpoint;\n\n const { data } = await axios.post(ajaxEndpoint, {\n resource: 'orders',\n action: 'ship',\n transactionId,\n orderLines,\n tracking,\n });\n if (!data.success && typeof data.message === 'string') {\n throw data.detailed ? data.detailed : data.message;\n }\n\n return defaults(data, { success: false, order: null });\n } catch (e) {\n if (typeof e === 'string') {\n throw e;\n }\n console.error(e);\n\n return false;\n }\n};\n","/**\n * Copyright (c) 2012-2020, Mollie B.V.\n * All rights reserved.\n *\n * Redistribution and use in source and binary forms, with or without\n * modification, are permitted provided that the following conditions are met:\n *\n * - Redistributions of source code must retain the above copyright notice,\n * this list of conditions and the following disclaimer.\n * - Redistributions in binary form must reproduce the above copyright\n * notice, this list of conditions and the following disclaimer in the\n * documentation and/or other materials provided with the distribution.\n *\n * THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND ANY\n * EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED\n * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE\n * DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE FOR ANY\n * DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES\n * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR\n * SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER\n * CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT\n * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY\n * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH\n * DAMAGE.\n *\n * @author Mollie B.V. \n * @copyright Mollie B.V.\n * @license Berkeley Software Distribution License (BSD-License 2) http://www.opensource.org/licenses/bsd-license.php\n * @category Mollie\n * @package Mollie\n * @link https://www.mollie.nl\n */\nimport axios from 'axios';\n\nexport default axios.create({\n transformResponse: [res => JSON.parse(res.replace(/^[^{[]*/mg, '').replace(/([^}\\]]*)$/mg, ''))],\n headers: {\n 'X-Requested-With': 'XMLHttpRequest',\n 'Content-Type': 'application/json',\n 'Accept': 'application/json',\n },\n});\n\n"],"sourceRoot":""} \ No newline at end of file diff --git a/views/js/dist/updater.min.js b/views/js/dist/updater.min.js deleted file mode 100644 index 8c4d22541..000000000 --- a/views/js/dist/updater.min.js +++ /dev/null @@ -1,10 +0,0 @@ -/*! - * - * Mollie https://www.mollie.nl - * @author Mollie B.V. - * @copyright Mollie B.V. - * @link https://github.com/mollie/PrestaShop - * @license https://github.com/mollie/PrestaShop/blob/master/LICENSE.md - * - */ -(window.webpackJsonP_mollie=window.webpackJsonP_mollie||[]).push([["updater"],{55:function(e,t,n){"use strict";n.r(t);n(69),n(65),n(70),n(71),n(66),n(67),n(23),n(61),n(68),n(22),n(72),n(24);var r=n(91),o=n.n(r),a=n(63),c=n(79);function u(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if("undefined"==typeof Symbol||!(Symbol.iterator in Object(e)))return;var n=[],r=!0,o=!1,a=void 0;try{for(var c,u=e[Symbol.iterator]();!(r=(c=u.next()).done)&&(n.push(c.value),!t||n.length!==t);r=!0);}catch(e){o=!0,a=e}finally{try{r||null==u.return||u.return()}finally{if(o)throw a}}return n}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return i(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return i(e,t)}(e,t)||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 i(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n\n * @copyright Mollie B.V.\n * @link https://github.com/mollie/PrestaShop\n * @license https://github.com/mollie/PrestaShop/blob/master/LICENSE.md\n * @codingStandardsIgnoreStart\n */\nimport xss from 'xss';\nimport { get } from 'lodash';\n\nimport axios from '@shared/axios';\nimport { ITranslations } from '@shared/globals';\n\nconst showError = async (message: string): Promise => {\n const [\n { default: swal },\n ] = await Promise.all([\n import(/* webpackPrefetch: true, webpackChunkName: \"sweetalert\" */ 'sweetalert'),\n ]);\n swal({\n icon: 'error',\n title: get(document, 'documentElement.lang', 'en') === 'nl' ? 'Fout' : 'Error',\n text: xss(message),\n }).then();\n};\n\nconst handleClick = async (config: any, translations: ITranslations): Promise => {\n const steps = [\n {\n action: 'downloadUpdate',\n defaultError: translations.unableToConnect,\n },\n {\n action: 'downloadUpdate',\n defaultError: translations.unableToUnzip,\n },\n {\n action: 'downloadUpdate',\n defaultError: translations.unableToConnect,\n },\n ];\n\n for (let step of steps) {\n try {\n const { data } = await axios.get(`${config.endpoint}&action=${step.action}`);\n if (!get(data, 'success')) {\n showError(get(data, 'message', step.defaultError)).then();\n }\n } catch (e) {\n console.error(e);\n showError(step.defaultError).then();\n }\n }\n\n import(/* webpackPrefetch: true, webpackChunkName: \"sweetalert\" */ 'sweetalert').then(({ default: swal }) => {\n swal({\n icon: 'success',\n text: translations.updated\n }).then();\n });\n};\n\nexport default (button: HTMLElement, config: any, translations: ITranslations) => {\n button.onclick = () => handleClick(config, translations);\n};\n\n","/**\n * Mollie https://www.mollie.nl\n *\n * @author Mollie B.V. \n * @copyright Mollie B.V.\n * @link https://github.com/mollie/PrestaShop\n * @license https://github.com/mollie/PrestaShop/blob/master/LICENSE.md\n * @codingStandardsIgnoreStart\n */\nimport axios from 'axios';\n\nexport default axios.create({\n transformResponse: [res => JSON.parse(res.replace(/^[^{[]*/mg, '').replace(/([^}\\]]*)$/mg, ''))],\n headers: {\n 'X-Requested-With': 'XMLHttpRequest',\n 'Content-Type': 'application/json',\n 'Accept': 'application/json',\n },\n});\n\n"],"sourceRoot":""} \ No newline at end of file diff --git a/views/js/dist/vendors~app.min.js b/views/js/dist/vendors~app.min.js deleted file mode 100644 index 19827678c..000000000 --- a/views/js/dist/vendors~app.min.js +++ /dev/null @@ -1,10 +0,0 @@ -/*! - * - * Mollie https://www.mollie.nl - * @author Mollie B.V. - * @copyright Mollie B.V. - * @link https://github.com/mollie/PrestaShop - * @license https://github.com/mollie/PrestaShop/blob/master/LICENSE.md - * - */ -(window.webpackJsonP_mollie=window.webpackJsonP_mollie||[]).push([["vendors~app"],[function(t,n){var r=t.exports="undefined"!=typeof window&&window.Math==Math?window:"undefined"!=typeof self&&self.Math==Math?self:Function("return this")();"number"==typeof __g&&(__g=r)},function(t,n,r){var e=r(18)("wks"),o=r(16),i=r(0).Symbol,c="function"==typeof i;(t.exports=function(t){return e[t]||(e[t]=c&&i[t]||(c?i:o)("Symbol."+t))}).store=e},function(t,n,r){var e=r(3);t.exports=function(t){if(!e(t))throw TypeError(t+" is not an object!");return t}},function(t,n){t.exports=function(t){return"object"==typeof t?null!==t:"function"==typeof t}},function(t,n){var r=t.exports={version:"2.6.11"};"number"==typeof __e&&(__e=r)},function(t,n,r){t.exports=!r(12)((function(){return 7!=Object.defineProperty({},"a",{get:function(){return 7}}).a}))},function(t,n,r){var e=r(7);t.exports=function(t,n,r){if(e(t),void 0===n)return t;switch(r){case 1:return function(r){return t.call(n,r)};case 2:return function(r,e){return t.call(n,r,e)};case 3:return function(r,e,o){return t.call(n,r,e,o)}}return function(){return t.apply(n,arguments)}}},function(t,n){t.exports=function(t){if("function"!=typeof t)throw TypeError(t+" is not a function!");return t}},function(t,n,r){var e=r(2),o=r(32),i=r(30),c=Object.defineProperty;n.f=r(5)?Object.defineProperty:function(t,n,r){if(e(t),n=i(n,!0),e(r),o)try{return c(t,n,r)}catch(t){}if("get"in r||"set"in r)throw TypeError("Accessors not supported!");return"value"in r&&(t[n]=r.value),t}},function(t,n,r){var e=r(0),o=r(13),i=r(14),c=r(16)("src"),u=r(40),a=(""+u).split("toString");r(4).inspectSource=function(t){return u.call(t)},(t.exports=function(t,n,r,u){var f="function"==typeof r;f&&(i(r,"name")||o(r,"name",n)),t[n]!==r&&(f&&(i(r,c)||o(r,c,t[n]?""+t[n]:a.join(String(n)))),t===e?t[n]=r:u?t[n]?t[n]=r:o(t,n,r):(delete t[n],o(t,n,r)))})(Function.prototype,"toString",(function(){return"function"==typeof this&&this[c]||u.call(this)}))},function(t,n){var r={}.toString;t.exports=function(t){return r.call(t).slice(8,-1)}},function(t,n,r){var e=r(10),o=r(1)("toStringTag"),i="Arguments"==e(function(){return arguments}());t.exports=function(t){var n,r,c;return void 0===t?"Undefined":null===t?"Null":"string"==typeof(r=function(t,n){try{return t[n]}catch(t){}}(n=Object(t),o))?r:i?e(n):"Object"==(c=e(n))&&"function"==typeof n.callee?"Arguments":c}},function(t,n){t.exports=function(t){try{return!!t()}catch(t){return!0}}},function(t,n,r){var e=r(8),o=r(27);t.exports=r(5)?function(t,n,r){return e.f(t,n,o(1,r))}:function(t,n,r){return t[n]=r,t}},function(t,n){var r={}.hasOwnProperty;t.exports=function(t,n){return r.call(t,n)}},function(t,n){t.exports=!1},function(t,n){var r=0,e=Math.random();t.exports=function(t){return"Symbol(".concat(void 0===t?"":t,")_",(++r+e).toString(36))}},function(t,n){t.exports={}},function(t,n,r){var e=r(4),o=r(0),i=o["__core-js_shared__"]||(o["__core-js_shared__"]={});(t.exports=function(t,n){return i[t]||(i[t]=void 0!==n?n:{})})("versions",[]).push({version:e.version,mode:r(15)?"pure":"global",copyright:"© 2019 Denis Pushkarev (zloirock.ru)"})},function(t,n,r){var e=r(3),o=r(0).document,i=e(o)&&e(o.createElement);t.exports=function(t){return i?o.createElement(t):{}}},function(t,n,r){var e,o,i,c=r(6),u=r(43),a=r(36),f=r(19),s=r(0),l=s.process,h=s.setImmediate,p=s.clearImmediate,v=s.MessageChannel,d=s.Dispatch,y=0,m={},g=function(){var t=+this;if(m.hasOwnProperty(t)){var n=m[t];delete m[t],n()}},w=function(t){g.call(t.data)};h&&p||(h=function(t){for(var n=[],r=1;arguments.length>r;)n.push(arguments[r++]);return m[++y]=function(){u("function"==typeof t?t:Function(t),n)},e(y),y},p=function(t){delete m[t]},"process"==r(10)(l)?e=function(t){l.nextTick(c(g,t,1))}:d&&d.now?e=function(t){d.now(c(g,t,1))}:v?(i=(o=new v).port2,o.port1.onmessage=w,e=c(i.postMessage,i,1)):s.addEventListener&&"function"==typeof postMessage&&!s.importScripts?(e=function(t){s.postMessage(t+"","*")},s.addEventListener("message",w,!1)):e="onreadystatechange"in f("script")?function(t){a.appendChild(f("script")).onreadystatechange=function(){a.removeChild(this),g.call(t)}}:function(t){setTimeout(c(g,t,1),0)}),t.exports={set:h,clear:p}},function(t,n,r){"use strict";var e=r(7);function o(t){var n,r;this.promise=new t((function(t,e){if(void 0!==n||void 0!==r)throw TypeError("Bad Promise constructor");n=t,r=e})),this.resolve=e(n),this.reject=e(r)}t.exports.f=function(t){return new o(t)}},function(t,n,r){"use strict";var e=r(11),o={};o[r(1)("toStringTag")]="z",o+""!="[object z]"&&r(9)(Object.prototype,"toString",(function(){return"[object "+e(this)+"]"}),!0)},function(t,n,r){"use strict";var e,o,i,c,u=r(15),a=r(0),f=r(6),s=r(11),l=r(25),h=r(3),p=r(7),v=r(41),d=r(42),y=r(31),m=r(20).set,g=r(44)(),w=r(21),x=r(45),_=r(46),b=r(47),j=a.TypeError,E=a.process,P=E&&E.versions,L=P&&P.v8||"",S=a.Promise,O="process"==s(E),T=function(){},k=o=w.f,F=!!function(){try{var t=S.resolve(1),n=(t.constructor={})[r(1)("species")]=function(t){t(T,T)};return(O||"function"==typeof PromiseRejectionEvent)&&t.then(T)instanceof n&&0!==L.indexOf("6.6")&&-1===_.indexOf("Chrome/66")}catch(t){}}(),M=function(t){var n;return!(!h(t)||"function"!=typeof(n=t.then))&&n},N=function(t,n){if(!t._n){t._n=!0;var r=t._c;g((function(){for(var e=t._v,o=1==t._s,i=0,c=function(n){var r,i,c,u=o?n.ok:n.fail,a=n.resolve,f=n.reject,s=n.domain;try{u?(o||(2==t._h&&R(t),t._h=1),!0===u?r=e:(s&&s.enter(),r=u(e),s&&(s.exit(),c=!0)),r===n.promise?f(j("Promise-chain cycle")):(i=M(r))?i.call(r,a,f):a(r)):f(e)}catch(t){s&&!c&&s.exit(),f(t)}};r.length>i;)c(r[i++]);t._c=[],t._n=!1,n&&!t._h&&G(t)}))}},G=function(t){m.call(a,(function(){var n,r,e,o=t._v,i=A(t);if(i&&(n=x((function(){O?E.emit("unhandledRejection",o,t):(r=a.onunhandledrejection)?r({promise:t,reason:o}):(e=a.console)&&e.error&&e.error("Unhandled promise rejection",o)})),t._h=O||A(t)?2:1),t._a=void 0,i&&n.e)throw n.v}))},A=function(t){return 1!==t._h&&0===(t._a||t._c).length},R=function(t){m.call(a,(function(){var n;O?E.emit("rejectionHandled",t):(n=a.onrejectionhandled)&&n({promise:t,reason:t._v})}))},I=function(t){var n=this;n._d||(n._d=!0,(n=n._w||n)._v=t,n._s=2,n._a||(n._a=n._c.slice()),N(n,!0))},C=function(t){var n,r=this;if(!r._d){r._d=!0,r=r._w||r;try{if(r===t)throw j("Promise can't be resolved itself");(n=M(t))?g((function(){var e={_w:r,_d:!1};try{n.call(t,f(C,e,1),f(I,e,1))}catch(t){I.call(e,t)}})):(r._v=t,r._s=1,N(r,!1))}catch(t){I.call({_w:r,_d:!1},t)}}};F||(S=function(t){v(this,S,"Promise","_h"),p(t),e.call(this);try{t(f(C,this,1),f(I,this,1))}catch(t){I.call(this,t)}},(e=function(t){this._c=[],this._a=void 0,this._s=0,this._d=!1,this._v=void 0,this._h=0,this._n=!1}).prototype=r(48)(S.prototype,{then:function(t,n){var r=k(y(this,S));return r.ok="function"!=typeof t||t,r.fail="function"==typeof n&&n,r.domain=O?E.domain:void 0,this._c.push(r),this._a&&this._a.push(r),this._s&&N(this,!1),r.promise},catch:function(t){return this.then(void 0,t)}}),i=function(){var t=new e;this.promise=t,this.resolve=f(C,t,1),this.reject=f(I,t,1)},w.f=k=function(t){return t===S||t===c?new i(t):o(t)}),l(l.G+l.W+l.F*!F,{Promise:S}),r(29)(S,"Promise"),r(49)("Promise"),c=r(4).Promise,l(l.S+l.F*!F,"Promise",{reject:function(t){var n=k(this);return(0,n.reject)(t),n.promise}}),l(l.S+l.F*(u||!F),"Promise",{resolve:function(t){return b(u&&this===c?S:this,t)}}),l(l.S+l.F*!(F&&r(37)((function(t){S.all(t).catch(T)}))),"Promise",{all:function(t){var n=this,r=k(n),e=r.resolve,o=r.reject,i=x((function(){var r=[],i=0,c=1;d(t,!1,(function(t){var u=i++,a=!1;r.push(void 0),c++,n.resolve(t).then((function(t){a||(a=!0,r[u]=t,--c||e(r))}),o)})),--c||e(r)}));return i.e&&o(i.v),r.promise},race:function(t){var n=this,r=k(n),e=r.reject,o=x((function(){d(t,!1,(function(t){n.resolve(t).then(r.resolve,e)}))}));return o.e&&e(o.v),r.promise}})},function(t,n,r){var e=function(t){"use strict";var n=Object.prototype,r=n.hasOwnProperty,e="function"==typeof Symbol?Symbol:{},o=e.iterator||"@@iterator",i=e.asyncIterator||"@@asyncIterator",c=e.toStringTag||"@@toStringTag";function u(t,n,r){return Object.defineProperty(t,n,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[n]}try{u({},"")}catch(t){u=function(t,n,r){return t[n]=r}}function a(t,n,r,e){var o=n&&n.prototype instanceof l?n:l,i=Object.create(o.prototype),c=new j(e||[]);return i._invoke=function(t,n,r){var e="suspendedStart";return function(o,i){if("executing"===e)throw new Error("Generator is already running");if("completed"===e){if("throw"===o)throw i;return P()}for(r.method=o,r.arg=i;;){var c=r.delegate;if(c){var u=x(c,r);if(u){if(u===s)continue;return u}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if("suspendedStart"===e)throw e="completed",r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);e="executing";var a=f(t,n,r);if("normal"===a.type){if(e=r.done?"completed":"suspendedYield",a.arg===s)continue;return{value:a.arg,done:r.done}}"throw"===a.type&&(e="completed",r.method="throw",r.arg=a.arg)}}}(t,r,c),i}function f(t,n,r){try{return{type:"normal",arg:t.call(n,r)}}catch(t){return{type:"throw",arg:t}}}t.wrap=a;var s={};function l(){}function h(){}function p(){}var v={};v[o]=function(){return this};var d=Object.getPrototypeOf,y=d&&d(d(E([])));y&&y!==n&&r.call(y,o)&&(v=y);var m=p.prototype=l.prototype=Object.create(v);function g(t){["next","throw","return"].forEach((function(n){u(t,n,(function(t){return this._invoke(n,t)}))}))}function w(t,n){var e;this._invoke=function(o,i){function c(){return new n((function(e,c){!function e(o,i,c,u){var a=f(t[o],t,i);if("throw"!==a.type){var s=a.arg,l=s.value;return l&&"object"==typeof l&&r.call(l,"__await")?n.resolve(l.__await).then((function(t){e("next",t,c,u)}),(function(t){e("throw",t,c,u)})):n.resolve(l).then((function(t){s.value=t,c(s)}),(function(t){return e("throw",t,c,u)}))}u(a.arg)}(o,i,e,c)}))}return e=e?e.then(c,c):c()}}function x(t,n){var r=t.iterator[n.method];if(void 0===r){if(n.delegate=null,"throw"===n.method){if(t.iterator.return&&(n.method="return",n.arg=void 0,x(t,n),"throw"===n.method))return s;n.method="throw",n.arg=new TypeError("The iterator does not provide a 'throw' method")}return s}var e=f(r,t.iterator,n.arg);if("throw"===e.type)return n.method="throw",n.arg=e.arg,n.delegate=null,s;var o=e.arg;return o?o.done?(n[t.resultName]=o.value,n.next=t.nextLoc,"return"!==n.method&&(n.method="next",n.arg=void 0),n.delegate=null,s):o:(n.method="throw",n.arg=new TypeError("iterator result is not an object"),n.delegate=null,s)}function _(t){var n={tryLoc:t[0]};1 in t&&(n.catchLoc=t[1]),2 in t&&(n.finallyLoc=t[2],n.afterLoc=t[3]),this.tryEntries.push(n)}function b(t){var n=t.completion||{};n.type="normal",delete n.arg,t.completion=n}function j(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(_,this),this.reset(!0)}function E(t){if(t){var n=t[o];if(n)return n.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var e=-1,i=function n(){for(;++e=0;--o){var i=this.tryEntries[o],c=i.completion;if("root"===i.tryLoc)return e("end");if(i.tryLoc<=this.prev){var u=r.call(i,"catchLoc"),a=r.call(i,"finallyLoc");if(u&&a){if(this.prev=0;--e){var o=this.tryEntries[e];if(o.tryLoc<=this.prev&&r.call(o,"finallyLoc")&&this.prev=0;--n){var r=this.tryEntries[n];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),b(r),s}},catch:function(t){for(var n=this.tryEntries.length-1;n>=0;--n){var r=this.tryEntries[n];if(r.tryLoc===t){var e=r.completion;if("throw"===e.type){var o=e.arg;b(r)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(t,n,r){return this.delegate={iterator:E(t),resultName:n,nextLoc:r},"next"===this.method&&(this.arg=void 0),s}},t}(t.exports);try{regeneratorRuntime=e}catch(t){Function("r","regeneratorRuntime = r")(e)}},function(t,n,r){var e=r(0),o=r(4),i=r(13),c=r(9),u=r(6),a=function(t,n,r){var f,s,l,h,p=t&a.F,v=t&a.G,d=t&a.S,y=t&a.P,m=t&a.B,g=v?e:d?e[n]||(e[n]={}):(e[n]||{}).prototype,w=v?o:o[n]||(o[n]={}),x=w.prototype||(w.prototype={});for(f in v&&(r=n),r)l=((s=!p&&g&&void 0!==g[f])?g:r)[f],h=m&&s?u(l,e):y&&"function"==typeof l?u(Function.call,l):l,g&&c(g,f,l,t&a.U),w[f]!=l&&i(w,f,h),y&&x[f]!=l&&(x[f]=l)};e.core=o,a.F=1,a.G=2,a.S=4,a.P=8,a.B=16,a.W=32,a.U=64,a.R=128,t.exports=a},function(t,n,r){var e=r(28),o=Math.min;t.exports=function(t){return t>0?o(e(t),9007199254740991):0}},function(t,n){t.exports=function(t,n){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:n}}},function(t,n){var r=Math.ceil,e=Math.floor;t.exports=function(t){return isNaN(t=+t)?0:(t>0?e:r)(t)}},function(t,n,r){var e=r(8).f,o=r(14),i=r(1)("toStringTag");t.exports=function(t,n,r){t&&!o(t=r?t:t.prototype,i)&&e(t,i,{configurable:!0,value:n})}},function(t,n,r){var e=r(3);t.exports=function(t,n){if(!e(t))return t;var r,o;if(n&&"function"==typeof(r=t.toString)&&!e(o=r.call(t)))return o;if("function"==typeof(r=t.valueOf)&&!e(o=r.call(t)))return o;if(!n&&"function"==typeof(r=t.toString)&&!e(o=r.call(t)))return o;throw TypeError("Can't convert object to primitive value")}},function(t,n,r){var e=r(2),o=r(7),i=r(1)("species");t.exports=function(t,n){var r,c=e(t).constructor;return void 0===c||null==(r=e(c)[i])?n:o(r)}},function(t,n,r){t.exports=!r(5)&&!r(12)((function(){return 7!=Object.defineProperty(r(19)("div"),"a",{get:function(){return 7}}).a}))},function(t,n,r){var e=r(2);t.exports=function(t,n,r,o){try{return o?n(e(r)[0],r[1]):n(r)}catch(n){var i=t.return;throw void 0!==i&&e(i.call(t)),n}}},function(t,n,r){var e=r(17),o=r(1)("iterator"),i=Array.prototype;t.exports=function(t){return void 0!==t&&(e.Array===t||i[o]===t)}},function(t,n,r){var e=r(11),o=r(1)("iterator"),i=r(17);t.exports=r(4).getIteratorMethod=function(t){if(null!=t)return t[o]||t["@@iterator"]||i[e(t)]}},function(t,n,r){var e=r(0).document;t.exports=e&&e.documentElement},function(t,n,r){var e=r(1)("iterator"),o=!1;try{var i=[7][e]();i.return=function(){o=!0},Array.from(i,(function(){throw 2}))}catch(t){}t.exports=function(t,n){if(!n&&!o)return!1;var r=!1;try{var i=[7],c=i[e]();c.next=function(){return{done:r=!0}},i[e]=function(){return c},t(i)}catch(t){}return r}},,,function(t,n,r){t.exports=r(18)("native-function-to-string",Function.toString)},function(t,n){t.exports=function(t,n,r,e){if(!(t instanceof n)||void 0!==e&&e in t)throw TypeError(r+": incorrect invocation!");return t}},function(t,n,r){var e=r(6),o=r(33),i=r(34),c=r(2),u=r(26),a=r(35),f={},s={};(n=t.exports=function(t,n,r,l,h){var p,v,d,y,m=h?function(){return t}:a(t),g=e(r,l,n?2:1),w=0;if("function"!=typeof m)throw TypeError(t+" is not iterable!");if(i(m)){for(p=u(t.length);p>w;w++)if((y=n?g(c(v=t[w])[0],v[1]):g(t[w]))===f||y===s)return y}else for(d=m.call(t);!(v=d.next()).done;)if((y=o(d,g,v.value,n))===f||y===s)return y}).BREAK=f,n.RETURN=s},function(t,n){t.exports=function(t,n,r){var e=void 0===r;switch(n.length){case 0:return e?t():t.call(r);case 1:return e?t(n[0]):t.call(r,n[0]);case 2:return e?t(n[0],n[1]):t.call(r,n[0],n[1]);case 3:return e?t(n[0],n[1],n[2]):t.call(r,n[0],n[1],n[2]);case 4:return e?t(n[0],n[1],n[2],n[3]):t.call(r,n[0],n[1],n[2],n[3])}return t.apply(r,n)}},function(t,n,r){var e=r(0),o=r(20).set,i=e.MutationObserver||e.WebKitMutationObserver,c=e.process,u=e.Promise,a="process"==r(10)(c);t.exports=function(){var t,n,r,f=function(){var e,o;for(a&&(e=c.domain)&&e.exit();t;){o=t.fn,t=t.next;try{o()}catch(e){throw t?r():n=void 0,e}}n=void 0,e&&e.enter()};if(a)r=function(){c.nextTick(f)};else if(!i||e.navigator&&e.navigator.standalone)if(u&&u.resolve){var s=u.resolve(void 0);r=function(){s.then(f)}}else r=function(){o.call(e,f)};else{var l=!0,h=document.createTextNode("");new i(f).observe(h,{characterData:!0}),r=function(){h.data=l=!l}}return function(e){var o={fn:e,next:void 0};n&&(n.next=o),t||(t=o,r()),n=o}}},function(t,n){t.exports=function(t){try{return{e:!1,v:t()}}catch(t){return{e:!0,v:t}}}},function(t,n,r){var e=r(0).navigator;t.exports=e&&e.userAgent||""},function(t,n,r){var e=r(2),o=r(3),i=r(21);t.exports=function(t,n){if(e(t),o(n)&&n.constructor===t)return n;var r=i.f(t);return(0,r.resolve)(n),r.promise}},function(t,n,r){var e=r(9);t.exports=function(t,n,r){for(var o in n)e(t,o,n[o],r);return t}},function(t,n,r){"use strict";var e=r(0),o=r(8),i=r(5),c=r(1)("species");t.exports=function(t){var n=e[t];i&&n&&!n[c]&&o.f(n,c,{configurable:!0,get:function(){return this}})}}]]); \ No newline at end of file diff --git a/views/js/dist/vendors~app.min.js.map b/views/js/dist/vendors~app.min.js.map deleted file mode 100644 index 912dfc0cc..000000000 --- a/views/js/dist/vendors~app.min.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"sources":["webpack://MollieModule.[name]/./node_modules/core-js/modules/_a-function.js","webpack://MollieModule.[name]/./node_modules/core-js/modules/_an-instance.js","webpack://MollieModule.[name]/./node_modules/core-js/modules/_an-object.js","webpack://MollieModule.[name]/./node_modules/core-js/modules/_classof.js","webpack://MollieModule.[name]/./node_modules/core-js/modules/_cof.js","webpack://MollieModule.[name]/./node_modules/core-js/modules/_core.js","webpack://MollieModule.[name]/./node_modules/core-js/modules/_ctx.js","webpack://MollieModule.[name]/./node_modules/core-js/modules/_descriptors.js","webpack://MollieModule.[name]/./node_modules/core-js/modules/_dom-create.js","webpack://MollieModule.[name]/./node_modules/core-js/modules/_export.js","webpack://MollieModule.[name]/./node_modules/core-js/modules/_fails.js","webpack://MollieModule.[name]/./node_modules/core-js/modules/_for-of.js","webpack://MollieModule.[name]/./node_modules/core-js/modules/_function-to-string.js","webpack://MollieModule.[name]/./node_modules/core-js/modules/_global.js","webpack://MollieModule.[name]/./node_modules/core-js/modules/_has.js","webpack://MollieModule.[name]/./node_modules/core-js/modules/_hide.js","webpack://MollieModule.[name]/./node_modules/core-js/modules/_html.js","webpack://MollieModule.[name]/./node_modules/core-js/modules/_ie8-dom-define.js","webpack://MollieModule.[name]/./node_modules/core-js/modules/_invoke.js","webpack://MollieModule.[name]/./node_modules/core-js/modules/_is-array-iter.js","webpack://MollieModule.[name]/./node_modules/core-js/modules/_is-object.js","webpack://MollieModule.[name]/./node_modules/core-js/modules/_iter-call.js","webpack://MollieModule.[name]/./node_modules/core-js/modules/_iter-detect.js","webpack://MollieModule.[name]/./node_modules/core-js/modules/_iterators.js","webpack://MollieModule.[name]/./node_modules/core-js/modules/_library.js","webpack://MollieModule.[name]/./node_modules/core-js/modules/_microtask.js","webpack://MollieModule.[name]/./node_modules/core-js/modules/_new-promise-capability.js","webpack://MollieModule.[name]/./node_modules/core-js/modules/_object-dp.js","webpack://MollieModule.[name]/./node_modules/core-js/modules/_perform.js","webpack://MollieModule.[name]/./node_modules/core-js/modules/_promise-resolve.js","webpack://MollieModule.[name]/./node_modules/core-js/modules/_property-desc.js","webpack://MollieModule.[name]/./node_modules/core-js/modules/_redefine-all.js","webpack://MollieModule.[name]/./node_modules/core-js/modules/_redefine.js","webpack://MollieModule.[name]/./node_modules/core-js/modules/_set-species.js","webpack://MollieModule.[name]/./node_modules/core-js/modules/_set-to-string-tag.js","webpack://MollieModule.[name]/./node_modules/core-js/modules/_shared.js","webpack://MollieModule.[name]/./node_modules/core-js/modules/_species-constructor.js","webpack://MollieModule.[name]/./node_modules/core-js/modules/_task.js","webpack://MollieModule.[name]/./node_modules/core-js/modules/_to-integer.js","webpack://MollieModule.[name]/./node_modules/core-js/modules/_to-length.js","webpack://MollieModule.[name]/./node_modules/core-js/modules/_to-primitive.js","webpack://MollieModule.[name]/./node_modules/core-js/modules/_uid.js","webpack://MollieModule.[name]/./node_modules/core-js/modules/_user-agent.js","webpack://MollieModule.[name]/./node_modules/core-js/modules/_wks.js","webpack://MollieModule.[name]/./node_modules/core-js/modules/core.get-iterator-method.js","webpack://MollieModule.[name]/./node_modules/core-js/modules/es6.object.to-string.js","webpack://MollieModule.[name]/./node_modules/core-js/modules/es6.promise.js","webpack://MollieModule.[name]/./node_modules/regenerator-runtime/runtime.js"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;AAAA;AACA;AACA;AACA;;;;;;;;;;;;ACHA;AACA;AACA;AACA,GAAG;AACH;;;;;;;;;;;;ACJA,eAAe,mBAAO,CAAC,kEAAc;AACrC;AACA;AACA;AACA;;;;;;;;;;;;ACJA;AACA,UAAU,mBAAO,CAAC,sDAAQ;AAC1B,UAAU,mBAAO,CAAC,sDAAQ;AAC1B;AACA,2BAA2B,kBAAkB,EAAE;;AAE/C;AACA;AACA;AACA;AACA,GAAG,YAAY;AACf;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;;;;;;ACtBA,iBAAiB;;AAEjB;AACA;AACA;;;;;;;;;;;;ACJA,6BAA6B;AAC7B,uCAAuC;;;;;;;;;;;;ACDvC;AACA,gBAAgB,mBAAO,CAAC,oEAAe;AACvC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;;;;;;ACnBA;AACA,kBAAkB,mBAAO,CAAC,0DAAU;AACpC,iCAAiC,QAAQ,mBAAmB,UAAU,EAAE,EAAE;AAC1E,CAAC;;;;;;;;;;;;ACHD,eAAe,mBAAO,CAAC,kEAAc;AACrC,eAAe,mBAAO,CAAC,4DAAW;AAClC;AACA;AACA;AACA;AACA;;;;;;;;;;;;ACNA,aAAa,mBAAO,CAAC,4DAAW;AAChC,WAAW,mBAAO,CAAC,wDAAS;AAC5B,WAAW,mBAAO,CAAC,wDAAS;AAC5B,eAAe,mBAAO,CAAC,gEAAa;AACpC,UAAU,mBAAO,CAAC,sDAAQ;AAC1B;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA,kFAAkF,uBAAuB;AACzG,iEAAiE;AACjE,+DAA+D;AAC/D;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;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ChC;AACA,kDAAkD;;AAElD;AACA,qEAAqE;AACrE,CAAC;AACD;AACA,QAAQ,mBAAO,CAAC,8DAAY;AAC5B;AACA,CAAC;;;;;;;;;;;;ACXD;AACA,eAAe,mBAAO,CAAC,kEAAc;AACrC,gBAAgB,mBAAO,CAAC,oEAAe;AACvC,cAAc,mBAAO,CAAC,sDAAQ;AAC9B;AACA;AACA;AACA;AACA;;;;;;;;;;;;ACRA,UAAU,mBAAO,CAAC,sDAAQ;AAC1B,aAAa,mBAAO,CAAC,4DAAW;AAChC,WAAW,mBAAO,CAAC,wDAAS;AAC5B,UAAU,mBAAO,CAAC,oEAAe;AACjC,aAAa,mBAAO,CAAC,4DAAW;AAChC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,MAAM,mBAAO,CAAC,sDAAQ;AACtB;AACA;AACA;AACA;AACA,GAAG;AACH;AACA;AACA;AACA;AACA,GAAG;AACH;AACA;AACA;AACA;AACA;AACA;AACA,GAAG;AACH;AACA;AACA;AACA;AACA;AACA,GAAG;AACH;AACA;AACA;AACA;AACA;AACA;AACA;AACA,GAAG;AACH;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;;;;;;ACnFA;AACA;AACA;AACA;AACA;AACA;;;;;;;;;;;;ACLA;AACA,gBAAgB,mBAAO,CAAC,oEAAe;AACvC;AACA;AACA,2DAA2D;AAC3D;;;;;;;;;;;;ACLA;AACA,eAAe,mBAAO,CAAC,kEAAc;AACrC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;;;;;;ACXA;AACA;AACA;AACA;AACA;;;;;;;;;;;;ACJA,aAAa,mBAAO,CAAC,4DAAW;AAChC;;AAEA;;;;;;;;;;;;ACHA,YAAY,mBAAO,CAA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AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,oCAAoC;AACpC;AACA;AACA;AACA;AACA;AACA;AACA;AACA,WAAW;AACX;AACA,WAAW;AACX,SAAS;AACT,OAAO;AACP;AACA;AACA;AACA;AACA,6CAA6C;AAC7C;AACA;AACA;AACA,GAAG;AACH;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,SAAS;AACT,mBAAmB,kCAAkC;AACrD,SAAS;AACT;AACA;AACA,OAAO;AACP;AACA;AACA,KAAK;AACL;AACA,GAAG;AACH;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;AACL,eAAe,uCAAuC;AACtD;AACA,GAAG;AACH;AACA;AACA;AACA;AACA;AACA,kCAAkC;AAClC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,kCAAkC;AAClC;AACA;AACA;AACA;AACA,uBAAuB,0BAA0B;AACjD;AACA;AACA,SAAS;AACT;AACA;AACA,OAAO;AACP,KAAK;AACL;AACA;AACA;AACA;AACA,GAAG;AACH,kBAAkB,yBAAyB,KAAK;AAChD;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA;AACA,iBAAiB;AACjB,wBAAwB;AACxB,gBAAgB;AAChB,oBAAoB;AACpB,wBAAwB;AACxB,gBAAgB;AAChB,oBAAoB;AACpB;AACA,uBAAuB,mBAAO,CAAC,wEAAiB;AAChD;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA,GAAG;AACH;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,0DAA0D,oBAAoB;AAC9E,mBAAO,CAAC,kFAAsB;AAC9B,mBAAO,CAAC,sEAAgB;AACxB,UAAU,mBAAO,CAAC,wDAAS;;AAE3B;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,CAAC;AACD;AACA;AACA;AACA;AACA;AACA,CAAC;AACD,gDAAgD,mBAAO,CAAC,sEAAgB;AACxE;AACA,CAAC;AACD;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,SAAS;AACT,OAAO;AACP;AACA,KAAK;AACL;AACA;AACA,GAAG;AACH;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,OAAO;AACP,KAAK;AACL;AACA;AACA;AACA,CAAC;;;;;;;;;;;;AC7RD;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA,gBAAgB;AAChB;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA,aAAa;AACb,GAAG;AACH;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,cAAc;AACd,KAAK;AACL,cAAc;AACd;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,yDAAyD;AACzD;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA,OAAO;AACP,KAAK;AACL;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,YAAY;AACZ;;AAEA;AACA;AACA;AACA;AACA;AACA,OAAO;AACP;AACA;AACA;AACA;AACA;AACA;AACA;AACA,WAAW;AACX;AACA,WAAW;AACX;;AAEA;AACA;AACA,wCAAwC,WAAW;AACnD;AACA;AACA;AACA,SAAS;AACT;AACA;AACA;AACA,SAAS;AACT;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA,SAAS;AACT;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA,2BAA2B;AAC3B;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA,SAAS;AACT;;AAEA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA,SAAS;AACT;AACA;AACA;AACA;;AAEA;;AAEA,SAAS;AACT;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA,SAAS;AACT;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA,oCAAoC,cAAc;AAClD;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,KAAK;AACL;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA,iCAAiC,kBAAkB;AACnD;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA,iBAAiB;;AAEjB;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA,wBAAwB,iBAAiB;AACzC;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;;AAEA;AACA,YAAY;AACZ;AACA;;AAEA;AACA,YAAY;AACZ;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;;AAEL;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA,KAAK;;AAEL;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA,8CAA8C,QAAQ;AACtD;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA,aAAa;AACb;AACA;;AAEA,WAAW;AACX;AACA;AACA;;AAEA,WAAW;AACX;AACA;AACA;;AAEA,WAAW;AACX;AACA;AACA;AACA;AACA,KAAK;;AAEL;AACA,8CAA8C,QAAQ;AACtD;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA,KAAK;;AAEL;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,OAAO;AACP;AACA;AACA;AACA,OAAO;AACP;AACA;;AAEA;AACA,KAAK;;AAEL;AACA,8CAA8C,QAAQ;AACtD;AACA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;;AAEL;AACA,8CAA8C,QAAQ;AACtD;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,KAAK;;AAEL;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA,CAAC;AACD;AACA;AACA;AACA;AACA,EAAE,KAA0B,oBAAoB,SAAE;AAClD;;AAEA;AACA;AACA,CAAC;AACD;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA","file":"vendors~app.min.js","sourcesContent":["module.exports = function (it) {\n if (typeof it != 'function') throw TypeError(it + ' is not a function!');\n return it;\n};\n","module.exports = function (it, Constructor, name, forbiddenField) {\n if (!(it instanceof Constructor) || (forbiddenField !== undefined && forbiddenField in it)) {\n throw TypeError(name + ': incorrect invocation!');\n } return it;\n};\n","var isObject = require('./_is-object');\nmodule.exports = function (it) {\n if (!isObject(it)) throw TypeError(it + ' is not an object!');\n return it;\n};\n","// getting tag from 19.1.3.6 Object.prototype.toString()\nvar cof = require('./_cof');\nvar TAG = require('./_wks')('toStringTag');\n// ES3 wrong here\nvar ARG = cof(function () { return arguments; }()) == 'Arguments';\n\n// fallback for IE11 Script Access Denied error\nvar tryGet = function (it, key) {\n try {\n return it[key];\n } catch (e) { /* empty */ }\n};\n\nmodule.exports = function (it) {\n var O, T, B;\n return it === undefined ? 'Undefined' : it === null ? 'Null'\n // @@toStringTag case\n : typeof (T = tryGet(O = Object(it), TAG)) == 'string' ? T\n // builtinTag case\n : ARG ? cof(O)\n // ES3 arguments fallback\n : (B = cof(O)) == 'Object' && typeof O.callee == 'function' ? 'Arguments' : B;\n};\n","var toString = {}.toString;\n\nmodule.exports = function (it) {\n return toString.call(it).slice(8, -1);\n};\n","var core = module.exports = { version: '2.6.11' };\nif (typeof __e == 'number') __e = core; // eslint-disable-line no-undef\n","// optional / simple context binding\nvar aFunction = require('./_a-function');\nmodule.exports = function (fn, that, length) {\n aFunction(fn);\n if (that === undefined) return fn;\n switch (length) {\n case 1: return function (a) {\n return fn.call(that, a);\n };\n case 2: return function (a, b) {\n return fn.call(that, a, b);\n };\n case 3: return function (a, b, c) {\n return fn.call(that, a, b, c);\n };\n }\n return function (/* ...args */) {\n return fn.apply(that, arguments);\n };\n};\n","// Thank's IE8 for his funny defineProperty\nmodule.exports = !require('./_fails')(function () {\n return Object.defineProperty({}, 'a', { get: function () { return 7; } }).a != 7;\n});\n","var isObject = require('./_is-object');\nvar document = require('./_global').document;\n// typeof document.createElement is 'object' in old IE\nvar is = isObject(document) && isObject(document.createElement);\nmodule.exports = function (it) {\n return is ? document.createElement(it) : {};\n};\n","var global = require('./_global');\nvar core = require('./_core');\nvar hide = require('./_hide');\nvar redefine = require('./_redefine');\nvar ctx = require('./_ctx');\nvar PROTOTYPE = 'prototype';\n\nvar $export = function (type, name, source) {\n var IS_FORCED = type & $export.F;\n var IS_GLOBAL = type & $export.G;\n var IS_STATIC = type & $export.S;\n var IS_PROTO = type & $export.P;\n var IS_BIND = type & $export.B;\n var target = IS_GLOBAL ? global : IS_STATIC ? global[name] || (global[name] = {}) : (global[name] || {})[PROTOTYPE];\n var exports = IS_GLOBAL ? core : core[name] || (core[name] = {});\n var expProto = exports[PROTOTYPE] || (exports[PROTOTYPE] = {});\n var key, own, out, exp;\n if (IS_GLOBAL) source = name;\n for (key in source) {\n // contains in native\n own = !IS_FORCED && target && target[key] !== undefined;\n // export native or passed\n out = (own ? target : source)[key];\n // bind timers to global for call from export context\n exp = IS_BIND && own ? ctx(out, global) : IS_PROTO && typeof out == 'function' ? ctx(Function.call, out) : out;\n // extend global\n if (target) redefine(target, key, out, type & $export.U);\n // export\n if (exports[key] != out) hide(exports, key, exp);\n if (IS_PROTO && expProto[key] != out) expProto[key] = out;\n }\n};\nglobal.core = core;\n// type bitmap\n$export.F = 1; // forced\n$export.G = 2; // global\n$export.S = 4; // static\n$export.P = 8; // proto\n$export.B = 16; // bind\n$export.W = 32; // wrap\n$export.U = 64; // safe\n$export.R = 128; // real proto method for `library`\nmodule.exports = $export;\n","module.exports = function (exec) {\n try {\n return !!exec();\n } catch (e) {\n return true;\n }\n};\n","var ctx = require('./_ctx');\nvar call = require('./_iter-call');\nvar isArrayIter = require('./_is-array-iter');\nvar anObject = require('./_an-object');\nvar toLength = require('./_to-length');\nvar getIterFn = require('./core.get-iterator-method');\nvar BREAK = {};\nvar RETURN = {};\nvar exports = module.exports = function (iterable, entries, fn, that, ITERATOR) {\n var iterFn = ITERATOR ? function () { return iterable; } : getIterFn(iterable);\n var f = ctx(fn, that, entries ? 2 : 1);\n var index = 0;\n var length, step, iterator, result;\n if (typeof iterFn != 'function') throw TypeError(iterable + ' is not iterable!');\n // fast case for arrays with default iterator\n if (isArrayIter(iterFn)) for (length = toLength(iterable.length); length > index; index++) {\n result = entries ? f(anObject(step = iterable[index])[0], step[1]) : f(iterable[index]);\n if (result === BREAK || result === RETURN) return result;\n } else for (iterator = iterFn.call(iterable); !(step = iterator.next()).done;) {\n result = call(iterator, f, step.value, entries);\n if (result === BREAK || result === RETURN) return result;\n }\n};\nexports.BREAK = BREAK;\nexports.RETURN = RETURN;\n","module.exports = require('./_shared')('native-function-to-string', Function.toString);\n","// https://github.com/zloirock/core-js/issues/86#issuecomment-115759028\nvar global = module.exports = typeof window != 'undefined' && window.Math == Math\n ? window : typeof self != 'undefined' && self.Math == Math ? self\n // eslint-disable-next-line no-new-func\n : Function('return this')();\nif (typeof __g == 'number') __g = global; // eslint-disable-line no-undef\n","var hasOwnProperty = {}.hasOwnProperty;\nmodule.exports = function (it, key) {\n return hasOwnProperty.call(it, key);\n};\n","var dP = require('./_object-dp');\nvar createDesc = require('./_property-desc');\nmodule.exports = require('./_descriptors') ? function (object, key, value) {\n return dP.f(object, key, createDesc(1, value));\n} : function (object, key, value) {\n object[key] = value;\n return object;\n};\n","var document = require('./_global').document;\nmodule.exports = document && document.documentElement;\n","module.exports = !require('./_descriptors') && !require('./_fails')(function () {\n return Object.defineProperty(require('./_dom-create')('div'), 'a', { get: function () { return 7; } }).a != 7;\n});\n","// fast apply, http://jsperf.lnkit.com/fast-apply/5\nmodule.exports = function (fn, args, that) {\n var un = that === undefined;\n switch (args.length) {\n case 0: return un ? fn()\n : fn.call(that);\n case 1: return un ? fn(args[0])\n : fn.call(that, args[0]);\n case 2: return un ? fn(args[0], args[1])\n : fn.call(that, args[0], args[1]);\n case 3: return un ? fn(args[0], args[1], args[2])\n : fn.call(that, args[0], args[1], args[2]);\n case 4: return un ? fn(args[0], args[1], args[2], args[3])\n : fn.call(that, args[0], args[1], args[2], args[3]);\n } return fn.apply(that, args);\n};\n","// check on default Array iterator\nvar Iterators = require('./_iterators');\nvar ITERATOR = require('./_wks')('iterator');\nvar ArrayProto = Array.prototype;\n\nmodule.exports = function (it) {\n return it !== undefined && (Iterators.Array === it || ArrayProto[ITERATOR] === it);\n};\n","module.exports = function (it) {\n return typeof it === 'object' ? it !== null : typeof it === 'function';\n};\n","// call something on iterator step with safe closing on error\nvar anObject = require('./_an-object');\nmodule.exports = function (iterator, fn, value, entries) {\n try {\n return entries ? fn(anObject(value)[0], value[1]) : fn(value);\n // 7.4.6 IteratorClose(iterator, completion)\n } catch (e) {\n var ret = iterator['return'];\n if (ret !== undefined) anObject(ret.call(iterator));\n throw e;\n }\n};\n","var ITERATOR = require('./_wks')('iterator');\nvar SAFE_CLOSING = false;\n\ntry {\n var riter = [7][ITERATOR]();\n riter['return'] = function () { SAFE_CLOSING = true; };\n // eslint-disable-next-line no-throw-literal\n Array.from(riter, function () { throw 2; });\n} catch (e) { /* empty */ }\n\nmodule.exports = function (exec, skipClosing) {\n if (!skipClosing && !SAFE_CLOSING) return false;\n var safe = false;\n try {\n var arr = [7];\n var iter = arr[ITERATOR]();\n iter.next = function () { return { done: safe = true }; };\n arr[ITERATOR] = function () { return iter; };\n exec(arr);\n } catch (e) { /* empty */ }\n return safe;\n};\n","module.exports = {};\n","module.exports = false;\n","var global = require('./_global');\nvar macrotask = require('./_task').set;\nvar Observer = global.MutationObserver || global.WebKitMutationObserver;\nvar process = global.process;\nvar Promise = global.Promise;\nvar isNode = require('./_cof')(process) == 'process';\n\nmodule.exports = function () {\n var head, last, notify;\n\n var flush = function () {\n var parent, fn;\n if (isNode && (parent = process.domain)) parent.exit();\n while (head) {\n fn = head.fn;\n head = head.next;\n try {\n fn();\n } catch (e) {\n if (head) notify();\n else last = undefined;\n throw e;\n }\n } last = undefined;\n if (parent) parent.enter();\n };\n\n // Node.js\n if (isNode) {\n notify = function () {\n process.nextTick(flush);\n };\n // browsers with MutationObserver, except iOS Safari - https://github.com/zloirock/core-js/issues/339\n } else if (Observer && !(global.navigator && global.navigator.standalone)) {\n var toggle = true;\n var node = document.createTextNode('');\n new Observer(flush).observe(node, { characterData: true }); // eslint-disable-line no-new\n notify = function () {\n node.data = toggle = !toggle;\n };\n // environments with maybe non-completely correct, but existent Promise\n } else if (Promise && Promise.resolve) {\n // Promise.resolve without an argument throws an error in LG WebOS 2\n var promise = Promise.resolve(undefined);\n notify = function () {\n promise.then(flush);\n };\n // for other environments - macrotask based on:\n // - setImmediate\n // - MessageChannel\n // - window.postMessag\n // - onreadystatechange\n // - setTimeout\n } else {\n notify = function () {\n // strange IE + webpack dev server bug - use .call(global)\n macrotask.call(global, flush);\n };\n }\n\n return function (fn) {\n var task = { fn: fn, next: undefined };\n if (last) last.next = task;\n if (!head) {\n head = task;\n notify();\n } last = task;\n };\n};\n","'use strict';\n// 25.4.1.5 NewPromiseCapability(C)\nvar aFunction = require('./_a-function');\n\nfunction PromiseCapability(C) {\n var resolve, reject;\n this.promise = new C(function ($$resolve, $$reject) {\n if (resolve !== undefined || reject !== undefined) throw TypeError('Bad Promise constructor');\n resolve = $$resolve;\n reject = $$reject;\n });\n this.resolve = aFunction(resolve);\n this.reject = aFunction(reject);\n}\n\nmodule.exports.f = function (C) {\n return new PromiseCapability(C);\n};\n","var anObject = require('./_an-object');\nvar IE8_DOM_DEFINE = require('./_ie8-dom-define');\nvar toPrimitive = require('./_to-primitive');\nvar dP = Object.defineProperty;\n\nexports.f = require('./_descriptors') ? Object.defineProperty : function defineProperty(O, P, Attributes) {\n anObject(O);\n P = toPrimitive(P, true);\n anObject(Attributes);\n if (IE8_DOM_DEFINE) try {\n return dP(O, P, Attributes);\n } catch (e) { /* empty */ }\n if ('get' in Attributes || 'set' in Attributes) throw TypeError('Accessors not supported!');\n if ('value' in Attributes) O[P] = Attributes.value;\n return O;\n};\n","module.exports = function (exec) {\n try {\n return { e: false, v: exec() };\n } catch (e) {\n return { e: true, v: e };\n }\n};\n","var anObject = require('./_an-object');\nvar isObject = require('./_is-object');\nvar newPromiseCapability = require('./_new-promise-capability');\n\nmodule.exports = function (C, x) {\n anObject(C);\n if (isObject(x) && x.constructor === C) return x;\n var promiseCapability = newPromiseCapability.f(C);\n var resolve = promiseCapability.resolve;\n resolve(x);\n return promiseCapability.promise;\n};\n","module.exports = function (bitmap, value) {\n return {\n enumerable: !(bitmap & 1),\n configurable: !(bitmap & 2),\n writable: !(bitmap & 4),\n value: value\n };\n};\n","var redefine = require('./_redefine');\nmodule.exports = function (target, src, safe) {\n for (var key in src) redefine(target, key, src[key], safe);\n return target;\n};\n","var global = require('./_global');\nvar hide = require('./_hide');\nvar has = require('./_has');\nvar SRC = require('./_uid')('src');\nvar $toString = require('./_function-to-string');\nvar TO_STRING = 'toString';\nvar TPL = ('' + $toString).split(TO_STRING);\n\nrequire('./_core').inspectSource = function (it) {\n return $toString.call(it);\n};\n\n(module.exports = function (O, key, val, safe) {\n var isFunction = typeof val == 'function';\n if (isFunction) has(val, 'name') || hide(val, 'name', key);\n if (O[key] === val) return;\n if (isFunction) has(val, SRC) || hide(val, SRC, O[key] ? '' + O[key] : TPL.join(String(key)));\n if (O === global) {\n O[key] = val;\n } else if (!safe) {\n delete O[key];\n hide(O, key, val);\n } else if (O[key]) {\n O[key] = val;\n } else {\n hide(O, key, val);\n }\n// add fake Function#toString for correct work wrapped methods / constructors with methods like LoDash isNative\n})(Function.prototype, TO_STRING, function toString() {\n return typeof this == 'function' && this[SRC] || $toString.call(this);\n});\n","'use strict';\nvar global = require('./_global');\nvar dP = require('./_object-dp');\nvar DESCRIPTORS = require('./_descriptors');\nvar SPECIES = require('./_wks')('species');\n\nmodule.exports = function (KEY) {\n var C = global[KEY];\n if (DESCRIPTORS && C && !C[SPECIES]) dP.f(C, SPECIES, {\n configurable: true,\n get: function () { return this; }\n });\n};\n","var def = require('./_object-dp').f;\nvar has = require('./_has');\nvar TAG = require('./_wks')('toStringTag');\n\nmodule.exports = function (it, tag, stat) {\n if (it && !has(it = stat ? it : it.prototype, TAG)) def(it, TAG, { configurable: true, value: tag });\n};\n","var core = require('./_core');\nvar global = require('./_global');\nvar SHARED = '__core-js_shared__';\nvar store = global[SHARED] || (global[SHARED] = {});\n\n(module.exports = function (key, value) {\n return store[key] || (store[key] = value !== undefined ? value : {});\n})('versions', []).push({\n version: core.version,\n mode: require('./_library') ? 'pure' : 'global',\n copyright: '© 2019 Denis Pushkarev (zloirock.ru)'\n});\n","// 7.3.20 SpeciesConstructor(O, defaultConstructor)\nvar anObject = require('./_an-object');\nvar aFunction = require('./_a-function');\nvar SPECIES = require('./_wks')('species');\nmodule.exports = function (O, D) {\n var C = anObject(O).constructor;\n var S;\n return C === undefined || (S = anObject(C)[SPECIES]) == undefined ? D : aFunction(S);\n};\n","var ctx = require('./_ctx');\nvar invoke = require('./_invoke');\nvar html = require('./_html');\nvar cel = require('./_dom-create');\nvar global = require('./_global');\nvar process = global.process;\nvar setTask = global.setImmediate;\nvar clearTask = global.clearImmediate;\nvar MessageChannel = global.MessageChannel;\nvar Dispatch = global.Dispatch;\nvar counter = 0;\nvar queue = {};\nvar ONREADYSTATECHANGE = 'onreadystatechange';\nvar defer, channel, port;\nvar run = function () {\n var id = +this;\n // eslint-disable-next-line no-prototype-builtins\n if (queue.hasOwnProperty(id)) {\n var fn = queue[id];\n delete queue[id];\n fn();\n }\n};\nvar listener = function (event) {\n run.call(event.data);\n};\n// Node.js 0.9+ & IE10+ has setImmediate, otherwise:\nif (!setTask || !clearTask) {\n setTask = function setImmediate(fn) {\n var args = [];\n var i = 1;\n while (arguments.length > i) args.push(arguments[i++]);\n queue[++counter] = function () {\n // eslint-disable-next-line no-new-func\n invoke(typeof fn == 'function' ? fn : Function(fn), args);\n };\n defer(counter);\n return counter;\n };\n clearTask = function clearImmediate(id) {\n delete queue[id];\n };\n // Node.js 0.8-\n if (require('./_cof')(process) == 'process') {\n defer = function (id) {\n process.nextTick(ctx(run, id, 1));\n };\n // Sphere (JS game engine) Dispatch API\n } else if (Dispatch && Dispatch.now) {\n defer = function (id) {\n Dispatch.now(ctx(run, id, 1));\n };\n // Browsers with MessageChannel, includes WebWorkers\n } else if (MessageChannel) {\n channel = new MessageChannel();\n port = channel.port2;\n channel.port1.onmessage = listener;\n defer = ctx(port.postMessage, port, 1);\n // Browsers with postMessage, skip WebWorkers\n // IE8 has postMessage, but it's sync & typeof its postMessage is 'object'\n } else if (global.addEventListener && typeof postMessage == 'function' && !global.importScripts) {\n defer = function (id) {\n global.postMessage(id + '', '*');\n };\n global.addEventListener('message', listener, false);\n // IE8-\n } else if (ONREADYSTATECHANGE in cel('script')) {\n defer = function (id) {\n html.appendChild(cel('script'))[ONREADYSTATECHANGE] = function () {\n html.removeChild(this);\n run.call(id);\n };\n };\n // Rest old browsers\n } else {\n defer = function (id) {\n setTimeout(ctx(run, id, 1), 0);\n };\n }\n}\nmodule.exports = {\n set: setTask,\n clear: clearTask\n};\n","// 7.1.4 ToInteger\nvar ceil = Math.ceil;\nvar floor = Math.floor;\nmodule.exports = function (it) {\n return isNaN(it = +it) ? 0 : (it > 0 ? floor : ceil)(it);\n};\n","// 7.1.15 ToLength\nvar toInteger = require('./_to-integer');\nvar min = Math.min;\nmodule.exports = function (it) {\n return it > 0 ? min(toInteger(it), 0x1fffffffffffff) : 0; // pow(2, 53) - 1 == 9007199254740991\n};\n","// 7.1.1 ToPrimitive(input [, PreferredType])\nvar isObject = require('./_is-object');\n// instead of the ES6 spec version, we didn't implement @@toPrimitive case\n// and the second argument - flag - preferred type is a string\nmodule.exports = function (it, S) {\n if (!isObject(it)) return it;\n var fn, val;\n if (S && typeof (fn = it.toString) == 'function' && !isObject(val = fn.call(it))) return val;\n if (typeof (fn = it.valueOf) == 'function' && !isObject(val = fn.call(it))) return val;\n if (!S && typeof (fn = it.toString) == 'function' && !isObject(val = fn.call(it))) return val;\n throw TypeError(\"Can't convert object to primitive value\");\n};\n","var id = 0;\nvar px = Math.random();\nmodule.exports = function (key) {\n return 'Symbol('.concat(key === undefined ? '' : key, ')_', (++id + px).toString(36));\n};\n","var global = require('./_global');\nvar navigator = global.navigator;\n\nmodule.exports = navigator && navigator.userAgent || '';\n","var store = require('./_shared')('wks');\nvar uid = require('./_uid');\nvar Symbol = require('./_global').Symbol;\nvar USE_SYMBOL = typeof Symbol == 'function';\n\nvar $exports = module.exports = function (name) {\n return store[name] || (store[name] =\n USE_SYMBOL && Symbol[name] || (USE_SYMBOL ? Symbol : uid)('Symbol.' + name));\n};\n\n$exports.store = store;\n","var classof = require('./_classof');\nvar ITERATOR = require('./_wks')('iterator');\nvar Iterators = require('./_iterators');\nmodule.exports = require('./_core').getIteratorMethod = function (it) {\n if (it != undefined) return it[ITERATOR]\n || it['@@iterator']\n || Iterators[classof(it)];\n};\n","'use strict';\n// 19.1.3.6 Object.prototype.toString()\nvar classof = require('./_classof');\nvar test = {};\ntest[require('./_wks')('toStringTag')] = 'z';\nif (test + '' != '[object z]') {\n require('./_redefine')(Object.prototype, 'toString', function toString() {\n return '[object ' + classof(this) + ']';\n }, true);\n}\n","'use strict';\nvar LIBRARY = require('./_library');\nvar global = require('./_global');\nvar ctx = require('./_ctx');\nvar classof = require('./_classof');\nvar $export = require('./_export');\nvar isObject = require('./_is-object');\nvar aFunction = require('./_a-function');\nvar anInstance = require('./_an-instance');\nvar forOf = require('./_for-of');\nvar speciesConstructor = require('./_species-constructor');\nvar task = require('./_task').set;\nvar microtask = require('./_microtask')();\nvar newPromiseCapabilityModule = require('./_new-promise-capability');\nvar perform = require('./_perform');\nvar userAgent = require('./_user-agent');\nvar promiseResolve = require('./_promise-resolve');\nvar PROMISE = 'Promise';\nvar TypeError = global.TypeError;\nvar process = global.process;\nvar versions = process && process.versions;\nvar v8 = versions && versions.v8 || '';\nvar $Promise = global[PROMISE];\nvar isNode = classof(process) == 'process';\nvar empty = function () { /* empty */ };\nvar Internal, newGenericPromiseCapability, OwnPromiseCapability, Wrapper;\nvar newPromiseCapability = newGenericPromiseCapability = newPromiseCapabilityModule.f;\n\nvar USE_NATIVE = !!function () {\n try {\n // correct subclassing with @@species support\n var promise = $Promise.resolve(1);\n var FakePromise = (promise.constructor = {})[require('./_wks')('species')] = function (exec) {\n exec(empty, empty);\n };\n // unhandled rejections tracking support, NodeJS Promise without it fails @@species test\n return (isNode || typeof PromiseRejectionEvent == 'function')\n && promise.then(empty) instanceof FakePromise\n // v8 6.6 (Node 10 and Chrome 66) have a bug with resolving custom thenables\n // https://bugs.chromium.org/p/chromium/issues/detail?id=830565\n // we can't detect it synchronously, so just check versions\n && v8.indexOf('6.6') !== 0\n && userAgent.indexOf('Chrome/66') === -1;\n } catch (e) { /* empty */ }\n}();\n\n// helpers\nvar isThenable = function (it) {\n var then;\n return isObject(it) && typeof (then = it.then) == 'function' ? then : false;\n};\nvar notify = function (promise, isReject) {\n if (promise._n) return;\n promise._n = true;\n var chain = promise._c;\n microtask(function () {\n var value = promise._v;\n var ok = promise._s == 1;\n var i = 0;\n var run = function (reaction) {\n var handler = ok ? reaction.ok : reaction.fail;\n var resolve = reaction.resolve;\n var reject = reaction.reject;\n var domain = reaction.domain;\n var result, then, exited;\n try {\n if (handler) {\n if (!ok) {\n if (promise._h == 2) onHandleUnhandled(promise);\n promise._h = 1;\n }\n if (handler === true) result = value;\n else {\n if (domain) domain.enter();\n result = handler(value); // may throw\n if (domain) {\n domain.exit();\n exited = true;\n }\n }\n if (result === reaction.promise) {\n reject(TypeError('Promise-chain cycle'));\n } else if (then = isThenable(result)) {\n then.call(result, resolve, reject);\n } else resolve(result);\n } else reject(value);\n } catch (e) {\n if (domain && !exited) domain.exit();\n reject(e);\n }\n };\n while (chain.length > i) run(chain[i++]); // variable length - can't use forEach\n promise._c = [];\n promise._n = false;\n if (isReject && !promise._h) onUnhandled(promise);\n });\n};\nvar onUnhandled = function (promise) {\n task.call(global, function () {\n var value = promise._v;\n var unhandled = isUnhandled(promise);\n var result, handler, console;\n if (unhandled) {\n result = perform(function () {\n if (isNode) {\n process.emit('unhandledRejection', value, promise);\n } else if (handler = global.onunhandledrejection) {\n handler({ promise: promise, reason: value });\n } else if ((console = global.console) && console.error) {\n console.error('Unhandled promise rejection', value);\n }\n });\n // Browsers should not trigger `rejectionHandled` event if it was handled here, NodeJS - should\n promise._h = isNode || isUnhandled(promise) ? 2 : 1;\n } promise._a = undefined;\n if (unhandled && result.e) throw result.v;\n });\n};\nvar isUnhandled = function (promise) {\n return promise._h !== 1 && (promise._a || promise._c).length === 0;\n};\nvar onHandleUnhandled = function (promise) {\n task.call(global, function () {\n var handler;\n if (isNode) {\n process.emit('rejectionHandled', promise);\n } else if (handler = global.onrejectionhandled) {\n handler({ promise: promise, reason: promise._v });\n }\n });\n};\nvar $reject = function (value) {\n var promise = this;\n if (promise._d) return;\n promise._d = true;\n promise = promise._w || promise; // unwrap\n promise._v = value;\n promise._s = 2;\n if (!promise._a) promise._a = promise._c.slice();\n notify(promise, true);\n};\nvar $resolve = function (value) {\n var promise = this;\n var then;\n if (promise._d) return;\n promise._d = true;\n promise = promise._w || promise; // unwrap\n try {\n if (promise === value) throw TypeError(\"Promise can't be resolved itself\");\n if (then = isThenable(value)) {\n microtask(function () {\n var wrapper = { _w: promise, _d: false }; // wrap\n try {\n then.call(value, ctx($resolve, wrapper, 1), ctx($reject, wrapper, 1));\n } catch (e) {\n $reject.call(wrapper, e);\n }\n });\n } else {\n promise._v = value;\n promise._s = 1;\n notify(promise, false);\n }\n } catch (e) {\n $reject.call({ _w: promise, _d: false }, e); // wrap\n }\n};\n\n// constructor polyfill\nif (!USE_NATIVE) {\n // 25.4.3.1 Promise(executor)\n $Promise = function Promise(executor) {\n anInstance(this, $Promise, PROMISE, '_h');\n aFunction(executor);\n Internal.call(this);\n try {\n executor(ctx($resolve, this, 1), ctx($reject, this, 1));\n } catch (err) {\n $reject.call(this, err);\n }\n };\n // eslint-disable-next-line no-unused-vars\n Internal = function Promise(executor) {\n this._c = []; // <- awaiting reactions\n this._a = undefined; // <- checked in isUnhandled reactions\n this._s = 0; // <- state\n this._d = false; // <- done\n this._v = undefined; // <- value\n this._h = 0; // <- rejection state, 0 - default, 1 - handled, 2 - unhandled\n this._n = false; // <- notify\n };\n Internal.prototype = require('./_redefine-all')($Promise.prototype, {\n // 25.4.5.3 Promise.prototype.then(onFulfilled, onRejected)\n then: function then(onFulfilled, onRejected) {\n var reaction = newPromiseCapability(speciesConstructor(this, $Promise));\n reaction.ok = typeof onFulfilled == 'function' ? onFulfilled : true;\n reaction.fail = typeof onRejected == 'function' && onRejected;\n reaction.domain = isNode ? process.domain : undefined;\n this._c.push(reaction);\n if (this._a) this._a.push(reaction);\n if (this._s) notify(this, false);\n return reaction.promise;\n },\n // 25.4.5.1 Promise.prototype.catch(onRejected)\n 'catch': function (onRejected) {\n return this.then(undefined, onRejected);\n }\n });\n OwnPromiseCapability = function () {\n var promise = new Internal();\n this.promise = promise;\n this.resolve = ctx($resolve, promise, 1);\n this.reject = ctx($reject, promise, 1);\n };\n newPromiseCapabilityModule.f = newPromiseCapability = function (C) {\n return C === $Promise || C === Wrapper\n ? new OwnPromiseCapability(C)\n : newGenericPromiseCapability(C);\n };\n}\n\n$export($export.G + $export.W + $export.F * !USE_NATIVE, { Promise: $Promise });\nrequire('./_set-to-string-tag')($Promise, PROMISE);\nrequire('./_set-species')(PROMISE);\nWrapper = require('./_core')[PROMISE];\n\n// statics\n$export($export.S + $export.F * !USE_NATIVE, PROMISE, {\n // 25.4.4.5 Promise.reject(r)\n reject: function reject(r) {\n var capability = newPromiseCapability(this);\n var $$reject = capability.reject;\n $$reject(r);\n return capability.promise;\n }\n});\n$export($export.S + $export.F * (LIBRARY || !USE_NATIVE), PROMISE, {\n // 25.4.4.6 Promise.resolve(x)\n resolve: function resolve(x) {\n return promiseResolve(LIBRARY && this === Wrapper ? $Promise : this, x);\n }\n});\n$export($export.S + $export.F * !(USE_NATIVE && require('./_iter-detect')(function (iter) {\n $Promise.all(iter)['catch'](empty);\n})), PROMISE, {\n // 25.4.4.1 Promise.all(iterable)\n all: function all(iterable) {\n var C = this;\n var capability = newPromiseCapability(C);\n var resolve = capability.resolve;\n var reject = capability.reject;\n var result = perform(function () {\n var values = [];\n var index = 0;\n var remaining = 1;\n forOf(iterable, false, function (promise) {\n var $index = index++;\n var alreadyCalled = false;\n values.push(undefined);\n remaining++;\n C.resolve(promise).then(function (value) {\n if (alreadyCalled) return;\n alreadyCalled = true;\n values[$index] = value;\n --remaining || resolve(values);\n }, reject);\n });\n --remaining || resolve(values);\n });\n if (result.e) reject(result.v);\n return capability.promise;\n },\n // 25.4.4.4 Promise.race(iterable)\n race: function race(iterable) {\n var C = this;\n var capability = newPromiseCapability(C);\n var reject = capability.reject;\n var result = perform(function () {\n forOf(iterable, false, function (promise) {\n C.resolve(promise).then(capability.resolve, reject);\n });\n });\n if (result.e) reject(result.v);\n return capability.promise;\n }\n});\n","/**\n * Copyright (c) 2014-present, Facebook, Inc.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\nvar runtime = (function (exports) {\n \"use strict\";\n\n var Op = Object.prototype;\n var hasOwn = Op.hasOwnProperty;\n var undefined; // More compressible than void 0.\n var $Symbol = typeof Symbol === \"function\" ? Symbol : {};\n var iteratorSymbol = $Symbol.iterator || \"@@iterator\";\n var asyncIteratorSymbol = $Symbol.asyncIterator || \"@@asyncIterator\";\n var toStringTagSymbol = $Symbol.toStringTag || \"@@toStringTag\";\n\n function define(obj, key, value) {\n Object.defineProperty(obj, key, {\n value: value,\n enumerable: true,\n configurable: true,\n writable: true\n });\n return obj[key];\n }\n try {\n // IE 8 has a broken Object.defineProperty that only works on DOM objects.\n define({}, \"\");\n } catch (err) {\n define = function(obj, key, value) {\n return obj[key] = value;\n };\n }\n\n function wrap(innerFn, outerFn, self, tryLocsList) {\n // If outerFn provided and outerFn.prototype is a Generator, then outerFn.prototype instanceof Generator.\n var protoGenerator = outerFn && outerFn.prototype instanceof Generator ? outerFn : Generator;\n var generator = Object.create(protoGenerator.prototype);\n var context = new Context(tryLocsList || []);\n\n // The ._invoke method unifies the implementations of the .next,\n // .throw, and .return methods.\n generator._invoke = makeInvokeMethod(innerFn, self, context);\n\n return generator;\n }\n exports.wrap = wrap;\n\n // Try/catch helper to minimize deoptimizations. Returns a completion\n // record like context.tryEntries[i].completion. This interface could\n // have been (and was previously) designed to take a closure to be\n // invoked without arguments, but in all the cases we care about we\n // already have an existing method we want to call, so there's no need\n // to create a new function object. We can even get away with assuming\n // the method takes exactly one argument, since that happens to be true\n // in every case, so we don't have to touch the arguments object. The\n // only additional allocation required is the completion record, which\n // has a stable shape and so hopefully should be cheap to allocate.\n function tryCatch(fn, obj, arg) {\n try {\n return { type: \"normal\", arg: fn.call(obj, arg) };\n } catch (err) {\n return { type: \"throw\", arg: err };\n }\n }\n\n var GenStateSuspendedStart = \"suspendedStart\";\n var GenStateSuspendedYield = \"suspendedYield\";\n var GenStateExecuting = \"executing\";\n var GenStateCompleted = \"completed\";\n\n // Returning this object from the innerFn has the same effect as\n // breaking out of the dispatch switch statement.\n var ContinueSentinel = {};\n\n // Dummy constructor functions that we use as the .constructor and\n // .constructor.prototype properties for functions that return Generator\n // objects. For full spec compliance, you may wish to configure your\n // minifier not to mangle the names of these two functions.\n function Generator() {}\n function GeneratorFunction() {}\n function GeneratorFunctionPrototype() {}\n\n // This is a polyfill for %IteratorPrototype% for environments that\n // don't natively support it.\n var IteratorPrototype = {};\n IteratorPrototype[iteratorSymbol] = function () {\n return this;\n };\n\n var getProto = Object.getPrototypeOf;\n var NativeIteratorPrototype = getProto && getProto(getProto(values([])));\n if (NativeIteratorPrototype &&\n NativeIteratorPrototype !== Op &&\n hasOwn.call(NativeIteratorPrototype, iteratorSymbol)) {\n // This environment has a native %IteratorPrototype%; use it instead\n // of the polyfill.\n IteratorPrototype = NativeIteratorPrototype;\n }\n\n var Gp = GeneratorFunctionPrototype.prototype =\n Generator.prototype = Object.create(IteratorPrototype);\n GeneratorFunction.prototype = Gp.constructor = GeneratorFunctionPrototype;\n GeneratorFunctionPrototype.constructor = GeneratorFunction;\n GeneratorFunction.displayName = define(\n GeneratorFunctionPrototype,\n toStringTagSymbol,\n \"GeneratorFunction\"\n );\n\n // Helper for defining the .next, .throw, and .return methods of the\n // Iterator interface in terms of a single ._invoke method.\n function defineIteratorMethods(prototype) {\n [\"next\", \"throw\", \"return\"].forEach(function(method) {\n define(prototype, method, function(arg) {\n return this._invoke(method, arg);\n });\n });\n }\n\n exports.isGeneratorFunction = function(genFun) {\n var ctor = typeof genFun === \"function\" && genFun.constructor;\n return ctor\n ? ctor === GeneratorFunction ||\n // For the native GeneratorFunction constructor, the best we can\n // do is to check its .name property.\n (ctor.displayName || ctor.name) === \"GeneratorFunction\"\n : false;\n };\n\n exports.mark = function(genFun) {\n if (Object.setPrototypeOf) {\n Object.setPrototypeOf(genFun, GeneratorFunctionPrototype);\n } else {\n genFun.__proto__ = GeneratorFunctionPrototype;\n define(genFun, toStringTagSymbol, \"GeneratorFunction\");\n }\n genFun.prototype = Object.create(Gp);\n return genFun;\n };\n\n // Within the body of any async function, `await x` is transformed to\n // `yield regeneratorRuntime.awrap(x)`, so that the runtime can test\n // `hasOwn.call(value, \"__await\")` to determine if the yielded value is\n // meant to be awaited.\n exports.awrap = function(arg) {\n return { __await: arg };\n };\n\n function AsyncIterator(generator, PromiseImpl) {\n function invoke(method, arg, resolve, reject) {\n var record = tryCatch(generator[method], generator, arg);\n if (record.type === \"throw\") {\n reject(record.arg);\n } else {\n var result = record.arg;\n var value = result.value;\n if (value &&\n typeof value === \"object\" &&\n hasOwn.call(value, \"__await\")) {\n return PromiseImpl.resolve(value.__await).then(function(value) {\n invoke(\"next\", value, resolve, reject);\n }, function(err) {\n invoke(\"throw\", err, resolve, reject);\n });\n }\n\n return PromiseImpl.resolve(value).then(function(unwrapped) {\n // When a yielded Promise is resolved, its final value becomes\n // the .value of the Promise<{value,done}> result for the\n // current iteration.\n result.value = unwrapped;\n resolve(result);\n }, function(error) {\n // If a rejected Promise was yielded, throw the rejection back\n // into the async generator function so it can be handled there.\n return invoke(\"throw\", error, resolve, reject);\n });\n }\n }\n\n var previousPromise;\n\n function enqueue(method, arg) {\n function callInvokeWithMethodAndArg() {\n return new PromiseImpl(function(resolve, reject) {\n invoke(method, arg, resolve, reject);\n });\n }\n\n return previousPromise =\n // If enqueue has been called before, then we want to wait until\n // all previous Promises have been resolved before calling invoke,\n // so that results are always delivered in the correct order. If\n // enqueue has not been called before, then it is important to\n // call invoke immediately, without waiting on a callback to fire,\n // so that the async generator function has the opportunity to do\n // any necessary setup in a predictable way. This predictability\n // is why the Promise constructor synchronously invokes its\n // executor callback, and why async functions synchronously\n // execute code before the first await. Since we implement simple\n // async functions in terms of async generators, it is especially\n // important to get this right, even though it requires care.\n previousPromise ? previousPromise.then(\n callInvokeWithMethodAndArg,\n // Avoid propagating failures to Promises returned by later\n // invocations of the iterator.\n callInvokeWithMethodAndArg\n ) : callInvokeWithMethodAndArg();\n }\n\n // Define the unified helper method that is used to implement .next,\n // .throw, and .return (see defineIteratorMethods).\n this._invoke = enqueue;\n }\n\n defineIteratorMethods(AsyncIterator.prototype);\n AsyncIterator.prototype[asyncIteratorSymbol] = function () {\n return this;\n };\n exports.AsyncIterator = AsyncIterator;\n\n // Note that simple async functions are implemented on top of\n // AsyncIterator objects; they just return a Promise for the value of\n // the final result produced by the iterator.\n exports.async = function(innerFn, outerFn, self, tryLocsList, PromiseImpl) {\n if (PromiseImpl === void 0) PromiseImpl = Promise;\n\n var iter = new AsyncIterator(\n wrap(innerFn, outerFn, self, tryLocsList),\n PromiseImpl\n );\n\n return exports.isGeneratorFunction(outerFn)\n ? iter // If outerFn is a generator, return the full iterator.\n : iter.next().then(function(result) {\n return result.done ? result.value : iter.next();\n });\n };\n\n function makeInvokeMethod(innerFn, self, context) {\n var state = GenStateSuspendedStart;\n\n return function invoke(method, arg) {\n if (state === GenStateExecuting) {\n throw new Error(\"Generator is already running\");\n }\n\n if (state === GenStateCompleted) {\n if (method === \"throw\") {\n throw arg;\n }\n\n // Be forgiving, per 25.3.3.3.3 of the spec:\n // https://people.mozilla.org/~jorendorff/es6-draft.html#sec-generatorresume\n return doneResult();\n }\n\n context.method = method;\n context.arg = arg;\n\n while (true) {\n var delegate = context.delegate;\n if (delegate) {\n var delegateResult = maybeInvokeDelegate(delegate, context);\n if (delegateResult) {\n if (delegateResult === ContinueSentinel) continue;\n return delegateResult;\n }\n }\n\n if (context.method === \"next\") {\n // Setting context._sent for legacy support of Babel's\n // function.sent implementation.\n context.sent = context._sent = context.arg;\n\n } else if (context.method === \"throw\") {\n if (state === GenStateSuspendedStart) {\n state = GenStateCompleted;\n throw context.arg;\n }\n\n context.dispatchException(context.arg);\n\n } else if (context.method === \"return\") {\n context.abrupt(\"return\", context.arg);\n }\n\n state = GenStateExecuting;\n\n var record = tryCatch(innerFn, self, context);\n if (record.type === \"normal\") {\n // If an exception is thrown from innerFn, we leave state ===\n // GenStateExecuting and loop back for another invocation.\n state = context.done\n ? GenStateCompleted\n : GenStateSuspendedYield;\n\n if (record.arg === ContinueSentinel) {\n continue;\n }\n\n return {\n value: record.arg,\n done: context.done\n };\n\n } else if (record.type === \"throw\") {\n state = GenStateCompleted;\n // Dispatch the exception by looping back around to the\n // context.dispatchException(context.arg) call above.\n context.method = \"throw\";\n context.arg = record.arg;\n }\n }\n };\n }\n\n // Call delegate.iterator[context.method](context.arg) and handle the\n // result, either by returning a { value, done } result from the\n // delegate iterator, or by modifying context.method and context.arg,\n // setting context.delegate to null, and returning the ContinueSentinel.\n function maybeInvokeDelegate(delegate, context) {\n var method = delegate.iterator[context.method];\n if (method === undefined) {\n // A .throw or .return when the delegate iterator has no .throw\n // method always terminates the yield* loop.\n context.delegate = null;\n\n if (context.method === \"throw\") {\n // Note: [\"return\"] must be used for ES3 parsing compatibility.\n if (delegate.iterator[\"return\"]) {\n // If the delegate iterator has a return method, give it a\n // chance to clean up.\n context.method = \"return\";\n context.arg = undefined;\n maybeInvokeDelegate(delegate, context);\n\n if (context.method === \"throw\") {\n // If maybeInvokeDelegate(context) changed context.method from\n // \"return\" to \"throw\", let that override the TypeError below.\n return ContinueSentinel;\n }\n }\n\n context.method = \"throw\";\n context.arg = new TypeError(\n \"The iterator does not provide a 'throw' method\");\n }\n\n return ContinueSentinel;\n }\n\n var record = tryCatch(method, delegate.iterator, context.arg);\n\n if (record.type === \"throw\") {\n context.method = \"throw\";\n context.arg = record.arg;\n context.delegate = null;\n return ContinueSentinel;\n }\n\n var info = record.arg;\n\n if (! info) {\n context.method = \"throw\";\n context.arg = new TypeError(\"iterator result is not an object\");\n context.delegate = null;\n return ContinueSentinel;\n }\n\n if (info.done) {\n // Assign the result of the finished delegate to the temporary\n // variable specified by delegate.resultName (see delegateYield).\n context[delegate.resultName] = info.value;\n\n // Resume execution at the desired location (see delegateYield).\n context.next = delegate.nextLoc;\n\n // If context.method was \"throw\" but the delegate handled the\n // exception, let the outer generator proceed normally. If\n // context.method was \"next\", forget context.arg since it has been\n // \"consumed\" by the delegate iterator. If context.method was\n // \"return\", allow the original .return call to continue in the\n // outer generator.\n if (context.method !== \"return\") {\n context.method = \"next\";\n context.arg = undefined;\n }\n\n } else {\n // Re-yield the result returned by the delegate method.\n return info;\n }\n\n // The delegate iterator is finished, so forget it and continue with\n // the outer generator.\n context.delegate = null;\n return ContinueSentinel;\n }\n\n // Define Generator.prototype.{next,throw,return} in terms of the\n // unified ._invoke helper method.\n defineIteratorMethods(Gp);\n\n define(Gp, toStringTagSymbol, \"Generator\");\n\n // A Generator should always return itself as the iterator object when the\n // @@iterator function is called on it. Some browsers' implementations of the\n // iterator prototype chain incorrectly implement this, causing the Generator\n // object to not be returned from this call. This ensures that doesn't happen.\n // See https://github.com/facebook/regenerator/issues/274 for more details.\n Gp[iteratorSymbol] = function() {\n return this;\n };\n\n Gp.toString = function() {\n return \"[object Generator]\";\n };\n\n function pushTryEntry(locs) {\n var entry = { tryLoc: locs[0] };\n\n if (1 in locs) {\n entry.catchLoc = locs[1];\n }\n\n if (2 in locs) {\n entry.finallyLoc = locs[2];\n entry.afterLoc = locs[3];\n }\n\n this.tryEntries.push(entry);\n }\n\n function resetTryEntry(entry) {\n var record = entry.completion || {};\n record.type = \"normal\";\n delete record.arg;\n entry.completion = record;\n }\n\n function Context(tryLocsList) {\n // The root entry object (effectively a try statement without a catch\n // or a finally block) gives us a place to store values thrown from\n // locations where there is no enclosing try statement.\n this.tryEntries = [{ tryLoc: \"root\" }];\n tryLocsList.forEach(pushTryEntry, this);\n this.reset(true);\n }\n\n exports.keys = function(object) {\n var keys = [];\n for (var key in object) {\n keys.push(key);\n }\n keys.reverse();\n\n // Rather than returning an object with a next method, we keep\n // things simple and return the next function itself.\n return function next() {\n while (keys.length) {\n var key = keys.pop();\n if (key in object) {\n next.value = key;\n next.done = false;\n return next;\n }\n }\n\n // To avoid creating an additional object, we just hang the .value\n // and .done properties off the next function object itself. This\n // also ensures that the minifier will not anonymize the function.\n next.done = true;\n return next;\n };\n };\n\n function values(iterable) {\n if (iterable) {\n var iteratorMethod = iterable[iteratorSymbol];\n if (iteratorMethod) {\n return iteratorMethod.call(iterable);\n }\n\n if (typeof iterable.next === \"function\") {\n return iterable;\n }\n\n if (!isNaN(iterable.length)) {\n var i = -1, next = function next() {\n while (++i < iterable.length) {\n if (hasOwn.call(iterable, i)) {\n next.value = iterable[i];\n next.done = false;\n return next;\n }\n }\n\n next.value = undefined;\n next.done = true;\n\n return next;\n };\n\n return next.next = next;\n }\n }\n\n // Return an iterator with no values.\n return { next: doneResult };\n }\n exports.values = values;\n\n function doneResult() {\n return { value: undefined, done: true };\n }\n\n Context.prototype = {\n constructor: Context,\n\n reset: function(skipTempReset) {\n this.prev = 0;\n this.next = 0;\n // Resetting context._sent for legacy support of Babel's\n // function.sent implementation.\n this.sent = this._sent = undefined;\n this.done = false;\n this.delegate = null;\n\n this.method = \"next\";\n this.arg = undefined;\n\n this.tryEntries.forEach(resetTryEntry);\n\n if (!skipTempReset) {\n for (var name in this) {\n // Not sure about the optimal order of these conditions:\n if (name.charAt(0) === \"t\" &&\n hasOwn.call(this, name) &&\n !isNaN(+name.slice(1))) {\n this[name] = undefined;\n }\n }\n }\n },\n\n stop: function() {\n this.done = true;\n\n var rootEntry = this.tryEntries[0];\n var rootRecord = rootEntry.completion;\n if (rootRecord.type === \"throw\") {\n throw rootRecord.arg;\n }\n\n return this.rval;\n },\n\n dispatchException: function(exception) {\n if (this.done) {\n throw exception;\n }\n\n var context = this;\n function handle(loc, caught) {\n record.type = \"throw\";\n record.arg = exception;\n context.next = loc;\n\n if (caught) {\n // If the dispatched exception was caught by a catch block,\n // then let that catch block handle the exception normally.\n context.method = \"next\";\n context.arg = undefined;\n }\n\n return !! caught;\n }\n\n for (var i = this.tryEntries.length - 1; i >= 0; --i) {\n var entry = this.tryEntries[i];\n var record = entry.completion;\n\n if (entry.tryLoc === \"root\") {\n // Exception thrown outside of any try block that could handle\n // it, so set the completion value of the entire function to\n // throw the exception.\n return handle(\"end\");\n }\n\n if (entry.tryLoc <= this.prev) {\n var hasCatch = hasOwn.call(entry, \"catchLoc\");\n var hasFinally = hasOwn.call(entry, \"finallyLoc\");\n\n if (hasCatch && hasFinally) {\n if (this.prev < entry.catchLoc) {\n return handle(entry.catchLoc, true);\n } else if (this.prev < entry.finallyLoc) {\n return handle(entry.finallyLoc);\n }\n\n } else if (hasCatch) {\n if (this.prev < entry.catchLoc) {\n return handle(entry.catchLoc, true);\n }\n\n } else if (hasFinally) {\n if (this.prev < entry.finallyLoc) {\n return handle(entry.finallyLoc);\n }\n\n } else {\n throw new Error(\"try statement without catch or finally\");\n }\n }\n }\n },\n\n abrupt: function(type, arg) {\n for (var i = this.tryEntries.length - 1; i >= 0; --i) {\n var entry = this.tryEntries[i];\n if (entry.tryLoc <= this.prev &&\n hasOwn.call(entry, \"finallyLoc\") &&\n this.prev < entry.finallyLoc) {\n var finallyEntry = entry;\n break;\n }\n }\n\n if (finallyEntry &&\n (type === \"break\" ||\n type === \"continue\") &&\n finallyEntry.tryLoc <= arg &&\n arg <= finallyEntry.finallyLoc) {\n // Ignore the finally entry if control is not jumping to a\n // location outside the try/catch block.\n finallyEntry = null;\n }\n\n var record = finallyEntry ? finallyEntry.completion : {};\n record.type = type;\n record.arg = arg;\n\n if (finallyEntry) {\n this.method = \"next\";\n this.next = finallyEntry.finallyLoc;\n return ContinueSentinel;\n }\n\n return this.complete(record);\n },\n\n complete: function(record, afterLoc) {\n if (record.type === \"throw\") {\n throw record.arg;\n }\n\n if (record.type === \"break\" ||\n record.type === \"continue\") {\n this.next = record.arg;\n } else if (record.type === \"return\") {\n this.rval = this.arg = record.arg;\n this.method = \"return\";\n this.next = \"end\";\n } else if (record.type === \"normal\" && afterLoc) {\n this.next = afterLoc;\n }\n\n return ContinueSentinel;\n },\n\n finish: function(finallyLoc) {\n for (var i = this.tryEntries.length - 1; i >= 0; --i) {\n var entry = this.tryEntries[i];\n if (entry.finallyLoc === finallyLoc) {\n this.complete(entry.completion, entry.afterLoc);\n resetTryEntry(entry);\n return ContinueSentinel;\n }\n }\n },\n\n \"catch\": function(tryLoc) {\n for (var i = this.tryEntries.length - 1; i >= 0; --i) {\n var entry = this.tryEntries[i];\n if (entry.tryLoc === tryLoc) {\n var record = entry.completion;\n if (record.type === \"throw\") {\n var thrown = record.arg;\n resetTryEntry(entry);\n }\n return thrown;\n }\n }\n\n // The context.catch method must only be called with a location\n // argument that corresponds to a known catch block.\n throw new Error(\"illegal catch attempt\");\n },\n\n delegateYield: function(iterable, resultName, nextLoc) {\n this.delegate = {\n iterator: values(iterable),\n resultName: resultName,\n nextLoc: nextLoc\n };\n\n if (this.method === \"next\") {\n // Deliberately forget the last sent value so that we don't\n // accidentally pass it on to the delegate.\n this.arg = undefined;\n }\n\n return ContinueSentinel;\n }\n };\n\n // Regardless of whether this script is executing as a CommonJS module\n // or not, return the runtime object so that we can declare the variable\n // regeneratorRuntime in the outer scope, which allows this module to be\n // injected easily by `bin/regenerator --include-runtime script.js`.\n return exports;\n\n}(\n // If this script is executing as a CommonJS module, use module.exports\n // as the regeneratorRuntime namespace. Otherwise create a new empty\n // object. Either way, the resulting object will be used to initialize\n // the regeneratorRuntime variable at the top of this file.\n typeof module === \"object\" ? module.exports : {}\n));\n\ntry {\n regeneratorRuntime = runtime;\n} catch (accidentalStrictMode) {\n // This module should not be running in strict mode, so the above\n // assignment should always work unless something is misconfigured. Just\n // in case runtime.js accidentally runs in strict mode, we can escape\n // strict mode using a global Function call. This could conceivably fail\n // if a Content Security Policy forbids using Function, but in that case\n // the proper solution is to fix the accidental strict mode problem. If\n // you've misconfigured your bundler to force strict mode and applied a\n // CSP to forbid Function, and you're not willing to fix either of those\n // problems, please detail your unique predicament in a GitHub issue.\n Function(\"r\", \"regeneratorRuntime = r\")(runtime);\n}\n"],"sourceRoot":""} \ No newline at end of file diff --git a/views/js/dist/vendors~banks.min.js b/views/js/dist/vendors~banks.min.js deleted file mode 100644 index c1f8737e0..000000000 --- a/views/js/dist/vendors~banks.min.js +++ /dev/null @@ -1,967 +0,0 @@ -/*! - * - * Mollie https://www.mollie.nl - * @author Mollie B.V. - * @copyright Mollie B.V. - * @link https://github.com/mollie/PrestaShop - * @license https://github.com/mollie/PrestaShop/blob/master/LICENSE.md - * - */ -(window["webpackJsonP_mollie"] = window["webpackJsonP_mollie"] || []).push([["vendors~banks"],{ - -/***/ "./node_modules/core-js/modules/_is-regexp.js": -/*!****************************************************!*\ - !*** ./node_modules/core-js/modules/_is-regexp.js ***! - \****************************************************/ -/*! no static exports found */ -/***/ (function(module, exports, __webpack_require__) { - -// 7.2.8 IsRegExp(argument) -var isObject = __webpack_require__(/*! ./_is-object */ "./node_modules/core-js/modules/_is-object.js"); -var cof = __webpack_require__(/*! ./_cof */ "./node_modules/core-js/modules/_cof.js"); -var MATCH = __webpack_require__(/*! ./_wks */ "./node_modules/core-js/modules/_wks.js")('match'); -module.exports = function (it) { - var isRegExp; - return isObject(it) && ((isRegExp = it[MATCH]) !== undefined ? !!isRegExp : cof(it) == 'RegExp'); -}; - - -/***/ }), - -/***/ "./node_modules/core-js/modules/_object-to-array.js": -/*!**********************************************************!*\ - !*** ./node_modules/core-js/modules/_object-to-array.js ***! - \**********************************************************/ -/*! no static exports found */ -/***/ (function(module, exports, __webpack_require__) { - -var DESCRIPTORS = __webpack_require__(/*! ./_descriptors */ "./node_modules/core-js/modules/_descriptors.js"); -var getKeys = __webpack_require__(/*! ./_object-keys */ "./node_modules/core-js/modules/_object-keys.js"); -var toIObject = __webpack_require__(/*! ./_to-iobject */ "./node_modules/core-js/modules/_to-iobject.js"); -var isEnum = __webpack_require__(/*! ./_object-pie */ "./node_modules/core-js/modules/_object-pie.js").f; -module.exports = function (isEntries) { - return function (it) { - var O = toIObject(it); - var keys = getKeys(O); - var length = keys.length; - var i = 0; - var result = []; - var key; - while (length > i) { - key = keys[i++]; - if (!DESCRIPTORS || isEnum.call(O, key)) { - result.push(isEntries ? [key, O[key]] : O[key]); - } - } - return result; - }; -}; - - -/***/ }), - -/***/ "./node_modules/core-js/modules/es6.regexp.split.js": -/*!**********************************************************!*\ - !*** ./node_modules/core-js/modules/es6.regexp.split.js ***! - \**********************************************************/ -/*! no static exports found */ -/***/ (function(module, exports, __webpack_require__) { - -"use strict"; - - -var isRegExp = __webpack_require__(/*! ./_is-regexp */ "./node_modules/core-js/modules/_is-regexp.js"); -var anObject = __webpack_require__(/*! ./_an-object */ "./node_modules/core-js/modules/_an-object.js"); -var speciesConstructor = __webpack_require__(/*! ./_species-constructor */ "./node_modules/core-js/modules/_species-constructor.js"); -var advanceStringIndex = __webpack_require__(/*! ./_advance-string-index */ "./node_modules/core-js/modules/_advance-string-index.js"); -var toLength = __webpack_require__(/*! ./_to-length */ "./node_modules/core-js/modules/_to-length.js"); -var callRegExpExec = __webpack_require__(/*! ./_regexp-exec-abstract */ "./node_modules/core-js/modules/_regexp-exec-abstract.js"); -var regexpExec = __webpack_require__(/*! ./_regexp-exec */ "./node_modules/core-js/modules/_regexp-exec.js"); -var fails = __webpack_require__(/*! ./_fails */ "./node_modules/core-js/modules/_fails.js"); -var $min = Math.min; -var $push = [].push; -var $SPLIT = 'split'; -var LENGTH = 'length'; -var LAST_INDEX = 'lastIndex'; -var MAX_UINT32 = 0xffffffff; - -// babel-minify transpiles RegExp('x', 'y') -> /x/y and it causes SyntaxError -var SUPPORTS_Y = !fails(function () { RegExp(MAX_UINT32, 'y'); }); - -// @@split logic -__webpack_require__(/*! ./_fix-re-wks */ "./node_modules/core-js/modules/_fix-re-wks.js")('split', 2, function (defined, SPLIT, $split, maybeCallNative) { - var internalSplit; - if ( - 'abbc'[$SPLIT](/(b)*/)[1] == 'c' || - 'test'[$SPLIT](/(?:)/, -1)[LENGTH] != 4 || - 'ab'[$SPLIT](/(?:ab)*/)[LENGTH] != 2 || - '.'[$SPLIT](/(.?)(.?)/)[LENGTH] != 4 || - '.'[$SPLIT](/()()/)[LENGTH] > 1 || - ''[$SPLIT](/.?/)[LENGTH] - ) { - // based on es5-shim implementation, need to rework it - internalSplit = function (separator, limit) { - var string = String(this); - if (separator === undefined && limit === 0) return []; - // If `separator` is not a regex, use native split - if (!isRegExp(separator)) return $split.call(string, separator, limit); - var output = []; - var flags = (separator.ignoreCase ? 'i' : '') + - (separator.multiline ? 'm' : '') + - (separator.unicode ? 'u' : '') + - (separator.sticky ? 'y' : ''); - var lastLastIndex = 0; - var splitLimit = limit === undefined ? MAX_UINT32 : limit >>> 0; - // Make `global` and avoid `lastIndex` issues by working with a copy - var separatorCopy = new RegExp(separator.source, flags + 'g'); - var match, lastIndex, lastLength; - while (match = regexpExec.call(separatorCopy, string)) { - lastIndex = separatorCopy[LAST_INDEX]; - if (lastIndex > lastLastIndex) { - output.push(string.slice(lastLastIndex, match.index)); - if (match[LENGTH] > 1 && match.index < string[LENGTH]) $push.apply(output, match.slice(1)); - lastLength = match[0][LENGTH]; - lastLastIndex = lastIndex; - if (output[LENGTH] >= splitLimit) break; - } - if (separatorCopy[LAST_INDEX] === match.index) separatorCopy[LAST_INDEX]++; // Avoid an infinite loop - } - if (lastLastIndex === string[LENGTH]) { - if (lastLength || !separatorCopy.test('')) output.push(''); - } else output.push(string.slice(lastLastIndex)); - return output[LENGTH] > splitLimit ? output.slice(0, splitLimit) : output; - }; - // Chakra, V8 - } else if ('0'[$SPLIT](undefined, 0)[LENGTH]) { - internalSplit = function (separator, limit) { - return separator === undefined && limit === 0 ? [] : $split.call(this, separator, limit); - }; - } else { - internalSplit = $split; - } - - return [ - // `String.prototype.split` method - // https://tc39.github.io/ecma262/#sec-string.prototype.split - function split(separator, limit) { - var O = defined(this); - var splitter = separator == undefined ? undefined : separator[SPLIT]; - return splitter !== undefined - ? splitter.call(separator, O, limit) - : internalSplit.call(String(O), separator, limit); - }, - // `RegExp.prototype[@@split]` method - // https://tc39.github.io/ecma262/#sec-regexp.prototype-@@split - // - // NOTE: This cannot be properly polyfilled in engines that don't support - // the 'y' flag. - function (regexp, limit) { - var res = maybeCallNative(internalSplit, regexp, this, limit, internalSplit !== $split); - if (res.done) return res.value; - - var rx = anObject(regexp); - var S = String(this); - var C = speciesConstructor(rx, RegExp); - - var unicodeMatching = rx.unicode; - var flags = (rx.ignoreCase ? 'i' : '') + - (rx.multiline ? 'm' : '') + - (rx.unicode ? 'u' : '') + - (SUPPORTS_Y ? 'y' : 'g'); - - // ^(? + rx + ) is needed, in combination with some S slicing, to - // simulate the 'y' flag. - var splitter = new C(SUPPORTS_Y ? rx : '^(?:' + rx.source + ')', flags); - var lim = limit === undefined ? MAX_UINT32 : limit >>> 0; - if (lim === 0) return []; - if (S.length === 0) return callRegExpExec(splitter, S) === null ? [S] : []; - var p = 0; - var q = 0; - var A = []; - while (q < S.length) { - splitter.lastIndex = SUPPORTS_Y ? q : 0; - var z = callRegExpExec(splitter, SUPPORTS_Y ? S : S.slice(q)); - var e; - if ( - z === null || - (e = $min(toLength(splitter.lastIndex + (SUPPORTS_Y ? 0 : q)), S.length)) === p - ) { - q = advanceStringIndex(S, q, unicodeMatching); - } else { - A.push(S.slice(p, q)); - if (A.length === lim) return A; - for (var i = 1; i <= z.length - 1; i++) { - A.push(z[i]); - if (A.length === lim) return A; - } - q = p = e; - } - } - A.push(S.slice(p)); - return A; - } - ]; -}); - - -/***/ }), - -/***/ "./node_modules/core-js/modules/es7.object.values.js": -/*!***********************************************************!*\ - !*** ./node_modules/core-js/modules/es7.object.values.js ***! - \***********************************************************/ -/*! no static exports found */ -/***/ (function(module, exports, __webpack_require__) { - -// https://github.com/tc39/proposal-object-values-entries -var $export = __webpack_require__(/*! ./_export */ "./node_modules/core-js/modules/_export.js"); -var $values = __webpack_require__(/*! ./_object-to-array */ "./node_modules/core-js/modules/_object-to-array.js")(false); - -$export($export.S, 'Object', { - values: function values(it) { - return $values(it); - } -}); - - -/***/ }), - -/***/ "./node_modules/intersection-observer/intersection-observer.js": -/*!*********************************************************************!*\ - !*** ./node_modules/intersection-observer/intersection-observer.js ***! - \*********************************************************************/ -/*! no static exports found */ -/***/ (function(module, exports) { - -/** - * Copyright 2016 Google Inc. All Rights Reserved. - * - * Licensed under the W3C SOFTWARE AND DOCUMENT NOTICE AND LICENSE. - * - * https://www.w3.org/Consortium/Legal/2015/copyright-software-and-document - * - */ - -(function(window, document) { -'use strict'; - - -// Exits early if all IntersectionObserver and IntersectionObserverEntry -// features are natively supported. -if ('IntersectionObserver' in window && - 'IntersectionObserverEntry' in window && - 'intersectionRatio' in window.IntersectionObserverEntry.prototype) { - - // Minimal polyfill for Edge 15's lack of `isIntersecting` - // See: https://github.com/w3c/IntersectionObserver/issues/211 - if (!('isIntersecting' in window.IntersectionObserverEntry.prototype)) { - Object.defineProperty(window.IntersectionObserverEntry.prototype, - 'isIntersecting', { - get: function () { - return this.intersectionRatio > 0; - } - }); - } - return; -} - - -/** - * An IntersectionObserver registry. This registry exists to hold a strong - * reference to IntersectionObserver instances currently observing a target - * element. Without this registry, instances without another reference may be - * garbage collected. - */ -var registry = []; - - -/** - * Creates the global IntersectionObserverEntry constructor. - * https://w3c.github.io/IntersectionObserver/#intersection-observer-entry - * @param {Object} entry A dictionary of instance properties. - * @constructor - */ -function IntersectionObserverEntry(entry) { - this.time = entry.time; - this.target = entry.target; - this.rootBounds = entry.rootBounds; - this.boundingClientRect = entry.boundingClientRect; - this.intersectionRect = entry.intersectionRect || getEmptyRect(); - this.isIntersecting = !!entry.intersectionRect; - - // Calculates the intersection ratio. - var targetRect = this.boundingClientRect; - var targetArea = targetRect.width * targetRect.height; - var intersectionRect = this.intersectionRect; - var intersectionArea = intersectionRect.width * intersectionRect.height; - - // Sets intersection ratio. - if (targetArea) { - // Round the intersection ratio to avoid floating point math issues: - // https://github.com/w3c/IntersectionObserver/issues/324 - this.intersectionRatio = Number((intersectionArea / targetArea).toFixed(4)); - } else { - // If area is zero and is intersecting, sets to 1, otherwise to 0 - this.intersectionRatio = this.isIntersecting ? 1 : 0; - } -} - - -/** - * Creates the global IntersectionObserver constructor. - * https://w3c.github.io/IntersectionObserver/#intersection-observer-interface - * @param {Function} callback The function to be invoked after intersection - * changes have queued. The function is not invoked if the queue has - * been emptied by calling the `takeRecords` method. - * @param {Object=} opt_options Optional configuration options. - * @constructor - */ -function IntersectionObserver(callback, opt_options) { - - var options = opt_options || {}; - - if (typeof callback != 'function') { - throw new Error('callback must be a function'); - } - - if (options.root && options.root.nodeType != 1) { - throw new Error('root must be an Element'); - } - - // Binds and throttles `this._checkForIntersections`. - this._checkForIntersections = throttle( - this._checkForIntersections.bind(this), this.THROTTLE_TIMEOUT); - - // Private properties. - this._callback = callback; - this._observationTargets = []; - this._queuedEntries = []; - this._rootMarginValues = this._parseRootMargin(options.rootMargin); - - // Public properties. - this.thresholds = this._initThresholds(options.threshold); - this.root = options.root || null; - this.rootMargin = this._rootMarginValues.map(function(margin) { - return margin.value + margin.unit; - }).join(' '); -} - - -/** - * The minimum interval within which the document will be checked for - * intersection changes. - */ -IntersectionObserver.prototype.THROTTLE_TIMEOUT = 100; - - -/** - * The frequency in which the polyfill polls for intersection changes. - * this can be updated on a per instance basis and must be set prior to - * calling `observe` on the first target. - */ -IntersectionObserver.prototype.POLL_INTERVAL = null; - -/** - * Use a mutation observer on the root element - * to detect intersection changes. - */ -IntersectionObserver.prototype.USE_MUTATION_OBSERVER = true; - - -/** - * Starts observing a target element for intersection changes based on - * the thresholds values. - * @param {Element} target The DOM element to observe. - */ -IntersectionObserver.prototype.observe = function(target) { - var isTargetAlreadyObserved = this._observationTargets.some(function(item) { - return item.element == target; - }); - - if (isTargetAlreadyObserved) { - return; - } - - if (!(target && target.nodeType == 1)) { - throw new Error('target must be an Element'); - } - - this._registerInstance(); - this._observationTargets.push({element: target, entry: null}); - this._monitorIntersections(); - this._checkForIntersections(); -}; - - -/** - * Stops observing a target element for intersection changes. - * @param {Element} target The DOM element to observe. - */ -IntersectionObserver.prototype.unobserve = function(target) { - this._observationTargets = - this._observationTargets.filter(function(item) { - - return item.element != target; - }); - if (!this._observationTargets.length) { - this._unmonitorIntersections(); - this._unregisterInstance(); - } -}; - - -/** - * Stops observing all target elements for intersection changes. - */ -IntersectionObserver.prototype.disconnect = function() { - this._observationTargets = []; - this._unmonitorIntersections(); - this._unregisterInstance(); -}; - - -/** - * Returns any queue entries that have not yet been reported to the - * callback and clears the queue. This can be used in conjunction with the - * callback to obtain the absolute most up-to-date intersection information. - * @return {Array} The currently queued entries. - */ -IntersectionObserver.prototype.takeRecords = function() { - var records = this._queuedEntries.slice(); - this._queuedEntries = []; - return records; -}; - - -/** - * Accepts the threshold value from the user configuration object and - * returns a sorted array of unique threshold values. If a value is not - * between 0 and 1 and error is thrown. - * @private - * @param {Array|number=} opt_threshold An optional threshold value or - * a list of threshold values, defaulting to [0]. - * @return {Array} A sorted list of unique and valid threshold values. - */ -IntersectionObserver.prototype._initThresholds = function(opt_threshold) { - var threshold = opt_threshold || [0]; - if (!Array.isArray(threshold)) threshold = [threshold]; - - return threshold.sort().filter(function(t, i, a) { - if (typeof t != 'number' || isNaN(t) || t < 0 || t > 1) { - throw new Error('threshold must be a number between 0 and 1 inclusively'); - } - return t !== a[i - 1]; - }); -}; - - -/** - * Accepts the rootMargin value from the user configuration object - * and returns an array of the four margin values as an object containing - * the value and unit properties. If any of the values are not properly - * formatted or use a unit other than px or %, and error is thrown. - * @private - * @param {string=} opt_rootMargin An optional rootMargin value, - * defaulting to '0px'. - * @return {Array} An array of margin objects with the keys - * value and unit. - */ -IntersectionObserver.prototype._parseRootMargin = function(opt_rootMargin) { - var marginString = opt_rootMargin || '0px'; - var margins = marginString.split(/\s+/).map(function(margin) { - var parts = /^(-?\d*\.?\d+)(px|%)$/.exec(margin); - if (!parts) { - throw new Error('rootMargin must be specified in pixels or percent'); - } - return {value: parseFloat(parts[1]), unit: parts[2]}; - }); - - // Handles shorthand. - margins[1] = margins[1] || margins[0]; - margins[2] = margins[2] || margins[0]; - margins[3] = margins[3] || margins[1]; - - return margins; -}; - - -/** - * Starts polling for intersection changes if the polling is not already - * happening, and if the page's visibility state is visible. - * @private - */ -IntersectionObserver.prototype._monitorIntersections = function() { - if (!this._monitoringIntersections) { - this._monitoringIntersections = true; - - // If a poll interval is set, use polling instead of listening to - // resize and scroll events or DOM mutations. - if (this.POLL_INTERVAL) { - this._monitoringInterval = setInterval( - this._checkForIntersections, this.POLL_INTERVAL); - } - else { - addEvent(window, 'resize', this._checkForIntersections, true); - addEvent(document, 'scroll', this._checkForIntersections, true); - - if (this.USE_MUTATION_OBSERVER && 'MutationObserver' in window) { - this._domObserver = new MutationObserver(this._checkForIntersections); - this._domObserver.observe(document, { - attributes: true, - childList: true, - characterData: true, - subtree: true - }); - } - } - } -}; - - -/** - * Stops polling for intersection changes. - * @private - */ -IntersectionObserver.prototype._unmonitorIntersections = function() { - if (this._monitoringIntersections) { - this._monitoringIntersections = false; - - clearInterval(this._monitoringInterval); - this._monitoringInterval = null; - - removeEvent(window, 'resize', this._checkForIntersections, true); - removeEvent(document, 'scroll', this._checkForIntersections, true); - - if (this._domObserver) { - this._domObserver.disconnect(); - this._domObserver = null; - } - } -}; - - -/** - * Scans each observation target for intersection changes and adds them - * to the internal entries queue. If new entries are found, it - * schedules the callback to be invoked. - * @private - */ -IntersectionObserver.prototype._checkForIntersections = function() { - var rootIsInDom = this._rootIsInDom(); - var rootRect = rootIsInDom ? this._getRootRect() : getEmptyRect(); - - this._observationTargets.forEach(function(item) { - var target = item.element; - var targetRect = getBoundingClientRect(target); - var rootContainsTarget = this._rootContainsTarget(target); - var oldEntry = item.entry; - var intersectionRect = rootIsInDom && rootContainsTarget && - this._computeTargetAndRootIntersection(target, rootRect); - - var newEntry = item.entry = new IntersectionObserverEntry({ - time: now(), - target: target, - boundingClientRect: targetRect, - rootBounds: rootRect, - intersectionRect: intersectionRect - }); - - if (!oldEntry) { - this._queuedEntries.push(newEntry); - } else if (rootIsInDom && rootContainsTarget) { - // If the new entry intersection ratio has crossed any of the - // thresholds, add a new entry. - if (this._hasCrossedThreshold(oldEntry, newEntry)) { - this._queuedEntries.push(newEntry); - } - } else { - // If the root is not in the DOM or target is not contained within - // root but the previous entry for this target had an intersection, - // add a new record indicating removal. - if (oldEntry && oldEntry.isIntersecting) { - this._queuedEntries.push(newEntry); - } - } - }, this); - - if (this._queuedEntries.length) { - this._callback(this.takeRecords(), this); - } -}; - - -/** - * Accepts a target and root rect computes the intersection between then - * following the algorithm in the spec. - * TODO(philipwalton): at this time clip-path is not considered. - * https://w3c.github.io/IntersectionObserver/#calculate-intersection-rect-algo - * @param {Element} target The target DOM element - * @param {Object} rootRect The bounding rect of the root after being - * expanded by the rootMargin value. - * @return {?Object} The final intersection rect object or undefined if no - * intersection is found. - * @private - */ -IntersectionObserver.prototype._computeTargetAndRootIntersection = - function(target, rootRect) { - - // If the element isn't displayed, an intersection can't happen. - if (window.getComputedStyle(target).display == 'none') return; - - var targetRect = getBoundingClientRect(target); - var intersectionRect = targetRect; - var parent = getParentNode(target); - var atRoot = false; - - while (!atRoot) { - var parentRect = null; - var parentComputedStyle = parent.nodeType == 1 ? - window.getComputedStyle(parent) : {}; - - // If the parent isn't displayed, an intersection can't happen. - if (parentComputedStyle.display == 'none') return; - - if (parent == this.root || parent == document) { - atRoot = true; - parentRect = rootRect; - } else { - // If the element has a non-visible overflow, and it's not the - // or element, update the intersection rect. - // Note: and cannot be clipped to a rect that's not also - // the document rect, so no need to compute a new intersection. - if (parent != document.body && - parent != document.documentElement && - parentComputedStyle.overflow != 'visible') { - parentRect = getBoundingClientRect(parent); - } - } - - // If either of the above conditionals set a new parentRect, - // calculate new intersection data. - if (parentRect) { - intersectionRect = computeRectIntersection(parentRect, intersectionRect); - - if (!intersectionRect) break; - } - parent = getParentNode(parent); - } - return intersectionRect; -}; - - -/** - * Returns the root rect after being expanded by the rootMargin value. - * @return {Object} The expanded root rect. - * @private - */ -IntersectionObserver.prototype._getRootRect = function() { - var rootRect; - if (this.root) { - rootRect = getBoundingClientRect(this.root); - } else { - // Use / instead of window since scroll bars affect size. - var html = document.documentElement; - var body = document.body; - rootRect = { - top: 0, - left: 0, - right: html.clientWidth || body.clientWidth, - width: html.clientWidth || body.clientWidth, - bottom: html.clientHeight || body.clientHeight, - height: html.clientHeight || body.clientHeight - }; - } - return this._expandRectByRootMargin(rootRect); -}; - - -/** - * Accepts a rect and expands it by the rootMargin value. - * @param {Object} rect The rect object to expand. - * @return {Object} The expanded rect. - * @private - */ -IntersectionObserver.prototype._expandRectByRootMargin = function(rect) { - var margins = this._rootMarginValues.map(function(margin, i) { - return margin.unit == 'px' ? margin.value : - margin.value * (i % 2 ? rect.width : rect.height) / 100; - }); - var newRect = { - top: rect.top - margins[0], - right: rect.right + margins[1], - bottom: rect.bottom + margins[2], - left: rect.left - margins[3] - }; - newRect.width = newRect.right - newRect.left; - newRect.height = newRect.bottom - newRect.top; - - return newRect; -}; - - -/** - * Accepts an old and new entry and returns true if at least one of the - * threshold values has been crossed. - * @param {?IntersectionObserverEntry} oldEntry The previous entry for a - * particular target element or null if no previous entry exists. - * @param {IntersectionObserverEntry} newEntry The current entry for a - * particular target element. - * @return {boolean} Returns true if a any threshold has been crossed. - * @private - */ -IntersectionObserver.prototype._hasCrossedThreshold = - function(oldEntry, newEntry) { - - // To make comparing easier, an entry that has a ratio of 0 - // but does not actually intersect is given a value of -1 - var oldRatio = oldEntry && oldEntry.isIntersecting ? - oldEntry.intersectionRatio || 0 : -1; - var newRatio = newEntry.isIntersecting ? - newEntry.intersectionRatio || 0 : -1; - - // Ignore unchanged ratios - if (oldRatio === newRatio) return; - - for (var i = 0; i < this.thresholds.length; i++) { - var threshold = this.thresholds[i]; - - // Return true if an entry matches a threshold or if the new ratio - // and the old ratio are on the opposite sides of a threshold. - if (threshold == oldRatio || threshold == newRatio || - threshold < oldRatio !== threshold < newRatio) { - return true; - } - } -}; - - -/** - * Returns whether or not the root element is an element and is in the DOM. - * @return {boolean} True if the root element is an element and is in the DOM. - * @private - */ -IntersectionObserver.prototype._rootIsInDom = function() { - return !this.root || containsDeep(document, this.root); -}; - - -/** - * Returns whether or not the target element is a child of root. - * @param {Element} target The target element to check. - * @return {boolean} True if the target element is a child of root. - * @private - */ -IntersectionObserver.prototype._rootContainsTarget = function(target) { - return containsDeep(this.root || document, target); -}; - - -/** - * Adds the instance to the global IntersectionObserver registry if it isn't - * already present. - * @private - */ -IntersectionObserver.prototype._registerInstance = function() { - if (registry.indexOf(this) < 0) { - registry.push(this); - } -}; - - -/** - * Removes the instance from the global IntersectionObserver registry. - * @private - */ -IntersectionObserver.prototype._unregisterInstance = function() { - var index = registry.indexOf(this); - if (index != -1) registry.splice(index, 1); -}; - - -/** - * Returns the result of the performance.now() method or null in browsers - * that don't support the API. - * @return {number} The elapsed time since the page was requested. - */ -function now() { - return window.performance && performance.now && performance.now(); -} - - -/** - * Throttles a function and delays its execution, so it's only called at most - * once within a given time period. - * @param {Function} fn The function to throttle. - * @param {number} timeout The amount of time that must pass before the - * function can be called again. - * @return {Function} The throttled function. - */ -function throttle(fn, timeout) { - var timer = null; - return function () { - if (!timer) { - timer = setTimeout(function() { - fn(); - timer = null; - }, timeout); - } - }; -} - - -/** - * Adds an event handler to a DOM node ensuring cross-browser compatibility. - * @param {Node} node The DOM node to add the event handler to. - * @param {string} event The event name. - * @param {Function} fn The event handler to add. - * @param {boolean} opt_useCapture Optionally adds the even to the capture - * phase. Note: this only works in modern browsers. - */ -function addEvent(node, event, fn, opt_useCapture) { - if (typeof node.addEventListener == 'function') { - node.addEventListener(event, fn, opt_useCapture || false); - } - else if (typeof node.attachEvent == 'function') { - node.attachEvent('on' + event, fn); - } -} - - -/** - * Removes a previously added event handler from a DOM node. - * @param {Node} node The DOM node to remove the event handler from. - * @param {string} event The event name. - * @param {Function} fn The event handler to remove. - * @param {boolean} opt_useCapture If the event handler was added with this - * flag set to true, it should be set to true here in order to remove it. - */ -function removeEvent(node, event, fn, opt_useCapture) { - if (typeof node.removeEventListener == 'function') { - node.removeEventListener(event, fn, opt_useCapture || false); - } - else if (typeof node.detatchEvent == 'function') { - node.detatchEvent('on' + event, fn); - } -} - - -/** - * Returns the intersection between two rect objects. - * @param {Object} rect1 The first rect. - * @param {Object} rect2 The second rect. - * @return {?Object} The intersection rect or undefined if no intersection - * is found. - */ -function computeRectIntersection(rect1, rect2) { - var top = Math.max(rect1.top, rect2.top); - var bottom = Math.min(rect1.bottom, rect2.bottom); - var left = Math.max(rect1.left, rect2.left); - var right = Math.min(rect1.right, rect2.right); - var width = right - left; - var height = bottom - top; - - return (width >= 0 && height >= 0) && { - top: top, - bottom: bottom, - left: left, - right: right, - width: width, - height: height - }; -} - - -/** - * Shims the native getBoundingClientRect for compatibility with older IE. - * @param {Element} el The element whose bounding rect to get. - * @return {Object} The (possibly shimmed) rect of the element. - */ -function getBoundingClientRect(el) { - var rect; - - try { - rect = el.getBoundingClientRect(); - } catch (err) { - // Ignore Windows 7 IE11 "Unspecified error" - // https://github.com/w3c/IntersectionObserver/pull/205 - } - - if (!rect) return getEmptyRect(); - - // Older IE - if (!(rect.width && rect.height)) { - rect = { - top: rect.top, - right: rect.right, - bottom: rect.bottom, - left: rect.left, - width: rect.right - rect.left, - height: rect.bottom - rect.top - }; - } - return rect; -} - - -/** - * Returns an empty rect object. An empty rect is returned when an element - * is not in the DOM. - * @return {Object} The empty rect. - */ -function getEmptyRect() { - return { - top: 0, - bottom: 0, - left: 0, - right: 0, - width: 0, - height: 0 - }; -} - -/** - * Checks to see if a parent element contains a child element (including inside - * shadow DOM). - * @param {Node} parent The parent element. - * @param {Node} child The child element. - * @return {boolean} True if the parent node contains the child node. - */ -function containsDeep(parent, child) { - var node = child; - while (node) { - if (node == parent) return true; - - node = getParentNode(node); - } - return false; -} - - -/** - * Gets the parent node of an element or its host element if the parent node - * is a shadow root. - * @param {Node} node The node whose parent to get. - * @return {Node|null} The parent node or null if no parent exists. - */ -function getParentNode(node) { - var parent = node.parentNode; - - if (parent && parent.nodeType == 11 && parent.host) { - // If the parent is a shadow root, return the host element. - return parent.host; - } - return parent; -} - - -// Exposes the constructors globally. -window.IntersectionObserver = IntersectionObserver; -window.IntersectionObserverEntry = IntersectionObserverEntry; - -}(window, document)); - - -/***/ }) - -}]); -//# sourceMappingURL=vendors~banks.min.js.map \ No newline at end of file diff --git a/views/js/dist/vendors~banks.min.js.map b/views/js/dist/vendors~banks.min.js.map deleted file mode 100644 index 3078171e5..000000000 --- a/views/js/dist/vendors~banks.min.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"sources":["webpack://MollieModule.[name]/./node_modules/core-js/modules/_is-regexp.js","webpack://MollieModule.[name]/./node_modules/core-js/modules/_object-to-array.js","webpack://MollieModule.[name]/./node_modules/core-js/modules/es6.regexp.split.js","webpack://MollieModule.[name]/./node_modules/core-js/modules/es7.object.values.js","webpack://MollieModule.[name]/./node_modules/intersection-observer/intersection-observer.js"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;AAAA;AACA,eAAe,mBAAO,CAAC,kEAAc;AACrC,UAAU,mBAAO,CAAC,sDAAQ;AAC1B,YAAY,mBAAO,CAAC,sDAAQ;AAC5B;AACA;AACA;AACA;;;;;;;;;;;;ACPA,kBAAkB,mBAAO,CAAC,sEAAgB;AAC1C,cAAc,mBAAO,CAAC,sEAAgB;AACtC,gBAAgB,mBAAO,CAAC,oEAAe;AACvC,aAAa,mBAAO,CAAC,oEAAe;AACpC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;;;;;;;ACpBa;;AAEb,eAAe,mBAAO,CAAC,kEAAc;AACrC,eAAe,mBAAO,CAAC,kEAAc;AACrC,yBAAyB,mBAAO,CAAC,sFAAwB;AACzD,yBAAyB,mBAAO,CAAC,wFAAyB;AAC1D,eAAe,mBAAO,CAAC,kEAAc;AACrC,qBAAqB,mBAAO,CAAC,wFAAyB;AACtD,iBAAiB,mBAAO,CAAC,sEAAgB;AACzC,YAAY,mBAAO,CAAC,0DAAU;AAC9B;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA,qCAAqC,yBAAyB,EAAE;;AAEhE;AACA,mBAAO,CAAC,oEAAe;AACvB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,mFAAmF;AACnF;AACA;AACA;AACA,OAAO;AACP;AACA;AACA;AACA,GAAG;AACH;AACA;AACA;AACA,GAAG;AACH;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,SAAS;AACT;AACA;AACA,yBAAyB,mBAAmB;AAC5C;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,CAAC;;;;;;;;;;;;ACrID;AACA,cAAc,mBAAO,CAAC,4DAAW;AACjC,cAAc,mBAAO,CAAC,8EAAoB;;AAE1C;AACA;AACA;AACA;AACA,CAAC;;;;;;;;;;;;ACRD;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;;AAGA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;;;AAGA;AACA;AACA;AACA;AACA;AACA;AACA;;;AAGA;AACA;AACA;AACA,WAAW,OAAO;AAClB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,GAAG;AACH;AACA;AACA;AACA;;;AAGA;AACA;AACA;AACA,WAAW,SAAS;AACpB;AACA;AACA,WAAW,QAAQ;AACnB;AACA;AACA;;AAEA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,GAAG;AACH;;;AAGA;AACA;AACA;AACA;AACA;;;AAGA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;;AAGA;AACA;AACA;AACA,WAAW,QAAQ;AACnB;AACA;AACA;AACA;AACA,GAAG;;AAEH;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA,iCAAiC,6BAA6B;AAC9D;AACA;AACA;;;AAGA;AACA;AACA,WAAW,QAAQ;AACnB;AACA;AACA;AACA;;AAEA;AACA,GAAG;AACH;AACA;AACA;AACA;AACA;;;AAGA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;AAGA;AACA;AACA;AACA;AACA,YAAY,MAAM;AAClB;AACA;AACA;AACA;AACA;AACA;;;AAGA;AACA;AACA;AACA;AACA;AACA,WAAW,cAAc;AACzB;AACA,YAAY,MAAM;AAClB;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,GAAG;AACH;;;AAGA;AACA;AACA;AACA;AACA;AACA;AACA,WAAW,QAAQ;AACnB;AACA,YAAY,cAAc;AAC1B;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,YAAY;AACZ,GAAG;;AAEH;AACA;AACA;AACA;;AAEA;AACA;;;AAGA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,SAAS;AACT;AACA;AACA;AACA;;;AAGA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;;AAGA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;;AAEL;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA;AACA;AACA;AACA,GAAG;;AAEH;AACA;AACA;AACA;;;AAGA;AACA;AACA;AACA;AACA;AACA,WAAW,QAAQ;AACnB,WAAW,OAAO;AAClB;AACA,YAAY,QAAQ;AACpB;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;;AAGA;AACA;AACA,YAAY,OAAO;AACnB;AACA;AACA;AACA;AACA;AACA;AACA,GAAG;AACH;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;AAGA;AACA;AACA,WAAW,OAAO;AAClB,YAAY,OAAO;AACnB;AACA;AACA;AACA;AACA;AACA;AACA,GAAG;AACH;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;;AAGA;AACA;AACA;AACA,WAAW,2BAA2B;AACtC;AACA,WAAW,0BAA0B;AACrC;AACA,YAAY,QAAQ;AACpB;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA,iBAAiB,4BAA4B;AAC7C;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;AAGA;AACA;AACA,YAAY,QAAQ;AACpB;AACA;AACA;AACA;AACA;;;AAGA;AACA;AACA,WAAW,QAAQ;AACnB,YAAY,QAAQ;AACpB;AACA;AACA;AACA;AACA;;;AAGA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;AAGA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;AAGA;AACA;AACA;AACA,YAAY,OAAO;AACnB;AACA;AACA;AACA;;;AAGA;AACA;AACA;AACA,WAAW,SAAS;AACpB,WAAW,OAAO;AAClB;AACA,YAAY,SAAS;AACrB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,OAAO;AACP;AACA;AACA;;;AAGA;AACA;AACA,WAAW,KAAK;AAChB,WAAW,OAAO;AAClB,WAAW,SAAS;AACpB,WAAW,QAAQ;AACnB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;AAGA;AACA;AACA,WAAW,KAAK;AAChB,WAAW,OAAO;AAClB,WAAW,SAAS;AACpB,WAAW,QAAQ;AACnB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;AAGA;AACA;AACA,WAAW,OAAO;AAClB,WAAW,OAAO;AAClB,YAAY,QAAQ;AACpB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;AAGA;AACA;AACA,WAAW,QAAQ;AACnB,YAAY,OAAO;AACnB;AACA;AACA;;AAEA;AACA;AACA,GAAG;AACH;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;AAGA;AACA;AACA;AACA,YAAY,OAAO;AACnB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,WAAW,KAAK;AAChB,WAAW,KAAK;AAChB,YAAY,QAAQ;AACpB;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;;AAGA;AACA;AACA;AACA,WAAW,KAAK;AAChB,YAAY,UAAU;AACtB;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;;AAGA;AACA;AACA;;AAEA,CAAC","file":"vendors~banks.min.js","sourcesContent":["// 7.2.8 IsRegExp(argument)\nvar isObject = require('./_is-object');\nvar cof = require('./_cof');\nvar MATCH = require('./_wks')('match');\nmodule.exports = function (it) {\n var isRegExp;\n return isObject(it) && ((isRegExp = it[MATCH]) !== undefined ? !!isRegExp : cof(it) == 'RegExp');\n};\n","var DESCRIPTORS = require('./_descriptors');\nvar getKeys = require('./_object-keys');\nvar toIObject = require('./_to-iobject');\nvar isEnum = require('./_object-pie').f;\nmodule.exports = function (isEntries) {\n return function (it) {\n var O = toIObject(it);\n var keys = getKeys(O);\n var length = keys.length;\n var i = 0;\n var result = [];\n var key;\n while (length > i) {\n key = keys[i++];\n if (!DESCRIPTORS || isEnum.call(O, key)) {\n result.push(isEntries ? [key, O[key]] : O[key]);\n }\n }\n return result;\n };\n};\n","'use strict';\n\nvar isRegExp = require('./_is-regexp');\nvar anObject = require('./_an-object');\nvar speciesConstructor = require('./_species-constructor');\nvar advanceStringIndex = require('./_advance-string-index');\nvar toLength = require('./_to-length');\nvar callRegExpExec = require('./_regexp-exec-abstract');\nvar regexpExec = require('./_regexp-exec');\nvar fails = require('./_fails');\nvar $min = Math.min;\nvar $push = [].push;\nvar $SPLIT = 'split';\nvar LENGTH = 'length';\nvar LAST_INDEX = 'lastIndex';\nvar MAX_UINT32 = 0xffffffff;\n\n// babel-minify transpiles RegExp('x', 'y') -> /x/y and it causes SyntaxError\nvar SUPPORTS_Y = !fails(function () { RegExp(MAX_UINT32, 'y'); });\n\n// @@split logic\nrequire('./_fix-re-wks')('split', 2, function (defined, SPLIT, $split, maybeCallNative) {\n var internalSplit;\n if (\n 'abbc'[$SPLIT](/(b)*/)[1] == 'c' ||\n 'test'[$SPLIT](/(?:)/, -1)[LENGTH] != 4 ||\n 'ab'[$SPLIT](/(?:ab)*/)[LENGTH] != 2 ||\n '.'[$SPLIT](/(.?)(.?)/)[LENGTH] != 4 ||\n '.'[$SPLIT](/()()/)[LENGTH] > 1 ||\n ''[$SPLIT](/.?/)[LENGTH]\n ) {\n // based on es5-shim implementation, need to rework it\n internalSplit = function (separator, limit) {\n var string = String(this);\n if (separator === undefined && limit === 0) return [];\n // If `separator` is not a regex, use native split\n if (!isRegExp(separator)) return $split.call(string, separator, limit);\n var output = [];\n var flags = (separator.ignoreCase ? 'i' : '') +\n (separator.multiline ? 'm' : '') +\n (separator.unicode ? 'u' : '') +\n (separator.sticky ? 'y' : '');\n var lastLastIndex = 0;\n var splitLimit = limit === undefined ? MAX_UINT32 : limit >>> 0;\n // Make `global` and avoid `lastIndex` issues by working with a copy\n var separatorCopy = new RegExp(separator.source, flags + 'g');\n var match, lastIndex, lastLength;\n while (match = regexpExec.call(separatorCopy, string)) {\n lastIndex = separatorCopy[LAST_INDEX];\n if (lastIndex > lastLastIndex) {\n output.push(string.slice(lastLastIndex, match.index));\n if (match[LENGTH] > 1 && match.index < string[LENGTH]) $push.apply(output, match.slice(1));\n lastLength = match[0][LENGTH];\n lastLastIndex = lastIndex;\n if (output[LENGTH] >= splitLimit) break;\n }\n if (separatorCopy[LAST_INDEX] === match.index) separatorCopy[LAST_INDEX]++; // Avoid an infinite loop\n }\n if (lastLastIndex === string[LENGTH]) {\n if (lastLength || !separatorCopy.test('')) output.push('');\n } else output.push(string.slice(lastLastIndex));\n return output[LENGTH] > splitLimit ? output.slice(0, splitLimit) : output;\n };\n // Chakra, V8\n } else if ('0'[$SPLIT](undefined, 0)[LENGTH]) {\n internalSplit = function (separator, limit) {\n return separator === undefined && limit === 0 ? [] : $split.call(this, separator, limit);\n };\n } else {\n internalSplit = $split;\n }\n\n return [\n // `String.prototype.split` method\n // https://tc39.github.io/ecma262/#sec-string.prototype.split\n function split(separator, limit) {\n var O = defined(this);\n var splitter = separator == undefined ? undefined : separator[SPLIT];\n return splitter !== undefined\n ? splitter.call(separator, O, limit)\n : internalSplit.call(String(O), separator, limit);\n },\n // `RegExp.prototype[@@split]` method\n // https://tc39.github.io/ecma262/#sec-regexp.prototype-@@split\n //\n // NOTE: This cannot be properly polyfilled in engines that don't support\n // the 'y' flag.\n function (regexp, limit) {\n var res = maybeCallNative(internalSplit, regexp, this, limit, internalSplit !== $split);\n if (res.done) return res.value;\n\n var rx = anObject(regexp);\n var S = String(this);\n var C = speciesConstructor(rx, RegExp);\n\n var unicodeMatching = rx.unicode;\n var flags = (rx.ignoreCase ? 'i' : '') +\n (rx.multiline ? 'm' : '') +\n (rx.unicode ? 'u' : '') +\n (SUPPORTS_Y ? 'y' : 'g');\n\n // ^(? + rx + ) is needed, in combination with some S slicing, to\n // simulate the 'y' flag.\n var splitter = new C(SUPPORTS_Y ? rx : '^(?:' + rx.source + ')', flags);\n var lim = limit === undefined ? MAX_UINT32 : limit >>> 0;\n if (lim === 0) return [];\n if (S.length === 0) return callRegExpExec(splitter, S) === null ? [S] : [];\n var p = 0;\n var q = 0;\n var A = [];\n while (q < S.length) {\n splitter.lastIndex = SUPPORTS_Y ? q : 0;\n var z = callRegExpExec(splitter, SUPPORTS_Y ? S : S.slice(q));\n var e;\n if (\n z === null ||\n (e = $min(toLength(splitter.lastIndex + (SUPPORTS_Y ? 0 : q)), S.length)) === p\n ) {\n q = advanceStringIndex(S, q, unicodeMatching);\n } else {\n A.push(S.slice(p, q));\n if (A.length === lim) return A;\n for (var i = 1; i <= z.length - 1; i++) {\n A.push(z[i]);\n if (A.length === lim) return A;\n }\n q = p = e;\n }\n }\n A.push(S.slice(p));\n return A;\n }\n ];\n});\n","// https://github.com/tc39/proposal-object-values-entries\nvar $export = require('./_export');\nvar $values = require('./_object-to-array')(false);\n\n$export($export.S, 'Object', {\n values: function values(it) {\n return $values(it);\n }\n});\n","/**\n * Copyright 2016 Google Inc. All Rights Reserved.\n *\n * Licensed under the W3C SOFTWARE AND DOCUMENT NOTICE AND LICENSE.\n *\n * https://www.w3.org/Consortium/Legal/2015/copyright-software-and-document\n *\n */\n\n(function(window, document) {\n'use strict';\n\n\n// Exits early if all IntersectionObserver and IntersectionObserverEntry\n// features are natively supported.\nif ('IntersectionObserver' in window &&\n 'IntersectionObserverEntry' in window &&\n 'intersectionRatio' in window.IntersectionObserverEntry.prototype) {\n\n // Minimal polyfill for Edge 15's lack of `isIntersecting`\n // See: https://github.com/w3c/IntersectionObserver/issues/211\n if (!('isIntersecting' in window.IntersectionObserverEntry.prototype)) {\n Object.defineProperty(window.IntersectionObserverEntry.prototype,\n 'isIntersecting', {\n get: function () {\n return this.intersectionRatio > 0;\n }\n });\n }\n return;\n}\n\n\n/**\n * An IntersectionObserver registry. This registry exists to hold a strong\n * reference to IntersectionObserver instances currently observing a target\n * element. Without this registry, instances without another reference may be\n * garbage collected.\n */\nvar registry = [];\n\n\n/**\n * Creates the global IntersectionObserverEntry constructor.\n * https://w3c.github.io/IntersectionObserver/#intersection-observer-entry\n * @param {Object} entry A dictionary of instance properties.\n * @constructor\n */\nfunction IntersectionObserverEntry(entry) {\n this.time = entry.time;\n this.target = entry.target;\n this.rootBounds = entry.rootBounds;\n this.boundingClientRect = entry.boundingClientRect;\n this.intersectionRect = entry.intersectionRect || getEmptyRect();\n this.isIntersecting = !!entry.intersectionRect;\n\n // Calculates the intersection ratio.\n var targetRect = this.boundingClientRect;\n var targetArea = targetRect.width * targetRect.height;\n var intersectionRect = this.intersectionRect;\n var intersectionArea = intersectionRect.width * intersectionRect.height;\n\n // Sets intersection ratio.\n if (targetArea) {\n // Round the intersection ratio to avoid floating point math issues:\n // https://github.com/w3c/IntersectionObserver/issues/324\n this.intersectionRatio = Number((intersectionArea / targetArea).toFixed(4));\n } else {\n // If area is zero and is intersecting, sets to 1, otherwise to 0\n this.intersectionRatio = this.isIntersecting ? 1 : 0;\n }\n}\n\n\n/**\n * Creates the global IntersectionObserver constructor.\n * https://w3c.github.io/IntersectionObserver/#intersection-observer-interface\n * @param {Function} callback The function to be invoked after intersection\n * changes have queued. The function is not invoked if the queue has\n * been emptied by calling the `takeRecords` method.\n * @param {Object=} opt_options Optional configuration options.\n * @constructor\n */\nfunction IntersectionObserver(callback, opt_options) {\n\n var options = opt_options || {};\n\n if (typeof callback != 'function') {\n throw new Error('callback must be a function');\n }\n\n if (options.root && options.root.nodeType != 1) {\n throw new Error('root must be an Element');\n }\n\n // Binds and throttles `this._checkForIntersections`.\n this._checkForIntersections = throttle(\n this._checkForIntersections.bind(this), this.THROTTLE_TIMEOUT);\n\n // Private properties.\n this._callback = callback;\n this._observationTargets = [];\n this._queuedEntries = [];\n this._rootMarginValues = this._parseRootMargin(options.rootMargin);\n\n // Public properties.\n this.thresholds = this._initThresholds(options.threshold);\n this.root = options.root || null;\n this.rootMargin = this._rootMarginValues.map(function(margin) {\n return margin.value + margin.unit;\n }).join(' ');\n}\n\n\n/**\n * The minimum interval within which the document will be checked for\n * intersection changes.\n */\nIntersectionObserver.prototype.THROTTLE_TIMEOUT = 100;\n\n\n/**\n * The frequency in which the polyfill polls for intersection changes.\n * this can be updated on a per instance basis and must be set prior to\n * calling `observe` on the first target.\n */\nIntersectionObserver.prototype.POLL_INTERVAL = null;\n\n/**\n * Use a mutation observer on the root element\n * to detect intersection changes.\n */\nIntersectionObserver.prototype.USE_MUTATION_OBSERVER = true;\n\n\n/**\n * Starts observing a target element for intersection changes based on\n * the thresholds values.\n * @param {Element} target The DOM element to observe.\n */\nIntersectionObserver.prototype.observe = function(target) {\n var isTargetAlreadyObserved = this._observationTargets.some(function(item) {\n return item.element == target;\n });\n\n if (isTargetAlreadyObserved) {\n return;\n }\n\n if (!(target && target.nodeType == 1)) {\n throw new Error('target must be an Element');\n }\n\n this._registerInstance();\n this._observationTargets.push({element: target, entry: null});\n this._monitorIntersections();\n this._checkForIntersections();\n};\n\n\n/**\n * Stops observing a target element for intersection changes.\n * @param {Element} target The DOM element to observe.\n */\nIntersectionObserver.prototype.unobserve = function(target) {\n this._observationTargets =\n this._observationTargets.filter(function(item) {\n\n return item.element != target;\n });\n if (!this._observationTargets.length) {\n this._unmonitorIntersections();\n this._unregisterInstance();\n }\n};\n\n\n/**\n * Stops observing all target elements for intersection changes.\n */\nIntersectionObserver.prototype.disconnect = function() {\n this._observationTargets = [];\n this._unmonitorIntersections();\n this._unregisterInstance();\n};\n\n\n/**\n * Returns any queue entries that have not yet been reported to the\n * callback and clears the queue. This can be used in conjunction with the\n * callback to obtain the absolute most up-to-date intersection information.\n * @return {Array} The currently queued entries.\n */\nIntersectionObserver.prototype.takeRecords = function() {\n var records = this._queuedEntries.slice();\n this._queuedEntries = [];\n return records;\n};\n\n\n/**\n * Accepts the threshold value from the user configuration object and\n * returns a sorted array of unique threshold values. If a value is not\n * between 0 and 1 and error is thrown.\n * @private\n * @param {Array|number=} opt_threshold An optional threshold value or\n * a list of threshold values, defaulting to [0].\n * @return {Array} A sorted list of unique and valid threshold values.\n */\nIntersectionObserver.prototype._initThresholds = function(opt_threshold) {\n var threshold = opt_threshold || [0];\n if (!Array.isArray(threshold)) threshold = [threshold];\n\n return threshold.sort().filter(function(t, i, a) {\n if (typeof t != 'number' || isNaN(t) || t < 0 || t > 1) {\n throw new Error('threshold must be a number between 0 and 1 inclusively');\n }\n return t !== a[i - 1];\n });\n};\n\n\n/**\n * Accepts the rootMargin value from the user configuration object\n * and returns an array of the four margin values as an object containing\n * the value and unit properties. If any of the values are not properly\n * formatted or use a unit other than px or %, and error is thrown.\n * @private\n * @param {string=} opt_rootMargin An optional rootMargin value,\n * defaulting to '0px'.\n * @return {Array} An array of margin objects with the keys\n * value and unit.\n */\nIntersectionObserver.prototype._parseRootMargin = function(opt_rootMargin) {\n var marginString = opt_rootMargin || '0px';\n var margins = marginString.split(/\\s+/).map(function(margin) {\n var parts = /^(-?\\d*\\.?\\d+)(px|%)$/.exec(margin);\n if (!parts) {\n throw new Error('rootMargin must be specified in pixels or percent');\n }\n return {value: parseFloat(parts[1]), unit: parts[2]};\n });\n\n // Handles shorthand.\n margins[1] = margins[1] || margins[0];\n margins[2] = margins[2] || margins[0];\n margins[3] = margins[3] || margins[1];\n\n return margins;\n};\n\n\n/**\n * Starts polling for intersection changes if the polling is not already\n * happening, and if the page's visibility state is visible.\n * @private\n */\nIntersectionObserver.prototype._monitorIntersections = function() {\n if (!this._monitoringIntersections) {\n this._monitoringIntersections = true;\n\n // If a poll interval is set, use polling instead of listening to\n // resize and scroll events or DOM mutations.\n if (this.POLL_INTERVAL) {\n this._monitoringInterval = setInterval(\n this._checkForIntersections, this.POLL_INTERVAL);\n }\n else {\n addEvent(window, 'resize', this._checkForIntersections, true);\n addEvent(document, 'scroll', this._checkForIntersections, true);\n\n if (this.USE_MUTATION_OBSERVER && 'MutationObserver' in window) {\n this._domObserver = new MutationObserver(this._checkForIntersections);\n this._domObserver.observe(document, {\n attributes: true,\n childList: true,\n characterData: true,\n subtree: true\n });\n }\n }\n }\n};\n\n\n/**\n * Stops polling for intersection changes.\n * @private\n */\nIntersectionObserver.prototype._unmonitorIntersections = function() {\n if (this._monitoringIntersections) {\n this._monitoringIntersections = false;\n\n clearInterval(this._monitoringInterval);\n this._monitoringInterval = null;\n\n removeEvent(window, 'resize', this._checkForIntersections, true);\n removeEvent(document, 'scroll', this._checkForIntersections, true);\n\n if (this._domObserver) {\n this._domObserver.disconnect();\n this._domObserver = null;\n }\n }\n};\n\n\n/**\n * Scans each observation target for intersection changes and adds them\n * to the internal entries queue. If new entries are found, it\n * schedules the callback to be invoked.\n * @private\n */\nIntersectionObserver.prototype._checkForIntersections = function() {\n var rootIsInDom = this._rootIsInDom();\n var rootRect = rootIsInDom ? this._getRootRect() : getEmptyRect();\n\n this._observationTargets.forEach(function(item) {\n var target = item.element;\n var targetRect = getBoundingClientRect(target);\n var rootContainsTarget = this._rootContainsTarget(target);\n var oldEntry = item.entry;\n var intersectionRect = rootIsInDom && rootContainsTarget &&\n this._computeTargetAndRootIntersection(target, rootRect);\n\n var newEntry = item.entry = new IntersectionObserverEntry({\n time: now(),\n target: target,\n boundingClientRect: targetRect,\n rootBounds: rootRect,\n intersectionRect: intersectionRect\n });\n\n if (!oldEntry) {\n this._queuedEntries.push(newEntry);\n } else if (rootIsInDom && rootContainsTarget) {\n // If the new entry intersection ratio has crossed any of the\n // thresholds, add a new entry.\n if (this._hasCrossedThreshold(oldEntry, newEntry)) {\n this._queuedEntries.push(newEntry);\n }\n } else {\n // If the root is not in the DOM or target is not contained within\n // root but the previous entry for this target had an intersection,\n // add a new record indicating removal.\n if (oldEntry && oldEntry.isIntersecting) {\n this._queuedEntries.push(newEntry);\n }\n }\n }, this);\n\n if (this._queuedEntries.length) {\n this._callback(this.takeRecords(), this);\n }\n};\n\n\n/**\n * Accepts a target and root rect computes the intersection between then\n * following the algorithm in the spec.\n * TODO(philipwalton): at this time clip-path is not considered.\n * https://w3c.github.io/IntersectionObserver/#calculate-intersection-rect-algo\n * @param {Element} target The target DOM element\n * @param {Object} rootRect The bounding rect of the root after being\n * expanded by the rootMargin value.\n * @return {?Object} The final intersection rect object or undefined if no\n * intersection is found.\n * @private\n */\nIntersectionObserver.prototype._computeTargetAndRootIntersection =\n function(target, rootRect) {\n\n // If the element isn't displayed, an intersection can't happen.\n if (window.getComputedStyle(target).display == 'none') return;\n\n var targetRect = getBoundingClientRect(target);\n var intersectionRect = targetRect;\n var parent = getParentNode(target);\n var atRoot = false;\n\n while (!atRoot) {\n var parentRect = null;\n var parentComputedStyle = parent.nodeType == 1 ?\n window.getComputedStyle(parent) : {};\n\n // If the parent isn't displayed, an intersection can't happen.\n if (parentComputedStyle.display == 'none') return;\n\n if (parent == this.root || parent == document) {\n atRoot = true;\n parentRect = rootRect;\n } else {\n // If the element has a non-visible overflow, and it's not the \n // or element, update the intersection rect.\n // Note: and cannot be clipped to a rect that's not also\n // the document rect, so no need to compute a new intersection.\n if (parent != document.body &&\n parent != document.documentElement &&\n parentComputedStyle.overflow != 'visible') {\n parentRect = getBoundingClientRect(parent);\n }\n }\n\n // If either of the above conditionals set a new parentRect,\n // calculate new intersection data.\n if (parentRect) {\n intersectionRect = computeRectIntersection(parentRect, intersectionRect);\n\n if (!intersectionRect) break;\n }\n parent = getParentNode(parent);\n }\n return intersectionRect;\n};\n\n\n/**\n * Returns the root rect after being expanded by the rootMargin value.\n * @return {Object} The expanded root rect.\n * @private\n */\nIntersectionObserver.prototype._getRootRect = function() {\n var rootRect;\n if (this.root) {\n rootRect = getBoundingClientRect(this.root);\n } else {\n // Use / instead of window since scroll bars affect size.\n var html = document.documentElement;\n var body = document.body;\n rootRect = {\n top: 0,\n left: 0,\n right: html.clientWidth || body.clientWidth,\n width: html.clientWidth || body.clientWidth,\n bottom: html.clientHeight || body.clientHeight,\n height: html.clientHeight || body.clientHeight\n };\n }\n return this._expandRectByRootMargin(rootRect);\n};\n\n\n/**\n * Accepts a rect and expands it by the rootMargin value.\n * @param {Object} rect The rect object to expand.\n * @return {Object} The expanded rect.\n * @private\n */\nIntersectionObserver.prototype._expandRectByRootMargin = function(rect) {\n var margins = this._rootMarginValues.map(function(margin, i) {\n return margin.unit == 'px' ? margin.value :\n margin.value * (i % 2 ? rect.width : rect.height) / 100;\n });\n var newRect = {\n top: rect.top - margins[0],\n right: rect.right + margins[1],\n bottom: rect.bottom + margins[2],\n left: rect.left - margins[3]\n };\n newRect.width = newRect.right - newRect.left;\n newRect.height = newRect.bottom - newRect.top;\n\n return newRect;\n};\n\n\n/**\n * Accepts an old and new entry and returns true if at least one of the\n * threshold values has been crossed.\n * @param {?IntersectionObserverEntry} oldEntry The previous entry for a\n * particular target element or null if no previous entry exists.\n * @param {IntersectionObserverEntry} newEntry The current entry for a\n * particular target element.\n * @return {boolean} Returns true if a any threshold has been crossed.\n * @private\n */\nIntersectionObserver.prototype._hasCrossedThreshold =\n function(oldEntry, newEntry) {\n\n // To make comparing easier, an entry that has a ratio of 0\n // but does not actually intersect is given a value of -1\n var oldRatio = oldEntry && oldEntry.isIntersecting ?\n oldEntry.intersectionRatio || 0 : -1;\n var newRatio = newEntry.isIntersecting ?\n newEntry.intersectionRatio || 0 : -1;\n\n // Ignore unchanged ratios\n if (oldRatio === newRatio) return;\n\n for (var i = 0; i < this.thresholds.length; i++) {\n var threshold = this.thresholds[i];\n\n // Return true if an entry matches a threshold or if the new ratio\n // and the old ratio are on the opposite sides of a threshold.\n if (threshold == oldRatio || threshold == newRatio ||\n threshold < oldRatio !== threshold < newRatio) {\n return true;\n }\n }\n};\n\n\n/**\n * Returns whether or not the root element is an element and is in the DOM.\n * @return {boolean} True if the root element is an element and is in the DOM.\n * @private\n */\nIntersectionObserver.prototype._rootIsInDom = function() {\n return !this.root || containsDeep(document, this.root);\n};\n\n\n/**\n * Returns whether or not the target element is a child of root.\n * @param {Element} target The target element to check.\n * @return {boolean} True if the target element is a child of root.\n * @private\n */\nIntersectionObserver.prototype._rootContainsTarget = function(target) {\n return containsDeep(this.root || document, target);\n};\n\n\n/**\n * Adds the instance to the global IntersectionObserver registry if it isn't\n * already present.\n * @private\n */\nIntersectionObserver.prototype._registerInstance = function() {\n if (registry.indexOf(this) < 0) {\n registry.push(this);\n }\n};\n\n\n/**\n * Removes the instance from the global IntersectionObserver registry.\n * @private\n */\nIntersectionObserver.prototype._unregisterInstance = function() {\n var index = registry.indexOf(this);\n if (index != -1) registry.splice(index, 1);\n};\n\n\n/**\n * Returns the result of the performance.now() method or null in browsers\n * that don't support the API.\n * @return {number} The elapsed time since the page was requested.\n */\nfunction now() {\n return window.performance && performance.now && performance.now();\n}\n\n\n/**\n * Throttles a function and delays its execution, so it's only called at most\n * once within a given time period.\n * @param {Function} fn The function to throttle.\n * @param {number} timeout The amount of time that must pass before the\n * function can be called again.\n * @return {Function} The throttled function.\n */\nfunction throttle(fn, timeout) {\n var timer = null;\n return function () {\n if (!timer) {\n timer = setTimeout(function() {\n fn();\n timer = null;\n }, timeout);\n }\n };\n}\n\n\n/**\n * Adds an event handler to a DOM node ensuring cross-browser compatibility.\n * @param {Node} node The DOM node to add the event handler to.\n * @param {string} event The event name.\n * @param {Function} fn The event handler to add.\n * @param {boolean} opt_useCapture Optionally adds the even to the capture\n * phase. Note: this only works in modern browsers.\n */\nfunction addEvent(node, event, fn, opt_useCapture) {\n if (typeof node.addEventListener == 'function') {\n node.addEventListener(event, fn, opt_useCapture || false);\n }\n else if (typeof node.attachEvent == 'function') {\n node.attachEvent('on' + event, fn);\n }\n}\n\n\n/**\n * Removes a previously added event handler from a DOM node.\n * @param {Node} node The DOM node to remove the event handler from.\n * @param {string} event The event name.\n * @param {Function} fn The event handler to remove.\n * @param {boolean} opt_useCapture If the event handler was added with this\n * flag set to true, it should be set to true here in order to remove it.\n */\nfunction removeEvent(node, event, fn, opt_useCapture) {\n if (typeof node.removeEventListener == 'function') {\n node.removeEventListener(event, fn, opt_useCapture || false);\n }\n else if (typeof node.detatchEvent == 'function') {\n node.detatchEvent('on' + event, fn);\n }\n}\n\n\n/**\n * Returns the intersection between two rect objects.\n * @param {Object} rect1 The first rect.\n * @param {Object} rect2 The second rect.\n * @return {?Object} The intersection rect or undefined if no intersection\n * is found.\n */\nfunction computeRectIntersection(rect1, rect2) {\n var top = Math.max(rect1.top, rect2.top);\n var bottom = Math.min(rect1.bottom, rect2.bottom);\n var left = Math.max(rect1.left, rect2.left);\n var right = Math.min(rect1.right, rect2.right);\n var width = right - left;\n var height = bottom - top;\n\n return (width >= 0 && height >= 0) && {\n top: top,\n bottom: bottom,\n left: left,\n right: right,\n width: width,\n height: height\n };\n}\n\n\n/**\n * Shims the native getBoundingClientRect for compatibility with older IE.\n * @param {Element} el The element whose bounding rect to get.\n * @return {Object} The (possibly shimmed) rect of the element.\n */\nfunction getBoundingClientRect(el) {\n var rect;\n\n try {\n rect = el.getBoundingClientRect();\n } catch (err) {\n // Ignore Windows 7 IE11 \"Unspecified error\"\n // https://github.com/w3c/IntersectionObserver/pull/205\n }\n\n if (!rect) return getEmptyRect();\n\n // Older IE\n if (!(rect.width && rect.height)) {\n rect = {\n top: rect.top,\n right: rect.right,\n bottom: rect.bottom,\n left: rect.left,\n width: rect.right - rect.left,\n height: rect.bottom - rect.top\n };\n }\n return rect;\n}\n\n\n/**\n * Returns an empty rect object. An empty rect is returned when an element\n * is not in the DOM.\n * @return {Object} The empty rect.\n */\nfunction getEmptyRect() {\n return {\n top: 0,\n bottom: 0,\n left: 0,\n right: 0,\n width: 0,\n height: 0\n };\n}\n\n/**\n * Checks to see if a parent element contains a child element (including inside\n * shadow DOM).\n * @param {Node} parent The parent element.\n * @param {Node} child The child element.\n * @return {boolean} True if the parent node contains the child node.\n */\nfunction containsDeep(parent, child) {\n var node = child;\n while (node) {\n if (node == parent) return true;\n\n node = getParentNode(node);\n }\n return false;\n}\n\n\n/**\n * Gets the parent node of an element or its host element if the parent node\n * is a shadow root.\n * @param {Node} node The node whose parent to get.\n * @return {Node|null} The parent node or null if no parent exists.\n */\nfunction getParentNode(node) {\n var parent = node.parentNode;\n\n if (parent && parent.nodeType == 11 && parent.host) {\n // If the parent is a shadow root, return the host element.\n return parent.host;\n }\n return parent;\n}\n\n\n// Exposes the constructors globally.\nwindow.IntersectionObserver = IntersectionObserver;\nwindow.IntersectionObserverEntry = IntersectionObserverEntry;\n\n}(window, document));\n"],"sourceRoot":""} \ No newline at end of file diff --git a/views/js/dist/vendors~banks~carrierconfig~methodconfig~qrcode~transaction.min.js b/views/js/dist/vendors~banks~carrierconfig~methodconfig~qrcode~transaction.min.js deleted file mode 100644 index dfb73642b..000000000 --- a/views/js/dist/vendors~banks~carrierconfig~methodconfig~qrcode~transaction.min.js +++ /dev/null @@ -1,10 +0,0 @@ -/*! - * - * Mollie https://www.mollie.nl - * @author Mollie B.V. - * @copyright Mollie B.V. - * @link https://github.com/mollie/PrestaShop - * @license https://github.com/mollie/PrestaShop/blob/master/LICENSE.md - * - */ -(window.webpackJsonP_mollie=window.webpackJsonP_mollie||[]).push([["vendors~banks~carrierconfig~methodconfig~qrcode~transaction"],{134:function(e,t,n){"use strict";var r=Object.getOwnPropertySymbols,l=Object.prototype.hasOwnProperty,i=Object.prototype.propertyIsEnumerable;function a(e){if(null==e)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(e)}e.exports=function(){try{if(!Object.assign)return!1;var e=new String("abc");if(e[5]="de","5"===Object.getOwnPropertyNames(e)[0])return!1;for(var t={},n=0;n<10;n++)t["_"+String.fromCharCode(n)]=n;if("0123456789"!==Object.getOwnPropertyNames(t).map((function(e){return t[e]})).join(""))return!1;var r={};return"abcdefghijklmnopqrst".split("").forEach((function(e){r[e]=e})),"abcdefghijklmnopqrst"===Object.keys(Object.assign({},r)).join("")}catch(e){return!1}}()?Object.assign:function(e,t){for(var n,o,u=a(e),c=1;cz.length&&z.push(e)}function R(e,t,n){return null==e?0:function e(t,n,r,l){var o=typeof t;"undefined"!==o&&"boolean"!==o||(t=null);var u=!1;if(null===t)u=!0;else switch(o){case"string":case"number":u=!0;break;case"object":switch(t.$$typeof){case i:case a:u=!0}}if(u)return r(l,t,""===n?"."+I(t,0):n),1;if(u=0,n=""===n?".":n+":",Array.isArray(t))for(var c=0;c