diff --git a/woocommerce/assets/css/admin/sv-wc-plugin-admin-setup-wizard.min.css b/woocommerce/assets/css/admin/sv-wc-plugin-admin-setup-wizard.min.css index ffe399a86..73cda63d2 100644 --- a/woocommerce/assets/css/admin/sv-wc-plugin-admin-setup-wizard.min.css +++ b/woocommerce/assets/css/admin/sv-wc-plugin-admin-setup-wizard.min.css @@ -1 +1,2 @@ -h1#wc-logo.sv-wc-plugin-logo{font-size:28px;font-weight:bold}h1#wc-logo.sv-wc-plugin-logo a{color:#444;text-decoration:none}h1#wc-logo.sv-wc-plugin-logo a:hover{color:#222;text-decoration:none}.sv-wc-plugin-admin-setup-content .error{background:#dc3232;border-radius:5px;color:#fff;padding:1em}.sv-wc-plugin-admin-setup-content .error a{color:#fff;text-decoration:none}.sv-wc-plugin-admin-setup-content .error a:hover{text-decoration:underline}.sv-wc-plugin-admin-setup-content .sv-wc-plugin-admin-setup-control{margin-bottom:20px}.sv-wc-plugin-admin-setup-content .sv-wc-plugin-admin-setup-control label{color:#666;display:inline-block;font-size:15px;font-weight:500;margin-top:.85em;margin-bottom:.5em}.sv-wc-plugin-admin-setup-content .sv-wc-plugin-admin-setup-control input[type=text],.sv-wc-plugin-admin-setup-content .sv-wc-plugin-admin-setup-control input[type=number],.sv-wc-plugin-admin-setup-content .sv-wc-plugin-admin-setup-control input[type=password],.sv-wc-plugin-admin-setup-content .sv-wc-plugin-admin-setup-control select{background-color:#fff;border:1px solid #ddd;border-radius:4px;color:#444;display:inline-block;font-size:16px;height:30px;padding:0 24px 0 8px;width:calc(100% - 8px - 24px - 2px)}.sv-wc-plugin-admin-setup-content .sv-wc-plugin-admin-setup-control select{width:100%}.sv-wc-plugin-admin-setup-content .sv-wc-plugin-admin-setup-control textarea{background-color:#fff;border:1px solid #ddd;border-radius:4px;color:#444;font-size:16px;padding:10px}.sv-wc-plugin-admin-setup-content .sv-wc-plugin-admin-setup-control .description{color:#888;font-size:13px;margin:5px 0 0}.sv-wc-plugin-admin-setup-content .sv-wc-plugin-admin-setup-control.toggle{display:flex;flex-wrap:nowrap;justify-content:space-between;padding:0;border-bottom:1px solid #eee;color:#666;align-items:top}.sv-wc-plugin-admin-setup-content .sv-wc-plugin-admin-setup-control.toggle:last-child{border-bottom:0}.sv-wc-plugin-admin-setup-content .sv-wc-plugin-admin-setup-control.toggle .name{flex-basis:0;min-width:160px;text-align:center;font-weight:bold;align-self:stretch;display:flex;align-items:baseline}.sv-wc-plugin-admin-setup-content .sv-wc-plugin-admin-setup-control.toggle .content{flex-grow:1;padding:20px}.sv-wc-plugin-admin-setup-content .sv-wc-plugin-admin-setup-control.toggle .content p{margin-bottom:1em}.sv-wc-plugin-admin-setup-content .sv-wc-plugin-admin-setup-control.toggle .content p:last-child{margin-bottom:0}.sv-wc-plugin-admin-setup-content .sv-wc-plugin-admin-setup-control.toggle .enable{flex-basis:0;min-width:75px;text-align:center;cursor:pointer;padding:2em 0;position:relative;max-height:1.5em;align-self:flex-start}.sv-wc-plugin-admin-setup-content .sv-wc-plugin-admin-setup-control.toggle .toggle{height:16px;width:32px;border:2px solid #935687;background-color:#935687;display:inline-block;text-indent:-9999px;border-radius:10em;position:relative}.sv-wc-plugin-admin-setup-content .sv-wc-plugin-admin-setup-control.toggle .toggle input[type=checkbox]{display:none}.sv-wc-plugin-admin-setup-content .sv-wc-plugin-admin-setup-control.toggle .toggle:before{content:"";display:block;width:16px;height:16px;background:#fff;position:absolute;top:0;right:0;border-radius:100%}.sv-wc-plugin-admin-setup-content .sv-wc-plugin-admin-setup-control.toggle .toggle.disabled{border-color:#999;background-color:#999}.sv-wc-plugin-admin-setup-content .sv-wc-plugin-admin-setup-control.toggle .toggle.disabled:before{right:auto;left:0}/*# sourceMappingURL=sv-wc-plugin-admin-setup-wizard.min.css.map */ +h1#wc-logo.sv-wc-plugin-logo{font-size:28px;font-weight:bold}h1#wc-logo.sv-wc-plugin-logo a{color:#444444;text-decoration:none}h1#wc-logo.sv-wc-plugin-logo a:hover{color:#222222;text-decoration:none}.sv-wc-plugin-admin-setup-content .error{background:#dc3232;border-radius:5px;color:#fff;padding:1em}.sv-wc-plugin-admin-setup-content .error a{color:#fff;text-decoration:none}.sv-wc-plugin-admin-setup-content .error a:hover{text-decoration:underline}.sv-wc-plugin-admin-setup-content .sv-wc-plugin-admin-setup-control{margin-bottom:20px}.sv-wc-plugin-admin-setup-content .sv-wc-plugin-admin-setup-control label{color:#666;display:inline-block;font-size:15px;font-weight:500;margin-top:.85em;margin-bottom:.5em}.sv-wc-plugin-admin-setup-content .sv-wc-plugin-admin-setup-control input[type="text"],.sv-wc-plugin-admin-setup-content .sv-wc-plugin-admin-setup-control input[type="number"],.sv-wc-plugin-admin-setup-content .sv-wc-plugin-admin-setup-control input[type="password"],.sv-wc-plugin-admin-setup-content .sv-wc-plugin-admin-setup-control select{background-color:#fff;border:1px solid #ddd;border-radius:4px;color:#444;display:inline-block;font-size:16px;height:30px;padding:0 24px 0 8px;width:calc(100% - 8px - 24px - 2px)}.sv-wc-plugin-admin-setup-content .sv-wc-plugin-admin-setup-control select{width:100%}.sv-wc-plugin-admin-setup-content .sv-wc-plugin-admin-setup-control textarea{background-color:#fff;border:1px solid #ddd;border-radius:4px;color:#444;font-size:16px;padding:10px}.sv-wc-plugin-admin-setup-content .sv-wc-plugin-admin-setup-control .description{color:#888;font-size:13px;margin:5px 0 0}.sv-wc-plugin-admin-setup-content .sv-wc-plugin-admin-setup-control.toggle{display:flex;flex-wrap:nowrap;justify-content:space-between;padding:0;border-bottom:1px solid #eee;color:#666;align-items:top}.sv-wc-plugin-admin-setup-content .sv-wc-plugin-admin-setup-control.toggle:last-child{border-bottom:0}.sv-wc-plugin-admin-setup-content .sv-wc-plugin-admin-setup-control.toggle .name{flex-basis:0;min-width:160px;text-align:center;font-weight:bold;align-self:stretch;display:flex;align-items:baseline}.sv-wc-plugin-admin-setup-content .sv-wc-plugin-admin-setup-control.toggle .content{flex-grow:1;padding:20px}.sv-wc-plugin-admin-setup-content .sv-wc-plugin-admin-setup-control.toggle .content p{margin-bottom:1em}.sv-wc-plugin-admin-setup-content .sv-wc-plugin-admin-setup-control.toggle .content p:last-child{margin-bottom:0}.sv-wc-plugin-admin-setup-content .sv-wc-plugin-admin-setup-control.toggle .enable{flex-basis:0;min-width:75px;text-align:center;cursor:pointer;padding:2em 0;position:relative;max-height:1.5em;align-self:flex-start}.sv-wc-plugin-admin-setup-content .sv-wc-plugin-admin-setup-control.toggle .toggle{height:16px;width:32px;border:2px solid #935687;background-color:#935687;display:inline-block;text-indent:-9999px;border-radius:10em;position:relative}.sv-wc-plugin-admin-setup-content .sv-wc-plugin-admin-setup-control.toggle .toggle input[type=checkbox]{display:none}.sv-wc-plugin-admin-setup-content .sv-wc-plugin-admin-setup-control.toggle .toggle:before{content:"";display:block;width:16px;height:16px;background:#fff;position:absolute;top:0;right:0;border-radius:100%}.sv-wc-plugin-admin-setup-content .sv-wc-plugin-admin-setup-control.toggle .toggle.disabled{border-color:#999;background-color:#999}.sv-wc-plugin-admin-setup-content .sv-wc-plugin-admin-setup-control.toggle .toggle.disabled:before{right:auto;left:0} +/*# sourceMappingURL=sv-wc-plugin-admin-setup-wizard.min.css.map */ diff --git a/woocommerce/assets/css/admin/sv-wc-plugin-admin-setup-wizard.min.css.map b/woocommerce/assets/css/admin/sv-wc-plugin-admin-setup-wizard.min.css.map index 37843f733..c87179cc1 100644 --- a/woocommerce/assets/css/admin/sv-wc-plugin-admin-setup-wizard.min.css.map +++ b/woocommerce/assets/css/admin/sv-wc-plugin-admin-setup-wizard.min.css.map @@ -1 +1,7 @@ -{"version":3,"sourceRoot":"","sources":["sv-wc-plugin-admin-setup-wizard.scss"],"names":[],"mappings":"AAAA,6BAEC,eACA,iBAEA,+BAEC,WACA,qBAEA,qCACC,WACA,qBAOF,yCAEC,mBACA,kBACA,WACA,YAEA,2CACC,WACA,qBACA,iDACC,0BAKH,oEAEC,mBAEA,0EACC,WACA,qBACA,eACA,gBACA,iBACA,mBAGD,gVAIC,sBACA,sBACA,kBACA,WACA,qBACA,eACA,YACA,qBACA,oCAGD,2EACC,WAGD,6EACC,sBACA,sBACA,kBACA,WACA,eACA,aAGD,iFACC,WACA,eACA,eAGD,2EACC,aACA,iBACA,8BACA,UACA,6BACA,WACA,gBAEA,sFACC,gBAGD,iFACC,aACA,gBACA,kBACA,iBACA,mBACA,aACA,qBAGD,oFACC,YACA,aAEA,sFACC,kBAGD,iGACC,gBAIF,mFACC,aACA,eACA,kBACA,eACA,cACA,kBACA,iBACA,sBAGD,mFACC,YACA,WACA,yBACA,yBACA,qBACA,oBACA,mBACA,kBAEA,wGACC,aAGD,0FACC,WACA,cACA,WACA,YACA,gBACA,kBACA,MACA,QACA,mBAGD,4FACC,kBACA,sBAEA,mGACC,WACA","file":"sv-wc-plugin-admin-setup-wizard.min.css"} \ No newline at end of file +{ +"version": 3, +"mappings": "AAAA,4BAA6B,CAE5B,SAAS,CAAE,IAAI,CACf,WAAW,CAAE,IAAI,CAEjB,8BAAE,CAED,KAAK,CAAE,OAAO,CACd,eAAe,CAAE,IAAI,CAErB,oCAAQ,CACP,KAAK,CAAE,OAAO,CACd,eAAe,CAAE,IAAI,CAOvB,wCAAO,CAEN,UAAU,CAAE,OAAO,CACnB,aAAa,CAAE,GAAG,CAClB,KAAK,CAAE,IAAI,CACX,OAAO,CAAE,GAAG,CAEZ,0CAAE,CACD,KAAK,CAAE,IAAI,CACX,eAAe,CAAE,IAAI,CACrB,gDAAQ,CACP,eAAe,CAAE,SAAS,CAK7B,mEAAkC,CAEjC,aAAa,CAAE,IAAI,CAEnB,yEAAM,CACL,KAAK,CAAE,IAAI,CACX,OAAO,CAAE,YAAY,CACrB,SAAS,CAAE,IAAI,CACf,WAAW,CAAE,GAAG,CAChB,UAAU,CAAE,KAAK,CACjB,aAAa,CAAE,IAAI,CAGpB,qVAGO,CACN,gBAAgB,CAAE,IAAI,CACtB,MAAM,CAAE,cAAc,CACtB,aAAa,CAAE,GAAG,CAClB,KAAK,CAAE,IAAI,CACX,OAAO,CA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,OAAO,CACzB,OAAO,CAAE,YAAY,CACrB,WAAW,CAAE,OAAO,CACpB,aAAa,CAAE,IAAI,CACnB,QAAQ,CAAE,QAAQ,CAElB,uGAAqB,CACpB,OAAO,CAAE,IAAI,CAGd,yFAAS,CACR,OAAO,CAAE,EAAE,CACX,OAAO,CAAE,KAAK,CACd,KAAK,CAAE,IAAI,CACX,MAAM,CAAE,IAAI,CACZ,UAAU,CAAE,IAAI,CAChB,QAAQ,CAAE,QAAQ,CAClB,GAAG,CAAE,CAAC,CACN,KAAK,CAAE,CAAC,CACR,aAAa,CAAE,IAAI,CAGpB,2FAAW,CACV,YAAY,CAAE,IAAI,CAClB,gBAAgB,CAAE,IAAI,CAEtB,kGAAS,CACR,KAAK,CAAE,IAAI,CACX,IAAI,CAAE,CAAC", +"sources": ["sv-wc-plugin-admin-setup-wizard.scss"], +"names": [], +"file": "sv-wc-plugin-admin-setup-wizard.min.css" +} diff --git a/woocommerce/i18n/languages/woocommerce-plugin-framework.pot b/woocommerce/i18n/languages/woocommerce-plugin-framework.pot index 7196d2aef..430997809 100644 --- a/woocommerce/i18n/languages/woocommerce-plugin-framework.pot +++ b/woocommerce/i18n/languages/woocommerce-plugin-framework.pot @@ -8,9 +8,9 @@ msgstr "" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" -"POT-Creation-Date: 2025-05-13T09:18:59+00:00\n" +"POT-Creation-Date: 2025-05-16T13:01:12+00:00\n" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" -"X-Generator: WP-CLI 2.12.0\n" +"X-Generator: WP-CLI 2.11.0\n" "X-Domain: woocommerce-plugin-framework\n" #. Plugin Name of the plugin @@ -39,12 +39,10 @@ msgid "http://www.woocommerce.com" msgstr "" #: woocommerce/admin/abstract-sv-wc-plugin-admin-setup-wizard.php:183 -#, php-format msgid "Thanks for installing %1$s! To get started, take a minute to %2$sread the documentation%3$s :)" msgstr "" #: woocommerce/admin/abstract-sv-wc-plugin-admin-setup-wizard.php:211 -#, php-format msgid "Thanks for installing %1$s! To get started, take a minute to complete these %2$squick and easy setup steps%3$s :)" msgstr "" @@ -54,7 +52,6 @@ msgstr "" #. translators: Placeholders: %s - plugin name #: woocommerce/admin/abstract-sv-wc-plugin-admin-setup-wizard.php:304 -#, php-format msgid "%s › Setup" msgstr "" @@ -118,7 +115,6 @@ msgstr "" #. translators: Placeholder: %s - plugin name #: woocommerce/admin/abstract-sv-wc-plugin-admin-setup-wizard.php:585 -#, php-format msgid "Welcome to %s!" msgstr "" @@ -128,7 +124,6 @@ msgstr "" #. translators: Placeholder: %s - the plugin name #: woocommerce/admin/abstract-sv-wc-plugin-admin-setup-wizard.php:617 -#, php-format msgid "%s is ready!" msgstr "" @@ -184,7 +179,6 @@ msgstr "" #. translators: Context: WordPress blocks and shortcodes. Placeholders: %1$s - Plugin name, %2$s - opening HTML tag, %3$s - closing HTML tag, %4$s - opening HTML tag, %5$s - `[woocommerce_checkout]` shortcode tag, %6$s - closing HTML tag #: woocommerce/Blocks/Blocks_Handler.php:271 -#, php-format msgid "%1$s is not yet compatible with the Checkout block. We recommend %2$sfollowing this guide%3$s to revert to the %4$s%5$s shortcode%6$s." msgstr "" @@ -195,7 +189,6 @@ msgstr "" #. translators: Context: WordPress blocks and shortcodes. Placeholders: %1$s - Plugin name, %2$s - opening HTML tag, %3$s - closing HTML tag, %4$s - opening HTML tag, %5$s - `[woocommerce_cart]` shortcode tag, %6$s - closing HTML tag #: woocommerce/Blocks/Blocks_Handler.php:302 -#, php-format msgid "%1$s is not yet compatible with the Cart block. We recommend %2$sfollowing this guide%3$s to revert to the %4$s%5$s shortcode%6$s." msgstr "" @@ -207,7 +200,6 @@ msgstr[1] "" #. translators: Context is for plugins to activate or deactivate. HTML Placeholders: %1$s - tag, %2$s - tag, %3$s - tag, %4$s - tag, %5$s - tag, %6$s - tag, %7$s - tag, %8$s - tag #: woocommerce/class-sv-wc-framework-bootstrap.php:283 -#, php-format msgid "To resolve this, please %1$supdate%2$s (recommended) %3$sor%4$s %5$sdeactivate%6$s the above plugin, or %7$sdeactivate the following%8$s:" msgid_plural "To resolve this, please %1$supdate%2$s (recommended) %3$sor%4$s %5$sdeactivate%6$s the above plugins, or %7$sdeactivate the following%8$s:" msgstr[0] "" @@ -223,13 +215,11 @@ msgstr "" #. translators: Placeholders: %1$s - plugin name, %2$s - WooCommerce version number #: woocommerce/class-sv-wc-framework-bootstrap.php:309 -#, php-format msgid "%1$s requires WooCommerce %2$s or newer" msgstr "" #. translators: Placeholders: %1$s - tag, %2$s - tag #: woocommerce/class-sv-wc-framework-bootstrap.php:313 -#, php-format msgid "Please %1$supdate WooCommerce%2$s" msgstr "" @@ -240,7 +230,6 @@ msgstr "" #. translators: A list of items, for example: "US or Canada", or "US, Canada, or Mexico". English uses Oxford comma before the conjunction ("or") if there are at least 2 items preceding it - hence the use of plural forms. If your locale does not use Oxford comma, you can just provide the same translation to all plural forms. Placeholders: %1$s - a comma-separated list of item, %2$s - the final item in the list #: woocommerce/class-sv-wc-helper.php:477 -#, php-format msgid "%1$s or %2$s" msgid_plural "%1$s, or %2$s" msgstr[0] "" @@ -248,7 +237,6 @@ msgstr[1] "" #. translators: A list of items, for example: "US and Canada", or "US, Canada, and Mexico". English uses Oxford comma before the conjunction ("and") if there are at least 2 items preceding it - hence the use of plural forms. If your locale does not use Oxford comma, you can just provide the same translation to all plural forms. Placeholders: %1$s - a comma-separated list of items, %2$s - the final item in the list #: woocommerce/class-sv-wc-helper.php:483 -#, php-format msgid "%1$s and %2$s" msgid_plural "%1$s, and %2$s" msgstr[0] "" @@ -256,7 +244,6 @@ msgstr[1] "" #. translators: Placeholders: %1$s - plugin name, %2$s - a PHP extension/comma-separated list of PHP extensions #: woocommerce/class-sv-wc-plugin-dependencies.php:157 -#, php-format msgid "%1$s requires the %2$s PHP extension to function. Contact your host or server administrator to install and configure the missing extension." msgid_plural "%1$s requires the following PHP extensions to function: %2$s. Contact your host or server administrator to install and configure the missing extensions." msgstr[0] "" @@ -264,7 +251,6 @@ msgstr[1] "" #. translators: Placeholders: %1$s - plugin name, %2$s - a PHP function/comma-separated list of PHP functions #: woocommerce/class-sv-wc-plugin-dependencies.php:185 -#, php-format msgid "%1$s requires the %2$s PHP function to exist. Contact your host or server administrator to install and configure the missing function." msgid_plural "%1$s requires the following PHP functions to exist: %2$s. Contact your host or server administrator to install and configure the missing functions." msgstr[0] "" @@ -272,7 +258,6 @@ msgstr[1] "" #. translators: Placeholder: %s - a PHP setting value #: woocommerce/class-sv-wc-plugin-dependencies.php:229 -#, php-format msgid "%s or higher" msgstr "" @@ -282,37 +267,31 @@ msgstr "" #. translators: Placeholders: %1$s - HTML tag, %2$s - HTML tag #: woocommerce/class-sv-wc-plugin-dependencies.php:262 -#, php-format msgid "Hey there! We've noticed that your server is running %1$san outdated version of PHP%2$s, which is the programming language that WooCommerce and its extensions are built on." msgstr "" #. translators: Placeholders: %1$s - HTML tag, %2$s - HTML tag #: woocommerce/class-sv-wc-plugin-dependencies.php:264 -#, php-format msgid "The PHP version that is currently used for your site is no longer maintained, nor %1$sreceives security updates%2$s; newer versions are faster and more secure." msgstr "" #. translators: Context: User is running an outdated PHP Version a plugin is not compatible with. Placeholders: %s - the plugin name #: woocommerce/class-sv-wc-plugin-dependencies.php:266 -#, php-format msgid "As a result, %s no longer supports this version and you should upgrade PHP as soon as possible." msgstr "" #. translators: Context: The host can update PHP version for the user. Placeholders: %1$s - HTML tag, %2$s - HTML tag #: woocommerce/class-sv-wc-plugin-dependencies.php:268 -#, php-format msgid "Your hosting provider can do this for you. %1$sHere are some resources to help you upgrade%2$s and to explain PHP versions further." msgstr "" #. translators: Placeholders: %s - plugin name #: woocommerce/class-sv-wc-plugin.php:370 -#, php-format msgid "You cannot clone instances of %s." msgstr "" #. translators: Placeholders: %s - plugin name #: woocommerce/class-sv-wc-plugin.php:381 -#, php-format msgid "You cannot unserialize instances of %s." msgstr "" @@ -333,13 +312,11 @@ msgstr "" #. translators: Placeholders: %1$s - PHP setting value, %2$s - version or value required #: woocommerce/class-sv-wc-plugin.php:777 -#, php-format msgid "%1$s - A minimum of %2$s is required." msgstr "" #. translators: Context: As in "Value has been set as [foo], but [bar] is required". Placeholders: %1$s - current value for a PHP setting, %2$s - required value for the PHP setting #: woocommerce/class-sv-wc-plugin.php:787 -#, php-format msgid "Set as %1$s - %2$s is required." msgstr "" @@ -395,7 +372,6 @@ msgstr "" #: woocommerce/payment-gateway/admin/class-sv-wc-payment-gateway-admin-payment-token-editor.php:495 #: woocommerce/payment-gateway/admin/class-sv-wc-payment-gateway-admin-user-handler.php:307 -#, php-format msgid "(%s)" msgstr "" @@ -463,7 +439,6 @@ msgstr "" #. translators: Placeholder: %s - Payment gateway title (e.g. Authorize.Net, Braintree, etc.) #: woocommerce/payment-gateway/admin/class-sv-wc-payment-gateway-admin-user-handler.php:226 #: woocommerce/payment-gateway/class-sv-wc-payment-gateway-privacy.php:225 -#, php-format msgid "%s Payment Tokens" msgstr "" @@ -544,7 +519,6 @@ msgstr "" #. translators: Context: Capture payment without charge. Placeholder: %s - transaction amount to be captured. #: woocommerce/payment-gateway/admin/views/html-order-partial-capture.php:67 -#, php-format msgid "Capture %s" msgstr "" @@ -765,7 +739,6 @@ msgstr "" #. translators: Placeholder: %s - Error message #: woocommerce/payment-gateway/class-sv-wc-payment-gateway-direct.php:543 -#, php-format msgid "Payment method address could not be updated. %s" msgstr "" @@ -773,7 +746,6 @@ msgstr "" #. translators: Context: "Check" as in "bank check" (noun, not verb). Placeholders: %1$s - payment method title, %2$s - payment account type (savings/checking) (may or may not be available), %3$s - last four digits of the account #: woocommerce/payment-gateway/class-sv-wc-payment-gateway-direct.php:713 #: woocommerce/payment-gateway/class-sv-wc-payment-gateway.php:2890 -#, php-format msgid "%1$s Check Transaction Approved: %2$s account ending in %3$s" msgstr "" @@ -781,7 +753,6 @@ msgstr "" #. translators: Context: "Check" as in "bank check" (noun, not verb). Placeholder: %s - check number #: woocommerce/payment-gateway/class-sv-wc-payment-gateway-direct.php:718 #: woocommerce/payment-gateway/class-sv-wc-payment-gateway.php:2895 -#, php-format msgid "Check number %s" msgstr "" @@ -794,13 +765,11 @@ msgstr "" #: woocommerce/payment-gateway/class-sv-wc-payment-gateway.php:2901 #: woocommerce/payment-gateway/Handlers/Capture.php:200 #: woocommerce/payment-gateway/integrations/class-sv-wc-payment-gateway-integration-pre-orders.php:366 -#, php-format msgid "(Transaction ID %s)" msgstr "" #. translators: Example: "Braintree Test Authorization Approved: Mastercard ending in 1234". Placeholders: %1$s - payment method title, %2$s - environment ("Test"), %3$s - transaction type (authorization/charge), %4$s - card type (mastercard, visa, ...), %5$s - last four digits of the card #: woocommerce/payment-gateway/class-sv-wc-payment-gateway-direct.php:790 -#, php-format msgid "%1$s %2$s %3$s Approved: %4$s ending in %5$s" msgstr "" @@ -826,7 +795,6 @@ msgstr "" #. translators: Example: "Authorize.Net Test Charge Approved: Mastercard" - Placeholders: %1$s - payment method title, %2$s - environment ("Test"), %3$s - transaction type (authorization/charge), %4$s - card type (mastercard, visa, ...) #: woocommerce/payment-gateway/class-sv-wc-payment-gateway-direct.php:800 -#, php-format msgid "%1$s %2$s %3$s Approved: %4$s" msgstr "" @@ -835,19 +803,16 @@ msgstr "" #: woocommerce/payment-gateway/class-sv-wc-payment-gateway-direct.php:813 #: woocommerce/payment-gateway/class-sv-wc-payment-gateway-payment-form.php:744 #: woocommerce/payment-gateway/class-sv-wc-payment-gateway.php:2847 -#, php-format msgid "(expires %s)" msgstr "" #. translators: Placeholders: %s - failure message #: woocommerce/payment-gateway/class-sv-wc-payment-gateway-direct.php:883 -#, php-format msgid "Tokenization Request Failed: %s" msgstr "" #. translators: Placeholders: %1$s - payment method title, %2$s - failure message #: woocommerce/payment-gateway/class-sv-wc-payment-gateway-direct.php:894 -#, php-format msgid "%1$s Tokenization Request Failed: %2$s" msgstr "" @@ -861,19 +826,16 @@ msgstr "" #. translators: Placeholders: %s - failure message. Payment method as in a specific credit card, e-check or bank account #: woocommerce/payment-gateway/class-sv-wc-payment-gateway-direct.php:952 -#, php-format msgid "Oops, adding your new payment method failed: %s" msgstr "" #. translators: Payment method as in a specific credit card. Placeholders: %1$s - card type (visa, mastercard, ...), %2$s - last four digits of the card, %3$s - card expiry date #: woocommerce/payment-gateway/class-sv-wc-payment-gateway-direct.php:997 -#, php-format msgid "Nice! New payment method added: %1$s ending in %2$s (expires %3$s)" msgstr "" #. translators: Payment method as in a specific e-check account. Placeholders: %1$s - account type (checking/savings), %2$s - last four digits of the account #: woocommerce/payment-gateway/class-sv-wc-payment-gateway-direct.php:1007 -#, php-format msgid "Nice! New payment method added: %1$s account ending in %2$s" msgstr "" @@ -884,7 +846,6 @@ msgstr "" #. translators: Placeholders: %1$s - site title, %2$s - customer email. Payment method as in a specific credit card, e-check or bank account #: woocommerce/payment-gateway/class-sv-wc-payment-gateway-direct.php:1137 -#, php-format msgid "%1$s - Add Payment Method for %2$s" msgstr "" @@ -982,47 +943,40 @@ msgstr "" #. translators: Placeholders: %s - a WooCommerce order ID #: woocommerce/payment-gateway/class-sv-wc-payment-gateway-hosted.php:461 #: woocommerce/payment-gateway/Handlers/Abstract_Hosted_Payment_Handler.php:321 -#, php-format msgid "Could not find order %s" msgstr "" #. translators: Placeholders: %s - payment gateway title (such as Authorize.net, Braintree, etc) #: woocommerce/payment-gateway/class-sv-wc-payment-gateway-hosted.php:525 #: woocommerce/payment-gateway/Handlers/Abstract_Payment_Handler.php:206 -#, php-format msgid "%s duplicate transaction received" msgstr "" #. translators: Placeholder: %s - Order number #: woocommerce/payment-gateway/class-sv-wc-payment-gateway-hosted.php:529 #: woocommerce/payment-gateway/Handlers/Abstract_Payment_Handler.php:209 -#, php-format msgid "Order %s is already paid for." msgstr "" #. translators: Placeholders: %1$s - payment gateway title (such as Authorize.net, Braintree, etc), %2$s - payment method name (mastercard, bank account, etc), %3$s - last four digits of the card/account, %4$s - card/account expiry date #: woocommerce/payment-gateway/class-sv-wc-payment-gateway-hosted.php:614 #: woocommerce/payment-gateway/payment-tokens/class-sv-wc-payment-gateway-payment-tokens-handler.php:1153 -#, php-format msgid "%1$s Payment Method Saved: %2$s ending in %3$s (expires %4$s)" msgstr "" #. translators: Placeholders: %1$s - payment gateway title (such as CyberSouce, NETbilling, etc), %2$s - account type (checking/savings - may or may not be available), %3$s - last four digits of the account #: woocommerce/payment-gateway/class-sv-wc-payment-gateway-hosted.php:625 #: woocommerce/payment-gateway/payment-tokens/class-sv-wc-payment-gateway-payment-tokens-handler.php:1164 -#, php-format msgid "%1$s eCheck Payment Method Saved: %2$s account ending in %3$s" msgstr "" #. translators: Placeholders: %s - payment gateway title (such as CyberSouce, NETbilling, etc) #: woocommerce/payment-gateway/class-sv-wc-payment-gateway-hosted.php:634 -#, php-format msgid "%s Payment Method Saved" msgstr "" #. translators: Placeholders: %s - a failed tokenization API error #: woocommerce/payment-gateway/class-sv-wc-payment-gateway-hosted.php:643 -#, php-format msgid "Tokenization failed. %s" msgstr "" @@ -1146,19 +1100,16 @@ msgstr "" #. translators: Placeholders: %1$s - plugin name, %2$s - tag, %3$s - tag #: woocommerce/payment-gateway/class-sv-wc-payment-gateway-plugin.php:643 -#, php-format msgid "%1$s: WooCommerce is not being forced over SSL; your customers' payment data may be at risk. %2$sVerify your site URLs here%3$s" msgstr "" #. translators: Placeholders: %s - payment gateway name #: woocommerce/payment-gateway/class-sv-wc-payment-gateway-plugin.php:660 -#, php-format msgid "%s will soon require TLS 1.2 support to process transactions and your server environment may need to be updated. Please contact your hosting provider to confirm that your site can send and receive TLS 1.2 connections and request they make any necessary updates." msgstr "" #. translators: Placeholders: %1$s - plugin name, %2$s - a currency/comma-separated list of currencies, %3$s - tag, %4$s - tag #: woocommerce/payment-gateway/class-sv-wc-payment-gateway-plugin.php:715 -#, php-format msgid "%1$s accepts payment in %2$s only. %3$sConfigure%4$s WooCommerce to accept %2$s to enable this gateway for checkout." msgid_plural "%1$s accepts payment in one of %2$s only. %3$sConfigure%4$s WooCommerce to accept one of %2$s to enable this gateway for checkout." msgstr[0] "" @@ -1166,13 +1117,11 @@ msgstr[1] "" #. translators: Placeholders: %1$s - payment gateway name, %2$s - opening tag, %3$s - closing tag #: woocommerce/payment-gateway/class-sv-wc-payment-gateway-plugin.php:745 -#, php-format msgid "Heads up! %1$s is currently configured to log transaction data for debugging purposes. If you are not experiencing any problems with payment processing, we recommend %2$sturning off Debug Mode%3$s" msgstr "" #. translators: Placeholders: %s - gateway name #: woocommerce/payment-gateway/class-sv-wc-payment-gateway-plugin.php:796 -#, php-format msgid "%s is not configured" msgstr "" @@ -1182,24 +1131,20 @@ msgstr "" #. translators: Placeholders: %1$s - plugin name, %2$s - opening HTML link tag, %3$s - closing HTML link tag #: woocommerce/payment-gateway/class-sv-wc-payment-gateway-plugin.php:845 -#, php-format msgid "Heads up! Apple Pay for %1$s requires WooCommerce version 3.2 or greater. Please %2$supdate WooCommerce%3$s." msgstr "" #. translators: Placeholders: %1$s - plugin name, %2$s - opening HTML link tag, %3$s - closing HTML link tag #: woocommerce/payment-gateway/class-sv-wc-payment-gateway-plugin.php:869 -#, php-format msgid "Heads up! Google Pay for %1$s requires WooCommerce version 3.2 or greater. Please %2$supdate WooCommerce%3$s." msgstr "" #. translators: Placeholders: %1$s - payment gateway title (such as Authorize.net, Braintree, etc), %2$s - tag, %3$s - tag #: woocommerce/payment-gateway/class-sv-wc-payment-gateway-plugin.php:905 -#, php-format msgid "%1$s is inactive for subscription transactions. Please %2$senable tokenization%3$s to activate %1$s for Subscriptions." msgstr "" #: woocommerce/payment-gateway/class-sv-wc-payment-gateway-plugin.php:923 -#, php-format msgid "%1$s is inactive for pre-order transactions. Please %2$senable tokenization%3$s to activate %1$s for Pre-Orders." msgstr "" @@ -1213,7 +1158,6 @@ msgstr "" #. translators: Placeholder: %s - Payment gateway title (e.g. Authorize.Net, Braintree...) #: woocommerce/payment-gateway/class-sv-wc-payment-gateway-privacy.php:130 -#, php-format msgid "%s Customer ID" msgstr "" @@ -1222,7 +1166,6 @@ msgid "Type" msgstr "" #: woocommerce/payment-gateway/class-sv-wc-payment-gateway-privacy.php:270 -#, php-format msgid "Removed payment token \"%d\"" msgstr "" @@ -1396,7 +1339,6 @@ msgstr "" #. translators: Placeholders: %1$s - tag, %2$s - tag #: woocommerce/payment-gateway/class-sv-wc-payment-gateway.php:1458 -#, php-format msgid "Show Detailed Error Messages and API requests/responses on the checkout page and/or save them to the %1$sdebug log%2$s" msgstr "" @@ -1457,43 +1399,36 @@ msgstr "" #. translators: Placeholders: %1$s - site title, %2$s - order number #: woocommerce/payment-gateway/class-sv-wc-payment-gateway.php:1952 -#, php-format msgid "%1$s - Order %2$s" msgstr "" #. translators: Placeholders: %1$s - site title, %2$s - order number. Definitions: Capture as in capture funds from a credit card. #: woocommerce/payment-gateway/class-sv-wc-payment-gateway.php:2084 -#, php-format msgid "%1$s - Capture for Order %2$s" msgstr "" #. translators: Placeholders: %1$s - site title, %2$s - order number #: woocommerce/payment-gateway/class-sv-wc-payment-gateway.php:2227 -#, php-format msgid "%1$s - Refund for Order %2$s" msgstr "" #. translators: Placeholders: %1$s - payment gateway title (such as Authorize.net, Braintree, etc), %2$s - a monetary amount #: woocommerce/payment-gateway/class-sv-wc-payment-gateway.php:2294 -#, php-format msgid "%1$s Refund in the amount of %2$s approved." msgstr "" #. translators: Placeholders: %1$s - payment gateway title (such as Authorize.net, Braintree, etc), %2$s - error code, %3$s - error message #: woocommerce/payment-gateway/class-sv-wc-payment-gateway.php:2324 -#, php-format msgid "%1$s Refund Failed: %2$s - %3$s" msgstr "" #. translators: Placeholders: %1$s - payment gateway title (such as Authorize.net, Braintree, etc), %2$s - error message #: woocommerce/payment-gateway/class-sv-wc-payment-gateway.php:2332 -#, php-format msgid "%1$s Refund Failed: %2$s" msgstr "" #. translators: Placeholders: %s - payment gateway title (such as Authorize.net, Braintree, etc) #: woocommerce/payment-gateway/class-sv-wc-payment-gateway.php:2353 -#, php-format msgid "%s Order completely refunded." msgstr "" @@ -1503,19 +1438,16 @@ msgstr "" #. translators: Placeholders: %1$s - payment gateway title, %2$s - error code, %3$s - error message. Void as in to void an order. #: woocommerce/payment-gateway/class-sv-wc-payment-gateway.php:2495 -#, php-format msgid "%1$s Void Failed: %2$s - %3$s" msgstr "" #. translators: Placeholders: %1$s - payment gateway title, %2$s - error message. Void as in to void an order. #: woocommerce/payment-gateway/class-sv-wc-payment-gateway.php:2503 -#, php-format msgid "%1$s Void Failed: %2$s" msgstr "" #. translators: Placeholders: %1$s - payment gateway title, %2$s - a monetary amount. Void as in to void an order. #: woocommerce/payment-gateway/class-sv-wc-payment-gateway.php:2527 -#, php-format msgid "%1$s Void in the amount of %2$s approved." msgstr "" @@ -1529,7 +1461,6 @@ msgstr "" #: woocommerce/payment-gateway/class-sv-wc-payment-gateway.php:2624 #: woocommerce/payment-gateway/Handlers/Abstract_Payment_Handler.php:153 #: woocommerce/payment-gateway/payment-tokens/class-sv-wc-payment-gateway-payment-tokens-handler.php:179 -#, php-format msgid "Status code %1$s: %2$s" msgstr "" @@ -1538,7 +1469,6 @@ msgstr "" #: woocommerce/payment-gateway/class-sv-wc-payment-gateway.php:2627 #: woocommerce/payment-gateway/Handlers/Abstract_Payment_Handler.php:156 #: woocommerce/payment-gateway/payment-tokens/class-sv-wc-payment-gateway-payment-tokens-handler.php:182 -#, php-format msgid "Status code: %s" msgstr "" @@ -1548,7 +1478,6 @@ msgstr "" #: woocommerce/payment-gateway/class-sv-wc-payment-gateway.php:2630 #: woocommerce/payment-gateway/Handlers/Abstract_Payment_Handler.php:159 #: woocommerce/payment-gateway/payment-tokens/class-sv-wc-payment-gateway-payment-tokens-handler.php:185 -#, php-format msgid "Status message: %s" msgstr "" @@ -1556,13 +1485,11 @@ msgstr "" #: woocommerce/payment-gateway/class-sv-wc-payment-gateway.php:2635 #: woocommerce/payment-gateway/Handlers/Abstract_Payment_Handler.php:165 #: woocommerce/payment-gateway/payment-tokens/class-sv-wc-payment-gateway-payment-tokens-handler.php:193 -#, php-format msgid "Transaction ID %s" msgstr "" #. translators: Placeholders: %1$s - payment method title, %2$s - environment ("Test"), %3$s - transaction type (authorization/charge) #: woocommerce/payment-gateway/class-sv-wc-payment-gateway.php:2826 -#, php-format msgid "%1$s %2$s %3$s Approved" msgstr "" @@ -1579,13 +1506,11 @@ msgstr "" #. translators: Placeholders: %1$s - credit card type (MasterCard, Visa, etc...), %2$s - last four digits of the card #: woocommerce/payment-gateway/class-sv-wc-payment-gateway.php:2836 -#, php-format msgid "%1$s ending in %2$s" msgstr "" #. translators: Placeholders: %1$s - payment gateway title, %2$s - message (probably reason for the transaction being held for review) #: woocommerce/payment-gateway/class-sv-wc-payment-gateway.php:2933 -#, php-format msgid "%1$s Transaction Held for Review (%2$s)" msgstr "" @@ -1596,7 +1521,6 @@ msgstr "" #. translators: Placeholders: %1$s - payment gateway title, %2$s - error message; e.g. Order Note: [Payment method] Payment failed [error] #: woocommerce/payment-gateway/class-sv-wc-payment-gateway.php:3022 -#, php-format msgid "%1$s Payment Failed (%2$s)" msgstr "" @@ -1608,7 +1532,6 @@ msgstr "" #. translators: Placeholders: %1$s - payment gateway title, %2$s - message/error #: woocommerce/payment-gateway/class-sv-wc-payment-gateway.php:3059 -#, php-format msgid "%1$s Transaction Cancelled (%2$s)" msgstr "" @@ -1646,7 +1569,6 @@ msgid "Capture Paid Orders" msgstr "" #: woocommerce/payment-gateway/class-sv-wc-payment-gateway.php:3347 -#, php-format msgid "Automatically capture orders when they are changed to %s." msgstr "" @@ -1664,7 +1586,6 @@ msgstr "" #. translators: Placeholders: %1$s - tag, %2$s - tag #: woocommerce/payment-gateway/class-sv-wc-payment-gateway.php:3543 -#, php-format msgid "This setting %1$sdoes not%2$s change which card types the gateway will accept. Accepted cards are configured from your payment processor account." msgstr "" @@ -1690,7 +1611,6 @@ msgstr "" #. translators: %1$s - gateway name, %2$s - tag, %3$s - tag, %4$s - tag, %5$s - tag #: woocommerce/payment-gateway/class-sv-wc-payment-gateway.php:4525 -#, php-format msgid "Heads up! %1$s is not fully configured and cannot accept payments. Please %2$sreview the documentation%3$s and configure the %4$sgateway settings%5$s." msgstr "" @@ -1714,13 +1634,11 @@ msgstr "" #. translators: Placeholder: %s - external checkout label #: woocommerce/payment-gateway/External_Checkout/Admin.php:331 -#, php-format msgid "%s is disabled." msgstr "" #. translators: Context: Error message displayed to merchants if their store currency is not in one of the accepted currencies by the payment gateway they intend to enable. Placeholders: %1$s - a currency or comma-separated list of currencies, %2$s - opening HTML tag, %3$s - closing HTML tag, %4$s - payment method title/label #: woocommerce/payment-gateway/External_Checkout/Admin.php:395 -#, php-format msgid "Accepts payment in %1$s only. %2$sConfigure%3$s WooCommerce to accept %1$s to enable %4$s." msgid_plural "Accepts payment in %1$s only. %2$sConfigure%3$s WooCommerce to accept %1$s to enable %4$s." msgstr[0] "" @@ -1728,12 +1646,10 @@ msgstr[1] "" #. translators: Placeholders: %1$s - Checkout method label, %2$s - Opening HTML tag, %3$s - Closing HTML tag, %4$s - Opening HTML tag, %5$s - closing HTML tag #: woocommerce/payment-gateway/External_Checkout/Admin.php:432 -#, php-format msgid "Your store %1$scalculates taxes%2$s based on the shipping address, but %1$s %4$sdoes not%5$s share customer shipping information with your store for orders with only virtual products. These orders will have their taxes calculated based on the shop address instead." msgstr "" #: woocommerce/payment-gateway/External_Checkout/Admin.php:465 -#, php-format msgid "%4$s%1$s Notice!%5$s Your store %2$scalculates taxes%3$s based on the billing address, but %1$s %4$sdoes not%5$s share the customer billing address with your store before payment. These orders will have their taxes calculated based on the shipping address (or shop address, for orders with only virtual products)." msgstr "" @@ -1781,7 +1697,6 @@ msgstr "" #. translators: Placeholders: %1$s - tag, %2$s - tag #: woocommerce/payment-gateway/External_Checkout/apple-pay/class-sv-wc-payment-gateway-apple-pay-admin.php:165 -#, php-format msgid "This is found in your %1$sApple developer account%2$s" msgstr "" @@ -1795,7 +1710,6 @@ msgstr "" #. translators: Placeholders: %s - the server's web root path #: woocommerce/payment-gateway/External_Checkout/apple-pay/class-sv-wc-payment-gateway-apple-pay-admin.php:180 -#, php-format msgid "For reference, your current web root path is: %s" msgstr "" @@ -1813,7 +1727,6 @@ msgid "Your site must be served over HTTPS with a valid SSL certificate." msgstr "" #: woocommerce/payment-gateway/External_Checkout/apple-pay/class-sv-wc-payment-gateway-apple-pay-admin.php:240 -#, php-format msgid "Your %1$sMerchant Identity Certificate%2$s cannot be found. Please check your path configuration." msgstr "" @@ -1827,7 +1740,6 @@ msgid "Apple Pay payment authorized." msgstr "" #: woocommerce/payment-gateway/External_Checkout/apple-pay/class-sv-wc-payment-gateway-apple-pay.php:188 -#, php-format msgid "Apple Pay payment failed. %s" msgstr "" @@ -1862,7 +1774,6 @@ msgid "or" msgstr "" #: woocommerce/payment-gateway/External_Checkout/Frontend.php:345 -#, php-format msgid "By submitting your payment, you agree to our %1$sterms and conditions%2$s." msgstr "" @@ -1882,7 +1793,6 @@ msgid "Merchant ID" msgstr "" #: woocommerce/payment-gateway/External_Checkout/Google_Pay/Admin.php:104 -#, php-format msgid "A Google merchant identifier issued after registration with the %1$sGoogle Pay & Wallet Console%2$s. 12-18 characters. Required in production environment." msgstr "" @@ -1901,14 +1811,12 @@ msgid "Google Pay payment authorized." msgstr "" #: woocommerce/payment-gateway/External_Checkout/Google_Pay/Google_Pay.php:540 -#, php-format msgid "Google Pay payment failed. %s" msgstr "" #: woocommerce/payment-gateway/External_Checkout/Orders.php:141 #: woocommerce/payment-gateway/External_Checkout/Orders.php:154 #: woocommerce/payment-gateway/External_Checkout/Orders.php:158 -#, php-format msgid "Error %d: Unable to create order. Please try again." msgstr "" @@ -1918,19 +1826,16 @@ msgstr "" #. translators: Example: "Authorize.Net Transaction Held for Review". Placeholder: %s - Payment gateway title #: woocommerce/payment-gateway/Handlers/Abstract_Payment_Handler.php:366 -#, php-format msgid "%s Transaction Held for Review" msgstr "" #. translators: Placeholders: %s - payment gateway title #: woocommerce/payment-gateway/Handlers/Abstract_Payment_Handler.php:437 -#, php-format msgid "%s Payment Failed" msgstr "" #. translators: Placeholders: %s - payment gateway title #: woocommerce/payment-gateway/Handlers/Abstract_Payment_Handler.php:464 -#, php-format msgid "%s Transaction Cancelled" msgstr "" @@ -1952,24 +1857,20 @@ msgstr "" #. translators: Placeholders: %1$s - payment gateway title (such as Authorize.net, Braintree, etc), %2$s - transaction amount. Definitions: Capture, as in capture funds from a credit card. #: woocommerce/payment-gateway/Handlers/Capture.php:190 -#, php-format msgid "%1$s Capture of %2$s Approved" msgstr "" #. translators: Placeholders: %1$s - payment gateway title (such as Authorize.net, Braintree, etc), %2$s - failure message. Definitions: "capture" as in capturing funds from a credit card. #: woocommerce/payment-gateway/Handlers/Capture.php:231 -#, php-format msgid "%1$s Capture Failed: %2$s" msgstr "" #: woocommerce/payment-gateway/integrations/class-sv-wc-payment-gateway-integration-pre-orders.php:262 -#, php-format msgid "Pre-Order Tokenization attempt failed (%s)" msgstr "" #. translators: Context: A payment is released for a pre-order. Placeholders: %1$s - Site name, %2$s - Order number #: woocommerce/payment-gateway/integrations/class-sv-wc-payment-gateway-integration-pre-orders.php:310 -#, php-format msgid "%1$s - Pre-Order Release Payment for Order %2$s" msgstr "" @@ -1979,19 +1880,16 @@ msgstr "" #. translators: Context: A payment is released for a pre-order. Placeholders: %1$s - Payment gateway name, %2$s - Either 'Authorization' or 'Charge' (untranslated), %3$s - Payment method type (e.g. 'PayPal', 'Credit Card', etc.), %4$s - Last four digits of the card or account, %5$s - Expiration date of the payment method #: woocommerce/payment-gateway/integrations/class-sv-wc-payment-gateway-integration-pre-orders.php:343 -#, php-format msgid "%1$s %2$s Pre-Order Release Payment Approved: %3$s ending in %4$s (expires %5$s)" msgstr "" #. translators: Context: A payment is released for a pre-order. Placeholders: %1$s - Payment gateway name, %2$s - Payment method type (e.g. 'Bank Account'), %3$s - Last four digits of the account #: woocommerce/payment-gateway/integrations/class-sv-wc-payment-gateway-integration-pre-orders.php:356 -#, php-format msgid "%1$s eCheck Pre-Order Release Payment Approved: %2$s ending in %3$s" msgstr "" #. translators: Context: Release of payment for pre-order failed. Placeholder: %s - Error message #: woocommerce/payment-gateway/integrations/class-sv-wc-payment-gateway-integration-pre-orders.php:408 -#, php-format msgid "Pre-Order Release Payment Failed: %s" msgstr "" @@ -2001,19 +1899,16 @@ msgstr "" #. translators: Placeholders: %1$s - Site name, %2$s - Order number #: woocommerce/payment-gateway/integrations/class-sv-wc-payment-gateway-integration-subscriptions.php:391 -#, php-format msgid "%1$s - Subscription Renewal Order %2$s" msgstr "" #. translators: Placeholders: %1$s - payment gateway title, %2$s - error message; e.g. Order Note: [Payment method] Payment Change failed [error] #: woocommerce/payment-gateway/integrations/class-sv-wc-payment-gateway-integration-subscriptions.php:528 -#, php-format msgid "%1$s Payment Change Failed (%2$s)" msgstr "" #. translators: Context: Payment made for order. Placeholders: %1$s - Payment method name (e.g. "Credit Card", "PayPal", etc.), %2$s - Last four digits of the card/account used #: woocommerce/payment-gateway/integrations/class-sv-wc-payment-gateway-integration-subscriptions.php:686 -#, php-format msgid "Via %1$s ending in %2$s" msgstr "" @@ -2022,7 +1917,6 @@ msgid "Subscriptions" msgstr "" #: woocommerce/payment-gateway/integrations/class-sv-wc-payment-gateway-integration-subscriptions.php:772 -#, php-format msgctxt "hash before order number" msgid "#%s" msgstr "" @@ -2038,7 +1932,6 @@ msgstr "" #. translators: Context: Error message. Placeholder: %s - Label of the related value #: woocommerce/payment-gateway/integrations/class-sv-wc-payment-gateway-integration-subscriptions.php:907 #: woocommerce/payment-gateway/integrations/class-sv-wc-payment-gateway-integration-subscriptions.php:913 -#, php-format msgid "%s is required." msgstr "" @@ -2073,7 +1966,6 @@ msgstr "" #. translators: Placeholders: %1$s - Plugin name, %2$s - Opening HTML tag, %3$s - Closing HTML tag, %4$s - Opening HTML tag, %5$s - Closing HTML tag #: woocommerce/Plugin/Lifecycle.php:403 -#, php-format msgid "Are you having a great experience with %1$s so far? Please consider %2$sleaving a review%3$s! If things aren't going quite as expected, we're happy to help -- please %4$sreach out to our support team%5$s." msgstr "" @@ -2083,7 +1975,6 @@ msgstr "" #. translators: Placeholder: %s - setting ID #: woocommerce/rest-api/Controllers/Settings.php:169 -#, php-format msgid "Setting %s does not exist" msgstr "" @@ -2093,7 +1984,6 @@ msgstr "" #. translators: Placeholder: %s - Error message #: woocommerce/rest-api/Controllers/Settings.php:225 -#, php-format msgid "Could not update setting: %s" msgstr "" @@ -2146,12 +2036,10 @@ msgid "A list of key/value pairs defining the display value of each setting opti msgstr "" #: woocommerce/utilities/class-sv-wp-background-job-handler.php:661 -#, php-format msgid "Job data key \"%s\" not set" msgstr "" #: woocommerce/utilities/class-sv-wp-background-job-handler.php:665 -#, php-format msgid "Job data key \"%s\" is not an array" msgstr "" diff --git a/woocommerce/payment-gateway/assets/css/admin/sv-wc-payment-gateway-admin-order.min.css b/woocommerce/payment-gateway/assets/css/admin/sv-wc-payment-gateway-admin-order.min.css index be8492c84..34ab52f28 100644 --- a/woocommerce/payment-gateway/assets/css/admin/sv-wc-payment-gateway-admin-order.min.css +++ b/woocommerce/payment-gateway/assets/css/admin/sv-wc-payment-gateway-admin-order.min.css @@ -1 +1,2 @@ -#woocommerce-order-items .sv-wc-payment-gateway-partial-capture .capture-actions{margin-top:5px;padding-top:12px;border-top:1px solid #dfdfdf}#woocommerce-order-items .sv-wc-payment-gateway-partial-capture .capture-actions .button{float:right;margin-left:4px}#woocommerce-order-items .sv-wc-payment-gateway-partial-capture .capture-actions .cancel-action{float:left;margin-left:0}/*# sourceMappingURL=sv-wc-payment-gateway-admin-order.min.css.map */ +#woocommerce-order-items .sv-wc-payment-gateway-partial-capture .capture-actions{margin-top:5px;padding-top:12px;border-top:1px solid #dfdfdf}#woocommerce-order-items .sv-wc-payment-gateway-partial-capture .capture-actions .button{float:right;margin-left:4px}#woocommerce-order-items .sv-wc-payment-gateway-partial-capture .capture-actions .cancel-action{float:left;margin-left:0} +/*# sourceMappingURL=sv-wc-payment-gateway-admin-order.min.css.map */ diff --git a/woocommerce/payment-gateway/assets/css/admin/sv-wc-payment-gateway-admin-order.min.css.map b/woocommerce/payment-gateway/assets/css/admin/sv-wc-payment-gateway-admin-order.min.css.map index 4babd764c..18965dcf8 100644 --- a/woocommerce/payment-gateway/assets/css/admin/sv-wc-payment-gateway-admin-order.min.css.map +++ b/woocommerce/payment-gateway/assets/css/admin/sv-wc-payment-gateway-admin-order.min.css.map @@ -1 +1,7 @@ -{"version":3,"sourceRoot":"","sources":["sv-wc-payment-gateway-admin-order.scss"],"names":[],"mappings":"AAWC,iFACC,eACA,iBACA,6BAEA,yFACC,YACA,gBAGD,gGACC,WACA","file":"sv-wc-payment-gateway-admin-order.min.css"} \ No newline at end of file +{ +"version": 3, +"mappings": "AAWC,gFAAwD,CACvD,UAAU,CAAE,GAAG,CACf,WAAW,CAAE,IAAI,CACjB,UAAU,CAAE,iBAAiB,CAE7B,wFAAQ,CACP,KAAK,CAAE,KAAK,CACZ,WAAW,CAAE,GAAG,CAGjB,+FAAe,CACd,KAAK,CAAE,IAAI,CACX,WAAW,CAAE,CAAC", +"sources": ["sv-wc-payment-gateway-admin-order.scss"], +"names": [], +"file": "sv-wc-payment-gateway-admin-order.min.css" +} diff --git a/woocommerce/payment-gateway/assets/css/admin/sv-wc-payment-gateway-token-editor.min.css b/woocommerce/payment-gateway/assets/css/admin/sv-wc-payment-gateway-token-editor.min.css index dbb9e6174..e995ed82b 100644 --- a/woocommerce/payment-gateway/assets/css/admin/sv-wc-payment-gateway-token-editor.min.css +++ b/woocommerce/payment-gateway/assets/css/admin/sv-wc-payment-gateway-token-editor.min.css @@ -1 +1,2 @@ -table.sv_wc_payment_gateway_token_editor{width:auto}table.sv_wc_payment_gateway_token_editor th{padding:9px 7px !important;vertical-align:middle}table.sv_wc_payment_gateway_token_editor td{vertical-align:middle;padding:10px 7px;line-height:2em}table.sv_wc_payment_gateway_token_editor tr:nth-child(odd) td{background:#f9f9f9}table.sv_wc_payment_gateway_token_editor tr.token input.error{border-color:#a00}table.sv_wc_payment_gateway_token_editor .token-default{text-align:center}table.sv_wc_payment_gateway_token_editor .token-actions{text-align:right}table.sv_wc_payment_gateway_token_editor .actions{font-weight:normal;text-align:right}table.sv_wc_payment_gateway_token_editor .actions .error{color:#a00;padding-right:10px;font-weight:bold}/*# sourceMappingURL=sv-wc-payment-gateway-token-editor.min.css.map */ +table.sv_wc_payment_gateway_token_editor{width:auto}table.sv_wc_payment_gateway_token_editor th{padding:9px 7px !important;vertical-align:middle}table.sv_wc_payment_gateway_token_editor td{vertical-align:middle;padding:10px 7px;line-height:2em}table.sv_wc_payment_gateway_token_editor tr:nth-child(odd) td{background:#f9f9f9}table.sv_wc_payment_gateway_token_editor tr.token input.error{border-color:#a00}table.sv_wc_payment_gateway_token_editor .token-default{text-align:center}table.sv_wc_payment_gateway_token_editor .token-actions{text-align:right}table.sv_wc_payment_gateway_token_editor .actions{font-weight:normal;text-align:right}table.sv_wc_payment_gateway_token_editor .actions .error{color:#a00;padding-right:10px;font-weight:bold} +/*# sourceMappingURL=sv-wc-payment-gateway-token-editor.min.css.map */ diff --git a/woocommerce/payment-gateway/assets/css/admin/sv-wc-payment-gateway-token-editor.min.css.map b/woocommerce/payment-gateway/assets/css/admin/sv-wc-payment-gateway-token-editor.min.css.map index 56218900a..159306453 100644 --- a/woocommerce/payment-gateway/assets/css/admin/sv-wc-payment-gateway-token-editor.min.css.map +++ b/woocommerce/payment-gateway/assets/css/admin/sv-wc-payment-gateway-token-editor.min.css.map @@ -1 +1,7 @@ -{"version":3,"sourceRoot":"","sources":["sv-wc-payment-gateway-token-editor.scss"],"names":[],"mappings":"AAQA,yCAEC,WAEA,4CACC,2BACA,sBAGD,4CACC,sBACA,iBACA,gBAGD,8DACC,mBAGD,8DACC,kBAID,wDACC,kBAID,wDACC,iBAGD,kDACC,mBACA,iBAEA,yDACC,WACA,mBACA","file":"sv-wc-payment-gateway-token-editor.min.css"} \ No newline at end of file +{ +"version": 3, +"mappings": "AAQA,wCAAyC,CAExC,KAAK,CAAE,IAAI,CAEX,2CAAG,CACF,OAAO,CAAE,kBAAiB,CAC1B,cAAc,CAAE,MAAM,CAGvB,2CAAG,CACF,cAAc,CAAE,MAAM,CACtB,OAAO,CAAE,QAAQ,CACjB,WAAW,CAAE,GAAG,CAGjB,6DAAqB,CACpB,UAAU,CAAE,OAAO,CAGpB,6DAAqB,CACpB,YAAY,CAAE,IAAI,CAInB,uDAAe,CACd,UAAU,CAAE,MAAM,CAInB,uDAAe,CACd,UAAU,CAAE,KAAK,CAGlB,iDAAS,CACR,WAAW,CAAE,MAAM,CACnB,UAAU,CAAE,KAAK,CAEjB,wDAAO,CACN,KAAK,CAAE,IAAI,CACX,aAAa,CAAE,IAAI,CACnB,WAAW,CAAE,IAAI", +"sources": ["sv-wc-payment-gateway-token-editor.scss"], +"names": [], +"file": "sv-wc-payment-gateway-token-editor.min.css" +} diff --git a/woocommerce/payment-gateway/assets/css/frontend/sv-wc-payment-gateway-my-payment-methods.min.css b/woocommerce/payment-gateway/assets/css/frontend/sv-wc-payment-gateway-my-payment-methods.min.css index 4329883ca..85d14dad3 100644 --- a/woocommerce/payment-gateway/assets/css/frontend/sv-wc-payment-gateway-my-payment-methods.min.css +++ b/woocommerce/payment-gateway/assets/css/frontend/sv-wc-payment-gateway-my-payment-methods.min.css @@ -1 +1,2 @@ -table.woocommerce-MyAccount-paymentMethods{font-size:.85em}table.woocommerce-MyAccount-paymentMethods th,table.woocommerce-MyAccount-paymentMethods td{vertical-align:middle}table.woocommerce-MyAccount-paymentMethods .woocommerce-PaymentMethod--title{display:none}table.woocommerce-MyAccount-paymentMethods th.woocommerce-PaymentMethod--details span,table.woocommerce-MyAccount-paymentMethods th.woocommerce-PaymentMethod--default span,table.woocommerce-MyAccount-paymentMethods th.woocommerce-PaymentMethod--actions span{display:none}table.woocommerce-MyAccount-paymentMethods th.woocommerce-PaymentMethod--expires,table.woocommerce-MyAccount-paymentMethods th.woocommerce-PaymentMethod--default{text-align:center}table.woocommerce-MyAccount-paymentMethods td.woocommerce-PaymentMethod--method input{width:100%}table.woocommerce-MyAccount-paymentMethods td.woocommerce-PaymentMethod--details{white-space:nowrap}table.woocommerce-MyAccount-paymentMethods td.woocommerce-PaymentMethod--details img{width:40px;height:25px;margin-right:.5em;vertical-align:middle;display:inline !important}table.woocommerce-MyAccount-paymentMethods td.woocommerce-PaymentMethod--expires{text-align:center}table.woocommerce-MyAccount-paymentMethods td.woocommerce-PaymentMethod--default{text-align:center}table.woocommerce-MyAccount-paymentMethods td.woocommerce-PaymentMethod--default mark{display:none;color:#fff;background-color:#3d9cd2;font-size:.75em;text-transform:uppercase;padding:2px 4px;border-radius:2px}table.woocommerce-MyAccount-paymentMethods td.woocommerce-PaymentMethod--default mark:first-child{display:inline-block}table.woocommerce-MyAccount-paymentMethods td.woocommerce-PaymentMethod--actions{text-align:center}table.woocommerce-MyAccount-paymentMethods td.woocommerce-PaymentMethod--actions .button{margin:.125em}table.woocommerce-MyAccount-paymentMethods td.woocommerce-PaymentMethod--actions .button.save{display:none}table.woocommerce-MyAccount-paymentMethods td.woocommerce-PaymentMethod--actions .button.delete{display:inline-block}table.woocommerce-MyAccount-paymentMethods.editing .payment-method:not(.editing){opacity:.5;pointer-events:none;cursor:not-allowed}table.woocommerce-MyAccount-paymentMethods.editing .payment-method:not(.editing):hover{opacity:1}table.woocommerce-MyAccount-paymentMethods.editing .payment-method.editing td.woocommerce-PaymentMethod--actions .button.save{display:inline-block}table.woocommerce-MyAccount-paymentMethods.editing .payment-method.editing td.woocommerce-PaymentMethod--actions .button.delete{display:none}table.woocommerce-MyAccount-paymentMethods .button{white-space:nowrap}table.woocommerce-MyAccount-paymentMethods tbody tr.error td{color:#fff;text-align:center;background-color:#e26838;border-radius:0 0 3px 3px;padding:5px}@media screen and (max-width: 768px){table.woocommerce-MyAccount-paymentMethods td.woocommerce-PaymentMethod--expires,table.woocommerce-MyAccount-paymentMethods td.woocommerce-PaymentMethod--default{text-align:right}table.woocommerce-MyAccount-paymentMethods td.woocommerce-PaymentMethod--actions{text-align:center}table.woocommerce-MyAccount-paymentMethods td.woocommerce-PaymentMethod--actions:before{display:none}table.woocommerce-MyAccount-paymentMethods td.woocommerce-PaymentMethod--actions .button{float:none;margin:.125em}}.woocommerce-MyAccount-content .button.disabled[href*=add-payment-method]{pointer-events:none}/*# sourceMappingURL=sv-wc-payment-gateway-my-payment-methods.min.css.map */ +@use '../../../../assets/css/mixins';table.woocommerce-MyAccount-paymentMethods{font-size:0.85em}table.woocommerce-MyAccount-paymentMethods th,table.woocommerce-MyAccount-paymentMethods td{vertical-align:middle}table.woocommerce-MyAccount-paymentMethods .woocommerce-PaymentMethod--title{display:none}table.woocommerce-MyAccount-paymentMethods th.woocommerce-PaymentMethod--details span,table.woocommerce-MyAccount-paymentMethods th.woocommerce-PaymentMethod--default span,table.woocommerce-MyAccount-paymentMethods th.woocommerce-PaymentMethod--actions span{display:none}table.woocommerce-MyAccount-paymentMethods th.woocommerce-PaymentMethod--expires,table.woocommerce-MyAccount-paymentMethods th.woocommerce-PaymentMethod--default{text-align:center}table.woocommerce-MyAccount-paymentMethods td.woocommerce-PaymentMethod--method input{width:100%}table.woocommerce-MyAccount-paymentMethods td.woocommerce-PaymentMethod--details{white-space:nowrap}table.woocommerce-MyAccount-paymentMethods td.woocommerce-PaymentMethod--details img{width:40px;height:25px;margin-right:0.5em;vertical-align:middle;display:inline !important}table.woocommerce-MyAccount-paymentMethods td.woocommerce-PaymentMethod--expires{text-align:center}table.woocommerce-MyAccount-paymentMethods td.woocommerce-PaymentMethod--default{text-align:center}table.woocommerce-MyAccount-paymentMethods td.woocommerce-PaymentMethod--default mark{display:none;color:white;background-color:#3d9cd2;font-size:0.75em;text-transform:uppercase;padding:2px 4px;border-radius:2px}table.woocommerce-MyAccount-paymentMethods td.woocommerce-PaymentMethod--default mark:first-child{display:inline-block}table.woocommerce-MyAccount-paymentMethods td.woocommerce-PaymentMethod--actions{text-align:center}table.woocommerce-MyAccount-paymentMethods td.woocommerce-PaymentMethod--actions .button{margin:.125em}table.woocommerce-MyAccount-paymentMethods td.woocommerce-PaymentMethod--actions .button.save{display:none}table.woocommerce-MyAccount-paymentMethods td.woocommerce-PaymentMethod--actions .button.delete{display:inline-block}table.woocommerce-MyAccount-paymentMethods.editing .payment-method:not(.editing){opacity:0.5;pointer-events:none;cursor:not-allowed}table.woocommerce-MyAccount-paymentMethods.editing .payment-method:not(.editing):hover{opacity:1}table.woocommerce-MyAccount-paymentMethods.editing .payment-method.editing td.woocommerce-PaymentMethod--actions .button.save{display:inline-block}table.woocommerce-MyAccount-paymentMethods.editing .payment-method.editing td.woocommerce-PaymentMethod--actions .button.delete{display:none}table.woocommerce-MyAccount-paymentMethods .button{white-space:nowrap}table.woocommerce-MyAccount-paymentMethods tbody tr.error td{color:white;text-align:center;background-color:#e26838;border-radius:0 0 3px 3px;padding:5px}@media screen and (max-width: 768px){table.woocommerce-MyAccount-paymentMethods td.woocommerce-PaymentMethod--expires,table.woocommerce-MyAccount-paymentMethods td.woocommerce-PaymentMethod--default{text-align:right}table.woocommerce-MyAccount-paymentMethods td.woocommerce-PaymentMethod--actions{text-align:center}table.woocommerce-MyAccount-paymentMethods td.woocommerce-PaymentMethod--actions:before{display:none}table.woocommerce-MyAccount-paymentMethods td.woocommerce-PaymentMethod--actions .button{float:none;margin:.125em}}.woocommerce-MyAccount-content .button.disabled[href*="add-payment-method"]{pointer-events:none} +/*# sourceMappingURL=sv-wc-payment-gateway-my-payment-methods.min.css.map */ diff --git a/woocommerce/payment-gateway/assets/css/frontend/sv-wc-payment-gateway-my-payment-methods.min.css.map b/woocommerce/payment-gateway/assets/css/frontend/sv-wc-payment-gateway-my-payment-methods.min.css.map index 1b0cee045..c6e8ff7c2 100644 --- a/woocommerce/payment-gateway/assets/css/frontend/sv-wc-payment-gateway-my-payment-methods.min.css.map +++ b/woocommerce/payment-gateway/assets/css/frontend/sv-wc-payment-gateway-my-payment-methods.min.css.map @@ -1 +1,7 @@ -{"version":3,"sourceRoot":"","sources":["sv-wc-payment-gateway-my-payment-methods.scss"],"names":[],"mappings":"AAWA,2CAEC,gBAEA,4FACC,sBAGD,6EACC,aAMA,kQACC,aAIF,kKAEC,kBAGD,sFACC,WAGD,iFACC,mBAEA,qFACC,WACA,YACA,kBACA,sBACA,0BAIF,iFACC,kBAGD,iFACC,kBAEA,sFACC,aACA,WACA,yBACA,gBACA,yBACA,gBACA,kBAEA,kGACC,qBAKH,iFACC,kBAEA,yFACC,cAEA,8FACC,aAED,gGACC,qBAOF,iFACC,WACA,oBACA,mBAGD,uFACC,UAKA,8HACC,qBAED,gIACC,aAKH,mDACC,mBAGD,6DACC,WACA,kBACA,yBACA,0BACA,YAKF,qCAGE,kKAEC,iBAGD,iFACC,kBAEA,wFACC,aAGD,yFACC,WACA,eASH,0EACC","file":"sv-wc-payment-gateway-my-payment-methods.min.css"} \ No newline at end of file +{ +"version": 3, +"mappings": "AASA,oCAAoC,CAEpC,0CAA2C,CAE1C,SAAS,CAAE,MAAM,CAEjB,2FAAO,CACN,cAAc,CAAE,MAAM,CAGvB,4EAAkC,CACjC,OAAO,CAAE,IAAI,CAMb,iQAAK,CACJ,OAAO,CAAE,IAAI,CAIf,iKACsC,CACrC,UAAU,CAAE,MAAM,CAGnB,qFAA2C,CAC1C,KAAK,CAAE,IAAI,CAGZ,gFAAsC,CACrC,WAAW,CAAE,MAAM,CAEnB,oFAAI,CACH,KAAK,CAAE,IAAI,CACX,MAAM,CAAE,IAAI,CACZ,YAAY,CAAE,KAAK,CACnB,cAAc,CAAE,MAAM,CACtB,OAAO,CAAE,iBAAiB,CAI5B,gFAAsC,CACrC,UAAU,CAAE,MAAM,CAGnB,gFAAsC,CACrC,UAAU,CAAE,MAAM,CAElB,qFAAK,CACJ,OAAO,CAAE,IAAI,CACb,KAAK,CAAE,KAAK,CACZ,gBAAgB,CAAE,OAAO,CACzB,SAAS,CAAE,MAAM,CACjB,cAAc,CAAE,SAAS,CACzB,OAAO,CAAE,OAAO,CAChB,aAAa,CAAE,GAAG,CAElB,iGAAc,CACb,OAAO,CAAE,YAAY,CAKxB,gFAAsC,CACrC,UAAU,CAAE,MAAM,CAElB,wFAAQ,CACP,MAAM,CAAE,MAAM,CAEd,6FAAO,CACN,OAAO,CAAE,IAAI,CAEd,+FAAS,CACR,OAAO,CAAE,YAAY,CAOvB,gFAA8B,CAC7B,OAAO,CAAE,GAAG,CACZ,cAAc,CAAE,IAAI,CACpB,MAAM,CAAE,WAAW,CAGpB,sFAAoC,CACnC,OAAO,CAAE,CAAC,CAKV,6HAAa,CACZ,OAAO,CAAE,YAAY,CAEtB,+HAAe,CACd,OAAO,CAAE,IAAI,CAKhB,kDAAQ,CACP,WAAW,CAAE,MAAM,CAGpB,4DAAkB,CACjB,KAAK,CAAE,KAAK,CACZ,UAAU,CAAE,MAAM,CAClB,gBAAgB,CAAE,OAAO,CACzB,aAAa,CAAE,WAAW,CAC1B,OAAO,CAAE,GAAG,CAKd,oCAAqC,CAGnC,iKACsC,CACrC,UAAU,CAAE,KAAK,CAGlB,gFAAsC,CACrC,UAAU,CAAE,MAAM,CAElB,uFAAS,CACR,OAAO,CAAE,IAAI,CAGd,wFAAQ,CACP,KAAK,CAAE,IAAI,CACX,MAAM,CAAE,MAAM,EASjB,2EAA6C,CAC5C,cAAc,CAAE,IAAI", +"sources": ["sv-wc-payment-gateway-my-payment-methods.scss"], +"names": [], +"file": "sv-wc-payment-gateway-my-payment-methods.min.css" +} diff --git a/woocommerce/payment-gateway/assets/css/frontend/sv-wc-payment-gateway-payment-form.min.css b/woocommerce/payment-gateway/assets/css/frontend/sv-wc-payment-gateway-payment-form.min.css index 9144a2103..4ffa3db30 100644 --- a/woocommerce/payment-gateway/assets/css/frontend/sv-wc-payment-gateway-payment-form.min.css +++ b/woocommerce/payment-gateway/assets/css/frontend/sv-wc-payment-gateway-payment-form.min.css @@ -1 +1,2 @@ -.woocommerce-checkout #payment div.payment_box .sv-wc-payment-gateway-payment-form-manage-payment-methods,#add_payment_method .sv-wc-payment-gateway-payment-form-manage-payment-methods{display:block;margin:1em 0;text-align:center}.woocommerce-checkout #payment div.payment_box .sv-wc-payment-gateway-payment-form-saved-payment-method,#add_payment_method .sv-wc-payment-gateway-payment-form-saved-payment-method{display:inline-block;margin-bottom:.5em}.woocommerce-checkout #payment div.payment_box .sv-wc-payment-gateway-payment-form-saved-payment-method .nickname,#add_payment_method .sv-wc-payment-gateway-payment-form-saved-payment-method .nickname{margin-right:.5em}.woocommerce-checkout #payment div.payment_box .sv-wc-payment-gateway-payment-form-saved-payment-method img,#add_payment_method .sv-wc-payment-gateway-payment-form-saved-payment-method img{float:none;width:30px;height:20px;display:inline-block;margin-right:.5em;vertical-align:middle}.woocommerce-checkout #payment div.payment_box input.js-sv-wc-payment-gateway-credit-card-form-input[type=tel],.woocommerce-checkout #payment div.payment_box input.js-sv-wc-payment-gateway-credit-card-form-input[type=text],.woocommerce-checkout #payment div.payment_box input.js-sv-wc-payment-gateway-echeck-form-input[type=tel],.woocommerce-checkout #payment div.payment_box input.js-sv-wc-payment-gateway-echeck-form-input[type=text],.woocommerce-checkout #payment div.payment_box input.js-sv-wc-payment-gateway-form-nickname,#add_payment_method input.js-sv-wc-payment-gateway-credit-card-form-input[type=tel],#add_payment_method input.js-sv-wc-payment-gateway-credit-card-form-input[type=text],#add_payment_method input.js-sv-wc-payment-gateway-echeck-form-input[type=tel],#add_payment_method input.js-sv-wc-payment-gateway-echeck-form-input[type=text],#add_payment_method input.js-sv-wc-payment-gateway-form-nickname{font-size:1.5em;padding:8px}.woocommerce-checkout #payment div.payment_box input.js-sv-wc-payment-gateway-credit-card-form-input[type=tel]:focus,.woocommerce-checkout #payment div.payment_box input.js-sv-wc-payment-gateway-credit-card-form-input[type=text]:focus,#add_payment_method input.js-sv-wc-payment-gateway-credit-card-form-input[type=tel]:focus,#add_payment_method input.js-sv-wc-payment-gateway-credit-card-form-input[type=text]:focus{box-shadow:0 0 .1875em #3498db}.woocommerce-checkout #payment div.payment_box input.js-sv-wc-payment-gateway-credit-card-form-input[type=tel].identified,.woocommerce-checkout #payment div.payment_box input.js-sv-wc-payment-gateway-credit-card-form-input[type=text].identified,#add_payment_method input.js-sv-wc-payment-gateway-credit-card-form-input[type=tel].identified,#add_payment_method input.js-sv-wc-payment-gateway-credit-card-form-input[type=text].identified{border-color:#69bf29}.woocommerce-checkout #payment div.payment_box input.js-sv-wc-payment-gateway-credit-card-form-input[type=tel].identified:focus,.woocommerce-checkout #payment div.payment_box input.js-sv-wc-payment-gateway-credit-card-form-input[type=text].identified:focus,#add_payment_method input.js-sv-wc-payment-gateway-credit-card-form-input[type=tel].identified:focus,#add_payment_method input.js-sv-wc-payment-gateway-credit-card-form-input[type=text].identified:focus{box-shadow:0 0 .1875em #69bf29}@media screen and (min-width: 330px){.woocommerce-checkout #payment div.payment_box input.js-sv-wc-payment-gateway-credit-card-form-account-number,#add_payment_method input.js-sv-wc-payment-gateway-credit-card-form-account-number{background-image:url("../../images/card-cc-plain.svg");background-repeat:no-repeat;background-position:right 10px center;background-size:50px 31px}.woocommerce-checkout #payment div.payment_box input.js-sv-wc-payment-gateway-credit-card-form-account-number.visa,#add_payment_method input.js-sv-wc-payment-gateway-credit-card-form-account-number.visa{background-image:url("../../images/card-visa.svg")}.woocommerce-checkout #payment div.payment_box input.js-sv-wc-payment-gateway-credit-card-form-account-number.mastercard,#add_payment_method input.js-sv-wc-payment-gateway-credit-card-form-account-number.mastercard{background-image:url("../../images/card-mastercard.svg")}.woocommerce-checkout #payment div.payment_box input.js-sv-wc-payment-gateway-credit-card-form-account-number.dinersclub,#add_payment_method input.js-sv-wc-payment-gateway-credit-card-form-account-number.dinersclub{background-image:url("../../images/card-dinersclub.svg")}.woocommerce-checkout #payment div.payment_box input.js-sv-wc-payment-gateway-credit-card-form-account-number.maestro,#add_payment_method input.js-sv-wc-payment-gateway-credit-card-form-account-number.maestro{background-image:url("../../images/card-maestro.svg")}.woocommerce-checkout #payment div.payment_box input.js-sv-wc-payment-gateway-credit-card-form-account-number.jcb,#add_payment_method input.js-sv-wc-payment-gateway-credit-card-form-account-number.jcb{background-image:url("../../images/card-jcb.svg")}.woocommerce-checkout #payment div.payment_box input.js-sv-wc-payment-gateway-credit-card-form-account-number.amex,#add_payment_method input.js-sv-wc-payment-gateway-credit-card-form-account-number.amex{background-image:url("../../images/card-amex.svg")}.woocommerce-checkout #payment div.payment_box input.js-sv-wc-payment-gateway-credit-card-form-account-number.discover,#add_payment_method input.js-sv-wc-payment-gateway-credit-card-form-account-number.discover{background-image:url("../../images/card-discover.svg")}.woocommerce-checkout #payment div.payment_box input.js-sv-wc-payment-gateway-credit-card-form-account-number.visaelectron,#add_payment_method input.js-sv-wc-payment-gateway-credit-card-form-account-number.visaelectron{background-image:url("../../images/card-visa-electron.svg")}.woocommerce-checkout #payment div.payment_box input.js-sv-wc-payment-gateway-credit-card-form-account-number.invalid-card-type,#add_payment_method input.js-sv-wc-payment-gateway-credit-card-form-account-number.invalid-card-type{background-image:url("../../images/card-cc-invalid.svg")}}.woocommerce-checkout #payment div.payment_box .js-sv-wc-payment-gateway-echeck-form-check-hint,#add_payment_method .js-sv-wc-payment-gateway-echeck-form-check-hint{margin:0 0 3px 2px;cursor:pointer}.woocommerce-checkout #payment div.payment_box .js-sv-wc-payment-gateway-echeck-form-sample-check,#add_payment_method .js-sv-wc-payment-gateway-echeck-form-sample-check{margin:1em}.woocommerce-checkout #payment div.payment_box .js-sv-wc-payment-gateway-echeck-form-sample-check img,#add_payment_method .js-sv-wc-payment-gateway-echeck-form-sample-check img{min-height:135px}ul.payment_methods li div.sv-wc-payment-gateway-card-icons{vertical-align:middle;display:flex;flex-wrap:wrap;margin-left:auto;gap:5px}ul.payment_methods li div.sv-wc-payment-gateway-card-icons img{float:none !important}/*# sourceMappingURL=sv-wc-payment-gateway-payment-form.min.css.map */ +.woocommerce-checkout #payment div.payment_box .sv-wc-payment-gateway-payment-form-manage-payment-methods,#add_payment_method .sv-wc-payment-gateway-payment-form-manage-payment-methods{display:block;margin:1em 0;text-align:center}.woocommerce-checkout #payment div.payment_box .sv-wc-payment-gateway-payment-form-saved-payment-method,#add_payment_method .sv-wc-payment-gateway-payment-form-saved-payment-method{display:inline-block;margin-bottom:.5em}.woocommerce-checkout #payment div.payment_box .sv-wc-payment-gateway-payment-form-saved-payment-method .nickname,#add_payment_method .sv-wc-payment-gateway-payment-form-saved-payment-method .nickname{margin-right:.5em}.woocommerce-checkout #payment div.payment_box .sv-wc-payment-gateway-payment-form-saved-payment-method img,#add_payment_method .sv-wc-payment-gateway-payment-form-saved-payment-method img{float:none;width:30px;height:20px;display:inline-block;margin-right:.5em;vertical-align:middle}.woocommerce-checkout #payment div.payment_box input.js-sv-wc-payment-gateway-credit-card-form-input[type="tel"],.woocommerce-checkout #payment div.payment_box input.js-sv-wc-payment-gateway-credit-card-form-input[type="text"],.woocommerce-checkout #payment div.payment_box input.js-sv-wc-payment-gateway-echeck-form-input[type="tel"],.woocommerce-checkout #payment div.payment_box input.js-sv-wc-payment-gateway-echeck-form-input[type="text"],.woocommerce-checkout #payment div.payment_box input.js-sv-wc-payment-gateway-form-nickname,#add_payment_method input.js-sv-wc-payment-gateway-credit-card-form-input[type="tel"],#add_payment_method input.js-sv-wc-payment-gateway-credit-card-form-input[type="text"],#add_payment_method input.js-sv-wc-payment-gateway-echeck-form-input[type="tel"],#add_payment_method input.js-sv-wc-payment-gateway-echeck-form-input[type="text"],#add_payment_method input.js-sv-wc-payment-gateway-form-nickname{font-size:1.5em;padding:8px}.woocommerce-checkout #payment div.payment_box input.js-sv-wc-payment-gateway-credit-card-form-input[type="tel"]:focus,.woocommerce-checkout #payment div.payment_box input.js-sv-wc-payment-gateway-credit-card-form-input[type="text"]:focus,#add_payment_method input.js-sv-wc-payment-gateway-credit-card-form-input[type="tel"]:focus,#add_payment_method input.js-sv-wc-payment-gateway-credit-card-form-input[type="text"]:focus{box-shadow:0 0 .1875em #3498db}.woocommerce-checkout #payment div.payment_box input.js-sv-wc-payment-gateway-credit-card-form-input[type="tel"].identified,.woocommerce-checkout #payment div.payment_box input.js-sv-wc-payment-gateway-credit-card-form-input[type="text"].identified,#add_payment_method input.js-sv-wc-payment-gateway-credit-card-form-input[type="tel"].identified,#add_payment_method input.js-sv-wc-payment-gateway-credit-card-form-input[type="text"].identified{border-color:#69bf29}.woocommerce-checkout #payment div.payment_box input.js-sv-wc-payment-gateway-credit-card-form-input[type="tel"].identified:focus,.woocommerce-checkout #payment div.payment_box input.js-sv-wc-payment-gateway-credit-card-form-input[type="text"].identified:focus,#add_payment_method input.js-sv-wc-payment-gateway-credit-card-form-input[type="tel"].identified:focus,#add_payment_method input.js-sv-wc-payment-gateway-credit-card-form-input[type="text"].identified:focus{box-shadow:0 0 .1875em #69bf29}@media screen and (min-width: 330px){.woocommerce-checkout #payment div.payment_box input.js-sv-wc-payment-gateway-credit-card-form-account-number,#add_payment_method input.js-sv-wc-payment-gateway-credit-card-form-account-number{background-image:url("../../images/card-cc-plain.svg");background-repeat:no-repeat;background-position:right 10px center;background-size:50px 31px}.woocommerce-checkout #payment div.payment_box input.js-sv-wc-payment-gateway-credit-card-form-account-number.visa,#add_payment_method input.js-sv-wc-payment-gateway-credit-card-form-account-number.visa{background-image:url("../../images/card-visa.svg")}.woocommerce-checkout #payment div.payment_box input.js-sv-wc-payment-gateway-credit-card-form-account-number.mastercard,#add_payment_method input.js-sv-wc-payment-gateway-credit-card-form-account-number.mastercard{background-image:url("../../images/card-mastercard.svg")}.woocommerce-checkout #payment div.payment_box input.js-sv-wc-payment-gateway-credit-card-form-account-number.dinersclub,#add_payment_method input.js-sv-wc-payment-gateway-credit-card-form-account-number.dinersclub{background-image:url("../../images/card-dinersclub.svg")}.woocommerce-checkout #payment div.payment_box input.js-sv-wc-payment-gateway-credit-card-form-account-number.maestro,#add_payment_method input.js-sv-wc-payment-gateway-credit-card-form-account-number.maestro{background-image:url("../../images/card-maestro.svg")}.woocommerce-checkout #payment div.payment_box input.js-sv-wc-payment-gateway-credit-card-form-account-number.jcb,#add_payment_method input.js-sv-wc-payment-gateway-credit-card-form-account-number.jcb{background-image:url("../../images/card-jcb.svg")}.woocommerce-checkout #payment div.payment_box input.js-sv-wc-payment-gateway-credit-card-form-account-number.amex,#add_payment_method input.js-sv-wc-payment-gateway-credit-card-form-account-number.amex{background-image:url("../../images/card-amex.svg")}.woocommerce-checkout #payment div.payment_box input.js-sv-wc-payment-gateway-credit-card-form-account-number.discover,#add_payment_method input.js-sv-wc-payment-gateway-credit-card-form-account-number.discover{background-image:url("../../images/card-discover.svg")}.woocommerce-checkout #payment div.payment_box input.js-sv-wc-payment-gateway-credit-card-form-account-number.visaelectron,#add_payment_method input.js-sv-wc-payment-gateway-credit-card-form-account-number.visaelectron{background-image:url("../../images/card-visa-electron.svg")}.woocommerce-checkout #payment div.payment_box input.js-sv-wc-payment-gateway-credit-card-form-account-number.invalid-card-type,#add_payment_method input.js-sv-wc-payment-gateway-credit-card-form-account-number.invalid-card-type{background-image:url("../../images/card-cc-invalid.svg")}}.woocommerce-checkout #payment div.payment_box .js-sv-wc-payment-gateway-echeck-form-check-hint,#add_payment_method .js-sv-wc-payment-gateway-echeck-form-check-hint{margin:0 0 3px 2px;cursor:pointer}.woocommerce-checkout #payment div.payment_box .js-sv-wc-payment-gateway-echeck-form-sample-check,#add_payment_method .js-sv-wc-payment-gateway-echeck-form-sample-check{margin:1em}.woocommerce-checkout #payment div.payment_box .js-sv-wc-payment-gateway-echeck-form-sample-check img,#add_payment_method .js-sv-wc-payment-gateway-echeck-form-sample-check img{min-height:135px}ul.payment_methods li div.sv-wc-payment-gateway-card-icons{vertical-align:middle;display:flex;flex-wrap:wrap;margin-left:auto;gap:5px}ul.payment_methods li div.sv-wc-payment-gateway-card-icons img{float:none !important} +/*# sourceMappingURL=sv-wc-payment-gateway-payment-form.min.css.map */ diff --git a/woocommerce/payment-gateway/assets/css/frontend/sv-wc-payment-gateway-payment-form.min.css.map b/woocommerce/payment-gateway/assets/css/frontend/sv-wc-payment-gateway-payment-form.min.css.map index faded4140..20bb210e5 100644 --- a/woocommerce/payment-gateway/assets/css/frontend/sv-wc-payment-gateway-payment-form.min.css.map +++ b/woocommerce/payment-gateway/assets/css/frontend/sv-wc-payment-gateway-payment-form.min.css.map @@ -1 +1,7 @@ -{"version":3,"sourceRoot":"","sources":["sv-wc-payment-gateway-payment-form.scss"],"names":[],"mappings":"AAYC,yLACC,cACA,aACA,kBAGD,qLACC,qBACA,mBAEA,yMACC,kBAGD,6LACC,WACA,WACA,YACA,qBACA,kBACA,sBAKF,y5BAKC,gBACA,YAOA,gaACC,+BAGD,obACC,qBACA,4cACC,+BAMD,qCAED,iMAEC,uDACA,4BACA,sCACA,0BAEA,2MACC,mDAGD,uNACC,yDAGD,uNACC,yDAGD,iNACC,sDAGD,yMACC,kDAGD,2MACC,mDAGD,mNACC,uDAGD,2NACC,4DAGD,qOACC,0DAKH,qKACC,mBACA,eAGD,yKACC,WACA,iLACC,iBAQF,2DACC,sBACA,aACA,eACA,iBACA,QAEA,+DACC","file":"sv-wc-payment-gateway-payment-form.min.css"} \ No newline at end of file +{ +"version": 3, +"mappings": "AAYC,wLAA2D,CAC1D,OAAO,CAAE,KAAK,CACd,MAAM,CAAE,KAAK,CACb,UAAU,CAAE,MAAM,CAGnB,oLAAyD,CACxD,OAAO,CAAE,YAAY,CACrB,aAAa,CAAE,IAAI,CAEnB,wMAAU,CACT,YAAY,CAAE,IAAI,CAGnB,4LAAI,CACH,KAAK,CAAE,IAAI,CACX,KAAK,CAAE,IAAI,CACX,MAAM,CAAE,IAAI,CACZ,OAAO,CAAE,YAAY,CACrB,YAAY,CAAE,IAAI,CAClB,cAAc,CAAE,MAAM,CAKxB,w6BAI6C,CAC5C,SAAS,CAAE,KAAK,CAChB,OAAO,CAAE,GAAG,CAOZ,uaAAQ,CACP,UAAU,CAAE,mBAAmB,CAGhC,2bAAa,CACZ,YAAY,CAAE,OAAO,CACrB,mdAAQ,CACP,UAAU,CAAE,mBAAmB,CAMhC,oCAAqC,CAEtC,gMAA+D,CAE9D,gBAAgB,CAAE,qCAAqC,CACvD,iBAAiB,CAAE,SAAS,CAC5B,mBAAmB,CAAE,iBAAiB,CACtC,eAAe,CAAE,SAAS,CAE1B,0MAAO,CACN,gBAAgB,CAAE,iCAAiC,CAGpD,sNAAa,CACZ,gBAAgB,CAAE,uCAAuC,CAG1D,sNAAa,CACZ,gBAAgB,CAAE,uCAAuC,CAG1D,gNAAU,CACT,gBAAgB,CAAE,oCAAoC,CAGvD,wMAAM,CACL,gBAAgB,CAAE,gCAAgC,CAGnD,0MAAO,CACN,gBAAgB,CAAE,iCAAiC,CAGpD,kNAAW,CACV,gBAAgB,CAAE,qCAAqC,CAGxD,0NAAe,CACd,gBAAgB,CAAE,0CAA0C,CAG7D,oOAAoB,CACnB,gBAAgB,CAAE,uCAAuC,EAK5D,oKAAiD,CAChD,MAAM,CAAE,WAAW,CACnB,MAAM,CAAE,OAAO,CAGhB,wKAAmD,CAClD,MAAM,CAAE,GAAG,CACX,gLAAI,CACH,UAAU,CAAE,KAAK,CAQnB,0DAAqC,CACpC,cAAc,CAAE,MAAM,CACtB,OAAO,CAAE,IAAI,CACb,SAAS,CAAE,IAAI,CACf,WAAW,CAAE,IAAI,CACjB,GAAG,CAAE,GAAG,CAER,8DAAI,CACH,KAAK,CAAE,eAAe", +"sources": ["sv-wc-payment-gateway-payment-form.scss"], +"names": [], +"file": "sv-wc-payment-gateway-payment-form.min.css" +} diff --git a/woocommerce/payment-gateway/assets/dist/frontend/sv-wc-payment-gateway-my-payment-methods.js b/woocommerce/payment-gateway/assets/dist/frontend/sv-wc-payment-gateway-my-payment-methods.js index 50e4edf57..9d9ae34ee 100644 --- a/woocommerce/payment-gateway/assets/dist/frontend/sv-wc-payment-gateway-my-payment-methods.js +++ b/woocommerce/payment-gateway/assets/dist/frontend/sv-wc-payment-gateway-my-payment-methods.js @@ -1,2 +1,2 @@ -(function(){jQuery(function(e){return window.SV_WC_Payment_Methods_Handler_v5_15_11=class{constructor(t){this.replace_method_column=this.replace_method_column.bind(this),this.remove_duplicate_default_marks=this.remove_duplicate_default_marks.bind(this),this.edit_method=this.edit_method.bind(this),this.save_method=this.save_method.bind(this),this.cancel_edit=this.cancel_edit.bind(this),this.id=t.id,this.slug=t.slug,this.i18n=t.i18n,this.ajax_url=t.ajax_url,this.ajax_nonce=t.ajax_nonce,this.replace_method_column(),this.remove_duplicate_default_marks(),e(".woocommerce-MyAccount-paymentMethods").on("click",".woocommerce-PaymentMethod--actions .button.edit",e=>this.edit_method(e)),e(".woocommerce-MyAccount-paymentMethods").on("click",".woocommerce-PaymentMethod--actions .button.save",e=>this.save_method(e)),e(".woocommerce-MyAccount-paymentMethods").on("click",".woocommerce-PaymentMethod--actions .cancel-edit",e=>this.cancel_edit(e)),e(".woocommerce-MyAccount-paymentMethods").on("click",".woocommerce-PaymentMethod--actions .button.delete",t=>{if(0!==e(t.currentTarget).parents("tr").find(`input[name=plugin-id][value=${this.slug}]`).length&&!confirm(this.i18n.delete_ays))return t.preventDefault()}),e('.button[href*="add-payment-method"]').on("click",event(function(){if(e(this).hasClass("disabled"))return event.preventDefault()}))}replace_method_column(){return e(".woocommerce-MyAccount-paymentMethods").find("tr").each((t,n)=>{var i;if(0!==e(n).find(`input[name=plugin-id][value=${this.slug}]`).length)return e(n).find("th.woocommerce-PaymentMethod--title").remove(),(i=e(n).find("td.woocommerce-PaymentMethod--title")).children().length>0&&e(n).find("td.woocommerce-PaymentMethod--method").html(i.html()),e(n).find("td.woocommerce-PaymentMethod--title").remove()})}remove_duplicate_default_marks(){return e(".woocommerce-MyAccount-paymentMethods").find("tr").each((t,n)=>e(n).find("td.woocommerce-PaymentMethod--default").find("mark.default:not(:first-child)").remove())}edit_method(t){var n,i;if(t.preventDefault(),0!==(i=(n=e(t.currentTarget)).parents("tr")).find(`input[name=plugin-id][value=${this.slug}]`).length)return i.find("div.view").hide(),i.find("div.edit").show(),i.addClass("editing"),n.text(this.i18n.cancel_button).removeClass("edit").addClass("cancel-edit").removeClass("button"),this.enable_editing_ui()}save_method(t){var n,i,o;if(t.preventDefault(),0!==(o=(n=e(t.currentTarget)).parents("tr")).find(`input[name=plugin-id][value=${this.slug}]`).length)return this.block_ui(),o.next(".error").remove(),i={action:`wc_${this.id}_save_payment_method`,nonce:this.ajax_nonce,token_id:o.find("input[name=token-id]").val(),data:o.find("input[name]").serialize()},e.post(this.ajax_url,i).done(e=>e.success?(null!=e.data.title&&o.find(".woocommerce-PaymentMethod--method").html(e.data.title),null!=e.data.nonce&&(this.ajax_nonce=e.data.nonce),n.siblings(".cancel-edit").removeClass("cancel-edit").addClass("edit").text(this.i18n.edit_button).addClass("button"),o.removeClass("editing"),this.disable_editing_ui()):this.display_error(o,e.data)).fail((e,t,n)=>this.display_error(o,n)).always(()=>this.unblock_ui())}cancel_edit(t){var n,i;if(t.preventDefault(),0!==(i=(n=e(t.currentTarget)).parents("tr")).find(`input[name=plugin-id][value=${this.slug}]`).length)return i.find("div.view").show(),i.find("div.edit").hide(),i.removeClass("editing"),n.removeClass("cancel-edit").addClass("edit").text(this.i18n.edit_button).addClass("button"),this.disable_editing_ui()}enable_editing_ui(){return e(".woocommerce-MyAccount-paymentMethods").addClass("editing"),e('.button[href*="add-payment-method"]').addClass("disabled")}disable_editing_ui(){return e(".woocommerce-MyAccount-paymentMethods").removeClass("editing"),e('.button[href*="add-payment-method"]').removeClass("disabled")}block_ui(){return e(".woocommerce-MyAccount-paymentMethods").parent("div").block({message:null,overlayCSS:{background:"#fff",opacity:.6}})}unblock_ui(){return e(".woocommerce-MyAccount-paymentMethods").parent("div").unblock()}display_error(t,n,i=""){var o;return console.error(n),i||(i=this.i18n.save_error),o=e(".woocommerce-MyAccount-paymentMethods thead tr th").length,e(''+i+"").insertAfter(t).find("td").delay(8e3).slideUp(200)}},e(document.body).trigger("sv_wc_payment_methods_handler_v5_15_11_loaded")})}).call({}); +(function(){jQuery(function(e){return window.SV_WC_Payment_Methods_Handler_v5_15_11=class{constructor(t){this.replace_method_column=this.replace_method_column.bind(this),this.remove_duplicate_default_marks=this.remove_duplicate_default_marks.bind(this),this.edit_method=this.edit_method.bind(this),this.save_method=this.save_method.bind(this),this.cancel_edit=this.cancel_edit.bind(this),this.id=t.id,this.slug=t.slug,this.i18n=t.i18n,this.ajax_url=t.ajax_url,this.ajax_nonce=t.ajax_nonce,this.replace_method_column(),this.remove_duplicate_default_marks(),e(".woocommerce-MyAccount-paymentMethods").on("click",".woocommerce-PaymentMethod--actions .button.edit",e=>this.edit_method(e)),e(".woocommerce-MyAccount-paymentMethods").on("click",".woocommerce-PaymentMethod--actions .button.save",e=>this.save_method(e)),e(".woocommerce-MyAccount-paymentMethods").on("click",".woocommerce-PaymentMethod--actions .cancel-edit",e=>this.cancel_edit(e)),e(".woocommerce-MyAccount-paymentMethods").on("click",".woocommerce-PaymentMethod--actions .button.delete",t=>{var n;if(0!==(n=e(t.currentTarget)).parents("tr").find(`input[name=plugin-id][value=${this.slug}]`).length&&!confirm(this.i18n.delete_ays))return n.prop("disabled",!1).removeClass("disabled"),t.preventDefault()}),e('.button[href*="add-payment-method"]').on("click",event(function(){if(e(this).hasClass("disabled"))return event.preventDefault()}))}replace_method_column(){return e(".woocommerce-MyAccount-paymentMethods").find("tr").each((t,n)=>{var i;if(0!==e(n).find(`input[name=plugin-id][value=${this.slug}]`).length)return e(n).find("th.woocommerce-PaymentMethod--title").remove(),(i=e(n).find("td.woocommerce-PaymentMethod--title")).children().length>0&&e(n).find("td.woocommerce-PaymentMethod--method").html(i.html()),e(n).find("td.woocommerce-PaymentMethod--title").remove()})}remove_duplicate_default_marks(){return e(".woocommerce-MyAccount-paymentMethods").find("tr").each((t,n)=>e(n).find("td.woocommerce-PaymentMethod--default").find("mark.default:not(:first-child)").remove())}edit_method(t){var n,i;if(t.preventDefault(),0!==(i=(n=e(t.currentTarget)).parents("tr")).find(`input[name=plugin-id][value=${this.slug}]`).length)return i.find("div.view").hide(),i.find("div.edit").show(),i.addClass("editing"),n.text(this.i18n.cancel_button).removeClass("edit").addClass("cancel-edit").removeClass("button"),this.enable_editing_ui()}save_method(t){var n,i,o;if(t.preventDefault(),0!==(o=(n=e(t.currentTarget)).parents("tr")).find(`input[name=plugin-id][value=${this.slug}]`).length)return this.block_ui(),o.next(".error").remove(),i={action:`wc_${this.id}_save_payment_method`,nonce:this.ajax_nonce,token_id:o.find("input[name=token-id]").val(),data:o.find("input[name]").serialize()},e.post(this.ajax_url,i).done(e=>e.success?(null!=e.data.title&&o.find(".woocommerce-PaymentMethod--method").html(e.data.title),null!=e.data.nonce&&(this.ajax_nonce=e.data.nonce),n.siblings(".cancel-edit").removeClass("cancel-edit").addClass("edit").text(this.i18n.edit_button).addClass("button"),o.removeClass("editing"),this.disable_editing_ui()):this.display_error(o,e.data)).fail((e,t,n)=>this.display_error(o,n)).always(()=>this.unblock_ui())}cancel_edit(t){var n,i;if(t.preventDefault(),0!==(i=(n=e(t.currentTarget)).parents("tr")).find(`input[name=plugin-id][value=${this.slug}]`).length)return i.find("div.view").show(),i.find("div.edit").hide(),i.removeClass("editing"),n.removeClass("cancel-edit").addClass("edit").text(this.i18n.edit_button).addClass("button"),this.disable_editing_ui()}enable_editing_ui(){return e(".woocommerce-MyAccount-paymentMethods").addClass("editing"),e('.button[href*="add-payment-method"]').addClass("disabled")}disable_editing_ui(){return e(".woocommerce-MyAccount-paymentMethods").removeClass("editing"),e('.button[href*="add-payment-method"]').removeClass("disabled")}block_ui(){return e(".woocommerce-MyAccount-paymentMethods").parent("div").block({message:null,overlayCSS:{background:"#fff",opacity:.6}})}unblock_ui(){return e(".woocommerce-MyAccount-paymentMethods").parent("div").unblock()}display_error(t,n,i=""){var o;return console.error(n),i||(i=this.i18n.save_error),o=e(".woocommerce-MyAccount-paymentMethods thead tr th").length,e(''+i+"").insertAfter(t).find("td").delay(8e3).slideUp(200)}},e(document.body).trigger("sv_wc_payment_methods_handler_v5_15_11_loaded")})}).call({}); //# sourceMappingURL=sv-wc-payment-gateway-my-payment-methods.js.map diff --git a/woocommerce/payment-gateway/assets/dist/frontend/sv-wc-payment-gateway-my-payment-methods.js.map b/woocommerce/payment-gateway/assets/dist/frontend/sv-wc-payment-gateway-my-payment-methods.js.map index b1df303ab..2abafb7d8 100644 --- a/woocommerce/payment-gateway/assets/dist/frontend/sv-wc-payment-gateway-my-payment-methods.js.map +++ b/woocommerce/payment-gateway/assets/dist/frontend/sv-wc-payment-gateway-my-payment-methods.js.map @@ -1 +1 @@ -{"mappings":"ACOG,CAAA,WACH,OAAO,SAAE,CAAF,EAwQN,OAlQM,OAAO,sCAAA,CAAb,MAaC,YAAe,CAAF,CAAA,CA8Cb,IAAA,CAAA,qBAAA,CAAA,IAAA,CAAA,qBAAA,CAAA,IAAA,CAAA,IAAA,EA4BA,IAAA,CAAA,8BAAA,CAAA,IAAA,CAAA,8BAAA,CAAA,IAAA,CAAA,IAAA,EAYA,IAAA,CAAA,WAAA,CAAA,IAAA,CAAA,WAAA,CAAA,IAAA,CAAA,IAAA,EA0BA,IAAA,CAAA,WAAA,CAAA,IAAA,CAAA,WAAA,CAAA,IAAA,CAAA,IAAA,EAuDA,IAAA,CAAA,WAAA,CAAA,IAAA,CAAA,WAAA,CAAA,IAAA,CAAA,IAAA,EArKC,IAAC,CAAA,EAAD,CAAc,EAAK,EAAnB,CACA,IAAC,CAAA,IAAD,CAAc,EAAK,IAAnB,CACA,IAAC,CAAA,IAAD,CAAc,EAAK,IAAnB,CACA,IAAC,CAAA,QAAD,CAAc,EAAK,QAAnB,CACA,IAAC,CAAA,UAAD,CAAc,EAAK,UAAA,CAGnB,IAAI,CAAC,qBAAL,GAGA,IAAI,CAAC,8BAAL,GAGA,EAAG,yCAA0C,EAA7C,CAAiD,QAAS,mDAAoD,AAAE,GAAW,IAAI,CAAC,WAAL,CAAkB,IAG7I,EAAG,yCAA0C,EAA7C,CAAiD,QAAS,mDAAoD,AAAE,GAAW,IAAI,CAAC,WAAL,CAAkB,IAG7I,EAAG,yCAA0C,EAA7C,CAAiD,QAAS,mDAAoD,AAAE,GAAW,IAAI,CA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,CAAA,WAAY,OAAQ,QAAS,EAA7B,CAA3B,EAAvE,CAMV,YAAA,CAAe,OAAA,EAAG,yCAA0C,MAA7C,CAAqD,OAAQ,OAA7D,EAAH,CAUZ,cAAiB,CAAF,CAAO,CAAP,CAAc,EAAU,EAAxB,CAAf,CAEF,IAAA,EAKG,OALA,QAAQ,KAAR,CAAe,GAEmB,GAAlC,CAAA,EAAU,IAAC,CAAA,IAAI,CAAC,UAAA,AAAA,EAChB,EAAU,EAAG,qDAAsD,MAAnE,CAEA,EAAG,kCAAoC,EAAU,KAAO,EAAU,cAAe,WAAjF,CAA8F,GAAM,IAApG,CAA0G,MAAO,KAAjH,CAAwH,KAAO,OAA/H,CAAwI,IAP1H,CAvPhB,EAkQA,EAAG,SAAS,IAAZ,EAAmB,OAAnB,CAA4B,gDAxQtB,E,C,E,I,C,C","sources":["","woocommerce/payment-gateway/assets/js/frontend/sv-wc-payment-gateway-my-payment-methods.coffee"],"sourcesContent":["(() => {\nvar $f921149b16c1f5f9$exports = {};\n(function() {\n /*\n WooCommerce SkyVerge Payment Gateway My Payment Methods CoffeeScript\n Version 5.1.0\n\n Copyright (c) 2014-2024, SkyVerge, Inc.\n Licensed under the GNU General Public License v3.0\n http://www.gnu.org/licenses/gpl-3.0.html\n */ jQuery(function($) {\n \"use strict\";\n // The My Payment Methods handler.\n // @since 5.1.0\n window.SV_WC_Payment_Methods_Handler_v5_15_11 = class SV_WC_Payment_Methods_Handler_v5_15_11 {\n // Constructs the class.\n // @since 5.1.0\n // @param [Object] args, with the properties:\n // id: [String] plugin ID\n // slug: [String] plugin slug or dasherized ID\n // i18n: [Object] localized text strings\n // ajax_url: [String] URL for AJAX requests\n // ajax_nonce: [String] nonce for AJAX requests\n constructor(args){\n // Replace Method column content with Title column content, for FW tokens.\n // @since 5.8.0\n this.replace_method_column = this.replace_method_column.bind(this);\n // Removes duplicate \"Default\" marks.\n // They are already hidden using CSS, but should also be removed for accessibility.\n // @since 5.8.0\n this.remove_duplicate_default_marks = this.remove_duplicate_default_marks.bind(this);\n // Edits a payment method.\n // @since 5.1.0\n // @param [Object] event jQuery event object\n this.edit_method = this.edit_method.bind(this);\n // Saves a payment method.\n // @since 5.1.0\n // @param [Object] event jQuery event object\n this.save_method = this.save_method.bind(this);\n // Cancels/stop editing a payment method.\n // @since 5.1.0\n // @param [Object] event jQuery event object\n this.cancel_edit = this.cancel_edit.bind(this);\n this.id = args.id;\n this.slug = args.slug;\n this.i18n = args.i18n;\n this.ajax_url = args.ajax_url;\n this.ajax_nonce = args.ajax_nonce;\n // replace the \"Method\" column content for FW tokens\n this.replace_method_column();\n // remove duplicate \"Default\" marks\n this.remove_duplicate_default_marks();\n // handle the edit action\n $(\".woocommerce-MyAccount-paymentMethods\").on('click', \".woocommerce-PaymentMethod--actions .button.edit\", (event1)=>{\n return this.edit_method(event1);\n });\n // handle the save action\n $(\".woocommerce-MyAccount-paymentMethods\").on('click', \".woocommerce-PaymentMethod--actions .button.save\", (event1)=>{\n return this.save_method(event1);\n });\n // handle the cancel action\n $(\".woocommerce-MyAccount-paymentMethods\").on('click', \".woocommerce-PaymentMethod--actions .cancel-edit\", (event1)=>{\n return this.cancel_edit(event1);\n });\n // handle the delete action\n $(\".woocommerce-MyAccount-paymentMethods\").on('click', \".woocommerce-PaymentMethod--actions .button.delete\", (event1)=>{\n var button, row;\n button = $(event1.currentTarget);\n row = button.parents('tr');\n // check if the method belongs to this plugin\n if (row.find(`input[name=plugin-id][value=${this.slug}]`).length === 0) return;\n if (!confirm(this.i18n.delete_ays)) return event1.preventDefault();\n });\n // don't follow the Add Payment Method button URL if it's disabled\n $('.button[href*=\"add-payment-method\"]').on('click', event(function() {\n if ($(this).hasClass('disabled')) return event.preventDefault();\n }));\n }\n replace_method_column() {\n return $('.woocommerce-MyAccount-paymentMethods').find('tr').each((index, element)=>{\n var titleColumn;\n // check if the method belongs to this plugin\n if ($(element).find(`input[name=plugin-id][value=${this.slug}]`).length === 0) return;\n // delete the Title header\n $(element).find('th.woocommerce-PaymentMethod--title').remove();\n titleColumn = $(element).find('td.woocommerce-PaymentMethod--title');\n // Title column is not empty, this is a FW token\n if (titleColumn.children().length > 0) // replace Method column\n $(element).find('td.woocommerce-PaymentMethod--method').html(titleColumn.html());\n // delete Title column\n return $(element).find('td.woocommerce-PaymentMethod--title').remove();\n });\n }\n remove_duplicate_default_marks() {\n return $('.woocommerce-MyAccount-paymentMethods').find('tr').each((index, element)=>{\n return $(element).find('td.woocommerce-PaymentMethod--default').find('mark.default:not(:first-child)').remove();\n });\n }\n edit_method(event1) {\n var button, row;\n event1.preventDefault();\n button = $(event1.currentTarget);\n row = button.parents('tr');\n // check if the method belongs to this plugin\n if (row.find(`input[name=plugin-id][value=${this.slug}]`).length === 0) return;\n row.find('div.view').hide();\n row.find('div.edit').show();\n row.addClass('editing');\n // change the Edit button to \"Cancel\"\n button.text(this.i18n.cancel_button).removeClass('edit').addClass('cancel-edit').removeClass('button');\n return this.enable_editing_ui();\n }\n save_method(event1) {\n var button, data, row;\n event1.preventDefault();\n button = $(event1.currentTarget);\n row = button.parents('tr');\n // check if the method belongs to this plugin\n if (row.find(`input[name=plugin-id][value=${this.slug}]`).length === 0) return;\n this.block_ui();\n // remove any previous errors\n row.next('.error').remove();\n data = {\n action: `wc_${this.id}_save_payment_method`,\n nonce: this.ajax_nonce,\n token_id: row.find('input[name=token-id]').val(),\n data: row.find('input[name]').serialize()\n };\n return $.post(this.ajax_url, data).done((response)=>{\n if (!response.success) return this.display_error(row, response.data);\n if (response.data.title != null) row.find('.woocommerce-PaymentMethod--method').html(response.data.title);\n if (response.data.nonce != null) this.ajax_nonce = response.data.nonce;\n // change the \"Cancel\" button back to \"Edit\"\n button.siblings('.cancel-edit').removeClass('cancel-edit').addClass('edit').text(this.i18n.edit_button).addClass('button');\n row.removeClass('editing');\n return this.disable_editing_ui();\n }).fail((jqXHR, textStatus, error)=>{\n return this.display_error(row, error);\n }).always(()=>{\n return this.unblock_ui();\n });\n }\n cancel_edit(event1) {\n var button, row;\n event1.preventDefault();\n button = $(event1.currentTarget);\n row = button.parents('tr');\n // check if the method belongs to this plugin\n if (row.find(`input[name=plugin-id][value=${this.slug}]`).length === 0) return;\n row.find('div.view').show();\n row.find('div.edit').hide();\n row.removeClass('editing');\n // change the \"Cancel\" button back to \"Edit\"\n button.removeClass('cancel-edit').addClass('edit').text(this.i18n.edit_button).addClass('button');\n return this.disable_editing_ui();\n }\n // Sets the page UI to the \"editing\" state.\n // This brings proper focus to the method being edited and prevents\n // other available buttons/actions until the editing is finished or cancelled.\n // @since 5.1.1\n enable_editing_ui() {\n // set the methods table as 'editing'\n $(\".woocommerce-MyAccount-paymentMethods\").addClass('editing');\n // disable the Add Payment Method button\n return $('.button[href*=\"add-payment-method\"]').addClass('disabled');\n }\n // Sets the page UI back to the default state.\n // @since 5.1.1\n disable_editing_ui() {\n // removes the methods table's \"editing\" status\n $(\".woocommerce-MyAccount-paymentMethods\").removeClass('editing');\n // re-enable the Add Payment Method button\n return $('.button[href*=\"add-payment-method\"]').removeClass('disabled');\n }\n // Blocks the payment methods table UI.\n // @since 5.1.0\n block_ui() {\n return $(\".woocommerce-MyAccount-paymentMethods\").parent('div').block({\n message: null,\n overlayCSS: {\n background: '#fff',\n opacity: 0.6\n }\n });\n }\n // Unblocks the payment methods table UI.\n // @since 5.1.0\n unblock_ui() {\n return $(\".woocommerce-MyAccount-paymentMethods\").parent('div').unblock();\n }\n // Displays an error message to the user.\n // @since 5.1.0\n // @param [Object] row payment method table row\n // @param [String] error raw error message\n // @param [String] message user error message\n display_error(row, error, message = '') {\n var columns;\n console.error(error);\n if (!message) message = this.i18n.save_error;\n columns = $(\".woocommerce-MyAccount-paymentMethods thead tr th\").length;\n return $('' + message + '').insertAfter(row).find('td').delay(8000).slideUp(200);\n }\n };\n // dispatch loaded event\n return $(document.body).trigger('sv_wc_payment_methods_handler_v5_15_11_loaded');\n });\n}).call($f921149b16c1f5f9$exports);\n\n})();\n//# sourceMappingURL=sv-wc-payment-gateway-my-payment-methods.js.map\n","###\n WooCommerce SkyVerge Payment Gateway My Payment Methods CoffeeScript\n Version 5.1.0\n\n Copyright (c) 2014-2024, SkyVerge, Inc.\n Licensed under the GNU General Public License v3.0\n http://www.gnu.org/licenses/gpl-3.0.html\n###\njQuery ( $ ) ->\n\t\"use strict\"\n\n\t# The My Payment Methods handler.\n\t#\n\t# @since 5.1.0\n\tclass window.SV_WC_Payment_Methods_Handler_v5_15_11\n\n\n\t\t# Constructs the class.\n\t\t#\n\t\t# @since 5.1.0\n\t\t#\n\t\t# @param [Object] args, with the properties:\n\t\t# id: [String] plugin ID\n\t\t# slug: [String] plugin slug or dasherized ID\n\t\t# i18n: [Object] localized text strings\n\t\t# ajax_url: [String] URL for AJAX requests\n\t\t# ajax_nonce: [String] nonce for AJAX requests\n\t\tconstructor: ( args ) ->\n\n\t\t\t@id = args.id\n\t\t\t@slug = args.slug\n\t\t\t@i18n = args.i18n\n\t\t\t@ajax_url = args.ajax_url\n\t\t\t@ajax_nonce = args.ajax_nonce\n\n\t\t\t# replace the \"Method\" column content for FW tokens\n\t\t\tthis.replace_method_column()\n\n\t\t\t# remove duplicate \"Default\" marks\n\t\t\tthis.remove_duplicate_default_marks()\n\n\t\t\t# handle the edit action\n\t\t\t$( \".woocommerce-MyAccount-paymentMethods\" ).on( 'click', \".woocommerce-PaymentMethod--actions .button.edit\", ( event ) => this.edit_method( event ) )\n\n\t\t\t# handle the save action\n\t\t\t$( \".woocommerce-MyAccount-paymentMethods\" ).on( 'click', \".woocommerce-PaymentMethod--actions .button.save\", ( event ) => this.save_method( event ) )\n\n\t\t\t# handle the cancel action\n\t\t\t$( \".woocommerce-MyAccount-paymentMethods\" ).on( 'click', \".woocommerce-PaymentMethod--actions .cancel-edit\", ( event ) => this.cancel_edit( event ) )\n\n\t\t\t# handle the delete action\n\t\t\t$( \".woocommerce-MyAccount-paymentMethods\" ).on( 'click', \".woocommerce-PaymentMethod--actions .button.delete\", ( event ) =>\n\n\t\t\t\tbutton = $( event.currentTarget )\n\t\t\t\trow = button.parents( 'tr' )\n\n\t\t\t\t# check if the method belongs to this plugin\n\t\t\t\tif row.find( \"input[name=plugin-id][value=#{@slug}]\" ).length is 0\n\t\t\t\t\treturn\n\n\t\t\t\tif not confirm( @i18n.delete_ays )\n\t\t\t\t\tevent.preventDefault()\n\n\t\t\t)\n\n\t\t\t# don't follow the Add Payment Method button URL if it's disabled\n\t\t\t$( '.button[href*=\"add-payment-method\"]' ).on 'click', event ->\n\t\t\t\tevent.preventDefault() if $( this ).hasClass( 'disabled' )\n\n\n\t\t# Replace Method column content with Title column content, for FW tokens.\n\t\t#\n\t\t# @since 5.8.0\n\t\treplace_method_column: =>\n\n\t\t\t$( '.woocommerce-MyAccount-paymentMethods' ).find( 'tr' ).each ( index, element ) =>\n\n\t\t\t\t# check if the method belongs to this plugin\n\t\t\t\tif $( element ).find( \"input[name=plugin-id][value=#{@slug}]\" ).length is 0\n\t\t\t\t\treturn\n\n\t\t\t\t# delete the Title header\n\t\t\t\t$( element ).find( 'th.woocommerce-PaymentMethod--title' ).remove()\n\n\t\t\t\ttitleColumn = $( element ).find( 'td.woocommerce-PaymentMethod--title' )\n\n\t\t\t\t# Title column is not empty, this is a FW token\n\t\t\t\tif ( titleColumn.children().length > 0 )\n\n\t\t\t\t\t# replace Method column\n\t\t\t\t\t$( element ).find( 'td.woocommerce-PaymentMethod--method' ).html( titleColumn.html() )\n\n\t\t\t\t# delete Title column\n\t\t\t\t$( element ).find( 'td.woocommerce-PaymentMethod--title' ).remove()\n\n\n\t\t# Removes duplicate \"Default\" marks.\n\t\t#\n\t\t# They are already hidden using CSS, but should also be removed for accessibility.\n\t\t#\n\t\t# @since 5.8.0\n\t\tremove_duplicate_default_marks: =>\n\n\t\t\t$( '.woocommerce-MyAccount-paymentMethods' ).find( 'tr' ).each ( index, element ) =>\n\n\t\t\t\t$( element ).find( 'td.woocommerce-PaymentMethod--default' ).find( 'mark.default:not(:first-child)' ).remove()\n\n\n\t\t# Edits a payment method.\n\t\t#\n\t\t# @since 5.1.0\n\t\t#\n\t\t# @param [Object] event jQuery event object\n\t\tedit_method: ( event ) =>\n\n\t\t\tevent.preventDefault()\n\n\t\t\tbutton = $( event.currentTarget )\n\t\t\trow = button.parents( 'tr' )\n\n\t\t\t# check if the method belongs to this plugin\n\t\t\tif row.find( \"input[name=plugin-id][value=#{@slug}]\" ).length is 0\n\t\t\t\treturn\n\n\t\t\trow.find( 'div.view' ).hide()\n\t\t\trow.find( 'div.edit' ).show()\n\t\t\trow.addClass( 'editing' )\n\n\t\t\t# change the Edit button to \"Cancel\"\n\t\t\tbutton.text( @i18n.cancel_button ).removeClass( 'edit' ).addClass( 'cancel-edit' ).removeClass( 'button' )\n\n\t\t\tthis.enable_editing_ui()\n\n\n\t\t# Saves a payment method.\n\t\t#\n\t\t# @since 5.1.0\n\t\t#\n\t\t# @param [Object] event jQuery event object\n\t\tsave_method: ( event ) =>\n\n\t\t\tevent.preventDefault()\n\n\t\t\tbutton = $( event.currentTarget )\n\t\t\trow = button.parents( 'tr' )\n\n\t\t\t# check if the method belongs to this plugin\n\t\t\tif row.find( \"input[name=plugin-id][value=#{@slug}]\" ).length is 0\n\t\t\t\treturn\n\n\t\t\tthis.block_ui()\n\n\t\t\t# remove any previous errors\n\t\t\trow.next( '.error' ).remove()\n\n\t\t\tdata =\n\t\t\t\taction: \"wc_#{@id}_save_payment_method\"\n\t\t\t\tnonce: @ajax_nonce\n\t\t\t\ttoken_id: row.find( 'input[name=token-id]' ).val()\n\t\t\t\tdata: row.find( 'input[name]' ).serialize()\n\n\t\t\t$.post( @ajax_url, data )\n\n\t\t\t\t.done ( response ) =>\n\n\t\t\t\t\treturn this.display_error( row, response.data ) unless response.success\n\n\t\t\t\t\tif response.data.title?\n\t\t\t\t\t\trow.find('.woocommerce-PaymentMethod--method').html( response.data.title )\n\n\t\t\t\t\tif response.data.nonce?\n\t\t\t\t\t\t@ajax_nonce = response.data.nonce\n\n\t\t\t\t\t# change the \"Cancel\" button back to \"Edit\"\n\t\t\t\t\tbutton.siblings( '.cancel-edit' ).removeClass( 'cancel-edit' ).addClass( 'edit' ).text( @i18n.edit_button ).addClass( 'button' )\n\n\t\t\t\t\trow.removeClass( 'editing' )\n\n\t\t\t\t\tthis.disable_editing_ui()\n\n\t\t\t\t.fail ( jqXHR, textStatus, error ) =>\n\n\t\t\t\t\tthis.display_error( row, error )\n\n\t\t\t\t.always =>\n\n\t\t\t\t\tthis.unblock_ui()\n\n\n\t\t# Cancels/stop editing a payment method.\n\t\t#\n\t\t# @since 5.1.0\n\t\t#\n\t\t# @param [Object] event jQuery event object\n\t\tcancel_edit: ( event ) =>\n\n\t\t\tevent.preventDefault()\n\n\t\t\tbutton = $( event.currentTarget )\n\t\t\trow = button.parents( 'tr' )\n\n\t\t\t# check if the method belongs to this plugin\n\t\t\tif row.find( \"input[name=plugin-id][value=#{@slug}]\" ).length is 0\n\t\t\t\treturn\n\n\t\t\trow.find( 'div.view' ).show()\n\t\t\trow.find( 'div.edit' ).hide()\n\t\t\trow.removeClass( 'editing' )\n\n\t\t\t# change the \"Cancel\" button back to \"Edit\"\n\t\t\tbutton.removeClass( 'cancel-edit' ).addClass( 'edit' ).text( @i18n.edit_button ).addClass( 'button' )\n\n\t\t\tthis.disable_editing_ui()\n\n\n\t\t# Sets the page UI to the \"editing\" state.\n\t\t#\n\t\t# This brings proper focus to the method being edited and prevents\n\t\t# other available buttons/actions until the editing is finished or cancelled.\n\t\t#\n\t\t# @since 5.1.1\n\t\tenable_editing_ui: ->\n\n\t\t\t# set the methods table as 'editing'\n\t\t\t$( \".woocommerce-MyAccount-paymentMethods\" ).addClass( 'editing' )\n\n\t\t\t# disable the Add Payment Method button\n\t\t\t$( '.button[href*=\"add-payment-method\"]' ).addClass( 'disabled' )\n\n\n\t\t# Sets the page UI back to the default state.\n\t\t#\n\t\t# @since 5.1.1\n\t\tdisable_editing_ui: ->\n\n\t\t\t# removes the methods table's \"editing\" status\n\t\t\t$( \".woocommerce-MyAccount-paymentMethods\" ).removeClass( 'editing' )\n\n\t\t\t# re-enable the Add Payment Method button\n\t\t\t$( '.button[href*=\"add-payment-method\"]' ).removeClass( 'disabled' )\n\n\n\t\t# Blocks the payment methods table UI.\n\t\t#\n\t\t# @since 5.1.0\n\t\tblock_ui: -> $( \".woocommerce-MyAccount-paymentMethods\" ).parent( 'div' ).block( message: null, overlayCSS: background: '#fff', opacity: 0.6 )\n\n\n\t\t# Unblocks the payment methods table UI.\n\t\t#\n\t\t# @since 5.1.0\n\t\tunblock_ui: -> $( \".woocommerce-MyAccount-paymentMethods\" ).parent( 'div' ).unblock()\n\n\n\t\t# Displays an error message to the user.\n\t\t#\n\t\t# @since 5.1.0\n\t\t#\n\t\t# @param [Object] row payment method table row\n\t\t# @param [String] error raw error message\n\t\t# @param [String] message user error message\n\t\tdisplay_error: ( row, error, message = '' ) ->\n\n\t\t\tconsole.error( error )\n\n\t\t\tmessage = @i18n.save_error unless message\n\t\t\tcolumns = $( \".woocommerce-MyAccount-paymentMethods thead tr th\" ).length\n\n\t\t\t$( '' + message + '' ).insertAfter( row ).find( 'td' ).delay( 8000 ).slideUp( 200 )\n\n\n\t# dispatch loaded event\n\t$( document.body ).trigger( 'sv_wc_payment_methods_handler_v5_15_11_loaded' )\n"],"names":["jQuery","$","window","SV_WC_Payment_Methods_Handler_v5_15_11","constructor","args","replace_method_column","bind","remove_duplicate_default_marks","edit_method","save_method","cancel_edit","id","slug","i18n","ajax_url","ajax_nonce","on","event1","row","button","currentTarget","parents","find","length","confirm","delete_ays","preventDefault","event","hasClass","each","index","element","titleColumn","remove","children","html","hide","show","addClass","text","cancel_button","removeClass","enable_editing_ui","data","block_ui","next","action","nonce","token_id","val","serialize","post","done","response","success","title","siblings","edit_button","disable_editing_ui","display_error","fail","jqXHR","textStatus","error","always","unblock_ui","parent","block","message","overlayCSS","background","opacity","unblock","columns","console","save_error","insertAfter","delay","slideUp","document","body","trigger","call"],"version":3,"file":"sv-wc-payment-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AiB,CAAF,CAAO,CAAP,CAAc,EAAU,EAAxB,CAAf,CAEF,IAAA,EAKG,OALA,QAAQ,KAAR,CAAe,GAEmB,GAAlC,CAAA,EAAU,IAAC,CAAA,IAAI,CAAC,UAAA,AAAA,EAChB,EAAU,EAAG,qDAAsD,MAAnE,CAEA,EAAG,kCAAoC,EAAU,KAAO,EAAU,cAAe,WAAjF,CAA8F,GAAM,IAApG,CAA0G,MAAO,KAAjH,CAAwH,KAAO,OAA/H,CAAwI,IAP1H,CAzPhB,EAoQA,EAAG,SAAS,IAAZ,EAAmB,OAAnB,CAA4B,gDA1QtB,E,C,E,I,C,C","sources":["","woocommerce/payment-gateway/assets/js/frontend/sv-wc-payment-gateway-my-payment-methods.coffee"],"sourcesContent":["(() => {\nvar $f921149b16c1f5f9$exports = {};\n(function() {\n /*\n WooCommerce SkyVerge Payment Gateway My Payment Methods CoffeeScript\n Version 5.1.0\n\n Copyright (c) 2014-2024, SkyVerge, Inc.\n Licensed under the GNU General Public License v3.0\n http://www.gnu.org/licenses/gpl-3.0.html\n */ jQuery(function($) {\n \"use strict\";\n // The My Payment Methods handler.\n // @since 5.1.0\n window.SV_WC_Payment_Methods_Handler_v5_15_11 = class SV_WC_Payment_Methods_Handler_v5_15_11 {\n // Constructs the class.\n // @since 5.1.0\n // @param [Object] args, with the properties:\n // id: [String] plugin ID\n // slug: [String] plugin slug or dasherized ID\n // i18n: [Object] localized text strings\n // ajax_url: [String] URL for AJAX requests\n // ajax_nonce: [String] nonce for AJAX requests\n constructor(args){\n // Replace Method column content with Title column content, for FW tokens.\n // @since 5.8.0\n this.replace_method_column = this.replace_method_column.bind(this);\n // Removes duplicate \"Default\" marks.\n // They are already hidden using CSS, but should also be removed for accessibility.\n // @since 5.8.0\n this.remove_duplicate_default_marks = this.remove_duplicate_default_marks.bind(this);\n // Edits a payment method.\n // @since 5.1.0\n // @param [Object] event jQuery event object\n this.edit_method = this.edit_method.bind(this);\n // Saves a payment method.\n // @since 5.1.0\n // @param [Object] event jQuery event object\n this.save_method = this.save_method.bind(this);\n // Cancels/stop editing a payment method.\n // @since 5.1.0\n // @param [Object] event jQuery event object\n this.cancel_edit = this.cancel_edit.bind(this);\n this.id = args.id;\n this.slug = args.slug;\n this.i18n = args.i18n;\n this.ajax_url = args.ajax_url;\n this.ajax_nonce = args.ajax_nonce;\n // replace the \"Method\" column content for FW tokens\n this.replace_method_column();\n // remove duplicate \"Default\" marks\n this.remove_duplicate_default_marks();\n // handle the edit action\n $(\".woocommerce-MyAccount-paymentMethods\").on('click', \".woocommerce-PaymentMethod--actions .button.edit\", (event1)=>{\n return this.edit_method(event1);\n });\n // handle the save action\n $(\".woocommerce-MyAccount-paymentMethods\").on('click', \".woocommerce-PaymentMethod--actions .button.save\", (event1)=>{\n return this.save_method(event1);\n });\n // handle the cancel action\n $(\".woocommerce-MyAccount-paymentMethods\").on('click', \".woocommerce-PaymentMethod--actions .cancel-edit\", (event1)=>{\n return this.cancel_edit(event1);\n });\n // handle the delete action\n $(\".woocommerce-MyAccount-paymentMethods\").on('click', \".woocommerce-PaymentMethod--actions .button.delete\", (event1)=>{\n var button, row;\n button = $(event1.currentTarget);\n row = button.parents('tr');\n // check if the method belongs to this plugin\n if (row.find(`input[name=plugin-id][value=${this.slug}]`).length === 0) return;\n if (!confirm(this.i18n.delete_ays)) {\n // re-enable the button if user cancels (side note: WooCommerce core is the one that added the disabled state in the first place)\n button.prop('disabled', false).removeClass('disabled');\n return event1.preventDefault();\n }\n });\n // don't follow the Add Payment Method button URL if it's disabled\n $('.button[href*=\"add-payment-method\"]').on('click', event(function() {\n if ($(this).hasClass('disabled')) return event.preventDefault();\n }));\n }\n replace_method_column() {\n return $('.woocommerce-MyAccount-paymentMethods').find('tr').each((index, element)=>{\n var titleColumn;\n // check if the method belongs to this plugin\n if ($(element).find(`input[name=plugin-id][value=${this.slug}]`).length === 0) return;\n // delete the Title header\n $(element).find('th.woocommerce-PaymentMethod--title').remove();\n titleColumn = $(element).find('td.woocommerce-PaymentMethod--title');\n // Title column is not empty, this is a FW token\n if (titleColumn.children().length > 0) // replace Method column\n $(element).find('td.woocommerce-PaymentMethod--method').html(titleColumn.html());\n // delete Title column\n return $(element).find('td.woocommerce-PaymentMethod--title').remove();\n });\n }\n remove_duplicate_default_marks() {\n return $('.woocommerce-MyAccount-paymentMethods').find('tr').each((index, element)=>{\n return $(element).find('td.woocommerce-PaymentMethod--default').find('mark.default:not(:first-child)').remove();\n });\n }\n edit_method(event1) {\n var button, row;\n event1.preventDefault();\n button = $(event1.currentTarget);\n row = button.parents('tr');\n // check if the method belongs to this plugin\n if (row.find(`input[name=plugin-id][value=${this.slug}]`).length === 0) return;\n row.find('div.view').hide();\n row.find('div.edit').show();\n row.addClass('editing');\n // change the Edit button to \"Cancel\"\n button.text(this.i18n.cancel_button).removeClass('edit').addClass('cancel-edit').removeClass('button');\n return this.enable_editing_ui();\n }\n save_method(event1) {\n var button, data, row;\n event1.preventDefault();\n button = $(event1.currentTarget);\n row = button.parents('tr');\n // check if the method belongs to this plugin\n if (row.find(`input[name=plugin-id][value=${this.slug}]`).length === 0) return;\n this.block_ui();\n // remove any previous errors\n row.next('.error').remove();\n data = {\n action: `wc_${this.id}_save_payment_method`,\n nonce: this.ajax_nonce,\n token_id: row.find('input[name=token-id]').val(),\n data: row.find('input[name]').serialize()\n };\n return $.post(this.ajax_url, data).done((response)=>{\n if (!response.success) return this.display_error(row, response.data);\n if (response.data.title != null) row.find('.woocommerce-PaymentMethod--method').html(response.data.title);\n if (response.data.nonce != null) this.ajax_nonce = response.data.nonce;\n // change the \"Cancel\" button back to \"Edit\"\n button.siblings('.cancel-edit').removeClass('cancel-edit').addClass('edit').text(this.i18n.edit_button).addClass('button');\n row.removeClass('editing');\n return this.disable_editing_ui();\n }).fail((jqXHR, textStatus, error)=>{\n return this.display_error(row, error);\n }).always(()=>{\n return this.unblock_ui();\n });\n }\n cancel_edit(event1) {\n var button, row;\n event1.preventDefault();\n button = $(event1.currentTarget);\n row = button.parents('tr');\n // check if the method belongs to this plugin\n if (row.find(`input[name=plugin-id][value=${this.slug}]`).length === 0) return;\n row.find('div.view').show();\n row.find('div.edit').hide();\n row.removeClass('editing');\n // change the \"Cancel\" button back to \"Edit\"\n button.removeClass('cancel-edit').addClass('edit').text(this.i18n.edit_button).addClass('button');\n return this.disable_editing_ui();\n }\n // Sets the page UI to the \"editing\" state.\n // This brings proper focus to the method being edited and prevents\n // other available buttons/actions until the editing is finished or cancelled.\n // @since 5.1.1\n enable_editing_ui() {\n // set the methods table as 'editing'\n $(\".woocommerce-MyAccount-paymentMethods\").addClass('editing');\n // disable the Add Payment Method button\n return $('.button[href*=\"add-payment-method\"]').addClass('disabled');\n }\n // Sets the page UI back to the default state.\n // @since 5.1.1\n disable_editing_ui() {\n // removes the methods table's \"editing\" status\n $(\".woocommerce-MyAccount-paymentMethods\").removeClass('editing');\n // re-enable the Add Payment Method button\n return $('.button[href*=\"add-payment-method\"]').removeClass('disabled');\n }\n // Blocks the payment methods table UI.\n // @since 5.1.0\n block_ui() {\n return $(\".woocommerce-MyAccount-paymentMethods\").parent('div').block({\n message: null,\n overlayCSS: {\n background: '#fff',\n opacity: 0.6\n }\n });\n }\n // Unblocks the payment methods table UI.\n // @since 5.1.0\n unblock_ui() {\n return $(\".woocommerce-MyAccount-paymentMethods\").parent('div').unblock();\n }\n // Displays an error message to the user.\n // @since 5.1.0\n // @param [Object] row payment method table row\n // @param [String] error raw error message\n // @param [String] message user error message\n display_error(row, error, message = '') {\n var columns;\n console.error(error);\n if (!message) message = this.i18n.save_error;\n columns = $(\".woocommerce-MyAccount-paymentMethods thead tr th\").length;\n return $('' + message + '').insertAfter(row).find('td').delay(8000).slideUp(200);\n }\n };\n // dispatch loaded event\n return $(document.body).trigger('sv_wc_payment_methods_handler_v5_15_11_loaded');\n });\n}).call($f921149b16c1f5f9$exports);\n\n})();\n//# sourceMappingURL=sv-wc-payment-gateway-my-payment-methods.js.map\n","###\n WooCommerce SkyVerge Payment Gateway My Payment Methods CoffeeScript\n Version 5.1.0\n\n Copyright (c) 2014-2024, SkyVerge, Inc.\n Licensed under the GNU General Public License v3.0\n http://www.gnu.org/licenses/gpl-3.0.html\n###\njQuery ( $ ) ->\n\t\"use strict\"\n\n\t# The My Payment Methods handler.\n\t#\n\t# @since 5.1.0\n\tclass window.SV_WC_Payment_Methods_Handler_v5_15_11\n\n\n\t\t# Constructs the class.\n\t\t#\n\t\t# @since 5.1.0\n\t\t#\n\t\t# @param [Object] args, with the properties:\n\t\t# id: [String] plugin ID\n\t\t# slug: [String] plugin slug or dasherized ID\n\t\t# i18n: [Object] localized text strings\n\t\t# ajax_url: [String] URL for AJAX requests\n\t\t# ajax_nonce: [String] nonce for AJAX requests\n\t\tconstructor: ( args ) ->\n\n\t\t\t@id = args.id\n\t\t\t@slug = args.slug\n\t\t\t@i18n = args.i18n\n\t\t\t@ajax_url = args.ajax_url\n\t\t\t@ajax_nonce = args.ajax_nonce\n\n\t\t\t# replace the \"Method\" column content for FW tokens\n\t\t\tthis.replace_method_column()\n\n\t\t\t# remove duplicate \"Default\" marks\n\t\t\tthis.remove_duplicate_default_marks()\n\n\t\t\t# handle the edit action\n\t\t\t$( \".woocommerce-MyAccount-paymentMethods\" ).on( 'click', \".woocommerce-PaymentMethod--actions .button.edit\", ( event ) => this.edit_method( event ) )\n\n\t\t\t# handle the save action\n\t\t\t$( \".woocommerce-MyAccount-paymentMethods\" ).on( 'click', \".woocommerce-PaymentMethod--actions .button.save\", ( event ) => this.save_method( event ) )\n\n\t\t\t# handle the cancel action\n\t\t\t$( \".woocommerce-MyAccount-paymentMethods\" ).on( 'click', \".woocommerce-PaymentMethod--actions .cancel-edit\", ( event ) => this.cancel_edit( event ) )\n\n\t\t\t# handle the delete action\n\t\t\t$( \".woocommerce-MyAccount-paymentMethods\" ).on( 'click', \".woocommerce-PaymentMethod--actions .button.delete\", ( event ) =>\n\n\t\t\t\tbutton = $( event.currentTarget )\n\t\t\t\trow = button.parents( 'tr' )\n\n\t\t\t\t# check if the method belongs to this plugin\n\t\t\t\tif row.find( \"input[name=plugin-id][value=#{@slug}]\" ).length is 0\n\t\t\t\t\treturn\n\n\t\t\t\tif not confirm( @i18n.delete_ays )\n\t\t\t\t\t# re-enable the button if user cancels (side note: WooCommerce core is the one that added the disabled state in the first place)\n\t\t\t\t\tbutton.prop( 'disabled', false ).removeClass( 'disabled' )\n\t\t\t\t\tevent.preventDefault()\n\n\t\t\t)\n\n\t\t\t# don't follow the Add Payment Method button URL if it's disabled\n\t\t\t$( '.button[href*=\"add-payment-method\"]' ).on 'click', event ->\n\t\t\t\tevent.preventDefault() if $( this ).hasClass( 'disabled' )\n\n\n\t\t# Replace Method column content with Title column content, for FW tokens.\n\t\t#\n\t\t# @since 5.8.0\n\t\treplace_method_column: =>\n\n\t\t\t$( '.woocommerce-MyAccount-paymentMethods' ).find( 'tr' ).each ( index, element ) =>\n\n\t\t\t\t# check if the method belongs to this plugin\n\t\t\t\tif $( element ).find( \"input[name=plugin-id][value=#{@slug}]\" ).length is 0\n\t\t\t\t\treturn\n\n\t\t\t\t# delete the Title header\n\t\t\t\t$( element ).find( 'th.woocommerce-PaymentMethod--title' ).remove()\n\n\t\t\t\ttitleColumn = $( element ).find( 'td.woocommerce-PaymentMethod--title' )\n\n\t\t\t\t# Title column is not empty, this is a FW token\n\t\t\t\tif ( titleColumn.children().length > 0 )\n\n\t\t\t\t\t# replace Method column\n\t\t\t\t\t$( element ).find( 'td.woocommerce-PaymentMethod--method' ).html( titleColumn.html() )\n\n\t\t\t\t# delete Title column\n\t\t\t\t$( element ).find( 'td.woocommerce-PaymentMethod--title' ).remove()\n\n\n\t\t# Removes duplicate \"Default\" marks.\n\t\t#\n\t\t# They are already hidden using CSS, but should also be removed for accessibility.\n\t\t#\n\t\t# @since 5.8.0\n\t\tremove_duplicate_default_marks: =>\n\n\t\t\t$( '.woocommerce-MyAccount-paymentMethods' ).find( 'tr' ).each ( index, element ) =>\n\n\t\t\t\t$( element ).find( 'td.woocommerce-PaymentMethod--default' ).find( 'mark.default:not(:first-child)' ).remove()\n\n\n\t\t# Edits a payment method.\n\t\t#\n\t\t# @since 5.1.0\n\t\t#\n\t\t# @param [Object] event jQuery event object\n\t\tedit_method: ( event ) =>\n\n\t\t\tevent.preventDefault()\n\n\t\t\tbutton = $( event.currentTarget )\n\t\t\trow = button.parents( 'tr' )\n\n\t\t\t# check if the method belongs to this plugin\n\t\t\tif row.find( \"input[name=plugin-id][value=#{@slug}]\" ).length is 0\n\t\t\t\treturn\n\n\t\t\trow.find( 'div.view' ).hide()\n\t\t\trow.find( 'div.edit' ).show()\n\t\t\trow.addClass( 'editing' )\n\n\t\t\t# change the Edit button to \"Cancel\"\n\t\t\tbutton.text( @i18n.cancel_button ).removeClass( 'edit' ).addClass( 'cancel-edit' ).removeClass( 'button' )\n\n\t\t\tthis.enable_editing_ui()\n\n\n\t\t# Saves a payment method.\n\t\t#\n\t\t# @since 5.1.0\n\t\t#\n\t\t# @param [Object] event jQuery event object\n\t\tsave_method: ( event ) =>\n\n\t\t\tevent.preventDefault()\n\n\t\t\tbutton = $( event.currentTarget )\n\t\t\trow = button.parents( 'tr' )\n\n\t\t\t# check if the method belongs to this plugin\n\t\t\tif row.find( \"input[name=plugin-id][value=#{@slug}]\" ).length is 0\n\t\t\t\treturn\n\n\t\t\tthis.block_ui()\n\n\t\t\t# remove any previous errors\n\t\t\trow.next( '.error' ).remove()\n\n\t\t\tdata =\n\t\t\t\taction: \"wc_#{@id}_save_payment_method\"\n\t\t\t\tnonce: @ajax_nonce\n\t\t\t\ttoken_id: row.find( 'input[name=token-id]' ).val()\n\t\t\t\tdata: row.find( 'input[name]' ).serialize()\n\n\t\t\t$.post( @ajax_url, data )\n\n\t\t\t\t.done ( response ) =>\n\n\t\t\t\t\treturn this.display_error( row, response.data ) unless response.success\n\n\t\t\t\t\tif response.data.title?\n\t\t\t\t\t\trow.find('.woocommerce-PaymentMethod--method').html( response.data.title )\n\n\t\t\t\t\tif response.data.nonce?\n\t\t\t\t\t\t@ajax_nonce = response.data.nonce\n\n\t\t\t\t\t# change the \"Cancel\" button back to \"Edit\"\n\t\t\t\t\tbutton.siblings( '.cancel-edit' ).removeClass( 'cancel-edit' ).addClass( 'edit' ).text( @i18n.edit_button ).addClass( 'button' )\n\n\t\t\t\t\trow.removeClass( 'editing' )\n\n\t\t\t\t\tthis.disable_editing_ui()\n\n\t\t\t\t.fail ( jqXHR, textStatus, error ) =>\n\n\t\t\t\t\tthis.display_error( row, error )\n\n\t\t\t\t.always =>\n\n\t\t\t\t\tthis.unblock_ui()\n\n\n\t\t# Cancels/stop editing a payment method.\n\t\t#\n\t\t# @since 5.1.0\n\t\t#\n\t\t# @param [Object] event jQuery event object\n\t\tcancel_edit: ( event ) =>\n\n\t\t\tevent.preventDefault()\n\n\t\t\tbutton = $( event.currentTarget )\n\t\t\trow = button.parents( 'tr' )\n\n\t\t\t# check if the method belongs to this plugin\n\t\t\tif row.find( \"input[name=plugin-id][value=#{@slug}]\" ).length is 0\n\t\t\t\treturn\n\n\t\t\trow.find( 'div.view' ).show()\n\t\t\trow.find( 'div.edit' ).hide()\n\t\t\trow.removeClass( 'editing' )\n\n\t\t\t# change the \"Cancel\" button back to \"Edit\"\n\t\t\tbutton.removeClass( 'cancel-edit' ).addClass( 'edit' ).text( @i18n.edit_button ).addClass( 'button' )\n\n\t\t\tthis.disable_editing_ui()\n\n\n\t\t# Sets the page UI to the \"editing\" state.\n\t\t#\n\t\t# This brings proper focus to the method being edited and prevents\n\t\t# other available buttons/actions until the editing is finished or cancelled.\n\t\t#\n\t\t# @since 5.1.1\n\t\tenable_editing_ui: ->\n\n\t\t\t# set the methods table as 'editing'\n\t\t\t$( \".woocommerce-MyAccount-paymentMethods\" ).addClass( 'editing' )\n\n\t\t\t# disable the Add Payment Method button\n\t\t\t$( '.button[href*=\"add-payment-method\"]' ).addClass( 'disabled' )\n\n\n\t\t# Sets the page UI back to the default state.\n\t\t#\n\t\t# @since 5.1.1\n\t\tdisable_editing_ui: ->\n\n\t\t\t# removes the methods table's \"editing\" status\n\t\t\t$( \".woocommerce-MyAccount-paymentMethods\" ).removeClass( 'editing' )\n\n\t\t\t# re-enable the Add Payment Method button\n\t\t\t$( '.button[href*=\"add-payment-method\"]' ).removeClass( 'disabled' )\n\n\n\t\t# Blocks the payment methods table UI.\n\t\t#\n\t\t# @since 5.1.0\n\t\tblock_ui: -> $( \".woocommerce-MyAccount-paymentMethods\" ).parent( 'div' ).block( message: null, overlayCSS: background: '#fff', opacity: 0.6 )\n\n\n\t\t# Unblocks the payment methods table UI.\n\t\t#\n\t\t# @since 5.1.0\n\t\tunblock_ui: -> $( \".woocommerce-MyAccount-paymentMethods\" ).parent( 'div' ).unblock()\n\n\n\t\t# Displays an error message to the user.\n\t\t#\n\t\t# @since 5.1.0\n\t\t#\n\t\t# @param [Object] row payment method table row\n\t\t# @param [String] error raw error message\n\t\t# @param [String] message user error message\n\t\tdisplay_error: ( row, error, message = '' ) ->\n\n\t\t\tconsole.error( error )\n\n\t\t\tmessage = @i18n.save_error unless message\n\t\t\tcolumns = $( \".woocommerce-MyAccount-paymentMethods thead tr th\" ).length\n\n\t\t\t$( '' + message + '' ).insertAfter( row ).find( 'td' ).delay( 8000 ).slideUp( 200 )\n\n\n\t# dispatch loaded event\n\t$( document.body ).trigger( 'sv_wc_payment_methods_handler_v5_15_11_loaded' )\n"],"names":["jQuery","$","window","SV_WC_Payment_Methods_Handler_v5_15_11","constructor","args","replace_method_column","bind","remove_duplicate_default_marks","edit_method","save_method","cancel_edit","id","slug","i18n","ajax_url","ajax_nonce","on","event1","button","row","currentTarget","parents","find","length","confirm","delete_ays","prop","removeClass","preventDefault","event","hasClass","each","index","element","titleColumn","remove","children","html","hide","show","addClass","text","cancel_button","enable_editing_ui","data","block_ui","next","action","nonce","token_id","val","serialize","post","done","response","success","title","siblings","edit_button","disable_editing_ui","display_error","fail","jqXHR","textStatus","error","always","unblock_ui","parent","block","message","overlayCSS","background","opacity","unblock","columns","console","save_error","insertAfter","delay","slideUp","document","body","trigger","call"],"version":3,"file":"sv-wc-payment-gateway-my-payment-methods.js.map"} \ No newline at end of file diff --git a/woocommerce/payment-gateway/assets/js/frontend/sv-wc-payment-gateway-my-payment-methods.coffee b/woocommerce/payment-gateway/assets/js/frontend/sv-wc-payment-gateway-my-payment-methods.coffee index 0abd14a0b..b2cfcb84d 100644 --- a/woocommerce/payment-gateway/assets/js/frontend/sv-wc-payment-gateway-my-payment-methods.coffee +++ b/woocommerce/payment-gateway/assets/js/frontend/sv-wc-payment-gateway-my-payment-methods.coffee @@ -59,6 +59,8 @@ jQuery ( $ ) -> return if not confirm( @i18n.delete_ays ) + # re-enable the button if user cancels (side note: WooCommerce core is the one that added the disabled state in the first place) + button.prop( 'disabled', false ).removeClass( 'disabled' ) event.preventDefault() )